/* ============================================================
   Aferion — Africa Health & Development Platform
   Palette (healthcare): deep teal / health green / aqua / mist
   + Aferion navy (#002263) from the wordmark
   Type: Jost (display, matches the geometric logotype) + Inter
   NOTE: variable names kept from v1 for stability —
   green-* = teal family, terracotta = health green (action),
   gold = aqua (highlight), sand = mist background.
   ============================================================ */

:root {
  --green-900: #06333e;
  --green-800: #0a4d5c;
  --green-700: #0e6275;
  --green-100: #dff0f2;
  --terracotta: #0e9f6e;
  --terracotta-dark: #0b8259;
  --gold: #58bfcc;
  --navy: #002263;
  --sand: #f4f9fa;
  --sand-deep: #e9f2f4;
  --ink: #1e2b2e;
  --ink-soft: #48595d;
  --line: #d8e5e8;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(8, 60, 70, 0.08);
  --font-display: "Jost", "Futura", "Century Gothic", -apple-system, sans-serif;
  --font-text: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-text);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--terracotta); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- typography ---------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  color: var(--green-800);
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.22rem; line-height: 1.35; }

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 14px;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46em;
}

.section-intro { max-width: 46em; margin-bottom: 40px; }
.section-intro p { color: var(--ink-soft); margin-top: 12px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 249, 250, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none !important;
}

.brand-mark { width: 44px; height: auto; flex: none; }

.brand-name {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.22em;
  line-height: 1;
  text-transform: uppercase;
}

.brand-name span { color: var(--terracotta); }

.mark-invert { filter: brightness(0) invert(1); }

.main-nav { display: flex; align-items: center; gap: 26px; }

.main-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}

.main-nav a:hover, .main-nav a.active { color: var(--terracotta); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--green-800);
  margin: 5px 0;
  border-radius: 2px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
  border: none;
  font-family: var(--font-text);
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(120deg, #10a874, #0b8259);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(14, 159, 110, 0.32);
}

.btn-primary:hover {
  background: linear-gradient(120deg, #0e9f6e, #0a7350);
  box-shadow: 0 10px 24px rgba(14, 159, 110, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--green-800);
  border: 1.5px solid var(--green-800);
}

.btn-secondary:hover { background: var(--green-100); }

.btn-light {
  background: var(--white);
  color: var(--green-800);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  background: var(--green-800);
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 500px at 85% -10%, rgba(88, 191, 204, 0.22), transparent 60%),
    radial-gradient(ellipse 700px 420px at -10% 110%, rgba(14, 159, 110, 0.25), transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  padding: 96px 24px 80px;
  max-width: 1120px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-visual { position: relative; }

.orbit-ring {
  position: absolute;
  width: 230px;
  height: 230px;
  border: 2px dashed rgba(88, 191, 204, 0.55);
  border-radius: 50%;
  top: -42px;
  right: -42px;
  z-index: 0;
}

.hero-visual .photo-card {
  position: relative;
  z-index: 1;
  aspect-ratio: 5 / 6;
}

.hero-visual .photo-card img { object-position: center bottom; }

.float-chip {
  position: absolute;
  background: var(--white);
  color: var(--green-800);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 11px 19px;
  box-shadow: 0 12px 30px rgba(3, 30, 38, 0.35);
  z-index: 2;
  white-space: nowrap;
}

.float-chip.chip-a { bottom: 30px; left: -34px; }

.float-chip.chip-b {
  top: 26px;
  right: -18px;
  background: var(--terracotta);
  color: var(--white);
}

.hero h1 { color: var(--white); max-width: 15em; }

.hero .kicker { color: var(--gold); }

.hero .lead { color: rgba(255, 255, 255, 0.85); margin-top: 22px; }

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

.hero-triad {
  margin-top: 26px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-punch {
  margin-top: 26px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.02em;
}

/* ---------- photo cards & split layouts ---------- */

.photo-card {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(3, 30, 38, 0.4);
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 52px;
  align-items: center;
}

.split .photo-card { aspect-ratio: 4 / 3; }

/* ---------- process flow ---------- */

.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 6px;
}

.flow .node {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--green-800);
  white-space: nowrap;
}

.flow .arrow { color: var(--terracotta); font-weight: 700; padding: 0 2px; }

.process { max-width: 780px; }

.process-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0 24px;
  position: relative;
  padding-bottom: 40px;
}

