/* TogoBridge shared styles */

:root {
  /* Palette */
  --navy-900: #071727;
  --navy-800: #0B2239;
  --navy-700: #132F4C;
  --blue-600: #0068A5;
  --blue-500: #1E6FA8;
  --sky-400: #3BACDA;
  --sky-300: #4FB6E8;
  --gold-400: #F2C14E;
  --gold-100: #FDE1A7;
  --surface: #F6F7F8;
  --surface-tint: #EDF3F7;
  --surface-tint-2: #EEF5FB;
  --border: #E3EAF2;
  --input-border: #C9D5E2;
  --text-body: #404952;
  --text-muted: #64748B;
  --error: #B42318;
  --white: #FFFFFF;

  /* Tokens */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: .5rem;
  --radius-card: .75rem;
  --nav-h: 64px;
  --container: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --focus: 0 0 0 3px var(--white), 0 0 0 6px var(--sky-400);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--navy-900); line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
a { color: var(--blue-600); }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { display: block; }
address { font-style: normal; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--white); color: var(--navy-900); padding: 10px 16px;
  border-radius: var(--radius); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Focus */
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--sky-400); outline-offset: 3px; border-radius: 4px; }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }

/* Line icons */
.icon {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 32px; border-radius: var(--radius);
  font: 600 1rem/1.2 var(--font); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
}
.btn .icon { width: 18px; height: 18px; }

.btn--primary { background: var(--blue-600); color: var(--white); }
.btn--primary:hover { background: var(--blue-500); box-shadow: 0 8px 24px -6px rgba(30, 111, 168, .55); }

.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .25); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .4); }

.btn--nav {
  background: var(--white); color: var(--navy-900);
  padding: 9px 16px; font-size: .9375rem; gap: 8px;
}
.btn--nav .icon { width: 16px; height: 16px; }
.btn--nav:hover { background: var(--surface-tint); }

/* ---------- Brand ---------- */
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--white); text-decoration: none;
  font-weight: 700; font-size: 1.3125rem; letter-spacing: -.02em;
}
.brand__mark { width: 30px; height: 30px; color: var(--white); }

/* ---------- Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy-800);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.nav { position: relative; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.nav__menu { display: flex; align-items: center; gap: 32px; flex: 1; }
.nav__links { display: flex; gap: 28px; margin: 0 auto; }
.nav__links a {
  color: rgba(255, 255, 255, .8); text-decoration: none; font-size: .9375rem; font-weight: 500;
  transition: color .18s ease;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--sky-300); }

.nav__toggle {
  display: none; width: 44px; height: 44px; border-radius: var(--radius);
  background: transparent; border: 1px solid rgba(255, 255, 255, .2); color: var(--white);
  align-items: center; justify-content: center; cursor: pointer;
}
.nav__toggle .icon { width: 22px; height: 22px; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-open { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: inline; }

/* ---------- Hero ---------- */
.hero, .page-hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(ellipse 60% 55% at 78% 30%, rgba(59, 172, 218, .28), transparent 70%),
    radial-gradient(ellipse 50% 50% at 92% 85%, rgba(30, 111, 168, .35), transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 100%, rgba(0, 104, 165, .25), transparent 70%),
    linear-gradient(100deg, var(--navy-900) 0%, var(--navy-800) 45%, var(--navy-700) 100%);
}
.hero {
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  display: flex; align-items: center;
}
.hero__arcs {
  position: absolute; inset: 0; width: 100%; height: 100%;
  color: var(--sky-300); opacity: .22; pointer-events: none;
}
.hero__inner { position: relative; padding-top: 96px; padding-bottom: 96px; }
.hero__content { max-width: 640px; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-100); color: var(--navy-900);
  font-size: .8125rem; font-weight: 600;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 28px;
}
.badge .icon { width: 14px; height: 14px; }

.hero__title {
  color: var(--white);
  font-size: clamp(2.375rem, 5.2vw, 4rem);
  font-weight: 700; letter-spacing: -.03em; line-height: 1.06;
}
.hero__title span { display: block; }
.accent { color: var(--sky-300); }

