/* ============================================
   TERRY D MOEHNKE O.D. — OPTOMETRY WEBSITE
   Vibrant Modern · Emerald + Cream · Geometric
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --emerald: #047857;
    --emerald-dark: #065F46;
    --emerald-light: #059669;
    --emerald-50: #ECFDF5;
    --cream: #FEF3C7;
    --cream-light: #FFFBF0;
    --cream-dark: #FDE68A;
    --dark: #0F1C18;
    --dark-soft: #1A2E26;
    --text: #1A1A1A;
    --text-muted: #555555;
    --white: #FFFFFF;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow-sm: 0 2px 8px rgba(4, 120, 87, 0.08);
    --shadow-md: 0 8px 30px rgba(4, 120, 87, 0.12);
    --shadow-lg: 0 16px 60px rgba(4, 120, 87, 0.15);
    --font-body: 'Outfit', sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--cream-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- Page Decorative Shapes --- */
.page-shapes {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.blob { fill: var(--emerald); opacity: 0.04; }
.blob-1 { animation: float 20s ease-in-out infinite; }
.blob-2 { animation: float 25s ease-in-out infinite reverse; }
.blob-3 { animation: float 18s ease-in-out infinite; }
.blob-4 { animation: float 22s ease-in-out infinite reverse; }
.blob-5 { animation: float 16s ease-in-out infinite; }
.triangle { fill: var(--emerald); opacity: 0.03; }
.square { fill: var(--cream-dark); opacity: 0.15; }
@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(5deg); }
    66% { transform: translate(-20px, 20px) rotate(-3deg); }
}

/* --- Eyebrow --- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--emerald);
    margin-bottom: 16px;
}
.eyebrow .dot {
    width: 8px; height: 8px;
    background: var(--emerald);
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.eyebrow .dot.light { background: var(--cream); }
.eyebrow.light { color: var(--cream); }

/* --- Section Head --- */
.sec-head { margin-bottom: 60px; }
.sec-head.light { text-align: center; }
.sec-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--dark);
    margin-bottom: 16px;
}
.sec-title.light { color: var(--cream); }
.sec-title em { font-style: italic; color: var(--emerald); }
.sec-title.light em { color: var(--cream-dark); }
.sec-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 540px;
}
.sec-sub.light { color: rgba(254,243,199,0.8); }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 60px;
    padding: 14px 28px;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-emerald {
    background: var(--emerald);
    color: var(--cream);
    box-shadow: 0 4px 20px rgba(4,120,87,0.3);
}
.btn-emerald:hover {
    background: var(--emerald-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(4,120,87,0.4);
}
.btn-outline {
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--dark);
}
.btn-outline:hover {
    background: var(--dark);
    color: var(--cream);
    transform: translateY(-2px);
}
.btn-cream {
    background: var(--cream);
    color: var(--emerald-dark);
    box-shadow: 0 4px 20px rgba(254,243,199,0.4);
}
.btn-cream:hover {
    background: var(--cream-dark);
    transform: translateY(-2px);
}
.btn-outline-cream {
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--dark);
}
.btn-outline-cream:hover {
    background: var(--dark);
    color: var(--cream);
    transform: translateY(-2px);
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(254, 251, 240, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(4,120,87,0.08);
    transition: var(--transition);
}
.nav.scrolled {
    background: rgba(254, 251, 240, 0.95);
    box-shadow: var(--shadow-sm);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
}
.logo .accent-dot { color: var(--emerald); font-size: 1.8rem; line-height: 1; }
.logo-light { color: var(--cream); }
.logo-light .accent-dot-light { color: var(--cream-dark); font-size: 1.8rem; line-height: 1; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    transition: var(--transition);
    position: relative;
}
.nav-links a:not(.btn):hover { color: var(--emerald); }
.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--emerald);
    transition: var(--transition);
}
.nav-links a:not(.btn):hover::after { width: 100%; }

/* Mobile menu button */
.menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 110;
}
.menu-btn span {
    width: 24px; height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}
.menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-btn.active span:nth-child(2) { opacity: 0; }
.menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile overlay */
.mob-overlay {
    position: fixed;
    inset: 0;
    z-index: 105;
    background: var(--cream-light);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}
.mob-overlay.open { opacity: 1; pointer-events: all; }
.mob-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}
.mob-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
    transition: var(--transition);
}
.mob-link:hover { color: var(--emerald); }
.mob-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: var(--emerald);
    font-weight: 600;
    margin-top: 8px;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 0 0;
    overflow: hidden;
    background: var(--cream-light);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-text { max-width: 540px; }
.hero-h {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--dark);
    margin-bottom: 24px;
}
.hero-h .hl {
    color: var(--emerald);
    position: relative;
}
.hero-h .hl::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 0;
    width: 100%; height: 12px;
    background: var(--cream);
    opacity: 0.6;
    z-index: -1;
    border-radius: 2px;
}
.hero-p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 460px;
}
.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

