/* =========================================================
   Dr. Suresh Kumar Tripathy · Pediatrician, Jatni
   Direction: peacock and marigold. Sandalwood paper,
   not a rainbow kids-clinic palette. Straight grids,
   photo collage, prescription pad kept as the visit card.
   ========================================================= */

:root {
  --cream: #f4efe4;
  --cream-2: #fbf8f2;
  --white: #ffffff;
  --ink: #1a2e28;
  --ink-2: #2c453c;
  --text: #24362f;
  --muted: #5c6b62;
  --line: #e6dccb;
  --coral: #0e7c74;
  --coral-soft: #e5f4f1;
  --sun: #e6a31a;
  --sun-soft: #fff1cc;
  --sky: #c4622d;
  --sky-soft: #f8ebe3;
  --mint: #2f7d4a;
  --mint-soft: #e5f5ea;
  --berry: #a33d55;
  --berry-soft: #fdecef;
  --lilac: #8d5a32;
  --lilac-soft: #f6eadf;

  --display: "Baloo Bhaina 2", "Baloo 2", ui-rounded, system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", cursive;

  --gutter: clamp(18px, 4vw, 40px);
  --radius: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 84px;
  --shadow: 0 16px 40px -24px rgba(26, 35, 64, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 600 1.0625rem/1.65 var(--body);
  color: var(--text);
  background:
    radial-gradient(circle at 6% 0, #f6e2b0 0, transparent 30%),
    radial-gradient(circle at 100% 10%, #d9efe8 0, transparent 26%),
    repeating-linear-gradient(90deg, transparent, transparent 22px, rgba(26, 46, 40, .025) 22px, rgba(26, 46, 40, .025) 23px),
    var(--cream);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
address { font-style: normal; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.08; }
h3 { font-size: 1.28rem; line-height: 1.2; }

.wrap { width: min(1120px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 8vw, 104px); }
.icon { display: inline-block; width: 1em; height: 1em; flex: none; vertical-align: middle; }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sun-soft);
  color: var(--ink);
  font: 800 .78rem/1 var(--body);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.section-head { margin-bottom: clamp(28px, 4vw, 44px); max-width: 640px; }
.section-head p:last-child { margin: 10px 0 0; color: var(--muted); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .9em 1.35em; border-radius: 999px; border: 2px solid transparent;
  font: 800 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-ink { background: var(--coral); color: #fff; box-shadow: 0 10px 20px -12px var(--coral); }
.btn-ink:hover { background: #0a5c56; }
.btn-line { border-color: var(--ink); color: var(--ink); background: var(--white); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-wa { background: #128c4a; color: #fff; }
.btn-wa:hover { background: #0e7340; }
.btn-sm { padding: .62em 1em; font-size: .92rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(244, 239, 228, .92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(26, 35, 64, .6); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; line-height: 1.1; min-width: 0; }
.brand-mark {
  flex: none; width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #14988c, #0c6e66);
  color: #fff; font: 800 1.25rem/1 var(--display);
  box-shadow: 0 8px 16px -10px var(--coral);
}
.brand-name { display: block; font: 800 1.05rem/1.15 var(--display); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-role { display: block; margin-top: 2px; font: 800 .72rem/1.2 var(--body); color: var(--coral); letter-spacing: .02em; }

.bunting {
  height: 14px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='72' height='14' viewBox='0 0 72 14'><polygon points='0,0 36,0 18,14' fill='%230e7c74'/><polygon points='36,0 72,0 54,14' fill='%23e6a31a'/></svg>");
  background-repeat: repeat-x;
  background-size: 72px 14px;
}

.nav-menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-menu a:not(.btn) {
  display: block; padding: .5em .8em; font-weight: 800; font-size: .95rem;
  text-decoration: none; color: var(--ink-2); border-radius: 999px; transition: background .2s, color .2s;
}
.nav-menu a:not(.btn):hover { background: var(--white); }
.nav-menu a.active { background: var(--sun-soft); color: var(--ink); }

.nav-toggle { display: none; position: relative; width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--white); cursor: pointer; flex: none; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease); }
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 8px);
    flex-direction: column; align-items: stretch; padding: 10px;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .nav-menu.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-menu a:not(.btn) { padding: .85em 1em; font-size: 1.05rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(28px, 5vw, 64px) clamp(36px, 6vw, 72px); overflow: hidden; }
.hero-copy { max-width: 40rem; }

.greet {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px;
  margin-bottom: 14px; font: 700 .92rem/1.3 var(--body); letter-spacing: .03em; color: var(--sky);
}
.greet [lang="or"] { font: 700 1.15rem/1 var(--display); color: var(--coral); letter-spacing: 0; }
.greet-sep { color: #d4c4a4; }

.hero-name {
  font-family: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(3.15rem, 6.2vw, 4.85rem);
  line-height: .92;
  letter-spacing: -.03em;
}
.name-given, .name-family { display: block; }
.name-given {
  font-size: .56em; font-weight: 500; line-height: 1.08;
  letter-spacing: -.02em; color: var(--ink-2);
}
.name-family { font-weight: 620; letter-spacing: -.035em; margin-top: .04em; }
.hero-role { margin: 12px 0 0; font: 800 1.05rem/1.4 var(--body); color: var(--ink-2); }
.hero-lead { margin: 14px 0 0; max-width: 42rem; font-size: 1.08rem; color: var(--muted); font-weight: 600; }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 160px)); gap: 10px; list-style: none; margin: 22px 0 0; padding: 0; }
.stats li { background: var(--white); border-radius: 16px; padding: 12px 8px; text-align: center; box-shadow: var(--shadow); }
.stats strong { display: block; font: 800 1.45rem/1 var(--display); color: var(--coral); }
.stats span { display: block; margin-top: 4px; font: 800 .75rem/1.25 var(--body); color: var(--muted); }

@media (max-width: 520px) {
  .stats { max-width: none; }
}

/* ---------- Mosaic ---------- */
.mosaic-section { padding-top: 10px; }
.mosaic {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 14px;
}
.tile {
  margin: 0; position: relative; border-radius: 26px; overflow: hidden;
  border: 6px solid var(--white); box-shadow: var(--shadow); background: var(--line);
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile-tall { grid-row: 1 / span 2; }
.tile-tall img { object-position: 38% 40%; }
.tile:nth-child(2) img { object-position: 48% 34%; }
.tile:nth-child(3) img { object-position: 62% 58%; }
.tile-wide { grid-column: 2 / span 2; }
.tile-wide img { object-position: 50% 42%; }
.tile figcaption {
  position: absolute; left: 12px; bottom: 12px;
  padding: 4px 12px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: var(--ink);
  font: 700 1.25rem/1 var(--hand);
}
.photo-note { margin: 14px 0 0; font-size: .85rem; color: var(--muted); font-weight: 700; }
@media (max-width: 800px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 180px 180px; }
  .tile-tall { grid-row: auto; grid-column: 1 / span 2; height: 240px; }
  .tile-wide { grid-column: 1 / span 2; }
}
@media (max-width: 520px) {
  .mosaic { grid-template-columns: 1fr; grid-template-rows: none; }
  .tile, .tile-tall { height: 220px; grid-column: auto; }
}

/* ---------- About ---------- */
.about { background: transparent; }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.creds { margin-top: 16px; font: 800 .92rem/1.6 var(--body); color: var(--muted); }
.lede { font: 700 clamp(1.15rem, 2vw, 1.35rem)/1.5 var(--body); color: var(--ink); }
.principles { margin: 22px 0 0; display: grid; gap: 12px; }
.principles div {
  display: grid; grid-template-columns: 46px 1fr; column-gap: 12px; row-gap: 2px;
  align-items: center; padding: 14px 16px; background: var(--white);
  border-radius: 18px; box-shadow: var(--shadow);
}
.principles dt { grid-column: 2; grid-row: 1; display: flex; align-items: center; font: 800 1.12rem/1.3 var(--display); color: var(--ink); }
.principles dt .icon { display: none; }
.principles dd { grid-column: 2; grid-row: 2; margin: 0; color: var(--muted); font-weight: 600; }
.pip {
  grid-column: 1; grid-row: 1 / span 2; width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; color: var(--ink);
}
.pip .icon { width: 22px; height: 22px; }
.principles div:nth-child(1) .pip { background: var(--sun-soft); }
.principles div:nth-child(2) .pip { background: var(--mint-soft); color: var(--mint); }
.principles div:nth-child(3) .pip { background: var(--sky-soft); color: var(--sky); }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Care ---------- */
.care-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  background: none; border: 0;
}
.care-list li {
  background: var(--white); padding: 0 0 22px; border-radius: 26px; overflow: hidden;
  box-shadow: var(--shadow); border-bottom: 6px solid var(--sun);
  transition: transform .25s var(--ease);
}
.care-photo { width: 100%; height: 188px; object-fit: cover; object-position: center 40%; }
.pos-newborn { object-position: 28% 42%; }
.pos-vax { object-position: 48% 34%; }
.pos-growth { object-position: 70% 34%; }
.pos-fever { object-position: 58% 62%; }
.pos-chest { object-position: 58% 40%; }
.pos-feed { object-position: 50% 40%; }
.care-list li:hover { transform: translateY(-4px); }
.care-list li:nth-child(1) { border-bottom-color: var(--coral); }
.care-list li:nth-child(2) { border-bottom-color: var(--sky); }
.care-list li:nth-child(3) { border-bottom-color: var(--sun); }
.care-list li:nth-child(4) { border-bottom-color: var(--berry); }
.care-list li:nth-child(5) { border-bottom-color: var(--mint); }
.care-list li:nth-child(6) { border-bottom-color: var(--lilac); }
.care-ico {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px;
  margin: -24px 0 12px 18px; color: var(--ink); position: relative;
  border: 3px solid var(--white); box-shadow: var(--shadow);
}
.care-list h3, .care-list p { padding-inline: 20px; }
.care-list li:nth-child(1) .care-ico { background: var(--coral-soft); color: var(--coral); }
.care-list li:nth-child(2) .care-ico { background: var(--sky-soft); color: var(--sky); }
.care-list li:nth-child(3) .care-ico { background: var(--sun-soft); }
.care-list li:nth-child(4) .care-ico { background: var(--berry-soft); color: var(--berry); }
.care-list li:nth-child(5) .care-ico { background: var(--mint-soft); color: var(--mint); }
.care-list li:nth-child(6) .care-ico { background: var(--lilac-soft); color: var(--lilac); }
.care-ico .icon { width: 22px; height: 22px; }
.care-list h3 { margin-bottom: 6px; }
.care-list p { margin: 0; color: var(--muted); font-size: .98rem; font-weight: 600; }
@media (max-width: 900px) { .care-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .care-list { grid-template-columns: 1fr; } }

/* ---------- Areas ---------- */
.areas { padding-block: 10px 72px; }
.areas-row {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px; border-radius: 28px; background: var(--white); box-shadow: var(--shadow);
}
.areas-row h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; justify-content: flex-end; }
.pills li {
  padding: 10px 16px; border-radius: 999px; background: var(--sky-soft);
  font: 800 .95rem/1 var(--body); color: var(--ink);
}
.pills li:nth-child(2) { background: var(--sun-soft); }
.pills li:nth-child(3) { background: var(--mint-soft); }
.pills li:nth-child(4) { background: var(--berry-soft); }
@media (max-width: 760px) {
  .areas-row { flex-direction: column; align-items: flex-start; }
  .pills { justify-content: flex-start; }
}

/* ---------- Visit ---------- */
.visit-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(20px, 3vw, 36px); align-items: start; }
.pad {
  background: var(--white); color: var(--text); border-radius: 28px;
  padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow);
  border-top: 8px solid var(--coral);
}
.pad-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 16px; border-bottom: 2px solid var(--line); }
.pad-name { font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.1; }
.pad-degrees { margin: 6px 0 0; font-weight: 800; color: var(--ink-2); }
.pad-reg { margin: 0; text-align: right; font: 800 .78rem/1.55 var(--body); color: var(--muted); }
.pad-body { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 8px 14px; padding-top: 18px; }
.rx { grid-row: span 2; font: 800 3.2rem/1 var(--display); color: var(--coral); }
.pad-label { margin: 0 0 6px; font: 800 .72rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--mint); }
.pad-clinic { margin: 0; font: 800 1.25rem/1.2 var(--display); color: var(--ink); }
.pad-block address { color: var(--muted); font-weight: 700; }

