/* Merrow & Vale Solicitors. Website by In Plain Cite. */
@font-face { font-family: "Libre Caslon Text"; src: url("assets/fonts/libre-caslon-text-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("assets/fonts/libre-caslon-text-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("assets/fonts/libre-caslon-text-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("assets/fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("assets/fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("assets/fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #1f2430;          /* text and dark surfaces */
  --ink-2: #2c3342;
  --claret: #7a2333;       /* brand: links, primary buttons */
  --claret-dark: #5e1a27;
  --brass: #a8834a;        /* fine rules only */
  --stone: #efece6;        /* quiet bands */
  --stone-2: #e3ded4;
  --paper: #ffffff;
  --muted: #555b69;
  --line: #d9d4ca;
  --on-ink: #f4f2ee;
  --on-ink-muted: #c9ccd4;
  --focus: #1d5fd1;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --page: 1180px;
  --gutter: clamp(18px, 4vw, 44px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.65 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--claret); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--claret-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); margin: 0 0 .45em; line-height: 1.18; letter-spacing: -.005em; }
h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.08; }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: 22px; line-height: 1.3; }
h4 { font: 700 17px/1.4 var(--sans); margin: 0 0 .3em; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2 * var(--gutter), var(--page)); margin-inline: auto; }
.narrow { max-width: 760px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 14px; font-weight: 700; }
.skip-link:focus { top: 10px; }
.lead { font-size: 21px; line-height: 1.55; color: var(--muted); max-width: 40em; }
.muted { color: var(--muted); }
.small { font-size: 15.5px; }

