/* =========================================================
   HMSS — Design tokens
   Palette pulled directly from the HMSS logo (green + teal + white)
   ========================================================= */
:root {
  color-scheme: light;
  --green: #45B859;
  --green-dark: #34974A;
  --green-light: #E9F7EC;
  --teal: #015F67;
  --teal-dark: #014850;
  --white: #FFFFFF;
  --off-white: #F5FAF7;
  --charcoal: #1F2D2A;
  --grey: #5C6B67;
  --line: #E1EAE6;

  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1180px;
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}
.logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-link img { height: 62px; width: auto; }

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}
nav a {
  text-decoration: none;
  color: var(--charcoal);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
}
nav a:hover, nav a.active { color: var(--green-dark); }

.header-actions { display: flex; align-items: center; gap: 20px; }
.header-actions .btn { white-space: nowrap; }
.header-phone {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--teal);
  text-decoration: none;
  display: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--teal);
  margin: 5px 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--teal); }
.btn-outline-dark { background: transparent; border-color: var(--teal); color: var(--teal); }
.btn-outline-dark:hover { background: var(--teal); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: var(--white);
  overflow: hidden;
  padding: 96px 0 88px;
}
.hero::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.18;
}
.hero::after {
  content: "";
  position: absolute;
  left: -80px;
  bottom: -140px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 2px solid var(--green);
  opacity: 0.18;
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-dark);
  font-weight: 700;
  background: var(--green);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 20px;
  font-weight: 700;
}
.hero h1 .accent { color: var(--green); }
.hero p.lede { font-size: 1.08rem; max-width: 52ch; color: #D7EAE7; margin: 0 0 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(1,29,32,0.35);
  border: 6px solid rgba(255,255,255,0.08);
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; }

/* Sub-page hero (smaller, for interior pages) */
.page-hero {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}
.page-hero .section-label { color: var(--green); justify-content: center; }
.page-hero h1 { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 2.6rem); margin: 8px 0 12px; }
.page-hero p { color: #D7EAE7; max-width: 60ch; margin: 0 auto; }

/* ---------- Section basics ---------- */
section { padding: 84px 0; }
.section-alt { background: var(--off-white); }
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-dark);
  font-weight: 700;
  margin-bottom: 14px;
}
.section-label::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
}
h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--teal-dark);
  margin: 0 0 20px;
  font-weight: 700;
}
.lede { color: var(--grey); font-size: 1.03rem; max-width: 68ch; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .section-label { justify-content: center; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- About split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-media img { border-radius: var(--radius); box-shadow: 0 16px 32px rgba(1,95,103,0.14); }
.split-copy p { color: var(--grey); margin: 0 0 16px; }

/* ---------- Values (agenda numbered list) ---------- */
.agenda { list-style: none; margin: 8px 0 0; padding: 0; }
.agenda li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.agenda li:first-child { border-top: 1px solid var(--line); }
.agenda .num {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--green-dark);
  font-weight: 700;
  background: var(--green-light);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.agenda h3 { font-family: var(--font-heading); font-size: 1.02rem; font-weight: 600; color: var(--teal-dark); margin: 0 0 6px; }
.agenda p { margin: 0; color: var(--grey); font-size: 0.97rem; }

/* ---------- Card grid (services) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 8px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 36px rgba(1,95,103,0.12); }
.card img { width: 100%; height: 180px; object-fit: cover; }
.card-body { padding: 24px; }
.card-body h3 { font-family: var(--font-heading); font-size: 1.1rem; color: var(--teal-dark); margin: 0 0 10px; }
.card-body p { color: var(--grey); font-size: 0.95rem; margin: 0 0 14px; }
.card-link { font-family: var(--font-heading); font-size: 0.88rem; font-weight: 600; color: var(--green-dark); text-decoration: none; }
.card-link:hover { text-decoration: underline; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 8px; counter-reset: step; }
.step { position: relative; padding: 28px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--white);
  background: var(--green);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.step h3 { font-family: var(--font-heading); font-size: 1rem; color: var(--teal-dark); margin: 0 0 8px; }
.step p { font-size: 0.92rem; color: var(--grey); margin: 0; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; margin-top: 8px; }
.team-card { text-align: center; }
.team-photo {
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  width: 140px;
  border: 4px solid var(--green-light);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-family: var(--font-heading); font-size: 1.02rem; color: var(--teal-dark); margin: 0 0 4px; }
.team-card p { font-size: 0.88rem; color: var(--grey); margin: 0; }

/* ---------- Group photo ---------- */
.group-photo-wrap { margin-top: 48px; text-align: center; }
.group-photo-wrap img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(1,95,103,0.14);
  border: 1px solid var(--line);
}
.group-photo-caption {
  margin-top: 18px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--teal-dark);
}

