/* ==========================================================================
   Surrey Vascular Surgeon - site stylesheet (2026 redesign)
   Plain CSS, no framework. Design tokens come from the A5 poster campaign.
   See docs/redesign-decisions.md before changing anything here.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --navy: #0b3a72;
  --navy-deep: #082b55;
  --navy-soft: #2c4a73;
  --ink: #2a2622;
  --muted: #6b6157;
  --line: #e3d9c9;
  --bg: #f5efe6;
  --bg-alt: #ffffff;
  --card: #ffffff;
  --accent: #c8a46a;
  --focus: #1e6fd9;
  --ok: #2e7d4f;
  --warn: #b7791f;
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --sans: 'Mulish', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 .5em; color: var(--ink); }
h1, h2 { text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; font-weight: 500; }
h4 { font-size: 1.05rem; font-weight: 500; }
h1 em, h2 em { font-style: italic; color: var(--navy); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
small, .small { font-size: .85em; }
strong { font-weight: 700; }
table { border-collapse: collapse; width: 100%; margin: 0 0 1.5rem; font-size: .95rem; }
th, td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; }
blockquote { margin: 1.5rem 0; padding: .2rem 0 .2rem 1.2rem; border-left: 3px solid var(--navy); font-family: var(--serif); font-size: 1.1rem; }

/* Grid children must be allowed to shrink below their content width, or a long <select>
   option or URL forces the whole column wider than a phone screen. */
