/* styles.css — TSO Kyle
   Cleaned & organized: March 2026
   =============================== */

/* === CSS VARIABLES === */
:root {
    /* Brand colors */
    --primary: #2c3e50;
    --accent: #2980b9;
    --accent-hover: #1c5980;
    --cta: #e74c3c;
    --urgent: #c0392b;

    /* Neutrals */
    --white: #ffffff;
    --text: #333333;
    --text-muted: #555555;
    --light-bg: #f9f9f9;
    --alt-bg: #f4f6f7;
    --border: #eeeeee;
    --border-dark: #dddddd;

    /* Footer palette */
    --footer-bg: #2c3e50;
    --footer-text: #ecf0f1;
    --footer-muted: #bdc3c7;
    --footer-dim: #95a5a6;
    --footer-rule: #34495e;
    --footer-heading: #3498db;

    /* Layout */
    --content-width: 1100px;
    --narrow-width: 900px;
    --radius: 8px;
    --radius-sm: 4px;
    --radius-pill: 20px;
}


/* === GLOBAL RESETS & BASE === */
*  { box-sizing: border-box; }

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: var(--accent);
    transition: color 0.3s;
}
a:hover { color: var(--accent-hover); }

h2 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 40px;
    font-size: clamp(1.8rem, 5vw, 2.4rem);
}


/* === URGENT BAR === */
.urgent-bar {
    background: var(--urgent);
    color: var(--white);
    padding: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 0.9rem;
}
.urgent-bar a {
    color: var(--white);
    text-decoration: underline;
    margin-left: 5px;
}


/* === HEADER & NAVIGATION === */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    z-index: 1001;
}
.logo-accent { color: var(--accent); }

.nav-list {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}
.nav-list a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
}
.nav-list a:hover { color: var(--accent); }

.nav-cta {
    background-color: var(--cta);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: bold;
}
.nav-cta:hover { background-color: var(--urgent); }

/* Dropdowns */
.dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    list-style: none;
    padding: 10px 0;
}
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
}
.dropdown-menu li:last-child a { border-bottom: none; }
.dropdown-menu li a:hover {
    background-color: var(--light-bg);
    color: var(--accent);
}

/* Mobile hamburger */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}
.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    margin: 5px 0;
    transition: 0.4s;
}


/* === HERO === */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)),
                url('/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 80px 20px 100px;
}
.hero h1 {
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    margin-bottom: 20px;
}
.hero p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    max-width: 600px;
    margin: 0 auto 30px;
}
.hero-cta {
    background: var(--cta);
    color: var(--white);
    padding: 15px 30px;
    font-size: 1.1em;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
}


/* === MAIN CONTENT LAYOUT === */
main {
    padding: 20px;
}

/* Default section sizing (homepage cards, etc.) */
section {
    padding: 60px 20px;
    max-width: var(--content-width);
    margin: 0 auto;
}

/* Narrower constraint for text-heavy service pages */
main section,
main > header {
    max-width: var(--narrow-width);
    margin-left: auto;
    margin-right: auto;
}

main h1 {
    color: var(--primary);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
    max-width: var(--narrow-width);
    margin-left: auto;
    margin-right: auto;
}
main h2 {
    color: var(--accent);
    margin-top: 30px;
}
main h3 {
    color: var(--primary);
    margin-top: 20px;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.full-bleed-bg {
    background-color: var(--alt-bg);
}


/* === SHARED CTA BUTTON === */
.cta-button {
    background-color: var(--cta);
    color: var(--white);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    margin-top: 20px;
    transition: background-color 0.3s;
}
.cta-button:hover {
    background-color: var(--urgent);
    color: var(--white);
}


/* === GRID SYSTEM === */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.tech-grid,
.lens-grid,
.service-grid,
.treatment-grid,
.symptom-grid,
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    text-align: center;
    margin-top: 20px;
}

.logo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}