.process-step::before {
  content: "";
  position: absolute;
  left: 31px;
  top: 64px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.process-step:last-child::before { display: none; }
.process-step:last-child { padding-bottom: 0; }

.process-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green-800);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.process-step.accent .process-num { background: var(--terracotta); }

.process-step h3 { margin-top: 8px; }
.process-step p { color: var(--ink-soft); margin-top: 6px; font-size: 0.97rem; }
.process-step .tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
}

/* ---------- funder chips ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 10px; }

.chip {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--green-800);
}

.section.dark .chip {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--white);
}

/* ---------- checklist ---------- */

.checks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 30px; }

.checks li {
  padding-left: 30px;
  position: relative;
  font-weight: 500;
}

.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--terracotta);
  font-weight: 800;
  font-size: 1.05rem;
}

.section.dark .checks li::before { color: var(--gold); }

/* ---------- snapshot band ---------- */

.snapshot-card {
  background: var(--white);
  border: 2px solid var(--terracotta);
  border-radius: 20px;
  padding: 44px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  box-shadow: 0 20px 50px rgba(14, 159, 110, 0.12);
}

.snapshot-card .badge {
  display: inline-block;
  background: var(--terracotta);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 16px;
}

/* ---------- experience cards ---------- */

.xp-card .xp-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }

.xp-card .xp-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-700);
  background: var(--green-100);
  border-radius: 6px;
  padding: 4px 10px;
}

/* ---------- service accordions (pillars) ---------- */

.pillar { padding: 44px 0; border-bottom: 1px solid var(--line); }
.pillar:last-of-type { border-bottom: none; }

.pillar-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 8px; }

.pillar-head .pillar-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}

.pillar > p { color: var(--ink-soft); max-width: 46em; margin-bottom: 22px; }

details.service {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}

details.service summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--green-800);
}

details.service summary::-webkit-details-marker { display: none; }

details.service summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.5rem;
  color: var(--terracotta);
  font-weight: 500;
  transition: transform 0.2s ease;
}

details.service[open] summary::after { transform: rotate(45deg); }

details.service .service-body { padding: 4px 24px 26px; }
details.service .service-body p.sub { color: var(--ink-soft); margin-bottom: 14px; }

details.service ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }

details.service li {
  padding-left: 26px;
  position: relative;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

details.service li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--gold);
}

details.service .note {
  margin-top: 18px;
  padding: 14px 18px;
  background: var(--sand-deep);
  border-left: 3px solid var(--terracotta);
  border-radius: 0 10px 10px 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.hero-band {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.14);
}

.hero-band .container {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 10px 26px;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero-band strong {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* subtle mudcloth-inspired divider */
.pattern-strip {
  height: 10px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--terracotta) 0 26px,
    var(--gold) 26px 34px,
    var(--green-800) 34px 60px,
    var(--gold) 60px 68px
  );
}

/* ---------- sections ---------- */

.section { padding: 84px 0; }
.section.tight { padding: 60px 0; }
.section.alt {
  background-color: var(--sand-deep);
  background-image: radial-gradient(rgba(10, 77, 92, 0.055) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}
.section.dark { background: var(--green-800); color: var(--white); }
.section.dark h2, .section.dark h3 { color: var(--white); }
.section.dark .kicker { color: var(--gold); }
.section.dark p { color: rgba(255, 255, 255, 0.82); }

/* ---------- cards ---------- */

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--terracotta), var(--gold));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.card:hover::before { opacity: 1; }

