/* Jurisco: classic, restrained law-firm styling. Square edges, hairlines, serif headings. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.7 var(--font-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--dark); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; color: var(--dark); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 300; background: var(--dark); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 0; }

.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 60ch; }
.text-link { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--dark); text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 3px; }
.text-link:hover { color: var(--accent); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border: 1px solid transparent; border-radius: 2px; font: 600 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn--navy { background: var(--dark); color: #fff; }
.btn--navy:hover { background: var(--dark-deep); }
.btn--gold { background: var(--accent); color: #fff; }
.btn--gold:hover { background: var(--accent-hover); }
.btn--line { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--line:hover { border-color: var(--accent-soft); color: var(--accent-soft); }
.btn--ghost { border-color: var(--dark); color: var(--dark); }
.btn--ghost:hover { background: var(--dark); color: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--dark); border-bottom: 1px solid rgba(var(--accent-rgb),.45); }
.site-header__inner { width: min(1240px, calc(100% - 40px)); margin: 0 auto; min-height: 82px; display: flex; align-items: center; gap: 28px; }
.site-header__brand img { height: 60px; width: auto; }
.site-header__nav { margin-left: auto; }
.site-header__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-header__item { position: relative; }
.site-header__item > a, .site-header__drop { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; background: none; border: 0; color: rgba(255,255,255,.9); font: 500 .8rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.site-header__drop::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .7; }
.site-header__item > a:hover, .site-header__drop:hover, .site-header__item > a[aria-current="page"] { color: var(--accent-soft); }
.site-header__menu { display: none; position: absolute; top: 100%; left: 0; min-width: 300px; margin: 0; padding: 10px 0; list-style: none; background: #fff; border-top: 2px solid var(--accent); box-shadow: 0 18px 40px rgba(var(--dark-rgb),.18); }
.site-header__menu a { display: block; padding: 9px 22px; color: var(--ink); text-decoration: none; font-size: .92rem; }
.site-header__menu a:hover { background: var(--stone); color: var(--dark); }
.site-header__menu li:last-child a { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-weight: 600; color: var(--dark); }
.site-header__item--open > .site-header__menu { display: block; }
@media (min-width: 1024px) {
  .site-header__item--drop:hover > .site-header__menu, .site-header__item--drop:focus-within > .site-header__menu { display: block; }
}
.site-header__tools { display: flex; align-items: center; gap: 12px; }
.site-header__cta { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border: 1px solid var(--accent); color: #fff; font: 600 .74rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border-radius: 2px; }
.site-header__cta:hover { background: var(--accent); }
.site-header__menu-btn { display: none; min-height: 42px; padding: 0 14px; background: none; border: 1px solid rgba(255,255,255,.4); color: #fff; font: 600 .74rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; border-radius: 2px; }
@media (max-width: 1023px) {
  .site-header__inner { min-height: 70px; gap: 12px; }
  .site-header__brand img { height: 48px; }
  .site-header__nav { display: none; }
  .site-header__nav.is-open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--dark); padding: 8px 20px 20px; border-bottom: 1px solid rgba(var(--accent-rgb),.45); max-height: 80vh; overflow: auto; }
  .site-header__list { flex-direction: column; align-items: stretch; }
  .site-header__item > a, .site-header__drop { width: 100%; justify-content: space-between; padding: 0 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .site-header__menu { position: static; box-shadow: none; border: 0; background: transparent; padding: 0 0 8px 12px; min-width: 0; }
  .site-header__menu a { color: rgba(255,255,255,.82); padding: 8px 4px; }
  .site-header__menu a:hover { background: none; color: var(--accent-soft); }
  .site-header__menu li:last-child a { border-color: rgba(255,255,255,.12); color: #fff; }
  .site-header__tools { margin-left: auto; }
  .site-header__menu-btn { display: inline-flex; align-items: center; }
}
@media (max-width: 480px) { .site-header__cta { display: none; } }

/* ---------- Home hero: text on navy, real photograph beside it ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); background: var(--dark); color: #fff; min-height: 560px; }
.hero__copy { display: flex; flex-direction: column; justify-content: center; padding: 72px max(40px, calc((100vw - var(--wrap)) / 2)); padding-right: 56px; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero p { color: rgba(255,255,255,.82); font-size: 1.08rem; max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.hero__media { position: relative; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: var(--photo-filter); }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--dark-rgb),.35), rgba(var(--dark-rgb),0) 40%); }
.hero__caption { position: absolute; right: 16px; bottom: 12px; z-index: 1; font-size: .72rem; color: rgba(255,255,255,.75); letter-spacing: .04em; }

/* ---------- Facts strip ---------- */
.facts { border-bottom: 1px solid var(--line); }
.facts ul { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.facts li { padding: 30px 28px; border-left: 1px solid var(--line); }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts strong { display: block; font-family: var(--font-display); font-size: 2.1rem; font-weight: 600; color: var(--dark); line-height: 1.1; }
.facts span { font-size: .88rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section--stone { background: var(--stone); }
.section--navy { background: var(--dark); color: rgba(255,255,255,.85); }
.section--navy h2 { color: #fff; }
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; }
.section-head h2 { margin: 0; }

/* Practice grid: a ruled table of links rather than floating cards. */
.practice-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.practice-grid a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 22px 8px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.practice-grid a:nth-child(odd) { padding-right: 32px; border-right: 1px solid var(--line); }
.practice-grid a:nth-child(even) { padding-left: 32px; }
.practice-grid strong { font-family: var(--font-display); font-size: 1.32rem; font-weight: 600; color: var(--dark); }
.practice-grid span { grid-column: 1; font-size: .9rem; color: var(--muted); }
.practice-grid a::after { content: ""; grid-row: 1 / span 2; grid-column: 2; align-self: center; width: 9px; height: 9px; border-top: 1.5px solid var(--accent); border-right: 1.5px solid var(--accent); transform: rotate(45deg); transition: transform .15s; }
.practice-grid a:hover { background: var(--stone); }
.practice-grid a:hover::after { transform: translateX(4px) rotate(45deg); }

/* Partners teaser on the home page: names only, photos live on the Team page. */
.partners { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.partners div { padding: 26px 0; border-bottom: 1px solid var(--line); }
.partners div + div { padding-left: 32px; border-left: 1px solid var(--line); }
.partners strong { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--dark); }
.partners span { color: var(--muted); font-size: .92rem; }

/* Contact strip */
.contact-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.15); margin: 28px 0 32px; }
.contact-strip div { padding: 22px 24px 0 0; }
.contact-strip div + div { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.15); }
.contact-strip small { display: block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-soft); margin-bottom: 6px; }
.contact-strip a { color: #fff; text-decoration: none; }

/* ---------- Inner page header ---------- */
.page-head { background: var(--dark); color: rgba(255,255,255,.82); padding: 56px 0 52px; border-bottom: 1px solid rgba(var(--accent-rgb),.45); }
.page-head h1 { color: #fff; font-size: clamp(2.1rem, 4vw, 3.1rem); margin-bottom: 10px; }
.page-head p { margin: 0; max-width: 62ch; font-size: 1.05rem; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--accent); }
.crumbs a { color: rgba(255,255,255,.75); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: var(--accent-soft); }

/* ---------- Content layouts ---------- */
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; }
.prose h2 { font-size: 1.85rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--body-text); }
.ruled-list { list-style: none; padding: 0; margin: 0 0 1em; columns: 2; column-gap: 40px; }
.ruled-list li { break-inside: avoid; padding: 11px 0 11px 20px; border-bottom: 1px solid var(--line); position: relative; font-size: .97rem; }
.ruled-list li::before { content: ""; position: absolute; left: 0; top: 21px; width: 8px; height: 1px; background: var(--accent); }
.aside-box { border-top: 2px solid var(--accent); background: var(--stone); padding: 26px; position: sticky; top: 110px; }
.aside-box h3 { margin-bottom: 8px; }
.aside-box p { font-size: .92rem; color: var(--muted); }
.aside-box dl { margin: 0 0 18px; }
.aside-box dt { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-top: 12px; }
.aside-box dd { margin: 2px 0 0; }
.aside-box dd a { text-decoration: none; }
.aside-box .btn { width: 100%; }
.related { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.related h2 { font-size: 1.4rem; }
.related ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.related a { text-decoration: none; border-bottom: 1px solid var(--accent); }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.steps li { counter-increment: s; padding: 24px 24px 24px 0; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.steps li::before { content: "0" counter(s); display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--accent); margin-bottom: 6px; }
.steps strong { display: block; color: var(--dark); margin-bottom: 4px; }
.steps span { font-size: .93rem; color: var(--muted); }
.forums { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.forums li { padding: 18px 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 1.25rem; color: var(--dark); }

/* ---------- Team ---------- */
.profile { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 56px; padding: 56px 0; border-bottom: 1px solid var(--line); }
.profile:first-of-type { padding-top: 0; }
.photo-slot { aspect-ratio: 4 / 5; background: var(--stone); border: 1px solid var(--line); display: grid; place-items: center; text-align: center; color: var(--muted); }
.photo-slot svg { width: 72px; height: 72px; fill: var(--placeholder); display: block; margin: 0 auto 10px; }
.photo-slot span { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.profile__role { font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.profile h2 { font-size: 2.3rem; margin-bottom: 14px; }
.facts-table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: .95rem; }
.facts-table th { text-align: left; vertical-align: top; width: 170px; padding: 12px 16px 12px 0; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.facts-table td { padding: 12px 0; }
.facts-table tr { border-top: 1px solid var(--line); }
.tbc { color: var(--placeholder-text); font-style: italic; }

/* ---------- Contact page ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; }
.contact-list { margin: 0; }
.contact-list div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list div:first-child { border-top: 1px solid var(--line); }
.contact-list dt { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.contact-list dd { margin: 0; font-size: 1.02rem; }
.contact-list dd a { text-decoration: none; }
.enquiry { background: var(--stone); padding: 34px; border-top: 2px solid var(--accent); }
.enquiry label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .06em; color: var(--dark); margin: 14px 0 6px; }
.enquiry input, .enquiry textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 2px; background: #fff; font: inherit; }
.enquiry textarea { resize: vertical; min-height: 120px; }
.enquiry .btn { margin-top: 20px; }
.form-note { font-size: .82rem; color: var(--muted); margin: 12px 0 0; }
.map { margin-top: 64px; border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark-deep); color: rgba(255,255,255,.72); font-size: .92rem; }
.site-footer__main { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; padding: 64px 0 40px; }
.site-footer img { width: 120px; height: auto; margin-bottom: 14px; }
.site-footer h2 { font-family: var(--font-body); font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-soft); margin: 6px 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__legal { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0 26px; font-size: .8rem; color: rgba(255,255,255,.55); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }


.error-page { padding: 120px 0; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__copy { padding: 48px 20px 40px; }
  .hero__media { min-height: 240px; order: -1; }
  .facts ul { grid-template-columns: 1fr; }
  .facts li, .facts li:first-child { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0; }
  .facts li:first-child { border-top: 0; }
  .section { padding: 60px 0; }
  .split, .content-grid, .contact-layout { grid-template-columns: 1fr; gap: 36px; }
  .section-head { flex-direction: column; align-items: start; }
  .practice-grid, .partners { grid-template-columns: 1fr; }
  .practice-grid a:nth-child(odd), .practice-grid a:nth-child(even) { padding: 18px 4px; border-right: 0; }
  .partners div + div { padding-left: 0; border-left: 0; }
  .contact-strip { grid-template-columns: 1fr 1fr; }
  .contact-strip div, .contact-strip div + div { padding: 16px 12px 16px 0; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .ruled-list { columns: 1; }
  .aside-box { position: static; }
  .steps, .forums { grid-template-columns: 1fr; }
  .steps li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .profile { grid-template-columns: 1fr; gap: 24px; }
  .photo-slot { max-width: 240px; }
  .site-footer__main { grid-template-columns: 1fr 1fr; }
  .map iframe { height: 300px; }
}
@media (max-width: 520px) {
  .contact-strip, .site-footer__main { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .enquiry { padding: 24px 18px; }
  .facts-table th { width: 110px; }
}

/* Partner photos, once supplied, follow the same treatment as the hero photograph. */
.profile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: var(--photo-filter); }

/* ---------- White header and hover effects ---------- */
/* The header sits on white, so the logo uses the version with black lettering
   (logo-dark.webp); the footer stays dark and keeps the white-lettered logo. */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 2px 12px rgba(var(--dark-rgb), .05); }
.site-header__item > a, .site-header__drop { color: var(--ink); position: relative; transition: color .25s ease; }
.site-header__item > a::before, .site-header__drop::before { content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.site-header__item > a:hover, .site-header__drop:hover, .site-header__item > a[aria-current="page"], .site-header__item--open > .site-header__drop { color: var(--accent); }
.site-header__item > a:hover::before, .site-header__drop:hover::before, .site-header__item > a[aria-current="page"]::before { transform: scaleX(1); }
.site-header__menu { border-top-color: var(--accent); }
.site-header__menu a { transition: background .2s ease, color .2s ease, padding-left .2s ease; }
.site-header__menu a:hover { background: var(--stone); color: var(--accent); padding-left: 28px; }
.site-header__cta { background: var(--dark); border-color: var(--dark); color: #fff; transition: background .25s ease, border-color .25s ease, transform .25s ease; }
.site-header__cta:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-1px); }
.site-header__menu-btn { border-color: var(--line); color: var(--ink); }
.site-header__menu-btn:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 1023px) {
  .site-header__nav.is-open { background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 12px 30px rgba(var(--dark-rgb), .08); }
  .site-header__item > a, .site-header__drop { border-bottom-color: var(--line); }
  .site-header__item > a::before, .site-header__drop::before { display: none; }
  .site-header__menu a { color: var(--muted); }
  .site-header__menu a:hover { background: none; color: var(--accent); padding-left: 10px; }
  .site-header__menu li:last-child a { border-color: var(--line); color: var(--ink); }
}

/* Buttons: a small lift and a colour change on every button. */
.btn { transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(var(--dark-rgb), .14); }
.btn--gold:hover { background: var(--dark); color: #fff; }
.btn--line:hover { background: #fff; border-color: #fff; color: var(--dark); }
.btn--navy:hover { background: var(--accent); color: #fff; }

/* Text links: gold on hover, the underline stretching out. */
a { transition: color .2s ease; }
.text-link { position: relative; border-bottom: 0; padding-bottom: 4px; transition: color .25s ease, letter-spacing .25s ease; }
.text-link::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--accent); transition: width .3s ease; }
.text-link:hover { color: var(--accent); letter-spacing: .16em; }
.text-link:hover::after { width: 125%; }
.prose a, .facts-table a, .related a, .contact-list dd a, .aside-box dd a, .lead a, .split p a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--accent); }
.prose a:hover, .facts-table a:hover, .related a:hover, .contact-list dd a:hover, .aside-box dd a:hover, .lead a:hover, .split p a:hover { color: var(--accent); }


