/* ITS Roads — site stylesheet
   Layout: full-bleed photographic bands separated by concrete-toned content sections;
   a yellow "road stripe" rule marks section starts. */
:root {
  --ink: #22231f;        /* asphalt charcoal */
  --ink-2: #5a5a55;      /* logo gray */
  --ink-3: #7b7b74;
  --paper: #f7f6f1;      /* concrete off-white */
  --paper-2: #edece6;
  --line: #d8d6cd;
  --accent: #e9cb4e;     /* ITS Roads yellow (logo) */
  --accent-deep: #b8951a;/* yellow for text on light ground */
  --road: #0b1b2b;       /* ITS Roads navy: dark section ground */
  --road-2: #14283c;
  --cyan: #1b8fc7;       /* ITS Roads cyan: links and secondary accents */
  --white: #ffffff;
  --font-display: "Overpass", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", Helvetica, Arial, sans-serif;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .5em; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
p.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 62ch; }
.eyebrow { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--accent-deep); display: inline-flex; align-items: center; gap: .6em; margin-bottom: .9em; }
.eyebrow::before { content: ""; width: 28px; height: 4px; background: var(--accent); border-radius: 2px; }
.dark .eyebrow { color: var(--accent); }
ul { padding-left: 1.2em; }
li { margin-bottom: .35em; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }
section { padding-block: clamp(48px, 8vw, 96px); }
section.tight { padding-block: clamp(32px, 5vw, 56px); }
.dark { background: var(--road); color: #e9e8e2; }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.dark p.lede { color: #cfcec6; }
.alt { background: var(--paper-2); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Links in running text */
main p a, main li a, details a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 2px; }
main p a:hover, main li a:hover { color: var(--road); }
.dark main p a, .dark p a, .dark li a { color: #7cc4ea; }

/* Two-row header: utility top bar + primary navigation */
.topbar { background: #061220; color: #b9c4cf; font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 34px; flex-wrap: wrap; }
.topbar a { color: #e4ebf1; text-decoration: none; }
.topbar a:hover { color: var(--accent); }
.topbar .links { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar .fam { color: #8fa1b3; }
@media (max-width: 700px) { .topbar .wrap > span:first-child { display: none; } .topbar .fam { display: none; } }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--road); color: #fff; border-bottom: 3px solid var(--accent); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand img { height: 40px; width: auto; }
.brand span { font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #cfcec6; max-width: 150px; line-height: 1.25; }
.brand span { display: none; }  /* tagline removed from the bar: it collided with the menu at common widths; the logo carries the name */
@media (max-width: 1300px) and (min-width: 1181px) { .nav a { padding: 10px 8px; font-size: .9rem; } .nav .btn { padding-left: 12px; padding-right: 12px; } .site-header .wrap { gap: 12px; } }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; min-width: 0; }
.nav a { color: #fff; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: .95rem; padding: 10px 12px; border-radius: 4px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,.08); }
.nav .has-menu { position: relative; }
.nav .menu { display: none; position: absolute; top: 100%; left: 0; background: var(--road-2); min-width: 300px; padding: 8px; border-radius: 6px; box-shadow: 0 16px 40px rgba(0,0,0,.35); border-top: 3px solid var(--accent); }
.nav .has-menu:hover .menu, .nav .has-menu:focus-within .menu { display: block; }
.nav .menu a { display: block; font-weight: 500; padding: 9px 12px; white-space: normal; }
.nav .menu a small { display: block; color: #b9b8b0; font-family: var(--font-body); font-weight: 400; font-size: .85rem; }
.btn { display: inline-block; white-space: nowrap; font-family: var(--font-display); font-weight: 700; text-decoration: none; padding: 12px 20px; border-radius: 4px; background: var(--accent); color: var(--ink) !important; border: 2px solid var(--accent); line-height: 1.1; }
.btn:hover { background: #f2d766; border-color: #f2d766; }
.btn.ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.55); }
.btn.ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn.ghost-dark { background: transparent; color: var(--ink) !important; border-color: var(--ink-2); }
.btn.ghost-dark:hover { background: var(--ink); color: #fff !important; }
.nav-toggle { display: none; background: none; border: 2px solid rgba(255,255,255,.5); color: #fff; border-radius: 4px; padding: 8px 10px; font: inherit; }
@media (max-width: 1180px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--road); flex-direction: column; align-items: stretch; padding: 10px var(--gutter) 18px; border-bottom: 3px solid var(--accent); gap: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; }
  .nav .menu { display: block; position: static; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 14px; }
  .nav .btn { margin-top: 12px; text-align: center; border-bottom: 0; white-space: normal; }
}

/* Hero */
.hero { position: relative; color: #fff; background: var(--road); overflow: hidden; isolation: isolate; }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20,21,18,.88) 0%, rgba(20,21,18,.72) 45%, rgba(20,21,18,.35) 100%); }
.hero .wrap { padding-block: clamp(64px, 11vw, 150px); max-width: var(--max); }
.hero h1 { max-width: 16ch; }
.hero p.lede { color: #e4e3dc; max-width: 58ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.hero.sub .wrap { padding-block: clamp(48px, 8vw, 110px); }
.hero .tag { font-family: var(--font-display); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; color: var(--accent); margin-bottom: 1rem; }
.hero .credit { position: absolute; right: 12px; bottom: 8px; font-size: .72rem; color: rgba(255,255,255,.65); }

/* Strip of facts */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0; border-block: 1px solid var(--line); background: var(--white); }
.facts div { padding: 20px var(--gutter); border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts b { display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; line-height: 1; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.facts span { color: var(--ink-2); font-size: .95rem; }

/* Grids and cards */
.grid { display: grid; gap: 28px; }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.c4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid > * { min-width: 0; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin-bottom: .2em; }
.card p { color: var(--ink-2); margin-bottom: .6em; }
.card .more { margin-top: auto; font-family: var(--font-display); font-weight: 700; text-decoration: none; color: var(--ink); }
.card .more::after { content: " \2192"; }
.card .more:hover { color: var(--accent-deep); }
.dark .card { background: var(--road-2); border-color: rgba(255,255,255,.1); color: #e9e8e2; }
.dark .card p { color: #c9c8c0; }
.dark .card .more { color: #fff; }
.dark .card .more:hover { color: var(--accent); }
.plain { background: transparent; border: 0; }
.plain .body { padding: 14px 0 0; }

/* Split media/text */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.flip > figure { order: 2; }
.split figure { margin: 0; }
.split img { border-radius: var(--radius); width: 100%; }
.split figcaption { font-size: .85rem; color: var(--ink-3); margin-top: 8px; }
.dark .split figcaption { color: #b1b0a8; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.flip > figure { order: 0; } }

/* Checklist of capabilities */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .42em; width: 16px; height: 16px; background: var(--accent); border-radius: 3px; clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); }
.cols2 { columns: 2; column-gap: 40px; }
@media (max-width: 700px) { .cols2 { columns: 1; } }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; counter-reset: step; }
.steps div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; counter-increment: step; }
.steps div::before { content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--accent-deep); display: block; margin-bottom: 6px; }
.dark .steps div { background: var(--road-2); border-color: rgba(255,255,255,.1); }

/* Project entries */
.project { display: grid; grid-template-columns: 340px 1fr; gap: clamp(24px, 4vw, 48px); padding-block: clamp(32px, 5vw, 56px); border-top: 1px solid var(--line); }
.project:first-of-type { border-top: 0; }
.project figure { margin: 0; }
.project img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.project .meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; color: var(--ink-2); margin-bottom: 10px; }
.project .meta b { color: var(--ink); }
.project h3 { font-size: 1.45rem; }
@media (max-width: 800px) { .project { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chips span { font-size: .8rem; font-family: var(--font-display); font-weight: 600; background: var(--paper-2); border: 1px solid var(--line); padding: 4px 9px; border-radius: 999px; }
.dark .chips span { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.gallery figure { margin: 0; }
.gallery img { aspect-ratio: 4/3; object-fit: cover; width: 100%; border-radius: var(--radius); }
.gallery figcaption { font-size: .85rem; color: var(--ink-3); margin-top: 6px; }
.dark .gallery figcaption { color: #b1b0a8; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--font-display); font-weight: 700; background: var(--paper-2); }

/* FAQ */
details { border-top: 1px solid var(--line); padding: 14px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent-deep); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "\2013"; }
details p { margin-top: 10px; color: var(--ink-2); max-width: 70ch; }

/* CTA band */
.cta { background: var(--accent); color: var(--ink); }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 36px; }
.cta h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.cta p { margin: 4px 0 0; color: #3b3a2e; }
.cta .btn { background: var(--ink); border-color: var(--ink); color: #fff !important; }
.cta .btn:hover { background: #000; }

/* Forms */
form.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form.contact .full { grid-column: 1 / -1; }
label { display: block; font-family: var(--font-display); font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
input, select, textarea { width: 100%; font: inherit; padding: 11px 12px; border: 1px solid #b9b7ae; border-radius: 4px; background: #fff; color: var(--ink); }
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 16px; border-radius: 4px; border: 1px solid var(--line); background: var(--white); }
.notice.ok { border-color: #8fbf6b; background: #f1f8ea; }
.notice.err { border-color: #d98282; background: #fbeeee; }
@media (max-width: 640px) { form.contact { grid-template-columns: 1fr; } }

/* Sister companies */
.family { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.family a { display: block; text-decoration: none; background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--accent); border-radius: var(--radius); padding: 20px 22px; }
.family a:hover { border-color: var(--ink); border-left-color: var(--accent); }
.family b { font-family: var(--font-display); font-size: 1.15rem; display: block; margin-bottom: 4px; }
.family small { color: var(--ink-3); display: block; margin-top: 8px; font-size: .85rem; }
.family p { color: var(--ink-2); margin: 0; }

/* Footer */
.site-footer { background: var(--ink); color: #c9c8c0; padding-block: 48px 28px; font-size: .95rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; margin-bottom: 10px; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.site-footer a { color: #e9e8e2; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; margin-top: 10px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .85rem; color: #a3a29a; }
.site-footer img { height: 34px; width: auto; margin-bottom: 12px; }
@media (max-width: 860px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* Utilities */
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.center { text-align: center; }
.muted { color: var(--ink-2); }
.dark .muted { color: #c9c8c0; }
.stripe { height: 6px; background: repeating-linear-gradient(90deg, var(--accent) 0 48px, transparent 48px 72px); }
.small { font-size: .9rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