.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--green-100), #d5f2e6);
  box-shadow: inset 0 0 0 1px rgba(10, 77, 92, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.card p { color: var(--ink-soft); font-size: 0.95rem; }

.card a.more { font-weight: 600; font-size: 0.9rem; margin-top: auto; }

.card.link-card { transition: transform 0.15s ease, box-shadow 0.15s ease; }
.card.link-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(8,60,70,0.12); }

/* capability strip */
.capabilities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.capability {
  border-left: 3px solid var(--gold);
  padding-left: 20px;
}

.capability h3 { margin-bottom: 6px; }
.capability p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- steps (how we work) ---------- */

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }

.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--terracotta);
  display: block;
  margin-bottom: 8px;
}

.step h3 { font-size: 1.02rem; margin-bottom: 6px; }
.step p { font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- country cards ---------- */

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

.country {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}

.country .flag { font-size: 2.1rem; line-height: 1; margin-bottom: 10px; }
.country h3 { font-size: 1.05rem; }
.country p { font-size: 0.85rem; color: var(--ink-soft); margin-top: 6px; }

/* ---------- service detail blocks ---------- */

.service-block {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.service-block:last-of-type { border-bottom: none; }

.service-block .icon-lg {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  background: var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 16px;
}

.service-block aside p { color: var(--ink-soft); font-size: 0.93rem; margin-top: 10px; }

.service-block ul { list-style: none; display: grid; gap: 10px; margin-top: 8px; }
.service-block ul.two-col { grid-template-columns: 1fr 1fr; gap: 10px 28px; }

.service-block li {
  padding-left: 26px;
  position: relative;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.service-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--gold);
}

.service-block .note {
  margin-top: 18px;
  padding: 14px 18px;
  background: var(--sand-deep);
  border-left: 3px solid var(--terracotta);
  border-radius: 0 10px 10px 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---------- commitments / values ---------- */

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

.commitment {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 20px 18px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white);
}

.commitment em {
  display: block;
  font-style: normal;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

/* ---------- CTA band ---------- */

.cta-band { background: var(--terracotta); color: var(--white); }

.cta-band .container {
  padding: 64px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.cta-band h2 { color: var(--white); max-width: 18em; }
.cta-band p { color: rgba(255, 255, 255, 0.88); margin-top: 8px; max-width: 36em; }

/* ---------- audience blocks (partner page) ---------- */

.audience {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.audience .card h3 { display: flex; align-items: center; gap: 10px; }

.audience .card ul { list-style: none; margin-top: 10px; display: grid; gap: 8px; }

.audience .card li {
  padding-left: 22px;
  position: relative;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.audience .card li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--terracotta);
  font-weight: 700;
}

/* ---------- partner seats (interactive tabs) ---------- */

.seat-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }

.seat-tab {
  border: 1.5px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--green-800);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: var(--font-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.seat-tab:hover { transform: translateY(-2px); border-color: var(--terracotta); }

.seat-tab.active {
  background: linear-gradient(120deg, #10a874, #0b8259);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(14, 159, 110, 0.35);
}

.seat-panel { display: none; }

.seat-panel.active {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: var(--white);
  animation: panelIn 0.45s ease both;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.seat-intro {
  background: linear-gradient(160deg, var(--green-800), var(--green-900) 75%);
  color: var(--white);
  padding: 44px 40px;
  position: relative;
  overflow: hidden;
}

.seat-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}

.seat-intro > * { position: relative; z-index: 1; }
.seat-intro .seat-icon { font-size: 2.6rem; margin-bottom: 14px; display: block; }
.seat-intro h3 { color: var(--white); font-size: 1.5rem; margin-bottom: 10px; }
.seat-intro p { color: rgba(255, 255, 255, 0.85); font-size: 0.98rem; }
.seat-intro .btn { margin-top: 24px; }

.seat-offers { padding: 40px 42px; }

.seat-offers h4 {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 16px;
  font-weight: 700;
}

.seat-offers ul { list-style: none; display: grid; gap: 12px; }

.seat-offers li {
  padding-left: 26px;
  position: relative;
  color: var(--ink-soft);
  opacity: 0;
  transform: translateX(14px);
}

.seat-offers li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--terracotta);
  font-weight: 700;
}

.seat-panel.active .seat-offers li { animation: offerIn 0.4s ease forwards; }
.seat-panel.active .seat-offers li:nth-child(1) { animation-delay: 0.08s; }
.seat-panel.active .seat-offers li:nth-child(2) { animation-delay: 0.16s; }
.seat-panel.active .seat-offers li:nth-child(3) { animation-delay: 0.24s; }
.seat-panel.active .seat-offers li:nth-child(4) { animation-delay: 0.32s; }
.seat-panel.active .seat-offers li:nth-child(5) { animation-delay: 0.4s; }
.seat-panel.active .seat-offers li:nth-child(6) { animation-delay: 0.48s; }

@keyframes offerIn { to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .seat-panel.active { grid-template-columns: 1fr; }
  .seat-offers { padding: 30px 26px; }
  .seat-intro { padding: 34px 26px; }
}

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 44px; align-items: start; }

.contact-info .item { margin-bottom: 26px; }
.contact-info .item h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-info .item p { color: var(--ink-soft); font-size: 0.96rem; }

.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.form label { font-weight: 600; font-size: 0.88rem; display: block; margin-bottom: 6px; }

.form input, .form select, .form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-text);
  font-size: 0.95rem;
  background: var(--sand);
  color: var(--ink);
}

