/* ============================================================
   Carrycow Pioneer School — Design System
   Brand palette (solid colours only, no gradients):
   Navy #011649 | Green #06531E | Sky #6AA9DA
   White #FFFFFF | Light Grey #F5F5F5
   Mobile-first. Built for low-bandwidth, mixed-device access.
   ============================================================ */

:root {
  --navy: #011649;
  --navy-90: rgba(1, 22, 73, 0.9);
  --green: #06531E;
  --green-dark: #043d16;
  --sky: #6AA9DA;
  --sky-dark: #4f93c9;
  --white: #FFFFFF;
  --grey: #F5F5F5;
  --grey-2: #ECECEC;
  --ink: #1a1a1a;
  --muted: #5b6470;
  --line: #e3e6ec;
  --shadow-sm: 0 1px 2px rgba(1, 22, 73, 0.06), 0 1px 3px rgba(1, 22, 73, 0.08);
  --shadow-md: 0 4px 12px rgba(1, 22, 73, 0.08), 0 2px 6px rgba(1, 22, 73, 0.06);
  --shadow-lg: 0 12px 32px rgba(1, 22, 73, 0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;
  --container: 1180px;
  --gutter: clamp(16px, 5vw, 32px);
  --font-head: "Poppins", "Segoe UI", Tahoma, system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", Tahoma, system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.6vw, 1.5rem); }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(40px, 7vw, 80px); }
.section--tight { padding-block: clamp(36px, 5vw, 64px); }
.section--grey { background: var(--grey); }
.section--navy { background: var(--navy); color: #dce4f5; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }
.section--green { background: var(--green); color: #e7f3ec; }
.section--green h1, .section--green h2, .section--green h3 { color: var(--white); }
.grid { display: grid; gap: clamp(16px, 2.4vw, 24px); }
/* Mobile-first: card collections show 2-per-row to reduce scroll debt.
   Content-heavy grids can opt out with .grid--mobile-1. */
.grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
.grid--mobile-1 { grid-template-columns: 1fr !important; }
.grid--mobile-2 { grid-template-columns: repeat(2, 1fr); }
.center { text-align: center; }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.section--navy .lead, .section--green .lead { color: rgba(255,255,255,.85); }
.mx-auto { margin-inline: auto; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; } .mt-5 { margin-top: 3rem; }

/* ---------- Eyebrow / kicker ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.78rem; color: var(--green);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--sky); display: inline-block; }
.section--navy .eyebrow, .section--green .eyebrow { color: var(--sky); }
.section--navy .eyebrow::before, .section--green .eyebrow::before { background: rgba(255,255,255,.6); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-align: center; transition: transform .15s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  line-height: 1; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-dark); color: var(--white); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: #021d5e; color: var(--white); }
.btn--sky { background: var(--sky); color: var(--navy); }
.btn--sky:hover { background: var(--sky-dark); color: var(--white); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: var(--white); border-color: var(--white); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--lg { padding: 17px 34px; font-size: 1.08rem; }
@media (max-width: 600px) {
  .hero-actions .btn--lg { padding: 14px 16px; font-size: 0.95rem; }
}
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
/* Hero actions: always sit on a single line, even on narrow phones */
.hero-actions { display: flex; flex-wrap: nowrap; gap: 12px; align-items: stretch; }
.hero-actions .btn { flex: 1 1 0; min-width: 0; white-space: normal; text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  border-bottom: 3px solid var(--green);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 8px; height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); flex: 0 0 auto; }
.brand:hover { color: var(--white); }
/* Logo fits inside the navigation bar height (fixed px), width is free/auto
   so the wide 1080×251 lockup keeps its aspect ratio. */
.brand-logo {
  height: 52px;
  width: auto;
  max-width: 60vw;
  display: block;
  object-fit: contain;
}
.brand--footer .brand-logo { height: 56px; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: transparent; border: 0; cursor: pointer;
  color: var(--white); border-radius: 8px;
}
.nav-toggle:hover { background: rgba(255,255,255,.1); }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  content: ""; display: block; width: 24px; height: 2px; background: var(--white);
  position: relative; transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle .bars::before { position: absolute; top: -7px; left: 0; }
.nav-toggle .bars::after { position: absolute; top: 7px; left: 0; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

.primary-nav {
  position: fixed; inset: 72px 0 auto 0;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 14px var(--gutter) 28px;
  display: flex; flex-direction: column; gap: 4px;
  max-height: calc(100vh - 72px); overflow-y: auto;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.primary-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.primary-nav a {
  color: #dce4f5; font-family: var(--font-head); font-weight: 500;
  padding: 13px 14px; border-radius: 10px; font-size: 1.05rem;
}
.primary-nav a:hover, .primary-nav a.active { background: rgba(106,169,218,.16); color: var(--white); }
.primary-nav .nav-cta { margin-top: 10px; }

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: var(--white);
  position: relative;
  padding-block: clamp(56px, 12vw, 120px);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 56px;
  background: var(--white);
  clip-path: polygon(0 100%, 100% 100%, 100% 60%, 70% 100%, 45% 70%, 20% 100%, 0 75%);
}
@media (max-width: 859px) {
  .hero::after { height: 32px; }
}
.hero .eyebrow { color: var(--sky); }
.hero h1 { color: var(--white); max-width: 16ch; }
.hero .lead { color: rgba(255,255,255,.85); max-width: 52ch; }
.hero-actions { margin-top: 28px; }
/* On mobile the hero image stacks below the buttons — give them breathing room */
@media (max-width: 859px) {
  .hero-actions { margin-bottom: 32px; }
  .hero-image { margin-top: 8px; }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  padding: 8px 16px; border-radius: 999px; font-size: 0.82rem; font-weight: 600;
  color: var(--sky); margin-bottom: 22px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* ---------- Values banner ---------- */
.values-banner {
  background: var(--green); color: var(--white);
  padding-block: 18px; text-align: center;
  font-family: var(--font-head); font-weight: 600;
  letter-spacing: 0.02em; font-size: clamp(0.95rem, 2.4vw, 1.25rem);
  border-top: 3px solid var(--sky);
}
.values-banner .sep { color: var(--sky); margin: 0 10px; }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 18px 20px;
  box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  height: 100%;
  color: var(--ink);
  display: flex; flex-direction: column;
}
.card p { color: var(--muted); font-size: 0.93rem; line-height: 1.55; }
.card h3, .card h4 { color: var(--navy); }
.card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.card h4 { font-size: 1rem; margin-bottom: 4px; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; margin-bottom: 12px;
  background: var(--grey); color: var(--green);
}
.card__icon svg { width: 22px; height: 22px; }
.card--accent { border-top: 3px solid var(--sky); }
.card--green { border-top: 3px solid var(--green); }
.card--navy { border-top: 3px solid var(--navy); }
.card p:last-child { margin-bottom: 0; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--white); padding: 26px 18px; text-align: center; }
.stat__num { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.8rem, 5vw, 2.6rem); color: var(--green); line-height: 1; }
.stat__label { font-size: 0.9rem; color: var(--muted); margin-top: 6px; }

/* ---------- Feature list (with icons) ---------- */
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .fi {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px;
  background: var(--grey); color: var(--green); display: grid; place-items: center;
}
.feature-list .fi svg { width: 20px; height: 20px; }
.feature-list h4 { margin: 0 0 2px; font-size: 1.05rem; }
.feature-list p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* ---------- Pill / tag ---------- */
.pill {
  display: inline-block; background: var(--grey); color: var(--navy);
  font-size: 0.8rem; font-weight: 600; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line);
}
.pill--green { background: rgba(6,83,30,.1); color: var(--green); border-color: rgba(6,83,30,.2); }
.pill--sky { background: rgba(106,169,218,.16); color: var(--navy); border-color: rgba(106,169,218,.4); }
.pill--navy { background: rgba(1,22,73,.08); color: var(--navy); border-color: rgba(1,22,73,.2); }
/* Solid, high-contrast variant for use on dark (navy/green) backgrounds */
.pill--solid-sky { background: var(--sky); color: var(--navy); border-color: var(--sky); font-weight: 700; }

/* ---------- Callout ---------- */
.callout {
  background: var(--grey); border-left: 5px solid var(--green);
  border-radius: var(--radius-sm); padding: 22px 24px;
}
.callout--navy { background: rgba(1,22,73,.04); border-color: var(--navy); }
.callout--sky { background: rgba(106,169,218,.1); border-color: var(--sky); }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Images ---------- */
.media {
  position: relative; overflow: hidden; border-radius: var(--radius);
  box-shadow: var(--shadow-md); background: var(--grey-2);
}
.media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.media--portrait { aspect-ratio: 3 / 4; }
.media--landscape { aspect-ratio: 4 / 3; }
.media--square { aspect-ratio: 1 / 1; }
.media--wide { aspect-ratio: 16 / 9; }
.media--hero { aspect-ratio: 4 / 3; }

/* Hero image: sits in the hero right column */
.hero-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.hero-image img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

/* Full-width banner image */
.banner-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.banner-image img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: cover; }

