:root {
  --navy-900: #0c1f35;
  --navy-800: #12304f;
  --navy-700: #1b4470;
  --navy-600: #245a8e;
  --orange: #e8913f;
  --orange-600: #d27a28;
  --ink: #142235;
  --muted: #5b6b7f;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(12, 31, 53, .06), 0 8px 24px rgba(12, 31, 53, .06);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.4em; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--orange); color: #fff; }
.btn-accent:hover { background: var(--orange-600); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn-sm { padding: .6em 1.1em; font-size: .875rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(12,31,53,.06); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 52px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; color: var(--navy-700); }
.brand-text strong { font-size: 1.15rem; font-weight: 800; letter-spacing: .04em; }
.brand-text span { font-size: .72rem; font-weight: 700; letter-spacing: .2em; color: var(--muted); margin-top: 3px; }

.since {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--navy-700);
  padding: 5px 12px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line);
}
.since .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px rgba(232,145,63,.2); }
.main-nav { display: flex; gap: 28px; margin-left: auto; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink); position: relative; padding: 4px 0; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--orange); transform: scaleX(0); transition: transform .2s; transform-origin: left;
}
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  display: inline-flex; padding: 3px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line);
}
.lang-toggle button {
  border: 0; background: transparent; font: inherit; font-size: .8rem; font-weight: 800;
  padding: .4em .8em; border-radius: 999px; cursor: pointer; color: var(--muted); letter-spacing: .04em;
}
.lang-toggle button[aria-pressed="true"] { background: var(--navy-700); color: #fff; }

.nav-burger { display: none; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; height: 2px; background: var(--navy-700); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 80% 30%, rgba(36, 90, 142, .55), transparent 60%),
    linear-gradient(160deg, var(--navy-800), var(--navy-900) 70%);
  padding: clamp(56px, 9vw, 110px) 0 clamp(64px, 9vw, 120px);
}
.hero-routes { position: absolute; inset: 0; width: 100%; height: 100%; }
.route-anim path { stroke-dasharray: 220 1800; animation: dash 7s linear infinite; }
.route-anim path:nth-child(2) { animation-delay: -3.5s; }
@keyframes dash { from { stroke-dashoffset: 2020; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .route-anim path { animation: none; } html { scroll-behavior: auto; } }

.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: .85rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #cfe0f2; padding: 6px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(232,145,63,.25); }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; margin: 0 0 18px; }
.hero h1 em { font-style: normal; color: var(--orange); }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: #c9d6e5; max-width: 40em; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-points li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; color: #e3ecf6; }
.hero-points li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: rgba(232,145,63,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8913f' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
}
.hero-visual { display: flex; justify-content: center; }
.hero-badge {
  width: min(400px, 100%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #ffffff, #e9f0f7 70%);
  position: relative; flex: none;
  box-shadow: 0 30px 80px rgba(0,0,0,.35), 0 0 0 12px rgba(255,255,255,.06), 0 0 0 26px rgba(255,255,255,.03);
}
.hero-badge img { position: absolute; inset: 13%; width: 74%; height: 74%; object-fit: contain; }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.kicker {
  display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange-600); margin-bottom: 12px;
}
.kicker-light { color: var(--orange); }
.section h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; color: var(--navy-800); }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cbd6e3; }
.card h3 { font-size: 1.15rem; color: var(--navy-800); margin-top: 18px; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.card-wide {
  grid-column: 1 / -1; display: flex; gap: 22px; align-items: center;
  background: linear-gradient(120deg, var(--navy-700), var(--navy-800)); border: 0; color: #fff;
}
.card-wide h3 { color: #fff; margin-top: 0; }
.card-wide p { color: #c9d6e5; max-width: 60em; }
.card-wide .icon { background: rgba(255,255,255,.1); color: var(--orange); }
.icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: #eaf1f8; color: var(--navy-600);
}
.icon svg, .commit-ico svg, .contact-list svg {
  width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* Flow */
.flow { background: var(--navy-900); color: #fff; padding: 44px 0; }
.flow-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.flow-steps li { position: relative; display: flex; flex-direction: column; gap: 2px; padding-left: 0; }
.flow-steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 14px; left: 52px; right: -12px; height: 1px;
  background: linear-gradient(90deg, rgba(232,145,63,.7), rgba(255,255,255,.08));
}
.flow-steps .num { font-weight: 800; color: var(--orange); font-size: 1.1rem; margin-bottom: 8px; }
.flow-steps strong { font-size: 1.05rem; }
.flow-steps span:last-child { color: #9fb3c8; font-size: .9rem; }

/* Certifications */
.certs { padding: clamp(48px, 7vw, 80px) 0; border-bottom: 1px solid var(--line); }
.certs-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.certs h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; color: var(--navy-800); }
.certs-copy p:last-child { color: var(--muted); font-size: 1.02rem; margin: 0; max-width: 40em; }
.cert-badges { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.cert {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 14px; display: flex; flex-direction: column; align-items: center; gap: 10px;
  box-shadow: var(--shadow);
}
.cert { padding: 22px 28px 18px; }
.cert img { width: 150px; height: auto; }
.cert figcaption {
  font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: var(--navy-800);
  font-variant-numeric: tabular-nums; white-space: nowrap;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-copy p { color: var(--muted); font-size: 1.05rem; }
.commit-list { display: grid; gap: 16px; }
.commit {
  display: flex; gap: 18px; background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line);
}
.commit h3 { font-size: 1.08rem; color: var(--navy-800); margin-bottom: 6px; }
.commit p { margin: 0; color: var(--muted); font-size: .95rem; }
.commit-ico {
  width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: rgba(232,145,63,.13); color: var(--orange-600);
}
.commit-ico svg { width: 22px; height: 22px; }

/* Location */
.location-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.location-copy > p { color: var(--muted); font-size: 1.05rem; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.facts li { border-left: 3px solid var(--orange); padding: 4px 0 4px 14px; display: flex; flex-direction: column; }
.facts strong { color: var(--navy-800); }
.facts span { color: var(--muted); font-size: .88rem; }
.map-wrap {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line);
  aspect-ratio: 4 / 3; background: var(--bg-alt);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.map-tab {
  font: inherit; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 2px;
  padding: 12px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.map-tab strong { font-size: .98rem; color: var(--navy-800); }
.map-tab span { font-size: .82rem; color: var(--muted); }
.map-tab:hover { border-color: #cbd6e3; }
.map-tab[aria-selected="true"] { border-color: var(--orange); background: #fff8f1; box-shadow: 0 0 0 3px rgba(232,145,63,.15); }
.map-open {
  display: inline-block; margin-top: 12px; font-size: .9rem; font-weight: 700; color: var(--navy-600); text-decoration: none;
}
.map-open:hover { color: var(--orange-600); }

/* Contact */
.contact {
  background:
    radial-gradient(700px 400px at 10% 0%, rgba(36, 90, 142, .5), transparent 60%),
    var(--navy-900);
  color: #fff;
}
.contact h2 { color: #fff; }
.contact-lead { color: #b9c9da; font-size: 1.05rem; max-width: 32em; }
.contact-info { max-width: none; }
.contact-list {
  list-style: none; padding: 0; margin: 40px 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px;
}
.contact-list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 22px 20px; border-radius: var(--radius);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09);
}
.contact-list svg { width: 22px; height: 22px; color: var(--orange); margin-top: 3px; flex: none; }
.contact-list div { display: flex; flex-direction: column; }
.contact-list .label { font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #8ea4bb; }
.contact-list a { text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--orange); }


/* Footer */
.site-footer { background: #081626; color: #9fb3c8; padding: 32px 0 20px; font-size: .9rem; border-top: 1px solid rgba(255,255,255,.06); }
.footer-inner { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.footer-brand img { width: 48px; height: auto; }
.footer-brand span { display: flex; flex-direction: column; line-height: 1.3; }
.footer-brand strong { color: #fff; font-size: .95rem; }
.footer-brand small { font-size: .8rem; color: #8ea4bb; }
.footer-bottom a:hover { color: var(--orange); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); font-size: .82rem;
}
.footer-bottom a { text-decoration: none; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Responsive */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr 300px; gap: 32px; }
}
@media (max-width: 860px) {
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
    box-shadow: 0 12px 24px rgba(12,31,53,.08);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .header-actions { margin-left: auto; }
  .nav-burger { display: block; }
  .hide-mobile { display: none; }
  .hero-grid, .about-grid, .location-grid, .certs-inner { grid-template-columns: 1fr; gap: 40px; }
  .cert-badges { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-badge { width: 200px; }
  .flow-steps { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .flow-steps li::after { display: none; }
  .footer-inner { flex-direction: column; align-items: center; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .card-wide { flex-direction: column; align-items: flex-start; }
  .facts { grid-template-columns: 1fr; }
  .cert-badges { justify-content: center; }
  .brand-text span { letter-spacing: .14em; }
  .brand img { width: 44px; }
  .brand-text { display: none; }
  .since { padding: 4px 9px; font-size: .65rem; letter-spacing: .06em; }
  .header-inner { gap: 10px; }
}

/* ===== Motion & interactivity ===== */

/* Header: compacts on scroll, progress bar, active section link */
.header-inner { transition: height .3s ease; }
.site-header.scrolled { --header-h: 62px; }
.brand img { transition: width .3s ease; }
.site-header.scrolled .brand img { width: 44px; }
.scroll-progress {
  position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--orange), #f4b779);
  transform-origin: left; transform: scaleX(var(--progress, 0));
}
.main-nav a.active { color: var(--navy-700); }
.main-nav a.active::after { transform: scaleX(1); }

/* Hero intro */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes spin { to { rotate: 360deg; } }
.hero-copy > *, .hero-points li { animation: fadeUp .8s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy h1 { animation-delay: .1s; }
.hero-copy .lead { animation-delay: .25s; }
.hero-copy .hero-points { animation: none; }
.hero-points li:nth-child(1) { animation-delay: .4s; }
.hero-points li:nth-child(2) { animation-delay: .5s; }
.hero-points li:nth-child(3) { animation-delay: .6s; }
.hero-points li:nth-child(4) { animation-delay: .7s; }
.hero-visual { animation: popIn 1s .2s cubic-bezier(.2,.7,.2,1) both; }
.hero-badge {
  animation: float 6s ease-in-out infinite;
  transform: perspective(800px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg));
  transition: transform .4s ease-out;
}
.badge-ring {
  position: absolute; inset: -34px; border-radius: 50%; pointer-events: none;
  border: 2px dashed rgba(232,145,63,.45);
  animation: spin 40s linear infinite;
}
.badge-ring::after {
  content: ""; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; margin-left: -6px;
  border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 6px rgba(232,145,63,.2), 0 0 18px rgba(232,145,63,.8);
  animation: dotPulse 2s ease-out infinite;
}
@keyframes dotPulse {
  0%   { box-shadow: 0 0 0 0 rgba(232,145,63,.6), 0 0 18px rgba(232,145,63,.8); }
  70%  { box-shadow: 0 0 0 16px rgba(232,145,63,0), 0 0 18px rgba(232,145,63,.8); }
  100% { box-shadow: 0 0 0 0 rgba(232,145,63,0), 0 0 18px rgba(232,145,63,.8); }
}
.hero-em-shine em {
  background: linear-gradient(90deg, var(--orange) 0%, #ffd2a6 45%, var(--orange) 60%) 0 0 / 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 4s 1.2s ease-in-out infinite;
}
@keyframes shine { 0%, 60% { background-position: 100% 0; } 100% { background-position: -150% 0; } }

/* Service cards: orange sweep, icon flip to orange */
.card { position: relative; overflow: hidden; }
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.card:hover::before { transform: scaleX(1); }
.icon { transition: background .3s, color .3s, transform .4s cubic-bezier(.3,1.6,.5,1); }
.card:hover .icon { background: var(--orange); color: #fff; transform: translateY(-3px) rotate(-6deg); }
.card-wide:hover .icon { background: var(--orange); color: #fff; }

/* Commitments, contact cards */
.commit { transition: transform .3s, box-shadow .3s, border-color .3s; }
.commit:hover { transform: translateX(6px); box-shadow: var(--shadow); border-color: #cbd6e3; }
.commit-ico { transition: transform .4s cubic-bezier(.3,1.6,.5,1), background .3s, color .3s; }
.commit:hover .commit-ico { transform: scale(1.12); background: var(--orange); color: #fff; }
.contact-list li { transition: transform .3s, background .3s, border-color .3s; }
.contact-list li:hover { transform: translateY(-4px); background: rgba(255,255,255,.07); border-color: rgba(232,145,63,.45); }

/* Language switch: brief cross-fade */
main, .main-nav, .since, .site-footer { transition: opacity .18s ease; }
body.lang-fading main, body.lang-fading .main-nav, body.lang-fading .since, body.lang-fading .site-footer { opacity: 0; }

@media (max-width: 860px) {
  .badge-ring { inset: -18px; }
  .hero-routes .hub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-movers, .movers { display: none; }
}

/* Phones: header stays at the top of the page instead of following the scroll */
@media (max-width: 860px) {
  html { scroll-padding-top: 0; }
  .site-header { position: relative; background: #fff; backdrop-filter: none; }
  .site-header.scrolled { --header-h: 72px; box-shadow: none; }
  .site-header.scrolled .brand img { width: 44px; }
  .scroll-progress { display: none; }
}
