/* ==========================================================================
   Haaroon Speech and Hearing Clinic — stylesheet
   Identity: the audiogram. Blue = left ear, red = right ear (used for meaning
   only), banana amber = the speech zone. Bricolage Grotesque for headings,
   Atkinson Hyperlegible (designed for low-vision readers) for text.
   ========================================================================== */

:root {
    --ink: #1D1B4B;          /* indigo from the clinic signboard */
    --ink-2: #4A4F6E;
    --gold: #F2D35B;         /* logo gold */
    --paper: #F6F9FC;
    --white: #FFFFFF;
    --mist: #E8EFF7;
    --grid: #C9D6E3;
    --blue: #2457C5;
    --blue-dark: #183F96;
    --blue-soft: #E3ECFB;
    --red: #D13A3F;
    --banana: #FFD36E;
    --banana-soft: #FFF3CF;
    --ok: #1E7A4C;

    --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
    --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;

    --r-sm: 10px;
    --r-md: 18px;
    --r-lg: 28px;
    --wrap: 1180px;
    --gutter: clamp(16px, 4vw, 40px);
    --section: clamp(64px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
}
img, svg { max-width: 100%; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--banana); color: var(--ink); }

h1, h2, h3, h4 {
    font-family: var(--display);
    font-weight: 650;
    line-height: 1.1;
    letter-spacing: -0.015em;
    margin: 0 0 .5em;
    text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.12rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 38em; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--tint { background: var(--white); }
.section--mist { background: var(--mist); }
.section__head { max-width: 46rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head p { color: var(--ink-2); font-size: 1.12rem; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); z-index: 100; }
.skip-link:focus { top: 12px; }
.icon { flex: none; vertical-align: -0.2em; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .55em;
    font: 700 1rem/1 var(--body);
    padding: .85em 1.35em;
    border-radius: 999px;
    border: 2px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s;
}
.btn--lg { font-size: 1.08rem; padding: 1em 1.6em; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); color: #fff; }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--banana { background: var(--banana); color: var(--ink); }
.btn--banana:hover { background: #FFC53D; color: var(--ink); }
.btn--ghost-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.link-more { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .3em; }
.link-more:hover { text-decoration: underline; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--ink); color: #DCE5F2; font-size: .9rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 16px; padding-block: 8px; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar__item { display: inline-flex; gap: 6px; align-items: center; }
.topbar__links { display: inline-flex; gap: 22px; }

.site-header {
    position: sticky; top: 0; z-index: 50;
    border-bottom: 1px solid var(--grid);
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   trap the fixed-position mobile menu inside the header box. */
.site-header::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: rgba(246, 249, 252, .92);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    backdrop-filter: saturate(1.4) blur(10px);
}
.site-header__inner { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand__mark { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); display: grid; place-items: center; flex: none; }
.brand__mark img { width: 28px; height: auto; display: block; }
.brand--light .brand__mark { background: rgba(255,255,255,.08); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; font-family: var(--display); }
.brand__text strong { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; }
.brand__text span { font-size: .84rem; color: var(--ink-2); font-weight: 500; }
.brand--light { color: #fff; }
.brand--light .brand__text span { color: #AFC0DA; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.site-nav__cta { white-space: nowrap; }
.site-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.site-nav ul a {
    display: block; padding: 8px 9px; border-radius: 8px;
    color: var(--ink); text-decoration: none; font-weight: 700; font-size: .96rem; white-space: nowrap;
}
.site-nav ul a:hover { background: var(--mist); color: var(--ink); }
.site-nav ul a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -3px 0 var(--blue); border-radius: 8px 8px 0 0; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: var(--ink); padding: 8px; cursor: pointer; }
.nav-toggle__close { display: none; }

@media (max-width: 1260px) {
    .nav-toggle { display: inline-flex; }
    .site-nav {
        position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw);
        flex-direction: column; align-items: stretch; gap: 20px;
        background: var(--white); padding: 96px 24px 32px;
        box-shadow: -20px 0 60px rgba(29, 27, 75, .18);
        transform: translateX(105%); transition: transform .25s ease;
        z-index: 40; overflow-y: auto;
    }
    .site-nav ul { flex-direction: column; }
    .site-nav ul a { padding: 12px 10px; font-size: 1.08rem; border-bottom: 1px solid var(--mist); border-radius: 0; }
    .site-nav ul a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--blue); }
    .nav-open .site-nav { transform: none; }
    .nav-open .nav-toggle { position: relative; z-index: 45; }
    .nav-open .nav-toggle__open { display: none; }
    .nav-open .nav-toggle__close { display: inline; }
    .site-nav__cta { justify-content: center; }
    .site-nav { visibility: hidden; transition: transform .25s ease, visibility 0s .25s; }
    .nav-open .site-nav { visibility: visible; transition: transform .25s ease; }
}
/* Malayalam labels are longer: use the slide-out menu up to 1420px */
@media (max-width: 1420px) {
    html[lang="ml"] .nav-toggle { display: inline-flex; }
    html[lang="ml"] .site-nav {
        position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw);
        flex-direction: column; align-items: stretch; gap: 20px;
        background: var(--white); padding: 96px 24px 32px;
        box-shadow: -20px 0 60px rgba(29, 27, 75, .18);
        transform: translateX(105%); transition: transform .25s ease;
        z-index: 40; overflow-y: auto;
    }
    html[lang="ml"] .site-nav ul { flex-direction: column; }
    html[lang="ml"] .site-nav ul a { padding: 12px 10px; font-size: 1.08rem; border-bottom: 1px solid var(--mist); border-radius: 0; }
    html[lang="ml"] .site-nav ul a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--blue); }
    html[lang="ml"] .nav-open .site-nav { transform: none; }
    html[lang="ml"] .nav-open .nav-toggle { position: relative; z-index: 45; }
    html[lang="ml"] .nav-open .nav-toggle__open { display: none; }
    html[lang="ml"] .nav-open .nav-toggle__close { display: inline; }
    html[lang="ml"] .site-nav__cta { justify-content: center; }
    html[lang="ml"] .site-nav { visibility: hidden; transition: transform .25s ease, visibility 0s .25s; }
    html[lang="ml"] .nav-open .site-nav { visibility: visible; transition: transform .25s ease; }
}

