/* Togedab Engineering & Construction Limited */

:root {
  /* Colour */
  --ink:        #13253F;   /* deep navy, body text and dark sections */
  --primary:    #1E5296;   /* logo blue, buttons and links */
  --primary-2:  #2E68B4;
  --white:      #FFFFFF;
  --paper:      #F5F6F7;   /* light grey section background */
  --flame:      #C43B2C;   /* logo only, never UI */
  --line:       rgba(19, 37, 63, 0.14);
  --line-dark:  rgba(255, 255, 255, 0.18);
  --chip:       rgba(19, 37, 63, 0.06);
  --tint:       rgba(30, 82, 150, 0.08);

  /* Radius */
  --radius:      16px;     /* cards, photos, image tiles, map */
  --radius-hero: 20px;     /* hero photo tiles */
  --radius-tag:  6px;      /* small tags and chips */
  --radius-pill: 999px;    /* buttons and CTAs */

  /* Type */
  --display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --body:    "Public Sans", "Segoe UI", system-ui, sans-serif;

  /* Space */
  --gutter:    64px;       /* side gutters */
  --section-y: 88px;       /* section top and bottom */
  --block:     40px;       /* between blocks inside a section */
  --head-gap:  12px;       /* inside a section heading group */
  --maxw:      1440px;

  /* Depth and motion */
  --shadow:    0 1px 2px rgba(19, 37, 63, .05), 0 6px 20px rgba(19, 37, 63, .07);
  --shadow-lg: 0 2px 4px rgba(19, 37, 63, .04), 0 18px 40px rgba(19, 37, 63, .12);
  --ease:      cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(30, 82, 150, .18); }

/* Accessible focus, visible on light and dark backgrounds */
:focus-visible { outline: 3px solid var(--primary-2); outline-offset: 2px; border-radius: 4px; }
.site-footer :focus-visible, .cta-band :focus-visible { outline-color: #9CC3F0; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--primary); color: #fff; padding: 12px 18px; z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }

.section-head { margin-bottom: var(--block); }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--primary); margin-bottom: var(--head-gap); }
.cta-band .eyebrow { color: rgba(255, 255, 255, .8); }
.section-head .eyebrow, .page-head .eyebrow { margin-top: 0; font-size: 13px; color: var(--primary); }
.section-head h2 { font-size: clamp(26px, 3.2vw, 32px); font-weight: 800; }
.section-head p { margin-top: var(--head-gap); color: rgba(19,37,63,.78); font-size: 17px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(19, 37, 63, .08); border-bottom-color: transparent; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 78px; gap: 24px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.nav a:hover { color: var(--primary); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--primary); }
.nav a.btn--primary, .nav a.btn--primary:hover { color: #fff; }
.nav .btn { padding: 11px 18px; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; cursor: pointer;
  color: var(--ink);
}

@media (min-width: 961px) {
  .nav a:not(.btn) { position: relative; padding: 6px 0; }
  .nav a:not(.btn)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
    background: var(--primary); transform: scaleX(0); transform-origin: left;
    transition: transform .25s var(--ease);
  }
  .nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
}

/* ---------- Buttons (full pill) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 44px; padding: 15px 28px; border-radius: var(--radius-pill);
  font-family: var(--body); font-size: 15px; font-weight: 600; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease,
              box-shadow .2s ease, transform .2s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(30, 82, 150, .2); }
.btn--primary:hover { background: var(--primary-2); box-shadow: 0 10px 22px rgba(30, 82, 150, .28); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--ink); border-color: rgba(19, 37, 63, .25); }
.btn--outline:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn--onDark { background: #fff; color: var(--ink); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.btn--onDark:hover { background: var(--paper); transform: translateY(-1px); }
.btn--block { width: 100%; }

/* ---------- Homepage hero: centred editorial block ---------- */
.hero-home { background: var(--white); padding: 40px 0 0; text-align: center; }
.hero-home__copy {
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  padding: 0 var(--gutter) 56px;
}
.eyebrow-row {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary);
}
.eyebrow-row::before, .eyebrow-row::after {
  content: ""; width: 40px; height: 1px; background: rgba(19, 37, 63, .25);
}
.hero-home h1 {
  max-width: 1000px;
  font-size: clamp(40px, 5.5vw, 76px); font-weight: 900; line-height: .97; letter-spacing: -0.04em;
}
.hero-home h1 .accent { color: var(--primary); }
.hero-home .lede { max-width: 640px; font-size: 19px; line-height: 1.58; color: rgba(19, 37, 63, .72); }
.hero-home .hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding-top: 10px; }

