/* Active Health Clinic — design system
   Brand: royal blue + sky blue extracted from clinic logo. */

:root {
  --blue-900: #0A1F4E;
  --blue-700: #0035A8;   /* primary, from logo */
  --blue-600: #1D4ED8;
  --sky-500: #0092D2;    /* accent, from logo */
  --sky-100: #E3F2FB;
  --ink: #101B33;
  --ink-soft: #2E3A54;
  --bg: #FFFFFF;
  --bg-soft: #F4F8FC;
  --line: #DCE6F2;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 31, 78, 0.10);
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; color: var(--blue-900); }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }

.container { width: min(1140px, 92%); margin: 0 auto; }
.section { padding: clamp(2rem, 4.5vw, 3rem) 0; }
.section.alt { background: var(--bg-soft); }
.kicker {
  display: inline-block; font-size: 0.8rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--sky-500);
  margin-bottom: 0.6rem;
}
.lead { color: var(--ink-soft); max-width: none; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-block; padding: 0.85rem 1.6rem; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; transition: all 0.2s ease;
  border: 2px solid transparent; text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue-700); color: #fff; }
.btn-primary:hover { background: var(--blue-600); }
.btn-outline { border-color: var(--blue-700); color: var(--blue-700); background: transparent; }
.btn-outline:hover { background: var(--blue-700); color: #fff; }
.btn-light { background: #fff; color: var(--blue-700); }

/* ---------- Header ---------- */
.topbar {
  background: var(--blue-900); color: #cfe3f7; font-size: 0.82rem;
  padding: 0.4rem 0;
}
.topbar .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem; padding: 0.55rem 0;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 48px; width: auto; }
@media (max-width: 1200px) {
  /* Size by width on mobile: height follows, aspect ratio always preserved */
  .logo img { width: clamp(175px, 54vw, 260px); height: auto; }
}

.nav { display: flex; align-items: center; gap: 0; }
.nav > .nav-item { position: relative; }
.nav a.nav-link, .nav button.nav-link {
  display: flex; align-items: center; gap: 0.3rem; white-space: nowrap;
  padding: 0.45rem 0.42rem; font-size: 0.87rem; font-weight: 700;
  color: var(--ink); background: none; border: 0; cursor: pointer;
  font-family: var(--font); border-radius: 8px;
}
.nav a.nav-link:hover, .nav button.nav-link:hover { color: var(--blue-700); background: var(--sky-100); text-decoration: none; }
.nav-item .caret { font-size: 0.6rem; color: var(--ink-soft); }

.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 250px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 0.5rem;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all 0.18s ease;
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: block; padding: 0.5rem 0.75rem; border-radius: 8px;
  color: var(--ink); font-size: 0.9rem; font-weight: 600;
}
.dropdown a:hover { background: var(--sky-100); color: var(--blue-700); text-decoration: none; }

.header-cta { white-space: nowrap; padding: 0.6rem 0.95rem; font-size: 0.84rem; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; border-radius: 8px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2.5px; background: var(--blue-900);
  margin: 4.5px auto; border-radius: 2px; transition: 0.2s;
}

