/* Taalof Bridge — website styles */

:root {
  --navy: #012C5D;
  --navy-deep: #011F42;
  --gold: #D0A137;
  --gold-hover: #DDB352;
  --gold-ink: #7D5E14;
  --paper: #F4F6F8;
  --white: #FFFFFF;
  --ink: #0F1E33;
  --text: #24364D;
  --steel: #4F5F72;
  --line: #DCE2E9;
  --line-strong: #C9D2DC;
  --on-navy: #C9D4E2;
  --on-navy-strong: #E6ECF3;
  --display: "Lexend", "Helvetica Neue", Helvetica, sans-serif;
  --body: "IBM Plex Sans", "Helvetica Neue", Helvetica, sans-serif;
  --header-h: 82px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--navy); margin: 0; }
p { margin: 0; }
a { color: var(--navy); }
a:hover { color: var(--gold-ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

main > section[id] { scroll-margin-top: var(--header-h); }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 640px) { .wrap { padding: 0 22px; } }

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

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px;
  font-family: var(--body); font-weight: 600; font-size: 16px; line-height: 20px;
  text-decoration: none; text-align: center;
  border: 1.5px solid transparent; border-radius: 2px; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-hover); color: var(--navy); }
.btn-ghost { color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { color: var(--white); border-color: var(--white); background: rgba(255,255,255,.06); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); color: var(--white); }
.btn-navy:disabled { opacity: .6; cursor: progress; }
.btn-outline { color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.header-inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; }
.brand img { display: block; height: 38px; width: auto; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 32px; }
.site-nav a { color: var(--on-navy-strong); text-decoration: none; font-weight: 500; font-size: 15px; }
.site-nav a:hover { color: var(--gold); }
.site-nav .btn, .site-nav .btn:hover { color: var(--navy); font-weight: 600; }

.menu-toggle { display: none; }

@media (max-width: 900px) {
  .js .menu-toggle {
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 44px; padding: 0 14px;
    background: transparent; color: var(--white);
    border: 1px solid rgba(255,255,255,.4); border-radius: 2px;
    font: 600 15px var(--body); cursor: pointer;
  }
  .site-nav { width: 100%; padding-bottom: 16px; }
  .js .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    width: auto; padding: 8px 40px 24px;
    background: var(--navy); border-top: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 16px 24px rgba(1,20,43,.35);
  }
  .js .site-nav.is-open { display: block; }
  .header-inner { flex-wrap: wrap; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 17px; }
  .site-nav li:last-child a { display: flex; margin-top: 16px; border-bottom: 0; }
}
@media (max-width: 640px) {
  .js .site-nav { padding: 8px 22px 24px; }
  .brand img { height: 32px; }
}

/* ---------- Floor rail ---------- */
.floor-rail {
  position: fixed; right: 20px; top: 50%; transform: translateY(-50%); z-index: 40;
  padding: 8px; border-radius: 32px;
  background: rgba(1,31,66,.94); border: 1px solid rgba(255,255,255,.12);
}
.floor-rail ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.floor-rail a {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  font: 500 14px var(--display); color: var(--on-navy-strong); text-decoration: none;
  border: 1px solid rgba(255,255,255,.3);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.floor-rail a:hover { border-color: var(--gold); color: var(--gold); }
.floor-rail a[aria-current="true"] { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.floor-rail a::before {
  content: attr(data-label);
  position: absolute; right: calc(100% + 14px); top: 50%; transform: translateY(-50%);
  white-space: nowrap; padding: 6px 10px; border-radius: 2px;
  background: var(--navy-deep); color: var(--white); font: 500 13px var(--body);
  opacity: 0; pointer-events: none; transition: opacity .15s ease;
}
.floor-rail a:hover::before, .floor-rail a:focus-visible::before { opacity: 1; }
@media (max-width: 1359px) { .floor-rail { display: none; } }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--white); overflow: hidden; }
.hero-inner { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 40px 56px; padding-top: 88px; }
.hero-copy { flex: 1 1 520px; min-width: 0; padding-bottom: 96px; }
.hero h1 {
  color: var(--white); font-weight: 600;
  font-size: clamp(42px, 5.2vw, 72px); line-height: 1.03; letter-spacing: -0.025em;
  max-width: 620px; margin-bottom: 28px;
}
.hero-lead { font-size: 19px; line-height: 1.6; color: var(--on-navy); max-width: 560px; margin-bottom: 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 64px; }
.supply-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 0; font-size: 15px; color: var(--on-navy-strong); }
.supply-list li { padding-right: 20px; margin-right: 20px; border-right: 1px solid rgba(208,161,55,.7); }
.supply-list li:last-child { padding-right: 0; margin-right: 0; border-right: 0; }
.hero-art { flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; }
.hero-art svg { display: block; width: 100%; max-width: 500px; height: auto; }