.hero-band {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
}
.band-tile {
  position: relative; height: 320px; margin: 0;
  border-radius: var(--radius-hero); overflow: hidden; background: var(--paper);
}
.band-tile img { width: 100%; height: 100%; object-fit: cover; }
.band-tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12, 24, 42, 0) 35%, rgba(12, 24, 42, .82) 100%);
}
.band-tile figcaption {
  position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 1;
  color: #fff; font-size: 14px; font-weight: 600; text-align: left; line-height: 1.3;
}

/* ---------- Facts row ---------- */
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  padding-top: var(--block); padding-bottom: 88px;
}
.facts-row + .section { padding-top: 0; }
.fact {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--paper); border-radius: var(--radius); padding: 24px 26px;
}
.fact .n { font-family: var(--display); font-size: 36px; font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; color: var(--primary); }
.fact .l { font-size: 14px; color: rgba(19, 37, 63, .72); }
.fact--ink { background: var(--ink); }
.fact--ink .n { color: #fff; font-size: 26px; }
.fact--ink .l { color: rgba(255, 255, 255, .8); }

/* ---------- Page hero (Filling Station page) ---------- */
.hero { background: var(--white); padding: 72px 0; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: -0.03em; }
.hero p.lede { margin-top: 20px; color: rgba(19,37,63,.75); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-photo img { width: 100%; height: 500px; object-fit: cover; }

/* ---------- Page header ---------- */
.page-head { background: var(--white); padding: 72px 0 56px; }
.page-head h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; }
.page-head p { margin-top: var(--head-gap); color: rgba(19,37,63,.75); font-size: 17px; }

/* ---------- Card grids ---------- */
.grid { display: grid; gap: 20px; align-items: stretch; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.section--paper .card { background: var(--white); }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--primary);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 14px; color: rgba(19,37,63,.78); }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: 1fr 56px 1fr 56px 1fr; align-items: stretch; }
.step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 30px; display: flex; flex-direction: column;
}
.step .num { font-family: var(--display); font-size: 40px; font-weight: 900; color: var(--primary); line-height: 1; }
.step h3 { font-size: 21px; font-weight: 700; margin: 16px 0 10px; }
.step p { font-size: 14px; color: rgba(19,37,63,.8); }
.step .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.step p + .tags { margin-top: 16px; }
.step .tags span {
  font-size: 12px; padding: 6px 10px; border: 1px solid var(--line);
  border-radius: var(--radius-tag); color: rgba(19,37,63,.8);
}
.arrow { display: flex; align-items: center; justify-content: center; width: 56px; color: var(--primary); }

