/* R&A International Logistics — site styles
   Plain CSS, no build step. Colors are defined once below. */

:root {
  --ink-950: #0b141c;
  --ink-900: #0d1821;
  --ink-800: #142430;
  --ink-700: #1d3140;
  --ink: #17222c;
  --muted: #56616b;
  --paper: #f4f1ea;
  --paper-2: #ebe6da;
  --white: #ffffff;
  --rule: #d6cfbf;
  --rule-dark: rgba(255, 255, 255, 0.14);
  --gold: #c99b3d;          /* from the logo mark; use on dark backgrounds */
  --gold-hover: #d8ad55;
  --gold-ink: #7d5a17;      /* darker gold for text on light backgrounds */
  --on-dark: rgba(255, 255, 255, 0.92);
  --on-dark-muted: rgba(255, 255, 255, 0.68);
  --error: #a3261b;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 80px;
  --radius: 2px;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 650; line-height: 1.1; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
::selection { background: var(--gold); color: var(--ink-950); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 1px;
}
.on-light :focus-visible,
.intro :focus-visible, .services :focus-visible, .offices :focus-visible, .contact-form :focus-visible {
  outline-color: var(--gold-ink);
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--gold); color: var(--ink-950);
  padding: 10px 16px; font-weight: 600; text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus { top: 12px; }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  font-stretch: 115%;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.eyebrow::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 28px; height: 2px; margin: -2px 0.75em 0 0; background: currentColor;
}
.eyebrow-light { color: var(--gold); }
.eyebrow .sep { opacity: 0.6; }
.nowrap { white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  font: inherit; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn-gold { background: var(--gold); color: var(--ink-950); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-hover); border-color: var(--gold-hover); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-dark { background: var(--ink-900); color: var(--white); border-color: var(--ink-900); }
.btn-dark:hover { background: var(--ink-700); border-color: var(--ink-700); }
.btn-outline { background: transparent; color: var(--ink); border-color: #b9b1a0; }
.btn-outline:hover { border-color: var(--ink); }

.text-link {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-weight: 600; font-size: 0.95rem;
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: border-color 0.18s, color 0.18s;
}
.text-link span { transition: transform 0.2s var(--ease); }
.text-link:hover { color: var(--gold-ink); border-color: var(--gold-ink); }
.text-link:hover span { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink-950);
  color: var(--white);
  border-bottom: 1px solid var(--rule-dark);
  transition: box-shadow 0.2s;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(0,0,0,0.25), 0 6px 18px rgba(0,0,0,0.18); }

.header-inner {
  display: flex; align-items: center; gap: 2rem;
  height: var(--header-h);
}
.brand { display: block; flex: none; padding: 4px 0; }
.brand img { height: 56px; width: auto; }

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: 2.25rem; }
.primary-nav a {
  position: relative;
  display: inline-block; padding: 0.5rem 0;
  font-size: 0.95rem; font-weight: 500;
  color: var(--on-dark-muted);
  text-decoration: none;
  transition: color 0.18s;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.primary-nav a:hover, .primary-nav a[aria-current="true"] { color: var(--white); }
.primary-nav a:hover::after, .primary-nav a[aria-current="true"]::after { transform: scaleX(1); }

.header-cta { min-height: 42px; padding: 0.55rem 1.1rem; font-size: 0.9rem; }

.menu-toggle {
  display: none;
  margin-left: auto;
  align-items: center; gap: 0.6rem;
  min-height: 44px; padding: 0 0.25rem 0 0.75rem;
  background: none; border: 0; color: var(--white);
  font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer;
}
.menu-toggle-bars { display: inline-grid; gap: 4px; width: 20px; }
.menu-toggle-bars span {
  display: block; height: 2px; background: currentColor;
  transition: transform 0.2s var(--ease), opacity 0.2s;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  background: var(--ink-950);
  border-top: 1px solid var(--rule-dark);
  /* Never taller than the screen: scrolls inside itself on short (landscape) screens */
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu nav { padding-block: 0.5rem 1.5rem; }
.mobile-menu li a {
  display: block; padding: 0.95rem 0;
  font-size: 1.25rem; font-weight: 600; font-stretch: 90%;
  text-decoration: none; color: var(--white);
  border-bottom: 1px solid var(--rule-dark);
}
.mobile-menu-calls { display: grid; gap: 0.5rem; margin-top: 1.25rem; }
.mobile-menu-calls a {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 48px; padding: 0 1rem;
  border: 1px solid rgba(255,255,255,0.25); border-radius: var(--radius);
  text-decoration: none; color: var(--white); font-weight: 600;
}
.mobile-menu-calls a span { color: var(--gold); font-weight: 500; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex; flex-direction: column;
  min-height: clamp(540px, calc(88vh - var(--header-h)), 760px);
  color: var(--white);
  background: var(--ink-900);
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 60% 50%;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11,20,28,0.92) 0%, rgba(11,20,28,0.78) 38%, rgba(11,20,28,0.25) 72%, rgba(11,20,28,0.15) 100%),
    linear-gradient(0deg, rgba(11,20,28,0.85) 0%, rgba(11,20,28,0) 32%);
}

