/* =========================================================
   SRS Healthcare — Design Tokens
   Palette: clinical teal + warm marigold accent + mint tint
   Type: Libre Franklin (display) / Public Sans (body) / IBM Plex Mono (data)
   Signature: the "steady line" — an ECG/vitals waveform motif used
   as a divider, loader, and hero device throughout the site.
   ========================================================= */

:root {
  --teal: #0B5D52;
  --teal-dark: #073C35;
  --teal-deep: #052824;
  --ink: #142B2A;
  --paper: #F5F7F4;
  --mint: #DCEAE6;
  --mint-soft: #EEF5F2;
  --gold: #E0A72E;
  --gold-dark: #B9860F;
  --white: #FFFFFF;
  --line: rgba(20, 43, 42, 0.12);

  --font-display: 'Libre Franklin', 'Segoe UI', sans-serif;
  --font-body: 'Public Sans', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-soft: 0 10px 30px rgba(7, 60, 53, 0.08);
  --shadow-card: 0 4px 18px rgba(7, 60, 53, 0.10);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 1rem;
  line-height: 1.65;
  padding-top: 76px;
}

h1, h2, h3, h4, h5, .display-font {
  font-family: var(--font-display);
  color: var(--teal-deep);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  color: var(--gold-dark);
  font-weight: 600;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }

.section { padding: 5.5rem 0; }
.section-sm { padding: 3.5rem 0; }
.bg-mint { background: var(--mint-soft); }
.bg-teal { background: var(--teal-deep); color: var(--white); }
.bg-teal h1, .bg-teal h2, .bg-teal h3, .bg-teal p { color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.75rem 1.7rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.btn-cta {
  background: var(--gold);
  color: var(--teal-deep);
  border: none;
}
.btn-cta:hover, .btn-cta:focus {
  background: var(--gold-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.btn-outline-light-teal {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.55);
  color: var(--white);
}
.btn-outline-light-teal:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border-color: var(--white);
}
.btn-teal-outline {
  background: transparent;
  border: 1.5px solid var(--teal);
  color: var(--teal);
}
.btn-teal-outline:hover {
  background: var(--teal);
  color: var(--white);
}
.btn-whatsapp {
  background: #1FAF5A;
  color: var(--white);
  border: none;
}
.btn-whatsapp:hover { background: #178a47; color: var(--white); }

/* ---------- Navbar ---------- */
.navbar {
  background: var(--white);
  box-shadow: 0 2px 14px rgba(7,60,53,0.06);
  padding: 0.65rem 0;
}
.navbar-brand {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--teal-deep) !important;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.navbar-brand .brand-mark {
  width: 34px; height: 34px;
}
.nav-link {
  font-weight: 600;
  color: var(--ink) !important;
  margin: 0 0.35rem;
}
.nav-link.active, .nav-link:hover { color: var(--teal) !important; }
.nav-phone {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--teal-deep);
  font-size: 0.92rem;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--teal-deep) 0%, var(--teal) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 90px;
  background: var(--paper);
  clip-path: polygon(0 60%, 100% 20%, 100% 100%, 0% 100%);
}
.hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); }
.hero p.lead { color: rgba(255,255,255,0.86); font-size: 1.15rem; }
.trust-badges { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin-top: 1.6rem; }
.trust-badges span {
  font-size: 0.85rem; font-weight: 600;
  display: flex; align-items: center; gap: 0.4rem;
  color: rgba(255,255,255,0.92);
}
.trust-badges svg { width: 18px; height: 18px; flex-shrink: 0; }

.page-banner {
  background: linear-gradient(180deg, var(--teal-deep) 0%, var(--teal) 100%);
  color: var(--white);
  padding: 3.4rem 0 3.8rem;
  position: relative;
}
.page-banner h1 { color: var(--white); }
.page-banner .eyebrow { color: var(--gold); }

/* ---------- Signature: vitals waveform ---------- */
.vitals-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 1.6rem;
  backdrop-filter: blur(6px);
}
.vitals-card .vitals-readout {
  display: flex; justify-content: space-between; margin-top: 0.9rem;
  font-family: var(--font-mono);
}
.vitals-readout .metric { text-align: left; }
.vitals-readout .metric b { font-size: 1.4rem; display: block; color: var(--white); }
.vitals-readout .metric span { font-size: 0.72rem; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.08em; }

.waveform-line {
  stroke: var(--gold);
  stroke-width: 2.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw-line 3.6s ease-in-out infinite;
}
@keyframes draw-line {
  0% { stroke-dashoffset: 1000; }
  55% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -1000; }
}
.divider-wave { display: block; width: 100%; height: 34px; margin: 0 auto; }
.divider-wave .waveform-line { stroke: var(--mint); animation-duration: 5s; }

