/* ═══════════════════════════════════════════
   Optical At Lincoln Green — Stylesheet
   Teal + Slate Grey · Confident Corporate
   ═══════════════════════════════════════════ */

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --teal-50:  #f0fdf9;
    --teal-100: #ccfbf1;
    --teal-200: #99f6e4;
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --teal-800: #115e59;
    --teal-900: #134e4a;

    --slate-50:  #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    --white: #ffffff;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
    --shadow-md: 0 4px 16px rgba(15,23,42,0.08), 0 2px 6px rgba(15,23,42,0.04);
    --shadow-lg: 0 12px 40px rgba(15,23,42,0.12), 0 4px 12px rgba(15,23,42,0.06);
    --shadow-xl: 0 20px 60px rgba(15,23,42,0.14);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    color: var(--slate-800);
    background: var(--slate-50);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

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

/* ─── TYPOGRAPHY ─── */
h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--slate-900); }

.accent { color: var(--teal-600); }

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal-600);
    background: var(--teal-50);
    border: 1px solid var(--teal-200);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 16px;
}

.section-sub {
    font-size: 1.05rem;
    color: var(--slate-500);
    max-width: 560px;
}

.section-header { text-align: center; margin-bottom: 56px; }
.section-header .section-sub { margin: 0 auto; }

/* ─── BUTTONS ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    padding: 12px 28px;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--teal-600);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(13,148,136,0.3);
}
.btn-primary:hover {
    background: var(--teal-700);
    box-shadow: 0 4px 16px rgba(13,148,136,0.4);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.8);
}

.btn-white {
    background: var(--white);
    color: var(--teal-700);
    box-shadow: var(--shadow-md);
}
.btn-white:hover {
    background: var(--teal-50);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-lg { padding: 16px 36px; font-size: 1rem; border-radius: var(--radius-md); }
.btn-full { width: 100%; }

/* ─── HEADER ─── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--slate-200);
    transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--slate-800);
    font-weight: 700;
    font-size: 1.05rem;
    transition: color var(--transition);
}
.logo svg { color: var(--teal-600); }
.logo-text { line-height: 1.2; }
.logo em { font-style: normal; color: var(--teal-600); font-weight: 600; font-size: 0.9rem; }

/* ─── NAV ─── */
.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--slate-700);
    transition: background var(--transition);
}
.nav-toggle:hover { background: var(--slate-100); }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-link {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--slate-600);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.nav-link:hover { color: var(--teal-600); background: var(--teal-50); }
.nav-cta { margin-left: 8px; padding: 10px 22px; }

/* ─── HERO ─── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--slate-900) 0%, var(--teal-900) 50%, var(--slate-800) 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.hero-grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}
.hero-teal-blur {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(13,148,136,0.3) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--teal-200);
    background: rgba(13,148,136,0.15);
    border: 1px solid rgba(13,148,136,0.3);
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
    letter-spacing: 0.04em;
}

.hero-headline {
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    max-width: 480px;
    margin-bottom: 36px;
    line-height: 1.7;
}

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

/* ─── HERO STAT CARDS ─── */
.hero-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-xl); }

.stat-card--teal {
    background: linear-gradient(135deg, var(--teal-600), var(--teal-700));
    color: var(--white);
}
.stat-card--white {
    background: var(--white);
    color: var(--slate-800);
}
.stat-card--slate {
    background: var(--slate-800);
    color: var(--white);
}
.stat-card--wide {
    flex-direction: row;
    background: linear-gradient(135deg, var(--teal-700), var(--teal-800));
    color: var(--white);
}

.stat-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.15);
    color: var(--white);
}
.stat-card--white .stat-icon { background: var(--teal-100); color: var(--teal-600); }
.stat-card--slate .stat-icon { background: rgba(255,255,255,0.1); color: var(--teal-400); }

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
}
.stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
    line-height: 1.4;
}
.stat-card--wide .stat-number { font-size: 1.15rem; }
.stat-card--wide .stat-label { font-size: 0.82rem; }

/* ─── SERVICES ─── */
.services {
    padding: 100px 0;
    background: var(--white);
}

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

.service-card {
    background: var(--slate-50);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--slate-200);
    transition: all var(--transition);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--teal-200);
}

.service-img {
    height: 200px;
    overflow: hidden;
}
.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card:hover .service-img img { transform: scale(1.05); }

.service-body { padding: 28px; }
.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--teal-100);
    color: var(--teal-600);
    margin-bottom: 16px;
}
.service-body h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 10px;
}
.service-body p {
    font-size: 0.9rem;
    color: var(--slate-500);
    line-height: 1.65;
}

/* ─── ABOUT ─── */
.about {
    padding: 100px 0;
    background: var(--slate-50);
}

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

.about-images {
    position: relative;
}
.about-img-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}
.about-img-main img { width: 100%; height: 420px; object-fit: cover; }
.about-img-secondary {
    position: absolute;
    bottom: -40px;
    right: -30px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--slate-50);
}
.about-img-secondary img { width: 280px; height: 200px; object-fit: cover; }