/* Utility strip */
.utility { background: var(--ink); color: var(--on-ink-muted); font-size: 15px; }
.utility .wrap { display: flex; gap: 24px; align-items: center; justify-content: space-between; min-height: 40px; flex-wrap: wrap; }
.utility a { color: var(--on-ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 40px; }
.utility a:hover { text-decoration: underline; color: #fff; }
.utility-links { display: flex; gap: 20px; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; gap: 28px; min-height: 84px; }
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); margin-right: auto; }
.logo svg { width: 42px; height: 42px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font: 400 24px/1.05 var(--serif); letter-spacing: .005em; }
.logo-text span { font-size: 14px; color: var(--muted); letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav > a, .nav-group > button { font: 600 16.5px var(--sans); color: var(--ink); text-decoration: none; background: none; border: 0; padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.nav > a:hover, .nav-group > button:hover { color: var(--claret); }
.nav a[aria-current="page"], .nav-group.is-current > button { color: var(--claret); box-shadow: inset 0 -2px 0 var(--claret); }
.nav-group { position: relative; }
.nav-group > button svg { width: 12px; height: 12px; transition: transform .15s; }
.nav-group > button[aria-expanded="true"] svg { transform: rotate(180deg); }
.mega { display: none; position: absolute; top: calc(100% + 1px); left: -16px; width: 560px; background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--claret); padding: 24px 28px; grid-template-columns: 1fr 1fr; gap: 28px; box-shadow: 0 18px 40px rgba(31, 36, 48, .12); }
.nav-group.is-open .mega { display: grid; }
.mega h3 { font-size: 18px; margin-bottom: 8px; }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega a { display: block; padding: 6px 0; color: var(--ink); text-decoration: none; font-size: 16.5px; }
.mega a:hover { color: var(--claret); text-decoration: underline; }
.header-cta { margin-left: 8px; }
.menu-toggle { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border: 1.5px solid transparent; border-radius: 2px; font: 600 17px var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-claret { background: var(--claret); color: #fff; }
.btn-claret:hover { background: var(--claret-dark); color: #fff; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 16px; }
.text-link { font-weight: 600; text-decoration: underline; }

/* Home hero */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 6vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 30px; }
.matter { background: var(--stone); border-left: 3px solid var(--claret); padding: 22px 24px 24px; max-width: 560px; }
.matter label { display: block; font: 400 21px var(--serif); margin-bottom: 12px; }
.matter-row { display: flex; gap: 10px; }
.matter select { flex: 1; min-width: 0; min-height: 50px; padding: 0 14px; border: 1.5px solid #8b8f99; border-radius: 2px; background: #fff; font: 400 17px var(--sans); color: var(--ink); }
.matter p { margin: 12px 0 0; font-size: 15.5px; color: var(--muted); }
.hero-figure { margin: 0; position: relative; }
.hero-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero-figure figcaption { position: absolute; left: -1px; bottom: -1px; background: var(--paper); padding: 12px 18px 0 0; font-size: 15px; color: var(--muted); max-width: 80%; }

/* Credentials */
.credentials { border-block: 1px solid var(--line); }
.credentials ul { list-style: none; margin: 0 auto; padding: 18px 0; display: flex; flex-wrap: wrap; gap: 10px 40px; justify-content: space-between; }
.credentials li { font-size: 16px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.credentials li strong { color: var(--ink); font-weight: 600; }
.credentials svg { width: 22px; height: 22px; color: var(--brass); flex: none; }

/* Sections */
.section { padding: clamp(60px, 8vw, 104px) 0; }
.section-stone { background: var(--stone); }
.section-ink { background: var(--ink); color: var(--on-ink); }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-ink .muted, .section-ink p { color: var(--on-ink-muted); }
.section-ink a { color: #fff; }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.head-row h2 { margin: 0; max-width: 18em; }
.head-row p { margin: 0; max-width: 34em; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Areas index */
.areas-index { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 6vw, 88px); }
.areas-index h3 { font-size: 24px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); margin-bottom: 0; }
.area-list { list-style: none; margin: 0 0 36px; padding: 0; }
.area-list li { border-bottom: 1px solid var(--line); }
.area-list a { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; padding: 18px 0; color: var(--ink); text-decoration: none; }
.area-list a strong { font: 400 21px/1.3 var(--serif); }
.area-list a span { grid-column: 1; color: var(--muted); font-size: 16.5px; }
.area-list a svg { grid-row: 1 / span 2; grid-column: 2; align-self: center; width: 18px; height: 18px; color: var(--claret); transition: transform .15s; }
.area-list a:hover strong { color: var(--claret); }
.area-list a:hover svg { transform: translateX(3px); }

/* Split image */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split-rev .split-media { order: 2; }

/* Fees snapshot */
.fee-snap { width: 100%; border-collapse: collapse; font-size: 17px; }
.fee-snap th, .fee-snap td { text-align: left; padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.fee-snap thead th { font-size: 15px; color: var(--muted); font-weight: 600; border-bottom: 2px solid var(--ink); }
.fee-snap tbody th { font: 400 19px var(--serif); }
.fee-snap .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fee-snap td.num strong { font-size: 19px; }

/* People */
.people-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 24px; }
.person { margin: 0; }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--stone); margin-bottom: 14px; filter: saturate(.92); }
.person h3 { font-size: 20px; margin-bottom: 2px; }
.person .role { color: var(--claret); font-weight: 600; font-size: 16px; margin: 0 0 6px; }
.person p { font-size: 16px; color: var(--muted); margin: 0 0 6px; }
.person .contact-line { font-size: 15.5px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter-bar button { font: 600 16px var(--sans); padding: 0 16px; min-height: 42px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 2px; cursor: pointer; }
.filter-bar button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Quote */
.quote { margin: 0; max-width: 900px; }
.quote blockquote { margin: 0 0 22px; font: italic 400 clamp(24px, 3vw, 34px)/1.4 var(--serif); color: #fff; }
.quote figcaption { color: var(--on-ink-muted); font-size: 17px; }
.stars { display: inline-flex; gap: 3px; color: #d8b26a; margin-bottom: 20px; }
.stars svg { width: 20px; height: 20px; }
.review-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-top: 48px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.18); }
.review-row blockquote { margin: 0 0 10px; font: 400 19px/1.55 var(--serif); color: #fff; }
.review-row p { font-size: 15.5px; margin: 0; }

/* Insights */
.insights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.insight { border-top: 2px solid var(--ink); padding-top: 18px; }
.insight .meta { font-size: 15px; color: var(--muted); margin-bottom: 8px; }
.insight h3 { font-size: 22px; }
.insight h3 a { color: var(--ink); text-decoration: none; }
.insight h3 a:hover { color: var(--claret); text-decoration: underline; }
.insight p { color: var(--muted); font-size: 16.5px; }

/* Visit us */
.visit { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.visit img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.visit dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0 0 28px; }
.visit dt { font-weight: 600; }
.visit dd { margin: 0; color: var(--muted); }

/* Page head */
.page-head { background: var(--stone); padding: clamp(40px, 6vw, 72px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.crumbs { font-size: 15.5px; color: var(--muted); margin: 0 0 18px; }
.crumbs a { color: var(--muted); }
.page-head h1 { font-size: clamp(34px, 4.6vw, 54px); max-width: 16em; }
.page-head .lead { margin-bottom: 0; }
.page-head-split { display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: end; }
.page-head-split img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* Practice page */
.practice { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(40px, 6vw, 88px); align-items: start; }
.prose h2 { margin-top: 1.6em; font-size: clamp(26px, 3vw, 34px); }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--claret); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 1.5em; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); font: 400 30px/1 var(--serif); color: var(--claret); }
.steps strong { display: block; font-size: 18px; }
.steps span { color: var(--muted); font-size: 16.5px; }
.aside { position: sticky; top: 120px; display: grid; gap: 20px; }
.aside-box { border: 1px solid var(--line); padding: 24px; background: var(--paper); }
.aside-box h2, .aside-box h3 { font-size: 21px; margin-bottom: 10px; }
.aside-box .price { font: 400 32px/1.1 var(--serif); color: var(--claret); margin: 0 0 4px; }
.aside-box.contact-card { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.aside-box.contact-card h2 { color: #fff; }
.aside-box.contact-card img { width: 72px; height: 72px; object-fit: cover; border-radius: 50%; float: left; margin: 0 14px 8px 0; }
.aside-box.contact-card p { color: var(--on-ink-muted); font-size: 16px; }
.aside-box.contact-card a { color: #fff; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font: 400 20px/1.4 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 26px; width: 10px; height: 10px; border-right: 2px solid var(--claret); border-bottom: 2px solid var(--claret); transform: rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 31px; }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* Fee tables */
.fee-section { padding: 40px 0; border-bottom: 1px solid var(--line); }
.fee-section:first-of-type { padding-top: 0; }
.fee-table { width: 100%; border-collapse: collapse; margin: 14px 0 24px; font-size: 17px; }
.fee-table caption { text-align: left; font-weight: 700; padding-bottom: 8px; }
.fee-table th, .fee-table td { text-align: left; padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line); }
.fee-table thead th { font-size: 15px; font-weight: 600; color: var(--muted); border-bottom: 2px solid var(--ink); }
.fee-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fee-table tbody th { font-weight: 400; }
.table-wrap { position: relative; overflow-x: auto; }
.toc { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--claret); }
.toc a { display: block; padding: 8px 0 8px 16px; color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--claret); text-decoration: underline; }

/* Article */
.article { max-width: 720px; }
.article p, .article li { font-size: 19px; line-height: 1.75; }
.article h2 { margin-top: 1.5em; font-size: 30px; }
.byline { display: flex; gap: 14px; align-items: center; margin: 24px 0 0; font-size: 16px; color: var(--muted); }
.byline img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.callout { background: var(--stone); border-left: 3px solid var(--claret); padding: 20px 24px; margin: 28px 0; }
.callout p:last-child { margin: 0; }

/* Forms */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label, .field legend { display: block; font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 10px 12px; font: 400 17px var(--sans); color: var(--ink); background: #fff; border: 1.5px solid #8b8f99; border-radius: 2px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.req { color: var(--claret); }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.radio-row label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; min-height: 40px; }
.radio-row input { width: 20px; height: 20px; min-height: 0; accent-color: var(--claret); }
.form-note { font-size: 15.5px; color: var(--muted); margin: 0; }
.form-status { font-weight: 600; min-height: 1.4em; margin: 0; color: var(--claret-dark); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-panel { border: 1px solid var(--line); padding: clamp(22px, 3vw, 36px); }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-ink-muted); font-size: 16px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; padding: 64px 0 40px; }
.site-footer h2 { font: 600 16px var(--sans); color: #fff; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-flex; min-height: 34px; align-items: center; color: var(--on-ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer .logo { color: #fff; margin-bottom: 16px; }
.site-footer .logo-text span { color: var(--on-ink-muted); }
.footer-reg { border-top: 1px solid rgba(255,255,255,.16); padding: 24px 0; font-size: 14.5px; line-height: 1.6; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.footer-reg a { color: var(--on-ink); }
.sra-badge { border: 1px solid rgba(255,255,255,.4); padding: 10px 14px; font-size: 13px; line-height: 1.35; color: var(--on-ink); text-align: center; min-width: 170px; }
.sra-badge strong { display: block; font-size: 15px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.16); padding: 18px 0 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.footer-bottom a { color: var(--on-ink); }

/* Responsive */
@media (max-width: 1080px) {
  .people-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .practice { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
  .menu-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--ink); background: none; font: 600 16px var(--sans); color: var(--ink); cursor: pointer; border-radius: 2px; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 20px; max-height: calc(100vh - 124px); overflow-y: auto; }
  .nav.is-open { display: flex; }
  .nav > a, .nav-group > button { width: 100%; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 14px 0; font-size: 18px; }
  .nav a[aria-current="page"], .nav-group.is-current > button { box-shadow: none; }
  .mega { position: static; width: auto; box-shadow: none; border: 0; padding: 8px 0 16px 12px; grid-template-columns: 1fr; gap: 12px; }
  .header-cta { display: none; }
  .hero-grid, .split, .visit, .contact-grid, .page-head-split, .areas-index { grid-template-columns: 1fr; }
  .split-rev .split-media { order: 0; }
  .hero-figure img { aspect-ratio: 3 / 2; }
  .page-head-split img { display: none; }
  .insights { grid-template-columns: 1fr; }
  .review-row { grid-template-columns: 1fr; }
  .footer-reg { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .utility-links a:not(:first-child) { display: none; }
  .utility .wrap { justify-content: center; }
  .utility-note { display: none; }
  .people-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .matter-row, .form-row { grid-template-columns: 1fr; flex-direction: column; display: grid; }
  .aside { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .credentials ul { justify-content: flex-start; }
  .fee-snap tbody th { font-size: 17px; }
  .logo-text strong { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
.site-footer a { color: var(--on-ink); }
.footer-bottom a { display: inline-block; padding: 6px 0; }
