/* Roots Medical Centre — design concept by Beans Digital
   Palette reasoning: no existing brand found. Deep teal = clinical trust/cleanliness
   (standard in dental), soft mint for calm, warm sand accent nodding to "Roots". */

:root {
  --teal-900: #0f3d3e;
  --teal-700: #16575a;
  --teal-500: #2a7e80;
  --mint-100: #e6f2f0;
  --mint-50: #f4faf8;
  --sand-400: #d9a86c;
  --sand-100: #f7ecdd;
  --ink: #1c2a2a;
  --ink-soft: #4a5c5c;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(15, 61, 62, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

@view-transition { navigation: auto; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color: var(--ink);
  background: var(--mint-50);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: var(--teal-700); }

/* Concept banner */
.concept-banner {
  background: #fff8e8;
  border-bottom: 1px solid #eadbb8;
  color: #6b5518;
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* Header */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(15, 61, 62, 0.08);
  view-transition-name: site-header;
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  view-transition-name: site-logo;
}
.logo-mark {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--teal-700);
  color: var(--white);
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 1.1rem;
}
.logo-text { line-height: 1.2; }
.logo-text strong { display: block; color: var(--teal-900); font-size: 1.05rem; }
.logo-text span { font-size: 0.72rem; color: var(--ink-soft); letter-spacing: 0.06em; text-transform: uppercase; }

.main-nav { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.main-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
}
.main-nav a:hover { background: var(--mint-100); color: var(--teal-900); }
.main-nav a.active { background: var(--teal-700); color: var(--white); }

.header-call {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--sand-400);
  color: var(--teal-900);
  text-decoration: none;
  font-weight: 700;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Hero */
.hero {
  background: linear-gradient(145deg, var(--teal-900), var(--teal-700));
  color: var(--white);
  padding: 3.5rem 1rem 4rem;
}
.hero-inner { max-width: 1080px; margin: 0 auto; }
.hero h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); line-height: 1.25; max-width: 32ch; }
.hero p.lede { margin-top: 1rem; max-width: 55ch; color: #d8ebe8; font-size: 1.05rem; }
.hero-badges { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.4rem; }
.hero-badges span {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
}
.hero-actions { margin-top: 1.8rem; display: flex; gap: 0.8rem; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 700;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
}
.btn-primary { background: var(--sand-400); color: var(--teal-900); }
.btn-ghost { border: 2px solid rgba(255,255,255,0.6); color: var(--white); }
.btn-teal { background: var(--teal-700); color: var(--white); }

/* Sections */
.section { padding: 3rem 1rem; }
.section-inner { max-width: 1080px; margin: 0 auto; }
.section-alt { background: var(--white); }
.section h2 { color: var(--teal-900); font-size: clamp(1.4rem, 3.5vw, 1.9rem); margin-bottom: 0.4rem; }
.section .kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal-500);
}
.section .section-intro { color: var(--ink-soft); max-width: 60ch; margin-bottom: 1.6rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.card {
  background: var(--white);
  border: 1px solid #dcebe7;
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.section-alt .card { background: var(--mint-50); }
.card h3 { color: var(--teal-900); font-size: 1.08rem; margin-bottom: 0.4rem; }
.card p { color: var(--ink-soft); font-size: 0.93rem; }
.card .card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--mint-100);
  display: grid; place-items: center;
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

/* Photo placeholders — real photos come from the owner */
.photo-slot {
  border: 2px dashed var(--teal-500);
  border-radius: var(--radius);
  background: var(--mint-100);
  min-height: 200px;
  display: grid;
  place-items: center;
  color: var(--teal-700);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
}
.photo-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Reviews strip */
.review-card { border-left: 4px solid var(--sand-400); }
.review-card .stars { color: var(--sand-400); letter-spacing: 0.1em; margin-bottom: 0.4rem; }

/* Hours table */
.hours-table { width: 100%; border-collapse: collapse; margin-top: 1rem; max-width: 480px; }
.hours-table th, .hours-table td {
  text-align: left;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid #dcebe7;
  font-size: 0.93rem;
}
.hours-table th { color: var(--teal-900); font-weight: 700; }
.hours-table tr.today td, .hours-table tr.today th { background: var(--sand-100); }

/* Contact layout */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.map-frame {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-list { list-style: none; display: grid; gap: 0.9rem; }
.contact-list li { display: flex; gap: 0.7rem; align-items: flex-start; }
.contact-list .ci {
  width: 38px; height: 38px; flex: none;
  border-radius: 10px;
  background: var(--mint-100);
  display: grid; place-items: center;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.team-card { text-align: center; }
.team-card .photo-slot { min-height: 160px; margin-bottom: 0.9rem; }
.team-card h3 { margin-bottom: 0.1rem; }
.team-card .role { color: var(--teal-500); font-weight: 600; font-size: 0.88rem; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--teal-700), var(--teal-900));
  color: var(--white);
  border-radius: var(--radius);
  padding: 2.2rem 1.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cta-band h2 { color: var(--white); margin: 0; }
.cta-band p { color: #d8ebe8; margin-top: 0.3rem; }

/* Footer */
.site-footer {
  background: var(--teal-900);
  color: #bcd8d4;
  padding: 2.5rem 1rem 5.5rem; /* bottom space clears the floating button */
  margin-top: 3rem;
  font-size: 0.9rem;
}
.footer-inner {
  max-width: 1080px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.site-footer h4 { color: var(--white); margin-bottom: 0.6rem; font-size: 1rem; }
.site-footer a { color: #d8ebe8; }
.footer-credit {
  max-width: 1080px;
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.82rem;
}

/* Floating WhatsApp button */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  font-size: 0.95rem;
}
.wa-float svg { flex: none; }

/* Mobile */
@media (max-width: 640px) {
  .header-inner { justify-content: center; }
  .main-nav { justify-content: center; }
  .wa-float span.wa-label { display: none; }
  .wa-float { padding: 0.9rem; border-radius: 50%; }
}
