/* ROTEX 7430 — shared stylesheet
   Rotary Brand Center colors (current values, not the drifted 2019 set) and
   Open Sans throughout — which is what rotary.org itself ships, so this stays
   brand-compliant while reading a lot younger than the Frutiger+Sentinel serif
   pairing. Proportion rule observed: three blues dominate, gold is an accent.
   Deliberately flat: no card borders, minimal shadow, hierarchy from type and space. */

:root {
  --font-ui: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --royal:     #17458F;
  --royal-dk:  #0E2C5C;
  --royal-lt:  #2C61B8;
  --gold:      #F7A81B;
  --gold-dk:   #B87A08;
  --azure:     #0067C8;
  --sky:       #00A2E0;
  --cranberry: #D41367;

  --ink:   #14171C;
  --slate: #545C69;
  --mute:  #8A93A2;
  --paper: #FFFFFF;
  --sand:  #F4F6F9;   /* cool, not beige — reads more current */
  --line:  #E4E8EE;

  --wrap: 1140px;
  --gut: clamp(1.25rem, 5vw, 2.5rem);

  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 28px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

/* Brand rule: primary headlines and main nav are ALL CAPS condensed. */
h1 {
  font-weight: 800;
  font-stretch: 76%;
  text-transform: uppercase;
  letter-spacing: .002em;
  line-height: .98;
}

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--azure); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--royal); }

img, svg { max-width: 100%; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--gold); color: var(--ink);
  padding: .75rem 1.25rem; font-weight: 700; border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

:where(a, button, summary, input):focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* ── Header ───────────────────────────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: var(--royal-dk);
  color: #fff;
  border-bottom: 3px solid var(--gold);
}
.site-head .wrap {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 72px;
}

