/* ==========================================================================
   Dr. Yeshwant Solanki — Neuropsychiatrist site
   Design tokens
   ========================================================================== */
:root {
    --deep-green: #16362C;
    --mid-green: #2F6B52;
    --leaf-green: #4C8B6C;
    --sage: #A9C6B4;
    --mist: #E7F0E9;
    --off-white: #FAFBF9;
    --white: #FFFFFF;
    --ink: #182420;
    --ink-soft: #4B5A54;
    --gold: #B98A3E;
    --line: #D9E4DD;

    --serif: "Fraunces", Georgia, serif;
    --sans: "Public Sans", -apple-system, BlinkMacSystemFont, sans-serif;

    --max: 1160px;
    --radius: 6px;
    --radius-lg: 14px;

    /* Aliases used by page-level component styles (appointment/contact wizards) */
    --green-deep: var(--deep-green);
    --green-mid: var(--mid-green);
    --green-accent: var(--leaf-green);
    --green-line: var(--line);
    --bg: var(--off-white);
    --bg-alt: var(--mist);
    --text: var(--ink);
    --text-muted: var(--ink-soft);
    --font-display: var(--serif);
    --font-body: var(--sans);
    --grad-deep: linear-gradient(135deg, var(--deep-green), var(--mid-green));
    --shadow-soft: 0 10px 30px rgba(22, 54, 44, 0.08);
    --shadow-lift: 0 18px 44px rgba(22, 54, 44, 0.16);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--off-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

h1, h2, h3, h4 {
    font-family: var(--serif);
    color: var(--deep-green);
    line-height: 1.15;
    margin: 0 0 0.5em;
    font-weight: 500;
}
h1 { font-size: clamp(2.4rem, 4.2vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
    font-family: var(--sans);
    font-size: 0.9rem;
    color: var(--leaf-green);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.98rem;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s var(--ease, ease), box-shadow 0.3s var(--ease, ease), background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,0.25) 40%, transparent 60%);
    transform: translateX(-120%);
    transition: transform 0.6s ease;
}
.btn:hover::after { transform: translateX(120%); }
.btn-primary { background: var(--deep-green); color: var(--white); box-shadow: 0 4px 14px rgba(22, 54, 44, 0.18); }
.btn-primary:hover { background: var(--mid-green); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(22, 54, 44, 0.26); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 4px 14px rgba(22, 54, 44, 0.2); }
.btn-outline { background: transparent; color: var(--deep-green); border-color: var(--line); }
.btn-outline:hover { background: var(--deep-green); color: var(--white); border-color: var(--deep-green); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(22, 54, 44, 0.16); }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 251, 249, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--deep-green);
    color: var(--white);
    font-family: var(--serif);
    font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: transform 0.35s var(--ease, ease), background 0.35s ease;
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); background: var(--mid-green); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--serif); font-size: 1.02rem; color: var(--deep-green); }
.brand-role { font-size: 0.78rem; color: var(--ink-soft); }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a:not(.nav-cta) {
    font-size: 0.95rem;
    color: var(--ink);
    position: relative;
    padding-bottom: 4px;
    transition: color 0.25s ease;
}
.site-nav a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0; right: 100%; bottom: 0;
    height: 2px;
    background: var(--leaf-green);
    transition: right 0.3s var(--ease, ease);
}
.site-nav a.active { color: var(--deep-green); font-weight: 600; }
.site-nav a.active::after { right: 0; background: var(--deep-green); }
.site-nav a:not(.nav-cta):hover { color: var(--mid-green); }
.site-nav a:not(.nav-cta):hover::after { right: 0; }
.nav-cta {
    background: var(--deep-green);
    color: var(--white) !important;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 600;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.nav-cta:hover { background: var(--mid-green); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(22, 54, 44, 0.22); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--deep-green); display: block; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 60px;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}
