/* Passmores Solicitors - Cadoxton conveyancing microsite
   One stylesheet for every page. No frameworks. */

:root {
  --navy: #004B91;
  --navy-dark: #00335f;
  --navy-ink: #0b2545;
  --teal: #3A8EA8;
  --teal-dark: #2c7489;
  --ink: #1f2933;
  --muted: #56636f;
  --line: #e3e9f0;
  --soft: #f3f8fb;
  --soft-2: #eaf3f8;
  --white: #fff;
  --star: #f5a623;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 51, 95, .10);
  --shadow-sm: 0 2px 8px rgba(0, 51, 95, .07);
  --wrap: 1140px;
  --font: 'Mulish', 'Muli', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6;
  color: var(--ink); background: var(--white);
  padding-bottom: 76px; /* room for the mobile call bar */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--navy-dark); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 6vw, 48px); }
h2 { font-size: clamp(24px, 4.2vw, 34px); }
h3 { font-size: clamp(19px, 2.6vw, 22px); }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand img { height: 46px; width: auto; }
.nav-toggle { display: none; }
.nav-btn { display: none; cursor: pointer; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); align-items: center; justify-content: center; background: #fff; }
.nav-btn span, .nav-btn span::before, .nav-btn span::after { display: block; width: 20px; height: 2px; background: var(--navy); position: relative; transition: transform .2s, background .2s; }
.nav-btn span::before, .nav-btn span::after { content: ""; position: absolute; left: 0; }
.nav-btn span::before { top: -6px; } .nav-btn span::after { top: 6px; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 700; font-size: 15.5px; padding: 10px 12px; border-radius: 8px; }
.site-nav a:hover { background: var(--soft); color: var(--navy); }
.site-nav a[aria-current="page"] { color: var(--navy); background: var(--soft-2); }
.site-nav .btn { margin-left: 8px; }
.site-nav a.btn-call { color: #fff; background: var(--teal); }
.site-nav a.btn-call:hover, .site-nav a.btn-call:focus-visible { color: #fff; background: var(--teal-dark); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: 16.5px; line-height: 1.2;
  padding: 14px 22px; border-radius: var(--radius-sm); border: 2px solid transparent; cursor: pointer; text-align: center; transition: background .15s, color .15s, border-color .15s; }
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn-primary { background: var(--navy); color: #fff !important; }
.btn-primary:hover { background: var(--navy-dark); }
.btn-call { background: var(--teal); color: #fff !important; }
.btn-call:hover { background: var(--teal-dark); }
.btn-outline { background: #fff; color: var(--navy) !important; border-color: var(--navy); }
.btn-outline:hover { background: var(--soft); }
.btn-light { background: #fff; color: var(--navy) !important; }
.btn-ghost-light { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.85); }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); }
.btn-sm { padding: 10px 16px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 40px 0 36px; background:
  linear-gradient(180deg, rgba(243,248,251,.88) 0%, rgba(243,248,251,.95) 50%, #fff 100%),
  var(--hero-img, none) center top / cover no-repeat, var(--soft); }
.hero-grid { display: grid; gap: 28px; grid-template-areas: "copy" "form" "proof"; }
.hero-copy { grid-area: copy; } .hero-form { grid-area: form; } .hero-proof { grid-area: proof; }
.eyebrow { display: inline-block; font-size: 13.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-dark); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; margin-bottom: 14px; }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--ink); }
.lead strong { color: var(--navy); }
.ticks { list-style: none; padding: 0; margin: 0 0 22px; }
.ticks li { position: relative; padding-left: 32px; margin-bottom: 10px; font-weight: 700; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--teal); }
.ticks li::after { content: ""; position: absolute; left: 8px; top: 7px; width: 6px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

.page-hero { padding: 48px 0 40px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-ink) 100%); color: #dbe7f3; }
.page-hero.with-photo { background:
  linear-gradient(180deg, rgba(0,51,95,.90) 0%, rgba(11,37,69,.94) 100%),
  var(--hero-img, none) center 60% / cover no-repeat, var(--navy-ink); }