/* ---------- Split section (filling station) ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  padding: var(--section-y) max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
  border-top: 1px solid var(--line);
}
.split__media { height: 340px; border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.split__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.split__copy { padding: 0 0 0 56px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.split__copy:first-child { padding: 0 56px 0 0; }
.split__copy h2 { font-size: clamp(22px, 2.6vw, 26px); font-weight: 700; }
.split__copy p { color: rgba(19,37,63,.82); }
.split__copy .meta { font-size: 14px; color: rgba(19,37,63,.7); }
.split__copy .btn { align-self: flex-start; }

/* ---------- Why / points ---------- */
.points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.point .rule { width: 30px; height: 3px; background: var(--primary); border-radius: 2px; margin-bottom: 12px; }
.point h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.point p { font-size: 14px; color: rgba(19,37,63,.78); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.shot { margin: 0; }
.shot img {
  width: 100%; height: 260px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.shot figcaption { margin-top: 10px; font-size: 14px; color: rgba(19,37,63,.75); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, #1E5296 0%, #1A4886 55%, #163C70 100%);
  color: #fff; text-align: center; padding: var(--section-y) 0;
}
.cta-band h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin: 0 auto; }
.cta-band p { margin: var(--head-gap) auto 0; color: rgba(255,255,255,.88); }
.cta-band .btn { margin-top: 16px; }
.cta-band .channels { margin-top: 18px; font-size: 13px; color: rgba(255,255,255,.8); }
.cta-band .channels a { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding: 52px 0 40px; }
.site-footer .top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.site-footer img.logo { height: 44px; width: auto; }
.site-footer .tagline { margin-top: 8px; font-size: 13px; color: rgba(255,255,255,.75); }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer nav a { color: rgba(255,255,255,.8); font-size: 14px; }
.site-footer nav a:hover { color: #fff; }
.site-footer hr { border: 0; border-top: 1px solid var(--line-dark); margin: 28px 0 20px; }
.site-footer .bottom { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,.78); }
.site-footer .bottom a { color: rgba(255,255,255,.88); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--block); align-items: start; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; }
.form-card h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: 16px; color: var(--ink);
  min-height: 48px; padding: 13px 14px; border: 1px solid rgba(19, 37, 63, .18); border-radius: 10px;
  background: var(--paper); width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); background: var(--white); box-shadow: 0 0 0 4px var(--tint);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(19,37,63,.55); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { margin-top: 14px; font-size: 13px; color: rgba(19,37,63,.7); }
.form-status { margin-top: 14px; font-size: 14px; padding: 12px 14px; border-radius: 10px; display: none; }
.form-status.is-ok { display: block; background: #E8F1E9; color: #1F5130; border: 1px solid #A9CBB2; }
.form-status.is-err { display: block; background: #FBEAE8; color: #8A2318; border: 1px solid #E2AFA8; }

.channels-list { display: grid; gap: 12px; }
.channel {
  display: flex; gap: 14px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; text-decoration: none; color: inherit;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s ease;
}
a.channel:hover { border-color: var(--primary); text-decoration: none; }
.channel .ico {
  width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--primary); flex: none;
  display: flex; align-items: center; justify-content: center;
}
.channel .k { font-size: 13px; font-weight: 600; color: var(--primary); }
.channel .v { font-size: 16px; }
.map-embed { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.map-embed iframe { display: block; width: 100%; height: 260px; border: 0; }

/* ---------- Services list ---------- */
.svc-row { display: grid; grid-template-columns: 56px 1fr; gap: 24px; padding: 26px 0; border-top: 1px solid var(--line); }
.svc-row:first-child { border-top: 0; }
.svc-row .n { font-family: var(--display); font-size: 22px; font-weight: 800; color: var(--primary); }
.svc-row h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.svc-row p { font-size: 15px; color: rgba(19,37,63,.8); }
.svc-row .more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; font-size: 14px; font-weight: 600; }
.svc-row .more::after { content: "\2192"; margin-left: 6px; transition: transform .2s var(--ease); }
.svc-row .more:hover { text-decoration: none; }
.svc-row .more:hover::after { transform: translateX(3px); }

/* ---------- Detail strip ---------- */
.detail-strip { display: grid; grid-template-columns: repeat(4, 1fr); }
.detail-strip .d { padding: 0 32px; border-left: 1px solid var(--line); }
.detail-strip .d:first-child { padding-left: 0; border-left: 0; }
.detail-strip .k { font-size: 13px; font-weight: 600; color: var(--primary); margin-bottom: 6px; }
.detail-strip .v { font-size: 16px; }

/* ---------- Stats (About) ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 200px)); gap: 16px; margin-top: 26px; }
.stat { background: var(--white); border-radius: var(--radius); padding: 22px 24px; }
.stat .n { font-family: var(--display); font-size: 36px; font-weight: 900; color: var(--primary); line-height: 1.1; }
.stat .l { font-size: 14px; color: rgba(19,37,63,.72); margin-top: 6px; }

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.value { border-top: 2px solid var(--primary); padding-top: 14px; }
.value h4 { font-size: 15px; font-weight: 600; color: var(--primary); font-family: var(--body); margin-bottom: 6px; }
.value p { font-size: 14px; color: rgba(19,37,63,.78); }
.values-title { font-size: 19px; font-weight: 700; margin: var(--block) 0 16px; }

/* ---------- Mobile action bar ---------- */
.action-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid rgba(19, 37, 63, .08);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  gap: 10px;
}
.action-bar .icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 46px; border: 1px solid rgba(19, 37, 63, .14); border-radius: var(--radius-pill);
  background: var(--white); color: var(--primary); flex: none;
}
.action-bar .btn { flex: 1; min-height: 46px; padding: 12px 16px; font-size: 14px; white-space: nowrap; }