/* ---------- Tag pills (coverage) ---------- */
.tag-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.tag {
  border: 1px solid var(--green);
  color: var(--green-dark);
  background: var(--green-light);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-heading);
}

/* ---------- Checklist ---------- */
.checklist { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 40px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; color: var(--grey); }
.checklist li::before {
  content: "\2713";
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}

.no-hidden-costs {
  margin-top: 44px;
  padding: 26px 30px;
  background: var(--teal);
  color: var(--white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.no-hidden-costs p { margin: 0; font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; }

/* ---------- FAQ accordion ---------- */
.faq-list { margin-top: 8px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 0;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--teal-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq-question .icon { color: var(--green); font-size: 1.3rem; flex-shrink: 0; transition: transform 0.2s ease; }
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  color: var(--grey);
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p { margin: 0 0 20px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 8px; }
.contact-info-card {
  background: var(--teal);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px;
}
.contact-info-card h3 { font-family: var(--font-heading); margin: 0 0 20px; }
.contact-detail { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-detail .label { font-family: var(--font-heading); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); margin-bottom: 4px; }
.contact-detail .value { font-size: 1rem; }
.contact-detail a { text-decoration: none; }
.contact-detail a:hover { text-decoration: underline; }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-family: var(--font-heading); font-size: 0.85rem; font-weight: 600; color: var(--teal-dark); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--off-white);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.form-note { font-size: 0.85rem; color: var(--grey); margin: 0; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: var(--white);
  text-align: center;
  padding: 64px 0;
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,0.9); max-width: 60ch; margin: 0 auto 30px; }

/* ---------- Footer ---------- */
footer { background: var(--teal-dark); color: rgba(255,255,255,0.75); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand img { height: 40px; margin-bottom: 14px; }
.footer-brand p { font-size: 0.9rem; max-width: 32ch; }
footer h4 { color: var(--white); font-family: var(--font-heading); font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 16px; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 10px; }
footer a { text-decoration: none; color: rgba(255,255,255,0.75); font-size: 0.92rem; }
footer a:hover { color: var(--green); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.82rem; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Stats band ---------- */
.stats-band {
  background: var(--teal);
  color: var(--white);
  padding: 76px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat { padding: 0 16px; position: relative; }
.stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 64px;
  background: rgba(255,255,255,0.15);
}
.stat .stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 14px;
}
.stat .stat-number.text-stat {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.15;
  white-space: nowrap;
}
.stat .stat-label {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: #D7EAE7;
  letter-spacing: 0.01em;
  font-weight: 500;
}

/* ---------- Floating action button ---------- */
.fab-group {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(1,95,103,0.3);
  transition: transform 0.2s ease, background 0.2s ease;
}
.fab:hover { background: var(--green-dark); transform: translateY(-2px); }
.fab svg { width: 24px; height: 24px; }
.back-to-top {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  color: var(--teal);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,0.1);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top svg { width: 18px; height: 18px; }

/* ---------- Service quick-nav ---------- */
.service-nav {
  position: sticky;
  top: 71px;
  z-index: 40;
  background: var(--off-white);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.service-nav ul {
  list-style: none;
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.service-nav ul::-webkit-scrollbar { display: none; }
.service-nav a {
  display: inline-block;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  transition: all 0.2s ease;
}
.service-nav a:hover, .service-nav a.active { background: var(--green); border-color: var(--green); color: var(--white); }

/* ---------- Form success / error messages ---------- */
.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  background: var(--green-light);
  border: 1px solid var(--green);
  color: var(--teal-dark);
  border-radius: 8px;
  padding: 16px 18px;
  font-weight: 500;
  margin-bottom: 4px;
}
.form-success.visible { display: flex; }
.form-success svg { width: 20px; height: 20px; color: var(--green-dark); flex-shrink: 0; }

.form-error {
  display: none;
  align-items: center;
  gap: 12px;
  background: #FDEDEC;
  border: 1px solid #E0665A;
  color: #A6392E;
  border-radius: 8px;
  padding: 16px 18px;
  font-weight: 500;
  margin-bottom: 4px;
}
.form-error.visible { display: flex; }
.form-error svg { width: 20px; height: 20px; color: #C0392B; flex-shrink: 0; }

.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* Honeypot — hidden from real users, present in the DOM for basic bots to fill in */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--green);
  z-index: 100;
  width: 0%;
  transition: width 0.1s ease-out;
}

/* ---------- 404 page ---------- */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 32px;
}
.error-page .error-code {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 16px;
}

/* ---------- Skip link (accessibility) ---------- */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  background: var(--teal);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  z-index: 200;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

/* ---------- Focus visibility ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---------- WhatsApp fab variant ---------- */
.fab-whatsapp { background: #25D366; }
.fab-whatsapp:hover { background: #1DA851; }

/* ---------- Chat widget ---------- */
.chat-fab {
  background: var(--teal);
}
.chat-fab:hover { background: var(--teal-dark); }

.chat-panel {
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 70;
  width: 340px;
  max-width: calc(100vw - 48px);
  max-height: 480px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 24px 48px rgba(1,29,32,0.25);
  border: 1px solid var(--line);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.chat-panel.open { display: flex; }
.chat-header {
  background: var(--teal);
  color: var(--white);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-header-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 600; font-size: 0.95rem; }
.chat-header-title .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.chat-close { background: none; border: none; color: var(--white); cursor: pointer; padding: 4px; opacity: 0.8; }
.chat-close:hover { opacity: 1; }
.chat-close svg { width: 18px; height: 18px; }

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--off-white);
}
.chat-msg { max-width: 84%; padding: 10px 14px; border-radius: 12px; font-size: 0.9rem; line-height: 1.5; }
.chat-msg.bot { background: var(--white); border: 1px solid var(--line); color: var(--charcoal); align-self: flex-start; border-bottom-left-radius: 3px; }
.chat-msg.user { background: var(--green); color: var(--white); align-self: flex-end; border-bottom-right-radius: 3px; }

.chat-quick-replies { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; background: var(--off-white); }
.chat-quick-replies button {
  font-family: var(--font-body);
  font-size: 0.82rem;
  background: var(--white);
  border: 1px solid var(--green);
  color: var(--green-dark);
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.chat-quick-replies button:hover { background: var(--green-light); }

.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.chat-input-row input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-family: var(--font-body);
}
.chat-input-row input:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.chat-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  border: none;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.chat-send:hover { background: var(--green-dark); }
.chat-send svg { width: 17px; height: 17px; }
.chat-disclaimer { font-size: 0.72rem; color: var(--grey); text-align: center; padding: 0 12px 10px; }

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: var(--teal-dark);
  color: var(--white);
  padding: 18px 24px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.15);
}
.cookie-banner.visible { display: flex; }
.cookie-banner p { margin: 0; font-size: 0.88rem; max-width: 60ch; color: rgba(255,255,255,0.9); }
.cookie-banner a { color: var(--green); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-actions .btn { padding: 10px 20px; font-size: 0.85rem; }
.btn-cookie-decline { background: transparent; border: 1px solid rgba(255,255,255,0.4); color: var(--white); }
.btn-cookie-decline:hover { border-color: var(--white); }

/* ---------- Map ---------- */
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-top: 40px; }
.map-frame iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- Icon feature grid (Why Choose HMSS) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 8px; }
.feature-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.feature-grid.feature-grid-secondary {
  grid-template-columns: repeat(2, 1fr);
  max-width: 700px;
  margin: 28px auto 0;
}
.feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.feature:hover { transform: translateY(-6px); box-shadow: 0 24px 40px rgba(1,95,103,0.12); border-color: var(--green); }
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--green-light);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature h3 { font-family: var(--font-heading); font-size: 1.05rem; color: var(--teal-dark); margin: 0 0 10px; }
.feature p { color: var(--grey); font-size: 0.93rem; margin: 0; }

