/* David Ruse — mortgage and protection advice, Camborne */

:root {
  --navy: #16374C;
  --navy-deep: #102B3C;
  --sea: #459CBC;
  --accent: #17627E;
  --accent-dark: #0F4B61;
  --ink: #203542;
  --muted: #4A5E6A;
  --light: #EBF5F8;
  --star: #2F86A8;
  --tint: #A8D8E9;
  --field: #6B7F8B;
  --gutter: 24px;
  /* One spacing scale for the whole site.
     --gap   the space from the end of one section's content to the start of the next
             (about 66px on a phone, 112px at 1440px). Every section, white or coloured,
             carries half of it inside, top and bottom, so the rhythm never changes.
     --head  a section heading (or heading group) to the content it introduces.
     --block one large group to the next inside a section. */
  --gap: clamp(64px, calc(48px + 4.45vw), 112px);
  --pad: calc(var(--gap) / 2);
  --head: clamp(24px, calc(20px + 0.85vw), 32px);
  --block: clamp(40px, calc(28px + 2.5vw), 64px);
  --star-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 24'%3E%3Cpath d='M13 1.1l2.82 7.62 8.12.33-6.38 5.03 2.2 7.82L13 17.4l-6.76 4.5 2.2-7.82-6.38-5.03 8.12-.33z'/%3E%3C/svg%3E");
}

@media (min-width: 768px) {
  :root { --gutter: 40px; }
}

/* Base */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 768px) {
  body { font-size: 18px; }
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }

h1, h2, h3 {
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.8rem, 1.35rem + 1.5vw, 2.375rem);
  line-height: 1.12;
}

h3 {
  font-size: clamp(1.3rem, 1.15rem + 0.5vw, 1.5rem);
  line-height: 1.22;
  letter-spacing: -0.012em;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}

a:hover { color: var(--accent-dark); }

:focus-visible {
  outline: 3px solid var(--sea);
  outline-offset: 3px;
}

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
}

.skip-link:focus { top: 16px; color: #fff; }

.wrap {
  width: min(100% - 2 * var(--gutter), 1200px);
  margin-inline: auto;
}

section[id] { scroll-margin-top: 12px; }

/* Buttons and links */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.7em 1.4em;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

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

.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--light); color: var(--navy); }

.btn-outline-light {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.9);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.text-link {
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-decoration-color: rgba(23, 98, 126, 0.35);
  transition: text-decoration-color 0.15s ease;
}
.text-link:hover { text-decoration-color: currentColor; }

