/* ========================================
   Sonterra Hair Salón - Custom Styles
   ======================================== */

/* CSS Variables */
:root {
    --forest-green: #1a3c2a;
    --forest-green-light: #2d5a3f;
    --forest-green-dark: #0f2419;
    --off-white: #f8f6f2;
    --off-white-dark: #efece6;
    --cream: #faf9f7;
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #6b6b6b;
    --text-muted: #9a9a9a;
    --border-light: #e8e5df;
    --border-medium: #d4d0c8;
    
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', 'Helvetica Neue', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.6s ease;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--text-dark);
    background-color: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
}

/* Section Eyebrow */
.section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--forest-green);
    margin-bottom: 16px;
}

/* Section Title */
.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--forest-green);
    margin-bottom: 48px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all var(--transition-medium);
}

.btn-primary {
    background-color: var(--forest-green);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--forest-green-light);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

.btn-full {
    width: 100%;
}

/* ========================================
   Navigation
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-medium);
}

.nav.scrolled {
    background-color: rgba(248, 246, 242, 0.97);
    backdrop-filter: blur(10px);
    padding: 14px 0;
    box-shadow: 0 1px 0 var(--border-light);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.02em;
    transition: color var(--transition-fast);
}

.nav.scrolled .logo-text {
    color: var(--forest-green);
}

.logo-sub {
    font-family: var(--font-body);
    font-size: 0.55rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.nav.scrolled .logo-sub {
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    transition: color var(--transition-fast);
}

.nav.scrolled .nav-links a {
    color: var(--text-medium);
}

.nav-links a:hover {
    color: #ffffff;
}

.nav.scrolled .nav-links a:hover {
    color: var(--forest-green);
}

.nav-cta {
    padding: 10px 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all var(--transition-fast);
}

.nav.scrolled .nav-cta {
    border-color: var(--forest-green);
    color: var(--forest-green);
}

.nav-cta:hover {
    background-color: #ffffff;
    color: var(--forest-green) !important;
    border-color: #ffffff;
}

.nav.scrolled .nav-cta:hover {
    background-color: var(--forest-green);
    color: #ffffff !important;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    display: block;
    width: 22px;
    height: 1px;
    background-color: #ffffff;
    position: relative;
    transition: all var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 1px;
    background-color: #ffffff;
    left: 0;
    transition: all var(--transition-fast);
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

.nav.scrolled .hamburger {
    background-color: var(--forest-green);
}

.nav.scrolled .hamburger::before,
.nav.scrolled .hamburger::after {
    background-color: var(--forest-green);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.pexels.com/photos/35844834/pexels-photo-35844834.png?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center center / cover no-repeat;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 36, 25, 0.65) 0%,
        rgba(26, 60, 42, 0.55) 50%,
        rgba(15, 36, 25, 0.75) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    padding: 0 24px;
}

.hero-eyebrow {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-size: 1.05rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
}

.hero-scroll span {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(0.7); }
}

/* ========================================
   Services Section
   ======================================== */
.services {
    padding: 120px 0;
    background-color: var(--cream);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    padding: 40px 32px;
    border: 1px solid var(--border-light);
    transition: all var(--transition-medium);
}

.service-card:hover {
    border-color: var(--forest-green);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(26, 60, 42, 0.08);
}

.service-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 24px;
    color: var(--forest-green);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-name {
    font-size: 1.3rem;
    color: var(--forest-green);
    margin-bottom: 12px;
}

.service-desc {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* ========================================
   About Section
   ======================================== */
.about {
    padding: 120px 0;
    background-color: var(--off-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.about-image:hover img {
    transform: scale(1.02);
}

.about-content {
    max-width: 480px;
}

.about-text {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin-bottom: 20px;
    line-height: 1.9;
}

.about-stats {
    display: flex;
    gap: 48px;
    margin: 40px 0;
    padding: 32px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--forest-green);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ========================================
   Gallery Section
   ======================================== */
.gallery {
    padding: 120px 0;
    background-color: var(--cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-item {
    overflow: hidden;
    aspect-ratio: 4/5;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ========================================
   Testimonials Section
   ======================================== */
.testimonials {
    padding: 120px 0;
    background-color: var(--forest-green);
}

.testimonials .section-eyebrow {
    color: rgba(255, 255, 255, 0.6);
}

.testimonials .section-title {
    color: #ffffff;
    margin-bottom: 64px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.testimonial-quote {
    font-family: var(--font-display);
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.2);
    line-height: 1;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.9;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    padding: 120px 0;
    background-color: var(--cream);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-desc {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin-bottom: 48px;
    line-height: 1.8;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
}

.contact-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--forest-green);
    margin-top: 2px;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-label {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.7;
}

.contact-item a:hover {
    color: var(--forest-green);
}

/* Contact Form */
.contact-form-wrapper {
    background-color: var(--off-white);
    padding: 48px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 0;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-dark);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-medium);
    outline: none;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--forest-green);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239a9a9a' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
}

/* Form Success */
.form-success {
    display: none;
    text-align: center;
    padding: 48px;
}

.form-success.active {
    display: block;
}

.success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 24px;
    color: var(--forest-green);
}

.success-icon svg {
    width: 100%;
    height: 100%;
}

.form-success h3 {
    font-size: 1.5rem;
    color: var(--forest-green);
    margin-bottom: 12px;
}

.form-success p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ========================================
   Map Section
   ======================================== */
.map {
    height: 400px;
}

.map iframe {
    filter: grayscale(80%) contrast(1.1);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 80px 0 0;
    background-color: var(--forest-green-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 64px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.8;
    max-width: 280px;
}

.footer-links h4,
.footer-hours h4,
.footer-contact h4 {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 20px;
}

.footer-links ul li,
.footer-hours ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links ul li a:hover {
    color: #ffffff;
}

.footer-hours ul li {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    gap: 16px;
}

.footer-contact p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ========================================
   Scroll Reveal Animations
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid .testimonial-card:last-child {
        grid-column: span 2;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--forest-green-dark);
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        transition: right var(--transition-medium);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.85);
    }
    
    .nav-cta {
        border-color: rgba(255, 255, 255, 0.4) !important;
        color: rgba(255, 255, 255, 0.85) !important;
    }
    
    .nav-toggle {
        display: block;
        z-index: 1001;
    }
    
    .nav-toggle.active .hamburger {
        background-color: transparent;
    }
    
    .nav-toggle.active .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }
    
    .nav-toggle.active .hamburger::after {
        transform: rotate(-45deg);
        top: 0;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-content {
        max-width: 100%;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 32px 24px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid .testimonial-card:last-child {
        grid-column: span 1;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .contact-form-wrapper {
        padding: 32px 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
