/* =================================================================
   ODYSSEY SCAFFOLDING — homepage styles
   Aesthetic: bold industrial-editorial
   Brand tokens sampled from the real logo.
   ================================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand colours (exact, from logo) */
  --navy:      #282E6A;   /* primary / dark sections */
  --navy-deep: #1E2352;   /* deeper navy for gradients */
  --amber:     #FFB613;   /* accent / CTA */
  --amber-dk:  #E39E00;   /* amber hover */
  --white:     #FFFFFF;
  --paper:     #F6F5F1;   /* warm off-white light section */
  --paper-2:   #EFEDE6;   /* slightly deeper paper */
  --ink:       #15172E;   /* body text on light */
  --ink-soft:  #4A4D63;   /* secondary text on light */
  --line:      #E2E0D8;   /* hairline on light */

  /* Typography */
  --font-head: "Saira", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;

  /* Type scale (clamped, kept to a tight set) */
  --fs-display: clamp(2.6rem, 6vw, 4.6rem);
  --fs-h1:      clamp(2.4rem, 5.2vw, 4rem);
  --fs-h2:      clamp(1.9rem, 3.4vw, 2.9rem);
  --fs-h3:      clamp(1.15rem, 1.6vw, 1.4rem);
  --fs-lead:    clamp(1.1rem, 1.5vw, 1.3rem);
  --fs-body:    1.0625rem;
  --fs-small:   0.9rem;
  --fs-eyebrow: 0.8rem;

  /* Spacing scale */
  --s-1: 0.5rem;
  --s-2: 0.75rem;
  --s-3: 1rem;
  --s-4: 1.5rem;
  --s-5: 2rem;
  --s-6: 3rem;
  --s-7: 4.5rem;
  --s-8: 6.5rem;

  --container: 1200px;
  --radius: 4px;           /* squared / engineered, not pill-round */
  --radius-lg: 8px;
  --header-h: 84px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.05; margin: 0; font-weight: 700; }
p { margin: 0 0 var(--s-3); }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.section { padding-block: clamp(3.5rem, 8vw, var(--s-8)); }

/* ---------- Shared bits ---------- */
.eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-dk);
  margin: 0 0 var(--s-3);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--amber);
  display: inline-block;
}
.eyebrow--onDark { color: var(--amber); }

.section-title { font-size: var(--fs-h2); letter-spacing: -0.01em; color: var(--navy); font-weight: 800; }
.section-title--onDark { color: var(--white); }
.section-head { max-width: 620px; margin-bottom: clamp(2rem, 4vw, var(--s-6)); }
.section-intro { color: var(--ink-soft); font-size: var(--fs-lead); margin-top: var(--s-3); }
.lead-para { font-size: var(--fs-lead); color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  padding: 0.85em 1.5em;
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 2px solid var(--btn-bg);
  cursor: pointer;
  transition: transform .15s var(--ease), background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(0,0,0,.5); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 1em 1.8em; font-size: 1.02rem; }
.btn--block { display: flex; width: 100%; margin-bottom: var(--s-2); }

