/* ===================================
   Sigma Eyehealth Centers — Styles
   =================================== */

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

:root {
    --emerald-950: #022c22;
    --emerald-900: #042f2e;
    --emerald-800: #064e3b;
    --emerald-700: #065f46;
    --emerald-600: #047857;
    --emerald-500: #059669;
    --emerald-100: #d1fae5;
    --emerald-50:  #ecfdf5;
    
    --cream-50:  #FDF8F4;
    --cream-100: #F9F0E8;
    --cream-200: #F5EBE0;
    --cream-300: #EDE0D0;
    
    --text-dark:   #1a1a1a;
    --text-mid:    #3a3a3a;
    --text-light:  #6b6b6b;
    --text-white:  #f8f8f8;
    
    --font-serif:  'Playfair Display', Georgia, serif;
    --font-sans:   'Inter', system-ui, sans-serif;
    
    --radius-sm:  6px;
    --radius-md:  12px;
    --radius-lg:  20px;
    
    --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md:  0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg:  0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background: var(--cream-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul { list-style: none; }

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

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-sans);
    font-size: 0.938rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn--primary {
    background: var(--emerald-700);
    color: var(--text-white);
    border-color: var(--emerald-700);
}

.btn--primary:hover {
    background: var(--emerald-800);
    border-color: var(--emerald-800);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn--outline {
    background: transparent;
    color: var(--emerald-700);
    border-color: var(--emerald-700);
}

.btn--outline:hover {
    background: var(--emerald-50);
    transform: translateY(-1px);
}

.btn--light {
    background: var(--cream-50);
    color: var(--emerald-800);
    border-color: var(--cream-50);
}

.btn--light:hover {
    background: var(--cream-200);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn--outline-sm {
    background: transparent;
    color: var(--emerald-700);
    border-color: var(--emerald-700);
    padding: 10px 20px;
    font-size: 0.875rem;
}

.btn--outline-sm:hover {
    background: var(--emerald-50);
}

.btn--nav {
    background: var(--emerald-700);
    color: var(--text-white);
    padding: 10px 22px;
    font-size: 0.875rem;
}

.btn--nav:hover {
    background: var(--emerald-800);
}

.btn--full {
    width: 100%;
    justify-content: center;
}

/* --- Section Tags --- */
.section-tag {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--emerald-600);
    margin-bottom: 12px;
}

.section-tag--light {
    color: var(--cream-200);
}

/* --- Section Titles --- */
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-dark);
    margin-bottom: 16px;
}

.section-title--light {
    color: var(--text-white);
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-desc {
    font-size: 1.063rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 248, 244, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(4, 78, 59, 0.08);
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo--light .logo-text {
    color: var(--text-white);
}

.logo-mark {
    width: 36px;
    height: 36px;
    background: var(--emerald-700);
    color: var(--cream-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

/* --- Nav --- */
.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-list a {
    font-size: 0.938rem;
    font-weight: 400;
    color: var(--text-mid);
    transition: color 0.2s ease;
}

.nav-list a:hover {
    color: var(--emerald-700);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
    padding-top: 72px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--cream-50);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    padding: 64px 0;
}

.hero-tag {
    display: inline-block;
    font-size: 0.813rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--emerald-600);
    margin-bottom: 20px;
    padding: 6px 14px;
    background: var(--emerald-50);
    border-radius: 20px;
    border: 1px solid var(--emerald-100);
}

.hero-headline {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--text-dark);
    line-height: 1.08;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero-sub {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.75;
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat-num {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--emerald-700);
    line-height: 1;
}

.stat-label {
    font-size: 0.813rem;
    color: var(--text-light);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--cream-300);
}

.hero-image {
    position: relative;
}

.hero-img-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-accent {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 120px;
    height: 120px;
    background: var(--emerald-700);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.15;
}

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

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

.service-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 36px 28px;
    border: 1px solid var(--cream-200);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--emerald-100);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--emerald-50);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-700);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--emerald-700);
    color: var(--cream-50);
}