/* Facts strip */
.facts li { transition: background .25s ease; }
.facts li:hover { background: var(--stone); }
.facts li:hover strong { color: var(--accent); }
.facts strong { transition: color .25s ease; }

/* Practice grid: title turns gold, arrow moves. */
.practice-grid a { transition: background .25s ease; }
.practice-grid strong { transition: color .25s ease; }
.practice-grid a:hover strong { color: var(--accent); }
.practice-grid a:hover { background: #fff; }

/* Partners and other ruled rows */
.partners div { transition: background .25s ease; }
.partners div:hover { background: var(--stone); }
.partners div:hover strong { color: var(--accent); }
.partners strong { transition: color .25s ease; }
.forums li { transition: color .25s ease, padding-left .25s ease; }
.forums li:hover { color: var(--accent); padding-left: 10px; }
.ruled-list li { transition: padding-left .25s ease, color .25s ease; }
.ruled-list li::before { transition: width .25s ease; }
.ruled-list li:hover { padding-left: 26px; color: var(--dark); }
.ruled-list li:hover::before { width: 16px; }
.steps li { transition: background .25s ease; }
.steps li:hover { background: #fff; }
.steps li:hover strong { color: var(--accent); }

/* Cards and boxes: a gold edge and a soft shadow. */
.aside-box, .enquiry { transition: box-shadow .25s ease, transform .25s ease; }
.aside-box:hover, .enquiry:hover { box-shadow: 0 14px 34px rgba(var(--dark-rgb), .10); transform: translateY(-2px); }
.photo-slot { transition: border-color .25s ease, background .25s ease; }
.profile:hover .photo-slot { border-color: var(--accent); }
.profile h2 { transition: color .25s ease; }
.profile:hover h2 { color: var(--accent); }
.contact-list div { transition: padding-left .25s ease; }
.contact-list div:hover { padding-left: 8px; }
.enquiry input, .enquiry textarea { transition: border-color .2s ease, box-shadow .2s ease; }
.enquiry input:hover, .enquiry textarea:hover { border-color: var(--accent-soft); }
.enquiry input:focus, .enquiry textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .15); }

