/* ============================================
   STATshifts — Design System v2 (Medical/Minimal)
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Backgrounds */
  --color-bg: #ffffff;
  --color-surface: #f8fafb;
  --color-surface-2: #f0f4f8;
  --color-surface-3: #e6edf3;

  /* Borders */
  --color-border: #e2e8f0;
  --color-border-hover: #cbd5e1;

  /* Brand — single teal accent -> Updated to Brand Guidelines */
  --color-teal: #269cda; /* Azure */
  --color-teal-dark: #091e4d; /* Dark Blue */
  --color-teal-light: #269cda; /* Green */
  --color-teal-xlight: #e6f3fb; /* Lighter Azure for backgrounds */

  /* Complementary warm accent for CTAs */
  --color-warm: #269cda;
  --color-warm-light: #e6f3fb;

  /* Text */
  --color-text: #000000;
  --color-text-secondary: #091e4d;
  --color-text-muted: #6b7280;
  --color-text-faint: #9ca3af;

  /* Typography */
  --font-sans: 'Geist', Arial, sans-serif;
  --font-display: 'Geist', Arial, sans-serif;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-teal: 0 4px 20px rgba(13,148,136,0.18);
  --shadow-teal-lg: 0 8px 32px rgba(13,148,136,0.25);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-max: 1400px;
  --container-pad: 20px;
  --nav-height: 80px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 18px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--color-surface); }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-teal); }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-teal-dark);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }

.accent-text {
  color: var(--color-teal);
}

/* ---------- Container ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.92rem;
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-teal);
  color: #fff;
  box-shadow: var(--shadow-teal);
  border: 2px solid transparent;
}
.btn-primary:hover {
  background: var(--color-teal-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-teal-lg);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--color-bg);
  color: var(--color-teal);
  border: 2px solid var(--color-teal);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover {
  background: var(--color-teal-xlight);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1.5px solid var(--color-border);
}
.btn-outline:hover {
  border-color: var(--color-teal);
  color: var(--color-teal);
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--color-teal-dark);
  font-weight: 700;
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
}
.btn-white:hover {
  background: var(--color-teal-xlight);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-white {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
  backdrop-filter: blur(4px);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

.btn-large { padding: 15px 34px; font-size: 1rem; }
.btn-full { width: 100%; }

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--color-border);
}
.divider span {
  padding: 0 10px;
  color: var(--color-text-faint);
  font-size: 0.85rem;
  font-weight: 500;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  margin: 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: all var(--transition-base);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 42px; height: 42px;
  background: var(--color-teal);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.5px;
}

.brand-logo {
  width: 150px;
  height: auto;
  display: block;
}

.footer .brand-logo {
  width: 150px;
  height: auto;
  display: block;
}

.logo-accent { color: var(--color-teal); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-teal-dark);
  transition: color var(--transition-fast), background var(--transition-fast);
}
.nav-link:hover { color: var(--color-teal); background: rgba(0,0,0,0.05); }
.nav-link.active { color: var(--color-teal); font-weight: 700; }

.nav-cta { margin-left: 10px; }

/* hero nav — white links before scroll */
.hero-nav .nav-link { color: var(--color-teal-dark); font-weight: 600; }
.hero-nav .nav-link:hover { color: var(--color-teal); background: rgba(255,255,255,0.3); }
.hero-nav .logo-text { color: #fff; }
.hero-nav .logo-accent { color: #fff; }
.hero-nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.hero-nav.scrolled .nav-link { color: var(--color-text-secondary); }
.hero-nav.scrolled .nav-link:hover { color: var(--color-teal); }
.hero-nav.scrolled .logo-text { color: var(--color-text); }
.hero-nav.scrolled .logo-accent { color: var(--color-teal); }
.hero-nav.scrolled .btn-secondary {
  background: var(--color-bg);
  color: var(--color-teal);
  border-color: var(--color-teal);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-base);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  background: linear-gradient(160deg, #e6f2da 0%, #a6cc7f 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

/* Subtle geometric background shapes */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Subtle dot-grid on hero */
.hero-dots {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 12h4v6h6v4h-6v6h-4v-6h-6v-4h6v-6z' fill='rgba(255, 255, 255, 0.15)' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 70% 50%, black 0%, transparent 100%);
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 40px;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-teal-dark);
  margin-bottom: 24px;
  width: fit-content;
  animation: fadeInUp 0.6s ease both;
}

.tag-pulse {
  width: 7px; height: 7px;
  background: var(--color-teal);
  border-radius: 50%;
  animation: tagPulse 2s ease infinite;
}
@keyframes tagPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(38,156,218,0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(38,156,218,0); }
}

.hero-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 22px;
  color: var(--color-teal-dark);
  animation: fadeInUp 0.65s 0.1s ease both;
}

