/* =========================================================
   The RaWood Shed – landing page (mobile first)
   ========================================================= */
:root {
  --cream: #F5F0E8;
  --warm-white: #FDFBF7;
  --gold: #D4A843;
  --gold-dark: #B8902F;
  --gold-text: #7D5E16; /* gold that is readable on cream (5.3:1) */
  --charcoal: #1C1C1C;
  --text: #2D2A26;
  --muted: #6B6158;
  --line: #E6DCCB;
  --green: #2E7D4F;
  --red: #A23B2A;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --header-h: 64px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--warm-white);
  padding-bottom: 84px; /* room for the mobile bottom bar */
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0; color: var(--charcoal); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.container--narrow { max-width: 760px; }

/* ---------- The one button: Get Free Quotation ---------- */
.btn-quote {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 14px 32px;
  border: 0;
  border-radius: 8px;
  background: var(--gold);
  color: var(--charcoal);
  font: 600 1.05rem/1.2 var(--sans);
  letter-spacing: .2px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(184, 144, 47, .3);
  transition: background-color .2s, transform .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn-quote:hover { background: #DDB553; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(184, 144, 47, .38); }
.btn-quote:active { transform: translateY(0); }
.btn-quote:focus-visible { outline: 3px solid var(--charcoal); outline-offset: 3px; }
.btn-quote[disabled] { opacity: .7; cursor: wait; transform: none; }

.cta-row { padding: 32px 16px; display: flex; justify-content: center; }
.cta-row .btn-quote { max-width: 420px; }
@media (min-width: 640px) {
  .btn-quote { width: auto; }
  .cta-row { padding: 48px 16px; }
}
.cta-row.cta-row--left { padding: 28px 0 0; justify-content: flex-start; }

/* ---------- Sticky header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(253, 251, 247, .96);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 2px 12px rgba(0, 0, 0, .06); }
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(253, 251, 247, .85); backdrop-filter: blur(8px); }
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header-logo { height: 44px; width: auto; }
.btn-quote--header { display: none; min-height: 48px; padding: 10px 24px; font-size: .98rem; box-shadow: none; }
@media (min-width: 768px) {
  .btn-quote--header { display: flex; }
}

/* ---------- Hero ---------- */
.hero { padding: 28px 0 8px; }
.hero-inner { display: grid; gap: 28px; align-items: center; }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold-text); margin-bottom: 12px; }
.hero h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(2.3rem, 8vw, 4rem); letter-spacing: -.3px; }
.hero-lead { margin-top: 16px; font-size: 1.08rem; color: var(--muted); max-width: 34em; }
.hero-note { margin-top: 16px; font-size: .88rem; color: var(--muted); }
.hero-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 14px; }
@media (min-width: 900px) {
  .hero { padding: 64px 0 24px; }
  .hero-inner { grid-template-columns: 1.1fr .9fr; gap: 56px; }
}

/* ---------- Trust strip ---------- */
.trust { background: var(--charcoal); color: #fff; margin-top: 32px; }
.trust-list { display: grid; grid-template-columns: repeat(2, 1fr); text-align: center; }
.trust-list li { padding: 22px 8px; display: flex; flex-direction: column; gap: 2px; }
.trust-list strong { font-family: var(--serif); font-size: 2.1rem; line-height: 1.1; color: var(--gold); }
.trust-list span { font-size: .86rem; color: #D9D2C5; }
.trust-list .stars { color: var(--gold); font-size: 1.35rem; letter-spacing: 2px; line-height: 1.6; }
@media (min-width: 768px) {
  .trust-list { grid-template-columns: repeat(4, 1fr); }
  .trust-list li { padding: 30px 8px; }
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section--alt { background: var(--cream); }
.section-title, .section-kicker {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 5.5vw, 2.8rem);
  text-align: center;
  color: var(--charcoal);
}
.section-title--left { text-align: left; }
.section-lead { margin: 12px auto 0; max-width: 40em; text-align: center; color: var(--muted); }
.section-lead--wide { max-width: 46em; }
@media (min-width: 768px) { .section { padding: 80px 0; } }

/* Projects gallery */
.project-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.project { position: relative; border-radius: var(--radius); overflow: hidden; background: #ddd; }
.project img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.project figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 12px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .78));
  color: #fff; font-size: .78rem; line-height: 1.35;
  display: flex; flex-direction: column;
}
.project figcaption strong { font-size: .95rem; }
.project-city:not(:empty)::before { content: ' · '; }
@media (min-width: 768px) {
  .project-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .project figcaption { font-size: .85rem; padding: 40px 16px 14px; }
  .project figcaption strong { font-size: 1.05rem; }
}