/* === CARDS (shared base) === */
.card {
    background: var(--light-bg);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: transform 0.2s;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.card h3 {
    color: var(--accent);
    margin-top: 0;
}
.card-link {
    display: inline-block;
    margin-top: 15px;
    font-weight: bold;
}

/* Service-page card variants (shared pattern) */
.tech-card,
.lens-card,
.service-card,
.symptom-card,
.treatment-card,
.compare-col,
.info-card {
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: var(--radius);
    background: #fafafa;
}

.info-card {
    background: var(--light-bg);
    padding: 30px;
}
.info-card h3 {
    color: var(--accent);
    border-bottom: 2px solid var(--border-dark);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Comparison columns (scleral / surgery pages) */
.compare-col h3 {
    color: #e67e22;
    border-bottom: 2px solid #e67e22;
    padding-bottom: 10px;
    display: inline-block;
}
.compare-col.blue h3 {
    color: var(--accent);
    border-color: var(--accent);
}


/* === CALLOUT / HIGHLIGHT BOXES === */
.highlight-box {
    background-color: #eaf2f8;
    border-left: 5px solid var(--accent);
    padding: 15px;
    margin: 20px 0;
}

.alert-box {
    background-color: #f2dede;
    border: 1px solid #ebccd1;
    color: #a94442;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}


/* === TECH / BADGE / BOX ELEMENTS === */
.tech-highlight {
    background: var(--light-bg);
    border: 1px solid var(--border-dark);
    padding: 20px;
    border-radius: var(--radius);
    margin-top: 20px;
}

.tech-section {
    background: var(--light-bg);
    padding: 20px;
    border-radius: var(--radius);
    margin-top: 30px;
}

.tech-badge {
    background: #005596;
    color: var(--white);
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.8em;
    text-transform: uppercase;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}

.tech-box {
    background: var(--alt-bg);
    border: 1px solid #b0c4de;
    padding: 20px;
    border-radius: var(--radius);
    margin-top: 15px;
}
.tech-box strong { color: var(--accent); }

.tech-label {
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #777;
    margin-bottom: 5px;
    display: block;
}


/* === REVIEW TEASERS (homepage) === */
.review-teasers {
    max-width: 700px;
    margin: 40px auto 0;
    text-align: center;
}
.review-teasers blockquote {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.7;
    border-left: 4px solid var(--accent);
    padding: 20px 30px;
    margin: 0;
    background: var(--light-bg);
    border-radius: 0 var(--radius) var(--radius) 0;
}


/* === ABOUT / BIO PAGE === */
.bio-section {
    padding: 80px 20px 60px;
    max-width: 1200px;
    margin: 0 auto;
}
.bio-section header {
    text-align: center;
    margin-bottom: 40px;
}
.bio-section h1 {
    margin: 0 0 0.5em 0;
    font-size: clamp(2.2rem, 5vw, 3rem);
}
.bio-section .subtitle {
    margin: 0;
    font-size: 1.3rem;
    color: var(--accent);
    font-weight: 500;
}

.bio-container {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
    max-width: var(--content-width);
    margin: 40px auto 0;
}
.bio-image {
    flex: 0 0 400px;
    max-width: 400px;
    min-width: 300px;
}
.bio-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.bio-text {
    flex: 2;
}

.meet-doctor-section {
    padding: 60px 20px;
}
.doctor-highlights {
    list-style: none;
    padding: 0;
}
.doctor-highlights li {
    margin-bottom: 8px;
}


/* === INSURANCE PAGE === */
.insurance-hero {
    background: var(--alt-bg);
    padding: 40px;
    border-radius: var(--radius);
    text-align: center;
    margin-bottom: 40px;
    max-width: var(--content-width);
}

.plan-card.vision {
    border-top: 5px solid #1abc9c;
    background: var(--white);
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.plan-card.vision h3 { color: #16a085; }

.plan-card.medical {
    border-top: 5px solid var(--accent);
    background: var(--white);
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.plan-card.medical h3 { color: var(--accent); }

.financing-box {
    background: #fff8e1;
    border: 1px solid #ffe082;
    padding: 20px;
    border-radius: var(--radius);
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.financing-icon { font-size: 2em; }

.plan-name {
    background: #eee;
    padding: 8px 15px;
    border-radius: var(--radius-pill);
    font-size: 0.9em;
    font-weight: bold;
    color: var(--text-muted);
    display: inline-block;
}

.brand-item {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
    font-weight: bold;
    color: var(--text-muted);
}


/* === OPTICAL GALLERY: SAFETY EYEWEAR === */
.safety-highlight {
    background: var(--primary);
    color: var(--footer-text);
    padding: 30px;
    border-radius: var(--radius);
    margin-top: 30px;
}
.safety-highlight h2 {
    color: #f1c40f;
    border-bottom: 1px solid var(--text-muted);
    padding-bottom: 10px;
}
.safety-highlight ul {
    list-style-type: square;
    color: var(--border-dark);
}


/* === NEUROLENS PAGE === */
.symptom-list {
    list-style: none;
    padding: 0;
}
.symptom-list li {
    margin-bottom: 10px;
    font-weight: bold;
}
.symptom-item {
    padding: 10px 0;
}
.check-icon {
    color: var(--cta);
    margin-right: 10px;
    font-size: 1.2em;
}


/* === MYOPIA PAGE === */
.keyword-sub {
    font-size: 0.9em;
    color: #666;
    font-style: italic;
    display: block;
    margin-bottom: 10px;
}


/* === LOCATION / CONTACT PAGES === */
.info-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}
.icon {
    font-size: 1.5em;
    margin-right: 15px;
    color: var(--primary);
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.btn-book {
    background: var(--cta);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    flex: 1;
    text-align: center;
}
.btn-call {
    background: var(--primary);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    flex: 1;
    text-align: center;
}

.map-container {
    height: 100%;
    min-height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-dark);
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}


/* === SCLERAL LENSES === */
.lens-icon {
    font-size: 2em;
    display: block;
    margin-bottom: 10px;
}


/* === FAQ === */
.faq-item {
    margin-bottom: 25px;
}
.faq-item h3 {
    margin-bottom: 5px;
}


/* === FOOTER === */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 20px 40px;
    margin-top: 50px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px 60px;
}

.footer-col,
.footer-nav {
    flex: 1;
    min-width: 240px;
}

.footer-col h3,
.footer-nav h3 {
    color: var(--footer-heading);
    font-size: 1.25rem;
    margin-bottom: 18px;
    border-bottom: 2px solid var(--footer-rule);
    padding-bottom: 10px;
    display: inline-block;
}

.footer-col ul,
.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li,
.footer-nav li {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.footer-col a,
.footer-nav a {
    color: var(--footer-muted);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-col a:hover,
.footer-nav a:hover {
    color: var(--white);
    text-decoration: underline;
}

.nap-address {
    font-style: normal;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.call-btn {
    display: inline-block;
    background: var(--cta);
    color: var(--white) !important;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-weight: bold;
    margin: 15px 0 20px;
    transition: background 0.3s;
}
.call-btn:hover {
    background: var(--urgent);
}

.hours-info,
.payment-info,
.insurance-info {
    margin: 20px 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--footer-muted);
}
.hours-info strong,
.payment-info strong,
.insurance-info strong {
    color: var(--footer-text);
    display: block;
    margin-bottom: 6px;
    font-size: 1rem;
}

.payment-section {
    border-top: 1px solid var(--footer-rule);
    padding-top: 20px;
    margin-top: 15px;
}

.verify-note {
    display: block;
    margin-top: 12px;
    font-size: 0.88rem;
    color: var(--footer-dim);
    line-height: 1.45;
}
.verify-note a { color: var(--footer-muted); text-decoration: underline; }
.verify-note a:hover { color: var(--white); }

.footer-col:last-child > p:first-of-type {
    margin-top: 0;
}

.footer-bottom {
    border-top: 1px solid var(--footer-rule);
    padding-top: 25px;
    margin-top: 50px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--footer-dim);
}


/* ===================================================
   RESPONSIVE — consolidated into two breakpoints
   =================================================== */

/* Tablet / small desktop (≤ 900px) */
@media (max-width: 900px) {

    /* Mobile nav drawer */
    .mobile-menu-btn { display: block; }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: 0.3s;
        display: block;
        padding-top: 80px;
        overflow-y: auto;
        z-index: 1002;
    }
    .main-nav.active { right: 0; }

    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        z-index: 999;
    }
    .nav-overlay.active { display: block; }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    .nav-list li { width: 100%; }
    .nav-list a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid #f0f0f0;
        font-size: 1.1rem;
    }

    .dropdown { display: block; height: auto; }
    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background: var(--light-bg);
        padding-left: 20px;
    }
    .dropdown.active .dropdown-menu { display: block; }

    .nav-cta {
        text-align: center;
        margin: 20px;
        width: auto;
        display: inline-block;
    }

    /* Hamburger → X animation */
    .mobile-menu-btn.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .mobile-menu-btn.active .bar:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Footer stacking */
    .footer-container {
        flex-direction: column;
        gap: 50px;
        text-align: center;
    }
    .footer-col h3,
    .footer-nav h3 {
        display: block;
        margin: 0 auto 15px;
    }
    .call-btn {
        margin: 20px auto;
    }
    .payment-section {
        padding-top: 25px;
        margin-top: 20px;
    }
    .hours-info,
    .payment-info,
    .insurance-info {
        max-width: 380px;
        margin: 20px auto;
    }
    .verify-note {
        font-size: 0.85rem;
    }
}

/* Phone (≤ 768px) */
@media (max-width: 768px) {

    /* Stack all two-column grids */
    .tech-grid,
    .comparison-grid,
    .symptom-grid,
    .treatment-grid,
    .split-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Bio layout */
    .bio-container {
        flex-direction: column;
    }
}