.inverse { color: #fff; }
.inverse h2, .inverse h3 { color: #fff; }
.inverse a:not(.btn) { color: var(--tint); }
.inverse a:not(.btn):hover { color: #fff; }

.stars {
  display: inline-block;
  width: 110px;
  height: 20px;
  background: var(--star);
  -webkit-mask: var(--star-shape) 0 0 / 22px 20px repeat-x;
  mask: var(--star-shape) 0 0 / 22px 20px repeat-x;
  vertical-align: middle;
}

.stars--lg {
  width: 145px;
  height: 26px;
  -webkit-mask-size: 29px 26px;
  mask-size: 29px 26px;
}

/* Header */

.site-header {
  position: relative;
  z-index: 40;
  background: #fff;
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "mark toggle"
    "firm firm"
    "nav nav";
  align-items: center;
  column-gap: 16px;
  row-gap: 10px;
  padding-block: 12px 14px;
}

.js .header-inner {
  grid-template-areas:
    "mark toggle"
    "firm firm";
}

/* The wordmark artwork carries white margins; crop them so the name fills its box. */
.brand,
.wordmark-crop {
  --logo-h: 60px;
  display: block;
  overflow: hidden;
}

.brand img,
.wordmark-crop img {
  height: var(--logo-h);
  width: auto;
  max-width: none;
  margin: calc(var(--logo-h) * -0.12) calc(var(--logo-h) * -0.08);
}

/* On phones the wordmark takes the space left of the 48px menu column (about 4.15 × its height wide). */
.brand {
  --logo-h: min(62px, calc((100vw - 2 * var(--gutter) - 64px) / 4.3));
  grid-area: mark;
  justify-self: start;
}

.firm { grid-area: firm; justify-self: start; }
.firm img { height: 72px; width: auto; max-width: none; }

.nav-toggle {
  grid-area: toggle;
  justify-self: end;
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 4px 0 12px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.js .nav-toggle { display: inline-flex; }

@media (max-width: 479px) {
  .nav-toggle { padding: 0 12px; }
  .nav-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

.bars,
.bars::before,
.bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.bars { position: relative; transition: background-color 0.2s ease; }

.bars::before,
.bars::after {
  content: "";
  position: absolute;
  left: 0;
  transition: transform 0.2s ease;
}

.bars::before { top: -7px; }
.bars::after { top: 7px; }

.nav-open .bars { background: transparent; }
.nav-open .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .bars::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav { grid-area: nav; }

.site-nav ul { list-style: none; }

.site-nav li a {
  display: block;
  padding: 12px 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.site-nav li a:hover,
.site-nav li a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.nav-cta { margin-top: 14px; width: 100%; }

.js .site-nav {
  grid-area: auto;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  padding: 4px var(--gutter) 28px;
  background: #fff;
  box-shadow: 0 24px 32px -16px rgba(22, 55, 76, 0.28);
}

.js .nav-open .site-nav { display: block; }

@media (prefers-reduced-motion: no-preference) {
  .js .nav-open .site-nav { animation: menu-in 0.18s ease-out; }
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 860px) {
  .header-inner {
    grid-template-columns: auto auto 1fr auto;
    grid-template-areas:
      "mark firm . toggle"
      "nav nav nav nav";
    column-gap: 28px;
    padding-block: 16px;
  }
  .js .header-inner { grid-template-areas: "mark firm . toggle"; }
  .brand { --logo-h: 70px; }
  .firm img { height: 72px; }
}

@media (min-width: 1280px) {
  .header-inner,
  .js .header-inner {
    grid-template-columns: auto auto 1fr;
    grid-template-areas: "mark firm nav";
    column-gap: 24px;
    row-gap: 0;
    padding-block: 16px;
  }
  .brand { --logo-h: 78px; }
  .firm img { height: 76px; }
  .js .nav-toggle { display: none; }
  .site-nav,
  .js .site-nav {
    grid-area: nav;
    position: static;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    padding: 0;
    background: none;
    box-shadow: none;
    animation: none;
  }
  .site-nav ul { display: flex; gap: 22px; }
  .site-nav li a {
    padding: 8px 0;
    font-size: 1.0625rem;
    font-weight: 500;
  }
  .nav-cta { margin: 0; width: auto; }
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}

.hero-photo { position: relative; height: 284px; }

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(22, 55, 76, 0) 40%,
    rgba(22, 55, 76, 0.72) 70%,
    #16374C 100%);
}

.hero-body {
  position: relative;
  margin-top: -96px;
  padding-bottom: var(--pad);
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.35rem, 1.6rem + 3.6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.028em;
  max-width: 13em;
}

.hero-intro {
  margin-top: 16px;
  max-width: 34em;
  color: rgba(255, 255, 255, 0.94);
}

.hero-note { margin-top: 10px; font-weight: 600; }

.hero-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

@media (min-width: 560px) {
  .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
}

@media (min-width: 900px) {
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: clamp(620px, 80vh, 800px);
  }
  .hero-photo { position: absolute; inset: 0; height: auto; }
  .hero-photo img { object-position: 50% 62%; }
  .hero-photo::after {
    background: linear-gradient(180deg,
      rgba(22, 55, 76, 0.3) 0%,
      rgba(22, 55, 76, 0) 20%,
      rgba(22, 55, 76, 0) 38%,
      rgba(22, 55, 76, 0.62) 58%,
      rgba(22, 55, 76, 0.9) 76%,
      rgba(22, 55, 76, 0.95) 100%);
  }
  .hero-body {
    margin-top: 0;
    padding-block: 200px var(--pad);
    display: grid;
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    grid-template-areas:
      "title intro"
      "actions note";
    column-gap: 56px;
    row-gap: 32px;
    align-items: end;
  }
  .hero h1 {
    grid-area: title;
    max-width: none;
    text-shadow: 0 1px 28px rgba(16, 43, 60, 0.35);
  }
  .hero-intro { grid-area: intro; margin: 0; padding-bottom: 6px; }
  .hero-note { grid-area: note; margin: 0; align-self: center; }
  .hero-actions { grid-area: actions; margin: 0; }
}

/* Review proof */

.proof { padding-block: var(--pad); }

.proof-grid { display: grid; gap: 36px; }

.rating-figure {
  font-size: clamp(4.5rem, 3rem + 5vw, 7rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: var(--navy);
}

.proof-rating .stars { margin-top: 18px; }

.rating-text {
  margin-top: 10px;
  color: var(--muted);
}

.proof-rating .text-link { display: inline-block; margin-top: 14px; }

.quote-text {
  font-size: clamp(1.3rem, 1.05rem + 0.9vw, 1.75rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.quote-by {
  margin-top: 22px;
  font-weight: 600;
  color: var(--ink);
}

.quote-by span {
  display: block;
  font-weight: 400;
  font-size: 0.9375rem;
  color: var(--muted);
}

.proof-quote .stars { margin-bottom: 18px; }

@media (min-width: 900px) {
  .proof-grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 80px;
    align-items: center;
  }
}

/* Mortgage and protection advice */

.services { padding-block: var(--pad); }

.section-head {
  display: grid;
  gap: 16px;
  margin-bottom: var(--head);
}

.section-head p {
  max-width: 34em;
  font-size: 1.125rem;
  color: var(--muted);
}

@media (min-width: 900px) {
  .section-head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: end;
  }
}

.trio { display: grid; gap: var(--block); }

.service img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 6px;
}

.service h3 { margin-top: 24px; }
.service > p { margin-top: 12px; }

.service .text-link {
  display: inline-block;
  justify-self: start;
  align-self: start;
  margin-top: 18px;
}

.service-review {
  margin-top: 28px;
  padding: 26px 26px 24px;
  background: var(--light);
  border-radius: 6px;
}

.service-review blockquote { margin-top: 14px; }
.service-review blockquote p { font-size: 1rem; line-height: 1.6; }

.service-review figcaption {
  margin-top: 14px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.service-review figcaption span { font-weight: 400; color: var(--muted); }

@media (min-width: 640px) and (max-width: 899px) {
  .service img { aspect-ratio: 16 / 9; }
}

@media (min-width: 900px) {
  .trio {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 40px;
    row-gap: 0;
  }
  .service { display: flex; flex-direction: column; }
  .service > p { flex-grow: 1; }
  .service .text-link { align-self: flex-start; }

  @supports (grid-template-rows: subgrid) {
    .trio { grid-template-rows: repeat(5, auto); }
    .service {
      display: grid;
      grid-row: span 5;
      grid-template-rows: subgrid;
    }
  }
}

.duo {
  display: grid;
  gap: clamp(32px, 4vw, 48px);
  margin-top: var(--block);
}

.feature {
  display: grid;
  overflow: hidden;
  background: var(--light);
  border-radius: 8px;
}

.feature-photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.feature-body {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 14px;
  padding: clamp(28px, 4.5vw, 64px);
}

.feature-body p { max-width: 30em; }
.feature-body .text-link { margin-top: 6px; }

@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .feature--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .feature--flip .feature-photo { order: 2; }
  .feature-photo img { aspect-ratio: auto; min-height: 440px; }
}

/* Enquiry sections */

.chat,
.enquiry-final,
.contact-form-section {
  padding-block: var(--pad);
  background: var(--navy);
}

.chat-grid,
.final-grid { display: grid; gap: 40px; }

.chat-intro > p,
.final-aside > p { margin-top: 16px; max-width: 30em; color: rgba(255, 255, 255, 0.9); }

.contact-list {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

.contact-list dt {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.78);
}

.contact-list dd {
  margin-top: 2px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-list .big {
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.inverse .contact-list a {
  color: #fff;
  text-decoration-color: var(--sea);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.inverse .contact-list a:hover { text-decoration-color: #fff; }

.risk,
.inverse > .risk {
  margin-top: 32px;
  color: #fff;
  padding: 20px 22px;
  background: var(--navy-deep);
  border-radius: 6px;
  font-weight: 600;
  line-height: 1.5;
  max-width: 30em;
}

@media (min-width: 960px) {
  .chat-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 80px;
  }
  .final-grid {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    gap: 72px;
  }
  .final-grid .final-aside { grid-column: 2; grid-row: 1; }
  .final-grid .enquiry { grid-column: 1; grid-row: 1; }

  /* The text beside a form is one group (heading, words, contact details and,
     at the end, the risk warning), centred against the form so neither side
     is left with a big empty patch. */
  .chat-grid,
  .final-grid { align-items: center; }
  .final-aside > p { margin-top: 20px; }
  .final-aside .contact-list { gap: 24px; margin-top: 36px; }
  .final-aside .risk { margin-top: 40px; }

  /* Contact page: the photo grows to fill its column, so the hours and risk
     warning finish level with the bottom of the form. */
  .contact-aside { display: flex; flex-direction: column; }
  .contact-photo-frame {
    position: relative;
    flex: 1 1 0;
    min-height: 300px;
    overflow: hidden;
    border-radius: 8px;
  }
  .contact-photo-frame .contact-photo {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 116%;
    aspect-ratio: auto;
    object-position: 80% 100%;
    border-radius: 0;
  }
}

/* Form */

.enquiry {
  padding: clamp(24px, 4vw, 48px);
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
}

.form-title { font-size: clamp(1.5rem, 1.3rem + 0.7vw, 1.875rem); }
.form-intro { margin-top: 8px; color: var(--muted); max-width: 34em; }
.form-title + .form-grid,
.form-intro + .form-grid { margin-top: 24px; }

.form-grid { display: grid; gap: 20px; }

@media (min-width: 640px) {
  .form-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 24px; }
  .field--full { grid-column: 1 / -1; }
}

.field { display: grid; gap: 8px; align-content: start; }

.field label,
.field legend {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.optional { font-weight: 400; color: var(--muted); }

.hint {
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--muted);
}

.enquiry input[type="text"],
.enquiry input[type="tel"],
.enquiry input[type="email"],
.enquiry select,
.enquiry textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  font: inherit;
  font-size: 1.0625rem;
  line-height: 1.4;
  color: var(--ink);
  background-color: #fff;
  border: 1.5px solid var(--field);
  border-radius: 6px;
  transition: border-color 0.15s ease;
}

.enquiry textarea { min-height: 128px; resize: vertical; }

.enquiry select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2317627E' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px 9px;
}

.enquiry input:hover,
.enquiry select:hover,
.enquiry textarea:hover { border-color: var(--ink); }

.enquiry input:focus-visible,
.enquiry select:focus-visible,
.enquiry textarea:focus-visible {
  border-color: var(--accent);
  outline: 3px solid var(--sea);
  outline-offset: 1px;
}

.enquiry input:user-invalid,
.enquiry select:user-invalid { border-color: #B3261E; }

fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 6px; }

.choices { display: flex; flex-wrap: wrap; gap: 4px 28px; }

.choice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  font-weight: 500;
  cursor: pointer;
}

.choice input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.form-foot { display: grid; gap: 16px; margin-top: 28px; justify-items: start; }

.form-foot .btn { width: 100%; }

@media (min-width: 640px) {
  .form-foot {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 24px;
    align-items: center;
  }
  .form-foot .privacy-copy,
  .form-foot .form-result { grid-column: 1 / -1; }
  .form-foot .btn { width: auto; min-width: 220px; }
}

.privacy-copy { font-size: 0.9375rem; line-height: 1.5; color: var(--muted); }

.preview-notice { font-size: 0.875rem; line-height: 1.5; color: var(--muted); }

.form-result {
  width: 100%;
  padding: 14px 16px;
  background: var(--light);
  color: var(--navy);
  border-radius: 6px;
  font-weight: 500;
}

body.live .preview-notice { display: none; }

/* About Dave */

.about { padding-block: var(--pad); }

.about-grid { display: grid; gap: 44px; }

.about-text > p { margin-top: 18px; max-width: 34em; }

.about-text .lead {
  margin-top: 22px;
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.signature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  margin-top: 40px;
}

.signature .wordmark-crop { --logo-h: 66px; }

.signature p { font-size: 1rem; line-height: 1.45; color: var(--muted); }
.signature strong { display: block; color: var(--ink); font-weight: 600; font-size: 1.0625rem; }

.about-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 88px;
    align-items: center;
  }
  .about-photo img { aspect-ratio: 4 / 5; }
}

/* What happens next */

.next { padding-block: var(--pad); background: var(--light); }

.next-grid {
  display: grid;
  grid-template-areas:
    "title"
    "steps"
    "actions";
  gap: var(--head);
}

.next-grid h2 { grid-area: title; }

.steps {
  grid-area: steps;
  display: grid;
  gap: 32px;
  list-style: none;
}

.steps p { margin-top: 12px; max-width: 26em; }

.next-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

@media (min-width: 900px) {
  .next-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "title actions"
      "steps steps";
    align-items: center;
  }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px; }
}

