/* ==========================================================================
   CPB Distribution — Site Styles
   ========================================================================== */

:root {
  --navy-950: #06101f;
  --navy-900: #0b1f3a;
  --navy-800: #122a4d;
  --navy-700: #1a3a63;
  --navy-600: #234a7c;
  --gold-500: #c9972f;
  --gold-400: #dcae4d;
  --gold-300: #e8c477;
  --paper: #f7f5f0;
  --paper-dim: #ece8de;
  --ink: #10151f;
  --ink-soft: #4a5468;
  --white: #ffffff;
  --line: #dfdad0;
  --success: #2f7a4d;

  --max-w: 1180px;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(6, 16, 31, 0.06), 0 1px 1px rgba(6, 16, 31, 0.04);
  --shadow-md: 0 8px 24px rgba(6, 16, 31, 0.10);
  --shadow-lg: 0 20px 48px rgba(6, 16, 31, 0.16);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

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

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy-900);
  margin: 0 0 16px;
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 16px; color: var(--ink-soft); }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold-500);
  display: inline-block;
}

section { padding: 88px 0; }
section.tight { padding: 56px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: var(--gold-500);
  color: var(--navy-950);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--gold-400); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); transform: translateY(-1px); }

.btn-dark {
  background: var(--navy-900);
  color: var(--white);
}
.btn-dark:hover { background: var(--navy-800); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--navy-900);
}
.btn-ghost:hover { border-color: var(--navy-600); }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 240, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--navy-900);
}
.brand .mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}
.brand .sub {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--navy-800);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover { background: var(--paper-dim); }
.nav-links a.active { color: var(--gold-500); }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy-900);
  position: relative;
}
.nav-toggle::before { transform: translateY(-6px); position: absolute; }
.nav-toggle::after { transform: translateY(6px); position: absolute; }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1200px 600px at 85% -10%, rgba(201,151,47,0.25), transparent 60%), linear-gradient(180deg, var(--navy-950), var(--navy-900) 60%, var(--navy-800));
  color: var(--white);
  padding: 96px 0 84px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero .eyebrow { color: var(--gold-300); }
.hero h1 { color: var(--white); max-width: 780px; }
.hero p.lead { color: rgba(255,255,255,0.78); max-width: 620px; }
.hero-page {
  padding: 64px 0 56px;
}
.hero-page h1 { max-width: 700px; }

/* ---------- Stat strip ---------- */
.stat-strip {
  background: var(--navy-800);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 36px 0;
}
.stat {
  text-align: left;
  border-left: 2px solid var(--gold-500);
  padding-left: 16px;
}
.stat .num {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--white);
  display: block;
  letter-spacing: -0.01em;
}
.stat .label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}

/* ---------- Cards / Grid ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--navy-900);
  color: var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 0.96rem; }
.card .tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-500);
  background: rgba(201,151,47,0.12);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head.left { margin: 0 0 48px; text-align: left; }

.bg-alt { background: var(--paper-dim); }
.bg-navy { background: var(--navy-900); color: var(--white); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy p { color: rgba(255,255,255,0.75); }

/* ---------- World map ---------- */
.map-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy-950), var(--navy-900) 70%);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  max-width: 620px;
  margin: 0 auto;
}
.map-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.world-map-svg {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
}
.world-map-svg .countries path {
  fill: #263c60;
  stroke: rgba(255,255,255,0.1);
  stroke-width: 0.12;
  transition: fill 0.2s ease;
}
.world-map-svg .route {
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 0.55 0.7;
  animation: route-flow 10s linear infinite;
  cursor: pointer;
  transition: stroke-width 0.2s ease, opacity 0.2s ease;
}
.world-map-svg .route:hover { stroke-width: 0.47; opacity: 1; }
.world-map-svg .route-eu {
  stroke: var(--gold-400);
  stroke-width: 0.19;
  opacity: 0.8;
}
@keyframes route-flow {
  to { stroke-dashoffset: -50; }
}
.world-map-svg .node-eu {
  cursor: pointer;
  fill: var(--gold-400);
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.world-map-svg .node-eu:hover {
  transform: scale(2.2);
  filter: drop-shadow(0 0 1.2px var(--gold-400));
}
.world-map-svg .node-home {
  fill: var(--gold-300);
  stroke: var(--navy-950);
  stroke-width: 0.19;
  cursor: pointer;
  filter: drop-shadow(0 0 1px rgba(232,196,119,0.65));
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.2s ease;
}
.world-map-svg .node-home:hover { transform: scale(1.25); }
.world-map-svg .node-home-ring {
  fill: none;
  stroke: var(--gold-300);
  stroke-width: 0.19;
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse-ring 2.6s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.4); opacity: 0; }
}
.world-map-svg .arrow-fill-eu { fill: var(--gold-400); }
@media (prefers-reduced-motion: reduce) {
  .world-map-svg .route, .world-map-svg .node-home-ring { animation: none; }
}
.map-caption {
  position: relative;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  margin-top: 14px;
  text-align: center;
}
.map-header {
  position: relative;
  margin: 28px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 32px;
  border-left: 2px solid var(--line);
}
.timeline-item {
  position: relative;
  padding-bottom: 40px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -39px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold-500);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 2px var(--gold-500);
}
.timeline-item .date {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 6px;
  display: block;
}

/* ---------- Model / flow ---------- */
.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  align-items: stretch;
}
.flow-step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
}
.flow-step .step-num {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold-500);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

/* ---------- List check ---------- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  color: var(--ink-soft);
}
.check-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(201,151,47,0.15);
  color: var(--gold-500);
  font-weight: 800;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* ---------- Quote / Callout ---------- */
.callout {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  border-radius: 16px;
  padding: 48px;
  text-align: center;
}
.callout h2 { color: var(--white); }
.callout p { color: rgba(255,255,255,0.78); max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy-900);
  margin-bottom: 6px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201,151,47,0.18);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 10px; }
#form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  display: none;
}
#form-status.show { display: block; }
#form-status.ok { background: rgba(47,122,77,0.12); color: var(--success); }

/* ---------- Contact info cards ---------- */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.info-list li:last-child { border-bottom: none; }
.info-list .ic {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--navy-900);
  color: var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-list strong { display: block; color: var(--navy-900); font-size: 0.92rem; }
.info-list span { color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: rgba(255,255,255,0.65);
  padding: 56px 0 28px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--gold-400); }
.footer-brand .brand { color: var(--white); margin-bottom: 12px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Badges on hero (page-specific) ---------- */
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-950);
  background: var(--gold-400);
  padding: 6px 12px;
  border-radius: 999px;
}
.badge.outline {
  background: transparent;
  color: var(--gold-300);
  border: 1px solid rgba(220,174,77,0.5);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-2, .flow, .footer-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { gap: 28px; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
    gap: 4px;
  }
  section { padding: 60px 0; }
  .callout { padding: 32px 22px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