@media (min-width: 900px) {
  .page-hero.with-photo { background:
    linear-gradient(90deg, rgba(11,37,69,.96) 0%, rgba(0,51,95,.88) 50%, rgba(0,75,145,.55) 100%),
    var(--hero-img, none) center 60% / cover no-repeat, var(--navy-ink); }
}
.page-hero h1 { color: #fff; }
.page-hero .lead { color: #e7f0f8; max-width: 760px; }
.crumbs { font-size: 14px; margin-bottom: 12px; color: #b9cde0; }
.crumbs a { color: #fff; }

/* ---------- Cards and sections ---------- */
.section { padding: 56px 0; }
.section.soft { background: var(--soft); }
.section-head { max-width: 760px; margin-bottom: 28px; }
.section-head p { color: var(--muted); font-size: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.card h3 { margin-bottom: .4em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 18px; }
.icon { width: 46px; height: 46px; border-radius: 12px; background: var(--soft-2); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.icon svg { width: 24px; height: 24px; fill: var(--navy); }
.list-cols { columns: 1; column-gap: 28px; padding-left: 0; list-style: none; }
.list-cols li { break-inside: avoid; padding: 7px 0 7px 26px; position: relative; border-bottom: 1px solid var(--line); }
.list-cols li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); }

/* Form card */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 14px; scroll-margin-top: 84px; }
.form-card h2 { font-size: 22px; padding: 0 6px; }
.form-card .small { padding: 0 6px; }
.survey iframe { display: block; width: 100% !important; min-height: 380px; max-height: none !important; border: 0; }
.small { font-size: 14px; color: var(--muted); }

/* Proof */
.badge-row { display: flex; align-items: center; gap: 14px; margin: 4px 0 18px; }
.badge-row img { width: 120px; }
.badge-row span { font-size: 14.5px; color: var(--muted); }
.review { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.stars { color: var(--star); letter-spacing: 2px; font-size: 18px; }
.review blockquote { margin: 8px 0 10px; font-size: 16.5px; }
.review cite { font-style: normal; font-size: 14px; color: var(--muted); }

/* Fees */
.fees-grid { display: grid; gap: 18px; }
.fees { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); font-size: 16px; }
.fees caption { text-align: left; font-weight: 800; color: var(--navy); padding: 0 0 8px; font-size: 18px; }
.fees th, .fees td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.fees thead th { background: var(--navy); color: #fff; font-weight: 700; }
.fees td:last-child, .fees th:last-child { text-align: right; white-space: nowrap; }
.fees tr:last-child td { border-bottom: 0; }
details.more { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-top: 18px; }
details.more > summary { cursor: pointer; font-weight: 800; color: var(--navy); padding: 16px 18px; list-style: none; position: relative; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 22px; }
details.more[open] > summary::after { content: "\2212"; }
details.more > .inner { padding: 0 18px 18px; }
.note { font-size: 14.5px; color: var(--muted); margin-top: 12px; }

/* Person */
.person { display: grid; gap: 20px; align-items: start; }
.person img { width: 132px; height: 132px; object-fit: cover; object-position: top; border-radius: 50%; border: 4px solid #fff; box-shadow: var(--shadow-sm); }
.role { color: var(--muted); font-weight: 700; margin-top: -4px; }

/* People */
.people { display: grid; gap: 18px; }
@media (min-width: 900px) { .people { grid-template-columns: 1fr; } .people .person { grid-template-columns: 132px 1fr; } }
@media (min-width: 1100px) { .people { grid-template-columns: repeat(3, 1fr); } .people .person { grid-template-columns: 1fr; } }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 800; color: var(--navy); padding: 15px 44px 15px 18px; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 11px; font-size: 22px; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 18px 4px; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 22px 40px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--teal); }
.timeline .when { display: block; font-weight: 800; color: var(--navy); }

/* Stats */
.stats { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-align: center; }
.stat b { display: block; font-size: clamp(24px, 4vw, 32px); color: var(--navy); line-height: 1.1; }
.stat span { font-size: 14.5px; color: var(--muted); }

/* Offices */
.office address { font-style: normal; margin-bottom: 10px; }

/* CTA band */
.cta-band { color: #fff; text-align: center; padding: 56px 0; background:
  linear-gradient(rgba(0,75,145,.88), rgba(0,51,95,.93)), var(--hero-img, none) center / cover no-repeat, var(--navy); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #e7f0f8; font-size: 18px; }
.cta-band .btn-row { justify-content: center; }

/* Thank you */
.thanks-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--teal); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.thanks-icon svg { width: 36px; height: 36px; fill: #fff; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 52px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* Footer */
.site-footer { background: var(--navy-ink); color: #c4d3e2; padding: 44px 0 28px; font-size: 15px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 10px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 26px; margin-bottom: 26px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; }
.legal { border-top: 1px solid rgba(255,255,255,.14); padding-top: 18px; font-size: 13.5px; line-height: 1.55; color: #9fb4c9; }
.footer-logo { background: #fff; display: inline-block; padding: 8px 12px; border-radius: 10px; margin-bottom: 12px; }
.footer-logo img { height: 40px; width: auto; }

/* Mobile call bar */
.call-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.08); transition: transform .25s; }
.call-bar .btn { padding: 13px 8px; font-size: 16px; }
body.form-in-view .call-bar { transform: translateY(110%); }

/* ---------- Breakpoints ---------- */
@media (max-width: 899px) {
  .nav-btn { display: inline-flex; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 12px 16px; box-shadow: var(--shadow); display: none; }
  .site-nav a { padding: 14px 12px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav .btn { margin: 12px 0 0; border-radius: var(--radius-sm); border-bottom: 0; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .nav-toggle:checked + .nav-btn span { background: transparent; }
  .nav-toggle:checked + .nav-btn span::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle:checked + .nav-btn span::after { transform: translateY(-6px) rotate(-45deg); }
  .hero-copy .hide-mobile { display: none; }
}
@media (max-width: 420px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .brand img { height: 40px; }
  .fees { font-size: 15px; }
  .fees th, .fees td { padding: 10px; }
  .btn { padding: 13px 16px; }
  .btn-row .btn { width: 100%; }
}
@media (min-width: 600px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .person { grid-template-columns: 132px 1fr; }
  .list-cols { columns: 2; }
  .stats { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .call-bar { display: none; }
  .hero { padding: 64px 0 56px; background:
    linear-gradient(90deg, rgba(243,248,251,.97) 0%, rgba(243,248,251,.9) 45%, rgba(243,248,251,.35) 100%),
    var(--hero-img, none) center / cover no-repeat, var(--soft); }
  .hero-grid { grid-template-columns: 1.1fr .9fr; grid-template-areas: "copy form" "proof form"; column-gap: 56px; row-gap: 8px; align-items: start; }
  .hero-form { grid-row: 1 / span 2; }
  .section { padding: 80px 0; }
  .page-hero { padding: 72px 0 60px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .fees-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
  .cta-band { padding: 80px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
