/* ═══════════════════════════════════════════════════
   RIVERSIDE MEDICAL CENTRE — Shared Stylesheet
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Mulish:wght@300;400;500;600;700&display=swap');

:root {
  --green:       #2d7a3a;
  --green-dark:  #1e5628;
  --green-deep:  #133a1c;
  --green-mid:   #3a9448;
  --green-light: #e8f5eb;
  --green-pale:  #f3faf4;
  --charcoal:    #1c1c1c;
  --off-white:   #f9f7f4;
  --white:       #ffffff;
  --muted:       #637070;
  --border:      #dce8de;
  --accent:      #5cb86a;
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:   0 4px 24px rgba(0,0,0,0.09);
  --shadow-lg:   0 12px 48px rgba(0,0,0,0.13);
  --r:           5px;
  --r-lg:        12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Mulish', sans-serif;
  background: var(--white);
  color: var(--charcoal);
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 3px; }

/* ══════════════════════════════════
   NAVIGATION
══════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 110px;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s, height 0.3s;
}
nav.scrolled { box-shadow: var(--shadow-md); height: 95px; }
.nav-inner {
  max-width: 1300px; margin: 0 auto;
  padding: 0 5%; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo-mark {
  width: 44px; height: 44px;
  background: transparent;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-logo-text .n1 {
  font-family: 'Libre Baskerville', serif;
  font-size: 17px; font-weight: 800;
  color: var(--charcoal); line-height: 1.1; letter-spacing: -0.2px;
}
.nav-logo-text .n2 {
  font-size: 11px; font-weight: 700;
  color: var(--green); letter-spacing: 2.5px; text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 14px; font-weight: 600;
  padding: 8px 14px; border-radius: var(--r);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--green); background: var(--green-pale); }
.nav-links a.active { color: var(--green); font-weight: 700; }
.nav-links .nav-cta {
  background: var(--green) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  margin-left: 8px;
}
.nav-links .nav-cta:hover { background: var(--green-dark) !important; }
.nav-phone {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--charcoal);
  text-decoration: none; margin-right: 4px;
  padding: 8px 12px; border-radius: var(--r);
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
}
.nav-phone:hover { border-color: var(--green); color: var(--green); }
.nav-phone svg { width: 14px; height: 14px; stroke: var(--green); fill: none; stroke-width: 2; flex-shrink: 0; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 6px;
}
.hamburger span { width: 22px; height: 1.5px; background: var(--charcoal); display: block; transition: all 0.3s; }
.mobile-nav {
  display: none; position: fixed;
  top: 106px;
  background: white; z-index: 999;
  padding: 20px 5%;
  flex-direction: column; gap: 4px;
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--charcoal); text-decoration: none;
  font-size: 15px; font-weight: 500;
  padding: 12px 16px; border-radius: var(--r);
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover { background: var(--green-pale); color: var(--green); }
.mobile-nav a.active { color: var(--green); font-weight: 700; }

/* ══════════════════════════════════
   PAGE HEADER BANNER
══════════════════════════════════ */
.page-header {
  background: var(--green-deep);
  padding: 120px 5% 70px;
  position: relative; overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(255,255,255,0.025) 40px, rgba(255,255,255,0.025) 41px),
    repeating-linear-gradient(-45deg, transparent, transparent 40px, rgba(255,255,255,0.015) 40px, rgba(255,255,255,0.015) 41px);
}
.page-header-glow {
  position: absolute; top: -80px; right: -80px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(45,122,58,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.page-header-inner {
  max-width: 1300px; margin: 0 auto;
  position: relative; z-index: 2;
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { opacity: 0.4; }
.page-header h1 {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700; color: var(--white);
  line-height: 1.1; letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.page-header p {
  font-size: 16px; font-weight: 300;
  color: rgba(255,255,255,0.6); line-height: 1.8;
  max-width: 560px;
}

/* ══════════════════════════════════
   LAYOUT UTILITIES
══════════════════════════════════ */
.container { max-width: 1300px; margin: 0 auto; padding: 0 5%; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-dark { background: var(--green-deep); }
.section-off { background: var(--off-white); }
.section-light { background: var(--green-pale); }

.tag {
  font-size: 11px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--green); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.tag::before { content: ''; width: 18px; height: 2px; background: var(--green); border-radius: 1px; }
.tag.light { color: var(--accent); }
.tag.light::before { background: var(--accent); }

.sh {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700; line-height: 1.15;
  color: var(--charcoal); letter-spacing: -0.3px;
  margin-bottom: 16px;
}
.sh.light { color: var(--white); }
.sh em { font-style: italic; color: var(--green); }

.sd {
  font-size: 15.5px; font-weight: 300;
  color: var(--muted); line-height: 1.85;
  max-width: 560px;
}
.sd.light { color: rgba(255,255,255,0.6); }

/* ══════════════════════════════════
   REVEAL ANIMATION
══════════════════════════════════ */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════
   BUTTONS
══════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; border-radius: var(--r);
  font-family: 'Mulish', sans-serif;
  font-size: 14px; font-weight: 600; letter-spacing: 0.3px;
  cursor: pointer; text-decoration: none;
  border: none; transition: all 0.25s;
}
.btn-primary { background: var(--green); color: white; }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(45,122,58,0.3); }
.btn-outline { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn-outline:hover { background: var(--green); color: white; }
.btn-white { background: white; color: var(--green-dark); }
.btn-white:hover { background: var(--green-pale); transform: translateY(-2px); }
.btn-ghost-white { background: transparent; color: white; border: 1.5px solid rgba(255,255,255,0.35); }
.btn-ghost-white:hover { border-color: var(--accent); color: var(--accent); }
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }

/* ══════════════════════════════════
   CARDS
══════════════════════════════════ */
.card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--green-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; stroke: var(--green); fill: none; stroke-width: 1.7; }

/* ══════════════════════════════════
   STAFF CARDS
══════════════════════════════════ */
.staff-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.staff-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.staff-top {
  background: linear-gradient(145deg, var(--green-dark), var(--green));
  height: 88px; display: flex; align-items: center; justify-content: center;
  position: relative;
}
.staff-top svg { width: 44px; height: 44px; stroke: rgba(255,255,255,0.3); fill: none; stroke-width: 1; }
.avail-dot {
  position: absolute; top: 12px; right: 12px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #4ade80; border: 2px solid white;
}
.staff-body { padding: 20px; }
.staff-body h4 {
  font-family: 'Libre Baskerville', serif;
  font-size: 17px; font-weight: 700;
  color: var(--charcoal); margin-bottom: 3px;
}
.staff-role {
  font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--green); margin-bottom: 8px;
}
.staff-qual { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* ══════════════════════════════════
   SERVICE PILLS
══════════════════════════════════ */
.svc-pill {
  background: var(--off-white); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 20px 18px;
  display: flex; flex-direction: column; gap: 12px;
  transition: all 0.3s;
}
.svc-pill:hover {
  border-color: var(--green); background: var(--green-pale);
  transform: translateY(-3px); box-shadow: 0 8px 24px rgba(45,122,58,0.1);
}
.svc-pill-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--green-light);
  display: flex; align-items: center; justify-content: center;
}
.svc-pill-icon svg { width: 20px; height: 20px; stroke: var(--green); fill: none; stroke-width: 1.6; }
.svc-pill-name { font-size: 13.5px; font-weight: 600; color: var(--charcoal); line-height: 1.35; }

