/* ---------- Colours & type (change these to rebrand) ---------- */
:root {
  /* Colours taken from the logo */
  --ground: #f4f8fe;        /* page background */
  --ground-2: #e4eefb;      /* slightly darker surface */
  --ground-3: #d6e5f8;      /* surface on hover */
  --ink: #0a1628;           /* main text */
  --ink-soft: #43536b;      /* secondary text */
  --black: #05080f;         /* top bar and footer, like the logo's background */
  --field: #0c2342;         /* deep navy sections and the quote box */
  --field-2: #16365f;       /* answers inside the quote box */
  --field-3: #1f4678;       /* answers on hover */
  --field-ink: #eff6ff;     /* text on navy */
  --field-soft: #c6d7ec;    /* secondary text on navy */
  --blue: #0a6ed1;          /* buttons on light backgrounds */
  --blue-dark: #0859ab;     /* those buttons on hover */
  --accent: #38b6ff;        /* electric blue: buttons on dark backgrounds */
  --accent-light: #74ccff;  /* those buttons on hover */
  --leaf: #4fa82a;          /* the logo's green leaf: ticks only */
  --ph: #d6e5f8;            /* photo placeholder */
  --radius: 16px;

  --font-head: "Fredoka", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step-hero: clamp(3rem, 7vw, 7.5rem);
  --step-h2: clamp(2.25rem, 4.6vw, 4.25rem);
  --step-h3: 1.375rem;
  --step-body: 1.125rem;

  --margin: clamp(16px, 3vw, 40px);
  --gap: clamp(120px, 14vw, 200px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
section[id] { scroll-margin-top: 96px; }
#get-quote { scroll-margin-top: 112px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 var(--step-body)/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-head); font-weight: 600; line-height: 1.08; }
h1 { text-wrap: balance; font-size: var(--step-hero); line-height: 1.02; }
h2 { font-size: var(--step-h2); }
h3 { font-size: var(--step-h3); font-weight: 500; line-height: 1.15; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.field :focus-visible, .bar :focus-visible, .footer :focus-visible, .hero-form :focus-visible, .service-popular :focus-visible { outline-color: var(--accent); }
::selection { background: var(--accent); color: var(--ink); }

.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--margin); }
.section { padding-block: var(--gap) 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
  font: 700 1.0625rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sm { white-space: nowrap; min-height: 42px; padding: 0 18px; font-size: .9375rem; }
.btn-ink { background: var(--blue); color: #fff; }
.btn-ink:hover { background: var(--blue-dark); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-light); }
.link-strong { font-weight: 700; font-size: 1.25rem; text-decoration: underline 2px transparent; text-underline-offset: 6px; transition: text-decoration-color .2s; }
.link-strong:hover { text-decoration-color: currentColor; }

/* ---------- Top bar ---------- */
.bar { position: sticky; top: 0; z-index: 20; background: var(--black); color: var(--field-ink); }
.bar-in { display: flex; align-items: center; gap: 32px; min-height: 96px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand-logo { flex: none; width: 80px; height: 80px; border-radius: 50%; }
.wordmark { white-space: nowrap; font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; color: var(--field-soft); transition: color .2s; }
.nav a:hover { color: var(--accent); }

/* ---------- Photo placeholders ---------- */
.photo { position: relative; overflow: hidden; background: var(--ph); border-radius: var(--radius); }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.ph-note {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
  padding: 24px; font-weight: 600; font-size: 1.125rem; color: var(--ink-soft);
}
.ph-note small { font-weight: 400; font-size: .9375rem; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 4vw, 72px);
  align-items: start; padding-top: clamp(24px, 3vw, 44px);
}
.hero-text { padding-top: clamp(16px, 4vw, 64px); }
.lead { margin-top: 40px; font-size: clamp(1.25rem, 1.7vw, 1.5rem); line-height: 1.4; max-width: 30ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; }
.facts { list-style: none; padding: 0; margin: 56px 0 0; display: grid; gap: 10px; color: var(--ink-soft); }
.facts strong { color: var(--ink); font-weight: 600; }
.photo-hero { aspect-ratio: 21 / 9; width: 100%; margin-top: clamp(48px, 6vw, 96px); }
.hero-form { background: var(--field); color: var(--field-ink); padding: clamp(24px, 2.5vw, 36px); display: grid; gap: 16px; align-content: start; border-radius: calc(var(--radius) + 4px); box-shadow: 0 18px 50px rgba(10, 110, 209, .28); }
.hero-form h2 { font-size: clamp(2rem, 3vw, 2.75rem); }
.hero-form input:not([type=radio]):not([type=checkbox]) {
  appearance: none; -webkit-appearance: none;
  font: inherit; color: var(--ink); background: var(--field-ink); border: 0; border-radius: 10px;
  padding: 10px 14px; min-height: 50px; width: 100%;
}
.optional { font-weight: 400; opacity: .75; }

/* ---------- Quote form: one question at a time ---------- */
.wiz-progress { height: 6px; margin-top: 16px; background: var(--field-2); border-radius: 999px; overflow: hidden; }
.wiz-progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .35s var(--ease); }
.step { display: grid; gap: 12px; }
.js .step { display: none; }
.js .step.is-active { display: grid; animation: step-in .35s var(--ease); }
@keyframes step-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.step:focus { outline: none; }
.step legend { font-family: var(--font-head); font-size: 1.375rem; font-weight: 500; line-height: 1.2; margin-bottom: 4px; }
.options { display: grid; gap: 8px; }
.option {
  position: relative; display: flex; align-items: center; gap: 16px; cursor: pointer;
  background: var(--field-2); padding: 16px 18px; border-radius: 12px;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.option input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.option:hover { background: var(--field-3); }
.option:active { transform: scale(.99); }
.option:has(input:checked) { background: var(--field-ink); color: var(--ink); }
.option:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.option-body { display: grid; gap: 4px; flex: 1; }
.option-body strong { font-weight: 800; font-size: 1.125rem; line-height: 1.25; }
.option-body small { font-size: .9375rem; line-height: 1.4; color: var(--field-soft); }
.option:has(input:checked) .option-body small { color: var(--ink-soft); }
.option-price { font-family: var(--font-head); font-weight: 600; font-size: 1.375rem; white-space: nowrap; }
.option-price small { font-family: var(--font); font-size: .875rem; font-weight: 600; letter-spacing: 0; }
.tag { display: inline-block; vertical-align: 2px; margin-left: 6px; padding: 2px 9px; border-radius: 999px; background: var(--accent); color: var(--ink); font-family: var(--font); font-size: .75rem; font-weight: 800; letter-spacing: 0; }
.sub-q { font-weight: 600; margin-top: 4px; }
.step-note { color: var(--field-soft); font-size: .9375rem; }
.step-note a { color: var(--field-ink); font-weight: 600; }
.field-label { display: grid; gap: 6px; font-weight: 600; font-size: 1rem; }
.done-title { font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; }
.wiz-error { color: #ffc4ba; font-weight: 700; }
.wiz-error:empty { display: none; }
.wiz-nav { display: flex; gap: 10px; }
.wiz-nav .btn { flex: 1; }
.wiz-nav [hidden], .wiz [hidden] { display: none; }
.is-done .wiz-nav { display: none; }
.btn-ghost { background: var(--field-2); color: var(--field-ink); }
.btn-ghost:hover { background: var(--field-3); }

/* ---------- Services ---------- */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 112px); }
.split-head p { margin-top: 24px; max-width: 34ch; }
.split-head { position: sticky; top: 136px; align-self: start; }
.services { display: grid; gap: 8px; }
.service {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start;
  background: var(--ground-2); padding: 28px 32px; border-radius: var(--radius);
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.service:hover { background: var(--ground-3); transform: translateX(4px); }
.service p { margin-top: 8px; color: var(--ink-soft); max-width: 46ch; }
.service .price { margin: 0; white-space: nowrap; color: var(--ink-soft); font-size: 1rem; }
.service .price strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 2rem; color: var(--ink); font-variant-numeric: tabular-nums; }

.list-title { font-size: 1.5rem; }
.list-sub { margin: 6px 0 16px; color: var(--ink-soft); }
.list-title-gap { margin-top: 56px; margin-bottom: 16px; }
.service .link-strong { display: inline-block; margin-top: 12px; font-size: 1rem; }
.service .price strong + * { display: block; }
.service-popular { background: var(--field); color: var(--field-ink); }
.service-popular:hover { background: var(--field-2); }
.service-popular p, .service-popular .price { color: var(--field-soft); }
.service-popular .price strong { color: var(--field-ink); }
.service-lease .price strong { font-size: 1.5rem; }

/* ---------- 6-month reward ---------- */
.reward { margin-top: 8px; padding: 28px 32px; border: 2px solid var(--blue); border-radius: var(--radius); background: #fff; }
.tag.reward-tag { margin: 0 0 12px; background: var(--blue); color: #fff; }
.reward p { margin-top: 8px; color: var(--ink-soft); }
.reward-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; font-weight: 700; }
.reward-list li { padding-left: 28px; position: relative; }
.reward-list li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px;
  border-left: 3px solid var(--leaf); border-bottom: 3px solid var(--leaf); transform: rotate(-45deg);
}
.reward-link { display: inline-block; margin-top: 14px; font-size: 1rem; font-weight: 700; color: var(--blue); }

/* ---------- Privacy and terms pages ---------- */
.legal { max-width: 800px; padding-block: clamp(48px, 6vw, 88px) clamp(72px, 8vw, 120px); }
.legal h1 { font-size: var(--step-h2); }
.legal h2 { margin-top: 40px; font-size: 1.5rem; font-weight: 500; scroll-margin-top: 112px; }
.legal p, .legal ul { margin-top: 14px; }
.legal ul { padding-left: 22px; display: grid; gap: 8px; }
.legal a:not(.btn) { color: var(--blue); font-weight: 600; }
.legal-date { color: var(--ink-soft); font-size: 1rem; }
.legal-cta { margin-top: 40px !important; }

/* ---------- Quote buttons through the page ---------- */
.quote-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 32px; }
.quote-cta p { color: var(--ink-soft); }
.quote-cta p a { color: var(--ink); font-weight: 600; }
.quote-cta-wide { margin-top: 56px; }
.mobile-quote { display: none; }

