/*
Theme Name: Med-Pro Professionals Group
Theme URI: https://www.med-pro.co.uk/
Author: Med-Pro
Description: A tailored blue, black and white medico-legal agency theme for Medical Professionals.
Version: 1.1.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: medpro
*/

:root {
  --navy-950: #111820;
  --navy-900: #1a242e;
  --navy-800: #263747;
  --brand-blue: #066b90;
  --blue-light: #70c0dd;
  --sky-100: #eaf4fa;
  --ink: #171c21;
  --muted: #56616c;
  --line: #dce5ed;
  --paper: #ffffff;
  --mist: #f5f8fb;
  --radius: 1.15rem;
  --shadow: 0 24px 70px rgba(6, 32, 51, .12);
  --wrap: min(1180px, calc(100% - 2.5rem));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 3px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip-link {
  position: fixed; left: 1rem; top: -5rem; z-index: 9999;
  padding: .7rem 1rem; background: var(--paper); color: var(--navy-950); border-radius: .5rem;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky; top: 0; z-index: 1000;
  color: var(--ink); background: rgba(255,255,255,.98);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 110px; display: flex; align-items: center; gap: 1.6rem; }
.brand { display: inline-flex; align-items: center; gap: .78rem; flex: 0 0 auto; }
.brand-logo { width: 196px; height: auto; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 1.35rem; }
.main-nav a:not(.button) { color: var(--ink); font-size: .9rem; font-weight: 650; }
.main-nav a:not(.button):hover, .main-nav a[aria-current="page"] { color: var(--brand-blue); }
.menu-toggle { display: none; margin-left: auto; border: 0; padding: .5rem; background: transparent; color: var(--ink); }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: currentColor; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .7rem 1.15rem; border: 1px solid transparent; border-radius: .7rem;
  background: var(--brand-blue); color: #fff; font-size: .95rem; font-weight: 750;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.button:hover { transform: translateY(-2px); background: #04536f; box-shadow: 0 12px 28px rgba(6,107,144,.24); }
.button--ghost { border-color: rgba(255,255,255,.35); background: transparent; color: #fff; }
.button--ghost:hover { background: rgba(255,255,255,.09); box-shadow: none; }
.button--dark { background: var(--navy-900); color: #fff; }
.button--dark:hover { background: var(--navy-800); box-shadow: 0 12px 28px rgba(7,26,45,.22); }
.button-arrow { font-size: 1.2rem; line-height: 1; }

.hero {
  position: relative; overflow: hidden; color: var(--ink);
  background: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0 0 0 58%;
  background: linear-gradient(135deg, #eaf4fa, #f7fafc);
  clip-path: polygon(19% 0, 100% 0, 100% 100%, 0 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0 auto auto 0; width: 180px; height: 160px;
  background: linear-gradient(145deg, rgba(6,107,144,.12) 0 35%, rgba(80,128,178,.07) 35% 57%, transparent 57%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.04fr 1fr; gap: 3rem; align-items: center; min-height: 650px; padding: 4.5rem 0; }
.hero-copy { max-width: 610px; }
.hero-visual { position: relative; margin: 0; }
.hero-visual img { aspect-ratio: 3 / 2; object-fit: cover; border-radius: 1rem 1rem 0 0; box-shadow: var(--shadow); }
.hero-caption { position: relative; padding: 1.3rem 1.5rem; border-radius: 0 0 1rem 1rem; background: var(--brand-blue); color: #fff; }
.hero-caption strong { display: block; font-size: 1.05rem; font-weight: 700; }
.hero-caption span { display: block; margin-top: .2rem; color: #deedf5; font-size: .86rem; }
.hero-caption small { display: block; margin-top: .65rem; color: #deedf5; font-size: .69rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .65rem; margin: 0 0 1.25rem; color: var(--blue-light); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.hero h1, .section-title, .closing h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.035em; line-height: 1.04; }
.hero .eyebrow { color: var(--brand-blue); }
.hero h1 { max-width: 610px; font-size: clamp(3rem, 4.9vw, 4.7rem); }
.hero h1 span { color: var(--brand-blue); }
.hero .lead { max-width: 560px; margin: 1.6rem 0 0; color: var(--muted); font-size: clamp(1.04rem, 1.3vw, 1.16rem); line-height: 1.75; }
.hero .button--ghost { color: var(--ink); border-color: #a8b8c5; }
.hero .button--ghost:hover { color: var(--brand-blue); background: var(--sky-100); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.1rem; }
.trust-strip {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(255,255,255,.12); background: var(--navy-950);
}
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { min-height: 88px; display: flex; align-items: center; gap: .8rem; padding: 1rem 1.4rem; border-right: 1px solid rgba(255,255,255,.12); color: #d9e8eb; font-weight: 650; }
.trust-item:last-child { border-right: 0; }
.trust-icon { display: grid; place-items: center; flex: 0 0 auto; width: 34px; aspect-ratio: 1; border-radius: 50%; background: rgba(112,192,221,.14); color: var(--blue-light); }

.section { padding: clamp(5rem, 9vw, 8rem) 0; }
.section--mist { background: var(--mist); }
.section-head { display: grid; grid-template-columns: .75fr 1.25fr; align-items: end; gap: 3rem; margin-bottom: 3.5rem; }
.section-title { color: var(--navy-950); font-size: clamp(2.5rem, 4.5vw, 4.25rem); }
.section-intro { max-width: 620px; margin: 0 0 .4rem auto; color: var(--muted); font-size: 1.08rem; }
.overline { margin: 0 0 1rem; color: var(--brand-blue); font-size: .78rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }

.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.service-card {
  min-height: 300px; padding: clamp(1.6rem, 3vw, 2.45rem); border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-4px); border-color: #b4cfdf; box-shadow: var(--shadow); }
.service-number { display: flex; justify-content: space-between; align-items: center; color: var(--brand-blue); font-size: .82rem; font-weight: 800; letter-spacing: .08em; }
.service-number span:last-child { width: 34px; height: 1px; background: #b9cfdf; }
.service-card h3 { margin: 3.5rem 0 .85rem; color: var(--navy-900); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.65rem, 2.6vw, 2.25rem); font-weight: 500; }
.service-card p { max-width: 500px; margin: 0; color: var(--muted); }

.expertise-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(3rem, 7vw, 7rem); align-items: start; }
.expertise-copy { position: sticky; top: 125px; }
.expertise-copy p { color: var(--muted); font-size: 1.08rem; }
.expertise-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.expertise-item { display: flex; align-items: center; gap: .9rem; min-height: 74px; padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: .75rem; background: #fff; color: var(--navy-900); font-weight: 700; }
.expertise-item::before { content: "+"; display: grid; place-items: center; flex: 0 0 auto; width: 29px; aspect-ratio: 1; border-radius: 50%; background: var(--sky-100); color: var(--brand-blue); font-size: 1.1rem; font-weight: 500; }

.process { color: #fff; background: var(--navy-950); }
.process .section-title { color: #fff; }
.process .section-intro { color: #c4cfd8; }
.process .overline, .audience-card:first-child .overline { color: var(--blue-light); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding: 2rem 1.7rem 1rem 0; border-top: 1px solid rgba(255,255,255,.18); }
.step:not(:last-child)::after { content: ""; position: absolute; top: -3px; right: 1.7rem; width: 7px; aspect-ratio: 1; border-radius: 50%; background: var(--blue-light); }
.step strong { display: block; color: var(--blue-light); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.step h3 { margin: 1.2rem 0 .7rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.6rem; font-weight: 500; }
.step p { margin: 0; color: #bcd1d8; font-size: .95rem; }

.assurance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 8vw, 7rem); align-items: center; }
.assurance-panel { position: relative; overflow: hidden; min-height: 510px; border-radius: var(--radius); background: var(--navy-900); box-shadow: var(--shadow); }
.assurance-panel img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: center; opacity: .52; filter: saturate(.72); }
.assurance-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,26,45,.12), rgba(7,26,45,.88)); }
.assurance-quote { position: absolute; z-index: 1; inset: auto 2.2rem 2.2rem; margin: 0; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.65rem, 2.8vw, 2.45rem); line-height: 1.25; }
.assurance-copy .section-title { margin-bottom: 1.4rem; }
.assurance-copy > p { color: var(--muted); }
.tick-list { display: grid; gap: .95rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.tick-list li { display: flex; gap: .85rem; align-items: flex-start; }
.tick-list li::before { content: "✓"; display: grid; place-items: center; flex: 0 0 auto; width: 26px; aspect-ratio: 1; margin-top: .08rem; border-radius: 50%; background: var(--sky-100); color: var(--brand-blue); font-size: .82rem; font-weight: 900; }

.contact { background: var(--mist); }
.contact-layout { display: grid; grid-template-columns: .86fr 1.14fr; gap: clamp(2.5rem, 7vw, 6.5rem); align-items: start; }
.contact-copy .section-title { margin-bottom: 1.4rem; }
.contact-copy > p { color: var(--muted); }
.contact-details { display: grid; gap: 1rem; margin-top: 2rem; }
.contact-line { display: grid; grid-template-columns: 38px 1fr; gap: .8rem; align-items: start; }
.contact-line .icon { display: grid; place-items: center; width: 38px; aspect-ratio: 1; border-radius: 50%; background: #fff; color: var(--brand-blue); font-weight: 800; }
.contact-line small { display: block; color: var(--muted); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.contact-line a, .contact-line address { margin-top: .2rem; color: var(--navy-900); font-style: normal; font-weight: 700; }
.contact-form { padding: clamp(1.5rem, 4vw, 2.7rem); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.contact-form h3 { margin: 0 0 .35rem; color: var(--navy-900); font-family: Georgia, "Times New Roman", serif; font-size: 2rem; font-weight: 500; }
.form-note { margin: 0 0 1.6rem; color: var(--muted); font-size: .9rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label { color: var(--navy-900); font-size: .85rem; font-weight: 750; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid #cbdadf; border-radius: .58rem; padding: .78rem .9rem; background: #fbfdfd; color: var(--ink); }
.field textarea { min-height: 145px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand-blue); outline: 3px solid rgba(6,107,144,.12); }
.consent { display: flex; align-items: flex-start; gap: .65rem; margin: 1.1rem 0; color: var(--muted); font-size: .82rem; }
.consent input { flex: 0 0 auto; margin-top: .25rem; }
.consent a { color: var(--brand-blue); text-decoration: underline; }
.honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; opacity: 0 !important; pointer-events: none !important; }
.form-message { margin: 0 0 1rem; padding: .9rem 1rem; border-radius: .55rem; font-weight: 650; }
.form-message--success { background: #e0f5ef; color: #0b684f; }
.form-message--error { background: #fde7e7; color: #8c2525; }

.closing { padding: 5rem 0; color: #fff; background: linear-gradient(120deg, var(--navy-900), #075876); }
.closing-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.closing h2 { max-width: 720px; font-size: clamp(2.1rem, 4vw, 3.8rem); }
.site-footer { color: #cbd2d9; background: #0e141b; }
.footer-brand .brand { padding: .65rem 1rem; border-radius: .4rem; background: #fff; }
.footer-brand .brand-logo { width: 210px; }
.footer-main { display: grid; grid-template-columns: 1.35fr .65fr .8fr; gap: 3rem; padding: 4rem 0 3rem; }
.footer-brand p { max-width: 440px; color: #aebbc7; }
.footer-title { margin: 0 0 1rem; color: #fff; font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; }
.footer-links { display: grid; gap: .6rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 0; border-top: 1px solid rgba(255,255,255,.1); color: #a5b4c1; font-size: .82rem; }
.footer-bottom nav { display: flex; gap: 1.2rem; }
.legal-page { padding: 6rem 0; }
.legal-page article { max-width: 820px; }
.legal-page h1 { color: var(--navy-950); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.7rem, 5vw, 4.6rem); font-weight: 500; line-height: 1.05; }
.legal-page h2 { margin-top: 2.2rem; color: var(--navy-900); font-size: 1.35rem; }
.legal-page p, .legal-page li { color: var(--muted); }

.inner-hero { position: relative; overflow: hidden; padding: clamp(5.5rem, 9vw, 8.5rem) 0 4.5rem; color: #fff; background: var(--navy-950); }
.inner-hero::after { content: ""; position: absolute; width: 520px; aspect-ratio: 1; right: -180px; top: -220px; border: 1px solid rgba(112,192,221,.25); border-radius: 50%; box-shadow: 0 0 0 70px rgba(112,192,221,.045), 0 0 0 140px rgba(112,192,221,.022); }
.inner-hero .wrap { position: relative; z-index: 1; }
.breadcrumbs { display: flex; gap: .55rem; align-items: center; margin-bottom: 2rem; color: #9fbbc5; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.breadcrumbs a { color: var(--blue-light); }
.inner-hero h1 { max-width: 880px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.1rem, 6.5vw, 6.4rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.02; }
.inner-hero .lead { max-width: 780px; margin: 1.5rem 0 0; color: #c6d9df; font-size: clamp(1.05rem, 1.6vw, 1.28rem); }
.hero-side-note { max-width: 440px; margin: 2.3rem 0 0; padding: 1rem 1.2rem; border-left: 3px solid var(--blue-light); background: rgba(255,255,255,.06); color: #d6e5e9; }
.page-nav { border-bottom: 1px solid var(--line); background: #fff; }
.page-nav .wrap { display: flex; gap: 1.6rem; overflow-x: auto; scrollbar-width: none; }
.page-nav a { flex: 0 0 auto; padding: 1.05rem 0 .9rem; border-bottom: 3px solid transparent; color: var(--muted); font-size: .86rem; font-weight: 750; }
.page-nav a:hover { color: var(--navy-900); border-color: var(--brand-blue); }
.intro-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2.5rem, 8vw, 7rem); align-items: start; }
.intro-grid .section-title { position: sticky; top: 125px; }
.prose-large { color: var(--muted); font-size: 1.12rem; }
.prose-large p:first-child { margin-top: 0; color: var(--navy-800); font-size: 1.35rem; }
.stat-band { color: #fff; background: #075876; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 2.2rem; border-right: 1px solid rgba(255,255,255,.15); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; color: var(--blue-light); font-family: Georgia, "Times New Roman", serif; font-size: 2.2rem; font-weight: 500; }
.stat span { color: #cfdee3; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.detail-card { display: flex; flex-direction: column; min-height: 320px; padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.detail-card .card-icon { display: grid; place-items: center; width: 46px; aspect-ratio: 1; border-radius: .7rem; background: var(--sky-100); color: var(--brand-blue); font-weight: 850; }
.detail-card h2, .detail-card h3 { margin: 2rem 0 .75rem; color: var(--navy-900); font-family: Georgia, "Times New Roman", serif; font-size: 1.75rem; font-weight: 500; line-height: 1.2; }
.detail-card p { margin: 0; color: var(--muted); }
.detail-card a { margin-top: auto; padding-top: 1.5rem; color: var(--brand-blue); font-weight: 800; }
.two-col-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 2rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.two-col-list li { padding: 1rem 0 1rem 2.2rem; border-bottom: 1px solid var(--line); position: relative; font-weight: 700; }
.two-col-list li::before { content: "✓"; position: absolute; left: 0; top: 1rem; color: var(--brand-blue); font-weight: 900; }
.specialty-catalog { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.specialty-block { padding: 1.8rem; border: 1px solid var(--line); border-radius: .95rem; background: #fff; }
.specialty-block h2 { margin: 0 0 .7rem; color: var(--navy-900); font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; font-weight: 500; }
.specialty-block p { margin: 0; color: var(--muted); }
.specialty-tag { display: inline-block; margin-bottom: 1.25rem; padding: .3rem .6rem; border-radius: 99px; background: var(--sky-100); color: var(--brand-blue); font-size: .72rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.audience-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.audience-card { position: relative; overflow: hidden; min-height: 420px; padding: clamp(2rem, 4vw, 3.4rem); border-radius: var(--radius); color: #fff; background: var(--navy-900); }
.audience-card:nth-child(2) { color: var(--navy-950); background: var(--sky-100); }
.audience-card h2 { max-width: 480px; margin: 0 0 1rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 500; line-height: 1.08; }
.audience-card p { max-width: 500px; color: #c6d9df; }
.audience-card:nth-child(2) p { color: #466676; }
.audience-card .button { position: absolute; left: clamp(2rem, 4vw, 3.4rem); bottom: clamp(2rem, 4vw, 3.4rem); }
.document-list { display: grid; gap: .75rem; margin-top: 2rem; }
.document-item { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; padding: 1.15rem; border: 1px solid var(--line); border-radius: .75rem; background: #fff; }
.document-item span:first-child { display: grid; place-items: center; width: 44px; aspect-ratio: 1; border-radius: .55rem; background: var(--sky-100); color: var(--brand-blue); font-size: .72rem; font-weight: 900; }
.document-item strong { display: block; color: var(--navy-900); }
.document-item small { color: var(--muted); font-size: .84rem; }
.faq { display: grid; gap: .7rem; }
.faq details { border: 1px solid var(--line); border-radius: .8rem; background: #fff; }
.faq summary { cursor: pointer; padding: 1.2rem 3.3rem 1.2rem 1.3rem; color: var(--navy-900); font-weight: 800; list-style: none; position: relative; }
.faq summary::after { content: "+"; position: absolute; right: 1.3rem; top: 1rem; color: var(--brand-blue); font-size: 1.3rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 1.3rem 1.25rem; color: var(--muted); }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.value-card { padding: 1.7rem; border-top: 3px solid var(--brand-blue); background: #fff; box-shadow: 0 12px 38px rgba(6,32,51,.08); }
.value-card strong { display: block; margin-bottom: .6rem; color: var(--navy-900); font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; font-weight: 500; }
.value-card span { color: var(--muted); }
.contact-page-layout { display: grid; grid-template-columns: .68fr 1.32fr; gap: clamp(2.5rem, 7vw, 6rem); }
.contact-aside { padding: 2rem; border-radius: var(--radius); color: #fff; background: var(--navy-900); }
.contact-aside h2 { margin-top: 0; font-family: Georgia, "Times New Roman", serif; font-size: 2rem; font-weight: 500; }
.contact-aside .contact-details { margin-top: 2rem; }
.contact-aside .contact-line small { color: #9fbac4; }
.contact-aside .contact-line a, .contact-aside .contact-line address { color: #fff; }
.contact-aside .contact-line .icon { background: rgba(255,255,255,.1); color: var(--blue-light); }
.form-message[hidden] { display: none; }
body.admin-bar .site-header { top: 32px; }

@media (max-width: 1040px) {
  .header-inner { gap: 1rem; }
  .main-nav { gap: .85rem; }
  .main-nav a:not(.button) { font-size: .83rem; }
  .main-nav .button { font-size: .84rem; padding-inline: .8rem; }
  .brand-logo { width: 175px; }
}

@media (max-width: 900px) {
  .header-inner { min-height: 94px; }
  .brand-logo { width: 164px; }
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute; inset: 100% 0 auto; display: none; align-items: stretch; gap: 0; padding: 1rem 1.25rem 1.4rem;
    max-height: calc(100dvh - 140px); overflow-y: auto;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 44px rgba(0,0,0,.12);
  }
  .main-nav.is-open { display: grid; }
  .main-nav a:not(.button) { padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .main-nav .button { margin-top: 1rem; }
  .hero-inner { min-height: auto; grid-template-columns: 1fr; gap: 2.5rem; padding: 3.5rem 0; }
  .hero-copy { max-width: 690px; }
  .hero h1 { font-size: clamp(3.2rem, 7.5vw, 4.6rem); }
  .hero-visual { width: 100%; max-width: 690px; }
  .hero::before { inset: 45% 0 0 25%; }
  .section-head, .expertise-layout, .assurance-grid, .contact-layout { grid-template-columns: 1fr; }
  .section-intro { margin-left: 0; }
  .expertise-copy { position: static; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 2rem 0; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .intro-grid, .contact-page-layout { grid-template-columns: 1fr; }
  .intro-grid .section-title { position: static; }
  .detail-grid, .value-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  :root { --wrap: min(100% - 1.4rem, 1180px); }
  .hero-inner { padding: 2.6rem 0; }
  .hero h1 { font-size: clamp(2.5rem, 10vw, 3.6rem); }
  .hero .eyebrow { font-size: .68rem; letter-spacing: .1em; }
  .hero-caption { padding: 1rem; }
  .hero-caption strong { font-size: .95rem; }
  .hero-actions { display: grid; }
  .trust-grid { grid-template-columns: 1fr; padding: .55rem 0; }
  .trust-item { min-height: 0; padding: .48rem 0; border-right: 0; font-size: .86rem; }
  .trust-icon { width: 27px; }
  .service-grid, .expertise-list, .steps, .form-grid, .footer-main { grid-template-columns: 1fr; }
  .service-card { min-height: 260px; }
  .service-card h3 { margin-top: 2.4rem; }
  .assurance-panel { min-height: 410px; }
  .closing-inner, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .footer-brand { grid-column: auto; }
  .footer-bottom nav { flex-wrap: wrap; }
  .stat-grid, .detail-grid, .specialty-catalog, .audience-split, .value-grid, .two-col-list { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .stat:last-child { border-bottom: 0; }
  .audience-card { min-height: 380px; }
}

@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}
@media (max-width: 600px) {
  body.admin-bar .site-header { top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
