/* Dr. Anjali S. — site styles (Lotus Moonflower brand) */
:root {
  --aubergine: #3D2F5B;
  --plum-deep: #2B2140;
  --gold: #C69A45;
  --gold-text: #8A6420;
  --gold-light: #E2BE73;
  --lavender: #9C8CC4;
  --lilac: #EEEAF5;
  --lilac-2: #F5F2FA;
  --pearl: #FBFAF7;
  --white: #FFFFFF;
  --ink: #221E2B;
  --text: #3A3447;
  --muted: #5E576B;
  --line: #E4DEEE;
  --focus: #6E5F96;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ml-serif: "Noto Serif Malayalam", "Playfair Display", serif;
  --ml-sans: "Noto Sans Malayalam", "Nunito Sans", sans-serif;

  --wrap: 1120px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(34, 30, 43, .04), 0 8px 24px rgba(61, 47, 91, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--pearl);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}
html[lang="ml"] body { font-family: var(--ml-sans); font-size: 16.5px; line-height: 1.8; }
html[lang="ml"] h1, html[lang="ml"] h2, html[lang="ml"] h3 { font-family: var(--ml-serif); line-height: 1.35; }

img, svg, video, iframe { max-width: 100%; display: block; }
a { color: var(--aubergine); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--aubergine); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.3rem; }
h1 em, h2 em { font-style: italic; color: var(--aubergine); }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.eyebrow { font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 .9em; }
html[lang="ml"] .eyebrow { letter-spacing: .04em; font-size: .9rem; }
.lead { font-size: 1.15rem; color: var(--text); max-width: 46ch; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.todo { background: #FFF4D6; color: #6B4E12; border-radius: 4px; padding: 0 .3em; font-size: .92em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 250, 247, .92); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--aubergine); margin-right: auto; }
.brand img { width: 54px; height: auto; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; line-height: 1.1; }
.brand-sub { display: block; font-family: var(--sans); font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); margin-top: 3px; }
html[lang="ml"] .brand-name { font-family: var(--ml-serif); font-size: 1.15rem; }
html[lang="ml"] .brand-sub { letter-spacing: .02em; font-size: .72rem; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--text); font-weight: 600; font-size: .95rem; padding: 10px 12px; border-radius: 999px; }
.nav a:hover { background: var(--lilac); color: var(--aubergine); }
.nav a[aria-current="page"] { color: var(--aubergine); background: var(--lilac); }
.lang { font-weight: 700; font-size: .85rem; text-decoration: none; color: var(--aubergine); border: 1.5px solid var(--line); padding: 7px 12px; border-radius: 999px; white-space: nowrap; }
.lang:hover { border-color: var(--aubergine); }
.menu-btn { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: transparent; color: var(--aubergine); border-radius: 12px; cursor: pointer; }
.menu-btn:hover { background: var(--lilac); }

@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--pearl); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; border-radius: 10px; font-size: 1.05rem; }
  .brand img { width: 44px; }
  .brand-name { font-size: 1.15rem; }
}
@media (max-width: 560px) { .site-header .brand-sub { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-family: var(--sans); font-weight: 700; font-size: 1rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--aubergine); color: var(--pearl); }
.btn-primary:hover { background: var(--plum-deep); color: var(--white); }
.btn-ghost { border-color: var(--aubergine); color: var(--aubergine); background: transparent; }
.btn-ghost:hover { background: var(--aubergine); color: var(--pearl); }
.btn-wa { background: #1F7A4D; color: #fff; }
.btn-wa:hover { background: #17603C; color: #fff; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.is-disabled { opacity: .45; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-tight { padding: clamp(40px, 6vw, 64px) 0; }
.section-lilac { background: var(--lilac); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head h2 { margin: 0; }

/* Hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-art { background: var(--lilac); border-radius: 28px; aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 14%; position: relative; overflow: hidden; }
.hero-art::after { content: ""; position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid rgba(61, 47, 91, .14); top: 50%; left: 50%; transform: translate(-50%, -54%); }
.hero-art img { position: relative; z-index: 1; width: 100%; height: auto; }
.hero-cred { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .92rem; color: var(--muted); }
.hero-cred strong { color: var(--aubergine); font-weight: 700; }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; aspect-ratio: 16 / 10; padding: 8% 18%; }
}

/* Cards and grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.link-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.link-card:hover { border-color: var(--lavender); transform: translateY(-2px); color: inherit; }
.link-card .more { margin-top: auto; padding-top: 16px; font-weight: 700; color: var(--aubergine); }

.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.pill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: .95rem; color: var(--aubergine); font-weight: 600; }

/* Page header */
.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 4vw, 40px); }
.page-head p { max-width: 60ch; }

/* Profile */
.profile-top { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: center; }
.portrait { width: 220px; aspect-ratio: 4 / 5; border-radius: 20px; background: var(--lilac); display: grid; place-items: center; overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait img.mark { width: 70%; height: auto; object-fit: contain; opacity: .9; }
@media (max-width: 720px) { .profile-top { grid-template-columns: 1fr; gap: 24px; } .portrait { width: 160px; } }
.creds { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 8px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .95rem; }
.creds strong { color: var(--aubergine); }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 28px 28px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--pearl); }
.timeline .when { font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-text); }
.timeline h3 { margin: .15em 0 .2em; font-size: 1.2rem; }
.timeline p { margin: 0; color: var(--muted); }