@media (max-width: 640px) {
    .topbar__item { display: none; }
    .topbar__inner { justify-content: center; }
}

/* ---------- Home hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 84px) clamp(48px, 7vw, 96px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 11ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.hero__checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--ink-2); }
.hero__checks li { display: flex; gap: 10px; align-items: flex-start; }
.hero__checks .icon { color: var(--ok); margin-top: 3px; }
@media (max-width: 900px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero h1 { max-width: 14ch; }
}

/* Speech banana audiogram */
.banana { margin: 0; background: var(--white); border-radius: var(--r-lg); padding: clamp(10px, 2vw, 22px); border: 1px solid var(--grid); position: relative; }
.banana svg { display: block; width: 100%; height: auto; font-family: var(--body); }
.banana__grid line { stroke: var(--mist); stroke-width: 1; }
.banana__grid line.zero { stroke: var(--grid); stroke-width: 1.5; }
.banana__grid text { fill: var(--ink-2); font-size: 12px; }
.banana__grid text.axis { font-size: 12.5px; font-weight: 700; fill: var(--ink); }
.banana__shape { fill: var(--banana); fill-opacity: .55; stroke: #E9B53C; stroke-width: 1.5; }
.banana__sounds text { font-family: var(--display); font-weight: 800; font-size: 19px; fill: var(--ink); }
.banana__note line { stroke: var(--red); stroke-width: 1.5; stroke-dasharray: 3 4; }
.banana__note text { fill: var(--red); font-size: 13px; font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
    .banana__shape { animation: banana-in .9s ease-out both; transform-origin: 50% 40%; }
    .banana__sounds text { animation: sound-in .45s ease-out both; animation-delay: calc(.6s + var(--i) * 70ms); }
    .banana__note { animation: fade .5s ease-out both; animation-delay: 2.4s; }
}
@keyframes banana-in { from { opacity: 0; transform: scaleY(.6); } }
@keyframes sound-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- Stats strip ---------- */
.stats { border-block: 1px solid var(--grid); background: var(--white); }
.stats__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.stats__list li { padding: 28px 24px; border-left: 1px solid var(--mist); }
.stats__list li:first-child { border-left: 0; padding-left: 0; }
.stats__value { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -0.02em; line-height: 1.1; }
.stats__label { color: var(--ink-2); }
@media (max-width: 760px) {
    .stats__list { grid-template-columns: 1fr 1fr; }
    .stats__list li { border-left: 0; padding-left: 0; border-top: 1px solid var(--mist); }
    .stats__list li:nth-child(-n+2) { border-top: 0; }
}

/* ---------- Service index (two columns, plain lists) ---------- */
.svc-index { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); }
.svc-index__col h3 { display: flex; align-items: center; gap: 12px; font-size: 1.5rem; padding-bottom: 16px; border-bottom: 3px solid var(--ink); margin-bottom: 0; }
.svc-index__col h3 .dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.svc-index__col--hearing h3 .dot { background: var(--blue); }
.svc-index__col--speech h3 .dot { background: var(--banana); box-shadow: inset 0 0 0 2px #E9B53C; }
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc-list a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 18px 0; border-bottom: 1px solid var(--grid); text-decoration: none; color: var(--ink); }
.svc-list strong { font-family: var(--display); font-size: 1.15rem; font-weight: 650; }
.svc-list span { grid-column: 1; color: var(--ink-2); font-size: .98rem; }
.svc-list .icon { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--grid); transition: color .15s, transform .15s; }
.svc-list a:hover strong { color: var(--blue); }
.svc-list a:hover .icon { color: var(--blue); transform: translateX(3px); }
@media (max-width: 860px) { .svc-index { grid-template-columns: 1fr; } }

