:root {
  --navy: #153a5f;
  --navy-dark: #0f2c49;
  --sky: #eef4f9;
  --white: #ffffff;
  --charcoal: #242e38;
  --steel: #5e6e7e;
  --teal: #0c7268;
  --line: #dce4eb;
  --gold: #f5a623;
  --whatsapp: #25d366;
  --font-serif: "Source Serif 4", Georgia, serif;
  --font-sans: "Source Sans 3", Arial, Helvetica, sans-serif;
}

body {
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--font-sans);
}

::selection {
  background: var(--teal);
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

a {
  text-decoration: none;
  color: inherit;
}

.container-clinic {
  max-width: 1152px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.container-clinic-narrow {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.container-clinic-3xl {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ---------- utility color/bg classes ---------- */
.bg-navy { background-color: var(--navy) !important; }
.bg-navy-dark { background-color: var(--navy-dark) !important; }
.bg-sky { background-color: var(--sky) !important; }
.bg-whatsapp { background-color: var(--whatsapp) !important; }
.text-navy { color: var(--navy) !important; }
.text-teal { color: var(--teal) !important; }
.text-steel { color: var(--steel) !important; }
.text-charcoal { color: var(--charcoal) !important; }
.text-gold { color: var(--gold) !important; }
.text-white-80 { color: rgba(255, 255, 255, 0.8) !important; }
.text-white-60 { color: rgba(255, 255, 255, 0.6) !important; }
.text-white-50 { color: rgba(255, 255, 255, 0.5) !important; }
.border-line { border-color: var(--line) !important; }
.divide-line > * + * { border-top: 1px solid var(--line); }

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--teal);
  margin-bottom: 0.75rem;
}
.eyebrow-light { color: rgba(255, 255, 255, 0.8); }

.font-serif { font-family: var(--font-serif); }
.section-title {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--navy);
  font-size: 26px;
  line-height: 34px;
}
@media (min-width: 768px) {
  .section-title { font-size: 34px; line-height: 42px; }
}
.section-title-light { color: var(--white); }

.page-title {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--navy);
  font-size: 32px;
  line-height: 40px;
}
@media (min-width: 768px) {
  .page-title { font-size: 48px; line-height: 56px; }
}

.lead-steel {
  font-size: 19px;
  line-height: 30px;
  color: var(--steel);
}

/* ---------- buttons ---------- */
.btn-clinic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 8px;
  padding: 0 1.5rem;
  height: 48px;
  font-weight: 600;
  font-size: 15px;
  transition: background-color 150ms, border-color 150ms, filter 150ms, color 150ms;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-clinic:active { transform: scale(0.99); }
.btn-clinic-primary { background: var(--navy); color: var(--white); }
.btn-clinic-primary:hover { background: var(--navy-dark); color: var(--white); }
.btn-clinic-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-clinic-secondary:hover { background: var(--sky); color: var(--navy); }
.btn-clinic-inverted { background: transparent; color: var(--white); border-color: var(--white); }
.btn-clinic-inverted:hover { background: var(--white); color: var(--navy); }
.btn-clinic-whatsapp { background: var(--whatsapp); color: var(--white); }
.btn-clinic-whatsapp:hover { filter: brightness(0.95); color: var(--white); }
.btn-clinic:disabled { opacity: 0.6; pointer-events: none; }

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--teal);
  font-weight: 600;
}
.phone-link:hover { text-decoration: underline; }

/* ---------- top bar / header ---------- */
.topbar { background: var(--navy); color: rgba(255, 255, 255, 0.9); font-size: 14px; }
.topbar a:hover { color: var(--white); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.brand-name { font-family: var(--font-serif); font-weight: 700; color: var(--navy); font-size: 20px; }
.brand-sub {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--steel);
}
.main-nav a {
  font-weight: 600;
  font-size: 15px;
  color: var(--charcoal);
  transition: color 150ms;
}
.main-nav a:hover,
.main-nav a.active { color: var(--teal); }

/* ---------- offcanvas nav ---------- */
.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 1.5rem;
  font-weight: 600;
  font-size: 17px;
  color: var(--charcoal);
  border-bottom: 1px solid var(--line);
}
.mobile-nav a.active { color: var(--teal); }

