/* ==========================================================================
   Peterborough Clearances — landing page styles
   Sister-brand palette for the Gibbs family of services.
   ========================================================================== */

:root {
  --brand:        #0F5D43;   /* deep purple */
  --brand-dark:   #0A4031;
  --accent:       #16A34A;   /* magenta */
  --accent-dark:  #15803D;
  --ink:          #0A4031;
  --muted:        #4B5F56;
  --faint:        #6E8278;
  --bg:           #FFFFFF;
  --bg-soft:      #F1F8F4;
  --line:         #E0EFE6;
  --radius:       8px;
  --radius-lg:    12px;
  --shadow:       0 2px 8px rgba(10, 64, 49, 0.08);
  --shadow-lg:    0 12px 32px rgba(10, 64, 49, 0.14);
  --font-serif:   Georgia, "Times New Roman", serif;
  --font-sans:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --scrim:        10, 64, 49;   /* brand-dark RGB for the hero overlay */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Visible keyboard-focus indicator for all interactive elements (accessibility). */
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-serif); color: var(--brand); line-height: 1.2; }
h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 12px; }
h3 { font-size: 1.125rem; margin-bottom: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius);
  font-weight: 600; font-size: 15px; cursor: pointer; border: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none !important;
}
.btn-primary {
  background: linear-gradient(120deg, var(--brand) 0%, var(--accent) 100%);
  color: #fff; box-shadow: var(--shadow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-ghost {
  background: transparent; color: var(--brand);
  border: 1.5px solid var(--brand);
}
.btn-ghost:hover { background: var(--bg-soft); }
.btn-phone {
  background: var(--brand); color: #fff; padding: 10px 18px; font-size: 14px;
  white-space: nowrap;
}
.btn-phone:hover { background: var(--accent); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none !important; }
.wordmark-badge {
  width: 38px; height: 38px; border-radius: 9px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff; font-family: var(--font-serif); font-style: italic;
  font-size: 22px; font-weight: 700;
}
.wordmark-text { font-family: var(--font-serif); font-size: 19px; color: var(--brand); font-weight: 700; }
.wordmark-text em { color: var(--accent); font-style: italic; }
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a { color: var(--muted); font-size: 14.5px; font-weight: 500; }
.site-nav a:hover { color: var(--brand); text-decoration: none; }

/* ---------- Hero (full-bleed background image) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 104px 0 112px; color: #fff;
  background-color: var(--brand-dark);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: var(--hero-img);
  background-size: cover; background-position: center 38%;
  transform: scale(1.04); /* avoids hairline edges on the scrim */
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(95deg, rgba(var(--scrim), 0.94) 0%, rgba(var(--scrim), 0.80) 38%, rgba(var(--scrim), 0.34) 72%, rgba(var(--scrim), 0.12) 100%),
    linear-gradient(0deg, rgba(var(--scrim), 0.55) 0%, rgba(var(--scrim), 0) 40%);
}
.hero-inner { max-width: 660px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 12.5px;
  font-weight: 700; color: var(--accent); margin-bottom: 14px;
}
.hero .eyebrow { color: #fff; opacity: 0.92; }
.hero h1 { color: #fff; text-shadow: 0 1px 24px rgba(0,0,0,0.28); }
.lede { font-size: 17.5px; color: var(--muted); margin: 18px 0 26px; max-width: 54ch; }
.hero .lede { color: rgba(255,255,255,0.93); max-width: 50ch; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.trust-row {
  list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px;
  margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--muted);
}
.trust-row strong { color: var(--brand); }
.hero .trust-row { border-top-color: rgba(255,255,255,0.28); color: rgba(255,255,255,0.92); }
.hero .trust-row strong { color: #fff; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.04); }
.hero .btn-ghost:hover { background: rgba(255,255,255,0.14); }

/* ---------- Strip ---------- */
.strip { background: var(--brand-dark); color: #DDF0E5; padding: 14px 0; text-align: center; font-size: 14.5px; }
.strip strong { color: #fff; }
.strip a { color: #6EE7A0; font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-soft); }
.section-sub { color: var(--muted); max-width: 64ch; margin-bottom: 36px; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card p { font-size: 14.5px; color: var(--muted); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 36px; }
.step-num {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  border-radius: 50%; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff; font-weight: 700; font-size: 18px;
}
.step p { font-size: 14.5px; color: var(--muted); }

/* ---------- Split ---------- */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-visual img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.split-copy p { color: var(--muted); margin-bottom: 16px; }
.split-copy .btn { margin-top: 6px; }

/* ---------- Chips ---------- */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 18px; font-size: 14px; color: var(--muted); box-shadow: var(--shadow);
}

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 780px; }
.faq-wrap h2 { margin-bottom: 28px; }
details {
  border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 12px; background: #fff; box-shadow: var(--shadow);
}
summary {
  cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--brand);
  list-style: none; position: relative; padding-right: 48px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-size: 22px; font-weight: 400; transition: transform 0.2s ease;
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { padding: 0 22px 18px; color: var(--muted); font-size: 15px; }

/* ---------- Quote form ---------- */
.section-quote { background: linear-gradient(160deg, var(--brand-dark) 0%, var(--brand) 100%); }
.quote-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.quote-intro { color: #DDF0E5; }
.quote-intro h2 { color: #fff; }
.quote-intro p { margin-bottom: 18px; }
.quote-phone a { color: #fff; font-size: 28px; font-weight: 700; font-family: var(--font-serif); }
.quote-phone span { font-size: 13.5px; color: #9FC5AF; }
.quote-alt a { color: #6EE7A0; }

.quote-form {
  background: #fff; border-radius: var(--radius-lg); padding: 32px;
  box-shadow: var(--shadow-lg);
}
.quote-form label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.quote-form input, .quote-form select, .quote-form textarea {
  width: 100%; margin-top: 6px; padding: 11px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  font: inherit; font-size: 15px; color: var(--ink); background: #fff;
}
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 12.5px; color: var(--faint); text-align: center; margin-top: 12px; }
.form-feedback {
  background: #ECFDF3; border: 1px solid var(--accent); color: var(--accent-dark);
  border-radius: var(--radius); padding: 12px 16px; font-size: 14px; margin-bottom: 16px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-dark); color: #9FC5AF; padding: 56px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 0.8fr 1.2fr; gap: 36px; }
.footer-mark { font-size: 21px; color: #fff; margin-bottom: 10px; }
.footer-mark em { color: #6EE7A0; }
.site-footer h4 {
  color: #fff; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 10px; font-family: var(--font-sans);
}
.site-footer a { color: #DDF0E5; }
.site-footer a:hover { color: #6EE7A0; }
.footer-base {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 12.5px; text-align: center;
}

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 560px; margin: 0 auto;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 18px 20px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
}
.cookie-banner p { font-size: 13.5px; color: var(--muted); flex: 1 1 260px; margin: 0; }
.cookie-actions { display: flex; gap: 10px; margin-left: auto; }
.cookie-actions .btn { padding: 9px 18px; font-size: 13.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .split-grid, .quote-grid { grid-template-columns: 1fr; gap: 36px; }
  .card-grid, .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-nav { display: none; }
  .hero { padding: 72px 0 80px; }
  .section { padding: 56px 0; }
}
@media (max-width: 560px) {
  .card-grid, .steps, .field-row, .footer-grid { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
  .header-inner { gap: 12px; }
  .wordmark-text { font-size: 16px; }
  .hero { padding: 56px 0 64px; }
  .hero::before { background-position: center 30%; }
  .hero .lede { max-width: none; }
  .cookie-banner { padding: 16px; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before { transform: none; }
}
