/* CaribeAlert — brand tokens */
:root {
  --navy: #003366;
  --navy-deep: #002347;
  --teal: #0E8C80;
  --teal-dark: #0A6A61;
  --sand: #F4F1EA;
  --ink: #22303B;
  --muted: #5C6B77;
  --line: #DDE4E9;
  --white: #FFFFFF;
  --font: "Plus Jakarta Sans", Inter, system-ui, -apple-system, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
}

a { color: var(--teal-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.2px;
  text-decoration: none;
  white-space: nowrap;
}
/* The mark is supplied white + bright teal so it reads on the navy header. */
.brand .brand-mark { height: 30px; width: auto; display: block; }
.brand .b1 { color: var(--white); }
.brand .b2 { color: #1FBFB0; }
.site-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-nav a {
  color: #C7D3DF;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--white); }
.site-nav a[aria-current="page"] { color: var(--white); border-bottom-color: #1FBFB0; }
.site-nav a.cta {
  background: var(--teal);
  color: var(--white);
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  border-bottom: none;
}
.site-nav a.cta:hover { background: var(--teal-dark); }

/* Language switcher — header and footer. Existing palette only. */
.lang-switch { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.lang-switch a {
  color: #8FA3B5;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.lang-switch a:hover { color: var(--white); }
.lang-switch a[aria-current="true"] { color: var(--white); border-bottom-color: #1FBFB0; }
.site-footer .lang-switch { margin-top: 12px; }
.site-footer .lang-switch a { color: #C7D3DF; font-size: 14px; border-bottom: none; padding: 0; }
.site-footer .lang-switch a:hover { color: var(--white); }
.site-footer .lang-switch a[aria-current="true"] { color: var(--white); font-weight: 700; }

/* Hero */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 72px 0 64px;
}
.hero h1 {
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 800;
  line-height: 1.15;
  max-width: 760px;
}
.hero h1 .accent { color: #1FBFB0; }
.hero p.lead {
  margin-top: 20px;
  font-size: clamp(17px, 2vw, 20px);
  color: #C7D3DF;
  max-width: 680px;
}
.hero .actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15.5px;
  padding: 13px 26px;
  border-radius: 6px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-ghost { border-color: #46617C; color: var(--white); background: transparent; }
.btn-ghost:hover { border-color: #C7D3DF; }

/* Resilience cycle — signature element */
.cycle {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 44px;
}
.cycle .step {
  background: #0A2E52;
  border: 1px solid #1C4A79;
  color: #C7D3DF;
  font-weight: 700;
  font-size: 14.5px;
  padding: 9px 18px;
  border-radius: 999px;
}
.cycle .step.learn {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}
.cycle .arrow { color: #46617C; font-size: 16px; }
.cycle-note { margin-top: 14px; font-size: 14px; color: #8FA3B5; }

/* Sections */
section { padding: 64px 0; }
section.sand { background: var(--sand); }
section.navy { background: var(--navy); color: var(--white); }
.eyebrow {
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.navy .eyebrow { color: #1FBFB0; }
h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; line-height: 1.2; color: var(--navy); max-width: 720px; }
.navy h2 { color: var(--white); }
h3 { font-size: 19px; font-weight: 700; color: var(--navy); }
.section-intro { margin-top: 16px; max-width: 720px; color: var(--muted); }
.navy .section-intro { color: #C7D3DF; }

/* Vision quote */
.vision blockquote {
  font-family: var(--serif);
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.5;
  color: var(--navy);
  max-width: 820px;
  border-left: 4px solid var(--teal);
  padding-left: 26px;
}

/* Card grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 36px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px;
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 15.5px; color: var(--muted); }
.card .phase-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--teal-dark);
  background: #E3F2F0;
  border-radius: 4px;
  padding: 3px 9px;
  margin-bottom: 12px;
}

/* Phases */
.phases { margin-top: 36px; display: grid; gap: 0; }
.phase {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.phase:last-child { border-bottom: 1px solid var(--line); }
.phase .no {
  font-weight: 800;
  color: var(--navy);
  font-size: 17px;
}
.phase .no small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; margin-top: 2px; }
.phase p { color: var(--muted); font-size: 15.5px; margin-top: 6px; }
@media (max-width: 640px) {
  .phase { grid-template-columns: 1fr; gap: 6px; }
}

/* Stats band */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; margin-top: 36px; }
.stat .n { font-size: 38px; font-weight: 800; color: #1FBFB0; line-height: 1; }
.stat .l { margin-top: 8px; font-size: 14.5px; color: #C7D3DF; }

/* Lists */
.plainlist { margin-top: 20px; padding-left: 0; list-style: none; max-width: 760px; }
.plainlist li {
  padding: 12px 0 12px 30px;
  position: relative;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.plainlist li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 21px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
}

/* Prose pages */
.prose { max-width: 760px; }
.prose p { margin-top: 18px; color: var(--ink); }
.prose p.muted { color: var(--muted); }
.prose h2 { margin-top: 48px; }

/* Forms */
form.contact { max-width: 640px; margin-top: 36px; display: grid; gap: 18px; }
.field label { display: block; font-weight: 700; font-size: 14.5px; color: var(--navy); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%;
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid #B9C6CF;
  border-radius: 6px;
  background: var(--white);
}
.field textarea { min-height: 150px; resize: vertical; }
.form-status { font-size: 15px; font-weight: 600; display: none; padding: 12px 16px; border-radius: 6px; }
.form-status.ok { display: block; background: #E3F0E7; color: #1F5A33; }
.form-status.err { display: block; background: #FADFD6; color: #7E2914; }
.honeypot { position: absolute; left: -9999px; }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #8FA3B5;
  padding: 44px 0;
  font-size: 14px;
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer a { color: #C7D3DF; text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer .tagline { font-weight: 700; color: #C7D3DF; }