.hero-copy p.lede { font-size: 1.12rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.hero-figure {
    position: relative;
    justify-self: center;
    width: min(340px, 100%);
}
.hero-figure .blob {
    position: absolute;
    inset: -6%;
    background: var(--sage);
    border-radius: 44% 56% 62% 38% / 48% 42% 58% 52%;
    z-index: 0;
}
.hero-figure img {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 340 / 420;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 44% 56% 62% 38% / 48% 42% 58% 52%;
    border: 6px solid var(--white);
}

.credentials-strip {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-top: 56px;
}
.credentials-strip .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 48px;
    padding: 22px 28px;
    justify-content: flex-start;
}
.credentials-strip span {
    font-size: 0.92rem;
    color: var(--ink-soft);
    font-weight: 500;
    transition: color 0.25s ease;
}
.credentials-strip span:hover { color: var(--deep-green); }
.credentials-strip strong { color: var(--deep-green); }

/* ==========================================================================
   Section shell
   ========================================================================== */
.section { padding: 84px 0; }
.section-alt { background: var(--mist); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Specialties — editorial list, not card grid */
.specialty-list {
    border-top: 1px solid var(--line);
}
.specialty-row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
    padding: 28px 20px;
    margin: 0 -20px;
    border-bottom: 1px solid var(--line);
    border-radius: var(--radius);
    transition: background 0.3s ease, padding 0.3s ease;
}
.specialty-row::before {
    content: "";
    position: absolute;
    left: 0; top: 14px; bottom: 14px;
    width: 3px;
    background: var(--leaf-green);
    border-radius: 3px;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.35s var(--ease, ease);
}
.specialty-row:hover {
    background: var(--mist);
    padding-left: 32px;
}
.specialty-row:hover::before { transform: scaleY(1); }
.specialty-row h3 { margin: 0; color: var(--deep-green); transition: color 0.3s ease; }
.specialty-row:hover h3 { color: var(--mid-green); }
.specialty-row p { margin: 0; }

/* Approach / philosophy */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.approach-item {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: transform 0.35s var(--ease, ease), box-shadow 0.35s var(--ease, ease), border-color 0.35s ease;
}
.approach-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
    border-color: var(--sage);
}
.approach-item .num {
    font-family: var(--serif);
    color: var(--sage);
    font-size: 2.4rem;
    font-weight: 500;
    display: block;
    margin-bottom: 10px;
    transition: color 0.35s ease;
}
.approach-item:hover .num { color: var(--leaf-green); }
.approach-item h3 { margin-bottom: 8px; }

/* CTA band */
.cta-band {
    position: relative;
    overflow: hidden;
    background: var(--deep-green);
    background-image: linear-gradient(135deg, var(--deep-green), var(--mid-green));
    color: var(--white);
    padding: 56px 40px;
    border-radius: var(--radius-lg);
}
.cta-band::before, .cta-band::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}
.cta-band::before {
    width: 260px; height: 260px;
    background: rgba(169, 198, 180, 0.35);
    top: -100px; right: -60px;
}
.cta-band::after {
    width: 220px; height: 220px;
    background: rgba(255, 255, 255, 0.1);
    bottom: -110px; left: -40px;
}
.cta-band-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    max-width: none;
    padding: 0;
}
.cta-band h2 { color: var(--white); margin: 0; }
.cta-band .btn-primary { background: var(--white); color: var(--deep-green); box-shadow: 0 4px 14px rgba(0,0,0,0.15); }
.cta-band .btn-primary:hover { background: var(--mist); }

/* ==========================================================================
   Doctor page
   ========================================================================== */
.doctor-hero {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 56px;
    align-items: start;
    padding: 60px 0;
}
.doctor-hero > div:first-child { overflow: hidden; border-radius: var(--radius-lg); }
.doctor-hero img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 20%;
    border-radius: var(--radius-lg);
    transition: transform 0.5s var(--ease, ease);
}
.doctor-hero > div:first-child:hover img { transform: scale(1.05); }
.credential-line {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
    transition: padding-left 0.25s ease, border-color 0.25s ease;
}
.credential-line:hover { padding-left: 6px; border-color: var(--sage); }
.credential-line .label { color: var(--deep-green); font-weight: 600; min-width: 110px; }