.hero-title-light {
  font-weight: 800;
  opacity: 1;
  background: linear-gradient(to right, var(--color-teal), var(--color-teal-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin-bottom: 24px;
  line-height: 1.6;
  font-weight: 500;
  animation: fadeInUp 0.65s 0.2s ease both;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  animation: fadeInUp 0.65s 0.3s ease both;
}

.hero-stats {
  display: flex;
  gap: 0;
  animation: fadeInUp 0.65s 0.4s ease both;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  padding: 0 24px;
  border-right: 1px solid rgba(9, 30, 77, 0.1);
}
.hero-stat:first-child { padding-left: 0; }
.hero-stat:last-child { border-right: none; }

.hero-stat-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-teal-dark);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-top: 4px;
  font-weight: 500;
}

/* Hero Visual — clean card stack */
.hero-visual {
  position: relative;
  animation: fadeInRight 0.8s 0.25s ease both;
}

.hero-card-stack {
  position: relative;
  height: 420px;
}

.interactive-map-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.hcard {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform var(--transition-slow);
}
.hcard:hover { transform: translateY(-6px) scale(1.02); }

.hcard-shift {
  top: 24px;
  right: 0;
  width: 300px;
  animation: cardBob 4s ease-in-out infinite;
}
.hcard-match {
  top: 160px;
  left: 0;
  width: 280px;
  animation: cardBob 5.5s ease-in-out infinite reverse;
}
.hcard-review {
  bottom: 40px;
  right: 20px;
  width: 270px;
  flex-direction: column;
  align-items: flex-start;
  animation: cardBob 6.5s ease-in-out infinite 1s;
}

@keyframes cardBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hcard-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hcard-icon-teal { background: #ccfbf1; }
.hcard-icon-blue { background: #dbeafe; }

.hcard-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--color-text);
  line-height: 1.3;
}
.hcard-sub {
  font-size: 0.76rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}