/* Footer and contact strip links */
.site-footer a { transition: color .2s ease, padding-left .2s ease; }
.site-footer ul a:hover { color: var(--accent-soft); padding-left: 4px; }
.site-footer p a:hover, .contact-strip a:hover { color: var(--accent-soft); }

@media (hover: none) {
  .btn:hover, .aside-box:hover, .enquiry:hover { transform: none; box-shadow: none; }
}

/* ---------- Phone refinements ---------- */
/* Hamburger: three lines that fold into a cross while the menu is open. */
.site-header__menu-btn { width: 44px; height: 44px; padding: 0; border: 0; background: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer; }
.site-header__menu-btn span { display: block; width: 24px; height: 2px; background: var(--dark); border-radius: 1px; transition: transform .25s ease, opacity .2s ease, background .2s ease; }
.site-header__menu-btn:hover span { background: var(--accent); }
.site-header__menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header__menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-header__menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1023px) {
  .site-header__inner { min-height: 72px; }
  .site-header__brand img { height: 54px; }
  .site-header__nav.is-open { padding: 4px 20px 24px; }
  .site-header__item > a, .site-header__drop { min-height: 52px; font-size: .82rem; }
}

@media (max-width: 900px) {
  /* The headline sits over the photograph behind a dark fade, instead of the
     photo and the text being two separate blocks. */
  .hero { position: relative; display: block; min-height: 0; }
  .hero__media { position: absolute; inset: 0; min-height: 0; }
  .hero__media::after { background: linear-gradient(180deg, rgba(var(--dark-rgb), .45) 0%, rgba(var(--dark-rgb), .82) 45%, rgba(var(--dark-rgb), .96) 100%); }
  .hero__copy { position: relative; z-index: 1; padding: 150px 20px 40px; }
  .hero__caption { top: 12px; right: 14px; bottom: auto; font-size: .66rem; }
  .hero .eyebrow { font-size: .66rem; letter-spacing: .16em; }
  .hero h1 { font-size: 2.35rem; }
  .hero p { font-size: 1rem; }
  .hero__actions { margin-top: 10px; }

  /* Facts become one compact row. */
  .facts ul { grid-template-columns: repeat(3, 1fr); }
  .facts li, .facts li:first-child { border-top: 0; border-left: 1px solid var(--line); padding: 18px 10px; text-align: center; }
  .facts li:first-child { border-left: 0; }
  .facts strong { font-size: 1.45rem; }
  .facts span { font-size: .72rem; line-height: 1.35; display: block; }

  .eyebrow { font-size: .68rem; }
  h2 { font-size: 1.9rem; }
  .section-head { gap: 10px; margin-bottom: 24px; }
  .practice-grid strong { font-size: 1.2rem; }
}

