/* =========================================================
   KINDER — Paediatric Clinic
   Shared stylesheet. Mobile-first (360px up).
   ========================================================= */

:root {
  /* Palette */
  --paper: #F5F9FC;
  --ink: #1B3A57;
  --sky: #2E9BD6;
  --kinder-red: #E84B4B;
  --blush: #FCE9EE;
  --sunshine: #FFC94D;

  /* Derived / support tones */
  --ink-soft: #4a6076;
  --white: #ffffff;
  --sky-dark: #2480b5;
  --red-dark: #d23e3e;

  /* Type */
  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, sans-serif;

  /* Shape & depth — the "building blocks" motif */
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(27, 58, 87, 0.08);
  --shadow: 0 8px 22px rgba(27, 58, 87, 0.10);
  --shadow-lift: 0 14px 30px rgba(27, 58, 87, 0.16);

  /* Layout */
  --maxw: 1080px;
  --gutter: 20px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.4em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 7vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 5vw, 2.3rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

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

/* ---------- Accessibility: focus ---------- */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--sunshine);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 200;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 56px 0;
}
.section--tight { padding: 40px 0; }

.section--blush { background: var(--blush); }
.section--ink {
  background: var(--ink);
  color: var(--white);
}
.section--ink h1,
.section--ink h2,
.section--ink h3 { color: var(--white); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}
.section-head p { color: var(--ink-soft); margin-bottom: 0; }
.section--ink .section-head p { color: rgba(255,255,255,0.85); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sky-dark);
  margin-bottom: 6px;
  position: relative;
}
.eyebrow::after {
  content: "";
  display: block;
  width: 38px;
  height: 4px;
  border-radius: 4px;
  background: var(--sunshine);
  margin: 6px auto 0;
}
.section-head .eyebrow::after { margin-left: auto; margin-right: auto; }

/* ---------- Buttons (rounded blocks) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1;
  padding: 15px 24px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 20px; height: 20px; flex: 0 0 auto; }

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}
.btn:active { transform: translateY(-1px); }

.btn--call {
  background: var(--kinder-red);
  color: var(--white);
}
.btn--call:hover { background: var(--red-dark); }

.btn--whatsapp {
  background: #25D366;
  color: #08331a;
}
.btn--whatsapp:hover { background: #1fb959; }

.btn--ghost {
  background: var(--white);
  color: var(--ink);
  box-shadow: inset 0 0 0 2px rgba(27,58,87,0.12), var(--shadow-sm);
}
.btn--ghost:hover { background: #fff; box-shadow: inset 0 0 0 2px var(--sky), var(--shadow); }

.btn--sky {
  background: var(--sky);
  color: var(--white);
}
.btn--sky:hover { background: var(--sky-dark); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 249, 252, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(27,58,87,0.07);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
}

/* KINDER block-letter wordmark */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.wordmark {
  display: inline-flex;
  gap: 4px;
}
.wordmark span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--white);
  background: var(--sky);
  width: 1.55em;
  height: 1.55em;
  display: grid;
  place-items: center;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  line-height: 1;
}
.wordmark span:nth-child(1) { background: var(--kinder-red); transform: rotate(-3deg); }
.wordmark span:nth-child(2) { background: var(--sky); transform: rotate(2deg); }
.wordmark span:nth-child(3) { background: var(--sunshine); color: var(--ink); transform: rotate(-2deg); }
.wordmark span:nth-child(4) { background: var(--sky); transform: rotate(3deg); }
.wordmark span:nth-child(5) { background: var(--kinder-red); transform: rotate(-2deg); }
.wordmark span:nth-child(6) { background: var(--sky); transform: rotate(2deg); }
.brand-sub {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: none;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  background: var(--white);
  border: 1px solid rgba(27,58,87,0.12);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  border-radius: 3px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Mobile menu: collapsed panel */
.nav-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--paper);
  border-bottom: 1px solid rgba(27,58,87,0.08);
  box-shadow: var(--shadow);
  display: none;
  padding: 8px var(--gutter) 18px;
}
.nav-menu.open { display: block; }

.nav-links a {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  padding: 13px 8px;
  border-radius: var(--radius-sm);
}
.nav-links a:hover { background: rgba(46,155,214,0.10); }
.nav-links a[aria-current="page"] {
  color: var(--sky-dark);
  background: rgba(46,155,214,0.12);
}
.nav-cta { margin-top: 10px; }
.nav-cta .btn { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 44px 0 56px;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(46,155,214,0.14), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(232,75,75,0.08), transparent 55%);
}
.hero-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}
.hero-promise {
  color: var(--ink-soft);
  font-size: 1.12rem;
  max-width: 36ch;
}
.hero .trust-line {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
  margin: 4px 0 22px;
  font-weight: 700;
  font-size: 0.96rem;
}
.hero .trust-line .doc { color: var(--ink); }
.hero .trust-line .cred { color: var(--ink-soft); font-weight: 600; }
.stars { color: var(--sunshine); letter-spacing: 1px; }
.rating-text { color: var(--ink-soft); font-weight: 600; font-size: 0.9rem; }

