:root {
  --blue-900: #00072D;
  --blue-700: #121B55;
  --blue-500: #263779;
  --blue-100: #E8EAF2;
  --white: #FFFFFF;
  --text: #12182F;
  --border: #D6E5F1;
  --muted: #414966;
  --shadow: 0 16px 38px rgba(0, 7, 45, 0.12);
  --shadow-soft: 0 7px 22px rgba(0, 7, 45, 0.07);
  --radius: 12px;
  --page-width: 1200px;
  --gutter: 20px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img,
svg { display: block; }

img { max-width: 100%; }

a {
  color: var(--blue-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

button,
input,
textarea { font: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 3px;
}

h1,
h2,
h3,
p,
figure,
blockquote { margin-top: 0; }

h1,
h2,
h3 {
  color: var(--blue-900);
  font-family: "Poppins", system-ui, sans-serif;
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(2.3rem, 9vw, 4.7rem);
  font-weight: 700;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 5.5vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
  font-weight: 600;
}

p { max-width: 68ch; }

.container {
  width: min(var(--page-width), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  transform: translateY(-150%);
  border-radius: 8px;
  color: var(--white);
  background: var(--blue-900);
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--white);
  border-radius: 50%;
  color: var(--white);
  background: var(--blue-900);
  box-shadow: 0 8px 20px rgba(0, 7, 45, 0.2);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease, background-color 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover { background: var(--blue-700); }
.back-to-top:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; }

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.98);
}

.header-inner {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  color: var(--blue-900);
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  color: var(--blue-500);
}

.brand-copy {
  display: grid;
  line-height: 1.18;
}

.brand-name {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.brand-subtitle {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.menu-toggle {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  align-content: center;
  justify-items: center;
  gap: 5px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--blue-900);
  background: var(--white);
  cursor: pointer;
}

.menu-toggle span {
  width: 21px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }

.mobile-header-whatsapp {
  display: none;
}

.site-nav {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  display: grid;
  grid-template-rows: 0fr;
  border-bottom: 1px solid transparent;
  background: var(--white);
  visibility: hidden;
  transition: grid-template-rows 200ms ease, border-color 200ms ease;
}

.site-nav.is-open {
  grid-template-rows: 1fr;
  border-color: var(--border);
  visibility: visible;
}

.nav-list {
  overflow: hidden;
  margin: 0;
  padding: 0 var(--gutter);
  list-style: none;
}

.nav-list li { border-bottom: 1px solid var(--border); }
.nav-list li:last-child { border-bottom: 0; }

.nav-link {
  display: flex;
  min-height: 50px;
  align-items: center;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.nav-link:hover,
.nav-link[aria-current="location"] { color: var(--blue-500); }

.nav-appointment { padding-block: 9px; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 20px;
  border: 2px solid var(--blue-500);
  border-radius: 999px;
  color: var(--white);
  background: var(--blue-500);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: var(--blue-900);
  background: var(--blue-900);
}

.button-small {
  width: 100%;
  min-height: 46px;
}

.contact-button,
.contact-cta-button {
  border-color: var(--blue-900);
  background: var(--blue-900);
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.contact-button:hover,
.contact-cta-button:hover {
  border-color: var(--blue-500);
  background: var(--blue-500);
  transform: scale(1.04);
  box-shadow: 0 10px 24px rgba(0, 7, 45, 0.18);
}

.whatsapp-button {
  min-height: 44px;
}

.whatsapp-button:focus-visible {
  outline: 3px solid #168C50;
  outline-offset: 3px;
}

.whatsapp-icon {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  flex: 0 0 22px;
}

.whatsapp-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.mobile-header-whatsapp .whatsapp-icon svg {
  fill: initial;
  stroke: none;
  stroke-width: 0;
}

.button-outline {
  color: var(--blue-500);
  background: transparent;
}

.button-outline:hover {
  color: var(--white);
  background: var(--blue-500);
}

.hero {
  position: relative;
  overflow: clip;
  min-height: 0;
  background-color: var(--white);
  background-image:
    linear-gradient(180deg, rgba(227, 242, 253, 0.16) 0%, rgba(227, 242, 253, 0.04) 100%),
    url("../assets/images/dr-lutful-karim-hero.png");
  background-repeat: no-repeat;
  background-position: 68% top;
  background-size: auto 300px;
  background-attachment: scroll;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  min-height: 0;
  justify-content: center;
  padding-top: 300px;
  padding-bottom: 28px;
}

.hero-copy {
  width: min(100%, 600px);
  padding: 24px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, rgba(0, 7, 45, 0.78), rgba(18, 87, 168, 0.54));
  box-shadow: 0 16px 36px rgba(0, 7, 45, 0.12);
  backdrop-filter: blur(3px);
  animation: hero-copy-fade-in 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes hero-copy-fade-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-section { padding-bottom: 34px; }
.services-section { padding-top: 34px; }

.hero-title-highlight {
  display: inline-block;
  padding: 0;
  color: inherit;
  background: transparent;
}

.hero-kicker,
.section-label {
  margin-bottom: 8px;
  color: var(--blue-500);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero-copy .hero-kicker,
.hero-copy h1,
.hero-copy .hero-name,
.hero-copy .hero-tagline {
  color: var(--white);
}

.hero-copy .hero-kicker { color: #B9DFFF; }
.hero-copy .hero-name { margin-bottom: 2px; }
.hero-copy .hero-kicker {
  margin-bottom: 8px;
  color: #B9DFFF;
  font-size: 13px;
  letter-spacing: 0.06em;
}
.hero-copy .hero-button { margin-top: 2px; }

.hero-name {
  margin: 0 0 8px;
  color: var(--blue-700);
  font-family: "Poppins", system-ui, sans-serif;
  font-size: clamp(1.15rem, 4vw, 1.45rem);
  font-weight: 600;
}

.hero-tagline {
  max-width: 43ch;
  margin-bottom: 20px;
  color: var(--blue-900);
  font-size: clamp(1.08rem, 3.3vw, 1.3rem);
  line-height: 1.55;
}

.hero-button { min-width: 194px; }

.benefits {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid #E8F2F9;
  background: linear-gradient(100deg, var(--white), #F4FAFE, var(--white));
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-block: 22px;
}

.benefit-item {
  display: grid;
  justify-items: center;
  padding: 12px 10px;
  text-align: center;
}

.benefit-item:nth-child(even) { border-left: 1px solid var(--border); }
.benefit-item:nth-child(n+3) { border-top: 1px solid var(--border); }

.benefit-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 9px;
  border-radius: 50%;
  color: var(--blue-500);
  background: var(--blue-100);
}

.benefit-icon svg,
.expertise-icon svg,
.service-icon svg,
.credential-icon svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.benefit-item h2 {
  margin-bottom: 3px;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.benefit-item p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.section {
  padding-block: 58px;
  scroll-margin-top: 78px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 26px;
}

.section-heading > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.section-heading-centered {
  margin-inline: 0;
  text-align: left;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.about-copy h2 { max-width: 23ch; }
.about-copy > p:not(.section-label) { color: var(--muted); }
.about-copy .button { margin-top: 3px; }

.balaka-section { background: #F6FAFD; }

.balaka-heading {
  margin-bottom: 32px;
  margin-inline: 0;
  text-align: left;
}

.balaka-part {
  display: grid;
  align-items: center;
  gap: 32px;
}

.balaka-part + .balaka-part {
  margin-top: 48px;
}

.balaka-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.balaka-copy > * { margin: 0; }
.balaka-copy h3 { font-size: clamp(1.35rem, 2.5vw, 1.8rem); }
.balaka-copy > p:not(.section-label) {
  color: var(--muted);
  line-height: 1.7;
}

.balaka-copy blockquote {
  padding: 16px 18px;
  border-left: 3px solid var(--blue-500);
  color: var(--blue-700);
  background: #F8FCFF;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.65;
}

.balaka-credit {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.balaka-article-link {
  display: inline-flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  gap: 8px;
}

.balaka-article-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.balaka-carousel {
  min-width: 0;
  outline: none;
}

.balaka-media {
  min-width: 0;
}

.carousel-source {
  width: 100%;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  font-style: italic;
  line-height: 1.5;
  text-align: left;
}

.carousel-track {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
}

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #FFFFFF, #F5FAFE);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  cursor: pointer;
  touch-action: manipulation;
  transition: opacity 600ms ease;
}

.balaka-carousel:not(.is-ready) .carousel-slide:first-child { opacity: 1; }
.carousel-slide.is-active { opacity: 1; }

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, center top);
}

.balaka-carousel#balaka-history-carousel .carousel-slide:nth-child(3) img,
.balaka-carousel#balaka-history-carousel .carousel-slide:nth-child(4) img {
  --focus: center 32%;
}

.balaka-carousel:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.credential-list {
  display: grid;
  width: 100%;
  gap: 4px;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
  list-style: none;
}

.credential-list li {
  display: flex;
  min-height: 62px;
  align-items: center;
  gap: 13px;
  padding-block: 8px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.credential-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--blue-500);
}

.expertise-section,
.expertise-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.expertise-item {
  padding: 19px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #FFFFFF, #F8FCFF);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.expertise-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.expertise-icon,
.service-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 10px;
  color: var(--blue-500);
}

.expertise-item h3 { font-size: 1.05rem; }
.expertise-item p,
.service-card p { margin-bottom: 0; color: var(--muted); }

.services-section { background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.service-card {
  display: grid;
  justify-items: center;
  align-content: start;
  min-height: 210px;
  padding: 20px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #FFFFFF 20%, #F5FAFE);
  text-align: center;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.service-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 7px;
}

.service-icon svg { width: 38px; height: 38px; }
.service-card h3 { font-size: 1rem; }

.blog-section { background: #F6FAFD; }

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.blog-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.blog-card-top {
  display: flex;
  min-height: 88px;
  align-items: end;
  padding: 16px 20px;
  color: var(--white);
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
}

.blog-card-diabetes { background: linear-gradient(135deg, #0B2E5C, #1E88E5); }
.blog-card-obesity { background: linear-gradient(135deg, #1257A8, #6BB6E8); }
.blog-card-body { padding: 22px; }

.blog-meta {
  margin-bottom: 8px;
  color: var(--blue-700);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.blog-section .section-heading h2 {
  color: var(--blue-900);
}

.blog-card h3 {
  margin-bottom: 10px;
  color: var(--blue-900);
  font-size: 1.35rem;
}
.blog-card p:not(.blog-meta) { margin-bottom: 0; color: var(--muted); }

.bmi-section {
  padding-block: 8px 50px;
  scroll-margin-top: 78px;
}

.bmi-panel {
  position: relative;
  display: grid;
  overflow: hidden;
  gap: 20px;
  padding: 24px;
  border: 1px solid #D1E8F9;
  border-radius: var(--radius);
  background-color: var(--blue-100);
  background-image: linear-gradient(rgba(232, 234, 242, 0.56), rgba(232, 234, 242, 0.56)), url("../assets/images/bmi-wellness-banner.png");
  background-position: center;
  background-size: cover;
}

.bmi-copy {
  position: relative;
  z-index: 1;
}

.bmi-copy h2 { margin-bottom: 7px; }
.bmi-copy > p:not(.section-label) { margin-bottom: 8px; }

.bmi-disclaimer {
  color: var(--muted);
  font-size: 16px;
}

.bmi-meter {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  max-height: 0;
  overflow: hidden;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(11, 46, 92, 0);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.98);
  transition: max-height 420ms ease, padding 420ms ease, border-color 420ms ease, box-shadow 420ms ease, opacity 280ms ease, transform 420ms ease;
}

.bmi-meter.is-visible {
  max-height: 580px;
  padding: 22px 18px 18px;
  border-color: rgba(11, 46, 92, 0.12);
  box-shadow: 0 8px 22px rgba(11, 46, 92, 0.08);
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .bmi-meter {
    transition: none;
  }
}

.bmi-meter-title {
  margin-bottom: 18px;
  color: #2B2B2B;
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(1.15rem, 3vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: uppercase;
}

.bmi-gauge {
  position: relative;
  width: min(100%, 680px);
  aspect-ratio: 3 / 1;
  margin-inline: auto;
  overflow: hidden;
}

.bmi-gauge-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bmi-band {
  stroke: var(--white);
  stroke-width: 3;
  stroke-linejoin: round;
}

.bmi-band-under { fill: #28B9E8; }
.bmi-band-normal { fill: #20C856; }
.bmi-band-over { fill: #FFD126; }
.bmi-band-obese { fill: #FF7414; }
.bmi-band-severe { fill: #F20D16; }

.bmi-segment-label {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-anchor: middle;
}

.bmi-segment-label-light {
  fill: var(--white);
  paint-order: stroke;
  stroke: rgba(11, 46, 92, 0.45);
  stroke-width: 1.5px;
}

.bmi-segment-label-dark { fill: var(--blue-900); }

.bmi-needle {
  position: absolute;
  z-index: 2;
  bottom: 8px;
  left: 50%;
  width: 13px;
  height: 54%;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: #202632;
  transform: translateX(-50%) rotate(var(--needle-angle, -90deg));
  transform-origin: 50% 100%;
  transition: transform 400ms ease-out;
}

.bmi-hub {
  position: absolute;
  z-index: 3;
  bottom: -1px;
  left: 50%;
  width: 20px;
  height: 20px;
  border: 4px solid #202632;
  border-radius: 50%;
  background: var(--white);
  transform: translateX(-50%);
}

.bmi-meter-status { margin: 12px 0 0; color: var(--blue-900); text-align: center; font-weight: 600; }

.bmi-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 11px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.bmi-field label,
.form-field label {
  display: block;
  margin-bottom: 5px;
  color: var(--blue-900);
  font-weight: 600;
}

.input-with-unit {
  display: flex;
  min-height: 46px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
}

.input-with-unit input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 11px;
  border: 0;
  border-radius: 8px;
  color: var(--text);
  background: transparent;
}

.input-with-unit input:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 1px;
}

.input-with-unit span {
  padding-inline: 11px;
  color: var(--blue-900);
  font-size: 16px;
}

.input-with-unit:has(input[aria-invalid="true"]) {
  outline: 1px solid var(--blue-700);
}

.bmi-submit {
  width: min(100%, 150px);
  min-height: 44px;
  padding: 9px 18px;
  cursor: pointer;
}

.bmi-result {
  min-height: 0;
  margin: 0;
  color: var(--blue-900);
  font-weight: 700;
}

.bmi-result:empty { display: none; }
.bmi-result[data-state="error"] { color: var(--blue-900); }

.field-error {
  display: block;
  margin-top: 3px;
  color: var(--blue-900);
  font-size: 16px;
}

.field-error:empty { display: none; }

.wellness-section {
  display: grid;
  border-block: 1px solid #E5F1FA;
  background: linear-gradient(100deg, #EAF7FF 0%, #F8FCFF 100%);
}

.wellness-art {
  position: relative;
  display: flex;
  min-height: 190px;
  align-items: center;
  justify-content: space-evenly;
  overflow: hidden;
  background: linear-gradient(125deg, #B9E1F9, #E8F7FF 58%, #C9E9FA);
}

.wellness-produce {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #263779 0 7%, transparent 8%), radial-gradient(circle at 65% 29%, #121B55 0 9%, transparent 10%), radial-gradient(circle at 39% 67%, #263779 0 11%, transparent 12%), radial-gradient(circle at 73% 67%, #00072D 0 9%, transparent 10%), #E8EAF2;
  box-shadow: 0 9px 20px rgba(0, 7, 45, 0.12);
}

.wellness-bowl {
  display: grid;
  width: 118px;
  height: 70px;
  border: 9px solid var(--white);
  border-top: 0;
  border-radius: 0 0 70px 70px;
  background: radial-gradient(circle at 30% 45%, #263779 0 9%, transparent 10%), radial-gradient(circle at 65% 35%, #121B55 0 10%, transparent 11%), radial-gradient(circle at 54% 71%, #50639C 0 13%, transparent 14%), #E8EAF2;
  box-shadow: 0 8px 18px rgba(0, 7, 45, 0.1);
}

.wellness-bottle {
  position: relative;
  width: 26px;
  height: 85px;
  transform: rotate(-11deg);
  border-radius: 7px 7px 10px 10px;
  background: linear-gradient(90deg, #FFFFFF, #62B4ED 58%, #D9F1FE);
  box-shadow: 0 7px 14px rgba(0, 7, 45, 0.13);
}

.wellness-bottle::before {
  position: absolute;
  top: -10px;
  left: 6px;
  width: 14px;
  height: 13px;
  border-radius: 3px 3px 0 0;
  background: var(--blue-700);
  content: "";
}

.wellness-shoe {
  position: relative;
  width: 83px;
  height: 34px;
  transform: rotate(-20deg);
  border: 3px solid var(--white);
  border-radius: 35px 24px 13px 14px;
  background: linear-gradient(145deg, #49A5E7, var(--blue-900));
}

.wellness-shoe::after {
  position: absolute;
  right: -1px;
  bottom: -6px;
  left: -4px;
  height: 7px;
  border-radius: 0 0 10px 10px;
  background: var(--white);
  content: "";
}

.wellness-copy {
  align-self: center;
  width: min(var(--page-width), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  padding-block: 28px 34px;
}

.wellness-copy h2 { margin-bottom: 10px; }
.wellness-copy > p:not(.section-label) { color: var(--muted); }

.text-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  color: var(--blue-700);
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  color: var(--blue-900);
  text-decoration: underline;
}

.appointment-section { background: #F6FAFD; }

.appointment-layout {
  display: grid;
  gap: 24px;
}

.appointment-copy > p:not(.section-label) { color: var(--muted); }

.chamber-details {
  display: grid;
  gap: 15px;
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.chamber-details h3 {
  margin-bottom: 0;
  color: var(--blue-900);
}

.chamber-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.chamber-detail-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  color: var(--blue-500);
}

.chamber-detail-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.chamber-detail p {
  display: grid;
  gap: 2px;
  margin: 0;
  color: var(--muted);
}

.chamber-detail strong {
  color: var(--blue-900);
}

.directions-button {
  justify-self: start;
  min-height: 44px;
  margin-top: 2px;
}

.site-footer {
  padding-block: 34px 20px;
  color: var(--white);
  background: var(--blue-900);
}

.footer-main { display: grid; gap: 22px; }
.footer-brand { color: var(--white); }
.footer-brand .brand-mark { color: #7CC4F4; }
.footer-brand .brand-subtitle { color: var(--blue-100); }
.footer-brand-block > p { margin: 8px 0 0; color: var(--blue-100); }
.footer-brand-block .footer-phone {
  color: var(--white);
  text-decoration: none;
}

.mobile-whatsapp-bar {
  display: none;
}

.mobile-whatsapp-bar {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity 250ms ease, transform 250ms ease, visibility 250ms ease;
  visibility: hidden;
}

.mobile-whatsapp-bar.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.footer-social {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 3px;
}

.footer-social h2 {
  margin-bottom: 6px;
  color: var(--white);
  font-size: 1.05rem;
  letter-spacing: 0;
}

.social-placeholders {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.social-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  color: var(--white);
  text-decoration: none;
}

.social-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.social-icon:hover { color: var(--blue-100); border-color: var(--blue-100); }
.social-icon:focus-visible { outline: 3px solid var(--blue-100); outline-offset: 3px; }
.social-label { color: var(--blue-100); }

.footer-bottom {
  display: grid;
  gap: 5px;
  margin-top: 24px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.footer-bottom p { margin: 0; color: var(--blue-100); }

.js .reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.js .reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

@media (min-width: 640px) {
  :root { --gutter: 32px; }

  .hero {
    min-height: 600px;
    background-image:
      linear-gradient(90deg, rgba(227, 242, 253, 0.98) 0%, rgba(227, 242, 253, 0.9) 43%, rgba(227, 242, 253, 0.22) 78%, rgba(227, 242, 253, 0.04) 100%),
      url("../assets/images/dr-lutful-karim-hero.png");
    background-position: center center;
    background-size: cover;
  }

  .hero-inner { min-height: 600px; padding-block: 64px; }

  .about-section,
  .services-section,
  .balaka-section {
    padding-block: 76px;
  }

  .benefits-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .benefit-item { padding: 12px 13px; }
  .benefit-item:nth-child(even) { border-left: 0; }
  .benefit-item + .benefit-item { border-left: 1px solid var(--border); }
  .benefit-item:nth-child(n+3) { border-top: 0; }

  .section { padding-block: 76px; }
  .about-layout { grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.9fr); align-items: center; gap: 32px; }
  .credential-list { grid-column: 2; }

  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .bmi-panel { grid-template-columns: minmax(0, 1fr) minmax(255px, 0.9fr); align-items: center; padding: 28px; }
  .bmi-copy { padding-right: 20px; border-right: 1px solid #CFD4E4; }

  .appointment-layout { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; gap: 30px; }
  .appointment-copy { grid-column: 1 / -1; }

  .footer-main { grid-template-columns: 1.2fr 0.8fr; }
  .footer-bottom { grid-template-columns: auto 1fr; align-items: start; gap: 20px; }
  .footer-bottom p:last-child { justify-self: end; text-align: right; }
}

@media (min-width: 1024px) {
  :root { --gutter: 44px; }

  .header-inner { min-height: 74px; }
  .brand-mark { width: 44px; height: 44px; }
  .brand-name { font-size: 16px; }

  .menu-toggle { display: none; }

  .site-nav {
    position: static;
    display: block;
    border: 0;
    background: transparent;
    transition: none;
    visibility: visible;
  }

  .nav-list {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 28px);
    overflow: visible;
    padding: 0;
  }

  .nav-list li { border: 0; }
  .nav-link { min-height: 48px; font-size: 16px; white-space: nowrap; }
  .nav-appointment { padding: 0; }
  .button-small { width: auto; padding-inline: 19px; }

  .hero-inner {
    min-height: 540px;
    justify-content: center;
    padding-block: 42px;
  }

  .hero {
    min-height: 540px;
    background-position: center top;
  }

  .hero-copy { max-width: min(54%, 600px); padding: 30px; }

  .benefits-grid { padding-block: 20px; }
  .benefit-item { padding-inline: 23px; }
  .benefit-item + .benefit-item { border-left: 1px solid var(--border); }

  .section { padding-block: 84px; }
  .about-layout { grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr); align-items: center; gap: 48px; }
  .about-copy { padding-right: 24px; }
  .credential-list { grid-column: 2; padding-left: 20px; border-top: 0; border-left: 1px solid var(--border); }
  .credential-list li { padding-left: 12px; }


  .services-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .service-card { min-height: 220px; padding: 21px 17px; }
  .blog-card-body { padding: 26px; }

  .bmi-section { padding-block: 0 64px; }
  .bmi-panel { grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr); gap: 22px; padding: 28px; }
  .bmi-copy { border-right: 1px solid #CFD4E4; }

  .wellness-art { min-height: 285px; }
  .wellness-copy { padding: 34px clamp(35px, 7vw, 96px); }

  .appointment-layout { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 50px; }
  .appointment-copy { grid-column: 1 / -1; }

  .footer-main { grid-template-columns: 1.3fr 0.7fr; gap: 35px; }
}

@media (min-width: 768px) {
  .balaka-part {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    align-items: stretch;
  }

  .balaka-part--today .balaka-carousel { order: -1; }
}

@media (max-width: 767.98px) {
  .header-inner {
    gap: 10px;
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .brand-copy {
    min-width: 0;
  }

  .brand-subtitle {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-header-whatsapp {
    display: inline-flex;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-color: transparent;
    background: transparent;
    border-radius: 50%;
  }

  .mobile-header-whatsapp:hover,
  .mobile-header-whatsapp:active {
    border-color: transparent;
    background: transparent;
    transform: none;
    box-shadow: none;
  }

  .mobile-header-whatsapp .whatsapp-icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .menu-toggle {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }

  .nav-list {
    padding-bottom: 16px;
  }

  .nav-list .nav-appointment {
    display: none;
  }

  .nav-list li:nth-last-child(2) {
    border-bottom: 0;
  }

  .site-header {
    background: var(--white);
  }

  .about-copy > .section-label,
  .about-copy > h2,
  .about-copy > h2 + p,
  .services-section .section-heading h2,
  .blog-section .section-heading h2,
  .balaka-heading h2,
  .appointment-copy > .section-label,
  .appointment-copy > h2,
  .appointment-copy > h2 + p,
  .bmi-copy > .section-label,
  .bmi-copy > h2,
  .bmi-copy > h2 + p {
    text-align: left;
    margin-inline: 0;
  }

  .about-copy > h2,
  .services-section .section-heading h2,
  .bmi-copy > h2,
  .blog-section .section-heading h2,
  .balaka-heading h2,
  .appointment-copy > h2 {
    text-wrap: balance;
  }

  .about-copy > h2 + p,
  .services-section .section-heading h2 + p,
  .bmi-copy > h2 + p,
  .blog-section .section-heading h2 + p,
  .appointment-copy > h2 + p {
    max-width: 36rem;
  }

  .section-heading {
    width: min(var(--page-width), calc(100% - var(--gutter) * 2));
    margin-inline: auto;
  }

  .about-copy,
  .bmi-copy,
  .appointment-copy,
  .chamber-details,
  .balaka-copy,
  .service-card,
  .blog-card,
  .credential-list,
  .footer-main,
  .footer-bottom {
    text-align: left;
  }

  .chamber-details {
    grid-template-columns: 1fr;
  }

  .chamber-detail {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 0.75rem;
    align-items: start;
  }

  .chamber-detail p {
    min-width: 0;
  }

  .balaka-carousel#balaka-history-carousel .carousel-slide:nth-child(3) img,
  .balaka-carousel#balaka-history-carousel .carousel-slide:nth-child(4) img {
    object-fit: contain;
    object-position: center;
  }

  body {
    padding-bottom: 0;
  }

  body.mobile-whatsapp-visible {
    padding-bottom: 0;
  }

  .mobile-whatsapp-bar {
    display: none;
  }

  .mobile-whatsapp-bar.is-visible {
    display: none;
  }

  .mobile-whatsapp-bar .button {
    width: 100%;
  }

  .back-to-top {
    bottom: calc(18px + env(safe-area-inset-bottom));
  }
}

@media (min-width: 1280px) {
  :root { --gutter: 52px; }
  .hero-inner { min-height: 510px; }
  .section { padding-block: 96px; }
  .about-layout { grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr); gap: 60px; }
  .bmi-panel { padding: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy {
    animation: none;
  }

  * ,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .carousel-slide { transition: none; }

  .mobile-whatsapp-bar {
    transition: none;
  }
}
