/* ==========================================================================
   DoctorAI WordPress Theme — main.css
   ========================================================================== */

/* ── Variables ── */
:root {
    --primary:      #00296B;
    --yellow:       #FFD500;
    --grey:         #EAEBEB;
    --text:         #111827;
    --muted:        #6B7280;
    --white:        #ffffff;
    --border:       #E5E7EB;
    --green:        #22C55E;
    --red:          #EF4444;
    --font:         'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --r:            12px;
    --r-lg:         16px;
    --r-xl:         24px;
    --r-full:       9999px;
    --shadow:       0 1px 3px rgba(0,0,0,.08);
    --shadow-md:    0 4px 12px rgba(0,0,0,.08);
    --shadow-lg:    0 10px 30px rgba(0,0,0,.1);
    --max-w:        1280px;
    --max-narrow:   860px;
    --max-medium:   1060px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
h1,h2,h3,h4 { line-height: 1.2; font-weight: 800; }

/* ── Container ── */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 1.5rem; }
.container-medium { max-width: var(--max-medium); margin: 0 auto; padding: 0 1.5rem; }

/* ── Navbar ── */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: var(--max-w);
    margin: 0 auto;
    gap: 1.5rem;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    flex-shrink: 0;
}
.nav-brand img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    overflow: hidden;
    object-fit: cover;
}
.nav-brand-text {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
}
.nav-brand-text span { color: var(--yellow); }
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    justify-content: flex-end;
}
.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    padding: 0.5rem 0.75rem;
    border-radius: var(--r);
    transition: background .15s, color .15s;
    white-space: nowrap;
    text-decoration: none;
}
.nav-links a:hover { background: var(--grey); color: var(--primary); }
.nav-links .btn-nav {
    background: var(--yellow);
    color: var(--primary);
    padding: 0.6rem 1.2rem;
    border-radius: var(--r-full);
    font-weight: 700;
    margin-left: 0.5rem;
}
.nav-links .btn-nav:hover { background: #e6c000; color: var(--primary); }
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
    padding: 0.5rem;
    border-radius: var(--r);
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 1.75rem;
    border-radius: var(--r-full);
    border: none;
    cursor: pointer;
    transition: opacity .15s, transform .15s;
    text-decoration: none;
    white-space: nowrap;
}
.btn:hover { opacity: 0.9; text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-yellow  { background: var(--yellow);  color: var(--primary); }
.btn-lg { font-size: 1.1rem; padding: 1rem 2rem; }

/* ── Section Spacing ── */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-grey { background: var(--grey); }
.section-white { background: var(--white); }
.section-navy { background: var(--primary); color: var(--white); }

/* ── Yellow Accent Strip ── */
.accent-strip {
    background: var(--yellow);
    color: var(--primary);
    text-align: center;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* ── Quick Facts Bar ── */
.quick-facts { background: var(--grey); padding: 1.75rem 0; border-bottom: 1px solid var(--border); }
.quick-facts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    background: var(--grey);
    border-radius: var(--r-xl);
    padding: 1.5rem 2rem;
}
.quick-fact-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 0.25rem; }
.quick-fact-value { font-weight: 700; font-size: 0.95rem; color: var(--text); }

/* ── Page Hero ── */
.page-hero {
    padding: 4.5rem 0 5rem;
    background: var(--grey);
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.page-hero.navy-bg { background: var(--primary); color: var(--white); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); margin-bottom: 1rem; }
.page-hero p  { font-size: 1.15rem; color: var(--muted); max-width: 680px; margin: 0 auto 1.5rem; line-height: 1.7; }
.page-hero.navy-bg p { color: rgba(255,255,255,.85); }
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(0,41,107,.08);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: var(--r-full);
    margin-bottom: 1rem;
}
.page-hero.navy-bg .hero-badge { background: rgba(255,255,255,.15); color: var(--white); }