.hcard-badge {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}
.hcard-badge-green { background: #d1fae5; color: #059669; }
.hcard-badge-blue { background: #dbeafe; color: #2563eb; }

.hcard-stars { color: #f59e0b; font-size: 0.9rem; margin-bottom: 6px; letter-spacing: 1px; }

/* ============================================
   TRUST BAR
   ============================================ */
.trust-bar {
  padding: 22px 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.trust-bar .container {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.trust-label {
  font-size: 0.8rem;
  color: var(--color-text-faint);
  font-weight: 500;
  white-space: nowrap;
}

.province-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.province-pill {
  padding: 4px 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.77rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}
.province-pill:hover {
  border-color: var(--color-teal);
  color: var(--color-teal);
  background: var(--color-teal-xlight);
}

/* ============================================
   SECTIONS — Shared
   ============================================ */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--color-surface);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  padding: 5px 13px;
  background: var(--color-teal-xlight);
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--color-teal-dark);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}

.section-desc {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
  font-weight: 400;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works { background: var(--color-bg); }

.tabs-container { max-width: 860px; margin: 0 auto; }

.tabs-header {
  display: flex;
  gap: 6px;
  background: var(--color-surface);
  padding: 5px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  margin-bottom: 40px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.tab-btn {
  padding: 11px 26px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: all var(--transition-base);
}
.tab-btn.active {
  background: var(--color-teal);
  color: #fff;
  box-shadow: var(--shadow-teal);
}
.tab-btn:hover:not(.active) { color: var(--color-text); background: var(--color-surface-2); }

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeInUp 0.35s ease; }

.steps-grid {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.step-card {
  flex: 1;
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  position: relative;
  transition: all var(--transition-base);
  cursor: default;
}
.step-card:hover {
  border-color: var(--color-teal);
  box-shadow: var(--shadow-teal);
  transform: translateY(-4px);
}

.step-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--color-teal-dark);
  line-height: 1;
  margin-bottom: 14px;
}

.step-icon {
  width: 48px; height: 48px;
  background: var(--color-teal-xlight);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--color-text);
}

.step-card p {
  font-size: 0.86rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.step-arrow {
  font-size: 1.2rem;
  color: var(--color-border);
  flex-shrink: 0;
  align-self: center;
}

/* ============================================
   SERVICES OVERVIEW
   ============================================ */
.services-overview {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--color-teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.service-card:hover {
  border-color: var(--color-teal);
  box-shadow: var(--shadow-teal);
  transform: translateY(-4px);
}
.service-card:hover::after { transform: scaleX(1); }

.service-icon-wrap {
  width: 52px; height: 52px;
  background: var(--color-teal-xlight);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: all var(--transition-base);
}
.service-card:hover .service-icon-wrap {
  background: var(--color-teal);
}

.service-card:hover .service-icon-wrap svg path,
.service-card:hover .service-icon-wrap svg circle,
.service-card:hover .service-icon-wrap svg rect {
  stroke: #fff;
}

.service-card h3 {
  font-size: 0.97rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
}

.service-card p {
  font-size: 0.855rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  flex: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-teal);
  transition: gap var(--transition-fast);
}
.service-card:hover .service-link { gap: 8px; }

/* ============================================
   WHY US
   ============================================ */
.why-us { background: var(--color-bg); }

.why-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-content .section-title { text-align: left; }
.why-content .section-desc { text-align: left; margin-bottom: 32px; }

.why-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.why-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.why-check {
  width: 26px; height: 26px;
  background: var(--color-teal-xlight);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--color-teal-dark);
  flex-shrink: 0;
  margin-top: 2px;
}

.why-item strong {
  display: block;
  font-size: 0.97rem;
  font-weight: 700;
  margin-bottom: 3px;
  color: var(--color-text);
}

.why-item p {
  font-size: 0.855rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}



.why-visual-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.map-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--color-text-secondary);
}

.map-dot {
  width: 8px; height: 8px;
  background: var(--color-teal);
  border-radius: 50%;
  animation: tagPulse 2s ease infinite;
}

.canada-map-svg {
  width: 100%;
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
  overflow: visible;
}

.map-legend {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  font-size: 0.77rem;
  color: var(--color-text-muted);
  align-items: center;
}

.legend-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}
.legend-dot.teal { background: var(--color-teal); }
.legend-dot.blue { background: #3b82f6; }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.testimonial-card {
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: all var(--transition-base);
}
.testimonial-card:hover {
  border-color: var(--color-teal);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* All testimonial cards use the same unified style */
.testimonial-featured {
  background: var(--color-bg);
  border-color: var(--color-border);
}

.testimonial-stars {
  font-size: 0.95rem;
  color: #f59e0b;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: 22px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.76rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.author-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--color-text);
}

.author-role {
  font-size: 0.76rem;
  color: var(--color-text-faint);
  margin-top: 2px;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(160deg, #e6f2da 0%, #a6cc7f 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle decorative shapes */
.cta-section::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  top: -150px; right: -80px;
}
.cta-section::after {
  content: '';
  position: absolute;
  width: 260px; height: 260px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  bottom: -80px; left: 5%;
}

.cta-section .container { position: relative; z-index: 1; }
.cta-section .section-tag {
  background: rgba(255,255,255,0.6);
  color: var(--color-teal-dark);
  border: 1px solid rgba(255,255,255,0.8);
}

.cta-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 22px;
    max-width: 660px;
    margin-left: auto; margin-right: auto;
    color: var(--color-teal-dark);
}

.cta-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-text);
  padding: 72px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 52px;
}