.car { animation: car-rise 2.6s cubic-bezier(.65,0,.25,1) .3s both; transform-box: fill-box; }
@keyframes car-rise { from { transform: translateY(200px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .car { animation: none; } }

@media (max-width: 640px) {
  .hero-inner { padding-top: 56px; }
  .hero-copy { padding-bottom: 32px; }
  .hero-lead { font-size: 17px; }
  .hero-actions { margin-bottom: 40px; }
  .hero-art svg { max-width: 320px; }
  .supply-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
  .supply-list li, .supply-list li:last-child { margin: 0; padding: 0 0 0 12px; border-right: 0; border-left: 2px solid rgba(208,161,55,.7); }
}

/* ---------- Stats ---------- */
.stats { background: var(--white); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 40px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num { font: 600 52px/1 var(--display); color: var(--navy); margin-bottom: 12px; }
.stat-label { font-size: 15px; line-height: 1.5; color: var(--steel); max-width: 220px; }
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .stat { padding: 28px 16px; }
  .stat:nth-child(odd) { padding-left: 0; }
  .stat-num { font-size: 40px; }
}

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section-white { background: var(--white); border-top: 1px solid var(--line); }
.section h2 { font-weight: 600; font-size: clamp(30px, 3vw, 42px); line-height: 1.15; letter-spacing: -0.015em; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p { margin-top: 16px; color: var(--text); }
@media (max-width: 640px) { .section { padding: 72px 0; } }

/* About */
.about-grid { display: flex; flex-wrap: wrap; gap: 32px 80px; }
.about-grid h2 { flex: 1 1 360px; min-width: 0; }
.about-body { flex: 1.4 1 480px; min-width: 0; max-width: 680px; color: var(--text); }
.about-body p + p { margin-top: 20px; }
.vm { margin-top: 72px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.vm > div { padding: 32px 48px 0 0; }
.vm > div + div { padding: 32px 0 0 48px; border-left: 1px solid var(--line-strong); }
.vm h3 { font-weight: 500; font-size: 20px; color: var(--gold-ink); margin-bottom: 12px; }
.vm p { color: var(--text); }
@media (max-width: 760px) {
  .vm { grid-template-columns: 1fr; }
  .vm > div { padding: 32px 0 0; }
  .vm > div + div { padding: 32px 0 0; margin-top: 32px; border-left: 0; border-top: 1px solid var(--line-strong); }
}

/* Products */
.tablist { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line-strong); }
.tab {
  font: 500 16px/20px var(--display); color: var(--navy);
  padding: 16px 26px; min-height: 52px;
  background: transparent; border: 0; border-radius: 0; cursor: pointer;
}
.tab:hover { background: var(--paper); }
.tab[aria-selected="true"] { background: var(--navy); color: var(--white); }
.tab-panel[hidden] { display: none; }
.tab-panel:focus-visible { outline-offset: 4px; }
.spec-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  border-left: 1px solid var(--line);
}
.spec-grid li { padding: 28px 28px 32px; min-height: 120px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec-grid-compact li { min-height: 104px; }
.spec-grid h3 { font-weight: 500; font-size: 18px; line-height: 1.3; }
.spec-grid p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--steel); }
.custom-note {
  margin-top: 40px; padding: 28px 32px; background: var(--paper);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px;
}
.custom-note p { max-width: 760px; font-size: 16px; color: var(--text); }
.custom-note strong { color: var(--navy); }
@media (max-width: 640px) {
  .tab { flex: 1 1 100%; text-align: left; }
  .spec-grid li { padding: 22px 20px 24px; min-height: 0; }
}

/* Services */
.services-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.services-list li {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 10px 64px;
  padding: 32px 0; border-bottom: 1px solid var(--line-strong);
}
.services-list h3 { font-weight: 500; font-size: 21px; line-height: 1.3; }
.services-list p { color: var(--text); }
@media (max-width: 760px) { .services-list li { grid-template-columns: 1fr; padding: 24px 0; } }

/* How it works */
.steps {
  list-style: none; margin: 0; padding: 0; position: relative;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px;
}
.steps::before { content: ""; position: absolute; left: 22px; right: calc((100% - 128px) / 5 - 22px); top: 22px; height: 1px; background: var(--line-strong); }
.step { position: relative; }
.step-num {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; margin-bottom: 24px;
  background: var(--navy); color: var(--white); font: 500 16px var(--display);
}
.step:last-child .step-num { background: var(--gold); color: var(--navy); }
.step h3 { font-weight: 500; font-size: 19px; line-height: 1.3; margin-bottom: 10px; }
.step p { font-size: 15.5px; line-height: 1.6; color: var(--text); }
@media (max-width: 1000px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { left: 22px; right: auto; top: 22px; bottom: 22px; width: 1px; height: auto; }
  .step { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 24px; padding-bottom: 32px; }
  .step:last-child { padding-bottom: 0; }
  .step-num { grid-row: span 2; margin: 0; }
  .step h3 { margin: 10px 0 6px; }
}

/* Hub */
.hub { background: var(--navy); color: var(--white); }
.hub h2 { color: var(--white); }
.hub-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 56px 72px; }
.hub-copy { flex: 1 1 460px; min-width: 0; }
.hub-lead { color: var(--on-navy); max-width: 600px; margin: 20px 0 44px; }
.hub-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
.hub-points h3 { color: var(--white); font-weight: 500; font-size: 18px; margin-bottom: 8px; }
.hub-points h3::before { content: ""; display: block; width: 32px; height: 2px; background: var(--gold); margin-bottom: 16px; }
.hub-points p { font-size: 15.5px; line-height: 1.6; color: var(--on-navy); }
.hub-diagram { flex: 1.15 1 440px; min-width: 0; }
.hub-diagram svg { display: block; width: 100%; height: auto; }
@media (max-width: 640px) { .hub-points { grid-template-columns: 1fr; } }

