/* ===========================================================
   REAT Global — redesigned site
   Built on the company's EXISTING brand: black REAT wordmark,
   royal-blue wing, signal red, multi-colour tagline accents,
   dotted world-map motif. Fonts: Poppins + Nunito Sans.
   =========================================================== */

:root {
  /* Brand colours (sampled from the existing logo) */
  --ink: #14181f;
  --navy: #1e3a6e;        /* the blue wing — primary brand colour */
  --navy-deep: #142a52;
  --red: #d81e27;         /* the location pin / ASSESSMENT */
  --red-dark: #b3151d;
  --orange: #f08a22;      /* ROAD */
  --teal: #2e8b7f;        /* ENVIRONMENT */
  --tech-blue: #0f62b0;   /* TECHNOLOGY */
  --yellow: #f2c200;      /* road centre-line */

  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --bg-deep: #0f2147;     /* deep brand navy for dark sections */
  --line: #e4e9f1;
  --text: #232a35;
  --muted: #5d6878;
  --white: #ffffff;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(20, 40, 80, .06);
  --shadow: 0 14px 38px rgba(20, 40, 80, .12);
  --shadow-lg: 0 26px 60px rgba(15, 33, 71, .22);
  --maxw: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --head: 'Poppins', system-ui, sans-serif;
  --body: 'Nunito Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* ---- Accessibility: skip link + visible keyboard focus ---- */
.skip-link {
  position: fixed; left: 16px; top: -64px; z-index: 200;
  background: var(--navy); color: #fff; font-family: var(--head); font-weight: 600; font-size: .9rem;
  padding: 12px 20px; border-radius: 0 0 12px 12px; transition: top .2s;
}
.skip-link:focus { top: 0; }
:focus-visible { outline: 3px solid var(--tech-blue); outline-offset: 2px; }
.btn:focus-visible, .btn--red:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.12; font-weight: 700; letter-spacing: -.01em; }
::selection { background: var(--navy); color: #fff; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--soft { background: var(--bg-soft); }
.center { text-align: center; }

/* ---- Eyebrow + section headings ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--head); font-weight: 600; font-size: .8rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--navy);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--red); }
.section-title { font-size: clamp(1.9rem, 4vw, 3rem); }
.section-lead { color: var(--muted); font-size: 1.12rem; max-width: 60ch; margin-top: 14px; }
.center .section-lead { margin-inline: auto; }

/* Four-colour brand accent (echoes the multi-colour tagline) */
.accent-bar { display: inline-flex; gap: 6px; margin-top: 18px; }
.accent-bar span { width: 30px; height: 5px; border-radius: 4px; }
.accent-bar span:nth-child(1) { background: var(--orange); }
.accent-bar span:nth-child(2) { background: var(--teal); }
.accent-bar span:nth-child(3) { background: var(--red); }
.accent-bar span:nth-child(4) { background: var(--tech-blue); }

/* ---- Buttons ---- */
.btn {
  --bg: var(--navy); --fg: #fff;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--head); font-weight: 600; font-size: .98rem;
  padding: 14px 26px; border-radius: 999px; cursor: pointer; border: 2px solid transparent;
  background: var(--bg); color: var(--fg); transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  box-shadow: var(--shadow-sm);
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn--red { --bg: var(--red); }
.btn--red:hover { background: var(--red-dark); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn--light { background: #fff; color: var(--navy); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); box-shadow: none; }
.btn--outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ===================== HEADER ===================== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); transition: box-shadow .3s, padding .3s;
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  font-family: var(--head); font-weight: 500; font-size: .96rem; color: var(--ink);
  padding: 10px 14px; border-radius: 10px; position: relative; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--navy); background: var(--bg-soft); }
.nav-links a.active { color: var(--navy); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px;
  border-radius: 3px; background: var(--red);
}
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .phone { font-family: var(--head); font-weight: 600; font-size: .92rem; color: var(--navy); white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.nav-toggle span + span { margin-top: 6px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===================== HERO ===================== */
.hero {
  position: relative; overflow: hidden; color: #eaf0fb;
  background: radial-gradient(1200px 600px at 80% -10%, #28508f 0%, transparent 60%), linear-gradient(160deg, #16336a 0%, #0f2147 60%, #0b1733 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("../assets/dotted_map.png") right 4% center / 58% auto no-repeat;
  opacity: .12; mix-blend-mode: screen; pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: clamp(60px, 8vw, 104px) 0; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -.02em; }
.hero h1 .hl { color: var(--yellow); }
.hero .sub { color: #c4d2ea; font-size: 1.16rem; margin-top: 20px; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 500;
  font-size: .85rem; color: #dbe6f7; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16); padding: 8px 14px; border-radius: 999px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.hero-visual { position: relative; }
.hero-visual img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; height: 440px; object-fit: cover; }
.hero-visual .float-card {
  position: absolute; left: -28px; bottom: 28px; background: #fff; color: var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 16px 20px; display: flex; align-items: center; gap: 14px;
}
.hero-visual .float-card .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--red); display: grid; place-items: center; color: #fff; }
.hero-visual .float-card strong { font-family: var(--head); display: block; font-size: 1.05rem; }
.hero-visual .float-card span { font-size: .82rem; color: var(--muted); }

/* ===================== STATS ===================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { text-align: center; padding: 26px 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.stat .num { font-family: var(--head); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--navy); }
.stat .lbl { color: var(--muted); font-size: .96rem; margin-top: 4px; }

/* ===================== CARDS / GRIDS ===================== */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  position: relative; overflow: hidden;
}
.card::after { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0; background: var(--red); transition: width .35s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::after { width: 100%; }
.card .ic {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, #eaf1fb, #dce8fa); color: var(--navy); margin-bottom: 20px;
}
.card .ic svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.28rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 1rem; }
.card .tag { display: inline-block; font-family: var(--head); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); background: var(--bg-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }

/* Vary icon colours so each card nods to the multi-colour brand */
.card:nth-child(6n+1) .ic { color: var(--navy); }
.card:nth-child(6n+2) .ic { color: var(--teal); background: linear-gradient(135deg,#e3f3f0,#d3ece7); }
.card:nth-child(6n+3) .ic { color: var(--red); background: linear-gradient(135deg,#fbe7e8,#f7d6d8); }
.card:nth-child(6n+4) .ic { color: var(--orange); background: linear-gradient(135deg,#fdeedd,#fbe1c6); }
.card:nth-child(6n+5) .ic { color: var(--tech-blue); background: linear-gradient(135deg,#e2eefa,#cfe2f7); }
.card:nth-child(6n+6) .ic { color: var(--navy); }

/* ---- Split feature (image + text) ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split.rev .split-media { order: 2; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; height: 420px; object-fit: cover; }
.split-media { position: relative; }
.split-media .badge-iso { position: absolute; top: 18px; left: 18px; background: #fff; color: var(--navy); font-family: var(--head); font-weight: 700; font-size: .82rem; padding: 9px 16px; border-radius: 999px; box-shadow: var(--shadow); display: inline-flex; gap: 8px; align-items: center; }
.feature-list { list-style: none; margin-top: 22px; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .chk { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 14px; }
.feature-list b { font-family: var(--head); }

/* ---- Project cards ---- */
.project { border-radius: var(--radius-lg); overflow: hidden; position: relative; box-shadow: var(--shadow-sm); border: 1px solid var(--line); background: #fff; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project .ph { height: 210px; background: linear-gradient(135deg, var(--navy), var(--navy-deep)); position: relative; overflow: hidden; }
.project .ph img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: transform .5s var(--ease); }
.project:hover .ph img { transform: scale(1.07); }
.project .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(15,33,71,.55)); }
.project .meta { padding: 22px 24px; }
.project .meta .tag { color: var(--red); font-family: var(--head); font-weight: 600; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.project .meta h3 { font-size: 1.2rem; margin-top: 6px; }
.project .meta p { color: var(--muted); font-size: .95rem; margin-top: 6px; }

/* ===================== CTA BAND ===================== */
.cta {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(800px 400px at 85% 0%, #2a5392 0%, transparent 60%), linear-gradient(135deg, #16336a, #0f2147);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 70px); text-align: center;
}
.cta::before { content: ""; position: absolute; inset: 0; background: url("../assets/dotted_map.png") center/40% no-repeat; opacity: .1; mix-blend-mode: screen; }
.cta > * { position: relative; z-index: 2; }
.cta h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.cta p { color: #c9d6ec; margin: 14px auto 0; max-width: 56ch; }
.cta .hero-actions { justify-content: center; }

/* ===================== PAGE HERO (inner pages) ===================== */
.page-hero { position: relative; color: #eef3fc; background: linear-gradient(160deg, #16336a, #0f2147); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: url("../assets/dotted_map.png") right center/46% no-repeat; opacity: .12; mix-blend-mode: screen; }
.page-hero .container { position: relative; z-index: 2; padding: clamp(56px, 8vw, 96px) 24px; }
.page-hero .crumbs { font-family: var(--head); font-size: .85rem; color: #9fb4d8; margin-bottom: 14px; }
.page-hero .crumbs a:hover { color: #fff; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-hero p { color: #c4d2ea; font-size: 1.15rem; margin-top: 14px; max-width: 60ch; }

/* ===================== CONTACT ===================== */
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--head); font-weight: 600; font-size: .9rem; margin-bottom: 7px; color: var(--ink); }
.field input, .field textarea {
  width: 100%; font-family: var(--body); font-size: 1rem; padding: 13px 16px; border: 1.5px solid var(--line);
  border-radius: 12px; background: var(--bg-soft); transition: border-color .2s, background .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 4px rgba(30,58,110,.12); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 4px rgba(216,30,39,.12); }
.field textarea { min-height: 130px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.offices { display: grid; gap: 16px; }
.office { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm); display: flex; gap: 16px; }
.office .pin { flex: none; width: 42px; height: 42px; border-radius: 11px; background: var(--bg-soft); color: var(--red); display: grid; place-items: center; }
.office h4 { font-size: 1.05rem; margin-bottom: 3px; }
.office p { color: var(--muted); font-size: .95rem; }
.office.head { background: var(--bg-deep); color: #fff; border-color: transparent; }
.office.head h4 { color: #fff; } .office.head p { color: #c4d2ea; } .office.head .pin { background: rgba(255,255,255,.12); }
.map-embed { border: 0; width: 100%; height: 320px; border-radius: var(--radius-lg); box-shadow: var(--shadow); margin-top: 24px; }
.form-note { font-size: .88rem; color: var(--muted); margin-top: 8px; }

/* ===================== FOOTER ===================== */
.footer { background: var(--bg-deep); color: #c4d2ea; padding-top: 70px; position: relative; overflow: hidden; }
.footer::before { content: ""; position: absolute; inset: 0; background: url("../assets/dotted_map.png") 20% 120%/40% no-repeat; opacity: .07; mix-blend-mode: screen; }
.footer .container { position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 44px; }
.footer .logo-chip { background: #fff; border-radius: 12px; padding: 10px 14px; display: inline-block; box-shadow: var(--shadow); }
.footer .logo-chip img { height: 40px; }
.footer h5 { font-family: var(--head); color: #fff; font-size: 1rem; margin-bottom: 16px; letter-spacing: .02em; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.footer .muted { color: #93a6c8; font-size: .95rem; margin-top: 14px; max-width: 34ch; }
.foot-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.foot-contact svg { width: 18px; height: 18px; color: var(--yellow); flex: none; margin-top: 3px; }
.socials { display: flex; gap: 10px; margin-top: 8px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: background .2s, transform .2s; }
.socials a:hover { background: var(--red); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; color: #fff; }
.footbar { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .9rem; color: #93a6c8; }
.foot-accent { height: 5px; display: flex; }
.foot-accent span { flex: 1; }
.foot-accent span:nth-child(1){background:var(--orange);} .foot-accent span:nth-child(2){background:var(--teal);} .foot-accent span:nth-child(3){background:var(--red);} .foot-accent span:nth-child(4){background:var(--tech-blue);}

/* ===================== REVEAL ANIMATION ===================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual img { height: 360px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split.rev .split-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta .phone { display: none; }
  .nav-toggle { display: block; }
  .header.menu-open .nav-links {
    display: flex; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 14px 24px 22px; gap: 4px; box-shadow: var(--shadow);
  }
  .header.menu-open .nav-links a { padding: 14px; border-radius: 10px; }
  .header.menu-open .nav-links a.active::after { display: none; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-visual .float-card { left: 50%; transform: translateX(-50%); bottom: -24px; }
  .hero-visual { margin-bottom: 30px; }
}
@media (max-width: 480px) {
  .nav-cta .btn { display: none; }       /* keep mobile header to logo + menu */
  .brand img { height: 40px; }
  .hero-actions .btn, .cta .btn { width: 100%; justify-content: center; }
}
/* ===================== ICON BADGES (RoadSense glyphs, REAT colours) ===================== */
.icon-badge { width: 64px; height: 64px; margin-bottom: 18px; }
.icon-badge img { width: 100%; height: 100%; object-fit: contain; }

/* ===================== RFQ ===================== */
.rfq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.rfq-col { display: grid; gap: 26px; }
.rfq-step { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.rfq-step h3 { font-size: 1.25rem; }
.rfq-num {
  width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--navy); color: #fff;
  font-family: var(--head); font-weight: 700; display: grid; place-items: center; font-size: .95rem;
}
.field select {
  width: 100%; font-family: var(--body); font-size: 1rem; padding: 13px 16px; border: 1.5px solid var(--line);
  border-radius: 12px; background: var(--bg-soft); transition: border-color .2s, background .2s, box-shadow .2s;
}
.field select:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 4px rgba(30,58,110,.12); }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check-card {
  display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 12px 14px; cursor: pointer; transition: border-color .2s, background .2s; background: #fff;
}
.check-card:hover { border-color: var(--navy); }
.check-card input { accent-color: var(--red); width: 18px; height: 18px; flex: none; }
.check-card:has(input:checked) { border-color: var(--red); background: #fdf3f3; }
.check-icon { width: 36px; height: 36px; flex: none; }
.check-icon img { width: 100%; height: 100%; object-fit: contain; }
.check-label { font-family: var(--head); font-weight: 500; font-size: .9rem; line-height: 1.25; }
.loc-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.loc-tab {
  flex: 1; font-family: var(--head); font-weight: 600; font-size: .92rem; padding: 12px 10px;
  border: 1.5px solid var(--line); background: #fff; color: var(--muted); border-radius: 12px; cursor: pointer;
  transition: all .2s;
}
.loc-tab.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.search-row { display: flex; gap: 10px; }
.search-row input { flex: 1; }
.search-row .btn { padding: 12px 20px; flex: none; }
.rfq-map { height: 340px; border-radius: var(--radius); border: 1.5px solid var(--line); margin-top: 14px; z-index: 1; }
.drop-zone {
  border: 2px dashed var(--line); border-radius: var(--radius); padding: 28px 20px; text-align: center;
  cursor: pointer; display: grid; gap: 6px; justify-items: center; color: var(--muted);
  transition: border-color .2s, background .2s; background: var(--bg-soft);
}
.drop-zone strong { font-family: var(--head); color: var(--ink); }
.drop-zone span { font-size: .85rem; }
.drop-zone.over, .drop-zone:hover { border-color: var(--navy); background: #eef3fb; }
.drop-ic { width: 34px; height: 34px; color: var(--navy); }
.file-list { list-style: none; margin-top: 12px; display: grid; gap: 8px; }
.file-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; font-size: .92rem;
}
.file-rm { background: none; border: 0; color: var(--red); font-family: var(--head); font-weight: 600; font-size: .82rem; cursor: pointer; }
.rfq-confirm { display: grid; place-items: center; padding: 30px 0; }
.confirm-card { text-align: center; max-width: 560px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 46px 40px; }
.confirm-ic { width: 70px; height: 70px; margin: 0 auto 20px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; }
.confirm-ic svg { width: 34px; height: 34px; }
.confirm-card h2 { font-size: 1.9rem; }
.confirm-card .ref-line { color: var(--red); font-family: var(--head); margin: 10px 0 12px; }
.confirm-card p { color: var(--muted); }
.confirm-card .hero-actions { margin-top: 26px; }

/* ===================== ADMIN ===================== */
.admin-body { background: var(--bg-soft); }
.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
#admin-app { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-side { background: var(--bg-deep); color: #c4d2ea; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.admin-brand { padding: 18px; background: rgba(255,255,255,.94); margin: 16px; border-radius: 12px; }
.admin-brand img { height: 44px; margin-inline: auto; }
.admin-nav { display: grid; gap: 2px; padding: 6px 12px; overflow-y: auto; }
.admin-nav button {
  text-align: left; background: none; border: 0; color: #c4d2ea; font-family: var(--head); font-weight: 500;
  font-size: .93rem; padding: 11px 14px; border-radius: 10px; cursor: pointer; transition: background .15s, color .15s;
}
.admin-nav button:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-nav button.active { background: var(--red); color: #fff; }
.admin-side-foot { margin-top: auto; padding: 16px; display: grid; gap: 8px; }
.admin-viewsite, .admin-logout {
  font-family: var(--head); font-weight: 600; font-size: .88rem; text-align: center; padding: 10px;
  border-radius: 10px; border: 1px solid rgba(255,255,255,.25); color: #fff; background: none; cursor: pointer;
}
.admin-viewsite:hover, .admin-logout:hover { background: rgba(255,255,255,.1); }
.admin-main { padding: 0 0 60px; }
.admin-topbar {
  position: sticky; top: 0; z-index: 50; display: flex; justify-content: space-between; align-items: center;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding: 16px 32px;
}
.admin-topbar h1 { font-size: 1.3rem; }
.admin-actions { display: flex; align-items: center; gap: 14px; }
.save-state { font-family: var(--head); font-size: .85rem; color: var(--teal); }
.save-state.dirty { color: var(--red); }
.admin-panel { padding: 28px 32px; max-width: 860px; }
.admin-group { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.admin-group-title { font-size: 1.05rem; margin-bottom: 18px; color: var(--navy); }
.list-editor { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.list-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.list-head h3 { font-size: 1.05rem; color: var(--navy); }
.list-item { border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 14px; background: var(--bg-soft); }
.list-item-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.list-item-n { font-family: var(--head); font-weight: 600; font-size: .9rem; color: var(--navy); }
.list-controls { display: flex; gap: 6px; }
.mini {
  font-family: var(--head); font-weight: 600; font-size: .76rem; padding: 6px 12px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink);
}
.mini:hover { border-color: var(--navy); color: var(--navy); }
.mini.danger { color: var(--red); }
.mini.danger:hover { border-color: var(--red); }
.img-field { display: flex; gap: 10px; align-items: center; }
.img-field input { flex: 1; }
.img-prev { width: 54px; height: 54px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: #fff; flex: none; }
.img-field .btn { padding: 11px 18px; flex: none; }
.icon-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.icon-opt { width: 52px; height: 52px; padding: 6px; border-radius: 10px; border: 2px solid var(--line); background: #fff; cursor: pointer; }
.icon-opt img { width: 100%; height: 100%; }
.icon-opt.sel { border-color: var(--red); }
.string-row { display: flex; gap: 10px; margin-bottom: 10px; }
.string-row input { flex: 1; }
.check-inline { display: flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 600; font-size: .9rem; cursor: pointer; }
.check-inline input { accent-color: var(--red); width: 17px; height: 17px; }
.has-swatch { position: relative; }
.swatch { position: absolute; right: 12px; bottom: 11px; width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line); }
.rfq-table { display: grid; gap: 10px; }
.rfq-row {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; box-shadow: var(--shadow-sm);
}
.rfq-sub { color: var(--muted); font-size: .88rem; margin-top: 2px; }
.rfq-row-right { display: flex; align-items: center; gap: 12px; }
.status-badge {
  font-family: var(--head); font-weight: 600; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em;
  padding: 5px 12px; border-radius: 999px; background: var(--bg-soft); color: var(--muted);
}
.st-new { background: #fdeaea; color: var(--red); }
.st-reviewing { background: #fdf2e3; color: var(--orange); }
.st-quoted { background: #e2eefa; color: var(--tech-blue); }
.st-won { background: #e3f3f0; color: var(--teal); }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--bg-soft); font-size: .95rem; }
.kv-k { font-family: var(--head); font-weight: 600; color: var(--navy); }
.kv-v { color: var(--text); overflow-wrap: anywhere; }
.file-link { display: block; color: var(--tech-blue); font-weight: 600; margin-bottom: 4px; }
.file-link:hover { text-decoration: underline; }

@media (max-width: 980px) {
  .rfq-grid { grid-template-columns: 1fr; }
  #admin-app { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; }
  .check-grid { grid-template-columns: 1fr; }
  [data-grid="process"] { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 600px) {
  [data-grid="process"] { grid-template-columns: 1fr !important; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
}
[hidden] { display: none !important; }
.step-optional { font-family: var(--head); font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; vertical-align: middle; margin-left: 8px; }
.split-media img.iso-seal { position: absolute; top: 16px; left: 16px; width: 104px; height: 104px; object-fit: contain; border-radius: 0; box-shadow: none; filter: drop-shadow(0 8px 18px rgba(10,20,45,.35)); }

/* ===================== ROADSENSE CO-BRANDED SECTION ===================== */
@font-face {
  font-family: "VarienRegular";
  src: url("/assets/roadsense/Varien.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Varien";
  src: url("/assets/roadsense/Varien.ttf") format("truetype");
  font-display: swap;
}
.rs-band {
  position: relative; overflow: hidden; color: #fff;
  background: #232526; /* RoadSense charcoal */
  padding: clamp(64px, 9vw, 110px) 0;
}
.rs-band::before {
  content: ""; position: absolute; inset: 0;
  background: url("/assets/roadsense/rs-contour-continuous.png") center / cover no-repeat;
  opacity: .10; pointer-events: none; z-index: 0;
}
.rs-band .container { position: relative; z-index: 2; }
.rs-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.rs-logo-wrap { display: grid; place-items: center; }
.rs-logo-wrap svg { width: min(320px, 70%); height: auto; }
.rs-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Montserrat", sans-serif; font-weight: 700; font-size: .78rem;
  letter-spacing: .2em; text-transform: uppercase; color: #F0A647; margin-bottom: 18px;
}
.rs-eyebrow::before { content: ""; width: 28px; height: 3px; background: #305CDE; }
.rs-title {
  font-family: "VarienRegular", "Varien", "Poppins", sans-serif; font-weight: 400;
  text-transform: uppercase; color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  line-height: 1.14; letter-spacing: .015em;
}
.rs-title .rs-hl { color: #F0A647; }
.rs-underline { width: 86px; height: 3px; background: #F0A647; margin: 20px 0 18px; }
.rs-body { font-family: "Montserrat", sans-serif; font-weight: 300; font-size: 1.04rem; color: #cfd3d6; max-width: 56ch; line-height: 1.7; }
.rs-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.rs-stat { background: #4D4D4D2e; border: 1px solid #ffffff1f; border-radius: 12px; padding: 18px 18px 16px; border-top: 3px solid #305CDE; }
.rs-stat:nth-child(2) { border-top-color: #F0A647; }
.rs-stat:nth-child(3) { border-top-color: #305CDE; }
.rs-stat .v { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 1.18rem; color: #fff; }
.rs-stat .l { font-family: "Montserrat", sans-serif; font-weight: 400; font-size: .82rem; color: #b8bdc2; margin-top: 4px; line-height: 1.45; }
/* RoadSense CTA: Mustard Bee accent + charcoal text + Montserrat, per RoadSense brand */
.rs-btn {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px;
  font-family: "Montserrat", sans-serif; font-weight: 700; font-size: .92rem;
  letter-spacing: .02em; color: #232526; background: #F0A647;
  padding: 13px 24px; border-radius: 999px; border: 2px solid #F0A647;
  transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.rs-btn svg { width: 17px; height: 17px; }
.rs-btn:hover { background: #F58F08; border-color: #F58F08; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(240,166,71,.28); }
.rs-btn:focus-visible { outline: 3px solid #305CDE; outline-offset: 3px; }
.rs-note { font-family: "Montserrat", sans-serif; font-size: .78rem; color: #8d9398; margin-top: 22px; }
@media (max-width: 980px) {
  .rs-grid { grid-template-columns: 1fr; }
  .rs-logo-wrap svg { width: min(240px, 60%); }
  .rs-stats { grid-template-columns: 1fr; }
}

/* RoadSense hero card (official v2 composition: photo + contour overlay + knockout logo + Varien title) */
.rs-card { position: relative; border-radius: 18px; overflow: hidden; box-shadow: 0 26px 60px rgba(0,0,0,.45); min-height: 460px; }
.rs-card > img.rs-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rs-card .rs-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,22,23,.05) 30%, rgba(20,22,23,.82) 78%, rgba(20,22,23,.92) 100%);
}
.rs-card .rs-overlay::after { content: ""; position: absolute; inset: 0; background: url("/assets/roadsense/rs-contour-continuous.png") center / 1600px auto no-repeat; opacity: .14; mix-blend-mode: screen; }
.rs-card-content { position: absolute; left: 26px; right: 26px; bottom: 24px; z-index: 2; }
.rs-card-content svg { width: 120px; height: auto; display: block; margin-bottom: 12px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.4)); }
.rs-card-title {
  font-family: "VarienRegular", "Varien", "Poppins", sans-serif; font-weight: 400; text-transform: uppercase;
  color: #fff; font-size: 1.45rem; letter-spacing: .02em; line-height: 1.15;
}
.rs-card-rule { width: 200px; height: 2px; background: rgba(255,255,255,.85); margin: 10px 0 10px; }
.rs-card-text { font-family: "Montserrat", sans-serif; font-weight: 300; font-size: .95rem; color: #e3e6e9; line-height: 1.55; max-width: 46ch; }
@media (max-width: 980px) { .rs-card { min-height: 400px; } }