/* ---------- Coloured fields ---------- */
.field { background: var(--field); color: var(--field-ink); margin-top: var(--gap); padding-block: clamp(96px, 10vw, 160px); }
.field-ink { background: var(--field); }
.field-soft { background: var(--ground-2); color: var(--ink); }


/* ---------- Included ---------- */
.included-head { display: grid; grid-template-columns: 7fr 5fr; gap: 32px; align-items: end; }
.included-head p { color: var(--ink-soft); }
.rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 40px); margin-top: 64px; }
.photo-room { aspect-ratio: 4 / 3; margin-bottom: 24px; }
.room ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.room li { padding-left: 28px; position: relative; }
.room li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px;
  border-left: 3px solid var(--leaf); border-bottom: 3px solid var(--leaf); transform: rotate(-45deg);
}

/* ---------- Choice chips ---------- */
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; margin-bottom: 12px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span {
  display: inline-flex; align-items: center; min-height: 48px; min-width: 56px; justify-content: center;
  padding: 0 20px; border-radius: 999px; background: var(--field-2); font-weight: 600;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.chips label:hover span { background: var(--field-3); }
.chips input:checked + span { background: var(--field-ink); color: var(--ink); }
.chips input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.chips input:active + span { transform: scale(.96); }

/* ---------- Area ---------- */
.area { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 112px); }
.area-text p { margin-top: 24px; max-width: 36ch; }
.districts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.districts li { color: var(--ink-soft); }
.districts strong { display: block; color: var(--ink); font-size: 1.375rem; margin-bottom: 2px; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: 4fr 4fr 4fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.review { margin: 0; }
.review blockquote { margin: 0; font-size: clamp(1.25rem, 1.8vw, 1.625rem); line-height: 1.3; }
.review figcaption { margin-top: 16px; font-weight: 600; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 112px); }
.faq-list { display: grid; gap: 8px; }
details { background: var(--ground-2); border-radius: 12px; transition: background-color .2s; }
details:hover { background: var(--ground-3); }
summary {
  list-style: none; cursor: pointer; padding: 22px 64px 22px 28px; position: relative;
  font-weight: 700; font-size: 1.1875rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 28px; top: 50%; transform: translateY(-50%);
  font-size: 1.75rem; font-weight: 400; transition: transform .25s var(--ease);
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { padding: 0 28px 24px; max-width: 60ch; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 112px); }
.contact-text > p { margin-top: 24px; max-width: 34ch; color: var(--field-soft); }
.contact-list { margin: 48px 0 0; display: grid; gap: 20px; }
.contact-list dt { font-weight: 600; color: var(--field-soft); font-size: 1rem; }
.contact-list dd { margin: 2px 0 0; font-family: var(--font-head); font-size: 1.5rem; font-weight: 500; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--accent); }
.contact-cta { margin-top: 32px; }
.contact-list { margin: 0; align-self: center; }