/* Hero illustration block */
.hero-art {
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 18px;
  position: relative;
}
.hero-art img,
.hero-art svg {
  width: 100%;
  border-radius: var(--radius);
  display: block;
  object-fit: cover;
  object-position: center top;
  max-height: 290px;
}

.appt-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-weight: 700;
  color: var(--sky-dark);
  font-size: 0.95rem;
}
.appt-note .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--sunshine); flex: 0 0 auto;
}

/* ---------- Trust strip / feature cards ---------- */
.grid {
  display: grid;
  gap: 18px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--ink-soft); margin-bottom: 0; }

.icon-block {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: rgba(46,155,214,0.12);
  color: var(--sky-dark);
}
.icon-block svg { width: 28px; height: 28px; }
.icon-block.red { background: rgba(232,75,75,0.12); color: var(--red-dark); }
.icon-block.sun { background: rgba(255,201,77,0.22); color: #b9821a; }
.icon-block.blush { background: var(--blush); color: var(--kinder-red); }

/* Service card link affordance */
a.card {
  text-decoration: none;
  color: inherit;
  display: block;
}
a.card .more {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--sky-dark);
}

/* ---------- Testimonials ---------- */
.quote {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.quote::before {
  content: "\201C";
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 0.6;
  color: rgba(46,155,214,0.25);
  position: absolute;
  top: 16px;
  left: 16px;
}
.quote p {
  position: relative;
  font-size: 1.03rem;
  padding-top: 14px;
}
.quote .who {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0;
}
.quote .stars { font-size: 0.95rem; }

/* ---------- Hours & location ---------- */
.info-grid {
  display: grid;
  gap: 18px;
}
.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
}
.info-card h3 { display: flex; align-items: center; gap: 10px; }

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}
.hours-table th,
.hours-table td {
  text-align: left;
  padding: 9px 4px;
  border-bottom: 1px solid rgba(27,58,87,0.08);
  font-size: 0.97rem;
}
.hours-table th { font-family: var(--font-display); font-weight: 600; }
.hours-table td { color: var(--ink-soft); }
.hours-table tr:last-child th,
.hours-table tr:last-child td { border-bottom: none; }
.hours-table .closed td { color: var(--kinder-red); font-weight: 700; }
.break-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  background: var(--blush);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-weight: 700;
  font-size: 0.9rem;
}

.address-line { font-style: normal; color: var(--ink-soft); margin-bottom: 14px; }

/* Phone list — visible tappable numbers */
.phone-list {
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
}
.phone-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(27,58,87,0.07);
  flex-wrap: wrap;
}
.phone-list li:last-child { border-bottom: none; }
.phone-list .label {
  font-weight: 700;
  font-family: var(--font-display);
  min-width: 130px;
}
.phone-list a {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--sky-dark);
  text-decoration: none;
}
.phone-list a:hover { text-decoration: underline; }

/* ---------- Closing CTA band ---------- */
.cta-band {
  text-align: center;
}
.cta-band .btn-row { justify-content: center; }
.cta-band p { max-width: 52ch; margin-left: auto; margin-right: auto; }

/* ---------- About page ---------- */
.doc-card {
  display: grid;
  gap: 24px;
  align-items: start;
}
.doc-portrait {
  background: var(--blush);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.doc-portrait img,
.doc-portrait svg {
  width: 100%;
  border-radius: var(--radius);
  display: block;
  object-fit: cover;
  object-position: center top;
  max-height: 380px;
}
.placeholder-note {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #9a6a14;
  background: rgba(255,201,77,0.25);
  border: 1px dashed rgba(185,130,26,0.6);
  border-radius: 8px;
  padding: 3px 9px;
  margin: 4px 0;
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.steps li {
  counter-increment: step;
  display: flex;
  gap: 14px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.steps li::before {
  content: counter(step);
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--sky);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  display: grid;
  place-items: center;
}
.steps h3 { margin: 0 0 3px; }
.steps p { margin: 0; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.82);
  padding: 44px 0 28px;
}
.footer-grid {
  display: grid;
  gap: 28px;
  margin-bottom: 28px;
}
.site-footer h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 12px; }
.site-footer a { color: var(--white); }
.site-footer .wordmark span { font-size: 1.1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { text-decoration: none; color: rgba(255,255,255,0.82); }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-phone a { font-weight: 700; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 18px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  text-align: center;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (min-width: 600px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .brand-sub { display: block; }
}

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .nav-menu {
    position: static;
    display: flex !important;
    align-items: center;
    gap: 8px;
    background: none;
    box-shadow: none;
    border: none;
    padding: 0;
    width: auto;
  }
  .nav-links {
    display: flex;
    gap: 4px;
  }
  .nav-links a { padding: 9px 14px; }
  .nav-cta { margin-top: 0; margin-left: 8px; }
  .nav-cta .btn { width: auto; padding: 11px 18px; }

  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }

  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 40px; }
  .hero { padding: 64px 0 72px; }
  .hero-art img { max-height: 460px; }
  .doc-portrait img { max-height: 520px; }

  .doc-card { grid-template-columns: 0.8fr 1.2fr; gap: 36px; }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1.3fr; }
}

@media (min-width: 980px) {
  .services-full.grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .btn:hover, .card:hover { transform: none; }
}