/* Hero visual (asymmetric) */
.hero-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.hero-img-wrap {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    width: 85%;
}
.hero-img-wrap img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    padding: 12px 20px;
    border-radius: 60px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--emerald);
    box-shadow: var(--shadow-md);
    margin-top: -24px;
    margin-right: 20px;
    position: relative;
    z-index: 2;
    align-self: flex-end;
}
.hero-stat {
    position: absolute;
    bottom: 40px; left: -20px;
    background: var(--emerald);
    color: var(--cream);
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 2;
}
.stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
}
.stat-lbl {
    font-size: 0.8rem;
    opacity: 0.85;
    line-height: 1.4;
}

/* Hero accent bar */
.hero-accent-bar {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--emerald), var(--emerald-light), var(--cream-dark), var(--emerald));
    background-size: 300% 100%;
    animation: shimmer 6s linear infinite;
}
@keyframes shimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* Hero geometric decorations */
.hero::before {
    content: '';
    position: absolute;
    top: 120px; right: -80px;
    width: 300px; height: 300px;
    background: var(--emerald);
    opacity: 0.04;
    border-radius: 50%;
    z-index: 0;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: 80px; left: 50%;
    width: 0; height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid var(--cream-dark);
    opacity: 0.2;
    z-index: 0;
    transform: translateX(-50%);
}

/* --- Services --- */
.services {
    position: relative;
    z-index: 1;
    padding: 100px 0;
    background: var(--cream-light);
}
.svc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.svc-card {
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.svc-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 0;
    background: var(--emerald);
    transition: var(--transition);
    border-radius: 0 0 4px 0;
}
.svc-card:hover::before { height: 100%; }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-cream {
    background: var(--white);
    border: 1px solid rgba(4,120,87,0.06);
}
.card-emerald {
    background: var(--emerald);
    color: var(--cream);
}
.svc-icon-wrap {
    width: 56px; height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--emerald-50);
    border-radius: 14px;
    margin-bottom: 20px;
}
.card-emerald .svc-icon-wrap { background: rgba(254,243,199,0.2); }
.svc-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
}
.card-emerald .svc-card h3 { color: var(--cream); }
.svc-card p {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text-muted);
}
.card-emerald .svc-card p { color: rgba(254,243,199,0.85); }

/* --- About --- */
.about {
    position: relative;
    z-index: 1;
    padding: 100px 0;
    background: var(--white);
    overflow: hidden;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-visual {
    position: relative;
}
.about-img-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about-img-main img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}
.about-img-accent {
    position: absolute;
    bottom: -40px; right: -30px;
    width: 55%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--white);
}
.about-img-accent img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.about-geo {
    position: absolute;
    top: -20px; right: 40px;
    opacity: 0.6;
}
.about-text { position: relative; z-index: 1; }
.about-p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 16px;
}
.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 28px 0 36px;
}
.about-features li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text);
}
.about-features svg { flex-shrink: 0; }

/* --- Frames --- */
.frames {
    position: relative;
    z-index: 1;
    padding: 100px 0;
    background: var(--emerald);
    overflow: hidden;
}
/* Geometric decorations for frames section */
.frames::before {
    content: '';
    position: absolute;
    top: -100px; left: -100px;
    width: 300px; height: 300px;
    border: 3px solid rgba(254,243,199,0.1);
    border-radius: 50%;
}
.frames::after {
    content: '';
    position: absolute;
    bottom: -60px; right: -60px;
    width: 200px; height: 200px;
    background: rgba(254,243,199,0.05);
    transform: rotate(45deg);
}
.frames-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.frame-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--dark);
    transition: var(--transition);
}
.frame-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.frame-img {
    height: 200px;
    overflow: hidden;
}
.frame-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.frame-card:hover .frame-img img { transform: scale(1.08); }
.frame-info {
    padding: 16px 18px;
}
.frame-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cream-dark);
    background: rgba(254,243,199,0.15);
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}
.frame-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--cream);
}