/* ---------- Section headers ---------- */
.section-head { max-width: 640px; margin-bottom: 2.6rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Service cards ---------- */
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.service-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--mint);
  border-radius: 12px;
  margin-bottom: 1rem;
  color: var(--teal);
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.08rem; margin-bottom: 0.5rem; }
.service-card p { font-size: 0.92rem; color: #45605c; margin-bottom: 0; }

/* ---------- Process steps ---------- */
.process-step {
  position: relative;
  padding-left: 3.2rem;
  margin-bottom: 2.2rem;
}
.process-step .step-num {
  position: absolute; left: 0; top: 0;
  width: 2.4rem; height: 2.4rem;
  background: var(--teal-deep);
  color: var(--gold);
  font-family: var(--font-mono);
  font-weight: 700;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
}
.process-step h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.process-step p { font-size: 0.92rem; color: #45605c; margin-bottom: 0; }
.process-rail {
  position: absolute; left: 1.2rem; top: 2.6rem; bottom: -0.6rem;
  width: 2px; background: var(--line);
}
.process-step:last-child .process-rail { display: none; }

/* ---------- Stats ---------- */
.stat-item { text-align: center; padding: 1rem; }
.stat-item b {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  color: var(--gold);
  display: block;
}
.stat-item span { font-size: 0.85rem; color: rgba(255,255,255,0.75); }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem;
  border: 1px solid var(--line);
  height: 100%;
}
.testimonial-card p.quote { font-style: italic; color: #33504c; margin-bottom: 1rem; }
.testimonial-card .author { font-weight: 700; font-size: 0.92rem; color: var(--teal-deep); }
.testimonial-card .locality { font-size: 0.78rem; color: #6b8480; }
.star-row svg { width: 15px; height: 15px; color: var(--gold); }

/* ---------- Inquiry form ---------- */
.inquiry-panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 2.4rem;
  border: 1px solid var(--line);
}
.form-control {
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  padding: 0.7rem 0.9rem;
}
.form-control:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 0.2rem rgba(11,93,82,0.15);
}
.form-label { font-weight: 600; font-size: 0.88rem; color: var(--ink); }
#formStatus { font-size: 0.9rem; margin-top: 0.8rem; }
#formStatus.success { color: #0a7a3d; }
#formStatus.error { color: #b3261e; }

/* ---------- Areas served ---------- */
.area-pill {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--mint-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  margin: 0.25rem;
  color: var(--teal-deep);
  font-weight: 600;
}

/* ---------- FAQ ---------- */
.accordion-button {
  font-weight: 700;
  color: var(--teal-deep);
  background: var(--white);
}
.accordion-button:not(.collapsed) {
  background: var(--mint-soft);
  color: var(--teal-deep);
  box-shadow: none;
}
.accordion-button:focus { box-shadow: 0 0 0 0.2rem rgba(11,93,82,0.15); }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--teal-deep);
  color: rgba(255,255,255,0.82);
  padding: 3.4rem 0 1.4rem;
}
footer.site-footer h5 { color: var(--white); font-family: var(--font-display); font-size: 1.05rem; }
footer.site-footer a { color: rgba(255,255,255,0.78); }
footer.site-footer a:hover { color: var(--gold); }
footer.site-footer .fbrand { font-family: var(--font-display); font-weight: 800; color: var(--white); font-size: 1.3rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed;
  right: 1.2rem;
  bottom: 5.6rem;
  z-index: 1040;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  color: var(--white);
  transition: transform 0.15s ease;
}
.whatsapp-float:hover { transform: scale(1.07); color: var(--white); }
.whatsapp-float svg { width: 30px; height: 30px; }

@media (min-width: 768px) {
  .whatsapp-float { bottom: 1.6rem; }
}

/* ---------- Mobile-only fixed call bar ---------- */
.mobile-call-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1040;
  background: var(--teal-deep);
  padding: 0.7rem 0.9rem;
  box-shadow: 0 -4px 14px rgba(0,0,0,0.18);
}
.mobile-call-bar a {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--gold);
  color: var(--teal-deep);
  font-weight: 700;
  border-radius: 999px;
  padding: 0.7rem;
  width: 100%;
}
.mobile-call-bar svg { width: 20px; height: 20px; }

@media (min-width: 768px) {
  .mobile-call-bar { display: none !important; }
}

@media (max-width: 767.98px) {
  body { padding-top: 64px; }
  .navbar-brand { font-size: 1.1rem; }
}