/* ---------- Pull-quote / narrative emphasis ---------- */
.pull-quote {
  border-left: 3px solid var(--green);
  padding: 4px 0 4px 24px;
  margin: 28px 0;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--teal-dark);
  font-weight: 500;
  line-height: 1.5;
}

/* ---------- Credential badge (B-BBEE status emphasis) ---------- */
.anniversary-badge {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(69,184,89,0.35);
  border-left: 5px solid var(--green);
  color: var(--white);
  padding: 18px 32px 18px 20px;
  border-radius: 14px;
  margin-bottom: 32px;
  margin-left: -12px;
  max-width: 100%;
  box-shadow: 0 14px 32px rgba(0,0,0,0.2);
}
.anniversary-badge .badge-number {
  background: var(--green);
  color: var(--teal-dark);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.anniversary-badge .badge-number svg { width: 30px; height: 30px; }
.anniversary-badge .badge-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}
.anniversary-badge .badge-line1 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.1;
}
.anniversary-badge .badge-line2 {
  font-family: var(--font-heading);
  font-size: clamp(0.7rem, 1.3vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green);
  line-height: 1.3;
}

/* ---------- Responsive ---------- */
@media (min-width: 681px) and (max-width: 1290px) {
  /* Safe-zone for the "in-between" range: above the mobile breakpoint (so the
     larger 56px desktop-size FAB buttons are in use, offset 24px from the
     edge) but below the point where .wrap's 1180px max-width naturally pulls
     content clear of the fixed button column. Upper bound verified empirically
     (not just calculated) — real overlaps persisted up to ~1270px on some
     pages before clearing at 1280px, wider than the max-width math alone
     suggested, so the buffer is set with margin above the tested threshold.
     Without this, text can clip under the floating call/WhatsApp/chat
     buttons on tablet and small-laptop screens. */
  main .wrap, footer .wrap { padding-right: 100px; }
}
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .split { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .feature-grid, .feature-grid.cols-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  /* --- Header: drop the "Get a Quote" button, keep logo + hamburger only --- */
  .logo-link img { height: 46px; }
  .header-actions .btn { display: none; }
  .nav-toggle { display: block; }

  /* --- Mobile nav dropdown (fixes the previous horizontal-overflow bug: the
     old JS only set flex-direction on <nav>, not on the <ul> that actually
     controls layout — now handled entirely in CSS via .nav-open) --- */
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(0,0,0,0.14);
    z-index: 55;
  }
  nav.nav-open { display: block; }
  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 32px 18px;
  }
  nav ul li { border-bottom: 1px solid var(--line); }
  nav ul li:last-child { border-bottom: none; }
  nav a { display: block; padding: 15px 4px; font-size: 1rem; }

  /* --- Fixed floating buttons: shrink + add safe-zone padding so they never
     sit on top of hero/badge/stats text (previously overlapping on phones) --- */
  .fab-group { right: 16px; bottom: 16px; gap: 10px; }
  .fab { width: 48px; height: 48px; }
  .fab svg { width: 20px; height: 20px; }
  .back-to-top { width: 38px; height: 38px; }
  .back-to-top svg { width: 16px; height: 16px; }

  /* Safe-zone: keep body text clear of the fixed FAB column everywhere on the
     site, not just the hero/stats bands — a text line running close to full
     container width can otherwise render underneath the fixed buttons since
     the FAB column's left edge sits only ~32px inside the content edge. */
  main .wrap, footer .wrap { padding-right: 76px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .stat { padding: 0 4px; }
  .stat:not(:last-child)::after { display: none; }

  .card-grid, .steps, .team-grid, .checklist, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .chat-panel { right: 12px; bottom: 76px; }
  .cookie-banner { justify-content: flex-start; text-align: left; }
  .feature-grid, .feature-grid.cols-3 { grid-template-columns: 1fr; }
  .feature-grid.feature-grid-secondary { grid-template-columns: 1fr; }
}

.callout-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 780px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #E5EEE8;
    border-radius: 16px;
    padding: 28px 40px;
    box-shadow: 0 4px 16px rgba(1, 95, 103, 0.06);
}

.callout-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #45B859;
    display: flex;
    align-items: center;
    justify-content: center;
}

.callout-box p {
    margin: 0;
    text-align: left;
    font-size: 1.05rem;
    color: #015F67;
    font-weight: 500;
    line-height: 1.5;
    font-family: 'Inter', sans-serif;
}

@media (max-width: 680px) {
    .callout-box {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
    }

        .callout-box p {
            text-align: center;
        }
}