.service-title {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

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

/* --- About --- */
.about {
    padding: 120px 0;
    background: white;
}

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

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-img-float {
    position: absolute;
    bottom: -32px;
    right: -32px;
    width: 55%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid white;
}

.about-img-float img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-badge {
    position: absolute;
    top: -16px;
    right: 40px;
    background: var(--emerald-700);
    color: var(--cream-50);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.badge-num {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}

.badge-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.85;
    margin-top: 4px;
}

.about-content .section-tag {
    margin-bottom: 12px;
}

.about-content .section-title {
    margin-bottom: 24px;
}

.about-text {
    font-size: 1.063rem;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-features {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.938rem;
    color: var(--text-mid);
    font-weight: 500;
}

.feature-item svg {
    color: var(--emerald-600);
    flex-shrink: 0;
}

/* --- Frames --- */
.frames {
    padding: 120px 0;
    background: var(--emerald-900);
    position: relative;
    overflow: hidden;
}

.frames::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(4, 120, 87, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

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

.frames-content {
    position: relative;
    z-index: 1;
}

.frames-content .section-title {
    margin-bottom: 20px;
}

.frames-desc {
    font-size: 1.063rem;
    color: rgba(253, 248, 244, 0.7);
    line-height: 1.75;
    margin-bottom: 32px;
    max-width: 440px;
}

.frames-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.frame-card {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.frame-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 3/2;
    transition: transform 0.4s ease;
}

.frame-card:hover img {
    transform: scale(1.05);
}

/* --- Testimonials --- */
.testimonials {
    padding: 120px 0;
    background: var(--cream-50);
}

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

.testimonial-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 36px 28px;
    border: 1px solid var(--cream-200);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.testimonial-quote {
    color: var(--emerald-200, #a7f3d0);
    margin-bottom: 16px;
}

.testimonial-quote svg {
    color: var(--emerald-300, #6ee7b7);
}

.testimonial-text {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.75;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: var(--emerald-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-600);
    flex-shrink: 0;
}

.author-name {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-dark);
}

.author-location {
    display: block;
    font-size: 0.813rem;
    color: var(--text-light);
}

/* --- Contact --- */
.contact {
    padding: 120px 0;
    background: var(--emerald-900);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(4, 120, 87, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.contact-info .section-title {
    margin-bottom: 16px;
}

.contact-desc {
    font-size: 1.063rem;
    color: rgba(253, 248, 244, 0.7);
    line-height: 1.75;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-item {
    display: flex;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(253, 248, 244, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-300, #6ee7b7);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.063rem;
    color: var(--cream-50);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 0.938rem;
    color: rgba(253, 248, 244, 0.65);
    line-height: 1.6;
}

.contact-item a {
    color: rgba(253, 248, 244, 0.65);
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: var(--cream-200);
}

.contact-form-wrap {
    background: rgba(253, 248, 244, 0.06);
    border: 1px solid rgba(253, 248, 244, 0.12);
    border-radius: var(--radius-lg);
    padding: 40px;
    backdrop-filter: blur(8px);
}

.form-title {
    font-size: 1.5rem;
    color: var(--cream-50);
    margin-bottom: 28px;
}

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(253, 248, 244, 0.75);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(253, 248, 244, 0.08);
    border: 1px solid rgba(253, 248, 244, 0.15);
    border-radius: var(--radius-sm);
    color: var(--cream-50);
    font-family: var(--font-sans);
    font-size: 0.938rem;
    transition: all 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(253, 248, 244, 0.35);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--emerald-500);
    background: rgba(253, 248, 244, 0.12);
}

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

.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

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

.success-icon {
    width: 72px;
    height: 72px;
    background: var(--emerald-700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--cream-50);
}

.form-success h4 {
    font-size: 1.5rem;
    color: var(--cream-50);
    margin-bottom: 10px;
}

.form-success p {
    font-size: 0.938rem;
    color: rgba(253, 248, 244, 0.65);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* --- Footer --- */
.site-footer {
    background: var(--emerald-950);
    color: var(--cream-50);
}

.footer-inner {
    padding: 72px 0 48px;
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 64px;
}

.footer-brand p {
    font-size: 0.938rem;
    color: rgba(253, 248, 244, 0.55);
    line-height: 1.7;
    margin-top: 16px;
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cream-200);
    margin-bottom: 20px;
    font-family: var(--font-sans);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 0.938rem;
    color: rgba(253, 248, 244, 0.5);
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: var(--cream-200);
}

.footer-col address {
    font-style: normal;
}

.footer-col address p {
    font-size: 0.938rem;
    color: rgba(253, 248, 244, 0.5);
    line-height: 1.7;
}

.footer-col address a {
    color: rgba(253, 248, 244, 0.5);
}

.footer-col address a:hover {
    color: var(--cream-200);
}

.footer-bottom {
    border-top: 1px solid rgba(253, 248, 244, 0.08);
    padding: 24px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.813rem;
    color: rgba(253, 248, 244, 0.35);
}

/* --- Reveal animations --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(24px);
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-grid {
        gap: 48px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid,
    .frames-inner,
    .contact-grid {
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-list {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--cream-50);
        flex-direction: column;
        align-items: stretch;
        padding: 24px;
        gap: 0;
        border-bottom: 1px solid var(--cream-200);
        box-shadow: var(--shadow-md);
        transform: translateY(-120%);
        opacity: 0;
        transition: all 0.3s ease;
        pointer-events: none;
    }
    
    .nav-list.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-list li {
        border-bottom: 1px solid var(--cream-200);
    }
    
    .nav-list li:last-child {
        border-bottom: none;
    }
    
    .nav-list a {
        display: block;
        padding: 14px 0;
        font-size: 1rem;
    }
    
    .btn--nav {
        display: inline-flex;
        justify-content: center;
        margin-top: 8px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        padding: 48px 0;
        gap: 40px;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-img-wrapper {
        aspect-ratio: 4/3;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        justify-content: center;
    }
    
    .hero-stats {
        flex-wrap: wrap;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-images {
        max-width: 480px;
    }
    
    .about-img-float {
        right: -16px;
        bottom: -24px;
    }
    
    .frames-inner {
        grid-template-columns: 1fr;
    }
    
    .frames-gallery {
        order: -1;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .services,
    .about,
    .frames,
    .testimonials,
    .contact {
        padding: 80px 0;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrap {
        padding: 24px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}
