@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/public-sans-var-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/public-sans-var-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/public-sans-var-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Zilla Slab';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/zilla-slab-500-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Zilla Slab';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/zilla-slab-700-latin.woff2) format('woff2');
}

/* ==========================================================================
   Camborne House Clearance — Design System
   Foundation: Josh Comeau's modern CSS reset (industry-standard, battle-tested)
   ========================================================================== */

/* ---- 1. RESET (Josh Comeau modern reset) -------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; line-height: 1.5; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
#root, #__next { isolation: isolate; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; }

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

/* ---- 2. DESIGN TOKENS ---------------------------------------------------- */
:root {
  --color-bg:            #F3F5F2;
  --color-surface:       #FFFFFF;
  --color-ink:           #22302C;
  --color-ink-soft:      #4B5A55;
  --color-primary:       #2F6B5E;
  --color-primary-dark:  #1F4A40;
  --color-primary-light: #E7EFEC;
  --color-accent:        #D98E3B;
  --color-accent-dark:   #B8721F;
  --color-accent-text:   #8F540E;
  --color-line:          #DCE3DE;
  --color-white:         #FFFFFF;

  --font-display: "Zilla Slab", Georgia, serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1:  clamp(1.2rem, 1.13rem + 0.35vw, 1.4rem);
  --step-2:  clamp(1.44rem, 1.32rem + 0.6vw, 1.75rem);
  --step-3:  clamp(1.8rem, 1.6rem + 1vw, 2.4rem);
  --step-4:  clamp(2.3rem, 1.95rem + 1.7vw, 3.4rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(34, 48, 44, 0.06), 0 1px 1px rgba(34, 48, 44, 0.04);
  --shadow-md: 0 6px 16px rgba(34, 48, 44, 0.08), 0 2px 6px rgba(34, 48, 44, 0.06);
  --shadow-lg: 0 16px 40px rgba(34, 48, 44, 0.14), 0 4px 12px rgba(34, 48, 44, 0.08);

  --container-width: 1100px;
}

/* ---- 3. BASE -------------------------------------------------------------- */
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-ink);
  font-size: var(--step-0);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-primary-dark);
  line-height: 1.15;
  font-weight: 700;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); margin-bottom: var(--space-4); }
h3 { font-size: var(--step-2); }

p { color: var(--color-ink-soft); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ---- 4. LAYOUT -------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.section { padding-block: var(--space-8); }
.section--tight { padding-block: var(--space-6); }

.section--dark {
  background: var(--color-primary-dark);
  color: var(--color-white);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--color-white); }
.section--dark p { color: rgba(255,255,255,0.82); }
.section--dark .eyebrow { color: #F0D3A6; }

.section--tint { background: var(--color-primary-light); }

.grid { display: grid; gap: var(--space-5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.stack { display: flex; flex-direction: column; gap: var(--space-4); }

.split {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 780px) {
  .split { grid-template-columns: 1.1fr 0.9fr; }
}

/* ---- 5. HEADER / NAV (no-JS mobile menu via checkbox hack) ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-line);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-4);
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
  color: var(--color-primary-dark);
}
.logo span { color: var(--color-accent-text); }

.nav-links {
  display: none;
  gap: var(--space-6);
  font-weight: 600;
  font-size: var(--step--1);
}
.nav-links a { padding: var(--space-2) 0; }
.nav-links a:hover { color: var(--color-primary); }

.nav-toggle { display: block; }
.nav-toggle-input { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
}
.nav-toggle-label span {
  display: block;
  height: 2px;
  background: var(--color-primary-dark);
  border-radius: 2px;
}

.mobile-nav {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  border-top: 1px solid var(--color-line);
}
.nav-toggle-input:checked ~ .mobile-nav { max-height: 400px; }
.mobile-nav ul { padding: var(--space-4) 0; display: flex; flex-direction: column; gap: var(--space-3); }
.mobile-nav a { font-weight: 600; display: block; padding: var(--space-2) 0; }

@media (min-width: 900px) {
  .nav-links { display: flex; align-items: center; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none; }
}

/* ---- 6. BUTTONS ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: var(--step--1);
  padding: 0.85em 1.6em;
  border-radius: var(--radius-pill);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--color-accent);
  color: var(--color-ink);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--color-accent-text); color: var(--color-white); box-shadow: var(--shadow-md); }

.btn--secondary {
  background: transparent;
  color: var(--color-primary-dark);
  border: 2px solid var(--color-primary-dark);
}
.btn--secondary:hover { background: var(--color-primary-dark); color: var(--color-white); }

.btn--on-dark { background: var(--color-white); color: var(--color-primary-dark); }
.btn--on-dark:hover { background: var(--color-accent); color: var(--color-white); }

.btn-row { display: flex; gap: var(--space-4); flex-wrap: wrap; }

/* ---- 7. PILLS / BADGES ------------------------------------------------------ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--step--1);
  font-weight: 600;
  padding: 0.4em 0.9em;
  border-radius: var(--radius-pill);
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  border: 1px solid var(--color-line);
}
.pill--accent { background: #FBEBD5; color: var(--color-accent-text); border-color: #F0D3A6; }
.pill-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.trust-bar { display: flex; flex-wrap: wrap; gap: var(--space-3); padding-block: var(--space-5); }

/* ---- 8. CARDS --------------------------------------------------------------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  font-size: 1.4rem;
}

.card h3 { margin-bottom: var(--space-2); }
.card p { margin-bottom: var(--space-3); }
.card .card-link { font-weight: 700; color: var(--color-primary); }
.card .card-link:hover { color: var(--color-accent-dark); }

.checklist { display: flex; flex-direction: column; gap: var(--space-3); }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-weight: 600;
  color: var(--color-ink);
}
.checklist li::before {
  content: "✓";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  margin-top: 2px;
}

.steps { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.step { position: relative; padding-top: var(--space-7); }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0; left: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-primary-dark);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}

/* ---- 9. SIGNATURE: JOB TICKET CARD ------------------------------------------ */
.ticket {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-7) var(--space-6) var(--space-6);
  overflow: hidden;
}
.ticket::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 10px;
  background-image: radial-gradient(circle, var(--color-bg) 4px, transparent 4.5px);
  background-size: 20px 10px;
  background-position: 0 -5px;
  background-repeat: repeat-x;
}
.ticket__stub {
  position: absolute;
  top: var(--space-4);
  right: -34px;
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 700;
  font-size: var(--step--1);
  padding: 0.3em 2.6em;
  transform: rotate(45deg);
  box-shadow: var(--shadow-sm);
}
.ticket blockquote {
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--color-primary-dark);
  margin-bottom: var(--space-4);
}
.ticket cite { font-style: normal; font-weight: 600; color: var(--color-ink-soft); }

