/* =====================================================================
   Aarogyam Piles Relief Center — shared stylesheet
   Mobile-first. No frameworks. Brand colours taken from the logo.
   ===================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --red: #D7192D;
  --red-dark: #B01224;
  --blue: #1B6FB5;
  --blue-dark: #145489;
  --brown: #6B4226;
  --cream: #FFF8F2;
  --light-blue: #EEF5FC;
  --dark: #1F2937;
  --muted: #4B5563;
  --border: #E5E7EB;
  --white: #FFFFFF;
  --whatsapp: #1DA851;

  --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(31, 41, 55, .08);
  --shadow-lg: 0 14px 40px rgba(31, 41, 55, .14);
  --container: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; margin: 0 0 .6em; color: var(--blue); }
h1 { font-size: clamp(1.75rem, 5vw, 2.9rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.15rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- 3. Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.section { padding: 64px 0; }
.section--cream { background: var(--cream); }
.section--blue { background: var(--light-blue); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head p { color: var(--muted); }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .85rem;
  letter-spacing: .06em; text-transform: uppercase; color: var(--red); margin-bottom: 8px;
}
.grid { display: grid; gap: 22px; }
.placeholder {
  background: #FFF3CD; color: #7A5A00; border: 1px dashed #D9A400; border-radius: 6px;
  padding: 0 6px; font-size: .92em; font-weight: 500;
}
.note-box {
  background: #FFF3CD; border: 1px dashed #D9A400; color: #6B4E00;
  padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: .95rem;
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; line-height: 1.2;
  text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s;
  min-height: 48px; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(215, 25, 45, .25); }
.btn--red:hover { background: var(--red-dark); color: #fff; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-dark); color: #fff; }
.btn--outline { border-color: var(--blue); color: var(--blue); background: #fff; }
.btn--outline:hover { background: var(--blue); color: #fff; }
.btn--whatsapp { background: var(--whatsapp); color: #fff; }
.btn--whatsapp:hover { background: #178a43; color: #fff; }
.btn--white { background: #fff; color: var(--red); }
.btn--white:hover { color: var(--red-dark); }
.btn--ghost { border-color: rgba(255,255,255,.8); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--red); }
.btn--sm { padding: 9px 16px; min-height: 40px; font-size: .88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 5. Top bar ---------- */
.topbar { display: none; background: var(--blue); color: #fff; font-size: .88rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar a { color: #fff; }
.topbar__items { display: flex; gap: 22px; align-items: center; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; }
.topbar__item svg { width: 15px; height: 15px; }
.badge-lady {
  display: inline-flex; align-items: center; gap: 6px; background: var(--red); color: #fff;
  padding: 3px 12px; border-radius: 999px; font-weight: 600; font-size: .8rem;
}
.badge-lady svg { width: 14px; height: 14px; }
@media (min-width: 768px) { .topbar { display: block; } }

/* ---------- 6. Header & navigation ---------- */
.site-header {
  /* Note: no backdrop-filter/transform here, as they would trap the fixed mobile drawer inside the header */
  position: sticky; top: 0; z-index: 1000; background: #fff; transition: box-shadow .25s, padding .25s;
  border-bottom: 1px solid transparent;
}
body.menu-open .site-header { z-index: 1300; }
[id] { scroll-margin-top: 90px; }
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(31,41,55,.1); border-bottom-color: var(--border); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); transition: height .25s; }
.site-header.is-scrolled .container { height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--blue); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { width: 54px; height: auto; transition: width .25s; }
.site-header.is-scrolled .brand img { width: 46px; }
.brand__text { font-family: var(--font-head); line-height: 1.15; }
.brand__name { display: block; font-weight: 700; font-size: 1.05rem; color: var(--red); }
.brand__sub { display: block; font-weight: 600; font-size: .72rem; color: var(--blue); letter-spacing: .04em; text-transform: uppercase; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border: 1px solid var(--border); border-radius: 12px; background: #fff; color: var(--blue);
}
.nav-toggle svg { width: 24px; height: 24px; }
.header-cta { display: none; }