/* ══════════════════════════════════
   FORM ELEMENTS
══════════════════════════════════ */
.fg { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.fg label {
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.8px; text-transform: uppercase;
  color: var(--charcoal);
}
.fg input, .fg select, .fg textarea {
  padding: 13px 15px;
  border: 1.5px solid var(--border); border-radius: var(--r);
  font-family: 'Mulish', sans-serif;
  font-size: 14px; color: var(--charcoal);
  background: var(--off-white);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.fg input:focus, .fg select:focus, .fg textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45,122,58,0.1);
  background: white;
}
.fg textarea { resize: vertical; min-height: 100px; }
.fg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ══════════════════════════════════
   INFO ROWS (hours / contact)
══════════════════════════════════ */
.hr-row {
  display: flex; justify-content: space-between;
  font-size: 13.5px; padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.hr-row:last-child { border-bottom: none; }
.hr-day { font-weight: 600; color: var(--charcoal); }
.hr-time { color: var(--green); font-weight: 500; }
.hr-closed { color: #ef4444; font-weight: 500; }

.ctr-row {
  display: flex; gap: 12px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: 13.5px; color: var(--muted);
}
.ctr-row:last-child { border-bottom: none; }
.ctr-icon {
  width: 32px; height: 32px; border-radius: 6px;
  background: var(--green-light);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ctr-icon svg { width: 14px; height: 14px; stroke: var(--green); fill: none; stroke-width: 2; }
.ctr-row a { color: var(--charcoal); text-decoration: none; font-weight: 600; }
.ctr-row a:hover { color: var(--green); }

/* ══════════════════════════════════
   TRUST / STAT BLOCKS
══════════════════════════════════ */
.trust-bar {
  background: var(--off-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 5%;
}
.trust-inner {
  max-width: 1300px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-around; flex-wrap: wrap; gap: 20px;
}
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-icon {
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--green-light);
  display: flex; align-items: center; justify-content: center;
}
.trust-icon svg { width: 18px; height: 18px; stroke: var(--green); fill: none; stroke-width: 1.8; }
.trust-label { font-size: 13px; font-weight: 700; color: var(--charcoal); }
.trust-sub { font-size: 11px; color: var(--muted); font-weight: 400; }
.trust-divider { width: 1px; height: 36px; background: var(--border); }

/* ══════════════════════════════════
   EMERGENCY BANNER
══════════════════════════════════ */
.emerg-box {
  background: linear-gradient(135deg, #7f1d1d, #991b1b);
  border-radius: var(--r-lg); padding: 24px 28px;
  display: flex; align-items: center; gap: 18px;
}
.emerg-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.emerg-icon svg { width: 24px; height: 24px; stroke: #fca5a5; fill: none; stroke-width: 1.8; }
.emerg-text h3 { font-size: 16px; font-weight: 700; color: white; margin-bottom: 2px; }
.emerg-text p { font-size: 13px; color: rgba(255,255,255,0.65); }
.emerg-num {
  font-family: 'Libre Baskerville', serif;
  font-size: 26px; font-weight: 700;
  color: #fca5a5; margin-left: auto; white-space: nowrap;
}

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
footer {
  background: #0d1f10;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 60px 5% 28px;
}
.footer-inner { max-width: 1300px; margin: 0 auto; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 44px;
}
.foot-brand .fb-logo {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px; text-decoration: none;
}
.foot-brand .fb-mark {
  width: 38px; height: 38px; background: var(--green);
  border-radius: 7px; display: flex; align-items: center; justify-content: center;
}
.foot-brand .fb-name {
  font-family: 'Libre Baskerville', serif;
  font-size: 15px; font-weight: 700; color: white;
}
.foot-brand p { font-size: 13px; color: rgba(255,255,255,0.35); line-height: 1.75; }
.foot-col h5 {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px; font-weight: 700;
}
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-col ul a {
  font-size: 13.5px; color: rgba(255,255,255,0.4);
  text-decoration: none; transition: color 0.25s;
}
.foot-col ul a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.07);
  flex-wrap: wrap; gap: 10px;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.2); }
.accred-row { display: flex; gap: 8px; }
.accred-tag {
  font-size: 10px; padding: 4px 10px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.25); letter-spacing: 0.5px;
}

/* ══════════════════════════════════
   TOAST
══════════════════════════════════ */
.toast {
  position: fixed; bottom: 28px; right: 28px;
  background: var(--green-deep); border: 1px solid var(--green);
  color: white; padding: 14px 22px; border-radius: 8px;
  font-size: 13.5px; z-index: 9999;
  transform: translateY(80px); opacity: 0;
  transition: all 0.4s ease;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-lg);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast svg { width: 18px; height: 18px; stroke: var(--accent); fill: none; stroke-width: 2.5; flex-shrink: 0; }

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-phone { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .fg-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-divider { display: none; }
  .emerg-box { flex-wrap: wrap; }
  .emerg-num { margin-left: 0; }
}

/* ══════════════════════════════════
   TESTIMONIALS CAROUSEL
══════════════════════════════════ */
.testimonial-carousel-container {
  overflow: hidden;
  position: relative;
}

.testimonial-carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
  min-width: 33.33%;
  padding: 0 10px;
}