@media (max-width: 520px) {
  /* Footer: brand and office across the top and bottom, link lists side by side. */
  .site-footer__main { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding: 48px 0 32px; }
  .site-footer__main > div:first-child, .site-footer__main > div:last-child { grid-column: 1 / -1; }
  .site-footer__main > div:first-child { display: flex; align-items: center; gap: 16px; }
  .site-footer__main > div:first-child img { width: 84px; margin: 0; }
  .site-footer__main > div:first-child p { margin: 0; }
  .site-footer__legal { flex-direction: column; gap: 8px; }
  .contact-strip { grid-template-columns: 1fr; }
  .split { gap: 12px; }
}

/* ---------- Practice photographs ---------- */
/* Home tiles: photo with the practice name over a dark fade. */
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.tile { position: relative; display: flex; align-items: flex-end; aspect-ratio: 4 / 5; overflow: hidden; background: var(--dark); color: #fff; text-decoration: none; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: var(--photo-filter); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--dark-rgb), .05) 30%, rgba(var(--dark-rgb), .82) 100%); transition: background .3s ease; }
.tile::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; z-index: 2; }
.tile span { position: relative; z-index: 1; padding: 18px 16px; font-family: var(--font-display); font-size: 1.22rem; font-weight: 600; line-height: 1.2; transition: color .25s ease; }
.tile:hover::after { background: linear-gradient(180deg, rgba(var(--dark-rgb), .25) 20%, rgba(var(--dark-rgb), .9) 100%); }
.tile:hover::before { transform: scaleX(1); }
.tile:hover span { color: var(--accent-soft); }