/* Mobile drawer */
.main-nav {
  position: fixed; top: 0; right: 0; height: 100%; width: min(86vw, 360px);
  background: #fff; z-index: 1200; padding: 20px 20px 120px; overflow-y: auto;
  transform: translateX(100%); transition: transform .3s var(--ease), visibility 0s linear .3s; box-shadow: none;
  visibility: hidden;
}
.main-nav.is-open { transform: translateX(0); visibility: visible; box-shadow: var(--shadow-lg); transition: transform .3s var(--ease); }
/* Keep the off-canvas drawer from widening the page */
html, body { overflow-x: clip; }
.nav-overlay {
  position: fixed; inset: 0; background: rgba(17,24,39,.45); z-index: 1100;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.nav-overlay.is-open { opacity: 1; pointer-events: auto; }
.main-nav__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.main-nav__head img { width: 52px; }
.nav-close { width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--light-blue); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; }
.nav-close svg { width: 22px; height: 22px; }
.nav-list { list-style: none; }
.nav-list > li { border-bottom: 1px solid var(--border); }
.nav-link, .dropdown-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 14px 4px; color: var(--dark); font-family: var(--font-head); font-weight: 500;
  background: none; border: 0; text-align: left; font-size: 1rem;
}
.nav-link:hover, .dropdown-toggle:hover { color: var(--blue); text-decoration: none; }
.nav-link.is-active, .dropdown-toggle.is-active { color: var(--red); }
.dropdown-toggle svg { width: 18px; height: 18px; transition: transform .25s; }
.dropdown-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.dropdown { display: none; padding: 0 0 12px 8px; }
.dropdown.is-open { display: block; }
.dropdown__group-title { font-family: var(--font-head); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--red); margin: 10px 0 4px; }
.dropdown ul { list-style: none; }
.dropdown a { display: block; padding: 7px 4px; color: var(--muted); font-size: .95rem; }
.dropdown a:hover, .dropdown a.is-active { color: var(--blue); }
.main-nav .btn { width: 100%; margin-top: 20px; }

/* Desktop navigation */
@media (min-width: 1100px) {
  .nav-toggle, .nav-close, .main-nav__head, .nav-overlay, .main-nav > .btn { display: none !important; }
  .main-nav {
    position: static; transform: none; visibility: visible; width: auto; height: auto;
    padding: 0; box-shadow: none; overflow: visible; background: transparent;
  }
  .nav-list { display: flex; align-items: center; gap: 4px; }
  .nav-list > li { border: 0; position: relative; }
  .nav-link, .dropdown-toggle { padding: 10px 12px; font-size: .95rem; width: auto; gap: 4px; }
  .nav-link.is-active::after, .dropdown-toggle.is-active::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--red); border-radius: 2px;
  }
  .dropdown, .dropdown.is-open {
    display: grid; grid-template-columns: repeat(2, minmax(200px, 1fr)); gap: 6px 26px;
    position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, 8px);
    width: 560px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
    padding: 18px 22px; opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
    border: 1px solid var(--border);
  }
  .dropdown.is-open, .has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown {
    opacity: 1; visibility: visible; transform: translate(-50%, 0);
  }
  .has-dropdown::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
  .header-cta { display: inline-flex; }
}