.btn--amber  { --btn-bg: var(--amber); --btn-fg: var(--navy); border-color: var(--amber); }
.btn--amber:hover { background: var(--amber-dk); border-color: var(--amber-dk); }
.btn--navy   { --btn-bg: var(--navy); --btn-fg: var(--white); }
.btn--navy:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn--ghost  { --btn-bg: transparent; --btn-fg: var(--white); border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn--whatsapp { --btn-bg: #25D366; --btn-fg: #06371b; border-color: #25D366; }
.btn--whatsapp:hover { background: #1FB955; border-color: #1FB955; }
.wa-glyph { display: inline-flex; }

/* =================================================================
   HEADER
   ================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: box-shadow .25s var(--ease);
}
.site-header.scrolled { box-shadow: 0 6px 22px -10px rgba(0,0,0,.55); }
.header-inner {
  display: flex; align-items: center; gap: var(--s-4);
  min-height: var(--header-h);
}
.site-logo { display: block; flex-shrink: 0; }
.site-logo img { height: clamp(40px, 4vw, 54px); width: auto; object-fit: contain; }

.main-nav { display: flex; gap: clamp(1rem, 2vw, 2rem); margin-left: var(--s-5); }
.main-nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  color: rgba(255,255,255,.9);
  padding: 0.4rem 0;
  position: relative;
  transition: color .2s var(--ease);
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--amber);
  transition: width .25s var(--ease);
}
.main-nav a:hover { color: var(--white); }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: var(--s-4); margin-left: auto; }
.header-phone { display: flex; flex-direction: column; line-height: 1.1; text-align: right; }
.header-phone__label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); font-family: var(--font-head); font-weight: 600; }
.header-phone__num { font-family: var(--font-head); font-weight: 700; color: var(--white); font-size: 1.1rem; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; padding: 10px;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 3px; width: 100%; background: var(--white); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

.mobile-nav { display: flex; }
.mobile-nav[hidden] { display: none; }   /* the [hidden] attr must win over display:flex */
.mobile-nav {
  flex-direction: column; gap: var(--s-1);
  background: var(--navy-deep);
  padding: var(--s-4) clamp(1.1rem, 4vw, 2.5rem) var(--s-5);
  border-top: 1px solid rgba(255,255,255,.08);
}
.mobile-nav a { font-family: var(--font-head); font-weight: 600; color: var(--white); padding: 0.7rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-nav .btn { margin-top: var(--s-3); border-bottom: none; }
.mobile-nav__call { color: var(--amber) !important; border-bottom: none !important; }

/* =================================================================
   HERO
   ================================================================= */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(30,35,82,.92) 0%, rgba(40,46,106,.78) 42%, rgba(40,46,106,.30) 100%),
    linear-gradient(0deg, rgba(21,23,46,.55) 0%, rgba(21,23,46,0) 40%);
}
/* Fill the space above the strip and vertically centre the text, biased slightly down */
.hero__inner {
  position: relative; z-index: 2;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(3rem, 13vh, 8rem);   /* larger top padding nudges the block down from centre */
  padding-bottom: clamp(2rem, 5vh, 3.5rem);
}
.hero__title {
  font-size: var(--fs-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-4);
  max-width: 16ch;
  text-shadow: 0 2px 30px rgba(0,0,0,.25);
}
.hero__sub { font-size: var(--fs-lead); max-width: 46ch; color: rgba(255,255,255,.92); margin-bottom: var(--s-5); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* Slim proof strip pinned inside the hero */
.hero__strip {
  position: relative; z-index: 2;
  /* strip sits at the bottom naturally now that .hero__inner takes the flex space */
  background: rgba(21,23,46,.55);
  backdrop-filter: blur(4px);
  border-top: 2px solid var(--amber);
}
.hero__strip-inner {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3) var(--s-6);
  padding-block: var(--s-3);
  font-size: var(--fs-small);
  color: rgba(255,255,255,.85);
}
.hero__strip-inner strong { color: var(--white); font-family: var(--font-head); }

/* =================================================================
   ABOUT
   ================================================================= */
.about { background: var(--white); position: relative; overflow: hidden; }
/* Faint scaffolding line-drawing behind the section (client-supplied image) */
.about::before {
  content: "";
  position: absolute; inset: 0;
  background: url(assets/images/brand/scaffold-bg.png) no-repeat left top;
  background-size: cover;
  opacity: 1;              /* image is already light — used at full strength */
  pointer-events: none;
  z-index: 0;
}
.about__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, var(--s-7)); align-items: start; }
.about__lead { position: sticky; top: calc(var(--header-h) + 1rem); }
.about__who { font-weight: 500; color: var(--navy); border-left: 3px solid var(--amber); padding-left: var(--s-3); }

/* =================================================================
   SERVICES
   ================================================================= */