@media (max-width: 1200px) {
  .topbar { display: none; }
  main p:not(.hero-title):not(.sub), main li { text-align: justify; }
  .site-header .container { justify-content: center; position: relative; padding: 1rem 0; }
  .logo { transform: translateX(-16px); }
  .nav-toggle { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.5rem 4%; max-height: calc(100vh - 70px); overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav a.nav-link, .nav button.nav-link { width: 100%; justify-content: space-between; padding: 0.8rem 0.5rem; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; padding: 0 0 0.4rem 1rem;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff;
  background: linear-gradient(100deg, rgba(6, 26, 74, 0.80) 20%, rgba(0, 53, 168, 0.38) 60%, rgba(0, 146, 210, 0.10)),
    var(--hero-img) center/cover no-repeat;
  padding: clamp(4rem, 10vw, 7.5rem) 0;
}
.hero h1 { color: #fff; max-width: 21ch; }
.hero .sub { margin: 1.2rem 0 2rem; font-size: 1.15rem; color: #dcebfa; max-width: none; font-weight: 600; }
.hero .kicker { color: #7fd0f5; }

/* Hero slider */
.hero-slider { display: grid; padding: 0; position: relative; }
.hero-slide {
  grid-area: 1 / 1; opacity: 0; transition: opacity 0.9s ease; z-index: 0;
  pointer-events: none;
  background: linear-gradient(100deg, rgba(6, 26, 74, 0.80) 20%, rgba(0, 53, 168, 0.38) 60%, rgba(0, 146, 210, 0.10)),
    var(--hero-img) center/cover no-repeat;
  padding: clamp(4rem, 10vw, 7.5rem) 0;
}
.hero-slide.is-active { opacity: 1; z-index: 1; pointer-events: auto; }
.hero-title {
  font-size: clamp(1.9rem, 4.5vw, 3rem); letter-spacing: -0.02em;
  line-height: 1.2; font-weight: 800; color: #fff; max-width: 21ch;
}
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.btn-ghost { border-color: #fff; color: #fff; }
.hero-dots {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.6rem; z-index: 2;
}
.hero-dots button {
  width: 11px; height: 11px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.45); transition: all 0.25s ease; padding: 0;
}
.hero-dots button.is-active { background: #fff; transform: scale(1.25); }

/* Inner page hero */
.page-hero { background: linear-gradient(120deg, var(--blue-900), var(--blue-700)); color: #fff; padding: clamp(1.6rem, 3.5vw, 2.4rem) 0; }
.page-hero h1 { color: #fff; }
.page-hero .sub { color: #cfe3f7; font-weight: 600; margin-top: 0.6rem; font-size: 1.1rem; }
.breadcrumbs { font-size: 0.83rem; margin-bottom: 1rem; color: #9fc3e8; }
.breadcrumbs a { color: #cfe3f7; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card img { height: 190px; object-fit: cover; width: 100%; }
.card .card-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.card p { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }
.card .more { font-weight: 800; font-size: 0.9rem; }

/* Team cards: taller portrait crop anchored on faces */
.team-grid .card img { height: 320px; object-fit: cover; object-position: center 30%; }

/* Split sections */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; max-height: 520px; align-self: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* Stats band */
.stats { background: linear-gradient(120deg, var(--blue-900), var(--blue-700)); color: #fff; }
.stats .grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); text-align: center; }
.stats .num { font-size: 2.2rem; font-weight: 800; color: #7fd0f5; }
.stats .lbl { font-size: 0.92rem; color: #cfe3f7; font-weight: 600; }

/* Content prose (inner pages) */
.prose { max-width: none; }
.prose p { margin-bottom: 1.1rem; color: var(--ink-soft); text-align: justify; }
.prose li { text-align: justify; }
.faq .answer p { text-align: justify; }
.prose h2 { margin: 1.8rem 0 0.8rem; }
.prose h3 { margin: 1.4rem 0 0.6rem; color: var(--blue-700); }
.prose ul { margin: 0 0 1.2rem 1.2rem; color: var(--ink-soft); }
.prose li { margin-bottom: 0.45rem; }
.prose li strong { color: var(--ink); }
.prose img { border-radius: var(--radius); margin: 1.4rem 0; }

.byline {
  display: flex; align-items: center; gap: 0.6rem; font-size: 0.88rem;
  color: var(--ink-soft); background: var(--sky-100); border-radius: 999px;
  padding: 0.45rem 1rem; width: fit-content; margin-bottom: 1.6rem;
}
.byline a { font-weight: 700; }

.img-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1.8rem 0; }
.img-row img { border-radius: var(--radius); height: 220px; width: 100%; object-fit: cover; margin: 0; }

/* Clinic gallery: 3 per row, remainder centered */
.gallery-32 { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 1rem; margin: 1.8rem 0; }
.gallery-32 img {
  width: calc((100% - 2rem) / 3); height: 240px; object-fit: cover;
  border-radius: var(--radius); margin: 0;
}
@media (max-width: 820px) {
  .keep-together { white-space: nowrap; }
  .gallery-32 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
  .gallery-32 img { width: 100%; height: 150px; object-fit: cover; }
  .gallery-32 img:first-child { grid-column: 1 / -1; height: 210px; }
}

/* Figures: charts/diagrams shown at natural aspect ratio, never cropped */
.figures {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem; align-items: center; margin: 1.8rem 0;
}
.figures img {
  width: auto; max-width: 100%; height: auto; object-fit: contain;
  margin: 0; justify-self: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.9rem;
}

/* FAQ — spans the full page width */
.faq { width: 100%; }
.faq details {
  border: 1px solid var(--line); border-radius: 12px; margin-bottom: 0.8rem;
  background: #fff; overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 1rem 1.3rem; font-weight: 800; color: var(--blue-900);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--sky-500); flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); }
.faq .answer p { margin-bottom: 0.7rem; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--blue-700), var(--sky-500)); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 0.6rem; }
.cta-band p { color: #e6f4fd; margin-bottom: 1.6rem; }
.cta-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

/* Profile page */
.profile-hero { display: grid; grid-template-columns: 300px 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.profile-hero img { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 760px) {
  .profile-hero { grid-template-columns: 1fr; }
  .profile-hero > div:first-child { max-width: 340px; margin-inline: auto; width: 100%; }
}
.note { font-size: 0.85rem; color: var(--ink-soft); font-style: italic; }

/* Visit section (map + booking, replaces separate CTA band) */
.map-split { align-items: stretch; }
.visit-info { display: flex; flex-direction: column; justify-content: center; }
.visit-info .lead { margin: 0.8rem 0 1.6rem; }
.visit-facts { display: flex; gap: 2.5rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.visit-facts h3 { font-size: 0.95rem; color: var(--blue-700); margin-bottom: 0.25rem; }
.visit-facts p { color: var(--ink-soft); font-size: 0.95rem; }
.visit-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.visit-actions .btn {
  padding: 0.7rem 1.05rem; font-size: 0.88rem; white-space: nowrap;
  background: var(--blue-700); color: #fff; border-color: transparent;
}
.visit-actions .btn:hover { background: var(--sky-500); }
.map-embed {
  width: 100%; min-height: 380px; height: 100%; border: 0;
  border-radius: var(--radius); box-shadow: var(--shadow);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-900); color: #b9cfe8; padding: 3.5rem 0 2rem; font-size: 0.93rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 0.9rem; }
.site-footer a { color: #dcebfa; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 820px) {
  .visit-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .visit-actions .btn { white-space: normal; }
  .visit-actions .btn:first-child { grid-column: 1 / -1; }
  .site-footer { padding: 2.2rem 0 1.4rem; font-size: 0.88rem; }
  .footer-grid { gap: 1.4rem; }
  .footer-grid li { margin-bottom: 0.3rem; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-grid > div:nth-child(4) { display: none; }
  .footer-bottom { margin-top: 1.4rem; justify-content: center; text-align: center; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.45rem; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.82rem;
}
.socials { display: flex; gap: 0.8rem; }
.socials a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}
.socials a:hover { transform: translateY(-2px) scale(1.06); }
.socials a[aria-label*="Facebook"] { background: #1877F2; }
.socials a[aria-label*="Instagram"] {
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.socials svg { width: 21px; height: 21px; fill: #fff; }

/* WhatsApp float */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.wa-float:hover { transform: scale(1.06); }