.footer .logo-text { color: #fff; }
.footer .logo-accent { color: var(--color-teal-light); }

.footer-brand-desc {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-top: 14px;
  margin-bottom: 22px;
  max-width: 260px;
}

.footer-social {
  display: flex;
  gap: 8px;
}

.social-link {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  transition: all var(--transition-fast);
}
.social-link:hover {
  border-color: var(--color-teal-light);
  color: var(--color-teal-light);
  background: rgba(20,184,166,0.1);
}

.footer-heading {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 18px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a, .footer-links li {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--color-teal-light); }

.footer-contact-list li { font-size: 0.86rem; color: rgba(255,255,255,0.55); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}
.footer-bottom-links a { color: rgba(255,255,255,0.3); transition: color var(--transition-fast); }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.6); }

/* ============================================
   PAGE HERO (services, about, contact)
   ============================================ */
.page-hero {
  padding: 148px 0 88px;
  text-align: center;
  background: linear-gradient(160deg, #e6f2da 0%, #a6cc7f 100%);
  position: relative;
  overflow: hidden;
}

.page-hero-dots {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 12h4v6h6v4h-6v6h-4v-6h-6v-4h6v-6z' fill='rgba(255, 255, 255, 0.15)' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, black 0%, transparent 100%);
}

.page-hero-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 22px;
  color: var(--color-teal-dark);
  position: relative;
}

.page-hero-sub {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  position: relative;
}

.page-hero .section-tag {
  position: relative;
  background: rgba(255,255,255,0.6);
  color: var(--color-teal-dark);
  border: 1px solid rgba(255,255,255,0.8);
  margin-bottom: 18px;
  display: inline-block;
}

/* ============================================
   SERVICE DETAIL
   ============================================ */
.service-detail {
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.service-detail-grid.reverse { direction: rtl; }
.service-detail-grid.reverse > * { direction: ltr; }

.service-detail-content h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.service-detail-content > p {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: 26px;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.feature-item::before {
  content: '✓';
  width: 20px; height: 20px;
  min-width: 20px;
  background: var(--color-teal-xlight);
  border-radius: 50%;
  color: var(--color-teal-dark);
  font-size: 0.68rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}

.service-visual-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.service-visual-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-teal-xlight), transparent 60%);
  opacity: 0.5;
}

.service-big-icon { position: relative; }
.service-big-icon svg { width: 90px; height: 90px; }

.service-big-sub {
  text-align: center;
  margin-top: 22px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  position: relative;
}

/* ============================================
   PRICING
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}

.pricing-card {
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 36px 30px;
  transition: all var(--transition-base);
  position: relative;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-hover);
}

.pricing-card.featured {
  border-color: var(--color-teal);
  background: linear-gradient(160deg, var(--color-teal-xlight), #e6f3fb);
  box-shadow: var(--shadow-teal);
}
.pricing-card.featured:hover {
  box-shadow: var(--shadow-teal-lg);
}

.pricing-badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--color-teal);
  color: #fff;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.pricing-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
}

.pricing-desc {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-teal);
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-period {
  font-size: 0.78rem;
  color: var(--color-text-faint);
  margin-bottom: 26px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 28px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--color-text-secondary);
}

.pricing-features li::before {
  content: '✓';
  width: 18px; height: 18px;
  min-width: 18px;
  background: var(--color-teal-xlight);
  border-radius: 50%;
  color: var(--color-teal-dark);
  font-size: 0.65rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ============================================
   ABOUT — VALUES + TEAM + STATS
   ============================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.value-card {
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  transition: all var(--transition-base);
}
.value-card:hover {
  border-color: var(--color-teal);
  transform: translateY(-4px);
  box-shadow: var(--shadow-teal);
}

.value-icon {
  width: 52px; height: 52px;
  background: var(--color-teal-xlight);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-size: 1.5rem;
}

.value-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
}

.value-card p {
  font-size: 0.86rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.team-card {
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  transition: all var(--transition-base);
}
.team-card:hover {
  border-color: var(--color-teal);
  transform: translateY(-4px);
  box-shadow: var(--shadow-teal);
}

.team-avatar {
  width: 76px; height: 76px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}

.team-name {
  font-weight: 700;
  font-size: 0.97rem;
  margin-bottom: 4px;
  color: var(--color-text);
}

.team-role {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}

.team-bio {
  font-size: 0.78rem;
  color: var(--color-text-faint);
  line-height: 1.6;
}

/* Stats Section */
.stats-section {
  background: linear-gradient(160deg, #e6f2da 0%, #a6cc7f 100%);
  border-radius: var(--radius-xl);
  padding: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
  border: 1px solid rgba(38, 156, 218, 0.2);
}

.stats-section .stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--color-teal-dark);
  display: block;
  margin-bottom: 6px;
}