.table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.table th, .table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.table td:first-child { font-weight: 700; color: var(--aubergine); white-space: nowrap; }
.table-box { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.wa-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
@media (max-width: 520px) { .wa-card { grid-template-columns: 1fr; } }
.qr { width: 168px; height: 168px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 10px; display: grid; place-items: center; }
.qr svg, .qr img { width: 100%; height: 100%; }
.qr-cap { font-size: .82rem; color: var(--muted); text-align: center; margin-top: 8px; }
.timings { white-space: pre-line; font-size: 1.05rem; color: var(--ink); }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.info-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; }
.info-list svg { width: 22px; height: 22px; color: var(--gold-text); margin-top: 3px; }
.info-list .k { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.info-list .v { color: var(--ink); overflow-wrap: anywhere; }
.note { background: var(--lilac-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; font-size: .95rem; color: var(--text); }

/* Updates */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; font-weight: 700; font-size: .9rem; color: var(--text); background: var(--white); }
.chips a:hover { border-color: var(--lavender); }
.chips a[aria-current="true"] { background: var(--aubergine); border-color: var(--aubergine); color: var(--pearl); }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 960px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.post-card:hover { border-color: var(--lavender); transform: translateY(-2px); color: inherit; }
.post-card .cover { aspect-ratio: 16 / 10; background: var(--lilac); overflow: hidden; display: grid; place-items: center; }
.post-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.post-card .cover img.mark { width: 42%; height: auto; object-fit: contain; opacity: .55; }
.post-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.post-card h3 { font-size: 1.22rem; margin: 0; }
.post-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.meta { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text); display: flex; gap: 8px; flex-wrap: wrap; }
.meta .dot { color: var(--lavender); }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius); }

.article { max-width: 760px; margin-inline: auto; }
.article h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.article .prose { font-size: 1.07rem; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin: .25em 0; }
.prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--gold); font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--aubergine); }
.gallery { display: grid; gap: 10px; margin: 28px 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery.one { grid-template-columns: 1fr; }
.gallery a { display: block; border-radius: 14px; overflow: hidden; background: var(--lilac); }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.gallery.one img { aspect-ratio: auto; max-height: 70vh; object-fit: contain; margin-inline: auto; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--plum-deep); margin: 28px 0; }
.video button { all: unset; position: absolute; inset: 0; cursor: pointer; display: grid; place-items: center; }
.video button img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video .play { position: relative; width: 72px; height: 72px; border-radius: 50%; background: rgba(251, 250, 247, .95); display: grid; place-items: center; box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.video .play svg { width: 28px; height: 28px; color: var(--aubergine); margin-left: 4px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; margin-bottom: 20px; }
.share { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Post banner */
.article-wide { max-width: 980px; }
.article-body { max-width: 760px; margin-inline: auto; }
.post-plain { max-width: 760px; margin: 0 auto 8px; }
.post-plain h1 { margin-top: .3em; }
.post-hero { position: relative; border-radius: 22px; overflow: hidden; background: var(--plum-deep); margin: 0 0 32px; min-height: clamp(280px, 46vw, 500px); display: flex; align-items: flex-end; }
.post-hero-img { position: absolute; inset: 0; display: block; cursor: zoom-in; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s; }
.post-hero-img.is-active { opacity: 1; visibility: visible; }
.post-hero-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-hero-img:hover img { transform: scale(1.02); }
.post-hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,21,38,0) 35%, rgba(27,21,38,.55) 65%, rgba(27,21,38,.88) 100%); pointer-events: none; }
.post-hero-zoom { pointer-events: none; position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; background: rgba(251,250,247,.9); color: var(--aubergine); display: grid; place-items: center; }
.post-hero-zoom svg { width: 20px; height: 20px; }
.post-hero-text { position: relative; z-index: 1; padding: clamp(20px, 4vw, 40px); pointer-events: none; max-width: 880px; }
.post-hero-text .meta { color: var(--gold-light); }
.post-hero-text .meta .dot { color: rgba(255,255,255,.6); }
.post-hero-text h1 { color: #fff; margin: .35em 0 0; font-size: clamp(1.8rem, 4.2vw, 2.9rem); text-shadow: 0 1px 12px rgba(0,0,0,.25); }

.hero-nav { position: absolute; top: 42%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(251,250,247,.9); color: var(--aubergine); font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.hero-nav:hover { background: #fff; }
.hero-prev { left: 14px; }
.hero-next { right: 14px; }
.hero-dots { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 4px; padding: 4px 8px; border-radius: 999px; background: rgba(27,21,38,.45); }
.hero-dots button { width: 24px; height: 24px; border: 0; padding: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.hero-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.55); transition: width .2s, background .2s; }
.hero-dots button[aria-current="true"]::before { width: 18px; border-radius: 4px; background: #fff; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(27, 21, 38, .92); display: none; align-items: center; justify-content: center; z-index: 200; padding: 16px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 8px; }
.lightbox .lb-nav { top: 50%; transform: translateY(-50%); right: auto; }
.lightbox .lb-prev { left: 12px; }
.lightbox .lb-next { left: auto; right: 12px; }
.lightbox .lb-count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: #fff; font-size: .9rem; opacity: .8; }
.lightbox button { position: absolute; top: 12px; right: 12px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 28px; cursor: pointer; }

/* Footer */
.site-footer { background: var(--plum-deep); color: #D9D2E8; padding: 56px 0 28px; margin-top: 0; }
.site-footer a { color: #F2EDF9; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { width: 56px; }
.footer-brand span { font-family: var(--serif); font-size: 1.3rem; color: var(--white); }
html[lang="ml"] .footer-brand span { font-family: var(--ml-serif); }
.site-footer h2 { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 12px; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer ul a { text-decoration: none; }
.site-footer ul a:hover { text-decoration: underline; }
.footer-social { display: inline-flex; align-items: center; gap: 8px; }
.disclaimer { font-size: .88rem; color: #C2B9D6; max-width: 52ch; }
.footer-base { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: .85rem; color: #B7AECB; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
