/* =====================================================================
   Auckland Re-Piling & Levelling — STAGING DEMO styles
   Palette (per build spec §C5): structural slate, warm concrete/stone,
   earthy amber/clay accent, timber support, muted structural green.
   ===================================================================== */

:root {
  /* Structural / grounded */
  --slate:        #2B3138;   /* primary deep slate/charcoal */
  --stone-grey:   #6E7376;   /* secondary warm concrete */
  --stone-light:  #D9D6CF;   /* light concrete */
  --accent:       #C8741A;   /* confident earthy amber/clay CTA */
  --accent-dark:  #A75E12;   /* hover */
  --timber:       #7A4F2A;   /* earth/timber support */
  --ink:          #1B1F24;   /* near-black text */
  --body-grey:    #4C545B;   /* body grey */
  --bg-stone:     #F6F4F0;   /* background off-white/stone */
  --card:         #FFFFFF;   /* card white */
  --trust-green:  #3F7D52;   /* LBP/insured ticks */

  --radius:       14px;
  --radius-sm:    10px;
  --shadow-sm:    0 1px 3px rgba(27,31,36,.08), 0 1px 2px rgba(27,31,36,.06);
  --shadow-md:    0 6px 20px rgba(27,31,36,.10), 0 2px 6px rgba(27,31,36,.06);
  --shadow-lg:    0 18px 50px rgba(27,31,36,.16);
  --maxw:         1140px;
  --header-h:     72px;

  --font-head: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body-grey);
  background: var(--bg-stone);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.section { padding: 72px 0; }