/* Consultation and fees */

.fees { padding-block: var(--pad); }

.fees-grid { display: grid; gap: 32px; }

.fees-lead {
  margin-top: 20px;
  font-size: clamp(1.4rem, 1.15rem + 0.9vw, 1.875rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.fees-main .btn { margin-top: 28px; }

.fees-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding-left: 1.2em;
  font-size: 1.125rem;
}

.fees-list li { padding-left: 4px; }
.fees-list li::marker { color: var(--sea); }

.fees-side > p { max-width: 34em; }
.fees-side .hint { margin-top: 24px; max-width: 36em; }

@media (min-width: 900px) {
  .fees-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 88px;
    align-items: start;
  }
  .fees-side { padding-top: 8px; }
}

/* Reviews */

.reviews { padding-block: var(--pad); background: var(--light); }

.reviews-head {
  display: grid;
  gap: 16px;
  margin-bottom: var(--head);
}

.rating-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.reviews-grid { display: grid; gap: 24px; }

.review-panel {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 52px);
  background: #fff;
  border-radius: 10px;
}

.review-panel blockquote { margin-top: 22px; }

.review-panel blockquote p {
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.375rem);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.008em;
}

.review-panel figcaption {
  margin-top: auto;
  padding-top: 26px;
  font-weight: 600;
}