.stats-section .stat-label {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  display: block;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 56px;
  align-items: start;
}

.contact-info h2 {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.04em;
}

.contact-info p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 36px;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-detail-icon {
  width: 42px; height: 42px;
  background: var(--color-teal-xlight);
  border: 1px solid rgba(13,148,136,0.2);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.contact-detail-label {
  font-size: 0.72rem;
  color: var(--color-text-faint);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-detail-value {
  font-size: 0.88rem;
  color: var(--color-text);
  font-weight: 500;
  margin-top: 2px;
}

/* Form */
.contact-form-wrap {
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-sm);
}

.contact-form-wrap h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.contact-form-wrap > p {
  font-size: 0.86rem;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  letter-spacing: 0.01em;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  color: var(--color-text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(13,148,136,0.1);
  background: var(--color-bg);
}

.form-group select { appearance: none; cursor: pointer; }
.form-group textarea { resize: vertical; min-height: 120px; }

input::placeholder, textarea::placeholder { color: var(--color-text-faint); }

/* Radio Group */
.radio-group {
  display: flex;
  gap: 10px;
}
.radio-option {
  flex: 1;
  position: relative;
  display: flex;
}
.radio-option input[type="radio"] {
  position: absolute; opacity: 0; pointer-events: none;
}
.radio-option label {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 11px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--color-surface);
}
.radio-option input:checked + label {
  border-color: var(--color-teal);
  background: var(--color-teal-xlight);
  color: var(--color-teal-dark);
}
.radio-option label:hover {
  border-color: var(--color-border-hover);
  color: var(--color-text);
}

/* Form success */
.form-success {
  display: none;
  text-align: center;
  padding: 40px;
}
.form-success.show { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.success-icon {
  width: 60px; height: 60px;
  background: var(--color-teal-xlight);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  color: var(--color-teal);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(32px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-32px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-section { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .why-container { gap: 48px; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 4px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-link { width: 100%; padding: 12px 16px; }
  .nav-cta { width: 100%; margin-left: 0; margin-top: 8px; }
  .nav-toggle { display: flex; }
  
  /* Fix white-on-white menu text on mobile */
  .hero-nav .nav-link { color: var(--color-text-muted); }
  .hero-nav .nav-link:hover { color: var(--color-text); background: var(--color-surface); }
  .hero-nav .btn-secondary.nav-cta { background: var(--color-bg); color: var(--color-teal); border-color: var(--color-teal); }


  .hero-container { grid-template-columns: 1fr; gap: 48px; padding-top: 48px; }
  .hero-visual { display: none; }
  .hero-title { font-size: 2.4rem; }

  .why-container { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .service-detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .service-detail-grid.reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }
  .steps-grid { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); align-self: center; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .hero-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); padding: 0 0 16px; }
  .hero-stat:last-child { border-bottom: none; padding-bottom: 0; }
  .stats-section { grid-template-columns: repeat(2, 1fr); padding: 36px 24px; }
  .contact-form-wrap { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
  .section { padding: 64px 0; }
  .hero { min-height: auto; padding-bottom: 64px; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .radio-group { flex-direction: column; }
  .team-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--color-teal);
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 44px; height: 44px;
  background: var(--color-teal);
  color: #fff;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-teal);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all var(--transition-base);
  z-index: 900;
  cursor: pointer;
  border: none;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--color-teal-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-teal-lg);
}

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: -300px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-text);
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 680px;
  width: calc(100% - 32px);
  box-shadow: var(--shadow-lg);
  z-index: 950;
  transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-banner.show { bottom: 16px; }

.cookie-text {
  font-size: 0.82rem;
  line-height: 1.5;
  flex: 1;
}
.cookie-text a { color: var(--color-teal-light); text-decoration: underline; }

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn-cookie-decline {
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}
.btn-cookie-decline:hover { color: #fff; background: rgba(255,255,255,0.15); }

.btn-cookie-accept {
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  background: var(--color-teal);
  color: #fff;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}
.btn-cookie-accept:hover { background: var(--color-teal-dark); }

@media (max-width: 520px) {
  .cookie-banner {
    flex-direction: row;
    align-items: center;
    padding: 12px 14px;
    gap: 10px;
    width: calc(100% - 24px);
    bottom: -300px;
  }
  .cookie-banner.show { bottom: 12px; }
  .cookie-text {
    font-size: 0.76rem;
    line-height: 1.45;
  }
  .btn-cookie-decline { padding: 7px 12px; font-size: 0.76rem; }
  .btn-cookie-accept  { padding: 7px 12px; font-size: 0.76rem; }
}

/* ============================================
   FLOATING MOBILE CTA BAR
   ============================================ */
.float-cta-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--color-border);
  padding: 14px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  z-index: 800;
}
.float-cta-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

@media (max-width: 768px) {
  .float-cta-bar { display: flex; }
  .back-to-top { bottom: 80px; right: 20px; }
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-item {
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.faq-item:hover { border-color: var(--color-border-hover); }
.faq-item.open {
  border-color: var(--color-teal);
  box-shadow: var(--shadow-teal);
}

.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  text-align: left;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--color-text);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.faq-btn:hover { background: var(--color-surface); }
.faq-item.open .faq-btn { background: var(--color-teal-xlight); color: var(--color-teal-dark); }

.faq-icon {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--color-teal);
  flex-shrink: 0;
  transition: transform var(--transition-base);
  line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item.open .faq-body { max-height: 300px; }

.faq-body p {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.72;
}

/* ============================================
   SERVICE SECTION BACKGROUNDS (inline style overrides)
   ============================================ */
[style*="var(--color-surface)"] {
  background-color: var(--color-surface) !important;
}



/* Interactive Map Styles */
.interactive-map-wrapper {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 16px;
  background: #091e4d;
}

.interactive-map-img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(1.25) saturate(0.85);
}

.map-point {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  transition: transform 0.3s ease;
}

.map-point:hover {
  transform: translate(-50%, -50%) scale(1.2);
  z-index: 20;
}

.map-dot-inner {
  width: 12px;
  height: 12px;
  background: #ffffff;
  border: 2px solid #269cda;
  border-radius: 50%;
  box-shadow: 0 0 10px #269cda, 0 0 20px #269cda;
  animation: pulse-glow 2s infinite;
}

.map-label {
  margin-top: 6px;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8), 0 0 8px rgba(9,30,77,0.8);
  white-space: nowrap;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(38, 156, 218, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(38, 156, 218, 0); }
  100% { box-shadow: 0 0 0 0 rgba(38, 156, 218, 0); }
}

@media (max-width: 768px) {
  .map-label {
    display: none;
  }
}

/* ============================================
   Auth Pages (Login / Signup)
   ============================================ */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px var(--container-pad) 80px;
  /* Medium-light brand green gradient */
  background: linear-gradient(160deg, #e6f2da 0%, #a6cc7f 100%);
  position: relative;
  overflow: hidden;
}

/* Subtle medical cross pattern */
.auth-container::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Pattern uses white crosses for better visibility on medium green */
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 12h4v6h6v4h-6v6h-4v-6h-6v-4h6v-6z' fill='rgba(255, 255, 255, 0.15)' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
  pointer-events: none;
}

