/* =========================================================
   Brrrow — production stylesheet
   Pure CSS, no framework. Mobile-first with breakpoints at
   640px (mobile/tablet) and 1024px (tablet/desktop).
   ========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, picture, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; padding: 0; }

/* ---------- Design tokens ---------- */
:root {
  --black: #15130f;
  --ink: #1c1917;
  --muted: #57534e;
  --muted-2: #78716c;
  --cream: #fff7ed;
  --cream-2: #fffbf5;
  --white: #ffffff;
  --line: #f0e4d3;
  --line-2: #e7d8c6;
  --orange: #ff5a2a;
  --orange-dark: #e64a1c;
  --orange-light: #ffe8d6;
  --teal: #0e7490;
  --teal-dark: #155e75;
  --teal-light: #ecfeff;
  --teal-line: #a5f3fc;
  --chill: #0ea5e9;
  --shadow-sm: 0 4px 16px rgba(21, 19, 15, 0.06);
  --shadow-md: 0 16px 40px rgba(21, 19, 15, 0.10);
  --shadow-lg: 0 24px 64px rgba(21, 19, 15, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container: 1200px;
  --font-display: "Bricolage Grotesque", "Plus Jakarta Sans", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: pretty;
}
h1 { font-size: clamp(2.4rem, 4.5vw + 1rem, 4.2rem); }
h2 { font-size: clamp(1.9rem, 2.6vw + 1rem, 2.75rem); }
h3 { font-size: 1.375rem; }
p { text-wrap: pretty; }
.lede { font-size: 1.2rem; line-height: 1.6; color: var(--muted); }

/* Focus visibility for a11y */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2.5px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--black);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.2s ease;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-alt { background: var(--white); }
.section-dark { background: var(--black); color: var(--cream-2); }
.section-dark .muted { color: rgba(255,251,242,0.65); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin: 0 0 40px; text-align: left; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--orange-dark);
  background: var(--orange-light);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  max-width: 100%;
  box-sizing: border-box;
  line-height: 1.45;
}
.section-dark .eyebrow { background: rgba(255,90,42,0.16); color: #ffb08f; }
.muted { color: var(--muted); }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: #000; }
.btn-outline { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--white); border-color: var(--muted-2); }
.section-dark .btn-outline { border-color: rgba(255,251,242,0.35); color: var(--white); }
.section-dark .btn-outline:hover { background: rgba(255,251,242,0.1); }
.btn-block { width: 100%; }
.btn-sm { padding: 11px 20px; font-size: 0.9375rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 247, 237, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 20px;
}
.logo {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--chill);
  gap: 1px;
}
.logo span.r1 { display: inline-block; transform: translateY(1.5px); }
.logo span.r2 { display: inline-block; transform: translateY(3.5px); }
.logo span.r3 { display: inline-block; transform: translateY(1.5px); }
.logo .dot { color: var(--teal); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 600;
  font-size: 0.9375rem;
}
.nav-links a { padding: 8px 2px; border-bottom: 2px solid transparent; transition: border-color 0.15s ease, color 0.15s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { border-color: var(--orange); color: var(--orange-dark); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
}
.menu-toggle span { display: block; width: 22px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; margin: 0 auto; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: 0;
  background: var(--cream);
  z-index: 600;
  padding: 96px 32px 32px;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a { display: block; padding: 16px 4px; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 20px; }
.mobile-menu-close {
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 601;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.mobile-menu.is-open ~ .mobile-menu-close, .mobile-menu-close.is-open { display: flex; }

/* ---------- Hero ---------- */
.hero { background: var(--black); color: var(--cream-2); padding: 64px 0 88px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { color: var(--white); }
.hero h1 .accent { color: var(--orange); }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 26px; font-size: 0.875rem; font-weight: 600; color: rgba(255,251,242,0.7); }
.hero-trust li { display: flex; align-items: center; gap: 7px; }
.hero-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--teal); }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; top: 18px; right: 18px;
  background: var(--teal-light); color: var(--teal-dark);
  font-weight: 800; font-size: 0.875rem; padding: 11px 16px;
  border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
  transform: rotate(-2deg);
  max-width: calc(100% - 36px);
}