.services { background: var(--paper); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-5) var(--s-4) var(--s-4);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.service-card__rule {
  position: absolute; left: 0; top: 0;
  width: 4px; height: 0;
  background: var(--amber);
  transition: height .3s var(--ease);
}
.service-card h3 { font-size: var(--fs-h3); color: var(--navy); font-weight: 700; margin-bottom: var(--s-2); }
.service-card p { color: var(--ink-soft); font-size: var(--fs-small); margin: 0; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(40,46,106,.55); border-color: transparent; }
.service-card:hover .service-card__rule { height: 100%; }

/* =================================================================
   SPLIT — domestic / commercial
   ================================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; }
.split__panel { display: grid; grid-template-rows: auto 1fr; }
.split__media { aspect-ratio: 16 / 10; overflow: hidden; }
.split__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.split__panel:hover .split__media img { transform: scale(1.05); }
.split__content { padding: clamp(2rem, 4vw, var(--s-7)) clamp(1.5rem, 4vw, var(--s-6)); }
.split__panel--domestic .split__content { background: var(--navy); color: rgba(255,255,255,.9); }
.split__panel--domestic .eyebrow { color: var(--amber); }
.split__panel--commercial .split__content { background: var(--navy-deep); color: rgba(255,255,255,.9); }
.split__panel--commercial .eyebrow { color: var(--amber); }
.split__title { font-size: var(--fs-h2); color: var(--white); font-weight: 800; margin-bottom: var(--s-3); }

.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: var(--s-4) 0 var(--s-5); }
.tag-list li {
  font-family: var(--font-head); font-weight: 600; font-size: 0.82rem;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  padding: 0.35em 0.9em;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.tag-list li:hover { border-color: var(--amber); background: rgba(255,182,19,.12); }

/* =================================================================
   USES — editorial list
   ================================================================= */
.uses { background: var(--white); }
.uses__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, var(--s-7)); align-items: start; }
.uses__list { columns: 2; column-gap: var(--s-6); }
.uses__list li {
  break-inside: avoid;
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--navy);
  display: flex; align-items: baseline; gap: 0.7rem;
}
.uses__list li::before { content: ""; width: 8px; height: 8px; background: var(--amber); flex-shrink: 0; transform: translateY(-1px); }

/* =================================================================
   SHOWCASE
   ================================================================= */
.showcase { background: var(--paper); padding-bottom: clamp(3.5rem, 8vw, var(--s-8)); }
.showcase__strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(240px, 26vw, 340px);
  gap: var(--s-3);
  overflow-x: auto;
  padding: var(--s-2) clamp(1.1rem, 4vw, 2.5rem) var(--s-4);
  scroll-snap-type: x proximity;      /* proximity = smoother free-dragging than mandatory */
  scrollbar-width: thin;
  cursor: grab;                        /* signals it's draggable on desktop */
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;   /* momentum swipe on iOS */
}
.showcase__strip.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;              /* don't fight the drag */
  scroll-behavior: auto;
  user-select: none;
}
/* stop images ghost-dragging and swallowing the swipe */
.showcase__item img { -webkit-user-drag: none; user-select: none; }
.showcase__item {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-lg);
  scroll-snap-align: start;
}
.showcase__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.showcase__item:hover img { transform: scale(1.06); }

/* =================================================================
   WHY — navy proof band
   ================================================================= */
.why { background: var(--navy); color: rgba(255,255,255,.9); position: relative; }
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, var(--s-7)); align-items: center; }
.why__text { font-size: var(--fs-lead); margin-bottom: var(--s-5); }
.why__points { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.why__points li { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); padding: var(--s-4); transition: border-color .25s var(--ease), transform .25s var(--ease); }
.why__points li:hover { border-color: var(--amber); transform: translateY(-3px); }
.why__points h3 { color: var(--white); font-size: 1.1rem; margin-bottom: var(--s-1); }
.why__points p { color: rgba(255,255,255,.75); font-size: var(--fs-small); margin: 0; }

/* =================================================================
   TESTIMONIALS
   ================================================================= */