/* ---------- 7. Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--cream) 0%, #fff 70%);
  padding: 44px 0 110px; position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; width: 420px; height: 420px; right: -140px; top: -140px;
  background: radial-gradient(circle, rgba(27,111,181,.10), transparent 70%); border-radius: 50%;
}
.hero .container { display: grid; gap: 36px; align-items: center; position: relative; }
.hero__topline {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #F3D9C9;
  color: var(--brown); padding: 6px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600; margin-bottom: 16px;
}
.hero__topline svg { width: 16px; height: 16px; color: var(--red); }
.hero h1 { color: var(--dark); }
.hero h1 span { color: var(--red); }
.hero__sub { font-size: 1.08rem; color: var(--muted); max-width: 560px; }
.hero .btn-row { margin-top: 24px; }
.hero__art { max-width: 300px; margin: 0 auto; width: 100%; }
@media (min-width: 900px) { .hero__art { max-width: 460px; } }
@media (min-width: 900px) {
  .hero { padding: 72px 0 130px; }
  .hero .container { grid-template-columns: 1.1fr .9fr; }
}

/* ---------- 8. Trust strip ---------- */
.trust { margin-top: -70px; position: relative; z-index: 2; }
.trust__grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.trust__item {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 14px;
  text-align: center; border-bottom: 3px solid var(--red);
}
.trust__item h3 { font-size: .95rem; color: var(--dark); margin: 8px 0 2px; }
.trust__item p { font-size: .84rem; color: var(--muted); margin: 0; line-height: 1.45; }
.icon-circle {
  width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--light-blue); color: var(--blue); flex: none;
}
.icon-circle svg { width: 26px; height: 26px; }
.icon-circle--red { background: #FDECEE; color: var(--red); }
.icon-circle--brown { background: #F6EDE6; color: var(--brown); }
@media (min-width: 900px) { .trust__grid { grid-template-columns: repeat(4, 1fr); gap: 22px; } .trust__item { padding: 24px 18px; } }

/* ---------- 9. Split (text + image) ---------- */
.split { display: grid; gap: 34px; align-items: center; }
.split__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--light-blue); }
@media (min-width: 900px) { .split { grid-template-columns: 1.15fr .85fr; gap: 56px; } }

/* ---------- 10. Cards ---------- */
.cards { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } .cards--4 { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
  box-shadow: 0 2px 10px rgba(31,41,55,.04); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #CFE0F2; }
.card h3 { margin: 14px 0 6px; }
.card h3 a { color: inherit; }
.card p { color: var(--muted); font-size: .95rem; flex: 1; }
.card__link { font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--red); display: inline-flex; align-items: center; gap: 6px; }
.card__link svg { width: 16px; height: 16px; transition: transform .2s; }
.card:hover .card__link svg { transform: translateX(4px); }
.card__tag { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--brown); }
.also-treat { text-align: center; margin-top: 30px; font-weight: 500; }
.also-treat a { font-weight: 600; margin: 0 4px; }