/* Practice index cards: photo, name, one line. */
.pcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); color: inherit; text-decoration: none; transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.pcard__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--stone); }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; filter: var(--photo-filter); }
.pcard__body { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 22px; }
.pcard strong { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--dark); transition: color .25s ease; }
.pcard__body > span { font-size: .92rem; color: var(--muted); }
.pcard em { margin-top: 8px; font-style: normal; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.pcard:hover { border-color: var(--accent); box-shadow: 0 14px 34px rgba(var(--dark-rgb), .10); transform: translateY(-3px); }
.pcard:hover strong { color: var(--accent); }

/* Practice page banner: the area's photo behind the title. */
.page-head--photo { position: relative; overflow: hidden; padding: 96px 0 72px; }
.page-head__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: var(--photo-filter); }
.page-head--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--dark-rgb), .92) 0%, rgba(var(--dark-rgb), .78) 55%, rgba(var(--dark-rgb), .55) 100%); }
.page-head--photo .wrap { position: relative; z-index: 1; }

@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tile { aspect-ratio: 1 / 1; }
  .tile span { font-size: 1.05rem; padding: 14px 12px; }
  .pcards { grid-template-columns: 1fr 1fr; gap: 16px; }
  .page-head--photo { padding: 72px 0 48px; }
  .page-head--photo::after { background: linear-gradient(180deg, rgba(var(--dark-rgb), .75) 0%, rgba(var(--dark-rgb), .9) 100%); }
}
@media (max-width: 560px) { .pcards { grid-template-columns: 1fr; } }
@media (hover: none) { .pcard:hover { transform: none; box-shadow: none; } }

/* Ten areas divide evenly into two columns; each card puts the photo beside the text. */
.pcards { grid-template-columns: repeat(2, 1fr); }
.pcard { flex-direction: row; }
.pcard__img { flex: 0 0 42%; aspect-ratio: auto; min-height: 190px; }
.pcard__body { justify-content: center; padding: 24px 26px; }
@media (max-width: 900px) { .pcards { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .pcard { flex-direction: column; } .pcard__img { flex: none; aspect-ratio: 3 / 2; min-height: 0; } }