/* ---- 10. HERO ---------------------------------------------------------------- */
.hero {
  padding-block: var(--space-9) var(--space-8);
  background:
    radial-gradient(circle at 85% 20%, rgba(217,142,59,0.14), transparent 45%),
    var(--color-primary-dark);
  color: var(--color-white);
}
.hero h1 { color: var(--color-white); margin-bottom: var(--space-4); }
.hero p { color: rgba(255,255,255,0.85); font-size: var(--step-1); margin-bottom: var(--space-6); max-width: 46ch; }

/* ---- 11. CTA BANNER ------------------------------------------------------------ */
.cta-banner {
  background: var(--color-accent);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  color: var(--color-white);
  text-align: center;
}
.cta-banner h2, .cta-banner p { color: var(--color-ink); }
.cta-banner .btn--primary { background: var(--color-primary-dark); color: var(--color-white); }
.cta-banner .btn--primary:hover { background: var(--color-white); color: var(--color-primary-dark); }

/* ---- 12. FAQ ACCORDION (native details/summary, no JS) ------------------------ */
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-3);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: var(--step-0);
  color: var(--color-primary-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--color-accent);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: var(--space-3); }

/* ---- 13. FORM ------------------------------------------------------------------- */
.form-field { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-4); }
.form-field label { font-weight: 700; font-size: var(--step--1); }
.form-field input,
.form-field select,
.form-field textarea {
  padding: 0.75em 1em;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--color-primary);
  outline: 3px solid rgba(47,107,94,0.15);
}

/* ---- 14. FOOTER ------------------------------------------------------------------ */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.75);
  padding-block: var(--space-7);
  font-size: var(--step--1);
}
.site-footer a:hover { color: var(--color-white); }
.site-footer p { color: rgba(255,255,255,0.75); }
.footer-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: var(--space-6);
}
.footer-grid h3 { color: var(--color-white); font-size: var(--step-0); margin-bottom: var(--space-3); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: var(--space-5);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ---- 15. UTILITIES --------------------------------------------------------------- */
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent-text);
  margin-bottom: var(--space-3);
}
.max-prose { max-width: 65ch; }

/* ---- 16. HERO SPLIT (image separate from card on mobile) ------------------ */
.hero-split { position: relative; }
.hero-split__image, .hero-split__image--bg {
  height: 220px;
  background-size: cover;
  background-position: center;
  background-color: var(--color-primary-dark);
}
.hero-split .card {
  margin-top: var(--space-5);
  position: relative;
  z-index: 2;
  margin-inline: auto;
  max-width: 300px;
  padding: var(--space-5);
}
.hero-split .form-field input,
.hero-split .form-field textarea {
  padding: 0.55em 0.8em;
  font-size: var(--step--1);
}
.hero-split .btn {
  padding: 0.65em 1.2em;
  font-size: var(--step--1);
}

@media (min-width: 900px) {
  .hero-split { min-height: 520px; display: flex; align-items: center; }
  .hero-split__image, .hero-split__image--bg {
    position: absolute;
    inset: 0;
    height: 100%;
  }
  .hero-split__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(31,74,64,0.25);
  }
  .hero-split .container { position: relative; z-index: 2; }
  .hero-split .card { margin-top: 0; margin-left: 0; margin-right: auto; }
}

.form-note {
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
  margin-top: 12px;
}

.hero-split__image--bg {
  background-image: url('images/hero-image.jpg');
  background-image: image-set(url('images/hero-image.webp') type('image/webp'), url('images/hero-image.jpg') type('image/jpeg'));
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 900px;
  margin: 30px auto;
}

.gallery-item {
  text-align: center;
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  display: block;
}

.gallery-caption {
  margin-top: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .gallery-grid {
    gap: 15px;
  }
  .gallery-caption {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    gap: 10px;
  }
  .gallery-caption {
    font-size: 0.8rem;
  }
}


/* Hero subtitle contrast badge (canonical) */
.hero-subtitle-badge {
    display: inline-block;
    background: #ffffff;
    color: #1f2937;
    font-weight: 700;
    font-size: 0.9375rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    margin: 0.75rem auto 0;
    text-align: center;
    width: fit-content;
}