/* ── Home Hero ── */
.home-hero {
    padding: 5rem 0 4rem;
    background: linear-gradient(135deg, rgba(234,235,235,.5) 0%, var(--white) 100%);
}
.home-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.home-hero h1 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); margin-bottom: 1rem; line-height: 1.1; }
.home-hero h1 .accent { color: var(--primary); }
.home-hero-lead { font-size: 1.1rem; color: var(--muted); margin-bottom: 1rem; line-height: 1.75; }
.home-hero-note {
    font-size: 0.875rem;
    color: var(--muted);
    border-left: 4px solid var(--yellow);
    padding-left: 1rem;
    margin-bottom: 2rem;
}
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0,41,107,.07);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
    border-radius: var(--r-full);
    margin-bottom: 1.25rem;
}
.live-dot {
    width: 8px; height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(0,41,107,.4); }
    50% { box-shadow: 0 0 0 6px rgba(0,41,107,.0); }
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 2.5rem; }
.hero-social-proof { font-size: 0.875rem; color: var(--muted); font-weight: 600; }
.hero-img { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); height: 480px; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.stat-item .stat-num { font-size: 1.75rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 0.2rem; }
.stat-item .stat-label { font-size: 0.78rem; font-weight: 600; color: var(--muted); }

/* ── Quick Facts Home ── */
.quick-facts-home-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    background: var(--grey);
    border-radius: var(--r-xl);
    padding: 1.5rem 2rem;
}
@media (max-width: 640px) {
    .quick-facts-home-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Service Cards ── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.service-card {
    background: var(--grey);
    border-radius: var(--r-lg);
    padding: 2rem 1.5rem;
    border: 2px solid transparent;
    transition: border-color .2s, background .2s, box-shadow .2s;
    text-decoration: none;
    display: block;
    color: var(--text);
    position: relative;
    overflow: hidden;
}
.service-card:hover { border-color: rgba(0,41,107,.2); background: var(--white); box-shadow: var(--shadow-md); text-decoration: none; }
.service-icon {
    width: 48px; height: 48px;
    background: var(--white);
    border-radius: var(--r);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}
.service-icon svg { width: 24px; height: 24px; stroke: var(--primary); stroke-width: 2; fill: none; }
.service-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.service-card p { font-size: 0.875rem; color: var(--muted); margin-bottom: 1rem; line-height: 1.6; }
.service-link { color: var(--primary); font-size: 0.875rem; font-weight: 700; }

/* ── Section Headings ── */
.section-title { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 1rem; }
.section-lead  { font-size: 1.05rem; color: var(--muted); max-width: 600px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3rem; }

/* ── Steps ── */
.steps-list { display: flex; flex-direction: column; gap: 1.5rem; }
.step-item { display: flex; gap: 1rem; align-items: flex-start; }
.step-num {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--primary); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1rem; flex-shrink: 0;
    box-shadow: var(--shadow-md);
}
.step-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.25rem; }
.step-desc { color: var(--muted); font-size: 0.9rem; }

/* ── Two Column Grid ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.two-col.center { align-items: center; }

/* ── Cards ── */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}
.card-grey { background: var(--grey); border-color: var(--border); box-shadow: none; }
.card-red  { background: rgba(239,68,68,.04); border-color: rgba(239,68,68,.2); }

/* ── Feature List ── */
.feature-list { display: flex; flex-direction: column; gap: 0.75rem; }
.feature-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.feature-icon { width: 18px; height: 18px; stroke: var(--primary); stroke-width: 2; fill: none; flex-shrink: 0; margin-top: 2px; }
.feature-text { font-size: 0.925rem; color: var(--text); }