/* ---------- Split feature (text + aside) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.ticklist { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 10px; }
.ticklist li { display: flex; gap: 12px; align-items: flex-start; }
.ticklist .icon { color: var(--blue); margin-top: 4px; }

/* ---------- Journey (true sequence: numbered) ---------- */
.journey { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.journey li { counter-increment: step; position: relative; padding: 0 24px 0 0; }
.journey li::before {
    content: counter(step);
    display: grid; place-items: center;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--white); border: 2px solid var(--ink);
    font: 800 1.2rem/1 var(--display);
    margin-bottom: 18px; position: relative; z-index: 1;
}
.journey li::after { content: ""; position: absolute; top: 24px; left: 48px; right: 0; height: 2px; background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 12px); }
.journey li:last-child::after { display: none; }
.journey h3 { font-size: 1.2rem; }
.journey p { color: var(--ink-2); margin: 0; }
@media (max-width: 860px) {
    .journey { grid-template-columns: 1fr; gap: 28px; }
    .journey li { padding: 0 0 0 68px; }
    .journey li::before { position: absolute; left: 0; top: 0; margin: 0; }
    .journey li::after { left: 23px; top: 52px; bottom: -28px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--ink) 0 6px, transparent 6px 12px); }
}

/* ---------- Brands ---------- */
.brands { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.brands li { font-family: var(--display); font-weight: 650; font-size: 1.05rem; padding: 10px 18px; border: 1.5px solid var(--grid); border-radius: 999px; background: var(--white); }
.brands small { font-family: var(--body); font-weight: 400; color: var(--ink-2); font-size: .82rem; margin-left: 6px; }

/* ---------- Hearing aid styles ---------- */
.styles-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--grid); }
.styles-list li { display: grid; grid-template-columns: 84px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--grid); align-items: start; }
.styles-list .code { font: 800 1.15rem/1 var(--display); background: var(--blue-soft); color: var(--blue-dark); border-radius: var(--r-sm); padding: 14px 0; text-align: center; letter-spacing: .02em; }
.styles-list h3 { margin-bottom: .25em; font-size: 1.18rem; }
.styles-list p { margin: 0; color: var(--ink-2); }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; list-style: none; padding: 0; margin: 0; }
.team__avatar { aspect-ratio: 1; border-radius: var(--r-md); background: var(--mist); display: grid; place-items: center; margin-bottom: 16px; overflow: hidden; position: relative; }
.team__avatar span { font: 800 2.4rem/1 var(--display); color: var(--blue-dark); }
.team__avatar::after { content: "Photo"; position: absolute; bottom: 10px; right: 12px; font-size: .75rem; color: var(--ink-2); }
.team h3 { font-size: 1.12rem; margin-bottom: .2em; }
.team p { margin: 0; font-size: .95rem; color: var(--ink-2); }
.team .quals { font-weight: 700; color: var(--ink); margin: 4px 0; }
@media (max-width: 960px) { .team { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .team { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; }
.quote { margin: 0; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-md); background: var(--white); border: 1px solid var(--grid); display: flex; flex-direction: column; }
.quote blockquote { margin: 0 0 20px; font-size: 1.08rem; }
.quote--lead { grid-row: span 2; background: var(--ink); color: #fff; border: 0; justify-content: space-between; }
.quote--lead blockquote { font-family: var(--display); font-size: clamp(1.35rem, 2.4vw, 1.85rem); font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; }
.quote figcaption { margin-top: auto; font-size: .95rem; color: var(--ink-2); }
.quote figcaption strong { display: block; color: var(--ink); }
.quote--lead figcaption, .quote--lead figcaption strong { color: #C9D6EA; }
.quote--lead figcaption strong { color: #fff; }
.quotes__more { display: grid; gap: 28px; }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } .quote--lead { grid-row: auto; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--grid); }
.faq details { border-bottom: 1px solid var(--grid); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-family: var(--display); font-weight: 650; font-size: 1.15rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -9px; border-right: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 20px; margin: 0; color: var(--ink-2); max-width: 46em; }

/* ---------- Article cards (blog) ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; list-style: none; margin: 0; padding: 0; }
.post-card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); padding-top: 18px; border-top: 3px solid var(--ink); }
.post-card .meta { font-size: .9rem; color: var(--ink-2); margin-bottom: 10px; }
.post-card .tag { color: var(--blue-dark); font-weight: 700; }
.post-card h3 { font-size: 1.28rem; }
.post-card p { color: var(--ink-2); }
.post-card a:hover h3 { color: var(--blue); text-decoration: underline; text-underline-offset: .15em; }
@media (max-width: 860px) { .posts { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #fff; padding-block: clamp(48px, 7vw, 88px); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 48px 40px; }
.cta-band__inner { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #C9D6EA; font-size: 1.1rem; margin: 0; max-width: 34em; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
@media (max-width: 860px) { .cta-band__inner { grid-template-columns: 1fr; } .cta-band__actions { justify-content: flex-start; } }

/* ---------- Sub-page hero ---------- */
.page-hero { padding-block: clamp(40px, 6vw, 80px) clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--grid); background-color: var(--white); background-image: linear-gradient(var(--mist) 1px, transparent 1px), linear-gradient(90deg, var(--mist) 1px, transparent 1px); background-size: 64px 48px; background-position: -1px -1px; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 18ch; }
.crumbs { font-size: .92rem; color: var(--ink-2); margin-bottom: 18px; }
.crumbs a { color: var(--ink-2); }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- Service detail ---------- */
.detail { display: grid; grid-template-columns: 1fr 340px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.detail__main h2 { font-size: 1.6rem; margin-top: 1.6em; }
.detail__main h2:first-child { margin-top: 0; }
.aside-card { position: sticky; top: 100px; background: var(--white); border: 1px solid var(--grid); border-radius: var(--r-md); padding: 26px; }
.aside-card dl { margin: 0 0 20px; }
.aside-card dt { font-weight: 700; margin-top: 14px; }
.aside-card dd { margin: 2px 0 0; color: var(--ink-2); }
.aside-card .btn { width: 100%; justify-content: center; margin-top: 10px; }
@media (max-width: 960px) { .detail { grid-template-columns: 1fr; } .aside-card { position: static; } }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips a { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-dark); text-decoration: none; font-weight: 700; font-size: .95rem; }
.chips a:hover { background: var(--blue); color: #fff; }

/* ---------- Conditions ---------- */
.cond { display: grid; grid-template-columns: 260px 1fr; gap: clamp(24px, 4vw, 56px); padding-block: 40px; border-top: 1px solid var(--grid); scroll-margin-top: 100px; }
.cond h2 { font-size: 1.7rem; }
.cond__signs { background: var(--banana-soft); border-radius: var(--r-md); padding: 20px 24px; margin-top: 16px; }
.cond__signs h3 { font-size: 1rem; font-family: var(--body); font-weight: 700; margin-bottom: 8px; }
.cond__signs ul { margin: 0; padding-left: 1.1em; }
.cond__body p { max-width: 42em; }
.cond__links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.toc a { display: inline-block; padding: 7px 14px; border: 1.5px solid var(--grid); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .95rem; background: var(--white); }
.toc a:hover { border-color: var(--blue); color: var(--blue); }
@media (max-width: 760px) { .cond { grid-template-columns: 1fr; } }

/* ---------- Accreditation ---------- */
.accred { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; list-style: none; margin: 0; padding: 0; }
.accred li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 24px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--grid); }
.accred .seal { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-dark); }
.accred h3 { font-size: 1.15rem; margin-bottom: .2em; }
.accred p { margin: 0; color: var(--ink-2); font-size: .96rem; }
@media (max-width: 760px) { .accred { grid-template-columns: 1fr; } }