.hero__sub {
  margin-top: 24px; max-width: 560px;
  color: rgba(255, 255, 255, .8); font-size: 1.125rem; line-height: 1.7;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

/* Inner page hero */
.page-hero__inner { position: relative; padding-top: 88px; padding-bottom: 80px; max-width: var(--container); }
.page-hero h1 {
  color: var(--white); max-width: 760px;
  font-size: clamp(2.125rem, 4.4vw, 3.25rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.08;
}
.page-hero p:not(.overline):not(.badge) { margin-top: 20px; max-width: 620px; color: rgba(255, 255, 255, .8); font-size: 1.125rem; }

/* Neutral strip under the hero */
.strip { background: var(--white); border-bottom: 1px solid var(--border); }
.strip__list { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding: 22px 0; }
.strip__list li { display: flex; align-items: center; gap: 10px; color: var(--navy-900); font-weight: 600; font-size: .9375rem; }
.strip__list .icon { width: 20px; height: 20px; color: var(--blue-600); }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section--surface { background: var(--surface); }
.section--tight { padding: 80px 0; }

.section-head { max-width: 640px; margin: 0 auto 64px; text-align: center; }
.section-head h2, .panel h2, .cta h2, .prose-head h2 { font-size: clamp(1.875rem, 3.4vw, 2.5rem); font-weight: 700; }
.section-head p:last-child:not(.overline) { margin-top: 16px; color: var(--text-muted); font-size: 1.0625rem; }

.overline {
  font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em;
  color: var(--blue-600); margin-bottom: 12px;
}
.overline--light { color: var(--sky-300); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 32px 28px;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: 0 16px 40px -16px rgba(7, 23, 39, .18); border-color: #d5e0eb; transform: translateY(-2px); }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--surface-tint-2); color: var(--blue-600); margin-bottom: 24px;
}
.card h3 { font-size: 1.1875rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 1rem; line-height: 1.65; }

/* Steps */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.steps::before {
  content: ""; position: absolute; top: 28px; left: calc(100% / 6); right: calc(100% / 6);
  height: 1px; background: var(--border);
}
.step { position: relative; text-align: center; }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 10px;
  background: var(--navy-900); color: var(--white);
  font-size: 1.25rem; font-weight: 700; margin-bottom: 24px;
  box-shadow: 0 0 0 8px var(--white);
}
.section--surface .step__num { box-shadow: 0 0 0 8px var(--surface); }
.step h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; }
.step p { color: var(--text-muted); max-width: 320px; margin: 0 auto; }

/* Two-column tinted panel */
.panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  background: var(--surface-tint); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 56px;
}
.panel h2 { margin-bottom: 16px; }
.panel__text > p:not(.overline) { max-width: 520px; }
.panel__text .btn { margin-top: 28px; }

.checklist { display: grid; gap: 14px; }
.checklist li {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 16px 18px; color: var(--navy-900); font-weight: 500;
}
.checklist .icon {
  width: 28px; height: 28px; padding: 5px; border-radius: 8px;
  background: var(--surface-tint-2); color: var(--blue-600);
}

/* Provider band */
.provider-band {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  border: 1px solid var(--border); border-radius: var(--radius-card); padding: 40px 48px; background: var(--white);
}
.provider-band h2 { font-size: 1.625rem; font-weight: 700; margin-bottom: 8px; }
.provider-band p:not(.overline) { max-width: 620px; color: var(--text-muted); }
.provider-band .btn { color: var(--white); flex: none; }
.provider-band__actions { display: flex; flex-direction: column; gap: 12px; flex: none; }
.provider-band .btn--outline { background: var(--white); color: var(--blue-600); border-color: var(--blue-600); }
.provider-band .btn--outline:hover { background: var(--surface-tint); }

/* SMS notice */
.notice {
  margin-top: 16px; padding: 12px 16px; border-radius: var(--radius);
  background: var(--surface-tint-2); border-left: 3px solid var(--blue-600);
  color: var(--navy-900); font-size: .9375rem;
}
.provider-band p.notice { color: var(--navy-900); }
.form-card .notice { margin-bottom: 24px; }

/* CTA band */
.cta {
  padding: 104px 0; text-align: center; color: rgba(255, 255, 255, .8);
  background:
    radial-gradient(ellipse 50% 80% at 50% 0%, rgba(59, 172, 218, .18), transparent 70%),
    var(--navy-800);
}
.cta__inner { max-width: 720px; }
.cta h2 { color: var(--white); }
.cta__inner > p:not(.overline) { margin-top: 16px; font-size: 1.125rem; }
.cta__actions { margin-top: 36px; display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }

/* ---------- Prose (About, policies) ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; font-weight: 700; margin: 48px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 14px; }
.prose ul { list-style: disc; padding-left: 1.4em; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--blue-600); }
.prose strong { color: var(--navy-900); }
.prose .note {
  margin-top: 16px; padding: 16px 20px; border-radius: var(--radius);
  background: var(--surface-tint-2); border-left: 3px solid var(--blue-600); color: var(--navy-900);
}
.effective { color: var(--text-muted); font-size: .9375rem; margin-bottom: 32px !important; }

.contact-block {
  margin-top: 14px; padding: 20px 24px; border: 1px solid var(--border); border-radius: var(--radius-card);
  background: var(--surface); line-height: 1.8;
}

/* ---------- Contact + forms ---------- */
.split { display: grid; grid-template-columns: 1fr 1.35fr; gap: 48px; align-items: start; }