.testimonials { background: var(--paper); }
.testi { position: relative; }                 /* full width, aligned to the start (left) */
.testi__viewport { overflow: hidden; cursor: grab; touch-action: pan-y; }
.testi__viewport.is-dragging { cursor: grabbing; }
.testi__track { display: flex; gap: var(--s-4); transition: transform .5s var(--ease); align-items: stretch; }
.testi__track.no-anim { transition: none; }
.testi__slide {
  flex: 0 0 calc((100% - var(--s-4)) / 2);      /* two per view */
  margin: 0;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--amber);
  border-radius: var(--radius-lg);
  user-select: none;
}
.testi__mark {
  display: block;
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(3rem, 6vw, 4.5rem); line-height: 0.5;
  color: var(--amber);
  margin-bottom: var(--s-3);
}
.testi__slide p {
  font-size: clamp(1.15rem, 2.1vw, 1.55rem);
  line-height: 1.5; color: var(--ink); font-style: italic;
  margin: 0 0 var(--s-4);
}
.testi__slide cite { font-family: var(--font-head); font-weight: 700; font-style: normal; color: var(--navy); font-size: 1rem; }
.testi__slide cite span { color: var(--ink-soft); font-weight: 500; }

.testi__controls { display: flex; align-items: center; justify-content: center; gap: var(--s-4); margin-top: var(--s-4); }
.testi__arrow {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--line); background: var(--white); color: var(--navy);
  font-family: var(--font-head); font-size: 1.5rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
}
.testi__arrow:hover { background: var(--navy); color: var(--white); border-color: var(--navy); transform: translateY(-2px); }
.testi__dots { display: flex; gap: 0.55rem; }
.testi__dot {
  width: 10px; height: 10px; padding: 0; border: none; border-radius: 50%;
  background: rgba(40,46,106,.25); cursor: pointer;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.testi__dot:hover { background: rgba(40,46,106,.5); }
.testi__dot.is-active { background: var(--amber); transform: scale(1.3); }

/* =================================================================
   CONTACT
   ================================================================= */
.contact { background: var(--navy-deep); color: rgba(255,255,255,.9); position: relative; overflow: hidden; }
/* Faint white scaffold blueprint behind the section (light-line version for dark bg) */
.contact::before {
  content: "";
  position: absolute; inset: 0;
  background: url(assets/images/brand/scaffold-bg-light.png) no-repeat center;
  background-size: cover;
  opacity: 0.30;
  pointer-events: none;
  z-index: 0;
}
.contact__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, var(--s-7)); align-items: start; }
.contact__text { font-size: var(--fs-lead); margin-bottom: var(--s-5); max-width: 52ch; }
.contact__methods { display: grid; gap: var(--s-3); margin-bottom: var(--s-5); }
.contact__methods li { display: flex; flex-direction: column; gap: 2px; border-left: 3px solid var(--amber); padding-left: var(--s-3); }
.contact__label { font-family: var(--font-head); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); }
.contact__methods a, .contact__methods span:not(.contact__label) { font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; color: var(--white); }
.contact__methods a:hover { color: var(--amber); }
.contact__buttons { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.contact__card {
  position: relative;
  background: var(--navy);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: var(--s-6) var(--s-5);
  overflow: hidden;
}
.contact__card h3 { color: var(--white); font-size: 1.5rem; margin-bottom: var(--s-2); position: relative; }
.contact__card-text { color: rgba(255,255,255,.75); font-size: var(--fs-small); margin-bottom: var(--s-4); position: relative; }

/* ---- Enquiry form ---- */
.enquiry-form { position: relative; display: grid; gap: var(--s-3); }
.field { display: grid; gap: 0.35rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.field label {
  font-family: var(--font-head); font-weight: 600;
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--amber);
}
.field__opt { color: rgba(255,255,255,.45); font-weight: 500; letter-spacing: 0.04em; text-transform: none; }
.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
  width: 100%;
  font-family: var(--font-body); font-size: 0.98rem;
  color: var(--white);
  background: var(--navy-deep);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  padding: 0.7em 0.85em;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.enquiry-form textarea { resize: vertical; min-height: 84px; }
.enquiry-form input::placeholder,
.enquiry-form textarea::placeholder { color: rgba(255,255,255,.4); }
.enquiry-form input:focus,
.enquiry-form select:focus,
.enquiry-form textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(255,182,19,.18);
}
/* custom dropdown caret */
.enquiry-form select {
  background-image: linear-gradient(45deg, transparent 50%, var(--amber) 50%), linear-gradient(135deg, var(--amber) 50%, transparent 50%);
  background-position: right 1.1em top 55%, right 0.8em top 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.2em;
  cursor: pointer;
}
.enquiry-form select option { color: var(--ink); background: var(--white); }
.enquiry-form__submit { margin-top: var(--s-1); }
.enquiry-form__note { font-size: 0.82rem; color: rgba(255,255,255,.6); margin: 0; text-align: center; }
.enquiry-form__note a { color: var(--amber); font-weight: 600; }
.enquiry-form__status {
  margin: 0; padding: 0.7em 0.85em;
  border-radius: var(--radius);
  font-size: 0.88rem; font-weight: 600;
  background: rgba(37,211,102,.14);
  border: 1px solid rgba(37,211,102,.5);
  color: #b8f5cf;
}
/* Submit states: sending / sent / failed */
.enquiry-form__status.is-pending {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.28);
  color: rgba(255,255,255,.82);
}
.enquiry-form__status.is-ok {
  background: rgba(37,211,102,.14);
  border-color: rgba(37,211,102,.5);
  color: #b8f5cf;
}
.enquiry-form__status.is-err {
  background: rgba(255,107,107,.14);
  border-color: rgba(255,107,107,.55);
  color: #ffc9c9;
}
.enquiry-form__submit[disabled] { opacity: .65; cursor: progress; }