.review-panel figcaption span {
  display: block;
  font-weight: 400;
  font-size: 0.9375rem;
  color: var(--muted);
}

@media (min-width: 900px) {
  .reviews-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .reviews-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
}

/* Based near Camborne */

.local { padding-block: var(--pad); }

.local-grid { display: grid; gap: 32px; }

.local-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.local-panel { padding-inline: var(--gutter); }

.local-panel > p { margin-top: 16px; max-width: 30em; }

.local-details {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.local-details dt { font-size: 0.9375rem; color: var(--muted); }
.local-details dd { font-weight: 600; overflow-wrap: anywhere; }
.local-details dd .note { display: block; font-weight: 400; font-size: 0.9375rem; color: var(--muted); }

.local-panel .text-link { display: inline-block; margin-top: 28px; }

@media (min-width: 900px) {
  .local-grid {
    width: 100%;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 0;
    align-items: center;
  }
  .local-photo { align-self: stretch; }
  .local-photo img {
    height: 100%;
    min-height: 500px;
    aspect-ratio: auto;
    border-radius: 0;
  }
  .local-panel {
    padding: 0 max(var(--gutter), calc((100vw - 1200px) / 2)) 0 64px;
  }
}

/* FAQs */

.faqs { padding-block: var(--pad); }

.faq-head {
  display: grid;
  gap: 14px;
  margin-bottom: var(--head);
}

.faq-head p { color: var(--muted); max-width: 32em; }

.faq-cols { display: grid; gap: 12px; }
.faq-col { display: grid; gap: 12px; align-content: start; }

.faq {
  background: var(--light);
  border-radius: 8px;
  transition: background-color 0.15s ease;
}

.faq summary {
  position: relative;
  display: block;
  min-height: 48px;
  padding: 20px 64px 20px 24px;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 24px;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  background:
    linear-gradient(var(--accent), var(--accent)) center / 16px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 2px 16px no-repeat;
  transition: transform 0.2s ease;
}

.faq[open] summary::after {
  background: linear-gradient(var(--accent), var(--accent)) center / 16px 2px no-repeat;
}

.faq summary:hover { color: var(--accent); }

.faq summary:focus-visible { outline-offset: -3px; border-radius: 8px; }

.faq-a { padding: 0 24px 24px; }
.faq-a p { max-width: 36em; }

@media (prefers-reduced-motion: no-preference) {
  .faq[open] .faq-a { animation: faq-in 0.2s ease-out; }
}

@keyframes faq-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 900px) {
  .faq-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: end; }
  .faq-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 28px; align-items: start; }
}