.brand {
  display: inline-flex; align-items: center; gap: .7rem;
  color: #fff; text-decoration: none; font-weight: 700;
  margin-right: auto;
}
.brand:hover { color: #fff; }
.brand svg { flex: none; }
.brand-name {
  font-weight: 800;
  font-stretch: 80%;
  font-size: 1.375rem;
  letter-spacing: .04em;
  line-height: 1;
}
.brand-sub {
  display: block;
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: .3rem;
}

.nav-toggle {
  display: none;
  background: transparent; border: 1px solid rgba(255,255,255,.35);
  color: #fff; border-radius: var(--r-sm);
  padding: .5rem .75rem; font: inherit; font-size: .875rem; font-weight: 600;
  cursor: pointer;
}

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a {
  display: block;
  padding: .55rem .8rem;
  color: rgba(255,255,255,.86);
  text-decoration: none;
  font-size: .8125rem;
  font-weight: 700;
  font-stretch: 82%;
  text-transform: uppercase;
  letter-spacing: .09em;
  border-radius: var(--r-sm);
}
.nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav a[aria-current="page"] { color: var(--gold); }
.nav .btn { margin-left: .5rem; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; inset: 72px 0 auto;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--royal-dk);
    border-bottom: 3px solid var(--gold);
    padding: .5rem var(--gut) 1.25rem;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: .85rem .25rem; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav .btn { margin: .75rem 0 0; text-align: center; }
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: .85rem 1.5rem;
  border-radius: 999px;          /* pill, not boxy */
  font-weight: 700;
  font-size: .9375rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background-color .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: #14171C; }
.btn-gold:hover { background: #FFBB3D; color: #14171C; }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; border-color: #fff; }
.btn-royal { background: var(--royal); color: #fff; }
.btn-royal:hover { background: var(--royal-lt); color: #fff; }
.btn-outline { border-color: var(--royal); color: var(--royal); }
.btn-outline:hover { background: var(--royal); color: #fff; }

/* ── Hero — full width, no side column ────────────────────────────────── */
.hero {
  position: relative;
  background: var(--royal-dk);
  color: #fff;
  overflow: hidden;
  padding: clamp(3.5rem, 11vw, 8rem) 0 clamp(3rem, 9vw, 6.5rem);
}
/* a wide, soft light source rather than a literal globe */
.hero::before {
  content: "";
  position: absolute; inset: -40% -20% auto 30%;
  height: 150%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(0,162,224,.28), rgba(0,103,200,.10) 45%, transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; }

.eyebrow {
  display: inline-block;
  font-size: .75rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 6.4vw, 5.25rem);
  max-width: 15em;      /* em, not ch — ch here is relative to the huge display size */
  margin-bottom: .4em;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-lede {
  font-size: clamp(1.0625rem, 1.7vw, 1.375rem);
  line-height: 1.55;
  color: rgba(255,255,255,.82);
  max-width: 52ch;
  margin-bottom: 2.25rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ── Country marquee ──────────────────────────────────────────────────── */
.marquee-band {
  background: var(--royal);
  color: #fff;
  padding: 1.5rem 0 1.75rem;
  overflow: hidden;
}
.marquee-label {
  font-size: .6875rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.65);
  text-align: center;
  margin: 0 0 1rem;
  padding-inline: var(--gut);
}
.marquee {
  display: flex;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.marquee-band:hover .marquee { animation-play-state: paused; }
.marquee ul {
  display: flex; align-items: center; gap: 2.5rem;
  list-style: none; margin: 0; padding: 0 1.25rem 0 0;
}
.marquee li {
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  font-weight: 800;
  font-stretch: 78%;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: rgba(255,255,255,.55);
  white-space: nowrap;
}
.marquee li:nth-child(3n) { color: var(--gold); }
.marquee li:nth-child(4n) { color: var(--sky); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Sections ─────────────────────────────────────────────────────────── */
.section { padding: clamp(3.5rem, 9vw, 7rem) 0; }
.section-sand { background: var(--sand); }
.section-head { max-width: 32rem; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; max-width: 42rem; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
.section-head p { color: var(--slate); font-size: 1.125rem; margin-bottom: 0; max-width: 52ch; }
.section-head.center p { margin-inline: auto; }

.kicker {
  font-size: .75rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-dk);
  margin-bottom: 1rem;
}

/* ── Three doors ──────────────────────────────────────────────────────── */
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 900px) { .doors { grid-template-columns: 1fr; } }

.door {
  display: flex; flex-direction: column;
  padding: 2rem;
  background: var(--sand);
  border: 0;
  border-radius: var(--r-lg);
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, background-color .18s ease;
}
.door:hover { transform: translateY(-4px); background: #EDF1F7; color: inherit; }
.door h3 { font-size: 1.5rem; margin-bottom: .45em; }
.door p { color: var(--slate); font-size: .9375rem; flex: 1; line-height: 1.6; }
.door-num {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .6875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em;
  color: var(--accent, var(--royal));
  margin-bottom: 1.5rem;
}
.door-num::before {
  content: ""; width: 1.75rem; height: 3px; border-radius: 2px;
  background: var(--accent, var(--royal));
}
.door-go {
  margin-top: 1.75rem;
  font-weight: 700; font-size: .875rem;
  color: var(--accent, var(--royal));
}
.door-go::after { content: " →"; }

/* ── Mission ──────────────────────────────────────────────────────────── */
.mission {
  background: var(--royal);
  color: #fff;
  padding: clamp(3.5rem, 9vw, 7rem) 0;
}
.mission-line {
  font-size: clamp(2rem, 6vw, 4.25rem);
  font-weight: 800;
  font-stretch: 78%;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: -.005em;
  margin: 0 0 1.5rem;
  max-width: 18ch;
  text-wrap: balance;
}
.mission-line em { font-style: normal; color: var(--gold); }
.mission-body {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: rgba(255,255,255,.85);
  max-width: 58ch;
}

/* ── Numbers ──────────────────────────────────────────────────────────── */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin: 0; }
@media (max-width: 760px) { .numbers { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1rem; } }
.num { text-align: center; }
.num dt {
  font-weight: 800;
  font-stretch: 76%;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  color: var(--azure);
  line-height: 1;
  letter-spacing: -.02em;
}
.num dd {
  margin: .65rem 0 0;
  font-size: .75rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--slate);
}

/* ── Media rows ───────────────────────────────────────────────────────── */
.media {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
@media (max-width: 860px) { .media { grid-template-columns: 1fr; } }

.checks { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.25rem; }
.checks li { position: relative; padding-left: 2.25rem; color: var(--slate); font-size: .9375rem; }
.checks li::before {
  content: "";
  position: absolute; left: 0; top: .35em;
  width: 1.1rem; height: .55rem;
  border-left: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  transform: rotate(-45deg);
}
.checks strong { color: var(--ink); font-size: 1rem; }

/* photo placeholder — swap for <img> when real photos land */
.photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(140deg, var(--royal) 0%, var(--azure) 55%, var(--sky) 100%);
  display: grid; place-items: center;
}
.photo::after {
  content: attr(data-label);
  font-size: .6875rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.8);
  border: 1px dashed rgba(255,255,255,.5);
  padding: .6rem 1rem;
  border-radius: var(--r-sm);
  text-align: center;
  max-width: 80%;
}
.photo.alt { background: linear-gradient(140deg, var(--gold-dk), var(--gold) 60%, #FFD37A); }
.photo.tall { aspect-ratio: 1 / 1; }

/* ── Cards / stories ──────────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: transparent;
  border: 0;
  border-radius: var(--r-md);
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
}
.card .photo { aspect-ratio: 4 / 3; border-radius: var(--r-md); margin-bottom: 1.25rem; }
.card-body { flex: 1; display: flex; flex-direction: column; }
.card-meta {
  font-size: .6875rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-dk);
  margin-bottom: .6rem;
}
.card h3 { font-size: 1.25rem; }
.card p { font-size: .9375rem; color: var(--slate); flex: 1; }

/* ── CTA band ─────────────────────────────────────────────────────────── */
.cta-band {
  background: var(--azure);
  padding: clamp(3rem, 8vw, 5.5rem) 0;
  text-align: center;
  color: #fff;
}
.cta-band h2 { font-size: clamp(2rem, 5vw, 3.25rem); color: #fff; }
.cta-band p { max-width: 50ch; margin-inline: auto; color: rgba(255,255,255,.9); font-size: 1.0625rem; }
.cta-band .hero-cta { justify-content: center; margin-top: 2rem; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-foot {
  background: var(--royal-dk);
  color: rgba(255,255,255,.7);
  padding: clamp(3rem, 7vw, 4.5rem) 0 2rem;
  font-size: .9375rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.5rem 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.site-foot h4 {
  color: #fff; font-size: .6875rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  margin: 0 0 1rem;
}
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.site-foot a { color: rgba(255,255,255,.75); text-decoration: none; }
.site-foot a:hover { color: var(--gold); text-decoration: underline; }
.foot-note {
  padding-top: 1.5rem;
  font-size: .8125rem;
  color: rgba(255,255,255,.5);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
}

/* ── Editorial notes (remove before the site is finished) ─────────────── */
.todo {
  background: #FFF8E6;
  border: 1px dashed var(--gold-dk);
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
  font-size: .8125rem;
  line-height: 1.55;
  color: #6B4E05;
  margin: 2rem 0 0;
}
.todo strong { text-transform: uppercase; letter-spacing: .1em; font-size: .6875rem; }
.todo-dark {
  background: rgba(0,0,0,.22);
  border-color: rgba(255,255,255,.35);
  color: rgba(255,255,255,.85);
}

/* ── Inner-page hero ──────────────────────────────────────────────────── */
.page-hero {
  position: relative;
  background: var(--royal-dk);
  color: #fff;
  overflow: hidden;
  padding: clamp(2.75rem, 7vw, 5rem) 0 clamp(2.75rem, 7vw, 4.5rem);
}
.page-hero::before {
  content: "";
  position: absolute; inset: -60% -20% auto 40%;
  height: 200%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(0,162,224,.26), transparent 68%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(2.125rem, 5.5vw, 3.75rem); max-width: 16em; margin-bottom: .4em; }
.page-hero p {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: rgba(255,255,255,.82);
  max-width: 56ch;
}

/* ── Long-form text ───────────────────────────────────────────────────── */
.prose { max-width: 40rem; }
.prose h2 { font-size: clamp(1.625rem, 3.2vw, 2.125rem); margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; margin-top: 2rem; }
.prose p, .prose li { color: var(--slate); }
.prose strong { color: var(--ink); }
.prose ul { padding-left: 1.15rem; display: grid; gap: .6rem; }

.lead { font-size: 1.1875rem; line-height: 1.6; color: var(--ink) !important; }

/* ── Numbered steps ───────────────────────────────────────────────────── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 2.25rem 3.75rem;
  border-left: 2px solid var(--line);
  margin-left: 1.125rem;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: -1.125rem; top: -.15rem;
  width: 2.25rem; height: 2.25rem;
  display: grid; place-items: center;
  background: var(--royal); color: #fff;
  border-radius: 50%;
  font-size: .75rem; font-weight: 800; letter-spacing: .04em;
}
.steps h3 { font-size: 1.125rem; margin-bottom: .35em; }
.steps p { color: var(--slate); font-size: .9375rem; margin: 0; }

/* ── Rule tiles (the Four D's etc.) ───────────────────────────────────── */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 880px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .tiles { grid-template-columns: 1fr; } }
.tile {
  background: var(--sand);
  border-radius: var(--r-md);
  padding: 1.5rem;
}
.tile-mark {
  font-weight: 800; font-stretch: 76%;
  font-size: 2.5rem; line-height: 1;
  color: var(--cranberry);
  margin-bottom: .6rem;
}
.tile h3 { font-size: 1.0625rem; margin-bottom: .3em; }
.tile p { font-size: .875rem; color: var(--slate); margin: 0; }

/* ── Split panels ─────────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.5rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.panel {
  background: var(--sand);
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
}
.panel-royal { background: var(--royal); color: #fff; }
.panel-royal h2, .panel-royal h3 { color: #fff; }
.panel-royal p, .panel-royal li { color: rgba(255,255,255,.85); }
.panel h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.panel-tag {
  display: inline-block;
  font-size: .6875rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-dk);
  margin-bottom: 1rem;
}
.panel-royal .panel-tag { color: var(--gold); }

/* ── Callout ──────────────────────────────────────────────────────────── */
.callout {
  background: var(--sand);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}
.callout h3 { font-size: 1.0625rem; margin-bottom: .35em; }
.callout p { font-size: .9375rem; color: var(--slate); margin: 0; }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  padding: 1.25rem 2rem 1.25rem 0;
  font-weight: 700;
  font-size: 1.0625rem;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: .25rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--azure);
}
.faq details[open] summary::after { content: "–"; }
.faq details > p { color: var(--slate); font-size: .9375rem; padding-bottom: 1.5rem; max-width: 60ch; }

/* ── Contact routes ───────────────────────────────────────────────────── */
.routes { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.25rem; }
@media (max-width: 760px) { .routes { grid-template-columns: 1fr; } }
.route {
  background: var(--sand);
  border-radius: var(--r-md);
  padding: 1.75rem;
}
.route h3 { font-size: 1.125rem; margin-bottom: .4em; }
.route p { font-size: .9375rem; color: var(--slate); margin-bottom: .9rem; }
.route .who {
  font-size: .6875rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--azure);
  margin-bottom: .75rem;
}
.route-urgent { background: #FFF1F5; }
.route-urgent .who { color: var(--cranberry); }