/* ---------- Footer ---------- */
.footer { background: var(--black); color: var(--field-ink); padding-block: clamp(64px, 8vw, 120px) 32px; }
.footer-grid { display: grid; grid-template-columns: 6fr 3fr 3fr; gap: 48px clamp(32px, 5vw, 80px); }
/* "screen" lets the logo's black background melt into the dark footer */
.footer-logo { display: block; width: min(100%, 360px); height: auto; mix-blend-mode: screen; }
.footer-about p { margin-top: 16px; max-width: 42ch; color: var(--field-soft); }
.footer-title { font-size: 1.25rem; font-weight: 500; color: var(--accent); }
.footer-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; color: var(--field-soft); overflow-wrap: anywhere; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { text-decoration: underline; text-underline-offset: 3px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 48px; color: var(--field-soft); font-size: 1rem; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.photo-hero img { animation: drift 18s var(--ease) both; }
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .photo-hero img { animation: none; }
  .btn, .service, .chips span { transition: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .nav { display: none; }
  .bar-in { justify-content: space-between; }
  .split, .area, .faq, .contact { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .hero { grid-template-columns: 1fr 1fr; }
  .split-head { position: static; }
  .included-head { grid-template-columns: 1fr; }
  .reviews { grid-template-columns: 1fr 1fr; }
  .reviews h2 { grid-column: 1 / -1; }
}

/* ---------- Phone ---------- */
@media (max-width: 720px) {
  :root { --gap: 96px; }
  .hero { grid-template-columns: 1fr; padding-top: 24px; }
  .hero-text { display: contents; }
  .hero h1 { order: 1; }
  .hero .lead { order: 2; margin-top: -8px; }
  .hero-form { order: 3; }
  .hero .actions { order: 4; margin-top: 0; }
  .hero .facts { order: 5; margin-top: 0; }
  .lead { margin-top: 24px; }
  .facts { margin-top: 32px; }
  .photo-hero { aspect-ratio: 4 / 3; }
  .rooms { grid-template-columns: 1fr; gap: 48px; margin-top: 40px; }
  .service { grid-template-columns: 1fr; gap: 12px; padding: 24px; }
  .districts { grid-template-columns: 1fr; }
  .reviews { grid-template-columns: 1fr; }
  .wordmark { font-size: 1.0625rem; }
  .bar-in { min-height: 84px; }
  .brand-logo { width: 68px; height: 68px; }
  section[id] { scroll-margin-top: 84px; }
  #get-quote { scroll-margin-top: 96px; }
  .mobile-quote {
    display: flex; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 30;
    box-shadow: 0 6px 20px rgba(5, 8, 15, .3);
    transform: translateY(140%); transition: transform .3s var(--ease);
  }
  .mobile-quote.is-shown { transform: none; }
  .quote-cta .btn { width: 100%; }
  .hero-form { padding: 20px; }
  .option { flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 16px; }
  .option-price { font-size: 1.25rem; }
  .btn-sm { padding: 0 14px; }
  .contact-list dd { font-size: 1.25rem; }
  .reward { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Phones: logo only in the top bar, so the call button fits ---------- */
@media (max-width: 480px) {
  .wordmark { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

/* ---------- Small phones ---------- */
@media (max-width: 360px) {
  .bar-in { gap: 12px; }
  .wordmark { font-size: .9375rem; }
  .btn-sm { padding: 0 12px; font-size: .875rem; }
}