/* What our slabs become */
.use-grid { margin-top: 32px; display: grid; grid-template-columns: 1fr; gap: 16px; }
.use { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.use img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.use h2, .use h3 { font-family: var(--serif); font-weight: 700; font-size: 1.45rem; padding: 16px 16px 4px; }
.use p { padding: 0 16px 18px; font-size: .93rem; color: var(--muted); }
@media (min-width: 560px) { .use-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .use-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

/* Slab range */
.range-facts { margin: 28px auto 0; max-width: 900px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.range-facts li { background: var(--cream); border-radius: 8px; padding: 12px 14px; font-size: .88rem; display: flex; flex-direction: column; }
.range-facts strong { font-size: .72rem; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold-text); }
.slab-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.slab { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.slab img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #2b2b2b; }
.slab figcaption { padding: 10px 12px 12px; display: flex; flex-direction: column; font-size: .8rem; color: var(--muted); }
.slab figcaption strong { color: var(--charcoal); font-size: .95rem; }
@media (min-width: 768px) {
  .range-facts { grid-template-columns: repeat(4, 1fr); }
  .slab-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}

/* Who it's for / not for */
.fit-grid { margin-top: 32px; display: grid; gap: 16px; }
.fit { background: #fff; border-radius: var(--radius); padding: 24px 20px; border-top: 4px solid var(--green); }
.fit--no { border-top-color: var(--red); }
.fit h3 { font-family: var(--serif); font-size: 1.6rem; margin-bottom: 12px; }
.fit li { position: relative; padding: 8px 0 8px 32px; border-bottom: 1px solid var(--line); }
.fit li:last-child { border-bottom: 0; }
.fit li::before { position: absolute; left: 0; top: 8px; font-weight: 700; width: 22px; text-align: center; }
.fit--yes li::before { content: '\2713'; color: var(--green); }
.fit--no li::before { content: '\2715'; color: var(--red); }
@media (min-width: 768px) { .fit-grid { grid-template-columns: 1fr 1fr; gap: 24px; } .fit { padding: 32px; } }

/* Why salvaged */
.why-grid { margin-top: 32px; display: grid; gap: 24px; align-items: center; }
.why-points li { padding: 14px 0 14px 20px; border-left: 3px solid var(--gold); margin-bottom: 12px; background: var(--cream); border-radius: 0 8px 8px 0; padding-right: 16px; }
.why-points strong { display: block; color: var(--charcoal); }
.why-img { border-radius: 14px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.steps-title { margin-top: 48px; font-family: var(--serif); font-size: 1.8rem; text-align: center; }
.steps { margin-top: 20px; display: grid; gap: 12px; counter-reset: none; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 16px 64px; position: relative; font-size: .93rem; color: var(--muted); }
.steps strong { display: block; color: var(--charcoal); font-size: 1rem; }
.step-num { position: absolute; left: 16px; top: 16px; width: 34px; height: 34px; border-radius: 50%; background: var(--charcoal); color: var(--gold); display: grid; place-items: center; font-weight: 600; }
@media (min-width: 900px) {
  .why-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
  .steps { grid-template-columns: repeat(5, 1fr); }
  .steps li { padding: 64px 16px 18px; }
}

/* Reviews */
.review-grid { margin-top: 32px; display: grid; gap: 16px; }
.review { background: #fff; border-radius: var(--radius); padding: 22px 20px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.review .stars { color: var(--gold); letter-spacing: 2px; }
.review blockquote { font-size: .95rem; flex: 1; }
.review figcaption { display: flex; flex-direction: column; font-size: .85rem; color: var(--muted); }
.review figcaption strong { color: var(--charcoal); font-size: .95rem; }
@media (min-width: 640px) { .review-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .review-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* Delivery */
.city-list { margin: 28px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 760px; }
.city-list li { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .92rem; }
.delivery-note { margin-top: 20px; text-align: center; color: var(--muted); font-size: .92rem; }

/* Visit the mill */
.visit-grid { display: grid; gap: 28px; align-items: center; }
.visit-grid p { margin-top: 12px; color: var(--muted); }
.visit-address { margin-top: 16px; font-style: normal; line-height: 1.7; }
.text-link { display: inline-block; margin-top: 14px; color: var(--charcoal); font-weight: 500; text-underline-offset: 3px; padding: 6px 0; }
.visit-img { border-radius: 14px; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 900px) { .visit-grid { grid-template-columns: 1fr 1.2fr; gap: 56px; } }

/* FAQ */
.faq { margin-top: 28px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 18px 40px 18px 0; position: relative;
  font-weight: 500; color: var(--charcoal);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--gold-dark); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 2px; }
.faq details p { padding: 0 0 18px; color: var(--muted); }

/* ---------- Quote form ---------- */
.quote-section { background: var(--charcoal); color: #fff; }
.quote-section .section-title { color: #fff; }
.quote-section .section-lead { color: #D9D2C5; }
.quote-form { margin-top: 28px; background: #fff; color: var(--text); border-radius: 14px; padding: 22px 18px; display: grid; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .88rem; font-weight: 500; color: var(--charcoal); }
.field label span { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid #CFC5B4; border-radius: 8px; background: #fff;
  font: 400 16px/1.4 var(--sans); color: var(--text);
}
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-dark); box-shadow: 0 0 0 3px rgba(212, 168, 67, .3); }
.field .is-invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(162, 59, 42, .15); }
.field-row { display: grid; gap: 14px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } .quote-form { padding: 32px; } }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--red); font-size: .9rem; min-height: 0; }
.form-error:empty { display: none; }
.form-error a { color: inherit; font-weight: 600; }
.btn-quote--submit { width: 100%; margin-top: 4px; }
.form-privacy { font-size: .78rem; color: var(--muted); text-align: center; }

.talk { margin-top: 36px; text-align: center; }
.talk-title { font-weight: 500; color: #D9D2C5; }
.talk-options { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.talk-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 16px; border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .35); color: #fff; text-decoration: none; font-weight: 500;
}
.talk-btn:hover { border-color: #fff; }
.talk-btn--wa svg { color: #25D366; }
.phones { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; font-size: 1.05rem; }
.phones a { color: var(--gold); text-decoration: none; font-weight: 600; padding: 6px 0; }
@media (min-width: 640px) { .talk-options { max-width: 420px; margin-left: auto; margin-right: auto; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--cream); padding: 36px 0 28px; font-size: .86rem; color: var(--muted); text-align: center; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer-logo { height: 46px; width: auto; margin-bottom: 6px; }
.site-footer a { color: var(--charcoal); text-decoration: none; }
.copyright { margin-top: 8px; font-size: .78rem; }

/* ---------- Mobile sticky bottom bar ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(253, 251, 247, .97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .08);
  transition: transform .25s ease;
}
.mobile-bar.is-hidden { transform: translateY(110%); }
@media (min-width: 768px) {
  .mobile-bar { display: none; }
  body { padding-bottom: 0; }
}