/* Why */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.pillar { padding: 32px 32px 8px 0; }
.pillar + .pillar { padding-left: 32px; border-left: 1px solid var(--line-strong); }
.pillar h3 { font-weight: 500; font-size: 20px; line-height: 1.3; margin-bottom: 12px; }
.pillar p { font-size: 16px; color: var(--text); }
@media (max-width: 1000px) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillar:nth-child(3) { padding-left: 0; border-left: 0; }
  .pillar:nth-child(n+3) { margin-top: 24px; border-top: 1px solid var(--line-strong); }
}
@media (max-width: 640px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 28px 0 4px; border-left: 0; }
  .pillar + .pillar { margin-top: 20px; border-top: 1px solid var(--line-strong); }
}
.commitments { margin-top: 64px; padding: 40px; background: var(--white); border: 1px solid var(--line); }
.commitments h3 { font-size: 22px; font-weight: 600; margin-bottom: 28px; }
.commitments ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 40px; }
.commitments h4 { font-weight: 500; font-size: 18px; line-height: 1.3; margin-bottom: 8px; }
.commitments p { font-size: 15.5px; color: var(--text); }
@media (max-width: 900px) { .commitments ul { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .commitments { padding: 28px 22px; } }

/* Who we serve */
.clients { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; border-top: 1px solid var(--line-strong); }
.clients li { padding: 28px 0; border-bottom: 1px solid var(--line); }
.clients h3 { font-weight: 500; font-size: 20px; line-height: 1.3; margin-bottom: 8px; }
.clients p { font-size: 16px; color: var(--text); }
@media (max-width: 760px) { .clients { grid-template-columns: 1fr; } }
.sectors { margin-top: 56px; }
.sectors h3 { font-weight: 500; font-size: 18px; color: var(--gold-ink); margin-bottom: 16px; }
.sector-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.sector-list li { padding: 10px 18px; font-size: 15px; color: var(--navy); background: var(--paper); border: 1px solid var(--line-strong); border-radius: 2px; }

/* Partner band */
.partner { background: var(--gold); color: var(--navy); }
.partner-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; padding-top: 72px; padding-bottom: 72px; }
.partner h2 { font-weight: 600; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.2; letter-spacing: -0.01em; }
.partner p { margin-top: 12px; max-width: 620px; color: #1C2E44; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px 72px; align-items: start; }
.form-panel { padding: 40px; background: var(--white); border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 500; font-size: 15px; color: var(--navy); }
.req { color: var(--gold-ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--white); border: 1px solid #8D9BAD; border-radius: 2px;
}
.field input, .field select { height: 52px; line-height: 1.3; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--navy); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #A3261B; }
.field input::placeholder { color: #6B7A8C; }
.phone-row { display: flex; flex-wrap: wrap; gap: 12px; }
.phone-row select { flex: 0 1 280px; min-width: 0; }
.phone-row input { flex: 1 1 200px; min-width: 0; }
.form-actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-note { font-size: 14px; color: var(--steel); }
.form-status { margin-top: 16px; font-size: 15px; }
.form-status:empty { margin: 0; }
.form-status.is-ok { color: #1F6B3A; }
.form-status.is-error { color: #A3261B; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.contact-details { display: flex; flex-direction: column; gap: 28px; padding-top: 8px; }
.contact-item h3 { font-weight: 500; font-size: 15px; color: var(--gold-ink); margin-bottom: 6px; }
.contact-item a, .contact-item p { font: 500 20px/1.4 var(--display); color: var(--navy); text-decoration: none; }
.contact-item a:hover { color: var(--gold-ink); text-decoration: underline; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .form-panel { padding: 24px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .phone-row select { flex: 1 1 100%; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-navy); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px 56px; padding-top: 72px; padding-bottom: 48px; }
.footer-brand img { display: block; height: 40px; width: auto; margin-bottom: 20px; }
.footer-brand p { max-width: 340px; font-size: 15.5px; }
.site-footer h2 { font: 500 15px var(--display); color: var(--white); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15.5px; }
.site-footer a { color: var(--on-navy-strong); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  padding: 24px 0 32px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: 14px; color: #A9B7C9;
}
.footer-legal p:first-child { display: flex; flex-wrap: wrap; gap: 4px 24px; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