/* Photo gallery (campus) */
.gallery { display: grid; gap: clamp(12px, 2vw, 18px); grid-template-columns: repeat(2, 1fr); }
.gallery .media { aspect-ratio: 1 / 1; }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(1, 22, 73, 0.82);
  color: #fff; font-size: 0.82rem; font-weight: 600;
  padding: 12px 14px; font-family: var(--font-head);
}
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .gallery { grid-template-columns: repeat(4, 1fr); } }

/* Card with image on top */
.card--media { padding: 0; overflow: hidden; }
.card--media .card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.card--media .card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.card--media:hover .card__media img { transform: scale(1.04); }
.card--media .card__body { padding: 16px 18px; }

/* Figure with caption (split sections) */
.figure { margin: 0; }
.figure figcaption {
  font-size: 0.82rem; color: var(--muted); margin-top: 8px; text-align: center;
}

/* ---------- Bible verse block ---------- */
.verse {
  background: var(--navy); color: var(--white); border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 48px); text-align: center; position: relative;
}
.verse blockquote { margin: 0; font-family: var(--font-head); font-style: italic; font-size: clamp(1.2rem, 3vw, 1.7rem); line-height: 1.4; color: var(--white); }
.verse cite { display: block; margin-top: 14px; font-style: normal; font-weight: 600; color: var(--sky); letter-spacing: 0.04em; }
.verse .quote-mark { font-family: var(--font-head); font-size: 4rem; color: var(--sky); line-height: 0.5; display: block; margin-bottom: 10px; opacity: 0.6; }