/* Postcode checker */
.postcode-box {
  background: var(--white); border-radius: var(--radius-md); padding: 10px;
  display: flex; gap: 10px; box-shadow: var(--shadow-md); margin-top: 32px; max-width: 560px;
}
.section-dark .postcode-box, .hero .postcode-box { background: rgba(255,251,242,0.06); border: 1px solid rgba(255,251,242,0.18); box-shadow: none; }
.postcode-box input {
  flex: 1; background: transparent; border: none; padding: 12px 14px; font-size: 1rem; color: inherit; min-width: 0;
}
.hero .postcode-box input::placeholder { color: rgba(255,251,242,0.5); }
.postcode-result { margin-top: 14px; padding: 14px 18px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.9375rem; display: none; }
.postcode-result.show { display: block; }
.postcode-result.ok { background: var(--teal-light); color: var(--teal-dark); border: 1px solid var(--teal-line); }
.postcode-result.fail { background: var(--orange-light); color: #9a3412; border: 1px solid #fdba74; }

/* ---------- Trust / key-facts strip ---------- */
.trust-strip {
  display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: center;
  padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-weight: 700; font-size: 0.9375rem; color: var(--muted);
}
.trust-strip li { display: flex; align-items: center; gap: 8px; }
.trust-strip .ico { color: var(--orange); }

/* ---------- Feature / step / value cards ---------- */
.feature-card, .step-card, .value-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 32px; height: 100%;
}
.icon-tile {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  background: var(--orange-light); color: var(--orange-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.icon-tile svg { width: 26px; height: 26px; }
.feature-card h3, .step-card h3, .value-card h3 { margin-bottom: 10px; }
.step-card { position: relative; }
.step-num {
  width: 40px; height: 40px; border-radius: 999px; background: var(--black); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800;
  margin-bottom: 18px;
}

/* ---------- Pricing ---------- */
.price-card {
  background: var(--white); border: 2px dashed var(--line-2); border-radius: var(--radius-lg);
  padding: 36px; height: 100%; display: flex; flex-direction: column; gap: 14px;
}
.price-card--featured {
  background: var(--teal); color: var(--white); border: none; position: relative;
}
.price-card--featured .muted { color: rgba(255,255,255,0.75); }
.price-tag { font-family: var(--font-display); font-size: 2.75rem; font-weight: 800; letter-spacing: -0.02em; }
.price-tag span { font-family: var(--font-body); font-size: 1rem; font-weight: 600; opacity: 0.7; }
.price-badge {
  position: absolute; top: -14px; right: 22px; background: #facc15; color: var(--black);
  font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 6px 12px; border-radius: 6px; transform: rotate(2deg);
}
.price-list { display: flex; flex-direction: column; gap: 8px; font-size: 0.9375rem; }
.price-list li { display: flex; gap: 8px; align-items: flex-start; }

/* Calculator (pricing page) */
.calc-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.calc-result { margin-top: 20px; background: var(--teal-light); border: 1px solid var(--teal-line); border-radius: var(--radius-md); padding: 20px; }
.calc-result .amount { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--teal-dark); }

/* ---------- Forms ---------- */
label { display: block; font-weight: 700; font-size: 0.875rem; margin-bottom: 7px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], textarea, select {
  width: 100%; background: var(--white); border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 13px 16px; font-size: 1rem; color: var(--ink);
}
textarea { resize: vertical; min-height: 120px; }
.form-field { margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: 0.8125rem; color: var(--muted-2); margin-top: 8px; }
.form-status { margin-top: 16px; padding: 14px 18px; border-radius: var(--radius-sm); font-weight: 600; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: var(--teal-light); color: var(--teal-dark); border: 1px solid var(--teal-line); }
.form-status.err { background: var(--orange-light); color: #9a3412; border: 1px solid #fdba74; }
.newsletter-box { display: flex; gap: 10px; max-width: 440px; }
.newsletter-box input { flex: 1; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ---------- FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between;
  padding: 22px 4px; font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; gap: 16px;
}
.faq-question .plus { flex-shrink: 0; width: 26px; height: 26px; position: relative; }
.faq-question .plus::before, .faq-question .plus::after { content: ""; position: absolute; background: var(--ink); border-radius: 2px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.faq-question .plus::before { width: 16px; height: 2.5px; }
.faq-question .plus::after { width: 2.5px; height: 16px; transition: transform 0.25s ease; }
.faq-question[aria-expanded="true"] .plus::after { transform: translate(-50%, -50%) rotate(90deg) scaleY(0); }
.faq-answer { overflow: hidden; max-height: 0; transition: max-height 0.3s ease; }
.faq-answer p { padding: 0 4px 22px; color: var(--muted); max-width: 680px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: rgba(255,251,242,0.8); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,251,242,0.12); }
.footer-col h4 { color: var(--white); font-size: 0.9375rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; font-size: 0.9375rem; }
.footer-col a:hover { color: var(--white); }
.footer-logo { margin-bottom: 14px; }
.footer-logo .logo { color: var(--chill); }
.social-links { display: flex; gap: 10px; margin-top: 18px; }
.social-links a {
  width: 38px; height: 38px; border-radius: 999px; border: 1px solid rgba(255,251,242,0.25);
  display: flex; align-items: center; justify-content: center;
}
.social-links a:hover { background: rgba(255,251,242,0.1); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: 0.8125rem; }
.footer-bottom .legal-links { display: flex; gap: 20px; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 700;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 22px 24px; display: none;
  max-width: 620px; margin: 0 auto;
  align-items: center; gap: 20px; flex-wrap: wrap;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { font-size: 0.9375rem; flex: 1; min-width: 220px; }
.cookie-actions { display: flex; gap: 10px; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 400;
  width: 48px; height: 48px; border-radius: 999px; background: var(--black); color: var(--white);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: #000; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Misc page bits ---------- */
.page-hero { padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 760px; }
.breadcrumb { font-size: 0.875rem; color: var(--muted-2); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--orange-dark); }
.legal-content h2 { margin: 40px 0 14px; font-size: 1.375rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--muted); margin-bottom: 12px; }
.legal-content ul { list-style: disc; padding-left: 22px; }
.legal-content .callout { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px 24px; margin: 28px 0; }
.legal-updated { font-size: 0.875rem; color: var(--muted-2); margin-bottom: 32px; }
figure.photo { border-radius: var(--radius-lg); overflow: hidden; background: var(--teal); }
figure.photo img, figure.photo video { width: 100%; height: 100%; object-fit: cover; }
.placeholder-note { font-size: 0.8125rem; color: var(--muted-2); text-align: center; margin-top: 8px; }
.map-embed { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/10; background: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 520px; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
}
@media (max-width: 640px) {
  .section { padding: 52px 0; }
  h1 { font-size: clamp(2rem, 8vw, 2.75rem); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .calc-row { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .price-badge { right: 14px; }
  .postcode-box { flex-direction: column; }
  .postcode-box .btn { width: 100%; }
  .hero-cta-row .btn { flex: 1; min-width: 140px; }
}