/* =================================================================
   FOOTER
   ================================================================= */
.site-footer { background: #14173A; color: rgba(255,255,255,.7); padding-top: clamp(3rem, 6vw, var(--s-7)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr; gap: var(--s-6); padding-bottom: var(--s-6); }
.footer-logo { height: 46px; width: auto; margin-bottom: var(--s-3); }
.footer-brand p { max-width: 40ch; font-size: var(--fs-small); }
.footer-col h4 { font-family: var(--font-head); color: var(--white); font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: var(--s-3); }
.footer-col a, .footer-area { display: block; color: rgba(255,255,255,.7); padding: 0.32rem 0; font-size: var(--fs-small); transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--amber); }
.footer-wa { color: #25D366 !important; font-weight: 600; margin-top: var(--s-2); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2); padding-block: var(--s-4); border-top: 1px solid rgba(255,255,255,.1); font-size: 0.82rem; }
.footer-bottom p { margin: 0; }
.footer-credit { color: rgba(255,255,255,.45); }
.footer-credit a { color: rgba(255,255,255,.7); text-decoration: underline; text-underline-offset: 3px; transition: color .2s var(--ease); }
.footer-credit a:hover { color: var(--amber); }

/* =================================================================
   STICKY WHATSAPP FAB
   ================================================================= */
.wa-fab {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  background: #25D366; color: #fff;
  border-radius: 50%;
  box-shadow: 0 12px 28px -8px rgba(0,0,0,.5);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.wa-fab::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37,211,102,.6);
  animation: wa-pulse 2.6s infinite;
}
.wa-fab:hover { transform: scale(1.08); }
@keyframes wa-pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* =================================================================
   SCROLL-REVEAL
   ================================================================= */