.info-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 32px;
}
.info-card h2 { font-size: 1.375rem; font-weight: 700; margin-bottom: 20px; }
.info-card + .info-card { margin-top: 24px; }
.info-list { display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .icon {
  width: 36px; height: 36px; padding: 8px; border-radius: 10px;
  background: var(--surface-tint-2); color: var(--blue-600);
}
.info-list strong { display: block; color: var(--navy-900); font-size: .9375rem; }
.info-list a { word-break: break-word; }
.muted { color: var(--text-muted); font-size: .9375rem; }
.info-card .muted { margin-top: 20px; }

.form-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 40px; box-shadow: 0 16px 40px -24px rgba(7, 23, 39, .22);
}
.form-card h2 { font-size: 1.625rem; font-weight: 700; }
.form-card__intro { margin-top: 10px; color: var(--text-muted); }

.form { display: grid; gap: 20px; margin-top: 28px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { color: var(--navy-900); font-weight: 600; font-size: .9375rem; }
.field .optional { color: var(--text-muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: 400 1rem/1.4 var(--font); color: var(--navy-900);
  background: var(--white); border: 1px solid var(--input-border); border-radius: var(--radius);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(0, 104, 165, .18);
}

.consent {
  display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start;
  padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
}
.consent input {
  width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--blue-600); cursor: pointer;
}
.consent label { font-size: .9375rem; line-height: 1.55; color: var(--text-body); cursor: pointer; }
.consent.is-invalid { border-color: var(--error); background: #FEF3F2; }

.field-error { color: var(--error); font-size: .9375rem; font-weight: 600; }

.form .btn { width: 100%; }

.form-status {
  padding: 14px 16px; border-radius: var(--radius);
  background: var(--surface-tint-2); border: 1px solid #CFE3F2; color: var(--navy-900); font-weight: 500;
}

.form-note { color: var(--text-muted); font-size: .875rem; }

.examples { display: grid; gap: 12px; margin-top: 16px; }
.examples li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--radius-card); background: var(--surface-tint-2); color: var(--navy-900); font-weight: 500;
}
.examples .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--blue-600); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .6); font-size: .9375rem; }
.footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 40px;
  padding-top: 72px; padding-bottom: 48px;
}
.footer__about { margin-top: 16px; max-width: 300px; }
.footer__title {
  color: var(--white); font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px;
}
.footer__links { display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, .6); text-decoration: none; transition: color .18s ease; }
.site-footer a:hover { color: var(--white); }
.site-footer address { line-height: 1.8; }
.site-footer address strong { color: rgba(255, 255, 255, .85); font-weight: 600; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 24px; padding-bottom: 32px; font-size: .875rem;
}
.footer__bottom p { color: rgba(255, 255, 255, .55); }
.footer__bottom .footer__sms { margin-bottom: 8px; color: rgba(255, 255, 255, .7); }

/* ---------- Motion ---------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.card { animation: fade-up .7s var(--ease) both; }
.card:nth-child(2) { animation-delay: .06s; }
.card:nth-child(3) { animation-delay: .12s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .card:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .js .nav__toggle { display: inline-flex; }
  .js .nav__menu {
    display: none;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 8px;
    background: var(--navy-800); padding: 8px 24px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 16px 32px -12px rgba(0, 0, 0, .4);
  }
  .js .nav__menu.is-open { display: flex; }
  .js .nav__links { flex-direction: column; gap: 0; margin: 0; }
  .js .nav__links a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 1rem; }
  .js .btn--nav { margin-top: 12px; padding: 14px 16px; }

  /* Without JS: keep the button; every page is linked from the footer */
  html:not(.js) .nav__links { display: none; }
  html:not(.js) .nav__menu { justify-content: flex-end; }

  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps::before { top: 28px; bottom: 28px; left: 50%; right: auto; width: 1px; height: auto; }
  .step { background: var(--white); }
  .section--surface .step { background: var(--surface); }

  .panel { grid-template-columns: 1fr; gap: 32px; padding: 40px 28px; }
  .provider-band { flex-direction: column; align-items: flex-start; padding: 32px 28px; }
  .provider-band__actions { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }
  .section--tight { padding: 48px 0; }
  .section-head { margin-bottom: 44px; }
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 28px 24px; }
  .hero__inner { padding-top: 64px; padding-bottom: 72px; }
  .hero__sub, .page-hero p:not(.overline):not(.badge) { font-size: 1.0625rem; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn, .cta__actions .btn, .provider-band .btn { width: 100%; white-space: normal; }
  .provider-band__actions { width: 100%; }
  .hero__arcs { opacity: .14; }
  .page-hero__inner { padding-top: 56px; padding-bottom: 52px; }
  .strip__list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; padding: 20px 0; }
  .strip__list li { font-size: .875rem; align-items: flex-start; }
  .cta { padding: 72px 0; }
  .form-card { padding: 28px 20px; }
  .info-card { padding: 28px 22px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; padding-top: 56px; }
}