.about-accent-box {
    position: absolute;
    top: -20px;
    left: -20px;
    background: var(--teal-600);
    color: var(--white);
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.about-accent-box .accent-box-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}
.about-accent-box .accent-box-label {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 4px;
}

.about-content .section-tag { margin-bottom: 16px; }
.about-content .section-title { margin-bottom: 20px; }
.about-content > p {
    color: var(--slate-500);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.about-list { margin: 24px 0 32px; display: flex; flex-direction: column; gap: 12px; }
.about-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.92rem;
    color: var(--slate-700);
}
.about-list li svg { color: var(--teal-600); flex-shrink: 0; margin-top: 2px; }

/* ─── INSURANCE BANNER ─── */
.insurance-banner {
    padding: 72px 0;
    background: linear-gradient(135deg, var(--teal-700) 0%, var(--teal-900) 100%);
    position: relative;
    overflow: hidden;
}
.insurance-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.insurance-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}
.insurance-text { flex: 1; min-width: 240px; }
.insurance-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.ins-badge {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
}
.insurance-banner .btn-white { flex-shrink: 0; }

/* ─── LOCATION ─── */
.location {
    padding: 100px 0;
    background: var(--white);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: stretch;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.loc-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--slate-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    transition: all var(--transition);
}
.loc-card:hover {
    border-color: var(--teal-200);
    box-shadow: var(--shadow-md);
}
.loc-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--teal-100);
    color: var(--teal-600);
}
.loc-card strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--slate-400);
    margin-bottom: 4px;
}
.loc-card p { font-size: 0.92rem; color: var(--slate-700); line-height: 1.6; }
.loc-card a { color: var(--teal-600); transition: color var(--transition); }
.loc-card a:hover { color: var(--teal-700); text-decoration: underline; }

.location-map {
    min-height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* ─── CONTACT ─── */
.contact {
    padding: 100px 0;
    background: var(--slate-50);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-info .section-tag { margin-bottom: 16px; }
.contact-info .section-title { margin-bottom: 16px; }
.contact-info > p { color: var(--slate-500); margin-bottom: 32px; font-size: 0.95rem; }

.contact-details { display: flex; flex-direction: column; gap: 16px; }
.contact-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.92rem;
    color: var(--slate-700);
}
.contact-detail svg { color: var(--teal-600); flex-shrink: 0; }
.contact-detail a { color: var(--teal-600); transition: color var(--transition); }
.contact-detail a:hover { color: var(--teal-700); text-decoration: underline; }

.contact-form-wrap {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--slate-200);
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate-700);
}
.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 0.92rem;
    padding: 12px 16px;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-sm);
    background: var(--slate-50);
    color: var(--slate-800);
    transition: all var(--transition);
    outline: none;
    width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--teal-500);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(13,148,136,0.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }

.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
    gap: 12px;
}
.form-success svg { color: var(--teal-600); }
.form-success strong { font-size: 1.2rem; color: var(--slate-900); }
.form-success p { color: var(--slate-500); font-size: 0.9rem; }

/* ─── FOOTER ─── */
.footer {
    background: var(--slate-900);
    color: var(--slate-400);
    padding: 72px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 56px;
}

.footer-brand .logo { color: var(--white); margin-bottom: 16px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; color: var(--slate-400); max-width: 280px; }

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--slate-200);
    margin-bottom: 20px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
    font-size: 0.88rem;
    color: var(--slate-400);
    transition: color var(--transition);
}
.footer-col a:hover { color: var(--teal-400); }

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    line-height: 1.6;
}
.footer-contact svg { color: var(--teal-500); flex-shrink: 0; margin-top: 3px; }
.footer-contact a { color: var(--slate-400); }
.footer-contact a:hover { color: var(--teal-400); }

.footer-bottom {
    border-top: 1px solid var(--slate-800);
    padding: 24px 0;
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom p { font-size: 0.82rem; color: var(--slate-500); }
.footer-bottom a { color: var(--teal-400); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--teal-300); }

/* ─── BACK TO TOP ─── */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-600);
    color: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all var(--transition);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--teal-700); transform: translateY(-2px); }

/* ─── ANIMATIONS ─── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── MOBILE NAV ─── */
@media (max-width: 900px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px 24px 24px;
        gap: 4px;
        border-bottom: 1px solid var(--slate-200);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
    }
    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .nav-link { padding: 12px 16px; width: 100%; }
    .nav-cta { margin-left: 0; margin-top: 8px; text-align: center; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    .hero-container { grid-template-columns: 1fr; }
    .hero-cards { display: grid; grid-template-columns: 1fr 1fr; }
    .stat-card--wide { grid-column: 1 / -1; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .about-images { max-width: 480px; }
    .location-grid { grid-template-columns: 1fr; }
    .location-map { min-height: 300px; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .hero { padding: 100px 0 60px; min-height: auto; }
    .hero-headline { font-size: 2rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .hero-cards { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
    .insurance-inner { flex-direction: column; text-align: center; }
    .about-img-secondary { right: 0; }
    .about-accent-box { left: 0; }
    .contact-form-wrap { padding: 24px; }
}