/* ---------- Content fades up as it scrolls into view (JS only) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Hover (pointer devices only, interactive elements only) ---------- */
@media (hover: hover) {
  a.channel:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
  .split__media:hover img { transform: scale(1.04); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
/* Tablet landscape and small laptops */
@media (max-width: 1080px) {
  :root { --gutter: 40px; --section-y: 72px; }
  .grid--4, .facts { grid-template-columns: repeat(2, 1fr); }
  .points { grid-template-columns: repeat(2, 1fr); gap: 28px 32px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-band { grid-template-columns: repeat(2, 1fr); }
  .band-tile { height: 260px; }

  /* Process stacks, arrows turn to point down */
  .process { grid-template-columns: 1fr; gap: 0; }
  .arrow { width: auto; height: 44px; transform: rotate(90deg); }

  .hero .wrap { gap: 40px; }
  .hero-photo img { height: 420px; }
  .split__copy { padding-left: 32px; }
  .split__copy:first-child { padding-right: 32px; }
}

/* Tablet portrait: menu collapses behind the toggle */
@media (max-width: 960px) {
  .site-header .wrap { min-height: 64px; }
  .nav {
    position: fixed; inset: 64px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(19, 37, 63, .08);
    padding: 8px var(--gutter) 20px;
    max-height: calc(100vh - 64px); overflow-y: auto;
    display: none;
  }
  .nav.is-open { display: flex; animation: nav-in .2s ease-out; }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav .btn { margin-top: 16px; padding: 15px 28px; border-bottom: 0; font-size: 15px; }
  .nav-toggle { display: inline-flex; margin-right: -10px; }
}

@media (max-width: 860px) {
  .hero { padding: 48px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero-photo img { height: 380px; }
  .page-head { padding: 48px 0 40px; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split__media { order: -1; height: 320px; }
  .split__copy, .split__copy:first-child { padding: 0; }
  .grid--3, .grid--2 { grid-template-columns: 1fr 1fr; }
  .detail-strip { grid-template-columns: 1fr 1fr; gap: 24px 0; }
  .detail-strip .d { padding: 0 24px; }
  .detail-strip .d:nth-child(odd) { padding-left: 0; border-left: 0; }
  .values { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* Phones: own type scale, left aligned except hero and CTA band */
@media (max-width: 720px) {
  :root { --gutter: 20px; --section-y: 52px; --block: 22px; }
  body { font-size: 15px; }
  .site-header .wrap { min-height: 58px; }
  .brand img { height: 30px; }
  .nav { inset: 58px 0 auto 0; max-height: calc(100vh - 58px); }

  /* Homepage hero */
  .hero-home { padding-top: 44px; }
  .hero-home__copy { gap: 18px; padding-bottom: 32px; }
  .eyebrow-row { font-size: 11px; gap: 10px; }
  .eyebrow-row::before, .eyebrow-row::after { width: 24px; }
  .hero-home h1 { font-size: 40px; }
  .hero-home .lede { font-size: 15px; }
  .hero-home .hero-actions { flex-direction: column; align-self: stretch; gap: 10px; padding-top: 0; }
  .hero-home .hero-actions .btn { width: 100%; }
  .hero-band { grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 12px; }
  .band-tile { height: 140px; border-radius: var(--radius); }
  .band-tile figcaption { left: 12px; right: 12px; bottom: 12px; font-size: 12.5px; }

  .facts { gap: 10px; padding-top: var(--block); padding-bottom: 52px; }
  .fact { padding: 18px; gap: 4px; }
  .fact .n { font-size: 28px; }
  .fact--ink .n { font-size: 20px; }
  .fact .l { font-size: 12.5px; }

  /* Other page heroes */
  .hero { padding: 32px 0 44px; }
  .hero h1 { font-size: clamp(30px, 8.5vw, 38px); }
  .hero p.lede { font-size: 15px; margin-top: 14px; }
  .hero-actions { margin-top: 22px; }
  .hero-actions .btn { width: 100%; }
  .hero-photo img { height: 240px; }
  .page-head { padding: 36px 0 28px; }
  .page-head h1 { font-size: clamp(28px, 8vw, 34px); }
  .page-head p, .section-head p { font-size: 15px; }
  .page-head + .section { padding-top: 36px; }

  .section-head h2 { font-size: 22px; }
  .eyebrow, .section-head .eyebrow, .page-head .eyebrow { font-size: 12.5px; }

  /* Info cards: no border, flat paper surface */
  .grid--4, .grid--3, .grid--2, .points, .values { grid-template-columns: 1fr; }
  .grid { gap: 12px; }
  .card, .section--paper .card { background: var(--paper); border: 0; padding: 20px; }
  .section--paper .card { background: var(--white); }
  .card h3 { font-size: 17px; }
  .card p, .point p, .value p { font-size: 14px; }

  /* Process */
  .step { padding: 20px; }
  .step .num { font-size: 30px; }
  .step h3 { font-size: 18px; margin: 12px 0 8px; }
  .step .tags { gap: 6px; }
  .step .tags span { background: var(--chip); border: 0; color: rgba(19, 37, 63, .75); font-size: 12.5px; }
  .arrow { height: 36px; }

  .split { gap: var(--block); }
  .split__media { height: 200px; }
  .split__copy .btn { align-self: stretch; }

  .point { background: var(--paper); border-radius: var(--radius); padding: 18px 20px; }
  .points { gap: 12px; }

  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .shot img { height: 130px; box-shadow: none; }
  .shot figcaption { font-size: 12.5px; margin-top: 8px; }
  .gallery .shot:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .gallery .shot:last-child:nth-child(odd) img { height: 200px; }

  .svc-row { grid-template-columns: 36px 1fr; gap: 14px; padding: 20px 0; }
  .svc-row .n { font-size: 18px; }
  .svc-row h3 { font-size: 18px; }

  .detail-strip { grid-template-columns: 1fr; gap: 0; background: var(--white); border-radius: var(--radius); padding: 4px 18px; }
  .detail-strip .d, .detail-strip .d:nth-child(odd) {
    display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
    padding: 14px 0; border-left: 0; border-top: 1px solid var(--line);
  }
  .detail-strip .d:first-child { border-top: 0; }
  .detail-strip .k { margin: 0; flex: none; }
  .detail-strip .v { text-align: right; font-size: 15px; }

  .stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .stat { padding: 16px 14px; }
  .stat .n { font-size: 26px; }
  .stat .l { font-size: 12.5px; }

  .value { background: var(--paper); border-top: 0; border-left: 3px solid var(--primary); border-radius: var(--radius); padding: 16px 18px; }

  .field-row { grid-template-columns: 1fr; row-gap: 0; }
  .form-card { padding: 24px 20px; border: 0; }
  .map-embed iframe { height: 220px; }
  .channel { padding: 14px 16px; }

  .cta-band h2 { font-size: 24px; }
  .cta-band p { font-size: 15px; }
  .cta-band .btn { width: 100%; }
  main .wrap > p > .btn { width: 100%; }

  .site-footer { padding: 40px 0 104px; }   /* keeps the sticky action bar off the footer */
  .site-footer .top { flex-direction: column; align-items: flex-start; }
  .site-footer nav { gap: 0 20px; }
  .site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .site-footer .bottom { flex-direction: column; gap: 12px; font-size: 12.5px; }

  .action-bar { display: flex; }
}

/* Small phones */
@media (max-width: 380px) {
  .hero-home h1 { font-size: 34px; }
  .stats { gap: 8px; }
  .stat { padding: 14px 8px; }
  .stat .n { font-size: 22px; }
  .action-bar { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .action-bar .icon-btn { width: 46px; }
  .action-bar .btn { padding: 12px 10px; }
  .action-bar .btn .xs-hide { display: none; }
}

@keyframes nav-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media print {
  .site-header, .action-bar, .cta-band { display: none; }
}