.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  background: var(--white);
}

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

/* ---------- footer ---------- */

.site-footer {
  background: var(--green-900);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
}

.site-footer .container {
  padding: 60px 24px 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer .brand-name { color: var(--white); font-size: 1.4rem; }

.site-footer h4 {
  color: var(--gold);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  margin-bottom: 14px;
}

.site-footer ul { list-style: none; display: grid; gap: 9px; }
.site-footer a { color: rgba(255, 255, 255, 0.75); }
.site-footer a:hover { color: var(--white); }

.footer-note {
  padding-top: 24px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* ---------- page hero (inner pages) ---------- */

.page-hero {
  background: var(--green-800);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 700px 380px at 90% -20%, rgba(88, 191, 204, 0.2), transparent 60%);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  pointer-events: none;
}

.page-hero.has-photo {
  background-size: cover;
  background-position: center;
}

.page-hero.has-photo::before { display: none; }

.page-hero .container { position: relative; z-index: 1; padding: 78px 24px; }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4.5vw, 2.9rem); }
.page-hero .lead { color: rgba(255, 255, 255, 0.85); margin-top: 16px; }
.page-hero .kicker { color: var(--gold); }

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--sand);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px 24px;
    gap: 16px;
  }

  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
}

@media (max-width: 960px) {
  .grid.cols-4, .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .snapshot-card { grid-template-columns: 1fr; padding: 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 460px; margin: 0 auto; width: 100%; }
  .float-chip.chip-a { left: 12px; }
  .float-chip.chip-b { right: 8px; }
  .orbit-ring { right: -16px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .country-grid { grid-template-columns: repeat(3, 1fr); }
  .commitments { grid-template-columns: repeat(2, 1fr); }
  .capabilities { grid-template-columns: 1fr; gap: 26px; }
  .service-block { grid-template-columns: 1fr; gap: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .grid.cols-4, .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
  details.service ul { grid-template-columns: 1fr; }
  .process-step { grid-template-columns: 48px 1fr; gap: 0 16px; }
  .process-num { width: 48px; height: 48px; font-size: 1.05rem; }
  .process-step::before { left: 23px; top: 48px; }
  .steps { grid-template-columns: 1fr; }
  .country-grid { grid-template-columns: repeat(2, 1fr); }
  .commitments { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .service-block ul.two-col { grid-template-columns: 1fr; }
  .hero .container { padding: 68px 24px 56px; }
}
