/* JARTOOL — simple iteration build. Starter tokens; full DS extracted after review. */
/* Palette roles: ink = text · deep navy = buttons/dark bands · brand steel blue =
   links/numerals/ticks · amber = marquee + focus ONLY · mist = links on dark */
:root {
  --ink: #101418;
  --ink-soft: #2b333b;
  --paper: #ffffff;
  --wash: #edf2f7;
  --deep: #0b2a4a;
  --deep-2: #061c33;
  --brand: #0170b9;
  --brand-ink: #0b2a4a;
  --accent: #f5a623;
  --mist: #cfe6f7;
  --error: #b00020;
  --wa: #128c4b;
  --wa-dark: #0d6e3a;
  --line: #d9e1e8;
  --radius: 10px;
  --max: 1120px;
  --narrow: 72ch;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, 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.65;
  font-size: 1rem;
}
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Editorial voice: Space Grotesk carries display, labels and numerals; body stays neutral */
h1, h2, h3, .btn, .topbar, .process-track span, .stat strong {
  font-family: var(--font-display);
}
.btn { letter-spacing: 0.01em; transition: background-color 180ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms cubic-bezier(0.16, 1, 0.3, 1), color 180ms cubic-bezier(0.16, 1, 0.3, 1), transform 180ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1); }
.btn-light { background: transparent; color: #fff; border-color: #fff; }
a.btn-light, a.btn-light:visited { color: #fff; }
a.btn-light:hover { background: #fff; border-color: #fff; color: var(--deep); }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: 1.25rem; }
.narrow { max-width: var(--narrow); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--deep); color: #fff; padding: 0.6rem 1rem; border-radius: 8px;
}
.skip:focus { top: 0.75rem; color: #fff; }

/* Header — single nav (dup-nav fix) */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,0.96);
  border-bottom: 2px solid var(--brand);
}
.header-row { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { display: block; height: 40px; width: auto; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-weight: 600; padding: 0.55rem 0.2rem; }
.site-nav a:hover { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 4px; }
.menu-btn { display: none; margin-left: auto; }

/* Buttons — contrast-fixed states (P1 fix: no black-on-navy) */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  color: #fff; background: var(--deep);
  padding: 0.85rem 1.6rem; border-radius: 8px; border: 2px solid var(--deep);
}
.btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(1, 112, 185, 0.4); transform: translateY(-1px); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-ghost { background: transparent; color: var(--brand-ink); border-color: var(--brand); }
.btn-ghost:hover { background: var(--deep); border-color: var(--deep); color: #fff; }
.btn-small { padding: 0.55rem 1rem; }
.btn-pill { border-radius: 999px; }

/* Buttons-as-links must keep readable text in every state.
   This beats the nav link color and the browser :visited default —
   the cause of the dark-on-dark button bug. */
a.btn, a.btn:visited, .site-nav a.btn, .site-nav a.btn:visited { color: #fff; }
a.btn-ghost, a.btn-ghost:visited, .site-nav a.btn-ghost, .site-nav a.btn-ghost:visited {
  color: var(--brand-ink); background: transparent;
}
a.btn-ghost:hover, .site-nav a.btn-ghost:hover { color: #fff; }
/* Floating WhatsApp action: circular, icon-only, white glyph on deep green (4.3:1) */
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 30;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa); display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(6, 28, 51, 0.35);
}
.wa-float:hover, .wa-float:visited { background: var(--wa); }
.wa-float:hover { background: var(--wa-dark); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* Hero */
/* Hero: blueprint grid over the tinted ground */
.hero {
  background:
    repeating-linear-gradient(0deg, rgba(1, 112, 185, 0.07) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, rgba(1, 112, 185, 0.07) 0 1px, transparent 1px 56px),
    linear-gradient(180deg, #e9f1f8 0%, #fff 100%);
  padding: 3.5rem 0 2.5rem;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2.5rem; align-items: center; }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.75rem);
  line-height: 1.02; letter-spacing: -0.035em;
  text-wrap: balance;
  margin: 0 0 1.25rem;
}
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.6rem 0 0; }
.hero-media { margin: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--wash); }
.hero-media img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1); }
.hero-media img:hover { transform: scale(1.025); }

/* Featured application: the committed navy peak of the scroll */
.section-feature { background: var(--deep); color: #eef4f9; }
.section-feature h2 { color: #fff; }
.section-feature .standfirst { color: #fff; }
.section-feature .ticks li { color: var(--mist); }
.section-feature .ticks li::before { background: var(--accent); }
.feature-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: center; }
.feature-grid h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.feature-media { margin: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, 0.22); background: var(--deep-2); }
.feature-media img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1); }
.feature-media img:hover { transform: scale(1.025); }

/* Process marquee: amber rhythm divider, CSS-only */
.process-strip { background: var(--accent); overflow: hidden; }
.process-track { display: flex; gap: 2.5rem; width: max-content; padding: 0.7rem 0; animation: slide 32s linear infinite; }
.process-track.paused { animation-play-state: paused; }
.process-track span { font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.9rem; color: var(--deep); white-space: nowrap; }
@keyframes slide { to { transform: translateX(-50%); } }

/* About gets the quietest room: more air, narrower measure */
#about { padding: 3.5rem 0 2.5rem; }