/* ---------- fade in on scroll ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 300ms ease-out, transform 300ms ease-out;
}
.fade-in.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ---------- cards / images ---------- */
.aspect-16-10 { aspect-ratio: 16 / 10; }
.aspect-4-5 { aspect-ratio: 4 / 5; }
.aspect-4-3 { aspect-ratio: 4 / 3; }
.aspect-img { object-fit: cover; width: 100%; height: 100%; }
.rounded-xl { border-radius: 12px; }
.rounded-md { border-radius: 8px; }

.service-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 150ms, box-shadow 150ms;
  background: var(--white);
}
.service-card:hover {
  border-color: rgba(21, 58, 95, 0.25);
  box-shadow: 0 4px 16px rgba(21, 58, 95, 0.08);
}

.info-pill-row {
  border: 1px solid var(--line);
  border-radius: 8px;
}
.info-pill {
  padding: 0.75rem 1rem;
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  border-right: 1px solid var(--line);
}
.info-pill:last-child { border-right: none; }
.info-pill svg { color: var(--teal); }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 30;
  height: 56px;
  width: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.whatsapp-float.visible { display: flex; }
.whatsapp-float:hover { filter: brightness(0.95); color: var(--white); }

/* ---------- stats band ---------- */
.stat-value { font-weight: 700; color: var(--white); font-size: 44px; line-height: 1; }
.stat-label { color: rgba(255, 255, 255, 0.8); font-size: 15px; margin-top: 0.5rem; }

/* ---------- reviews ---------- */
.review-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 1.5rem; }

/* ---------- accordion overrides (bootstrap) ---------- */
.accordion-clinic .accordion-button {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 17px;
  color: var(--charcoal);
  box-shadow: none;
}
.accordion-clinic .accordion-button:not(.collapsed) {
  color: var(--teal);
  background-color: transparent;
}
.accordion-clinic .accordion-button:focus { box-shadow: none; outline: 2px solid var(--teal); outline-offset: -2px; }
.accordion-clinic .accordion-body { color: var(--steel); font-size: 17px; line-height: 27px; }
.accordion-clinic .accordion-item { border-left: 0; border-right: 0; border-color: var(--line); }

/* ---------- forms ---------- */
.form-control-clinic {
  width: 100%;
  height: 48px;
  padding: 0 1rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 16px;
}
textarea.form-control-clinic { height: auto; padding: 0.75rem 1rem; }
.form-control-clinic:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal); }
.form-control-clinic.is-invalid { border-color: #f87171; }
.form-label-clinic { font-size: 14px; font-weight: 600; color: var(--charcoal); margin-bottom: 0.5rem; display: block; }
.field-error { margin-top: 0.5rem; font-size: 13px; color: #dc2626; }

/* ---------- bmi calculator ---------- */
.unit-toggle-btn {
  height: 36px;
  padding: 0 1rem;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--charcoal);
}
.unit-toggle-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.height-ft-row { display: flex; gap: 0.75rem; }
.height-ft-row.d-none { display: none; }
.bmi-scale { position: relative; height: 12px; border-radius: 999px; overflow: hidden; display: flex; }
.bmi-scale > div { flex: 1; }
.bmi-marker {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.8); }
.site-footer a:hover { color: var(--white); }
.footer-col-heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.5);
}
.footer-divider-x { border-color: rgba(255, 255, 255, 0.15) !important; }

.footer-grid > div { padding-top: 2rem; }
.footer-grid > div:first-child { padding-top: 0; }
.footer-grid > div:not(:first-child) { border-top: 1px solid rgba(255, 255, 255, 0.15); }
@media (min-width: 768px) {
  .footer-grid { display: flex; }
  .footer-grid > div {
    flex: 1;
    padding-top: 0;
    padding-left: 2rem;
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
  }
  .footer-grid > div:first-child { padding-left: 0; border-left: 0; }
}

.phone-link.on-navy { color: var(--white); }
.phone-link.on-navy:hover { text-decoration: underline; }

/* ---------- offcanvas full-screen mobile nav ---------- */
.offcanvas.mobile-nav { width: 100% !important; background: var(--white); }
.offcanvas.mobile-nav .offcanvas-header { height: 64px; }

/* ---------- legal pages ---------- */
.legal-content h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 19px;
  color: var(--navy);
  margin-top: 1.5rem;
}
.legal-content p { font-size: 16px; line-height: 26px; margin-top: 1rem; }
