/* =============================================================================
   Dan's Shipping Containers — stylesheet

   COLOUR SYSTEM AND MEASURED CONTRAST RATIOS
   Brand colour #1F6FB2 is taken from the CRM brands table (code DAN). It is
   light enough that it is NOT used for small body text on white; links and
   small type carry the darker #175A93 instead. Every text pairing used in this
   sheet is listed below with its measured WCAG contrast ratio. All text
   pairings clear 4.5:1 (AA normal text); most clear 7:1 (AAA).

     token         hex        used for                  on            ratio
     --ink         #101B26    headings, body text       #FFFFFF       17.40:1
     --ink         #101B26    headings, body text       #F2F5F8       15.90:1
     --muted       #4C5A67    secondary/meta text       #FFFFFF        7.08:1
     --muted       #4C5A67    secondary/meta text       #F2F5F8        6.47:1
     --blue-dark   #175A93    links, small brand text   #FFFFFF        7.19:1
     --blue-dark   #175A93    links, small brand text   #F2F5F8        6.57:1
     --blue        #1F6FB2    large display type only   #FFFFFF        5.28:1
     #FFFFFF       white      button label              --blue         5.28:1
     #FFFFFF       white      button label              --blue-dark    7.19:1
     #FFFFFF       white      body text on dark band    --navy        14.48:1
     #FFFFFF       white      body text on dark band    --ink         17.40:1
     --rust        #B0480F    accent headings/links     #FFFFFF        5.56:1
     --rust        #B0480F    accent headings/links     #F2F5F8        5.08:1
     #FFFFFF       white      button label              --rust         5.56:1
     --sky         #8FC2EA    secondary text on navy    --navy         7.63:1
     --pale        #DCEAF7    body text on navy         --navy        11.83:1

   NON-TEXT ONLY — these pairings fail 4.5:1 and are never used for text:
     --blue on --navy = 2.74:1   (decorative rules and borders inside dark bands)
     --pale on --blue = 4.32:1   (borders on blue surfaces)
     --rule #D8E0E7 on white     (hairlines and dividers)

   LAYOUT NOTE
   This site is built on a single-column narrative spine rather than a grid.
   Content pages run one column at a readable measure with a vertical rule down
   the left. That is a deliberate structural difference from the other brand
   sites in the group and it is the reason there is no card-grid component here.
   ========================================================================== */

:root {
  --ink: #101B26;
  --muted: #4C5A67;
  --blue: #1F6FB2;
  --blue-dark: #175A93;
  --navy: #0B2B47;
  --rust: #B0480F;
  --sky: #8FC2EA;
  --pale: #DCEAF7;
  --wash: #F2F5F8;
  --paper: #FFFFFF;
  --rule: #D8E0E7;
  --spine: 4px;
  --measure: 40rem;
  --wide: 74rem;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --text: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* height:auto is load-bearing: width and height attributes are hardcoded on
   every img the build emits, so without this an img scaled by max-width would
   keep its attribute height and distort. Photography is currently switched off
   (data/site.json "photos": false) and the build emits zero <img> tags, but the
   rule stays so that turning photos on cannot ship a layout bug. */
img { max-width: 100%; display: block; height: auto; }

svg { display: block; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 6.2vw, 3.9rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.24rem; }
h4 { font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase; }
p { margin: 0 0 1.15em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: 0.5em; }
strong { font-weight: 700; }

a { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--rust); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--rust); outline-offset: 2px;
}

.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 1.25rem; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 999; background: var(--paper); color: var(--ink); padding: 0.75rem 1rem; border: 3px solid var(--rust); }