/* ---------- Phase / roadmap ---------- */
.phase-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  padding: 6px 14px; border-radius: 999px;
}
.phase-tag--now { background: var(--green); color: var(--white); }
.phase-tag--future { background: var(--sky); color: var(--navy); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 480px; background: var(--white); }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 0.96rem; }
thead th { background: var(--navy); color: var(--white); font-family: var(--font-head); font-weight: 600; }
tbody tr:nth-child(even) { background: var(--grey); }
tbody tr:last-child td { border-bottom: 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; color: var(--navy); }
.field .req { color: var(--green); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--white); width: 100%; transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(106,169,218,.25);
}
.field textarea { min-height: 130px; resize: vertical; }
.field .hint { font-size: 0.82rem; color: var(--muted); }
.field--error input, .field--error select, .field--error textarea { border-color: #b3261e; }
.field__error { color: #b3261e; font-size: 0.82rem; font-weight: 600; }
.form-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.form-note { font-size: 0.85rem; color: var(--muted); }

/* ---------- Alert ---------- */
.alert { padding: 14px 18px; border-radius: 10px; font-size: 0.95rem; border: 1px solid transparent; }
.alert--success { background: rgba(6,83,30,.1); color: var(--green); border-color: rgba(6,83,30,.3); }
.alert--error { background: rgba(179,38,30,.08); color: #8a1d17; border-color: rgba(179,38,30,.3); }

/* ---------- Contact info list ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ci { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 10px; background: var(--navy); color: var(--white); display: grid; place-items: center; }
.contact-list .ci svg { width: 22px; height: 22px; }
.contact-list h4 { margin: 0 0 2px; font-size: 1rem; }
.contact-list p { margin: 0; color: var(--muted); }
.contact-list a { color: var(--navy); font-weight: 600; }
.contact-list a:hover { color: var(--green); }

/* ---------- Map ---------- */
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-wrap iframe { display: block; width: 100%; height: 360px; border: 0; }

/* ---------- Donate / support pillars ---------- */
.pillar {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px 20px; box-shadow: var(--shadow-sm); height: 100%;
  border-top: 3px solid var(--sky);
  color: var(--ink);
}
.pillar p { color: var(--muted); font-size: 0.93rem; }
.pillar h3 { display: flex; align-items: center; gap: 8px; color: var(--navy); font-size: 1.08rem; margin-bottom: 6px; }
.pillar .num {
  font-family: var(--font-head); font-weight: 700; color: var(--navy);
  font-size: 1rem;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c4cee0; padding-block: 56px 24px; border-top: 4px solid var(--green); }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: #aeb9cf; font-size: 0.95rem; max-width: 38ch; }
.footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a { color: #c4cee0; font-size: 0.95rem; }
.footer-links a:hover { color: var(--sky); }
.footer-contact li { color: #aeb9cf; font-size: 0.92rem; margin-bottom: 10px; display: flex; gap: 10px; align-items: flex-start; }
.footer-contact a { color: #c4cee0; }
.footer-bottom {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-direction: column; gap: 10px;
  font-size: 0.85rem; color: #8e9ab5; text-align: center;
}

/* ---------- Breadcrumb / page header ---------- */
.page-header {
  background: var(--navy); color: var(--white);
  padding-block: clamp(40px, 7vw, 72px); position: relative;
}
.page-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 40px;
  background: var(--white); clip-path: polygon(0 100%, 100% 100%, 100% 50%, 0 100%);
}
.page-header h1 { color: var(--white); margin-bottom: 10px; }
.page-header p { color: rgba(255,255,255,.85); max-width: 60ch; margin: 0; }
.breadcrumb { font-size: 0.85rem; color: var(--sky); margin-bottom: 14px; }
.breadcrumb a { color: var(--sky); }
.breadcrumb a:hover { color: var(--white); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--white); color: var(--navy); padding: 10px 16px;
  border-radius: 8px; font-weight: 600;
}
.skip-link:focus { left: 8px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responsive breakpoints
   ============================================================ */

/* ---------- Small screens (mobile-first refinements) ---------- */
@media (max-width: 600px) {
  body { font-size: 16px; }
  /* CTA button rows stack full-width for solid touch targets.
     .hero-actions is excluded — it stays side-by-side by design. */
  .btn-row:not(.hero-actions) {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .btn-row:not(.hero-actions) .btn { width: 100%; }
  /* Prevent long emails/phone strings from causing horizontal overflow */
  .footer-contact, .contact-list, .card, .pillar { overflow-wrap: anywhere; }
  /* Tighter cards on phones so 2-per-row stays comfortable */
  .card, .pillar { padding: 14px 16px; }
  .card h3 { font-size: 1rem; }
  .card p, .pillar p { font-size: 0.88rem; }
  .grid { gap: 12px; }
  /* Tighter section spacing on phones */
  .section { padding-block: 36px; }
  .section--tight { padding-block: 28px; }
}

@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
  .brand-logo { height: 56px; }
}

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .primary-nav {
    position: static; transform: none; opacity: 1; pointer-events: auto;
    flex-direction: row; align-items: center; gap: 4px;
    background: transparent; border: 0; padding: 0; max-height: none; overflow: visible;
  }
  .primary-nav a { padding: 10px 14px; font-size: 0.98rem; }
  .primary-nav .nav-cta { margin-top: 0; margin-left: 8px; }
  .primary-nav .nav-cta a { background: var(--green); color: var(--white); padding: 11px 20px; }
  .primary-nav .nav-cta a:hover { background: var(--green-dark); }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; }
  .hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
  .split--wide-left { grid-template-columns: 1.3fr 1fr; }
  .split--wide-right { grid-template-columns: 1fr 1.3fr; }
}

@media (min-width: 1040px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Floating contact actions ---------- */
.float-actions {
  position: fixed;
  right: clamp(14px, 3vw, 24px);
  bottom: clamp(14px, 3vw, 24px);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.float-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 52px;
  min-width: 52px;
  padding: 0 16px 0 14px;
  border-radius: 999px;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(1, 22, 73, 0.28);
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.float-btn:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(1, 22, 73, 0.34); }
.float-btn:active { transform: translateY(0); }
.float-btn svg { width: 24px; height: 24px; flex: 0 0 auto; }
.float-btn--whatsapp { background: var(--green); }
.float-btn--whatsapp:hover { background: var(--green-dark); }
.float-btn--call { background: var(--navy); }
.float-btn--call:hover { background: #021d5e; }
/* On small screens, show icon-only chips to save space */
@media (max-width: 560px) {
  .float-btn { padding: 0; width: 52px; justify-content: center; }
  .float-btn__label { display: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .nav-toggle, .hero-actions, .btn, .float-actions { display: none !important; }
  body { color: #000; }
  .section--navy, .section--green, .hero, .page-header { background: #fff; color: #000; }
}