.hours { border-collapse: collapse; width: 100%; max-width: 420px; font: 700 .92rem/1.2 var(--body); }
.hours th, .hours td { padding: 8px 0; border-bottom: 1px dashed #e4d8c4; text-align: left; }
.hours th { font-weight: 800; color: var(--ink); padding-right: 12px; }
.hours td { text-align: right; color: var(--text); }
.hours tr.closed th, .hours tr.closed td { color: #a89f92; font-weight: 700; }
.hours tr.today th, .hours tr.today td { background: var(--sun-soft); color: var(--ink); }
.hours tr.today th { padding-left: 8px; border-radius: 8px 0 0 8px; }
.hours tr.today td { padding-right: 8px; border-radius: 0 8px 8px 0; }
.hours tr.today th::after {
  content: "today"; margin-left: 8px; padding: 2px 7px; border-radius: 999px;
  background: var(--coral); color: #fff; font-size: .68rem; letter-spacing: .04em; vertical-align: 1px;
}
.pad-note { margin: 10px 0 0; font-size: .85rem; color: var(--muted); font-weight: 700; }
.pad-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-top: 22px; padding-top: 16px; border-top: 2px solid var(--line); }
.pad-phone { font: 800 clamp(1.45rem, 3vw, 1.85rem)/1 var(--display); color: var(--coral); text-decoration: none; }
.pad-phone:hover { color: var(--ink); }
.pad-langs { margin: 0; font: 800 .85rem/1.4 var(--body); color: var(--muted); }

.visit-side { display: grid; gap: 12px; }
.map-wrap { position: relative; aspect-ratio: 4 / 3.2; border-radius: 28px; overflow: hidden; background: var(--sky-soft); border: 6px solid var(--white); box-shadow: var(--shadow); }
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.visit-actions { display: flex; }

@media (max-width: 900px) { .visit-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .pad-head { flex-direction: column; }
  .pad-reg { text-align: left; }
  .pad-body { grid-template-columns: 1fr; }
  .rx { grid-row: auto; }
  .hours { max-width: none; }
  .visit-actions { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.faq-list { display: grid; gap: 10px; }
.faq details { background: var(--white); border-radius: 18px; box-shadow: var(--shadow); padding: 0 18px; }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 18px 36px 18px 0; font: 800 1.12rem/1.35 var(--display); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; margin-top: -8px;
  border-right: 3px solid var(--coral); border-bottom: 3px solid var(--coral);
  transform: rotate(45deg); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(4px) rotate(-135deg); }
.faq details p { margin: 0; padding: 0 8px 18px 0; color: var(--muted); font-weight: 600; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #d7e6df; padding: 28px 0 calc(28px + env(safe-area-inset-bottom, 0px)); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 28px 48px; padding-top: 28px; }
.footer-name { font: 800 1.35rem/1.15 var(--display); color: #fff; margin-bottom: 6px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--sun); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; color: #a8bdb4; font-weight: 700; }
.footer-bottom p { margin: 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