/* Inner pages */

.page-head {
  padding-block: var(--pad);
  background: var(--light);
}

.page-head-grid { display: grid; gap: 16px; }

.page-head h1,
.contact-hero h1 {
  font-size: clamp(2.35rem, 1.7rem + 2.6vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.028em;
}

.page-head p { max-width: 34em; font-size: 1.125rem; }

@media (min-width: 900px) {
  .page-head-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: end;
  }
}

.legal { padding-block: var(--pad); }

.legal-grid { display: grid; gap: 48px; }

.prose h2 { font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.75rem); margin-top: 44px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-top: 14px; max-width: 36em; }
.prose ul { margin-top: 14px; padding-left: 1.2em; display: grid; gap: 8px; max-width: 36em; }
.prose li::marker { color: var(--sea); }

.prose .contact-big { margin-top: 24px; }

.aside-panel {
  padding: clamp(28px, 3.5vw, 40px);
  background: var(--navy);
  border-radius: 10px;
}

.aside-panel h2 { font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.75rem); }
.aside-panel > p { margin-top: 14px; color: rgba(255, 255, 255, 0.9); }
.aside-panel .contact-list { margin-top: 24px; }
.aside-panel .contact-list .big { font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.75rem); }

@media (min-width: 960px) {
  .legal-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: 96px;
    align-items: start;
  }
  .aside-panel { position: sticky; top: 24px; }
}