/* Only hide reveal elements when JS is present to bring them back */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 1024px) {
  .about__grid, .uses__grid, .why__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__lead { position: static; }
  .why__points { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .main-nav, .header-actions { display: none; }
  .nav-toggle { display: flex; }
  .split { grid-template-columns: 1fr; }
  .testi__slide { flex-basis: 100%; }   /* one testimonial per view on small screens */
}

@media (max-width: 620px) {
  :root { --header-h: 72px; }
  .services-grid { grid-template-columns: 1fr; }
  .uses__list { columns: 1; }
  .why__points { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .hero__strip-inner { gap: var(--s-1) var(--s-4); font-size: 0.8rem; }
  .hero__actions .btn { flex: 1 1 auto; }
}

/* Short laptop screens — keep hero + CTA above the fold */
@media (max-height: 720px) and (min-width: 861px) {
  .hero__title { font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin-bottom: var(--s-3); }
  .hero__sub { margin-bottom: var(--s-4); font-size: 1.05rem; }
  .hero__inner { padding-block: 1.5rem; }
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* =================================================================
   DOMESTIC SCAFFOLDING PAGE  (domestic-scaffolding.html)
   Inner-page components only. Everything else on that page reuses the
   homepage tokens, buttons, eyebrows, section titles, cards and grids.
   ================================================================= */

/* ---------- Current page in the nav ---------- */
.main-nav a[aria-current="page"] { color: var(--white); }
.main-nav a[aria-current="page"]::after { width: 100%; }
.mobile-nav a[aria-current="page"] { color: var(--amber); }

/* ---------- Inner-page hero (shorter than the homepage's full-viewport one) ---------- */
.hero--page { min-height: min(70svh, 600px); }
.hero--page .hero__title { font-size: var(--fs-h1); max-width: 18ch; }
.hero--page .hero__inner { padding-top: clamp(2.5rem, 8vh, 5rem); }
.hero--page .hero__media img { object-position: center 45%; }

/* ---------- Intro (mirrors .about, minus the background line-drawing) ---------- */
.dom-intro { background: var(--white); }
.dom-intro__grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, var(--s-7)); align-items: start;
}
.dom-intro__lead { position: sticky; top: calc(var(--header-h) + 1rem); }

/* ---------- Services: intro + photo, then the card grid ---------- */
.dom-services { background: var(--paper); }
.dom-services__top {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, var(--s-7)); align-items: center;
  margin-bottom: clamp(2rem, 4vw, var(--s-6));
}
.dom-services__figure {
  margin: 0; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 30px 60px -35px rgba(40,46,106,.6);
}
.dom-services__figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.dom-services__kicker {
  font-family: var(--font-head); font-weight: 700; color: var(--navy);
  font-size: var(--fs-h3); margin: var(--s-4) 0 0;
}

/* ---------- Navy band: photo + copy ---------- */
.band { background: var(--navy); color: rgba(255,255,255,.85); overflow: hidden; }
.band__grid {
  display: grid; grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 5vw, var(--s-7)); align-items: center;
}
.band__figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; }
.band__figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.band__figure:hover img { transform: scale(1.04); }
.band__body p { max-width: 62ch; }
.band__body .tag-list { margin-bottom: 0; }

/* ---------- Safety & standards: editorial two-column text (commercial page) ---------- */
.standards { background: var(--paper); }
.standards__head { max-width: 700px; margin-bottom: clamp(1.5rem, 3vw, var(--s-5)); }
.standards__body { columns: 2; column-gap: clamp(2rem, 5vw, var(--s-7)); }
.standards__body p { break-inside: avoid; margin-bottom: var(--s-4); }
.standards__body p:last-child { margin-bottom: 0; }

/* ---------- Closing area section ---------- */
.area { background: var(--white); }
.area__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, var(--s-7)); align-items: start;
}
.area__cta {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, var(--s-5));
  /* Rides along with the copy as you scroll the section, then releases at the
     bottom of the grid. Needs .area__grid { align-items: start } to work. */
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.area__cta h3 { color: var(--navy); font-size: var(--fs-h3); margin-bottom: var(--s-2); }
.area__cta p { color: var(--ink-soft); font-size: var(--fs-small); }
.area__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-4); }