.hero-content {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: clamp(56px, 9vh, 104px);
  padding-bottom: clamp(40px, 6vh, 72px);
}
.hero h1 {
  max-width: 11ch;
  margin-top: 1.25rem;
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  font-stretch: 82%;
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: -0.015em;
}
.hero-lede {
  max-width: 34rem;
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.55;
  color: var(--on-dark);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }

.hero-index { border-top: 1px solid var(--rule-dark); background: rgba(11,20,28,0.55); }
.hero-index-list { display: grid; grid-template-columns: repeat(3, 1fr); }
.hero-index-list li + li { border-left: 1px solid var(--rule-dark); }
.hero-index-list a {
  display: flex; align-items: baseline; gap: 0.9rem;
  padding: 1.35rem 1.5rem 1.35rem 0;
  text-decoration: none; color: var(--white);
  transition: color 0.18s;
}
.hero-index-list li + li a { padding-left: 1.5rem; }
.hero-index-list .num {
  font-size: 0.8rem; font-weight: 600; font-stretch: 115%;
  color: var(--gold); letter-spacing: 0.08em;
}
.hero-index-list .label { font-size: 1.15rem; font-weight: 600; font-stretch: 90%; }
.hero-index-list a:hover .label { color: var(--gold-hover); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section-head { max-width: 46rem; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2, .intro h2, .contact h2 {
  margin-top: 1rem;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-stretch: 85%;
  line-height: 1.04;
}
.section-sub { margin-top: 1rem; font-size: 1.1rem; color: var(--muted); max-width: 36rem; }

/* ---------- Intro ---------- */
.intro { background: var(--paper); }
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}
.intro-mark {
  display: flex; flex-direction: column;
  padding: 2rem 0 1.75rem;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}
.mark-label {
  font-size: 0.8rem; font-weight: 600; font-stretch: 120%;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-ink);
}
.mark-year {
  margin-top: 0.25rem;
  font-size: clamp(5.5rem, 13vw, 10.5rem);
  font-weight: 650; font-stretch: 78%;
  line-height: 0.88; letter-spacing: -0.035em;
  color: var(--ink);
}
.mark-places {
  margin-top: 1.25rem;
  font-size: 0.9rem; font-weight: 600; font-stretch: 115%;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.mark-places span { color: var(--gold-ink); padding-inline: 0.2em; }

.intro-text { margin-top: 1.5rem; font-size: 1.15rem; line-height: 1.65; max-width: 38rem; }

.facts {
  margin-top: 2.5rem;
  border-top: 1px solid var(--rule);
}
.facts > div {
  display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--rule);
}
.facts dt {
  font-size: 0.74rem; font-weight: 600; font-stretch: 115%;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.facts dt { padding-top: 0.2rem; }
.facts dd { font-weight: 500; }
.facts a { text-decoration-color: var(--rule); text-underline-offset: 3px; }
.facts a:hover { color: var(--gold-ink); text-decoration-color: currentColor; }

/* ---------- Services ---------- */
.services { background: var(--white); border-top: 1px solid var(--rule); }
.service-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.service { display: flex; flex-direction: column; }
.service-media { overflow: hidden; background: var(--paper-2); aspect-ratio: 4 / 3; }
.service-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.service:hover .service-media img { transform: scale(1.03); }
.service-body {
  display: flex; flex-direction: column; flex: 1;
  padding-top: 1.5rem; margin-top: 1.5rem;
  border-top: 1px solid var(--ink);
}
.service-num {
  font-size: 0.8rem; font-weight: 600; font-stretch: 115%;
  letter-spacing: 0.1em; color: var(--gold-ink);
}
.service h3 {
  margin-top: 0.5rem;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  font-stretch: 85%;
}
.service p { margin-top: 0.75rem; color: var(--muted); max-width: 26rem; }
.service .text-link { margin-top: auto; padding-top: 1.5rem; align-self: flex-start; border-bottom: 0; }
.service .text-link { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 5px; }
.service .text-link:hover { text-decoration-color: currentColor; }

/* ---------- Offices ---------- */
.offices { background: var(--paper); border-top: 1px solid var(--rule); }
.office-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.office {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--gold);
  padding: clamp(24px, 3.5vw, 44px);
}
.office-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.office h3 { font-size: clamp(2rem, 3.6vw, 2.75rem); font-stretch: 82%; }
.office-place {
  font-size: 0.8rem; font-weight: 600; font-stretch: 115%;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.office-details { margin-top: 1.75rem; border-top: 1px solid var(--rule); }
.office-details > div {
  display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem;
  padding: 0.95rem 0; border-bottom: 1px solid var(--rule);
}
.office-details dt {
  padding-top: 0.2rem;
  font-size: 0.74rem; font-weight: 600; font-stretch: 115%;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.office-details dd { min-width: 0; overflow-wrap: anywhere; }
.office-details a { text-decoration: none; }
.office-details a:hover .addr, .office-details a[href^="mailto"]:hover { color: var(--gold-ink); }
.office-details a[href^="mailto"] { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; }
.addr { display: block; }
.map-hint {
  display: inline-block; margin-top: 0.35rem;
  font-size: 0.85rem; font-weight: 600; color: var(--gold-ink);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(125,90,23,0.4);
}
.office-phone {
  font-size: clamp(1.35rem, 2.2vw, 1.6rem); font-weight: 650; font-stretch: 90%;
  letter-spacing: 0.01em; line-height: 1.2;
}
.office-phone:hover { color: var(--gold-ink); }
.office-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: auto; padding-top: 1.75rem; }

/* ---------- Contact ---------- */
.contact { background: var(--ink-900); color: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact-intro > p:not(.eyebrow) { margin-top: 1.25rem; color: var(--on-dark-muted); font-size: 1.1rem; max-width: 28rem; }
.contact-direct { margin-top: 2.5rem; border-top: 1px solid var(--rule-dark); }
.contact-direct li {
  display: grid; gap: 0.2rem;
  padding: 1.25rem 0; border-bottom: 1px solid var(--rule-dark);
}
.cd-city {
  font-size: 0.78rem; font-weight: 600; font-stretch: 115%;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
}
.contact-direct a { text-decoration: none; color: var(--white); overflow-wrap: anywhere; }
.contact-direct a[href^="tel"] { font-size: 1.45rem; font-weight: 650; font-stretch: 90%; }
.contact-direct a[href^="mailto"] { color: var(--on-dark-muted); text-decoration: underline; text-decoration-color: rgba(255,255,255,0.25); text-underline-offset: 4px; }
.contact-direct a:hover { color: var(--gold-hover); }

.contact-form-wrap { background: var(--white); color: var(--ink); padding: clamp(24px, 4vw, 48px); border-top: 4px solid var(--gold); }
.form-title { font-size: 1.6rem; font-stretch: 85%; }
.form-note { margin-top: 0.6rem; font-size: 0.95rem; color: var(--muted); }

.office-choice { margin: 1.75rem 0 0; padding: 0; border: 0; min-width: 0; }
.office-choice legend {
  padding: 0; margin-bottom: 0.6rem;
  font-size: 0.74rem; font-weight: 600; font-stretch: 115%;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.choice-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: flex; flex-direction: column; gap: 0.1rem;
  min-height: 64px; padding: 0.8rem 1rem 0.8rem 2.6rem;
  border: 1px solid #c9c1b1; border-radius: var(--radius);
  transition: border-color 0.18s, background-color 0.18s;
  position: relative;
}
.choice span::before {
  content: ""; position: absolute; left: 1rem; top: 1.05rem;
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid #8d8678; background: var(--white);
}
.choice strong { font-weight: 650; }
.choice small { font-size: 0.82rem; color: var(--muted); overflow-wrap: anywhere; }
.choice input:checked + span { border-color: var(--ink); background: #faf8f3; box-shadow: inset 0 0 0 1px var(--ink); }
.choice input:checked + span::before { border: 5px solid var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--gold-ink); outline-offset: 2px; }
.choice:hover span { border-color: var(--ink); }

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1rem; margin-top: 1.5rem; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.4rem; }
.field .req { color: var(--error); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white);
  border: 1px solid #b9b1a0; border-radius: var(--radius);
  transition: border-color 0.18s, box-shadow 0.18s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select {
  appearance: none; -webkit-appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2317222c' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(201,155,61,0.45);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--error); }
.field-error { margin-top: 0.35rem; font-size: 0.85rem; color: var(--error); font-weight: 500; }

.req-note { margin-top: 1rem; font-size: 0.85rem; color: var(--muted); }
.req-note span { color: var(--error); }
.btn-submit { margin-top: 1.25rem; }
.btn-submit:focus-visible { outline-color: var(--ink); }
.form-status:not(:empty) {
  margin-top: 1.25rem; padding: 1rem 1.1rem;
  background: var(--paper); border-left: 3px solid var(--gold);
  font-size: 0.95rem;
}
.form-status a { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-950); color: var(--on-dark-muted); font-size: 0.95rem; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.7fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 56px);
  padding-block: clamp(56px, 7vw, 88px) clamp(40px, 5vw, 56px);
}
.footer-logo { display: inline-block; }
.footer-logo img { height: 60px; width: auto; }
.footer-brand p { margin-top: 1.25rem; line-height: 1.6; }
.footer-h {
  font-size: 0.74rem; font-weight: 600; font-stretch: 115%;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 1rem;
}
.footer-nav li + li { margin-top: 0.5rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--gold-hover); }
.footer-office p + p { margin-top: 0.75rem; }
.footer-office a[href^="mailto"] { overflow-wrap: anywhere; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--rule-dark);
  font-size: 0.82rem; color: rgba(255,255,255,0.5);
}