/* --- Testimonials --- */
.testimonials {
    position: relative;
    z-index: 1;
    padding: 100px 0;
    background: var(--cream-light);
}
.test-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.test-card {
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    position: relative;
    transition: var(--transition);
}
.test-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.test-quote {
    margin-bottom: 16px;
    opacity: 0.9;
}
.test-p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 24px;
    font-style: italic;
}
.test-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.test-avatar {
    width: 40px; height: 40px;
    background: var(--emerald);
    color: var(--cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}
.test-author span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

/* --- CTA Banner --- */
.cta-banner {
    position: relative;
    z-index: 1;
    padding: 100px 0;
    background: var(--cream);
    overflow: hidden;
}
.cta-geo-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.cta-circle {
    position: absolute;
    border-radius: 50%;
    background: var(--emerald);
    opacity: 0.06;
}
.cta-c1 { width: 400px; height: 400px; top: -150px; right: -100px; }
.cta-c2 { width: 250px; height: 250px; bottom: -80px; left: -50px; }
.cta-tri {
    position: absolute;
    top: 50%; left: 5%;
    width: 0; height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid var(--emerald);
    opacity: 0.08;
    transform: translateY(-50%) rotate(20deg);
}
.cta-inner {
    text-align: center;
    position: relative;
    z-index: 1;
}
.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    color: var(--dark);
    line-height: 1.15;
    margin-bottom: 16px;
}
.cta-title em { color: var(--emerald); font-style: italic; }
.cta-p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 36px;
}
.cta-btns {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* --- Contact --- */
.contact {
    position: relative;
    z-index: 1;
    padding: 100px 0;
    background: var(--white);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.contact-p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 36px;
}
.info-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.info-icon {
    width: 48px; height: 48px;
    background: var(--emerald-50);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.info-item strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--emerald);
    margin-bottom: 4px;
}
.info-item p {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.5;
}
.info-item a {
    color: var(--text);
    transition: var(--transition);
}
.info-item a:hover { color: var(--emerald); }
.map-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* Contact form */
.contact-form-wrap {
    padding: 40px;
    border: 1px solid rgba(4,120,87,0.08);
}
.form-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 28px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
    transition: var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--emerald);
    box-shadow: 0 0 0 3px rgba(4,120,87,0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #AAA;
}
.form-group textarea { resize: vertical; min-height: 100px; }

/* Form success */
.form-success {
    text-align: center;
    padding: 40px 20px;
}
.form-success svg { margin: 0 auto 16px; }
.form-success h4 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 8px;
}
.form-success p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* --- Footer --- */
.footer {
    position: relative;
    z-index: 1;
    background: var(--dark);
    color: var(--cream);
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}
.footer-brand p {
    font-size: 0.9rem;
    color: rgba(254,243,199,0.6);
    line-height: 1.7;
    margin-top: 16px;
    max-width: 300px;
}
.footer-links h4,
.footer-contact h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cream-dark);
    margin-bottom: 16px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
    font-size: 0.9rem;
    color: rgba(254,243,199,0.6);
    transition: var(--transition);
}
.footer-links a:hover { color: var(--cream); padding-left: 4px; }
.footer-contact p {
    font-size: 0.9rem;
    color: rgba(254,243,199,0.6);
    line-height: 1.7;
    margin-bottom: 6px;
}
.footer-contact a {
    color: var(--cream-dark);
    transition: var(--transition);
}
.footer-contact a:hover { color: var(--cream); }
.footer-bottom {
    border-top: 1px solid rgba(254,243,199,0.1);
    padding: 20px 0;
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(254,243,199,0.4);
}
.footer-bottom a {
    color: rgba(254,243,199,0.5);
    transition: var(--transition);
}
.footer-bottom a:hover { color: var(--cream); }

/* --- Scroll reveal (progressive enhancement) --- */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-grid { gap: 40px; }
    .svc-grid { grid-template-columns: repeat(2, 1fr); }
    .frames-grid { grid-template-columns: repeat(2, 1fr); }
    .test-grid { grid-template-columns: repeat(2, 1fr); }
    .test-grid .test-card:last-child { grid-column: span 2; max-width: 50%; justify-self: center; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .menu-btn { display: flex; }
    
    .hero { padding: 100px 0 60px; min-height: auto; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-text { order: 1; }
    .hero-visual { order: 2; align-items: stretch; }
    .hero-img-wrap { width: 100%; }
    .hero-img-wrap img { height: 300px; }
    .hero-badge { margin-right: 0; }
    .hero-stat { position: relative; bottom: auto; left: auto; margin-top: 16px; display: inline-block; }
    .hero-ctas { flex-direction: column; }
    .hero-ctas .btn { justify-content: center; }
    
    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .about-img-accent { position: relative; bottom: auto; right: auto; width: 70%; margin-top: -30px; margin-left: auto; }
    .about-features { grid-template-columns: 1fr; }
    
    .svc-grid { grid-template-columns: 1fr; }
    .frames-grid { grid-template-columns: 1fr 1fr; }
    .test-grid { grid-template-columns: 1fr; }
    .test-grid .test-card:last-child { grid-column: span 1; max-width: 100%; }
    
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-form-wrap { padding: 28px; }
    .form-row { grid-template-columns: 1fr; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom .container { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-h { font-size: 2rem; }
    .sec-title { font-size: 1.75rem; }
    .frames-grid { grid-template-columns: 1fr; }
    .frame-img { height: 180px; }
    .about-img-accent { width: 90%; }
}