.contact-big { display: grid; gap: 18px; }
.contact-big dt { font-size: 0.9375rem; color: var(--muted); }
.contact-big dd {
  margin-top: 2px;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.contact-big a { text-decoration-thickness: 2px; text-underline-offset: 6px; }

.company { padding-block: var(--pad); background: var(--light); }

/* Company details: a full-width heading above the statement, which runs in two
   columns on a wide screen so no column sits half empty. */
.company-grid { display: grid; gap: var(--head); }

.company-text { display: grid; gap: 14px; }
.company-text p { max-width: 40em; }

@media (min-width: 900px) {
  .company-text {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: 64px;
    align-items: start;
  }
}

/* Contact page */

.contact-hero { padding-block: var(--pad); }

.contact-hero-grid { display: grid; gap: 22px; }

.contact-hero-text > p { margin-top: 12px; max-width: 32em; font-size: 1.125rem; }

.contact-hero .contact-big { gap: 12px; }

.contact-form-grid { display: grid; gap: 40px; }

.contact-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: 60% 90%;
  border-radius: 8px;
}

.hours-title {
  margin-top: 32px;
  font-size: 1.125rem;
  letter-spacing: 0;
}

.hours {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 24px;
  margin-top: 10px;
}

.hours dt { font-weight: 600; }
.hours dd { color: var(--ink); }
.inverse .hours dd { color: rgba(255, 255, 255, 0.88); }