/* ---------- 11. Features (why choose us) ---------- */
.features { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { display: flex; gap: 16px; align-items: flex-start; background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.feature h3 { margin: 2px 0 6px; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- 12. Women's care band ---------- */
.women-band { background: linear-gradient(120deg, var(--brown) 0%, #8A5A3A 100%); color: #fff; padding: 56px 0; position: relative; overflow: hidden; }
.women-band::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,248,242,.08); }
.women-band .container { display: grid; gap: 22px; align-items: center; position: relative; z-index: 1; }
.women-band h2 { color: #fff; }
.women-band p { color: #FBEFE5; max-width: 720px; }
.women-band .eyebrow { color: #FFD9C2; }
@media (min-width: 900px) { .women-band .container { grid-template-columns: 1fr auto; } }

/* ---------- 13. Steps ---------- */
.steps { list-style: none; display: grid; gap: 0; position: relative; counter-reset: step; }
.step { position: relative; padding: 0 0 28px 70px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 50px; height: 50px; border-radius: 50%;
  background: var(--red); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 6px #FDECEE; z-index: 1;
}
.step::after { content: ""; position: absolute; left: 24px; top: 50px; bottom: 0; width: 2px; background: repeating-linear-gradient(to bottom, var(--red) 0 6px, transparent 6px 12px); }
.step:last-child::after { display: none; }
.step h3 { margin: 10px 0 4px; color: var(--dark); }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (min-width: 992px) {
  .steps--h { grid-template-columns: repeat(5, 1fr); gap: 18px; }
  .steps--h .step { padding: 70px 0 0; text-align: center; }
  .steps--h .step::before { left: 50%; transform: translateX(-50%); }
  .steps--h .step::after { left: calc(50% + 32px); right: calc(-50% + 14px); top: 24px; bottom: auto; width: auto; height: 2px; background: repeating-linear-gradient(to right, var(--red) 0 6px, transparent 6px 12px); }
}

/* ---------- 14. Doctors ---------- */
.doctor-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: grid; }
.doctor-card__photo { background: var(--light-blue); aspect-ratio: 4 / 3.4; overflow: hidden; }
.doctor-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.doctor-card__body { padding: 24px; }
.doctor-name { color: var(--brown); font-size: 1.3rem; margin-bottom: 4px; }
.doctor-qual { color: var(--red); font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.doctor-desig { color: var(--muted); font-size: .95rem; }
.doctor-card .btn-row { margin-top: 16px; }
@media (min-width: 700px) { .doctor-card { grid-template-columns: 220px 1fr; } .doctor-card__photo { aspect-ratio: auto; min-height: 100%; } }

/* Doctor profile (doctors.html) */
.profile { display: grid; gap: 30px; align-items: start; padding: 40px 0; border-bottom: 1px solid var(--border); }
.profile:last-child { border-bottom: 0; }
.profile__photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--light-blue); max-width: 420px; margin: 0 auto; width: 100%; }
.profile__meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 20px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--light-blue); color: var(--blue); padding: 5px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.chip svg { width: 15px; height: 15px; }
.chip--red { background: #FDECEE; color: var(--red-dark); }
@media (min-width: 900px) {
  .profile { grid-template-columns: 380px 1fr; gap: 54px; }
  .profile--reverse { grid-template-columns: 1fr 380px; }
  .profile--reverse .profile__photo { order: 2; }
}

/* ---------- 15. Counters ---------- */
.counters { background: var(--blue); color: #fff; padding: 52px 0; }
.counters__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; text-align: center; }
.counter__num { font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 6vw, 2.8rem); line-height: 1.1; }
.counter__label { color: #DCEBFA; font-size: .95rem; }
@media (min-width: 900px) { .counters__grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- 16. Testimonial slider ---------- */
.slider { position: relative; max-width: 780px; margin: 0 auto; overflow: hidden; }
.slider__track { display: flex; transition: transform .5s var(--ease); touch-action: pan-y; }
.slide { flex: 0 0 100%; padding: 6px; }
.review { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 26px; text-align: center; }
.review__stars { color: #F5A623; display: flex; justify-content: center; gap: 3px; margin-bottom: 12px; }
.review__stars svg { width: 20px; height: 20px; }
.review blockquote { margin: 0 0 14px; font-size: 1.05rem; color: var(--dark); }
.review cite { font-style: normal; font-weight: 600; color: var(--brown); }
.slider__dots { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.slider__dot { width: 12px; height: 12px; border-radius: 50%; border: 0; background: #C9D7E6; padding: 0; transition: width .25s, background .25s; }
.slider__dot[aria-current="true"] { background: var(--red); width: 30px; border-radius: 999px; }

/* ---------- 17. FAQ accordion ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq-group + .faq-group { margin-top: 36px; }
.faq-group h2, .faq-group h3.faq-group__title { font-size: 1.3rem; }
.acc-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.acc-item.is-open { border-color: #BCD5EE; box-shadow: var(--shadow); }
.acc-btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 14px; text-align: left;
  background: none; border: 0; padding: 18px 20px; font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--dark);
}
.acc-btn:hover { color: var(--blue); }
.acc-icon { width: 28px; height: 28px; border-radius: 50%; background: var(--light-blue); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; flex: none; transition: transform .3s, background .3s; }
.acc-icon svg { width: 16px; height: 16px; }
.acc-item.is-open .acc-icon { transform: rotate(45deg); background: var(--red); color: #fff; }
.acc-panel { height: 0; overflow: hidden; transition: height .3s var(--ease); }
.acc-panel__inner { padding: 0 20px 18px; color: var(--muted); }
.acc-panel__inner p:last-child { margin: 0; }
.faq-search { position: relative; max-width: 560px; margin: 0 auto 34px; }
.faq-search input { width: 100%; padding: 14px 18px 14px 48px; border: 1px solid var(--border); border-radius: 999px; font: inherit; box-shadow: var(--shadow); }
.faq-search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.faq-empty { text-align: center; color: var(--muted); display: none; }
.center { text-align: center; }
.mt-2 { margin-top: 24px; }

/* ---------- 18. CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--red) 0%, #A50F20 100%); color: #fff; padding: 56px 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #FFE3E6; max-width: 640px; margin: 0 auto 24px; }
.cta-band .btn-row { justify-content: center; }

/* ---------- 19. Page banner & breadcrumb ---------- */
.page-banner { background: linear-gradient(140deg, var(--light-blue) 0%, var(--cream) 100%); padding: 44px 0 40px; }
.page-banner h1 { color: var(--dark); margin-bottom: 8px; }
.page-banner p { color: var(--muted); max-width: 720px; }
.page-banner .btn-row { margin-top: 18px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 14px; font-size: .88rem; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: #9CA3AF; }
.breadcrumb a { color: var(--blue); }

/* ---------- 20. About page pieces ---------- */
.mv-card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border-top: 4px solid var(--blue); }
.mv-card--red { border-top-color: var(--red); }
.value { text-align: center; background: #fff; border-radius: var(--radius); padding: 26px 20px; box-shadow: var(--shadow); }
.value h3 { margin: 12px 0 6px; }
.value p { color: var(--muted); font-size: .95rem; margin: 0; }
.check-list { list-style: none; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list svg { width: 22px; height: 22px; color: var(--whatsapp); flex: none; margin-top: 2px; }
.check-list--2 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .check-list--2 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 21. Filter tabs ---------- */
.filter-tabs { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 12px; margin-bottom: 26px; scrollbar-width: thin; }
.filter-tab { flex: none; border: 1px solid var(--border); background: #fff; color: var(--dark); padding: 10px 18px; border-radius: 999px; font-family: var(--font-head); font-weight: 500; font-size: .92rem; min-height: 44px; }
.filter-tab:hover { border-color: var(--blue); color: var(--blue); }
.filter-tab[aria-pressed="true"] { background: var(--blue); color: #fff; border-color: var(--blue); }
.card.is-hidden { display: none; }
@media (min-width: 768px) { .filter-tabs { justify-content: center; flex-wrap: wrap; } }

/* ---------- 22. Contact & forms ---------- */
.contact-grid { display: grid; gap: 30px; }
@media (min-width: 992px) { .contact-grid { grid-template-columns: .9fr 1.1fr; align-items: start; } }
.info-cards { display: grid; gap: 14px; }
.info-card { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; }
.info-card h3 { font-size: 1rem; margin: 0 0 2px; color: var(--dark); }
.info-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.map-box { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--light-blue); min-height: 260px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); padding: 20px; }
.map-box iframe { width: 100%; height: 300px; border: 0; }
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 26px 20px; border-top: 4px solid var(--red); }
@media (min-width: 600px) { .form-card { padding: 32px; } }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 600px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--dark); }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #D1D5DB; border-radius: var(--radius-sm); font: inherit; font-size: 16px;
  background: #fff; color: var(--dark); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27,111,181,.18); outline: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); }
.field__error { color: var(--red-dark); font-size: .85rem; margin-top: 4px; min-height: 0; display: none; }
.field.has-error .field__error { display: block; }
.form-success { display: none; background: #E8F7EE; border: 1px solid #A7E0BF; color: #14532D; padding: 14px 16px; border-radius: var(--radius-sm); margin-top: 16px; }
.form-success.is-visible { display: block; }
.form-privacy { font-size: .85rem; color: var(--muted); margin: 14px 0 0; display: flex; gap: 8px; align-items: flex-start; }
.form-privacy svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--blue); }
.form-card .btn { width: 100%; margin-top: 6px; }

/* ---------- 23. Treatment page layout ---------- */
.t-layout { display: grid; gap: 34px; }
@media (min-width: 992px) { .t-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); align-items: start; } }
.t-section { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 22px; }
.t-section h2 { font-size: 1.4rem; display: flex; align-items: center; gap: 12px; }
.t-section h2 .icon-circle { width: 42px; height: 42px; }
.t-section h2 .icon-circle svg { width: 22px; height: 22px; }
.t-section--intro { background: var(--cream); border-color: #F3E2D4; }
.icon-list { list-style: none; display: grid; gap: 10px; }
.icon-list li { display: flex; gap: 12px; align-items: flex-start; }
.icon-list li svg { width: 20px; height: 20px; color: var(--red); flex: none; margin-top: 4px; }
@media (min-width: 700px) { .icon-list--2 { grid-template-columns: 1fr 1fr; column-gap: 24px; } }
.mini-steps { list-style: none; counter-reset: ms; display: grid; gap: 14px; }
.mini-steps li { counter-increment: ms; position: relative; padding-left: 50px; }
.mini-steps li::before { content: counter(ms); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--font-head); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.mini-steps strong { display: block; color: var(--dark); font-family: var(--font-head); }
.treated-by { display: flex; gap: 16px; align-items: center; background: var(--light-blue); border-radius: var(--radius); padding: 16px; margin-bottom: 22px; }
.treated-by img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: top; flex: none; background: #fff; }
.treated-by h3 { color: var(--brown); margin: 0; font-size: 1.05rem; }
.treated-by p { margin: 0; font-size: .9rem; color: var(--muted); }
.treated-by__label { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; color: var(--red); }
.sidebar { display: grid; gap: 18px; }
@media (min-width: 992px) { .sidebar { position: sticky; top: 90px; } }
.side-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.side-box h2, .side-box h3 { font-size: 1.1rem; margin-bottom: 12px; }
.side-box .field { margin-bottom: 12px; }
.side-box .btn { width: 100%; }
.side-box--call { background: var(--blue); color: #fff; border: 0; text-align: center; }
.side-box--call h3 { color: #fff; }
.side-box--call a.big-phone { color: #fff; font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; display: block; margin: 4px 0 12px; }
.side-box--lady { background: #FDECEE; border-color: #F6C5CB; display: flex; gap: 12px; align-items: center; }
.side-box--lady h3 { color: var(--red-dark); margin: 0 0 2px; }
.side-box--lady p { margin: 0; font-size: .9rem; color: var(--dark); }
.related-list { list-style: none; }
.related-list li { border-bottom: 1px dashed var(--border); }
.related-list li:last-child { border: 0; }
.related-list a { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; color: var(--dark); font-size: .95rem; }
.related-list a:hover { color: var(--blue); text-decoration: none; }
.related-list svg { width: 16px; height: 16px; color: var(--red); }

/* ---------- 24. Legal pages ---------- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 1.35rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.3em; margin-bottom: 1em; }
.prose li { margin-bottom: .4em; }

/* ---------- 25. Footer ---------- */
.site-footer { background: #10233A; color: #C9D6E5; padding: 56px 0 0; font-size: .95rem; }
.site-footer a { color: #DCE8F5; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 34px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.3fr .8fr 1fr 1.2fr; } }
.footer-brand img { width: 74px; background: #fff; border-radius: 12px; padding: 6px; margin-bottom: 12px; }
.site-footer h2 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.footer-links { list-style: none; display: grid; gap: 6px; }
.footer-contact { list-style: none; display: grid; gap: 10px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: #F38A96; }
.footer-map { margin-top: 14px; border-radius: 10px; overflow: hidden; background: rgba(255,255,255,.06); border: 1px dashed rgba(255,255,255,.25); min-height: 120px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px; font-size: .85rem; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: inline-flex; align-items: center; justify-content: center; transition: background .2s; }
.socials a:hover { background: var(--red); }
.socials svg { width: 18px; height: 18px; }
.footer-disclaimer { margin-top: 40px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; color: #9FB2C8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0 96px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .85rem; }
.footer-bottom nav { display: flex; gap: 16px; }
@media (min-width: 768px) { .footer-bottom { padding-bottom: 22px; } }

/* ---------- 26. Floating buttons & mobile bar ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 84px; z-index: 900; width: 56px; height: 56px; border-radius: 50%;
  background: var(--whatsapp); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(29,168,81,.4);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--whatsapp); z-index: -1; animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }
.to-top {
  position: fixed; right: 22px; bottom: 150px; z-index: 900; width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 22px; height: 22px; }
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 950; display: grid; grid-template-columns: repeat(3, 1fr);
  background: #fff; box-shadow: 0 -4px 16px rgba(31,41,55,.12); padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 4px; min-height: 60px; font-family: var(--font-head); font-weight: 600; font-size: .8rem; color: var(--dark); }
.mobile-bar a:hover { text-decoration: none; }
.mobile-bar svg { width: 22px; height: 22px; }
.mobile-bar__call svg { color: var(--blue); }
.mobile-bar__wa svg { color: var(--whatsapp); }
.mobile-bar__book { background: var(--red); color: #fff !important; }
@media (min-width: 768px) {
  .mobile-bar { display: none; }
  .wa-float { bottom: 24px; right: 24px; }
  .to-top { bottom: 92px; right: 29px; }
}

/* ---------- 27. Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); 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) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 28. Blog ---------- */
.blog-card__thumb {
  margin: -24px -24px 16px; height: 150px; border-radius: var(--radius) var(--radius) 0 0;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.blog-card__thumb svg { width: 56px; height: 56px; opacity: .95; }
.blog-card__thumb:hover { text-decoration: none; }
.blog-thumb--anorectal { background: linear-gradient(135deg, #1B6FB5, #4A97D6); }
.blog-thumb--diet { background: linear-gradient(135deg, #3F8A3A, #7DBB5E); }
.blog-thumb--women { background: linear-gradient(135deg, #D7192D, #EE6A78); }
.blog-thumb--treatments { background: linear-gradient(135deg, #6B4226, #A8714B); }
.blog-card__meta { font-size: .82rem; color: var(--muted); margin: 0; flex: 0 !important; }
.blog-card h3 { margin-top: 6px; }
.blog-card__foot { display: flex; justify-content: space-between; font-size: .85rem; color: var(--brown) !important; font-weight: 500; flex: 0 !important; border-top: 1px dashed var(--border); padding-top: 10px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; color: var(--muted); font-size: .92rem; margin: 6px 0 0; }
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-meta svg { width: 16px; height: 16px; color: var(--blue); }
.post-body { font-size: 1.04rem; }
.post-body h2 { font-size: 1.35rem; margin-top: 1.4em; }
.post-body .icon-list { margin-bottom: 1em; }
.tip-box { display: flex; gap: 12px; background: var(--light-blue); border-left: 4px solid var(--blue); border-radius: var(--radius-sm); padding: 16px; margin-top: 1.4em; }
.tip-box svg { width: 22px; height: 22px; color: var(--blue); flex: none; margin-top: 3px; }
.tip-box p { margin: 0; }
.post-disclaimer { font-size: .85rem; color: var(--muted); }
