/* ==========================================================================
   Ogoo Recycle — "Green Steel" design system
   Deep green surfaces + lime CTA. Hand-written, no build step. Mobile-first.

   Colour note: the CTA is lime with DARK text, not a mid-green with white.
   White on a mid-green (#16A34A) measures 3.3:1 and fails WCAG AA; lime with
   dark text measures 11:1. The lime hue also keeps the primary CTA visually
   distinct from the WhatsApp brand green sitting next to it.
   ========================================================================== */

:root {
  /* Deep green surfaces */
  --steel-900: #10251A;
  --steel-800: #163322;
  --steel-700: #1F462F;
  --steel-600: #2E6141;
  --steel-500: #437E57;

  /* Neutrals */
  --paper:     #FFFFFF;
  --paper-alt: #F1F8F3;   /* light mint tint */
  --line:      #D6E8DC;
  --ink:       #0F1A14;
  --ink-muted: #47584E;   /* 7.0:1 on --paper-alt */

  /* Accents */
  --safety:      #A3E635; /* lime — primary CTA */
  --safety-dark: #8CCC28;
  --copper:      #2E7D4F; /* mid green for eyebrows on light backgrounds */
  /* Text drawn ON the accent colour. Lime is light, so this stays dark. */
  --on-accent:   #12220A;

  --ok: #1B7F4B;

  /* Type */
  --font-display: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Space + shape */
  --wrap: 1180px;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(14,20,22,.06), 0 8px 24px rgba(14,20,22,.08);
  --shadow-lg: 0 2px 4px rgba(14,20,22,.08), 0 16px 48px rgba(14,20,22,.14);

  /* z-index scale */
  --z-nav: 30;
  --z-float: 40;
  --z-modal: 50;
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;            /* >=16px so mobile Safari never zooms on focus */
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;         /* belt-and-braces against horizontal scroll */
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* Default icon size. Without this an inline SVG with no width/height stretches
   to fill its container — every icon needs an explicit size or this fallback. */
svg { width: 1.15em; height: 1.15em; flex: none; }

/* Figtree is a humanist sans, not a condensed display face — all-caps at these
   sizes reads as shouting, so headings stay sentence case. */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.15; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
p  { margin: 0 0 1rem; max-width: 68ch; }   /* readable line length */

/* --- Focus (keyboard accessibility) --------------------------------------- */
:focus-visible {
  outline: 3px solid var(--safety);
  outline-offset: 2px;
  border-radius: 2px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: var(--z-modal);
  background: var(--safety); color: var(--on-accent);
  padding: .75rem 1.25rem; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* --- Layout --------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--alt  { background: var(--paper-alt); }
.section--dark { background: var(--steel-900); color: #E8EDEF; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: #B7C3C8; }

.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.eyebrow {
  font-family: var(--font-body);
  font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--copper);
  margin: 0 0 .6rem;
}
.section--dark .eyebrow { color: var(--safety); }
.lede { font-size: 1.12rem; color: var(--ink-muted); }
.section--dark .lede { color: #B7C3C8; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px;                 /* >44px touch target */
  padding: .85rem 1.6rem;
  font-family: var(--font-body);
  font-size: 1rem; font-weight: 700;
  border: 2px solid transparent; border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }

/* Doubled class (0,2,0) on purpose. Buttons sit inside containers that style
   their own links — `.nav__links a` and `.footer a` are both (0,1,1) and would
   otherwise override a single-class `.btn--primary` (0,1,0), leaving the label
   in the container's link colour on top of the button fill. */
.btn.btn--primary { background: var(--safety); color: var(--on-accent); }
.btn.btn--primary:hover { background: var(--safety-dark); color: var(--on-accent); }
.btn.btn--whatsapp { background: #25D366; color: #06331A; }
.btn.btn--whatsapp:hover { background: #1EB456; color: #06331A; }
.btn.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.btn.btn--dark { background: var(--steel-900); color: #fff; }
.btn.btn--dark:hover { background: var(--steel-700); color: #fff; }
.btn--block { width: 100%; }

/* --- Top utility bar ------------------------------------------------------ */
.utility {
  background: var(--steel-900); color: #AEBBC1;
  font-size: .85rem; border-bottom: 1px solid rgba(255,255,255,.08);
}
.utility .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; padding-block: .5rem; }
.utility span { display: inline-flex; align-items: center; gap: .45rem; }
.utility svg { width: 15px; height: 15px; color: var(--safety); }
.utility a { color: #E8EDEF; text-decoration: none; font-weight: 600; }
.utility a:hover { color: var(--safety); }
.utility__spacer { margin-left: auto; }
/* Specificity must beat `.utility span` (0,1,1), otherwise display:none loses. */
@media (max-width: 720px) { .utility .utility__hide-sm { display: none; } }

/* --- Nav ------------------------------------------------------------------ */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: var(--steel-800);
  border-bottom: 3px solid var(--safety);
}
.nav .wrap { display: flex; align-items: center; gap: 1rem; min-height: 74px; }
.nav__logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.nav__logo img { height: 46px; width: auto; }
.nav__logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav__logo-name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; color: #fff; text-transform: uppercase; }
.nav__logo-sub  { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--safety); font-weight: 600; }

.nav__links { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: block; padding: .7rem .95rem;
  color: #D6DEE1; text-decoration: none;
  font-weight: 600; font-size: .95rem;
  border-radius: var(--radius);
  transition: color .2s ease, background-color .2s ease;
}
.nav__links a:hover { color: var(--safety); background: rgba(255,255,255,.06); }
.nav__links a[aria-current="page"] { color: var(--safety); }

.nav__toggle {
  display: none; width: 48px; height: 48px;
  background: transparent; border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius); color: #fff; cursor: pointer;
}
.nav__toggle svg { width: 24px; height: 24px; margin: auto; }

@media (max-width: 980px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--steel-800);
    border-bottom: 3px solid var(--safety);
    padding: .5rem 20px 1.25rem;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: .9rem .5rem; border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav__links .btn { margin-top: .75rem; }
}

/* --- Hero ----------------------------------------------------------------- */
.hero { position: relative; background: var(--steel-900); color: #fff; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: .55;
}
/* Gradient keeps headline contrast well above 4.5:1 regardless of photo,
   while still letting the yard photograph read through. */
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(16,37,26,.90) 0%, rgba(16,37,26,.68) 45%, rgba(16,37,26,.30) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(3.5rem, 9vw, 7rem); }
.hero__inner { max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero h1 em { font-style: normal; color: var(--safety); display: block; }
.hero__sub { font-size: clamp(1.05rem, 2vw, 1.3rem); color: #C9D4D8; max-width: 56ch; margin-bottom: 2rem; }

/* Phone portrait. Breakpoint is 480px, not 430px: iPhone Pro Max models are
   440px wide in portrait (16 Pro Max = 440, 15 Pro Max = 430, 14 Plus = 428),
   so a 430px cut-off silently missed the largest handsets. The smallest iPhone
   landscape width is 568px, so 480px still excludes landscape.

   Goal of this block: both hero CTAs must be visible without scrolling. Safari's
   address bar + toolbar take roughly 260px of an iPhone screen and the sticky
   quote bar takes another 80px, so the hero has to fit in ~600px of page height.
   Type is reduced, but most of the saving comes from tightening vertical spacing
   — that shrinks the block without hurting readability. */
@media (max-width: 480px) {
  /* Chrome above the hero: reclaim ~15px */
  .utility .wrap { padding-block: .35rem; }
  .nav .wrap     { min-height: 62px; }

  /* Hero box: reclaim ~56px */
  .hero .wrap    { padding-block: 1.75rem 1.5rem; }

  /* Type. Headline +10px on request; the paragraph stays at a readable size.
     Tighter line-height on the headline keeps the extra size from costing as
     much vertical room as the font increase alone would. */
  .hero h1       { font-size: calc(2.2rem + 5.7px); line-height: 1.05; margin-bottom: .28em; }
  .hero__sub     { font-size: 15.5px; line-height: 1.5; margin-bottom: .9rem; }

  /* Actions: tighter stack, and the trust points sit closer underneath.
     Stacked full-width so both CTAs are the same width — buttons sized to their
     own text look accidental when stacked, and full width gives a bigger tap
     target on a phone. */
  .hero__cta     { gap: .6rem; margin-bottom: 1.1rem; flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; min-height: 48px; padding-block: .7rem; }
  .hero__points  { font-size: .88rem; gap: .45rem 1.1rem; }
}

/* Smaller handsets (iPhone SE 375, 12/13 mini 360) have far less height to work
   with — 667px total on an SE. Trim a little further so the second CTA stays as
   close to the fold as the screen allows. */
@media (max-width: 400px) {
  .hero .wrap    { padding-block: 1.25rem 1.25rem; }
  .hero h1       { font-size: calc(2.2rem + 2.7px); line-height: 1.05; margin-bottom: .25em; }
  .hero__sub     { font-size: 14.5px; line-height: 1.45; margin-bottom: .7rem; }
  .hero__cta     { margin-bottom: .9rem; }
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 2.25rem; }
.hero__points { display: flex; flex-wrap: wrap; gap: .6rem 1.75rem; list-style: none; margin: 0; padding: 0; font-weight: 600; font-size: .95rem; }
.hero__points li { display: flex; align-items: center; gap: .5rem; color: #E8EDEF; }
.hero__points svg { width: 20px; height: 20px; color: var(--safety); flex: none; }

/* --- Trust bar ------------------------------------------------------------ */
.trustbar { background: var(--safety); color: var(--on-accent); }
.trustbar .wrap {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.5rem; padding-block: 1.75rem;
}
.trustbar__item { display: flex; align-items: center; gap: .85rem; }
.trustbar__item svg { width: 34px; height: 34px; flex: none; }
.trustbar__num { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; line-height: 1; display: block; }
.trustbar__lbl { font-size: .85rem; font-weight: 600; line-height: 1.25; color: #2C3D22; }

/* --- Cards / material grid ------------------------------------------------ */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Materials: 11 items. 11 is prime, so no column count divides evenly — 4 wide
   gives 4+4+3, which reads as intentional. 5 wide would strand a single card
   alone on the last row. */
.grid--materials { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px)  { .grid--materials { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid--materials { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .grid--materials .mcard__body { padding: 1.1rem 1.1rem 1.25rem; } }
@media (min-width: 1024px) { .grid--materials h3 { font-size: 1.2rem; } }

.mcard {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  text-decoration: none; color: inherit; cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.mcard:hover { border-color: var(--steel-600); box-shadow: var(--shadow-lg); }
.mcard__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--steel-700); }
.mcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.mcard:hover .mcard__media img { transform: scale(1.05); }
.mcard__body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.mcard__body h3 { margin-bottom: .35rem; }
.mcard__body p { font-size: .93rem; color: var(--ink-muted); margin-bottom: 1rem; }
.mcard__more {
  margin-top: auto; font-weight: 700; font-size: .9rem; color: var(--ink);
  display: inline-flex; align-items: center; gap: .4rem;
}
.mcard__more svg { width: 16px; height: 16px; transition: transform .2s ease; }
.mcard:hover .mcard__more { color: var(--copper); }
.mcard:hover .mcard__more svg { transform: translateX(3px); }

/* --- Value props ---------------------------------------------------------- */
.vcard { padding: 1.75rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.section--dark .vcard { background: var(--steel-800); border-color: var(--steel-600); }
.vcard__icon {
  width: 52px; height: 52px; display: grid; place-items: center;
  background: var(--safety); color: var(--on-accent);
  border-radius: var(--radius); margin-bottom: 1.1rem;
}
.vcard__icon svg { width: 28px; height: 28px; }
.vcard h3 { margin-bottom: .4rem; }
.vcard p { font-size: .95rem; color: var(--ink-muted); margin: 0; }
.section--dark .vcard p { color: #A9B6BC; }

/* --- Process steps -------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.step { position: relative; padding-top: 3.75rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 52px; height: 52px; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.7rem; font-weight: 800;
  background: var(--safety); color: var(--on-accent); border-radius: var(--radius);
}
.step h3 { margin-bottom: .35rem; }
.step p { font-size: .95rem; color: var(--ink-muted); margin: 0; }
.section--dark .step p { color: #A9B6BC; }

/* --- Quote form ----------------------------------------------------------- */
.quote { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .quote { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }

.form-card {
  background: var(--paper); color: var(--ink);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--safety);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.field .req { color: #C0392B; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .9rem;
  font-family: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--steel-600); box-shadow: 0 0 0 3px rgba(245,179,1,.28); outline: none;
}
.field textarea { min-height: 110px; resize: vertical; }
.field__hint { font-size: .82rem; color: var(--ink-muted); margin: .35rem 0 0; }
.field--error input, .field--error textarea { border-color: #C0392B; }
.field__err { font-size: .84rem; color: #C0392B; margin: .35rem 0 0; font-weight: 600; }
/* Honeypot: bots fill it, humans never see it. Replaces the old "type ogoo" test. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 1rem 1.15rem; border-radius: var(--radius); margin-bottom: 1.25rem; font-weight: 600; }
.alert--ok  { background: #E7F5EC; color: #14603A; border-left: 4px solid var(--ok); }
.alert--err { background: #FDECEA; color: #94231A; border-left: 4px solid #C0392B; }

/* --- Contact detail list -------------------------------------------------- */
.contact-list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1.25rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list svg { width: 24px; height: 24px; color: var(--safety); flex: none; margin-top: .2rem; }
.contact-list strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); font-weight: 700; }
.section--dark .contact-list strong { color: #8FA0A7; }
.contact-list a { font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--safety); }

/* --- Export markets ------------------------------------------------------- */
.markets { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.markets li {
  padding: .5rem 1rem; font-size: .92rem; font-weight: 600;
  background: var(--steel-800); color: #E8EDEF;
  border: 1px solid var(--steel-600); border-radius: 100px;
}

/* --- Gallery -------------------------------------------------------------- */
/* 6 images -> 2x3 then 3x2, so the final row is never short. */
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px) { .gallery { grid-template-columns: repeat(3, 1fr); } }

/* Material page side photo. The source images are only ~400px wide, so an
   unconstrained width:100% upscaled them ~1.4x (1.8x for portrait ones) and
   made them soft. Cap at the native width and centre. */
.material-photo {
  /* width:auto renders at the file's native size, so nothing is ever upscaled.
     The max-* caps only kick in if a larger photo is supplied later. */
  width: auto; height: auto;
  max-width: 100%; max-height: 460px;
  margin-inline: auto; display: block;
  border-radius: var(--radius-lg);
}

/* Product galleries hold 6–21 photos, so let them flow rather than forcing a
   fixed column count. Square crops keep the grid tidy despite mixed originals. */
.gallery--product { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.gallery--product figure { margin: 0; overflow: hidden; border-radius: var(--radius); }
/* 3:2 matches the source thumbnails (177x118) exactly. A square crop would
   upscale them 1.5x and cut the sides off, which looks soft and loses content. */
.gallery--product img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%;
                        transition: transform .3s ease; }
.gallery--product figure:hover img { transform: scale(1.07); }
@media (min-width: 700px) { .gallery--product { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); } }

/* 10 images: column counts that divide evenly (2x5 / 5x2), never a ragged row. */
.gallery--ten { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px)  { .gallery--ten { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .gallery--ten { grid-template-columns: repeat(5, 1fr); } }
.gallery--ten img { transition: transform .35s ease; }
.gallery--ten figure { margin: 0; overflow: hidden; border-radius: var(--radius); }
.gallery--ten figure:hover img { transform: scale(1.06); }

/* Captioned yard photo. The caption does real work here — it tells the visitor
   this is Ogoo's own facility, which is the whole point of the section. */
.yardshot { margin: 0; }
.yardshot img { border-radius: var(--radius); }
.yardshot figcaption {
  margin-top: .6rem; font-size: .87rem; line-height: 1.45;
  color: var(--ink-muted); font-weight: 500;
}
.section--dark .yardshot figcaption { color: #A9B6BC; }

/* Full-width lead photo for the facility section. */
.yardlead { margin: 0 0 2.5rem; }
.yardlead img {
  width: 100%; aspect-ratio: 21 / 9; object-fit: cover;
  object-position: center 62%;           /* keep the signage and hall in frame */
  border-radius: var(--radius-lg);
}
@media (max-width: 700px) { .yardlead img { aspect-ratio: 4 / 3; } }

/* Numbered process cards: photo + step + caption. */
.procards { counter-reset: pro; display: grid; gap: 1.5rem;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.procard {
  margin: 0; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
}
.section--dark .procard { background: var(--steel-800); border-color: var(--steel-600); }
.procard__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--steel-700); }
.procard__media img { width: 100%; height: 100%; object-fit: cover; }
/* The two scale photos are portrait; bias the crop downward to the scale deck. */
.procard__media img.is-portrait { object-position: center 58%; }
.procard__step {
  counter-increment: pro;
  position: absolute; top: 10px; left: 10px;
  width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--safety); color: var(--on-accent);
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 800;
  border-radius: var(--radius);
}
.procard__step::before { content: counter(pro); }
.procard__body { padding: 1.1rem 1.15rem 1.3rem; }
.procard__body h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.procard__body p { font-size: .92rem; color: var(--ink-muted); margin: 0; }
.section--dark .procard__body p { color: #A9B6BC; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: var(--radius); }

/* --- Page banner (inner pages) -------------------------------------------- */
.pagehead { position: relative; background: var(--steel-900); color: #fff; overflow: hidden; }
.pagehead__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.pagehead::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(14,20,22,.92), rgba(14,20,22,.6)); }
.pagehead .wrap { position: relative; z-index: 1; padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.pagehead h1 { color: #fff; margin-bottom: .5rem; }
.pagehead p { color: #C9D4D8; font-size: 1.08rem; margin: 0; }
.crumbs { font-size: .85rem; color: #93A3A9; margin-bottom: 1rem; }
.crumbs a { color: #C9D4D8; text-decoration: none; }
.crumbs a:hover { color: var(--safety); }

/* --- Prose (article body) ------------------------------------------------- */
.prose h2 { margin-top: 2.5rem; }
.prose ul { padding-left: 1.25rem; color: var(--ink-muted); max-width: 68ch; }
.prose li { margin-bottom: .5rem; }

/* --- Footer --------------------------------------------------------------- */
.footer { background: var(--steel-900); color: #A9B6BC; padding-top: 4rem; font-size: .95rem; }
.footer h4 {
  font-family: var(--font-body); font-size: .8rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: #fff; margin: 0 0 1rem;
}
.footer__grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding-bottom: 3rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .55rem; }
.footer a { color: #A9B6BC; text-decoration: none; }
.footer a:hover { color: var(--safety); }
.footer__bar {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: 1.5rem; font-size: .85rem; color: #7C8B92;
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
}
.footer__cta { background: var(--steel-800); border-radius: var(--radius-lg); padding: 1.75rem; }
.footer__cta p { color: #A9B6BC; font-size: .93rem; }

/* The floating WhatsApp button was removed — the sticky quote bar already
   occupies that corner, and WhatsApp is reachable from the nav, hero,
   footer and every material page. */

/* --- Sticky quote bar (pattern ported from the NextDorm site) --------------
   Fixed to the bottom on every page. Feeds the same mobile.php endpoint the
   old header form used, so captured numbers keep landing in the `data` table. */
.quotebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-nav);
  background: var(--steel-900);
  border-top: 3px solid var(--safety);
  box-shadow: 0 -6px 24px rgba(14,20,22,.3);
  padding: 12px 0;
}
.quotebar .wrap { display: flex; align-items: center; gap: 1rem; }
.quotebar__form { display: flex; width: 100%; position: relative; }
.quotebar__label {
  flex: none; align-self: center; margin-right: 1rem;
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 800;
  text-transform: uppercase; color: #fff; line-height: 1.1;
}
.quotebar__label span { display: block; font-family: var(--font-body); font-size: .72rem;
  font-weight: 600; letter-spacing: .1em; color: var(--safety); }
@media (max-width: 900px) { .quotebar__label { display: none; } }

.quotebar input[type="tel"] {
  width: 100%; padding: 14px 64px 14px 16px;
  font-family: inherit; font-size: 1.05rem; font-weight: 500;
  color: var(--ink); background: #fff;
  border: 2px solid transparent; border-radius: var(--radius);
  box-sizing: border-box;
}
.quotebar input[type="tel"]::placeholder { color: #6B7A81; opacity: 1; }
.quotebar input[type="tel"]:focus {
  outline: none; border-color: var(--safety);
  box-shadow: 0 0 0 4px rgba(245,179,1,.3);
}
/* Submit sits inside the field, right-aligned, always >=44px touch target. */
.quotebar__submit {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0;
  background: var(--safety); color: var(--on-accent);
  border: none; border-radius: var(--radius); cursor: pointer;
  transition: background-color .2s ease, opacity .3s ease;
}
.quotebar__submit:hover { background: var(--safety-dark); }
.quotebar__submit svg { width: 24px; height: 24px; }
.quotebar__err {
  position: absolute; bottom: calc(100% + 8px); left: 0;
  background: #C0392B; color: #fff; font-size: .85rem; font-weight: 600;
  padding: .45rem .75rem; border-radius: var(--radius);
  display: none;
}
.quotebar__err.is-shown { display: block; }

/* The bar overlays page content, so reserve space for it and lift the
   floating WhatsApp button clear of it. */
body { padding-bottom: 86px; }
@media (max-width: 560px) { body { padding-bottom: 78px; } }

/* --- First-visit quote popup ---------------------------------------------- */
.qpop {
  display: none; position: fixed; inset: 0; z-index: var(--z-modal);
  background: rgba(14,20,22,.72); backdrop-filter: blur(3px);
  align-items: center; justify-content: center; padding: 16px;
}
.qpop.is-open { display: flex; }
.qpop__card {
  background: var(--paper); width: 100%; max-width: 440px;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 26px 60px rgba(14,20,22,.45);
  animation: qpop-in .35s cubic-bezier(.16,1,.3,1);
}
@keyframes qpop-in { from { transform: translateY(24px) scale(.96); opacity: 0; }
                     to   { transform: translateY(0) scale(1); opacity: 1; } }
.qpop__head {
  position: relative; padding: 30px 26px 24px; text-align: center;
  background: linear-gradient(135deg, var(--steel-900) 0%, var(--steel-700) 100%);
  color: #fff; border-bottom: 4px solid var(--safety);
}
.qpop__head h2 { color: #fff; margin: 0; font-size: 1.75rem; }
.qpop__badge {
  width: 62px; height: 62px; margin: 0 auto 14px;
  display: grid; place-items: center;
  background: var(--safety); color: var(--on-accent); border-radius: 50%;
}
.qpop__badge svg { width: 32px; height: 32px; }
.qpop__close {
  position: absolute; top: 8px; right: 10px;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.8); font-size: 28px; line-height: 1;
}
.qpop__close:hover { color: #fff; }
.qpop__body { padding: 24px 26px 26px; text-align: center; }
.qpop__body p { margin: 0 auto 18px; color: var(--ink-muted); font-size: .97rem; }
.qpop__body input[type="tel"] {
  width: 100%; padding: 14px; font-size: 1.1rem; text-align: center;
  letter-spacing: 1px; font-family: inherit; color: var(--ink);
  border: 2px solid var(--line); border-radius: var(--radius); box-sizing: border-box;
}
.qpop__body input[type="tel"]:focus {
  outline: none; border-color: var(--safety); box-shadow: 0 0 0 3px rgba(245,179,1,.25);
}
/* Placeholder is long; drop the tracking so it isn't clipped on small phones. */
@media (max-width: 420px) {
  .qpop__body input[type="tel"] { font-size: 1rem; letter-spacing: 0; padding: 13px 10px; }
}
.qpop__err { display: none; color: #C0392B; font-size: .86rem; font-weight: 600; margin: 8px 0 0; }
.qpop__err.is-shown { display: block; }
.qpop__later {
  display: inline-block; margin-top: 14px; padding: .5rem;
  background: none; border: none; cursor: pointer;
  color: var(--ink-muted); font-size: .9rem; font-family: inherit;
}
.qpop__later:hover { color: var(--ink); text-decoration: underline; }
.qpop__trust { font-size: .78rem; color: #85959C; margin-top: 14px; }
.qpop__success { display: none; padding: 34px 26px 32px; text-align: center; }
.qpop__success.is-shown { display: block; }
.qpop__tick {
  width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 50%;
  background: #E7F5EC; color: var(--ok); display: grid; place-items: center;
}
.qpop__tick svg { width: 32px; height: 32px; }

/* --- Message dialog (success / error) --------------------------------------- */
.dlg {
  display: none;
  position: fixed; inset: 0; z-index: 70;   /* above the lightbox and popup */
  background: rgba(8, 16, 12, .72);
  align-items: center; justify-content: center; padding: 16px;
}
.dlg.is-open { display: flex; }
.dlg__card {
  background: var(--paper); width: 100%; max-width: 400px;
  border-radius: var(--radius-lg); padding: 30px 26px 26px;
  text-align: center; box-shadow: 0 26px 60px rgba(8,22,45,.4);
  animation: qpop-in .3s cubic-bezier(.16,1,.3,1);
  /* If the on-screen keyboard shrinks the viewport, the card must still be
     scrollable — otherwise the OK button can sit out of reach while page
     scroll is locked, which reads as a frozen page. */
  max-height: 88vh; overflow-y: auto;
}
.dlg { overflow-y: auto; }
.dlg__icon {
  width: 64px; height: 64px; margin: 0 auto 16px;
  border-radius: 50%; display: grid; place-items: center;
}
.dlg__icon svg { width: 32px; height: 32px; }
.dlg__icon.is-success { background: #E7F5EC; color: var(--ok); }
.dlg__icon.is-error   { background: #FDECEA; color: #C0392B; }
.dlg__icon.is-info    { background: var(--paper-alt); color: var(--steel-700); }
.dlg__title { font-size: 1.35rem; margin: 0 0 8px; color: var(--ink); }
.dlg__msg   { margin: 0 auto 22px; color: var(--ink-muted); line-height: 1.55; font-size: .97rem; }
.dlg__ok    { min-width: 150px; }

/* --- Lightbox -------------------------------------------------------------- */
/* Photos that open the lightbox get a zoom cursor so it is discoverable. */
.gallery img, .yardshot img, .procard__media img { cursor: zoom-in; }

.lb {
  display: none;
  position: fixed; inset: 0; z-index: 60;
  background: rgba(8, 16, 12, .93);
  align-items: center; justify-content: center;
  padding: 56px 16px 84px;          /* room for the close and caption rows */
}
.lb.is-open { display: flex; }

.lb__stage { max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lb__img {
  max-width: min(1400px, 94vw);
  max-height: 78vh;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--steel-800);
}
.lb__cap {
  margin: .9rem auto 0; max-width: 70ch;
  color: #D8E6DC; font-size: .93rem; line-height: 1.5; text-align: center;
}
.lb__count { display: block; margin-top: .35rem; color: #8FA79A; font-size: .82rem; font-weight: 600; }

/* Controls — all at least 48px so they are comfortable on a phone. */
.lb__btn {
  position: absolute;
  display: grid; place-items: center;
  width: 52px; height: 52px; padding: 0;
  background: rgba(255,255,255,.12); color: #fff;
  border: 1px solid rgba(255,255,255,.25); border-radius: 50%;
  cursor: pointer;
  transition: background-color .2s ease;
}
.lb__btn:hover { background: rgba(255,255,255,.24); }
.lb__btn svg { width: 24px; height: 24px; }
.lb__close { top: 12px; right: 12px; }
.lb__prev  { left: 12px;  top: 50%; transform: translateY(-50%); }
.lb__next  { right: 12px; top: 50%; transform: translateY(-50%); }
.lb__btn[hidden] { display: none; }

@media (max-width: 620px) {
  .lb { padding: 52px 8px 92px; }
  .lb__img { max-height: 66vh; }
  /* Move prev/next to the bottom so they don't sit over the photo. */
  .lb__prev, .lb__next { top: auto; bottom: 16px; transform: none; }
  .lb__prev { left: 18px; }
  .lb__next { right: 18px; }
}

/* --- Motion preference ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

/* --- Print ---------------------------------------------------------------- */
@media print {
  .nav, .utility, .quotebar, .hero__cta { display: none; }
  body { color: #000; font-size: 12pt; }
}
