/* ===== Design tokens ===== */
:root {
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-light: #ccfbf1;
  --ink: #0f172a;
  --slate: #475569;
  --muted: #64748b;
  --bg: #ffffff;
  --bg-alt: #f1f7f6;
  --border: #e2e8f0;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.10);
  --radius: 14px;
  --maxw: 1080px;
}

/* ===== Reset / base ===== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: "Poppins", system-ui, sans-serif; line-height: 1.2; margin: 0 0 .5em; }

p { margin: 0 0 1em; }

a { color: var(--teal-dark); }

img, svg, iframe { max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 18px; font-size: .95rem; }

.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }

.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: var(--whatsapp-dark); }

.btn-ghost { background: #fff; color: var(--teal-dark); border-color: var(--teal); }
.btn-ghost:hover { background: var(--teal-light); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
}
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.wordmark-icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--teal);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
}
.wordmark-text { display: flex; flex-direction: column; line-height: 1.1; }
.wordmark-name { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.1rem; }
.wordmark-sub { font-size: .72rem; color: var(--teal-dark); font-weight: 600; letter-spacing: .2px; }

.main-nav { display: flex; gap: 22px; }
.main-nav a {
  color: var(--slate);
  text-decoration: none;
  font-weight: 500;
  font-size: .98rem;
}
.main-nav a:hover { color: var(--teal-dark); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(160deg, #ecfeff 0%, #f0fdfa 45%, #ffffff 100%);
  padding: 64px 0 56px;
  text-align: center;
}
.hero-inner { max-width: 760px; }
.eyebrow {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-weight: 600;
  font-size: .85rem;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.hero h1 { font-size: clamp(2rem, 6vw, 3.2rem); margin-bottom: 8px; }
.hero-tagline {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  color: var(--teal-dark);
  font-size: clamp(1.1rem, 3.5vw, 1.5rem);
  margin-bottom: 16px;
}
.hero-lede { color: var(--slate); font-size: 1.08rem; max-width: 560px; margin: 0 auto 28px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ===== Sections ===== */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  text-align: center;
  margin-bottom: 12px;
}
.section-title::after {
  content: "";
  display: block;
  width: 56px; height: 4px;
  background: var(--teal);
  border-radius: 999px;
  margin: 14px auto 0;
}
.section-intro { text-align: center; color: var(--slate); max-width: 620px; margin: 0 auto 36px; }

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 24px;
}
.doctor-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.doctor-avatar {
  width: 92px; height: 92px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--teal);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 2rem;
}
.doctor-card h3 { margin-bottom: 4px; }
.doctor-role { color: var(--teal-dark); font-weight: 600; margin: 0; }
.about-text p { color: var(--slate); font-size: 1.05rem; }
.about-text p:last-child { margin-bottom: 0; }

/* ===== Services ===== */
.services-grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.service-card h3 { font-size: 1.12rem; margin-bottom: 6px; }
.service-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.service-highlight { border-color: var(--teal); background: linear-gradient(180deg, #f0fdfa, #ffffff); }
.service-badge {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--teal);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .3px;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}

/* ===== Why choose us ===== */
.why-grid {
  list-style: none;
  margin: 24px 0 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.why-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.why-icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: 1.4rem;
}
.why-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.why-card p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ===== Hours ===== */
.hours-card {
  max-width: 520px;
  margin: 24px auto 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 18px 24px;
  font-size: 1.05rem;
}
.hours-row + .hours-row { border-top: 1px solid var(--border); }
.hours-day { font-weight: 600; }
.hours-time { color: var(--teal-dark); font-weight: 600; }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 24px;
}
.contact-details h3 { margin-top: 20px; margin-bottom: 6px; }
.contact-details h3:first-child { margin-top: 0; }
.contact-details address { font-style: normal; color: var(--slate); line-height: 1.7; }
.text-link { color: var(--teal-dark); font-weight: 600; font-size: 1.15rem; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.contact-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.contact-map {
  min-height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.contact-map iframe { display: block; height: 100%; min-height: 340px; }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: #cbd5e1; padding: 40px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: 24px;
  align-items: start;
}
.footer-name { font-family: "Poppins", sans-serif; font-weight: 700; color: #fff; font-size: 1.2rem; margin-bottom: 4px; }
.footer-sub { color: #94a3b8; font-size: .9rem; margin: 0; }
.footer-address { font-style: normal; font-size: .92rem; line-height: 1.7; margin: 0; }
.footer-link { color: var(--teal-light); text-decoration: none; font-weight: 600; }
.footer-link:hover { text-decoration: underline; }
.footer-book { margin: 0; }
.footer-bottom {
  margin-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 0;
  text-align: center;
  font-size: .85rem;
  color: #94a3b8;
}

/* ===== Mobile contact bar (hidden on desktop) ===== */
.mobile-bar { display: none; }

/* ===== Floating WhatsApp button ===== */
.whatsapp-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
  transition: transform .15s ease, background .2s ease;
}
.whatsapp-fab:hover { background: var(--whatsapp-dark); transform: scale(1.05); }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 66px;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height .28s ease;
  }
  .main-nav.open { max-height: 340px; }
  .main-nav a {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
  }
  .main-nav a:first-child { border-top: none; }

  /* leave room for mobile contact bar */
  body { padding-bottom: 66px; }
  .whatsapp-fab { bottom: 74px; }

  .mobile-bar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 55;
    box-shadow: 0 -2px 12px rgba(15,23,42,0.12);
  }
  .mobile-bar-btn {
    flex: 1;
    text-align: center;
    padding: 16px 8px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    color: #fff;
  }
  .mobile-bar-btn.call { background: var(--teal); }
  .mobile-bar-btn.whatsapp { background: var(--whatsapp); }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 40px; }
  .hero-buttons .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
