/* ==========================================================================
   Pillbox Hill Medical Center — Feuille de style principale
   Basée sur design.md (style "digital healthcare")
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Marque */
  --brand-green: #1F7A5C;
  --brand-red:   #F5433B;

  /* Primaire */
  --primary:      #2D8CFF;
  --primary-dark: #0B3A6F;
  --primary-soft: #EAF3FF;

  /* Neutres */
  --bg:         #FFFFFF;
  --bg-muted:   #F5F7FA;
  --text:       #1A1D21;
  --text-muted: #5B6570;
  --border:     #E3E8EF;

  /* Rayons */
  --radius-card: 22px;
  --radius-pill: 999px;

  /* Ombre */
  --shadow-card: 0 8px 24px rgba(11, 58, 111, 0.08);
  --shadow-card-hover: 0 14px 34px rgba(11, 58, 111, 0.14);

  /* Typo */
  --font-title: "Poppins", "Sora", system-ui, sans-serif;
  --font-body:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--font-title); color: var(--text); }

.accent { color: var(--primary); }
.accent-green { color: var(--brand-green); }
.accent-red { color: var(--brand-red); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section--muted { background: var(--bg-muted); }
.section--soft { background: var(--primary-soft); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  margin-bottom: 16px;
}
.section--soft .section-head .eyebrow { background: #fff; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; line-height: 1.1; margin-bottom: 14px; }
.section-head p { color: var(--text-muted); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }

.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: #1c7ef2; }

.btn--secondary { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn--secondary:hover { background: var(--primary-soft); }

.btn--danger { background: var(--brand-red); color: #fff; }
.btn--danger:hover { background: #e2352d; }

.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }

/* ---------- Header ---------- */
.topbar {
  background: var(--primary-dark);
  color: #fff;
  font-size: 13.5px;
  padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar a { color: #fff; font-weight: 600; }
.topbar .topbar-item { display: inline-flex; align-items: center; gap: 8px; opacity: .92; }
.topbar svg { width: 15px; height: 15px; }
.topbar .urgence { color: #ffd9d7; font-weight: 700; }

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  transition: box-shadow .25s ease;
}
.header.is-scrolled { box-shadow: 0 6px 20px rgba(11, 58, 111, .10); }

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 84px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 54px; height: 54px; }
.brand .brand-name {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.15;
  color: var(--text);
}
.brand .brand-name span { display: block; font-size: 12px; font-weight: 600; color: var(--brand-green); letter-spacing: 1.5px; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 6px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width .25s ease;
}
.nav a:hover::after, .nav a.is-active::after { width: 100%; }
.nav a.is-active { color: var(--primary); }

.header-cta { display: flex; align-items: center; gap: 12px; }

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  display: block;
  width: 26px; height: 3px;
  background: var(--text);
  border-radius: 3px;
  margin: 5px 0;
  transition: transform .25s ease, opacity .25s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(45, 140, 255, .14), transparent 60%),
    radial-gradient(700px 420px at 5% 90%, rgba(31, 122, 92, .10), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--primary-soft) 100%);
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 48px;
  padding-top: 72px;
  padding-bottom: 88px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-card);
  padding: 8px 18px 8px 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.hero-badge .avatars { display: flex; }
.hero-badge .avatars span {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; color: #fff; font-weight: 700;
  font-family: var(--font-title);
}
.hero-badge .avatars span:first-child { margin-left: 0; }
.hero-badge .stars { color: #f5b53b; letter-spacing: 1px; }

.hero h1 {
  font-size: clamp(38px, 5.4vw, 62px);
  font-weight: 700;
  line-height: 1.06;
  margin-bottom: 22px;
}
.hero p.lead { color: var(--text-muted); font-size: 18px; max-width: 520px; margin-bottom: 32px; }
.hero p.lead strong { color: var(--primary); font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }

.hero-trust { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero-trust .trust-item { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 14.5px; font-weight: 500; }
.hero-trust .trust-item svg { width: 20px; height: 20px; color: var(--brand-green); flex: none; }

/* Visuel hero */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual .hero-circle {
  width: min(440px, 90%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #cfe5ff, #2d8cff 78%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card-hover);
}
.hero-visual .hero-circle img { width: 62%; filter: drop-shadow(0 18px 30px rgba(11,58,111,.25)); }

.float-card {
  position: absolute;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-card-hover);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  animation: floatY 5s ease-in-out infinite;
}
.float-card svg { width: 22px; height: 22px; flex: none; }
.float-card small { display: block; font-weight: 500; color: var(--text-muted); font-size: 12.5px; }
.float-card--tl { top: 6%; left: 0; color: var(--brand-green); }
.float-card--br { bottom: 8%; right: 0; color: var(--brand-red); animation-delay: 2.2s; }

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

/* Bandeau ECG décoratif */
.ecg-strip { color: var(--primary); opacity: .35; }
.ecg-strip svg { width: 100%; height: 46px; display: block; }

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 32px 24px;
  text-align: center;
}
.stat-card .stat-value {
  font-family: var(--font-title);
  font-size: 40px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.stat-card:nth-child(2) .stat-value { color: var(--brand-green); }
.stat-card:nth-child(4) .stat-value { color: var(--brand-red); }
.stat-card .stat-label { margin-top: 10px; color: var(--text-muted); font-size: 14.5px; font-weight: 500; }

/* ---------- Cartes services ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: transparent;
}
.card .card-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card .card-icon svg { width: 26px; height: 26px; }
.card--green .card-icon { background: #e6f4ee; color: var(--brand-green); }
.card--red .card-icon { background: #fdeceb; color: var(--brand-red); }
.card h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 15px; flex: 1; }
.card .card-link {
  margin-top: 18px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card .card-link svg { width: 16px; height: 16px; transition: transform .2s ease; }
.card .card-link:hover svg { transform: translateX(4px); }

/* ---------- Étapes (3 steps) ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 36px 28px;
  position: relative;
}
.step .step-num {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.step h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 15px; }

/* ---------- Bloc à propos / split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-visual {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  min-height: 380px;
  display: flex; align-items: center; justify-content: center;
}
.split-visual img { width: 55%; opacity: .95; filter: drop-shadow(0 16px 28px rgba(0,0,0,.3)); }
.split-content .eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--brand-green);
  margin-bottom: 12px;
}
.split-content h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; line-height: 1.15; margin-bottom: 18px; }
.split-content p { color: var(--text-muted); margin-bottom: 16px; }

.check-list { margin: 22px 0 30px; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.check-list svg { width: 22px; height: 22px; color: var(--brand-green); flex: none; margin-top: 2px; }

/* ---------- Équipe ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.member {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.member:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.member .member-photo {
  height: 190px;
  background: linear-gradient(160deg, var(--primary-soft), #d6e8ff);
  display: flex; align-items: flex-end; justify-content: center;
}
.member .member-photo svg { width: 110px; height: 110px; color: var(--primary); opacity: .55; }
.member .member-body { padding: 20px 18px 24px; }
.member h3 { font-size: 17px; font-weight: 600; }
.member .role { color: var(--primary); font-size: 13.5px; font-weight: 600; margin-top: 4px; }
.member .grade {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-muted);
  color: var(--text-muted);
}
.member--direction .member-photo { background: linear-gradient(160deg, #e6f4ee, #c9e8da); }
.member--direction .member-photo svg { color: var(--brand-green); }
.member--direction .role { color: var(--brand-green); }

/* ---------- Témoignages ---------- */
.quotes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.quote {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.quote .stars { color: #f5b53b; letter-spacing: 2px; font-size: 15px; }
.quote p { color: var(--text-muted); font-size: 15px; font-style: italic; flex: 1; }
.quote .author { display: flex; align-items: center; gap: 12px; }
.quote .author .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 15px;
  font-family: var(--font-title);
}
.quote .author strong { display: block; font-size: 14.5px; font-family: var(--font-title); }
.quote .author small { color: var(--text-muted); font-size: 12.5px; }

/* ---------- Bandeau CTA / urgence ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-radius: var(--radius-card);
  padding: 56px 48px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-banner::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.cta-banner h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); margin-bottom: 10px; }
.cta-banner p { color: rgba(255,255,255,.85); max-width: 520px; }
.cta-banner .cta-actions { display: flex; gap: 14px; flex-wrap: wrap; position: relative; z-index: 1; }

.emergency-banner {
  background: var(--brand-red);
  color: #fff;
  border-radius: var(--radius-card);
  padding: 28px 36px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.emergency-banner .emergency-label { display: flex; align-items: center; gap: 16px; }
.emergency-banner svg { width: 40px; height: 40px; flex: none; }
.emergency-banner h3 { color: #fff; font-size: 20px; }
.emergency-banner p { color: rgba(255,255,255,.9); font-size: 14.5px; }
.emergency-banner .emergency-number {
  font-family: var(--font-title);
  font-size: 34px;
  font-weight: 700;
  background: #fff;
  color: var(--brand-red);
  border-radius: var(--radius-pill);
  padding: 8px 32px;
}

/* ---------- Formulaires ---------- */
.form-card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 44px;
  max-width: 760px;
  margin: 0 auto;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }

.field label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
.field label svg { width: 16px; height: 16px; color: var(--primary); }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--bg-muted);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 13px 16px;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(45, 140, 255, .12);
}
.field textarea { min-height: 130px; resize: vertical; }

.form-footer { margin-top: 28px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-note { font-size: 13px; color: var(--text-muted); }

.form-success {
  display: none;
  background: #e6f4ee;
  border: 1.5px solid var(--brand-green);
  color: var(--brand-green);
  border-radius: 14px;
  padding: 16px 20px;
  font-weight: 600;
  margin-top: 20px;
}
.form-success.is-visible { display: block; }

/* ---------- Page hero (sous-pages) ---------- */
.page-hero {
  background:
    radial-gradient(700px 320px at 90% 0%, rgba(45,140,255,.16), transparent 60%),
    linear-gradient(180deg, var(--primary-soft), #fff);
  padding: 72px 0 56px;
  text-align: center;
}
.page-hero .breadcrumb { font-size: 14px; color: var(--text-muted); margin-bottom: 14px; font-weight: 500; }
.page-hero .breadcrumb a { color: var(--primary); }
.page-hero h1 { font-size: clamp(32px, 4.5vw, 48px); font-weight: 700; }
.page-hero p { color: var(--text-muted); max-width: 620px; margin: 14px auto 0; }

/* ---------- Infos contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.contact-card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 32px 28px;
  text-align: center;
}
.contact-card .card-icon {
  width: 58px; height: 58px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.contact-card .card-icon svg { width: 26px; height: 26px; }
.contact-card h3 { font-size: 18px; margin-bottom: 8px; }
.contact-card p { color: var(--text-muted); font-size: 15px; }
.contact-card .big { font-family: var(--font-title); font-size: 22px; font-weight: 700; color: var(--primary); margin-top: 6px; }
.contact-card--red .card-icon { background: #fdeceb; color: var(--brand-red); }
.contact-card--red .big { color: var(--brand-red); }
.contact-card--green .card-icon { background: #e6f4ee; color: var(--brand-green); }
.contact-card--green .big { color: var(--brand-green); }

.map-placeholder {
  border-radius: var(--radius-card);
  background: linear-gradient(160deg, #dbeafe, var(--primary-soft));
  border: 1.5px dashed var(--primary);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--primary-dark);
  font-weight: 600;
  text-align: center;
  padding: 24px;
}
.map-placeholder svg { width: 44px; height: 44px; color: var(--primary); }
.map-placeholder small { font-weight: 500; color: var(--text-muted); }

/* ---------- Horaires ---------- */
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td {
  padding: 14px 8px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.hours-table td:last-child { text-align: right; font-weight: 600; font-family: var(--font-title); }
.hours-table .open td:last-child { color: var(--brand-green); }
.hours-table tr:last-child td { border-bottom: none; }

/* ---------- Valeurs / timeline ---------- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.timeline { position: relative; max-width: 720px; margin: 0 auto; padding-left: 36px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 10px; top: 6px; bottom: 6px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(var(--primary), var(--brand-green));
}
.timeline-item { position: relative; padding-bottom: 36px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -33px; top: 6px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--primary);
}
.timeline-item .date {
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.timeline-item h3 { font-size: 19px; margin: 6px 0; }
.timeline-item p { color: var(--text-muted); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 16px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 24px;
  color: var(--primary);
  line-height: 1;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 24px 20px; color: var(--text-muted); font-size: 15px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.82);
  padding: 72px 0 0;
  margin-top: 96px;
}
.footer a { color: rgba(255,255,255,.82); transition: color .2s ease; }
.footer a:hover { color: #fff; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.footer-brand img { width: 56px; height: 56px; }
.footer-brand strong { font-family: var(--font-title); color: #fff; font-size: 17px; line-height: 1.2; display: block; }
.footer-brand small { color: rgba(255,255,255,.6); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; }
.footer p.footer-desc { font-size: 14.5px; max-width: 320px; }

.footer h4 { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 18px; letter-spacing: .5px; }
.footer-links { display: grid; gap: 12px; font-size: 14.5px; }

.footer-contact { display: grid; gap: 14px; font-size: 14.5px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  padding: 22px 0;
  font-size: 13.5px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: rgba(255,255,255,.6);
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav {
    position: fixed;
    inset: 84px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    box-shadow: 0 20px 30px rgba(11,58,111,.12);
    padding: 12px 24px 24px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--border); }
  .nav a:last-child { border-bottom: none; }
  .burger { display: block; }
  .header-cta .btn--secondary { display: none; }

  .hero .container { grid-template-columns: 1fr; text-align: center; padding-top: 56px; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-visual { margin-top: 24px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid, .steps-grid, .quotes-grid, .contact-grid, .values-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .topbar .container { justify-content: center; }
  .topbar .topbar-left { display: none; }

  .stats-grid, .cards-grid, .steps-grid, .quotes-grid,
  .contact-grid, .team-grid, .values-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .cta-banner { padding: 40px 28px; }
  .emergency-banner { justify-content: center; text-align: center; }
  .brand .brand-name { font-size: 14px; }
}