/* One large decorative floating shape */
.auth-container::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 70%);
  width: 600px;
  height: 600px;
  top: -150px;
  right: -100px;
  animation: shapeFloat 15s ease-in-out infinite;
  pointer-events: none;
  opacity: 0.5;
}

/* Glass card */
.glass-card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 40px rgba(38, 156, 218, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 48px 42px;
  width: 100%;
  max-width: 460px;
  animation: cardFadeUp 0.55s var(--transition-slow) both;
}

@keyframes cardFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.glass-card h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-teal-dark); /* Dark blue */
  text-align: center;
  margin-bottom: 32px;
}

.glass-card .form-group {
  margin-bottom: 20px;
}

.glass-card .form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--color-teal-dark);
  margin-bottom: 6px;
}

.glass-card .form-group input,
.glass-card .form-group select {
  background: #ffffff; /* White */
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  color: var(--color-teal-dark);
  width: 100%;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.glass-card .form-group input:focus,
.glass-card .form-group select:focus {
  border-color: var(--color-teal); /* Azure */
  box-shadow: 0 0 0 3px rgba(38, 156, 218, 0.15);
}

.glass-card .form-group select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

/* Full-width submit button overrides to use Green */
.glass-card .btn.full-width {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 24px;
  font-size: 1.05rem;
  font-family: var(--font-sans);
  font-weight: 700;
  margin-top: 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  background: var(--color-teal-light); /* Green */
  color: #ffffff; /* White */
  border: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  box-shadow: 0 4px 15px rgba(38, 156, 218, 0.4);
}

.glass-card .btn.full-width:hover {
  transform: translateY(-2px);
  background: #7ca852; /* Slightly darker green */
  box-shadow: 0 6px 20px rgba(38, 156, 218, 0.5);
}

.glass-card p {
  text-align: center;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.glass-card p a {
  color: var(--color-teal);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.glass-card p a:hover {
  color: var(--color-teal-dark);
  text-decoration: underline;
}

/* ============================================
   Dashboard Pages
   ============================================ */
.dashboard-container {
  padding: calc(var(--nav-height) + 40px) var(--container-pad) 80px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.dashboard-container h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-teal-dark);
  margin-bottom: 32px;
}

.dashboard-section {
  margin-bottom: 48px;
}

.dashboard-section h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-border);
}