/* ---------- Numbered steps (contact page) ---------- */
.steps-section { background: var(--paper); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-5) var(--s-4) var(--s-4);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(40,46,106,.55); border-color: transparent; }
.step__num {
  display: block;
  font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; line-height: 1;
  color: var(--amber); margin-bottom: var(--s-2);
}
.step h3 { font-size: var(--fs-h3); color: var(--navy); font-weight: 700; margin-bottom: var(--s-2); }
.step p { color: var(--ink-soft); font-size: var(--fs-small); margin: 0; }

/* ---------- Legal / long-form document pages ---------- */
.legal { background: var(--white); }
.legal__grid { display: grid; grid-template-columns: 260px 1fr; gap: clamp(2rem, 5vw, var(--s-7)); align-items: start; }
.legal__toc { position: sticky; top: calc(var(--header-h) + 1rem); }
.legal__toc h2 {
  font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--navy); margin-bottom: var(--s-3);
}
.legal__toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.legal__toc a {
  display: block; padding: 0.4rem 0 0.4rem var(--s-3);
  border-left: 2px solid var(--line);
  font-size: var(--fs-small); color: var(--ink-soft);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.legal__toc a:hover { color: var(--navy); border-left-color: var(--amber); }

.legal__body { max-width: 68ch; }
.legal__updated {
  font-family: var(--font-head); font-weight: 600; font-size: var(--fs-small);
  color: var(--ink-soft); border-left: 3px solid var(--amber);
  padding-left: var(--s-3); margin-bottom: var(--s-5);
}
.legal__body h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  line-height: 1.2;                       /* the global 1.05 is for display headings, too tight here */
  color: var(--navy); font-weight: 800;
  margin: var(--s-6) 0 var(--s-3);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.legal__body h2:first-of-type { margin-top: 0; }

/* Sub-headings read as small muted labels, not as a second title line. Without this
   they sat 24px under an h2 in the same navy + same weight and the pair looked like
   one clumped double-decker heading. */
.legal__body h3 {
  font-size: 0.9rem;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-soft);
  margin: var(--s-5) 0 var(--s-2);
}
.legal__body h3::after {
  content: "";
  display: block;
  width: 28px; height: 2px;
  background: var(--amber);
  margin-top: 0.55rem;
}
/* An h3 straight after an h2 belongs to it — sit closer, since the styling now
   makes the level difference obvious on its own. */
.legal__body h2 + h3 { margin-top: var(--s-4); }
.legal__body p, .legal__body li { color: var(--ink); }
.legal__body ul { display: grid; gap: var(--s-2); margin: 0 0 var(--s-3); }
.legal__body ul li { display: flex; gap: 0.7rem; align-items: baseline; }
.legal__body ul li::before {
  content: ""; width: 7px; height: 7px; background: var(--amber);
  flex-shrink: 0; transform: translateY(-1px);
}
.legal__note {
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--amber);
  border-radius: var(--radius-lg); padding: var(--s-4); margin: var(--s-4) 0;
}
.legal__note p:last-child { margin-bottom: 0; }
.legal__body table { width: 100%; border-collapse: collapse; margin: 0 0 var(--s-4); font-size: var(--fs-small); }
.legal__body th, .legal__body td { text-align: left; padding: var(--s-2) var(--s-3); border-bottom: 1px solid var(--line); vertical-align: top; }
.legal__body th { font-family: var(--font-head); color: var(--navy); font-weight: 700; }
.legal__scroll { overflow-x: auto; }

/* ---------- Responsive (domestic page) ---------- */
@media (max-width: 1024px) {
  .dom-intro__grid, .dom-services__top, .band__grid, .area__grid { grid-template-columns: 1fr; }
  .dom-intro__lead { position: static; }
  .band__figure { order: -1; }
  .area__cta { position: static; }   /* stacked layout — nothing to stick alongside */
}
@media (max-width: 860px) {
  .standards__body { columns: 1; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .legal__grid { grid-template-columns: 1fr; }
  .legal__toc { position: static; }
}
@media (max-height: 720px) and (min-width: 861px) {
  .hero--page .hero__title { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
}