.timeline { border-left: 2px solid var(--sage); margin-left: 6px; padding-left: 32px; }
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
    content: "";
    position: absolute;
    left: -38px;
    top: 4px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--mid-green);
    border: 3px solid var(--mist);
    transition: transform 0.3s var(--ease, ease), background 0.3s ease;
}
.timeline-item:hover::before { transform: scale(1.35); background: var(--leaf-green); }
.timeline-item .years { color: var(--leaf-green); font-weight: 600; font-size: 0.88rem; }

.skills-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.skills-cloud span {
    border: 1px solid var(--line);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.88rem;
    color: var(--deep-green);
    background: var(--white);
    cursor: default;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.skills-cloud span:hover {
    background: var(--deep-green);
    color: var(--white);
    border-color: var(--deep-green);
    transform: translateY(-2px);
}

/* ==========================================================================
   Gallery page
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.gallery-item {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    background: var(--mist);
    border: 1px dashed var(--sage);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--leaf-green);
    font-size: 0.9rem;
    text-align: center;
    padding: 16px;
    transition: transform 0.3s var(--ease, ease), border-style 0.2s ease, border-color 0.3s ease, background 0.3s ease;
}
.gallery-item:hover {
    transform: translateY(-4px);
    border-style: solid;
    border-color: var(--leaf-green);
    background: var(--white);
}
.gallery-item.has-image {
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--sage);
    position: relative;
}
.gallery-item.has-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    border-radius: var(--radius-lg);
    transition: transform 0.4s var(--ease, ease);
}
.gallery-item.has-image:hover img {
    transform: scale(1.05);
}
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 16px 10px;
    background: linear-gradient(to top, rgba(22, 54, 44, 0.88) 0%, rgba(22, 54, 44, 0.35) 75%, transparent 100%);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: left;
    z-index: 2;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--deep-green);
    color: var(--mist);
    margin-top: 60px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    padding: 56px 28px 36px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { color: var(--white); font-size: 0.92rem; margin-bottom: 4px; }
.footer-col a, .footer-col span { color: var(--sage); font-size: 0.92rem; }
.footer-col a { position: relative; width: fit-content; transition: color 0.25s ease; }
.footer-col a::after {
    content: "";
    position: absolute;
    left: 0; right: 100%; bottom: -2px;
    height: 1px;
    background: var(--white);
    transition: right 0.3s var(--ease, ease);
}
.footer-col a:hover { color: var(--white); }
.footer-col a:hover::after { right: 0; }
.footer-brand .brand-mark { margin-bottom: 6px; }
.footer-brand p { color: var(--mist); margin: 0 0 4px; font-size: 0.92rem; }
.footer-tag { color: var(--sage) !important; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 18px 28px;
    font-size: 0.82rem;
    color: var(--sage);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
    .hero-inner, .doctor-hero { grid-template-columns: 1fr; }
    .hero-figure { order: -1; margin-bottom: 20px; }
    .approach-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .nav-toggle { display: flex; }
    .site-nav {
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        border-bottom: 1px solid var(--line);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }
    .site-nav.open { max-height: 320px; }
    .site-nav a { padding: 14px 28px; width: 100%; border-bottom: 1px solid var(--line); }
    .nav-cta { margin: 14px 28px; }
    .specialty-row { grid-template-columns: 1fr; gap: 8px; }
    .credentials-strip .wrap { justify-content: flex-start; }
    .gallery-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .cta-band-inner { flex-direction: column; align-items: flex-start; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--mid-green);
    outline-offset: 2px;
}
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.footer-admin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.footer-admin-link:hover {
    opacity: 1;
}