/* ---------- single-tier sticky masthead ------------------------------------
   One row, not two. Wordmark, the response promise, then the phone. The
   promise sits in the masthead on every page because it is the brand's whole
   argument, not a decoration. -------------------------------------------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.top .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: 68px; }
.top-brand { flex: 0 0 auto; text-decoration: none; display: block; }
.top-brand svg { width: 176px; height: auto; }
.top-say {
  flex: 1 1 auto; font-size: 0.86rem; color: var(--muted); line-height: 1.3;
  border-left: 1px solid var(--rule); padding-left: 1.25rem;
}
.top-say b { display: block; color: var(--blue-dark); font-family: var(--display); font-size: 0.94rem; letter-spacing: -0.01em; }
.top-act { flex: 0 0 auto; display: flex; align-items: center; gap: 0.75rem; }
.top-tel { font-family: var(--display); font-weight: 800; font-size: 1.18rem; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; white-space: nowrap; }
.top-tel:hover { color: var(--rust); }
.burger { display: none; background: none; border: 1px solid var(--rule); border-radius: 3px; width: 44px; height: 40px; padding: 0 10px; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--ink); margin: 5px 0; }

/* nav is a plain horizontal list beneath the sticky bar, not a second fixed tier */
.nav { background: var(--wash); border-bottom: 1px solid var(--rule); }
.menu { list-style: none; display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin: 0; padding: 0.6rem 0; }
.menu a { font-size: 0.93rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.menu a:hover { color: var(--rust); text-decoration: underline; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-family: var(--display); font-weight: 700; font-size: 1rem;
  padding: 0.82rem 1.5rem; border-radius: 3px; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; text-align: center; letter-spacing: -0.01em;
}
.btn-primary { background: var(--rust); color: #FFFFFF; }
.btn-primary:hover { background: #8E3A0C; color: #FFFFFF; }
.btn-blue { background: var(--blue-dark); color: #FFFFFF; }
.btn-blue:hover { background: var(--navy); color: #FFFFFF; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #FFFFFF; }
.btn-ghost { background: transparent; color: #FFFFFF; border-color: #FFFFFF; }
.btn-ghost:hover { background: #FFFFFF; color: var(--navy); }
.btn-lg { font-size: 1.1rem; padding: 1rem 1.9rem; }
.btn-wide { display: block; width: 100%; }

/* ---------- hero: full-bleed navy, one centred column, very large type ---- */
.hero { background: var(--navy); color: #FFFFFF; padding: 4.5rem 0 3.5rem; text-align: center; }
.hero .wrap { max-width: 54rem; }
.hero h1 { color: #FFFFFF; margin-bottom: 0.4em; }
.hero .lede { font-size: clamp(1.1rem, 2.3vw, 1.35rem); color: var(--pale); margin: 0 auto 1.8rem; max-width: 42rem; }
.hero .acts { display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; }
.hero .undernote { margin: 1.6rem 0 0; font-size: 0.92rem; color: var(--sky); }

/* ---------- the response promise band -----------------------------------
   Repeated verbatim from data/site.json so the commitment cannot drift. --- */
.promise { background: var(--ink); color: #FFFFFF; padding: 1.5rem 0; }
.promise .wrap { display: flex; align-items: baseline; gap: 1.1rem; flex-wrap: wrap; justify-content: center; text-align: center; }
.promise b { font-family: var(--display); font-weight: 800; font-size: clamp(1.15rem, 2.6vw, 1.5rem); letter-spacing: -0.02em; color: #FFFFFF; }
.promise span { color: var(--pale); font-size: 0.98rem; }

/* ---------- the spine: single narrative column with a left rule ---------- */
.sec { padding: 3.4rem 0; }
.sec-wash { background: var(--wash); }
.sec-navy { background: var(--navy); color: #FFFFFF; }
.sec-navy h2, .sec-navy h3 { color: #FFFFFF; }
.sec-navy p { color: var(--pale); }
.sec-navy a { color: var(--sky); }
.sec-tall { padding: 5rem 0; }

.spine { max-width: var(--measure); margin: 0 auto; padding-left: 1.6rem; border-left: var(--spine) solid var(--blue); }
.sec-wash .spine { border-left-color: var(--blue-dark); }
.sec-navy .spine { border-left-color: var(--sky); }
.spine > :last-child { margin-bottom: 0; }
.spine .kicker { display: block; font-family: var(--display); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rust); margin-bottom: 0.55rem; }
.sec-navy .spine .kicker { color: var(--sky); }
.spine .big { font-size: 1.16rem; }
.centred { text-align: center; }
.narrow { max-width: var(--measure); margin: 0 auto; }

/* a short, loud pull line used to break up long reading */
.pull {
  font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 3vw, 1.75rem);
  line-height: 1.25; letter-spacing: -0.025em; color: var(--blue-dark);
  margin: 2rem 0; padding: 0;
}
.sec-navy .pull { color: var(--sky); }

/* page head for interior pages */
.phead { padding: 3rem 0 2.2rem; border-bottom: 1px solid var(--rule); }
.phead .kicker { display: block; font-family: var(--display); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rust); margin-bottom: 0.6rem; }
.phead .lede { font-size: 1.16rem; color: var(--muted); max-width: var(--measure); }
.phead .acts { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.4rem; }

.crumb { background: var(--wash); font-size: 0.85rem; padding: 0.6rem 0; color: var(--muted); }
.crumb a { color: var(--blue-dark); }

/* ---------- the range ladder: stacked rows, no table, no cards ---------- */
.ladder { list-style: none; margin: 1.8rem 0; padding: 0; border-top: 1px solid var(--rule); }
.ladder > li { border-bottom: 1px solid var(--rule); padding: 1.4rem 0; display: grid; grid-template-columns: 5.5rem 1fr auto; gap: 0 1.4rem; align-items: start; }
.ladder .lad-size { font-family: var(--display); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.03em; color: var(--blue-dark); line-height: 1.1; }
.ladder .lad-body h3 { margin: 0 0 0.3rem; font-size: 1.1rem; }
.ladder .lad-body p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.ladder .lad-price { text-align: right; font-size: 0.92rem; color: var(--muted); white-space: nowrap; }
.ladder .lad-price b { display: block; font-family: var(--display); font-size: 1.2rem; color: var(--ink); letter-spacing: -0.02em; }

/* ---------- numbered run: the ordering process, top to bottom ---------- */
.run { list-style: none; counter-reset: r; margin: 1.8rem 0; padding: 0; }
.run > li { counter-increment: r; position: relative; padding: 0 0 1.6rem 3.4rem; }
.run > li::before {
  content: counter(r); position: absolute; left: 0; top: 0;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--blue-dark); color: #FFFFFF;
  font-family: var(--display); font-weight: 800; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
}
.run > li::after { content: ""; position: absolute; left: 1.2rem; top: 2.6rem; bottom: 0.3rem; width: 2px; background: var(--rule); }
.run > li:last-child { padding-bottom: 0; }
.run > li:last-child::after { display: none; }
.run h3 { margin: 0.25rem 0 0.35rem; }
.run p { margin: 0; color: var(--muted); }
.sec-navy .run > li::before { background: var(--sky); color: var(--navy); }
.sec-navy .run > li::after { background: rgba(255,255,255,0.28); }
.sec-navy .run p { color: var(--pale); }

/* ---------- Q&A: always-open pairs, not a <details> accordion ---------- */
.qa { margin: 1.6rem 0 0; }
.qa > div { padding: 1.3rem 0; border-top: 1px solid var(--rule); }
.qa > div:last-child { border-bottom: 1px solid var(--rule); }
.qa h3 { color: var(--blue-dark); margin: 0 0 0.45rem; font-size: 1.12rem; }
.qa p { margin: 0; color: var(--ink); }

/* ---------- facts strip ---------- */
.facts { list-style: none; margin: 1.6rem 0; padding: 0; display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.facts > li { background: var(--paper); padding: 0.95rem 1.1rem; margin: 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.sec-wash .facts > li { background: var(--wash); }
.facts dt, .facts .k { font-family: var(--display); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.facts .v { font-weight: 600; text-align: right; }

/* ---------- callouts ---------- */
.callout { border-left: var(--spine) solid var(--rust); background: var(--wash); padding: 1.15rem 1.3rem; margin: 1.8rem 0; }
.callout > :last-child { margin-bottom: 0; }
.caveat { border-left: var(--spine) solid var(--rust); background: var(--wash); padding: 1.05rem 1.2rem; margin: 1.6rem 0; font-size: 0.98rem; }
.fineprint { font-size: 0.9rem; color: var(--muted); }
.numlist > li { margin-bottom: 0.9rem; }

/* ---------- inline chip links ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.chips a { display: inline-block; padding: 0.42rem 0.85rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); font-size: 0.9rem; text-decoration: none; color: var(--ink); font-weight: 600; }
.chips a:hover { border-color: var(--rust); color: var(--rust); }

/* ---------- guide list ---------- */
.guides { list-style: none; margin: 1.8rem 0 0; padding: 0; border-top: 1px solid var(--rule); }
.guides > li { border-bottom: 1px solid var(--rule); padding: 1.35rem 0; margin: 0; }
.guides time { display: block; font-size: 0.8rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.3rem; }
.guides h3 { margin: 0 0 0.35rem; }
.guides h3 a { text-decoration: none; color: var(--ink); }
.guides h3 a:hover { color: var(--rust); text-decoration: underline; }
.guides p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* ---------- prose (guide bodies) ---------- */
.prose { max-width: var(--measure); margin: 0 auto; }
.prose h2 { margin-top: 2.2rem; font-size: 1.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.35rem; }

/* ---------- the ask: quote form on a navy field, one column ---------- */
.ask { background: var(--navy); color: #FFFFFF; padding: 3.6rem 0; }
.ask .wrap { max-width: 46rem; }
.ask h2 { color: #FFFFFF; text-align: center; }
.ask .ask-sub { color: var(--pale); text-align: center; max-width: 34rem; margin: 0 auto 2rem; }
.askcard { background: var(--paper); border-radius: 4px; padding: 1.6rem; color: var(--ink); }
.askcard h3 { margin: 0 0 0.25rem; font-size: 1.25rem; }
.askcard .askcard-note { margin: 0 0 1.2rem; font-size: 0.92rem; color: var(--muted); }
.askcard label { display: block; font-family: var(--display); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.04em; margin: 0.95rem 0 0.3rem; color: var(--ink); }
.askcard input, .askcard select, .askcard textarea {
  width: 100%; font-family: var(--text); font-size: 1rem; padding: 0.7rem 0.75rem;
  border: 1px solid var(--muted); border-radius: 3px; background: var(--paper); color: var(--ink);
}
.askcard textarea { resize: vertical; }
.qgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.qstage { border-top: 1px solid var(--rule); margin-top: 1.4rem; padding-top: 0.3rem; }
.qstage-h { font-family: var(--display); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rust); margin: 1rem 0 0; }
.qtoggle { display: flex; gap: 0.5rem; margin: 0.9rem 0 0; }
.qtoggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.qtoggle label { flex: 1; margin: 0; text-align: center; padding: 0.62rem 0.5rem; border: 2px solid var(--rule); border-radius: 3px; cursor: pointer; color: var(--muted); }
.qtoggle input:checked + label { border-color: var(--blue-dark); background: var(--blue-dark); color: #FFFFFF; }
.qtoggle input:focus-visible + label { outline: 3px solid var(--rust); outline-offset: 2px; }
.askcard button { margin-top: 1.5rem; }
.qnote { margin: 0.9rem 0 0; font-size: 0.86rem; color: var(--muted); }
.ask-or { text-align: center; margin: 1.6rem 0 0; color: var(--pale); }
.ask-or a { color: #FFFFFF; font-family: var(--display); font-weight: 800; font-size: 1.3rem; text-decoration: none; letter-spacing: -0.02em; }
.ask-or a:hover { color: var(--sky); }

.q-ok { background: var(--paper); color: var(--ink); border-left: var(--spine) solid var(--rust); padding: 1.4rem 1.5rem; border-radius: 4px; }
.q-bad { background: #FDEDE6; color: #7A3209; border-left: var(--spine) solid var(--rust); padding: 0.85rem 1rem; margin-bottom: 1rem; font-size: 0.95rem; }
.q-bad a { color: #7A3209; }

/* ---------- footer: one column, inline link runs, no column farm ---------- */
.foot { background: var(--ink); color: var(--pale); padding: 3rem 0 6.5rem; }
.foot .wrap { max-width: 62rem; }
.foot-brand svg { width: 208px; height: auto; margin-bottom: 1rem; }
.foot-tag { max-width: 40rem; color: var(--pale); }
.foot-tel { display: inline-block; font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 5vw, 2.4rem); letter-spacing: -0.03em; color: #FFFFFF; text-decoration: none; margin: 0.6rem 0 0.2rem; }
.foot-tel:hover { color: var(--sky); }
.foot a { color: var(--sky); }
.foot-mail { display: block; margin-bottom: 1.6rem; }
.foot-run { border-top: 1px solid rgba(255,255,255,0.18); padding-top: 1.1rem; margin-top: 1.6rem; font-size: 0.95rem; line-height: 2; }
.foot-run b { display: block; font-family: var(--display); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: #FFFFFF; margin-bottom: 0.3rem; }
.foot-run a { margin-right: 0.35rem; }
.foot-base { border-top: 1px solid rgba(255,255,255,0.18); margin-top: 1.6rem; padding-top: 1.1rem; font-size: 0.86rem; color: var(--pale); }

/* ---------- mobile sticky action bar ---------- */
.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; gap: 1px; background: var(--rule); }
.actionbar .btn { flex: 1; border-radius: 0; padding: 0.95rem 0.5rem; font-size: 0.98rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .top-say { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .top .wrap { min-height: 60px; }
  .top-brand svg { width: 148px; }
  .burger { display: block; }
  .menu { display: none; flex-direction: column; gap: 0; padding: 0.5rem 0 0.9rem; }
  .menu.show { display: flex; }
  .menu li { border-bottom: 1px solid var(--rule); }
  .menu a { display: block; padding: 0.7rem 0; }
  .actionbar { display: flex; }
  .hero { padding: 3rem 0 2.6rem; }
  .sec { padding: 2.6rem 0; }
  .spine { padding-left: 1.1rem; }
  .ladder > li { grid-template-columns: 1fr; gap: 0.5rem; }
  .ladder .lad-price { text-align: left; }
  .qgrid { grid-template-columns: 1fr; }
  .promise .wrap { flex-direction: column; gap: 0.4rem; }
}

@media print {
  .top, .nav, .actionbar, .ask { display: none; }
  body { font-size: 12pt; color: #000; }
}

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