/* ---------- Reveal (subtle) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .brand img { height: 42px; }
  .primary-nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }

  .intro-grid, .contact-grid { grid-template-columns: 1fr; }
  .intro-mark { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1.25rem; padding: 1.25rem 0; }
  .mark-label { width: 100%; }
  .mark-year { font-size: clamp(4.5rem, 18vw, 6.5rem); margin-top: 0; }
  .mark-places { margin-top: 0; }

  .service-list { grid-template-columns: 1fr; gap: 3.5rem; }
  .hero-index-list a { padding: 1.1rem 1rem 1.1rem 0; gap: 0.6rem; }
  .hero-index-list li + li a { padding-left: 1rem; }
  .hero-index-list .label { font-size: 1.02rem; white-space: nowrap; }
  .service { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 2rem; align-items: start; }
  .service-body { margin-top: 0; }
  .office-grid { grid-template-columns: 1fr; }
}

@media (min-width: 901px) {
  .mobile-menu { display: none !important; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero { min-height: 0; }
  .hero-content { padding-top: 56px; padding-bottom: 40px; }
  .hero-media img { object-position: 68% 50%; }
  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(11,20,28,0.5) 0%, rgba(11,20,28,0.72) 45%, rgba(11,20,28,0.92) 100%);
  }
  .hero h1 {
    max-width: none;
    /* Scales down on very narrow phones so "Transportation" always fits */
    font-size: min(2.6rem, calc((100vw - 2 * var(--gutter)) / 7.6));
  }
  .hero-actions .btn { flex: 1 1 auto; }

  .hero-index-list { grid-template-columns: 1fr; }
  .hero-index-list li + li { border-left: 0; border-top: 1px solid var(--rule-dark); }
  .hero-index-list a, .hero-index-list li + li a { padding: 1rem 0; }

  .facts > div { grid-template-columns: 1fr; gap: 0.25rem; }

  .service { display: flex; }
  .service-body { margin-top: 1.25rem; }
  .service-list { gap: 3rem; }

  .office-details > div { grid-template-columns: 1fr; gap: 0.25rem; }
  .office-actions .btn { flex: 1 1 100%; }

  .choice-row, .field-grid { grid-template-columns: 1fr; }
  .btn-submit { width: 100%; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; }
}

@media (max-width: 360px) {
  .hero .eyebrow .sep { display: none; }
}

/* Short screens: phones held sideways */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 0; }
  .hero-content { padding-top: 28px; padding-bottom: 28px; }
  .hero h1 { max-width: none; font-size: clamp(2rem, 4.6vw, 2.75rem); margin-top: 0.75rem; }
  .hero-lede { margin-top: 0.85rem; font-size: 1rem; max-width: 40rem; }
  .hero-actions { margin-top: 1.25rem; }
  .mobile-menu nav { padding-block: 0.25rem 1rem; }
  .mobile-menu li a { padding: 0.7rem 0; font-size: 1.1rem; }
  .mobile-menu-calls { grid-template-columns: 1fr 1fr; margin-top: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .service:hover .service-media img { transform: none; }
}

@media print {
  .site-header, .hero-media, .hero-index, .contact-form-wrap, .menu-toggle { display: none !important; }
  .hero, .contact, .site-footer { background: none; color: #000; }
  body { background: #fff; }
}