/* Shift cards grid */
.shifts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.shift-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.shift-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-teal);
}

.shift-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-teal-dark);
  margin-bottom: 10px;
}

.shift-card .shift-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}

.shift-card .shift-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.shift-card .shift-rate {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-teal);
  margin-bottom: 16px;
}

.shift-card .btn {
  font-size: 0.85rem;
  padding: 10px 20px;
}

/* Status badges */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-open      { background: #dcfce7; color: #166534; }
.badge-pending   { background: #fef9c3; color: #854d0e; }
.badge-accepted  { background: #dbeafe; color: #1e40af; }
.badge-rejected  { background: #fee2e2; color: #991b1b; }
.badge-filled    { background: #e0e7ff; color: #3730a3; }
.badge-cancelled { background: #f3f4f6; color: #6b7280; }

/* Data tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.data-table thead th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--color-text-secondary);
  border-bottom: 2px solid var(--color-border);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.data-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-surface-2);
  color: var(--color-text);
  vertical-align: middle;
}
.data-table tbody tr:hover {
  background: var(--color-surface);
}

/* Small action buttons */
.btn-sm {
  padding: 6px 14px;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  border: none;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.btn-sm:hover { transform: translateY(-1px); opacity: 0.9; }

.btn-accept {
  background: #16a34a;
  color: white;
}
.btn-reject {
  background: #dc2626;
  color: white;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-muted);
}
.empty-state p {
  font-size: 1rem;
  margin-bottom: 16px;
}

/* Dashboard form (post shift) */
.dashboard-form {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 32px;
}
.dashboard-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .glass-card {
    padding: 32px 24px;
    margin: 0 12px;
  }
  .dashboard-form .form-row {
    grid-template-columns: 1fr;
  }
  .shifts-grid {
    grid-template-columns: 1fr;
  }
}

/* Print Styles */
@media print {
  body * {
    visibility: hidden;
  }
  #invoiceModal, #invoiceModal * {
    visibility: visible;
  }
  #invoiceModal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: transparent !important;
  }
  #invoiceModal > div {
    box-shadow: none !important;
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  #invoiceModal button {
    display: none !important;
  }
}


/* Legal Content */
.legal-content {
    color: var(--color-text-secondary);
    line-height: 1.7;
    font-size: 1.05rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-teal-dark);
    margin-top: 32px;
    margin-bottom: 12px;
}

.legal-content p {
    margin-bottom: 16px;
}