.section--tight { padding: 52px 0; }
.section--stone { background: var(--stone-light); }
.section--slate { background: var(--slate); }
.section--slate h2, .section--slate h3 { color: #fff; }
.section--slate p { color: #D7DADD; }

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin: 0 0 .6rem;
}
.section--slate .eyebrow { color: var(--accent); }

.lead { font-size: 1.12rem; color: var(--body-grey); max-width: 64ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-dark); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.10); border-color: #fff; }
.btn-call { background: var(--slate); color: #fff; }
.btn-call:hover { background: #1f242a; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(43,49,56,.97);
  backdrop-filter: saturate(140%) blur(6px);
  height: var(--header-h);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 100%; flex-wrap: nowrap; min-width: 0; }
.brand { display: flex; align-items: center; gap: 11px; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.18rem; letter-spacing: -.01em; flex-shrink: 0; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 8px; flex: none;
  background: var(--accent);
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 1.05rem;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.18);
}
.brand small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .68rem; letter-spacing: .04em; color: var(--stone-light); text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 20px; margin-left: auto; white-space: nowrap; }
.nav a { color: #DCE0E3; font-size: .96rem; font-weight: 500; white-space: nowrap; }
.nav a:hover { color: #fff; text-decoration: none; }
.header-cta { display: flex; align-items: center; gap: 10px; white-space: nowrap; flex-shrink: 0; }
.header-call { color: #fff; font-family: var(--font-head); font-weight: 700; display: inline-flex; align-items: center; gap: 7px; }
.header-call:hover { text-decoration: none; color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; margin-left: auto; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--slate); color: #fff; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(43,49,56,.96) 0%, rgba(43,49,56,.86) 42%, rgba(43,49,56,.55) 100%);
  z-index: 1;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-inner { position: relative; z-index: 2; padding: 76px 0 84px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
  padding: 7px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600;
  font-family: var(--font-head); color: #fff; margin-bottom: 18px; letter-spacing: .02em;
}
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.35rem); margin-bottom: .35em; }
.hero .hero-sub { color: #E5E8EA; font-size: 1.18rem; max-width: 52ch; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .92rem; color: #D7DADD; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { flex: none; }

/* Hero side card — symptom checklist */
.hero-card { background: var(--card); color: var(--ink); border-radius: var(--radius); padding: 26px 26px 22px; box-shadow: var(--shadow-lg); }
.hero-card h2 { font-size: 1.25rem; margin-bottom: 14px; }
.checklist { list-style: none; margin: 0 0 16px; padding: 0; }
.checklist li { display: flex; gap: 11px; align-items: flex-start; padding: 7px 0; font-size: .98rem; color: var(--body-grey); border-bottom: 1px solid #EFEDE8; }
.checklist li:last-child { border-bottom: 0; }
.checklist .tick { flex: none; width: 22px; height: 22px; border-radius: 50%; background: rgba(200,116,26,.12); color: var(--accent-dark); display: grid; place-items: center; margin-top: 2px; }

/* ---------- Section headers ---------- */
.section-head { max-width: 70ch; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card); border-radius: var(--radius); padding: 26px 24px;
  box-shadow: var(--shadow-sm); border: 1px solid #ECEAE4;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 12px; font-size: .98rem; }
.card .card-icon {
  width: 46px; height: 46px; border-radius: 11px; margin-bottom: 14px;
  background: linear-gradient(150deg, #FBEAD7, #F4D3AE);
  color: var(--accent-dark); display: grid; place-items: center;
}
.card-link { font-family: var(--font-head); font-weight: 600; color: var(--accent-dark); font-size: .95rem; }

/* ---------- Process steps ---------- */
.steps { counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.step { background: var(--card); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow-sm); border: 1px solid #ECEAE4; position: relative; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  color: #fff; background: var(--accent); width: 38px; height: 38px;
  border-radius: 9px; display: grid; place-items: center; margin-bottom: 14px;
}
.step h3 { font-size: 1.08rem; }
.step p { font-size: .96rem; margin: 0; }

/* ---------- Pile compare ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.compare-card { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); border: 1px solid #ECEAE4; }
.compare-card.timber { border-top: 4px solid var(--timber); }
.compare-card.concrete { border-top: 4px solid var(--stone-grey); }
.compare-card ul { margin: 0; padding-left: 1.15em; }
.compare-card li { margin-bottom: 7px; }

/* ---------- Cost table ---------- */
.costwrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 26px; align-items: start; }
.cost-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.cost-table th, .cost-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid #ECEAE4; font-size: .98rem; }
.cost-table th { background: var(--slate); color: #fff; font-family: var(--font-head); font-weight: 600; }
.cost-table tr:last-child td { border-bottom: 0; }
.cost-table .range { font-family: var(--font-head); font-weight: 700; color: var(--ink); white-space: nowrap; }
.disclaimer { font-size: .9rem; color: var(--body-grey); background: rgba(200,116,26,.07); border-left: 3px solid var(--accent); padding: 12px 16px; border-radius: 8px; margin-top: 14px; }

.consent-card { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); border: 1px solid #ECEAE4; }
.consent-card h3 { display: flex; align-items: center; gap: 10px; }

/* ---------- Trust / credentials ---------- */
.cred-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.cred {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  padding: 11px 16px; border-radius: 10px; color: #fff; font-weight: 600; font-size: .94rem;
  font-family: var(--font-head);
}
.cred .dot { width: 22px; height: 22px; border-radius: 50%; background: rgba(63,125,82,.22); color: #8FD7A4; display: grid; place-items: center; flex: none; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 30px; }
.stat { text-align: center; }
.stat .num { font-family: var(--font-head); font-weight: 700; font-size: 2.2rem; color: var(--accent); line-height: 1; }
.stat .lbl { font-size: .9rem; color: #C9CDD0; margin-top: 6px; }

/* ---------- Testimonials ---------- */
.quote-card { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); border: 1px solid #ECEAE4; }
.quote-card .stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 10px; font-size: 1.05rem; }
.quote-card blockquote { margin: 0 0 14px; font-size: 1.02rem; color: var(--ink); }
.quote-card .who { font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: .96rem; }
.quote-card .where { color: var(--stone-grey); font-size: .9rem; }

/* ---------- Service areas ---------- */
.areas-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 10px; }
.area-col h3 { font-size: 1.02rem; color: var(--ink); margin-bottom: 8px; }
.area-col ul { list-style: none; margin: 0; padding: 0; }
.area-col li { font-size: .94rem; color: var(--body-grey); padding: 3px 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid #ECEAE4; border-radius: var(--radius-sm); margin-bottom: 12px; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 22px; font-family: var(--font-head);
  font-weight: 600; color: var(--ink); font-size: 1.06rem; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { flex: none; transition: transform .2s ease; color: var(--accent-dark); }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq .faq-body { padding: 0 22px 18px; }
.faq .faq-body p { margin: 0; font-size: 1rem; }

/* ---------- Form ---------- */
.form-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.lead-form { background: var(--card); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-md); border: 1px solid #ECEAE4; }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: .92rem; margin-bottom: 6px; }
.field label .req { color: var(--accent-dark); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid #D7D4CD; border-radius: 9px;
  font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: #FCFBF9;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200,116,26,.15);
}
.field textarea { resize: vertical; min-height: 92px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.checks label { display: flex; align-items: center; gap: 8px; font-family: var(--font-body); font-weight: 400; font-size: .95rem; color: var(--body-grey); cursor: pointer; }
.checks input { width: auto; }
.form-note { font-size: .85rem; color: var(--stone-grey); margin-top: 10px; }
.form-success { display: none; background: rgba(63,125,82,.10); border: 1.5px solid var(--trust-green); border-radius: var(--radius); padding: 30px; text-align: center; }
.form-success.show { display: block; }
.form-success h3 { color: var(--trust-green); }
.form-success .big-tick { width: 56px; height: 56px; border-radius: 50%; background: var(--trust-green); color: #fff; display: grid; place-items: center; margin: 0 auto 14px; }

.contact-side h3 { color: #fff; }
.contact-line { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; color: #D7DADD; }
.contact-line .ci { flex: none; width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: var(--accent); }
.contact-line strong { color: #fff; display: block; font-family: var(--font-head); }

/* ---------- Footer ---------- */
.footer { background: #1F242A; color: #AEB4B9; padding: 56px 0 28px; font-size: .94rem; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer a { color: #C9CDD0; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 36px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { padding: 4px 0; }
.footer-cite { font-size: .82rem; color: #828A90; }
.footer-cite a { color: #9AA1A7; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .85rem; color: #828A90; }
.staging-badge { display: inline-block; background: rgba(200,116,26,.16); color: var(--accent); border: 1px solid rgba(200,116,26,.4); padding: 3px 11px; border-radius: 999px; font-weight: 600; font-size: .78rem; font-family: var(--font-head); letter-spacing: .03em; }

/* ---------- Mid CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--accent) 0%, var(--accent-dark) 100%); color: #fff; border-radius: var(--radius); padding: 38px 40px; display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: space-between; box-shadow: var(--shadow-md); }
.cta-band h3 { color: #fff; font-size: 1.55rem; margin: 0; }
.cta-band p { color: rgba(255,255,255,.92); margin: 6px 0 0; }
.cta-band .btn-primary { background: #fff; color: var(--accent-dark); }
.cta-band .btn-primary:hover { background: var(--bg-stone); }

/* ---------- Sub-page article ---------- */
.article { max-width: 760px; margin: 0 auto; }
.article h2 { margin-top: 42px; }
.article h3 { margin-top: 28px; }
.article ul { padding-left: 1.2em; }
.article li { margin-bottom: 8px; }
.breadcrumb { font-size: .9rem; color: var(--stone-grey); margin-bottom: 8px; }
.breadcrumb a { color: var(--accent-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .areas-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .costwrap, .form-wrap { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--slate); padding: 10px 22px 18px; border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .nav.open a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav-toggle { display: block; margin-left: 0; }
  .header-cta { margin-left: auto; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .header-cta .btn { display: none; }
  .grid-2, .grid-3, .grid-4, .compare, .checks { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band { padding: 28px 24px; }
}
@media (max-width: 420px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}