/* ── Eligibility / Restriction List ── */
.criteria-list { display: flex; flex-direction: column; gap: 0.9rem; }
.criteria-item { display: flex; gap: 0.75rem; align-items: flex-start; }
.criteria-num {
    width: 24px; height: 24px; border-radius: 50%;
    background: rgba(0,41,107,.08); color: var(--primary);
    font-weight: 800; font-size: 0.8rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: 1px;
}
.restriction-item { display: flex; gap: 0.6rem; align-items: center; font-size: 0.9rem; color: var(--text); font-weight: 600; }
.dot-red { width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.dot-yellow { width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); flex-shrink: 0; }

/* ── Price Card ── */
.price-big { font-size: 3.5rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 0.75rem; }

/* ── Trust Section ── */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.trust-item { padding: 1rem; }
.trust-icon { width: 48px; height: 48px; stroke: rgba(255,255,255,.75); stroke-width: 2; fill: none; margin: 0 auto 1rem; }
.trust-item h4 { font-size: 1.05rem; margin-bottom: 0.4rem; color: var(--white); }
.trust-item p { font-size: 0.85rem; color: rgba(255,255,255,.75); }

/* ── States Grid ── */
.states-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.state-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.5rem;
    transition: border-color .2s;
}
.state-card:hover { border-color: rgba(0,41,107,.3); }
.state-icon { width: 32px; height: 32px; stroke: var(--primary); stroke-width: 2; fill: none; margin-bottom: 0.75rem; }
.state-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.state-card p { font-size: 0.82rem; color: var(--muted); }

/* ── Specialists Grid ── */
.specialists-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.specialist-tag {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    color: var(--text);
    transition: border-color .2s, color .2s;
}
.specialist-tag:hover { border-color: var(--primary); color: var(--primary); }

/* ── Three-col Stats ── */
.three-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.stat-card {
    background: var(--grey);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 1.75rem;
    text-align: center;
}
.stat-card-icon { width: 56px; height: 56px; background: rgba(0,41,107,.08); border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.stat-card-icon svg { width: 28px; height: 28px; stroke: var(--primary); stroke-width: 2; fill: none; }
.stat-card h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.stat-card p { font-size: 0.85rem; color: var(--muted); }

/* ── FAQ ── */
.faq-section { background: var(--white); padding: 5rem 0; }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
    width: 100%; background: none; border: none; text-align: left;
    padding: 1.25rem 0;
    font-family: var(--font); font-size: 1rem; font-weight: 600;
    color: var(--text); cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-q:hover { color: var(--primary); }
.faq-arrow { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; flex-shrink: 0; transition: transform .25s; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 0 1.25rem; color: var(--muted); font-size: 0.95rem; line-height: 1.75; }
.faq-a-inner a { color: var(--primary); font-weight: 600; }

/* ── App CTA ── */
.app-cta { background: var(--primary); color: var(--white); padding: 5rem 0; }
.app-cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: center; }
.app-cta h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 0.75rem; }
.app-cta p  { color: rgba(255,255,255,.8); margin-bottom: 1.75rem; font-size: 1rem; }
.app-badges { display: flex; gap: 1rem; flex-wrap: wrap; }
.app-badge img { height: 42px; width: auto; border-radius: 8px; }
.app-cta-img { width: 260px; }
.app-cta-img img { border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }

/* ── Footer ── */
.site-footer { background: var(--primary); color: rgba(255,255,255,.7); padding: 5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.25rem; text-decoration: none; }
.footer-brand img { width: 36px; height: 36px; border-radius: 10px; }
.footer-brand-text { font-size: 1.35rem; font-weight: 800; color: var(--white); }
.footer-brand-text span { color: var(--yellow); }
.footer-tagline { font-size: 0.875rem; margin-bottom: 1.25rem; line-height: 1.6; }
.footer-address { font-size: 0.85rem; line-height: 1.8; }
.footer-address a { color: rgba(255,255,255,.7); }
.footer-address a:hover { color: var(--yellow); }
.footer-socials { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.footer-socials a { color: rgba(255,255,255,.6); transition: color .15s; text-decoration: none; }
.footer-socials a:hover { color: var(--yellow); }
.footer-socials svg { width: 22px; height: 22px; fill: currentColor; display: block; }
.footer-col h4 { color: var(--white); font-size: 1rem; margin-bottom: 1.25rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col a { color: rgba(255,255,255,.7); font-size: 0.875rem; text-decoration: none; transition: color .15s; }
.footer-col a:hover { color: var(--yellow); text-decoration: none; }
.footer-badges { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-badges img { height: 40px; width: auto; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.8rem; }
.footer-bottom a { color: rgba(255,255,255,.6); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }
.footer-bottom-links { display: flex; gap: 1.5rem; }

/* ── Prose (T&C, Privacy) ── */
.prose h2 { font-size: 1.4rem; margin: 2.5rem 0 0.75rem; color: var(--text); font-weight: 800; }
.prose h3 { font-size: 1.15rem; margin: 2rem 0 0.5rem; color: var(--primary); font-weight: 700; }
.prose p  { margin-bottom: 1rem; color: var(--muted); font-size: 0.95rem; line-height: 1.8; }
.prose ul { margin-bottom: 1rem; }
.prose ul li { color: var(--muted); font-size: 0.95rem; line-height: 1.75; padding-left: 1rem; margin-bottom: 0.6rem; position: relative; }
.prose ul li::before { content: '•'; color: var(--primary); position: absolute; left: 0; font-weight: 700; }
.prose strong { color: var(--text); font-weight: 700; }
.prose a { color: var(--primary); font-weight: 600; }

/* ── Warning Box ── */
.warning-box { background: rgba(0,41,107,.04); border: 1px solid rgba(0,41,107,.15); border-radius: var(--r-xl); padding: 2rem; }
.warning-box h3 { color: var(--text); margin-bottom: 0.75rem; font-size: 1.1rem; display: flex; align-items: center; gap: 0.5rem; }
.notice-box { background: rgba(0,41,107,.04); border-left: 4px solid var(--yellow); border-radius: var(--r); padding: 1rem 1.25rem; font-size: 0.875rem; color: var(--muted); }

/* ── 404 ── */
.not-found { text-align: center; padding: 8rem 0; }
.not-found h1 { font-size: 5rem; color: var(--primary); line-height: 1; }
.not-found h2 { font-size: 1.75rem; margin: 1rem 0; }
.not-found p  { color: var(--muted); margin-bottom: 2rem; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .services-grid  { grid-template-columns: repeat(2, 1fr); }
    .trust-grid     { grid-template-columns: repeat(2, 1fr); }
    .footer-grid    { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .home-hero-grid { grid-template-columns: 1fr; }
    .hero-img       { height: 320px; }
    .stats-row      { grid-template-columns: repeat(4, 1fr); }
    .app-cta-inner  { grid-template-columns: 1fr; text-align: center; }
    .app-badges     { justify-content: center; }
}
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        gap: 0.25rem;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 0.75rem 1rem; border-radius: var(--r); }
    .nav-links .btn-nav { margin-left: 0; text-align: center; margin-top: 0.5rem; }
    .site-header { position: relative; }
    .mobile-menu-btn { display: block; }
    .navbar { position: relative; }
    .two-col      { grid-template-columns: 1fr; gap: 2rem; }
    .states-grid  { grid-template-columns: repeat(2, 1fr); }
    .specialists-grid { grid-template-columns: repeat(2, 1fr); }
    .three-stat-grid  { grid-template-columns: 1fr; }
    .quick-facts-grid { grid-template-columns: 1fr; }
    .stats-row    { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .section      { padding: 3.5rem 0; }
}
@media (max-width: 640px) {
    .services-grid { grid-template-columns: 1fr; }
    .trust-grid    { grid-template-columns: 1fr; }
    .footer-grid   { grid-template-columns: 1fr; }
    .specialists-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom { flex-direction: column; text-align: center; }
}