@media (min-width: 900px) {
  .contact-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: end;
  }
  .contact-hero .contact-big { gap: 18px; }
}

@media (min-width: 960px) {
  .contact-form-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 80px;
    align-items: stretch;
  }
}

/* Location and company details: heading across the top, the two addresses
   side by side under it, then the regulatory statement in full. */
.location { padding-block: var(--pad); background: var(--light); }

.location h2 { margin-bottom: var(--head); }

.location-grid { display: grid; gap: 28px; }

.address-group h3 { font-size: 1.25rem; }
.address-group address { margin-top: 12px; font-style: normal; }
.address-group p { margin-top: 12px; color: var(--muted); font-size: 1rem; }

.location-reg {
  margin-top: var(--head);
  display: grid;
  gap: 14px;
}

.location-reg p { max-width: 52em; }

@media (min-width: 900px) {
  .location-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
  }
}

/* Footer */

.site-footer { background: var(--navy); }

.footer-brand { background: #fff; }

.footer-brand-inner {
  display: grid;
  gap: 20px;
  padding-block: 36px;
  align-items: center;
}

.footer-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}

.footer-logos .wordmark-crop { --logo-h: min(78px, calc((100vw - 2 * var(--gutter)) / 4.3)); }
.footer-logos .firm-logo { height: 78px; width: auto; max-width: none; }

@media (min-width: 768px) {
  .footer-logos .wordmark-crop { --logo-h: 92px; }
  .footer-logos .firm-logo { height: 88px; }
}

.footer-brand p { color: var(--muted); max-width: 30em; }

@media (min-width: 1100px) {
  .footer-brand-inner { grid-template-columns: auto 1fr; gap: 64px; }
  .footer-brand p { justify-self: end; text-align: right; }
}

.footer-main { padding-block: clamp(48px, 6vw, 80px); }

.footer-grid { display: grid; gap: 36px; }

.footer-col h2 {
  font-size: 1.0625rem;
  letter-spacing: 0;
  color: #fff;
}

.footer-col ul { list-style: none; display: grid; gap: 6px; margin-top: 14px; }
.footer-col p,
.footer-col address { margin-top: 14px; font-style: normal; color: rgba(255, 255, 255, 0.88); }

.footer-col a { text-decoration: underline; text-decoration-color: rgba(168, 216, 233, 0.45); }
.footer-col a:hover { text-decoration-color: currentColor; }

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
}

.footer-legal {
  padding-block: 36px;
  background: var(--navy-deep);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.84);
}

.footer-legal .wrap { display: grid; gap: 12px; }
.footer-legal p { max-width: 64em; }
.footer-legal a { color: var(--tint); }
.footer-legal a:hover { color: #fff; }
.footer-legal .footer-risk { font-size: 1rem; font-weight: 600; color: #fff; }

/* Mobile action bar */

.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--navy);
  box-shadow: 0 -8px 24px rgba(16, 43, 60, 0.18);
}

.action-bar .btn { min-height: 50px; padding-inline: 12px; }

@media (max-width: 767px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}

@media (min-width: 768px) {
  .action-bar { display: none; }
}

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