.hero .wrap > *, .about .wrap > *, .cta-band .wrap > *, .page-head .wrap > *, .contact-grid > *, .pair > *, .article-layout > *, .tiles > *, .locations > *, .steps > *, .fees > *, .reviews-grid > *, .site-footer .cols > * { min-width: 0; }
.field select, .field input, .field textarea { max-width: 100%; }
body { overflow-wrap: break-word; }
a { overflow-wrap: anywhere; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: .5rem .9rem; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 820px; }
section { padding: 5rem 0; }
.alt { background: var(--bg-alt); }
.section-head { margin-bottom: 2.5rem; }
.section-head h2 { max-width: 46ch; }
.section-head p { max-width: 62ch; }
.eyebrow { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--navy); margin-bottom: 1rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 56ch; text-wrap: pretty; }
.muted, .text-muted { color: var(--muted); }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 1.2rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs li + li::before { content: "›"; margin-right: .4rem; color: var(--line); }
.crumbs a { color: var(--muted); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.35rem; border-radius: 999px; font-weight: 700; font-size: 1rem; line-height: 1;
  border: 1.5px solid transparent; cursor: pointer; font-family: var(--sans); text-decoration: none;
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 6px 18px rgba(11,58,114,.18); }
.btn-primary:hover { background: var(--navy-deep); color: #fff; }
.btn-ghost, .btn-outline-primary, .btn-outline-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover, .btn-outline-primary:hover, .btn-outline-secondary:hover { background: rgba(11,58,114,.06); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { color: var(--navy-deep); }
.btn-sm { padding: .55rem 1rem; font-size: .9rem; }
.btn svg { width: 18px; height: 18px; }
.alt-contact { font-size: .9rem; color: var(--muted); margin: .4rem 0 0; }
.alt-contact a { font-weight: 700; }

/* --------------------------------------------------------------------------
   5. Header and navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,239,230,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 78px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 46px; width: auto; }
.site-header nav { margin-left: auto; }
.menu { display: flex; gap: 1.5rem; margin: 0; font-weight: 600; font-size: .95rem; list-style: none; padding: 0; }
.menu a { color: var(--ink); padding: .3rem 0; border-bottom: 2px solid transparent; display: inline-block; }
.menu a:hover, .menu a[aria-current="page"] { border-bottom-color: var(--navy); text-decoration: none; }
.menu .menu-extra { display: none; }
.header-phone { white-space: nowrap; }
.header-phone .btn { padding: .7rem 1.1rem; font-size: .95rem; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1.5px solid var(--line); border-radius: 10px; padding: .5rem .6rem; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 22px; height: 22px; display: block; }
.menu-toggle[aria-expanded="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
html.menu-open { overflow: hidden; }

@media (max-width: 1000px) {
  .menu-toggle { display: inline-flex; }
  .site-header nav { margin-left: 0; }
  .header-phone { margin-left: 0; }
  .menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; margin: 0; padding: .5rem 24px 1rem;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -24px rgba(0,0,0,.3);
  }
  .menu.is-open { display: flex; }
  .menu a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .menu a[aria-current="page"] { border-bottom-color: var(--line); color: var(--navy); }
  .menu .menu-extra { display: block; }
  .menu .menu-extra a { border-bottom: 0; }
  .menu .menu-extra .btn { display: flex; margin-top: 1rem; color: #fff; }
  .menu .menu-extra:last-child a { padding-top: .8rem; text-align: center; font-weight: 700; color: var(--navy); }
  /* Hamburger sits at the far right on small screens; phone pill just inside it */
  .menu-toggle { order: 3; margin-left: 0; }
  .header-phone { order: 2; margin-left: auto; }
}
@media (max-width: 600px) {
  .header-phone .btn span { display: none; }
  .header-phone .btn { padding: .7rem; }
  .brand img { height: 40px; }
}

/* --------------------------------------------------------------------------
   6. Hero, doors, trust row
   -------------------------------------------------------------------------- */
.hero { padding: 4.5rem 0 3.5rem; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3.5rem; align-items: center; }
.hero h1 { margin-bottom: 1.1rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 1rem; }
.hero .reassure { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; font-size: .9rem; color: var(--muted); margin-top: 1.4rem; }
.hero .reassure span::before { content: "✓"; color: var(--navy); font-weight: 700; margin-right: .4rem; }
.ticks { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1.2rem; margin: 1.4rem 0 1.8rem; padding: 0; list-style: none; font-size: .95rem; }
.ticks li::before { content: "✓"; color: var(--navy); font-weight: 700; margin-right: .5rem; }

.hero-figure { position: relative; margin: 0; }
.hero-figure img { width: 100%; border-radius: 22px; aspect-ratio: 3 / 2.3; object-fit: cover; object-position: 40% 50%; box-shadow: 0 30px 60px -30px rgba(11,58,114,.45); }
.hero-figure figcaption { margin-top: .8rem; padding: 0 .2rem; font-size: .85rem; line-height: 1.35; color: var(--muted); }
.hero-figure figcaption strong { display: block; font-family: var(--serif); font-size: 1.05rem; font-weight: 500; color: var(--ink); }

.doors { display: grid; gap: 1rem; }
.door {
  display: grid; grid-template-columns: 52px 1fr; gap: 1.2rem; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.6rem 1.5rem;
  color: var(--ink); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.door:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 22px 44px -26px rgba(11,58,114,.5); border-color: var(--navy); }
.door .icon { width: 52px; height: 52px; border-radius: 12px; background: var(--bg); color: var(--navy); display: grid; place-items: center; }
.door .icon svg { width: 30px; height: 30px; }
.door h2 { font-size: 1.5rem; margin: 0 0 .3rem; }
.door p { color: var(--muted); margin: 0 0 .7rem; }
.door .go { font-weight: 700; color: var(--navy); }

.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); padding: 1.3rem 0; }
.trust .wrap { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.trust .label { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.trust ul { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; gap: 2rem; flex-wrap: wrap; align-items: center; }
.trust li { display: flex; align-items: center; }
.trust img { height: 40px; width: auto; max-width: 160px; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .15s, opacity .15s; }
.trust li:hover img { filter: none; opacity: 1; }
.trust .text-logo { font-family: var(--serif); font-size: 1.05rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   7. Content components
   -------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.step .n { font-family: var(--serif); color: var(--navy); font-size: .95rem; margin-bottom: .4rem; }
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--muted); margin: 0; }
.step p + p { margin-top: .7rem; }
.step .caveat { font-style: italic; font-size: .92rem; }
.step a.more { display: inline-block; margin-top: .8rem; font-weight: 700; font-size: .95rem; }
.step a.more::after { content: " →"; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.tile {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.6rem 1.5rem;
  display: flex; flex-direction: column; gap: .6rem; transition: transform .15s ease, box-shadow .15s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(11,58,114,.45); }
.tile .icon { width: 44px; height: 44px; color: var(--navy); }
.tile .icon svg { width: 100%; height: 100%; }
.tile h3 { margin: .2rem 0 0; }
.tile p { color: var(--muted); margin: 0; flex: 1; }
.tile a.more { font-weight: 700; font-size: .95rem; }
.tile a.more::after { content: " →"; }
.tile.featured { grid-column: span 2; background: var(--navy); color: #fff; border-color: var(--navy); display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 1.5rem; }
.tile.featured h3, .tile.featured .icon, .tile.featured a:not(.btn) { color: #fff; }
.tile.featured p { color: rgba(255,255,255,.82); }
.tile.featured .btn { background: #fff; color: var(--navy); }

.about .wrap { display: grid; grid-template-columns: .95fr 1.05fr; gap: 3.5rem; align-items: center; }
.about img { width: 100%; border-radius: 18px; aspect-ratio: 3 / 2.2; object-fit: cover; object-position: 50% 20%; }
.about ul { padding: 0; margin: 1.2rem 0 1.6rem; list-style: none; display: grid; gap: .5rem; }
.about li::before { content: "—"; color: var(--navy); margin-right: .6rem; }

.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.quote { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; }
.quote p { font-family: var(--serif); font-size: 1.08rem; line-height: 1.5; flex: 1; }
.quote p::before { content: "“"; color: var(--navy); font-size: 1.6em; line-height: 0; margin-right: .1em; }
.quote footer { font-size: .85rem; color: var(--muted); }
.stars { color: var(--accent); letter-spacing: .1em; font-size: .9rem; margin-bottom: .6rem; }

.band { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 2.2rem; display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center; }
.band h2 { margin-bottom: .4rem; }
.band p { color: var(--muted); margin: 0; }
.band .btn { justify-self: end; }

.fees { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.fee { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.fee .eyebrow { margin-bottom: 0; }
.fee .amt { font-family: var(--serif); font-size: 2rem; color: var(--navy); line-height: 1; margin: .4rem 0 .5rem; }
.fee .amt small { font-size: .9rem; font-family: var(--sans); color: var(--muted); }
.fee p { color: var(--muted); font-size: .92rem; margin: 0; }

.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2.5rem; }
.faq details { border-top: 1px solid var(--line); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 700; font-family: var(--serif); font-size: 1.1rem; }
.faq p { color: var(--muted); margin: .6rem 0 0; }

.further { margin-top: 2rem; padding: 1.1rem 1.3rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); font-size: .95rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.further strong { font-family: var(--serif); font-weight: 500; }

.cta-band { background: var(--navy); color: #fff; }
.cta-band .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.82); }
.cta-band .eyebrow { color: rgba(255,255,255,.75); }
.cta-band small { color: rgba(255,255,255,.7); }
.cta-band a:not(.btn) { color: #fff; }
.cta-band .btn-light { background: #fff; color: var(--navy); }
.cta-band .btn-light:hover { color: var(--navy-deep); }

/* --------------------------------------------------------------------------
   8. Forms
   -------------------------------------------------------------------------- */
.enquiry { background: var(--card); color: var(--ink); border-radius: var(--radius); padding: 1.6rem; border: 1px solid var(--line); }
.enquiry h3 { margin-bottom: 1rem; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .9rem; }
.field label { font-size: .85rem; font-weight: 700; }
.field input, .field textarea, .field select {
  font: inherit; padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }
.enquiry .hint { font-size: .8rem; color: var(--muted); margin: .6rem 0 0; }
.enquiry .btn { width: 100%; }
.enquiry .notice { display: none; margin-top: 1rem; padding: .9rem 1rem; border-radius: var(--radius-sm); font-size: .95rem; }
.enquiry .notice.is-shown { display: block; }
#sent { display: none; margin-bottom: 1rem; padding: .9rem 1rem; border-radius: var(--radius-sm); background: #eaf5ee; color: var(--ok); }
#sent:target { display: block; }
.enquiry .notice.ok { background: #eaf5ee; color: var(--ok); }
.enquiry .notice.error { background: #fbeeee; color: #a33; }
.hp { position: absolute; left: -9999px; }

/* --------------------------------------------------------------------------
   9. Page head (subpages), contact, locations
   -------------------------------------------------------------------------- */
.page-head { padding: 4rem 0 2.5rem; }
.page-head .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: end; }
.page-head.simple .wrap { display: block; }
.page-head.simple h1 { max-width: 24ch; }
.page-head.simple.has-aside .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 3rem; align-items: center; }
.head-aside img { width: 100%; max-height: 300px; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 35%; border-radius: 18px; box-shadow: 0 30px 60px -30px rgba(11,58,114,.4); }
.head-meta { background: var(--card); }
.head-meta dl { grid-template-columns: max-content 1fr; }
.contact-quick { display: grid; gap: .6rem; }
.contact-quick .row-ic { display: flex; align-items: center; gap: .7rem; color: var(--muted); }
.contact-quick svg { width: 20px; height: 20px; color: var(--navy); flex: none; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.info-block { display: grid; gap: 1.4rem; }
.info { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.6rem; }
.info h3 { margin-bottom: .6rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.tag, .badge { display: inline-block; font-family: var(--sans); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; padding: .2rem .5rem; border-radius: 6px; background: var(--bg); color: var(--navy); font-weight: 700; vertical-align: middle; }
.info dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.2rem; font-size: .97rem; }
.info dt { color: var(--muted); font-weight: 600; }
.info dd { margin: 0; }

.locations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.loc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.loc .map { aspect-ratio: 16 / 9; background: #e9eef5; }
.loc .map iframe { width: 100%; height: 100%; border: 0; display: block; }
.loc .body { padding: 1.3rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.loc h3 { margin: 0; }
.loc .addr { color: var(--muted); font-size: .95rem; }
.loc details { font-size: .92rem; margin-top: .2rem; }
.loc summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.loc details p { margin: .5rem 0 0; }
.loc .links { display: flex; gap: 1rem; margin-top: auto; padding-top: .6rem; font-weight: 700; font-size: .92rem; flex-wrap: wrap; }

.urgent { border-left: 4px solid var(--accent); background: var(--card); padding: 1.1rem 1.3rem; border-radius: 0 var(--radius) var(--radius) 0; font-size: .95rem; }
.urgent strong { font-family: var(--serif); font-weight: 500; font-size: 1.05rem; display: block; margin-bottom: .2rem; }

/* --------------------------------------------------------------------------
   10. Article pages (conditions, aftercare, blog, privacy)
   -------------------------------------------------------------------------- */
.article { max-width: 820px; }
.article h2 { font-size: 1.6rem; margin-top: 2.2rem; }
.article h3 { margin-top: 1.6rem; }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin-bottom: .35rem; }
.article img { border-radius: var(--radius-sm); }
.article .lead { max-width: none; }
/* Article pages: one layout for condition, aftercare, blog and legal pages.
   The older page bodies still use .row / .col-* / .card markup; these rules
   turn that into the standard article + aside layout without editing them. */
.page-head.simple .lead { margin-bottom: 0; }
.byline { font-size: .9rem; color: var(--muted); margin: .8rem 0 0; }
.article-section { padding-top: 3rem; }
.article-body { max-width: 100%; }
.article-body > .row, .article-body .blog-article-layout, .article-body .blog-index-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; align-items: start;
}
.article-body > .row > [class*="col-"], .blog-article-layout > [class*="col-"], .blog-index-layout > [class*="col-"] { flex: none; width: auto; min-width: 0; }
.article-body > .row > .order-md-last, .blog-article-sidebar, .blog-index-sidebar { order: 2; position: sticky; top: 100px; display: grid; gap: 1rem; }
.article-body .blog-article-sidebar > .card, .article-body .blog-index-sidebar > .card { margin: 0; }
.article-body > .row > .col-9, .article-body > .row > .col-md-9, .blog-article-main, .blog-index-main { max-width: 760px; }
.article-body > p, .article-body > ul, .article-body > h2, .article-body > h3 { max-width: 760px; }
.article-body h2 { font-size: 1.6rem; margin-top: 2.2rem; }
.article-body h2:first-child, .article-body .col-9 > h2:first-child, .article-body .col-md-9 > h2:first-child, .blog-article > h2:first-child { margin-top: 0; }
.article-body h3 { margin-top: 1.6rem; }
.article-body h2 + hr, .article-body h3 + hr { display: none; }
.article-body hr { margin: 2rem 0; }
.article-body img[align="right"], .article-body .float-right, .article-body .pull-right { float: right; margin: 0 0 1rem 1.5rem; max-width: 40%; height: auto; border-radius: var(--radius-sm); }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body li { margin-bottom: .35rem; }
.article-body .lead { max-width: none; font-size: 1.12rem; }
.article-body .alert { max-width: 760px; }
.article-body .card { text-align: left; }
.article-body .card-header { background: transparent; border-bottom: 0; padding: 1.2rem 1.3rem 0; }
.article-body .card-header h2, .article-body .card-header h3 { font-family: var(--serif); font-weight: 500; font-size: 1.1rem; margin: 0; color: var(--ink); }
.article-body .card .list-group { border: 0; border-radius: 0; margin: 0; padding: .6rem .4rem .6rem; }
.article-body .card .list-group-item { padding: .55rem .9rem; border: 0; font-size: .95rem; }
.article-body .card .list-group-item a { font-weight: 600; }
.article-body .card-body .h5 { font-family: var(--serif); font-weight: 500; font-size: 1.1rem; }
.article-body .card-footer { background: transparent; border-top: 0; padding-top: 0; }
.econsent-note { border-left: 4px solid var(--navy); max-width: 760px; margin: 0 0 1.8rem; }
.econsent-note a { font-weight: 700; }
.article ol { padding-left: 1.3em; }
.article ol li { margin-bottom: .5rem; }
.article-body .blog-article-disclaimer { margin-top: 2.5rem; border-left: 4px solid var(--accent); background: var(--card); color: var(--muted); font-size: .92rem; }
.blog-index-main > .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.blog-index-main > .row > [class*="col-"] { margin: 0; }
.blog-index-main .card { display: flex; flex-direction: column; }
.blog-index-main .card-body { flex: 1; }
.blog-index-main .card-title { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; }
.blog-index-main .card-title a { color: var(--ink); }
/* Accordion FAQs on the older condition pages */
.article-body .panel-group { margin: 1rem 0 2rem; max-width: 760px; }
.article-body .panel { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; margin: 0; }
.article-body .panel-heading { padding: 0; }
.article-body .panel-title { margin: 0; font-size: 1.05rem; }
.article-body .panel-title a { display: block; padding: 1rem 2rem 1rem 0; font-family: var(--serif); font-weight: 500; color: var(--ink); position: relative; }
.article-body .panel-title a::after { content: "+"; position: absolute; right: .2rem; top: .9rem; color: var(--navy); font-size: 1.3rem; line-height: 1; }
.article-body .panel-title a[aria-expanded="true"]::after { content: "–"; }
.article-body .panel-title a:hover { text-decoration: none; color: var(--navy); }
.article-body .panel-body { padding: 0 0 1.2rem; color: var(--muted); }
.article-body .panel-body p:last-child { margin-bottom: 0; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; align-items: start; }
.article-aside { position: sticky; top: 100px; display: grid; gap: 1rem; }
.article-aside .info dl { grid-template-columns: 1fr; gap: .15rem; }
.article-aside .info dt { margin-top: .6rem; }
.article-aside .info dt:first-child { margin-top: 0; }
.blog-article-disclaimer { margin-top: 2.5rem; padding: 1rem 1.2rem; border-left: 4px solid var(--accent); background: var(--card); font-size: .92rem; color: var(--muted); border-radius: 0 var(--radius) var(--radius) 0; }
.post-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.8); padding: 3.5rem 0 2rem; font-size: .92rem; }
.site-footer a:not(.btn) { color: #fff; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.site-footer h4 { color: #fff; font-family: var(--serif); font-weight: 500; font-size: 1.05rem; margin: 0 0 .7rem; }
.site-footer p { margin: 0 0 .5rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .4rem; }
.footer-logo { display: inline-block; margin-bottom: 1rem; }
.footer-logo img { height: 56px; width: auto; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.15); padding-top: 1.4rem; font-size: .8rem; color: rgba(255,255,255,.6); display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.site-footer .legal p { max-width: 70ch; }
.site-footer .legal a { color: rgba(255,255,255,.75); }
.socials { display: flex; gap: .6rem; margin-top: .8rem; }
.socials a { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; display: grid; place-items: center; }
.socials svg { width: 16px; height: 16px; fill: #fff; }

/* --------------------------------------------------------------------------
   12. Transitional support for pages not yet rewritten
   The old condition, aftercare and blog pages still use a handful of
   Bootstrap class names. These rules give those names a home in the new
   design so the pages read as part of the site. Remove each rule as the
   page that needs it is rewritten.
   -------------------------------------------------------------------------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.row { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.row > [class*="col-"] { flex: 1 1 100%; min-width: 0; }
@media (min-width: 768px) {
  .row > .col-3 { flex-basis: calc(25% - 1.125rem); }
  .row > .col-9 { flex-basis: calc(75% - .375rem); }
  .row > .order-md-last { order: 99; }
  .text-md-right { text-align: right; }
  .row > .col-md-3 { flex-basis: calc(25% - 1.125rem); }
  .row > .col-md-4 { flex-basis: calc(33.333% - 1rem); }
  .row > .col-md-6 { flex-basis: calc(50% - .75rem); }
  .row > .col-md-8 { flex-basis: calc(66.666% - .5rem); }
  .row > .col-md-9 { flex-basis: calc(75% - .375rem); }
  .row > .col-md-12 { flex-basis: 100%; }
}
@media (min-width: 1000px) {
  .row > .col-lg-3 { flex-basis: calc(25% - 1.125rem); }
  .row > .col-lg-9 { flex-basis: calc(75% - .375rem); }
  .row > .col-lg-10 { flex-basis: calc(83.333% - .25rem); }
}
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card-header { padding: .9rem 1.3rem; font-weight: 700; border-bottom: 1px solid var(--line); background: var(--bg); color: var(--navy); }
.card-body { padding: 1.3rem; }
.card-footer { padding: .8rem 1.3rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.card-title { margin-top: 0; }
.list-group { list-style: none; margin: 0 0 1.5rem; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.list-group-item { padding: .8rem 1.2rem; border-bottom: 1px solid var(--line); margin: 0; }
.list-group-item:last-child { border-bottom: 0; }
.list-group-flush { border-radius: 0; border-left: 0; border-right: 0; }
.alert { padding: 1rem 1.2rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--card); margin: 0 0 1.5rem; }
.alert-info { border-left: 4px solid var(--navy); }
.alert-warning { border-left: 4px solid var(--warn); }
.alert-secondary, .alert-light { border-left: 4px solid var(--line); }
.table-bordered th, .table-bordered td { border: 1px solid var(--line); }
.table-responsive { overflow-x: auto; }
.img-fluid { max-width: 100%; height: auto; }
.rounded { border-radius: var(--radius-sm); }
.float-right { float: right; margin: 0 0 1rem 1.5rem; }
.w-25 { width: 25%; }
.text-center { text-align: center; }
.text-uppercase { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.font-weight-bold { font-weight: 700; }
.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }
.h-100 { height: 100%; }
.mt-4, .mt-5 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: .5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.my-4, .my-5 { margin: 2rem 0; }
.py-5 { padding: 2rem 0; }
.p-4 { padding: 1.5rem; }
.pt-0 { padding-top: 0; }
.pl-3 { padding-left: 1rem; }
.alert-success { border-left: 4px solid var(--ok); }
.alert-danger { border-left: 4px solid #a33; }
.form-control { font: inherit; padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); width: 100%; }
.form-control:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }
.shadow-sm { box-shadow: 0 10px 30px -24px rgba(11,58,114,.4); }
.flex-wrap { flex-wrap: wrap; }
.h5 { font-size: 1.1rem; font-weight: 700; margin: 0 0 .5rem; }
.mt-3 { margin-top: 1rem; }
.mb-3 { margin-bottom: 1rem; }
.p-lg-5 { }
.collapse:not(.show) { display: none; }
.collapsible-link { cursor: pointer; }
.panel { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); margin-bottom: .8rem; }
.panel-heading { padding: .8rem 1.1rem; }
.panel-title { margin: 0; font-size: 1.05rem; }
.panel-body { padding: 0 1.1rem 1rem; }

/* --------------------------------------------------------------------------
   13. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero .wrap, .about .wrap, .cta-band .wrap, .page-head .wrap, .contact-grid, .band, .faq, .article-layout { grid-template-columns: 1fr; }
  .page-head .wrap { gap: 1.2rem; }
  .page-head.simple.has-aside .wrap { grid-template-columns: 1fr; }
  .head-aside img { display: none; }
  .tiles, .locations, .reviews-grid, .steps, .fees { grid-template-columns: 1fr 1fr; }
  .tile.featured { grid-column: span 2; grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .article-aside { position: static; }
  .article-body > .row, .article-body .blog-article-layout, .article-body .blog-index-layout { grid-template-columns: 1fr; }
  .article-body > .row > .order-md-last, .blog-article-sidebar, .blog-index-sidebar { position: static; }
  .band .btn { justify-self: start; }
  .trust ul { margin-left: 0; gap: 1.4rem; }
}
@media (max-width: 600px) {
  .tiles, .locations, .reviews-grid, .steps, .fees, .site-footer .cols, .pair, .ticks, .post-list, .blog-index-main > .row { grid-template-columns: 1fr; }
  .article-body img[align="right"], .article-body .float-right, .article-body .pull-right { float: none; max-width: 100%; margin: 0 0 1.2rem; }
  .tile.featured { grid-column: span 1; }
  .door { grid-template-columns: 1fr; }
  section { padding: 3.5rem 0; }
  .hero { padding: 2.5rem 0 2rem; }
  .page-head { padding: 2.5rem 0 1.5rem; }
  .w-25 { width: 40%; }
  .trust img { height: 32px; }
}
@media print {
  .site-header, .site-footer, .cta-band, .menu-toggle { display: none; }
  body { background: #fff; }
}

/* Email links (mixins/email.pug): no-JS fallback draws the address from the
   data attributes; the address itself is never in the markup. */
.email-link:empty::after { content: attr(data-u) "\0040" attr(data-d); }
.email-link { overflow-wrap: anywhere; }