/* ---------- Simple blocks ---------- */
.blocks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; list-style: none; padding: 0; margin: 0; }
.blocks li { padding: 24px 0; border-top: 1px solid var(--grid); }
.blocks h3 { font-size: 1.2rem; }
.blocks p { color: var(--ink-2); margin: 0; }
@media (max-width: 760px) { .blocks { grid-template-columns: 1fr; } }

.panel { background: var(--white); border: 1px solid var(--grid); border-radius: var(--r-md); padding: clamp(24px, 3vw, 36px); }
.panel--banana { background: var(--banana-soft); border-color: #F3D98C; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 700; font-size: .98rem; }
.opt { font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea {
    font: inherit; color: var(--ink);
    padding: 12px 14px; border: 1.5px solid #AFC0D4; border-radius: var(--r-sm);
    background: var(--white); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.field [aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 3px #FBE3E4; }
.field--choice { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.field--choice legend { width: 100%; margin-bottom: 4px; }
.field--choice label { font-weight: 400; display: inline-flex; gap: 8px; align-items: center; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--ink-2); }
.consent input, .field--choice input { width: 20px; height: 20px; accent-color: var(--blue); flex: none; margin-top: 2px; }
.form__note { font-size: .9rem; color: var(--ink-2); margin: 0; }
.hp { position: absolute; left: -9999px; }
.notice { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--r-sm); margin-bottom: 20px; }
.notice p, .notice ul { margin: 4px 0 0; }
.notice--ok { background: #E3F4EA; color: #134D31; }
.notice--error { background: #FBE3E4; color: #7D1C20; display: block; }
.notice--error ul { padding-left: 1.2em; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 18px; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.contact-list .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft); color: var(--blue-dark); display: grid; place-items: center; }
.contact-list strong { display: block; }
.map { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--grid); aspect-ratio: 16 / 9; background: var(--mist); display: grid; place-items: center; color: var(--ink-2); text-align: center; padding: 20px; }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Article ---------- */
.prose { max-width: 42rem; font-size: 1.12rem; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose p { margin-bottom: 1.1em; }
.article-meta { color: var(--ink-2); margin-top: 8px; }

/* ---------- Online hearing check ---------- */
.hc { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 960px) { .hc { grid-template-columns: 1fr; } }
.hc__stage { background: var(--white); border: 1px solid var(--grid); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 40px); min-height: 420px; }
.hc__step[hidden] { display: none; }
.hc__stage h2 { font-size: 1.8rem; }
[tabindex="-1"]:focus { outline: none; }
.hc__ear { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; padding: 6px 14px; border-radius: 999px; margin-bottom: 14px; }
.hc__ear--right { background: #FBE3E4; color: #8E2125; }
.hc__ear--left { background: var(--blue-soft); color: var(--blue-dark); }
.hc__freq { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; letter-spacing: -0.03em; margin: 8px 0 4px; }
.hc__progress { height: 6px; background: var(--mist); border-radius: 99px; overflow: hidden; margin: 18px 0 24px; }
.hc__progress span { display: block; height: 100%; width: 0; background: var(--blue); transition: width .3s; }
.hc__answers { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.hc__playing { display: inline-flex; gap: 4px; align-items: flex-end; height: 22px; margin-left: 8px; vertical-align: middle; }
.hc__playing i { width: 4px; background: var(--blue); border-radius: 2px; height: 30%; }
.is-playing .hc__playing i { animation: bars .6s ease-in-out infinite alternate; }
.is-playing .hc__playing i:nth-child(2) { animation-delay: .15s; }
.is-playing .hc__playing i:nth-child(3) { animation-delay: .3s; }
@keyframes bars { to { height: 100%; } }
@media (prefers-reduced-motion: reduce) { .is-playing .hc__playing i { animation: none; height: 70%; } }
.hc__chart { margin: 0; }
.hc__chart svg { display: block; width: 100%; height: auto; background: var(--white); border-radius: var(--r-lg); border: 1px solid var(--grid); }
.hc__legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 12px; font-size: .95rem; color: var(--ink-2); }
.hc__legend b { font-family: var(--display); font-size: 1.1rem; margin-right: 4px; }
.hc__legend .r { color: var(--red); }
.hc__legend .l { color: var(--blue); }
.hc__result { margin-top: 8px; }
.hc__result h3 { font-size: 1.5rem; }
.hc__disclaimer { font-size: .92rem; color: var(--ink-2); border-left: 3px solid var(--banana); padding-left: 14px; margin-top: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: #15133A; color: #C2CFE3; padding-top: clamp(56px, 7vw, 88px); font-size: .97rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.site-footer__about p { margin-top: 18px; max-width: 30em; }
.site-footer__h { font-family: var(--body); font-size: 1rem; font-weight: 700; color: #fff; letter-spacing: 0; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer__loc { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.site-footer__loc .icon { margin-top: 3px; color: var(--banana); }
.site-footer__hours { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 6px 0; border-top: 1px solid rgba(255,255,255,.08); }
.badges { margin-top: 18px !important; }
.badges li { display: inline-flex; gap: 8px; align-items: center; color: #fff; }
.badges .icon { color: var(--banana); }
.site-footer__base { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.1); padding-block: 24px 96px; font-size: .9rem; }
.site-footer__base p { margin: 0; max-width: 40em; }
.site-footer__legal, .social { display: flex !important; flex-wrap: wrap; gap: 18px !important; }
@media (max-width: 960px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Quick contact ---------- */
.quick-contact { position: fixed; right: 20px; bottom: 20px; z-index: 30; display: flex; flex-direction: column; gap: 10px; }
.quick-contact a { display: inline-flex; align-items: center; gap: 8px; padding: 12px; border-radius: 999px; text-decoration: none; font-weight: 700; color: #fff; box-shadow: 0 6px 20px rgba(29,27,75,.22); }
.quick-contact span { display: none; }
.quick-contact__wa { background: #1F8F4E; }
.quick-contact__call { background: var(--ink); }
.quick-contact__book { display: none !important; }
.quick-contact a:hover { color: #fff; filter: brightness(1.1); }
@media (max-width: 760px) {
    .quick-contact { left: 0; right: 0; bottom: 0; flex-direction: row; gap: 0; background: var(--white); border-top: 1px solid var(--grid); padding: 8px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
    .quick-contact a { flex: 1; justify-content: center; border-radius: 12px; box-shadow: none; margin: 0 4px; padding: 11px 6px; }
    .quick-contact span { display: inline; }
    .quick-contact__book { display: inline-flex !important; background: var(--blue); }
}

/* Preview-only banner (static review build) */
.preview-note { background: var(--banana); color: var(--ink); text-align: center; font-size: .9rem; padding: 6px 12px; }

@media print {
    .topbar, .site-header, .quick-contact, .cta-band, .site-footer { display: none; }
    body { background: #fff; }
}

/* ---------- Director profile ---------- */
.profile { display: grid; grid-template-columns: 320px 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.profile__photo { aspect-ratio: 4 / 5; border-radius: var(--r-lg); background: var(--blue-soft); display: grid; place-items: center; position: relative; overflow: hidden; }
.profile__photo span { font: 800 4rem/1 var(--display); color: var(--blue-dark); letter-spacing: -0.03em; }
.profile__photo small { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: var(--ink-2); font-size: .82rem; }
.profile__role { font-weight: 700; color: var(--blue-dark); margin-bottom: 18px; }
.profile__facts { display: flex; flex-wrap: wrap; gap: 16px 48px; margin: 28px 0 0; padding-top: 24px; border-top: 1px solid var(--grid); }
.profile__facts dt { font: 800 2rem/1.1 var(--display); letter-spacing: -0.02em; }
.profile__facts dd { margin: 4px 0 0; color: var(--ink-2); max-width: 16em; }
@media (max-width: 760px) { .profile { grid-template-columns: 1fr; } .profile__photo { max-width: 280px; } }


/* ---------- Brand slogan, language switch ---------- */
.hero__slogan { font-family: var(--display); font-style: italic; font-weight: 500; color: var(--blue-dark); font-size: 1.05rem; margin: 0 0 14px; }
.site-footer__slogan { color: var(--gold); font-style: italic; margin: 14px 0 0; }
.lang-switch { font-weight: 700; padding: 2px 10px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; }
.site-nav__lang { display: none; }
@media (max-width: 1420px) { html[lang="ml"] .site-nav__lang { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border: 1.5px solid var(--grid); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 700; } }
@media (max-width: 1260px) {
    .site-nav__lang { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border: 1.5px solid var(--grid); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 700; }
}

/* ---------- Photos ---------- */
.photo { margin: 0 0 28px; border-radius: var(--r-md); overflow: hidden; background: var(--mist); }
.photo img { display: block; width: 100%; height: auto; }
.photo--wide img { aspect-ratio: 16 / 10; object-fit: cover; }
.gallery { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery a { display: block; border-radius: var(--r-sm); overflow: hidden; background: var(--mist); }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .25s ease; }
.gallery a:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .gallery img { transition: none; } .gallery a:hover img { transform: none; } }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } }
.find { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.find__photos { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; margin-top: 16px; }
.find > .find__photos { margin-top: 0; }
.find__photos img { display: block; width: 100%; height: 100%; max-height: 340px; object-fit: cover; border-radius: var(--r-md); background: var(--mist); }
.find__h { font-size: 1.4rem; margin-top: 32px; }
@media (max-width: 860px) { .find { grid-template-columns: 1fr; } }
.profile__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); }

/* ---------- Malayalam ---------- */
html[lang="ml"] {
    --display: "Anek Malayalam", "Noto Sans Malayalam", "Bricolage Grotesque", system-ui, sans-serif;
    --body: "Noto Sans Malayalam", "Anek Malayalam", "Atkinson Hyperlegible", system-ui, sans-serif;
}
html[lang="ml"] body { line-height: 1.85; font-size: 1.02rem; }
html[lang="ml"] h1, html[lang="ml"] h2, html[lang="ml"] h3 { letter-spacing: 0; line-height: 1.35; }
html[lang="ml"] h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 800; }
html[lang="ml"] h2 { font-size: clamp(1.55rem, 2.7vw, 2.2rem); }
html[lang="ml"] .hero h1 { max-width: 15ch; }
html[lang="ml"] .page-hero h1 { max-width: 22ch; font-size: clamp(1.9rem, 3.8vw, 3rem); }
@media (min-width: 1421px) {
    html[lang="ml"] { --wrap: 1320px; }
    html[lang="ml"] .site-nav ul a { font-size: .9rem; padding: 8px 7px; }
    html[lang="ml"] .site-nav { gap: 10px; }
}
html[lang="ml"] .brand__text span { font-size: .78rem; }
html[lang="ml"] .btn { line-height: 1.3; }
html[lang="ml"] .stats__value { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
html[lang="ml"] .hero__slogan { font-family: "Bricolage Grotesque", sans-serif; }
html[lang="ml"] .banana__sounds text { font-family: "Bricolage Grotesque", sans-serif; }
h1, h2, h3, p, li, dd, a, summary { overflow-wrap: break-word; }