/* Sections — more space above heading than below (floor rule) */
.section { padding: 3.5rem 0 2.5rem; }
.section-alt { background: var(--wash); }
.section h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 0.75rem; text-wrap: balance; }
.section-sub { color: var(--ink-soft); max-width: 68ch; margin: 0 0 2rem; font-size: 1.06rem; }
.standfirst { font-size: 1.2rem; line-height: 1.6; max-width: 56ch; color: var(--ink); }
.ticks { list-style: none; padding: 0; display: grid; gap: 0.5rem; margin: 1.5rem 0; }
.ticks li { padding-left: 1.7rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--brand); }
.muted { color: var(--ink-soft); }

/* Brand cards — varied content, not same-size icon cards as page structure */
.brand-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.brand-cards li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: 0.6rem; align-content: start; }
.brand-cards img { width: 100%; height: 72px; object-fit: contain; background: #fff; }
.brand-cards h3 { margin: 0.4rem 0 0; font-size: 1.05rem; letter-spacing: 0.02em; }
.brand-cards p { margin: 0; color: var(--ink-soft); }
.brand-cards a { font-weight: 700; color: var(--brand-ink); }

/* Utility top-bar: B2B contact always one tap away */
.topbar { background: var(--deep); font-size: 0.85rem; }
.topbar-row { display: flex; align-items: center; gap: 1.25rem; padding-block: 0.45rem; }
.topbar-row p { margin: 0; color: var(--mist); }
.topbar-row .top-loc { margin-right: auto; }
.topbar-row a { color: #fff; text-decoration: none; white-space: nowrap; }
.topbar-row a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Products as alternating editorial rows: copy + one large visual */
.product { border-top: 1px solid var(--line); padding: 2rem 0; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2rem; align-items: start; }
.product:nth-of-type(even) > div:first-child { order: 2; }
.product h3 { margin: 0 0 0.5rem; font-size: 1.35rem; }
.product ul:not(.phots) { margin: 0 0 1rem; padding-left: 1.2rem; color: var(--ink-soft); max-width: 70ch; }
.product .row-link { font-weight: 700; color: var(--brand-ink); }
.phots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.phots li { overflow: hidden; border-radius: 8px; border: 1px solid var(--line); background: var(--wash); }
.phots li:first-child { grid-column: 1 / -1; }
.phots img { width: 100%; height: auto; object-fit: cover; display: block; transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1); }
.phots img:hover { transform: scale(1.025); }
.phots li:first-child img { aspect-ratio: 16/9; }
.phots li:not(:first-child) img { aspect-ratio: 4/3; }

/* Stats band: hard proof in brand blue numerals */
.stats { background: var(--wash); border-top: 1px solid var(--line); }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding-block: 2.5rem; }
.stat { display: grid; gap: 0.25rem; margin: 0; }
.stat strong { font-size: clamp(2.2rem, 4.5vw, 3.25rem); line-height: 1; letter-spacing: -0.02em; color: var(--brand); font-variant-numeric: tabular-nums; }
.stat span { color: var(--ink-soft); }

/* Contact */
.section-dark { background: var(--deep); color: #eef4f9; }
.section-dark h2 { color: #fff; }
.section-dark a:not(.btn) { color: #cfe6f7; }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2.5rem; }
address { font-style: normal; display: grid; gap: 0.4rem; }
address p { margin: 0; }
.quote-form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: 0.25rem; }
.quote-form p { margin: 0 0 0.9rem; display: grid; gap: 0.35rem; }
.form-note { color: var(--ink-soft); font-size: 0.88rem; }
.quote-form label { font-weight: 700; }
.quote-form input, .quote-form textarea {
  font: inherit; padding: 0.7rem 0.8rem;
  border: 1.5px solid #9fb2c3; border-radius: 8px; background: #fff; color: var(--ink);
  min-height: 44px;
}
.quote-form input:focus, .quote-form textarea:focus { border-color: var(--brand); outline: 2px solid var(--brand); outline-offset: 1px; }
.quote-form input[aria-invalid="true"], .quote-form textarea[aria-invalid="true"] { border-color: var(--error); }

/* Footer: navy close with the logo knocked out to white */
.site-footer { background: var(--deep); border-top: 1px solid rgba(255, 255, 255, 0.16); padding: 2rem 0; color: var(--mist); }
.site-footer a { color: #fff; }
.footer-row { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; justify-content: space-between; }
.footer-row p { margin: 0; color: var(--mist); }
.footer-brand img { display: block; height: 32px; width: auto; filter: brightness(0) invert(1); mix-blend-mode: screen; }

/* Reveal removed: content is always visible (no empty-space bug on anchor nav) */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .process-track { animation: none; flex-wrap: wrap; width: auto; }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .contact-grid, .feature-grid, .product { grid-template-columns: 1fr; }
  .product:nth-of-type(even) > div:first-child { order: 0; }
  .brand-cards, .phots { grid-template-columns: 1fr 1fr; }
  .menu-btn {
    display: inline-block; font: inherit; font-weight: 700;
    background: var(--brand); color: #fff; border: 2px solid var(--brand);
    border-radius: 8px; padding: 0.55rem 1rem; min-height: 44px;
  }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 0.5rem 0 1rem; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.7rem 0.2rem; min-height: 44px; }
  .header-row { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .brand-cards, .phots { grid-template-columns: 1fr; }
  .phots li:first-child { grid-column: auto; }
  .stats-row { grid-template-columns: 1fr; }
  .topbar-row { flex-wrap: wrap; gap: 0.4rem 1rem; }
  .hero { padding: 2.5rem 0 2rem; }
  .section { padding: 2.5rem 0 2rem; }
  .hero-proof { flex-direction: column; gap: 0.6rem; }
}
