/* Conselia website styles, following the Conselia brandbook:
   navy #0C142B, green #1AC845 to #11983B, white; Poppins for headings (bold) and text (regular);
   the emblem as a large translucent device and as a repeating pattern. */

/* ---------- Fonts (self-hosted Poppins, latin subset, OFL) ---------- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500-latin.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600-latin.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700-latin.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --navy: #0c142b;
  --navy-2: #16213f;
  --navy-3: #22305a;
  --green: #1ac845;
  --green-deep: #11983b;
  --gradient: linear-gradient(135deg, #1ac845 0%, #11983b 100%);
  --ink: #0c142b;
  --text: #4a5263;
  --muted: #6b7385;
  --line: #e4e7ec;
  --mist: #f4f7f5;
  --white: #ffffff;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(12, 20, 43, 0.04), 0 10px 30px rgba(12, 20, 43, 0.07);
  --shadow-lg: 0 2px 6px rgba(12, 20, 43, 0.06), 0 24px 60px rgba(12, 20, 43, 0.14);
  --content: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(36px, 4vw, 56px);
  --slant: clamp(28px, 3.5vw, 56px);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.7; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font); color: var(--ink); line-height: 1.2; margin: 0 0 0.55em; letter-spacing: -0.02em; }
h1 { font-size: clamp(36px, 4.6vw, 58px); font-weight: 700; line-height: 1.08; }
h2 { font-size: clamp(28px, 3.2vw, 42px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
h4 { font-size: 18px; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: 0.4em; }
li > ul, li > ol { margin-top: 0.4em; }
strong, b { font-weight: 600; color: var(--ink); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(26, 200, 69, 0.25); }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 8px; }
.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; }

.container { width: 100%; max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--mist { background: var(--mist); }
.section--tight { padding-top: clamp(24px, 3vw, 40px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-deep); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gradient); border-radius: 2px; }
.section-head { max-width: 720px; margin-bottom: clamp(24px, 3vw, 38px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p { font-size: 18px; color: var(--muted); margin: 0; }
.lead { font-size: 18px; line-height: 1.65; }
.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font); font-weight: 600; font-size: 15px; line-height: 1.2;
  padding: 15px 26px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
  text-decoration: none; transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn--green { background: var(--gradient); color: var(--white); box-shadow: 0 8px 20px rgba(17, 152, 59, 0.25); }
.btn--green:hover { color: var(--white); box-shadow: 0 10px 26px rgba(17, 152, 59, 0.35); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-3); color: var(--white); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.35); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); color: var(--white); background: rgba(255, 255, 255, 0.06); }
.btn--outline { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn--outline:hover { border-color: var(--green); color: var(--ink); }
.btn--white { background: var(--white); color: var(--navy); }
.btn--white:hover { color: var(--navy); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--green-deep); text-decoration: none; }
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.2s; }
.link-arrow:hover svg, a:hover > .link-arrow svg { transform: translateX(4px); }

/* ---------- Icon tiles (brandbook "icon scalability": emblem-style rounded tiles) ---------- */
.tile { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--navy); color: var(--green); flex: none; }
.tile svg { width: 26px; height: 26px; }
.tile--soft { background: rgba(26, 200, 69, 0.12); color: var(--green-deep); }
.tile--sm { width: 44px; height: 44px; border-radius: 13px; }
.tile--sm svg { width: 21px; height: 21px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid rgba(12, 20, 43, 0.06); }
.site-header__inner { display: flex; align-items: center; gap: 28px; min-height: 78px; max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter); }
.site-header__logo { flex: none; }
.site-header__logo img { width: 168px; height: auto; }
.site-nav { margin-left: auto; }
.site-nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav__list > li { position: relative; margin: 0; }
.site-nav a, .site-nav__toggle { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font); font-weight: 500; font-size: 15px; color: var(--ink); text-decoration: none; padding: 10px 14px; border-radius: 999px; background: none; border: 0; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.site-nav a:hover, .site-nav__toggle:hover { background: var(--mist); color: var(--ink); }
.site-nav a[aria-current="page"], .site-nav .is-current > .site-nav__toggle { color: var(--green-deep); }
.site-nav__toggle svg { width: 10px; height: 10px; transition: transform 0.2s; }
.site-nav__submenu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 300px; list-style: none; margin: 0; padding: 10px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 0.2s, transform 0.2s, visibility 0.2s; }
.site-nav__submenu li { margin: 0; }
.site-nav__submenu a { display: flex; padding: 11px 14px; border-radius: 12px; font-size: 15px; }
.site-nav__has-sub:hover > .site-nav__submenu, .site-nav__has-sub:focus-within > .site-nav__submenu, .site-nav__has-sub.is-open > .site-nav__submenu { opacity: 1; visibility: visible; transform: none; }
.site-nav__has-sub.is-open > .site-nav__toggle svg { transform: rotate(180deg); }
.site-header__phone { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.site-header__phone .tile { width: 36px; height: 36px; border-radius: 11px; }
.site-header__phone .tile svg { width: 17px; height: 17px; }
.site-header__phone:hover { color: var(--green-deep); }
.site-header__cta { flex: none; padding: 12px 22px; }
.menu-button { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--mist); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.menu-button svg { width: 22px; height: 22px; }
.site-nav__mobile-cta { display: none !important; }
@media (max-width: 1120px) {
  .menu-button { display: inline-flex; order: 5; }
  .site-header__cta { display: none; }
  .site-header__phone { margin-left: auto; }
  .site-header__phone span:not(.tile) { display: none; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; margin: 0; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); max-height: calc(100vh - 78px); overflow-y: auto; display: none; }
  .site-nav.is-open { display: block; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 2px; padding: 12px var(--gutter) 22px; }
  .site-nav a, .site-nav__toggle { width: 100%; justify-content: space-between; padding: 14px 12px; border-radius: 12px; font-size: 16px; }
  .site-nav__submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 12px; display: none; min-width: 0; }
  .site-nav__has-sub.is-open > .site-nav__submenu { display: block; }
  .site-nav__has-sub:hover > .site-nav__submenu { display: none; }
  .site-nav__has-sub.is-open:hover > .site-nav__submenu { display: block; }
  .site-nav__mobile-cta { display: block !important; margin-top: 12px; }
  .site-nav .site-nav__mobile-cta a { justify-content: center; color: var(--white); background: var(--gradient); }
}

/* ---------- Heroes: navy ground, oversized translucent emblem, slanted bottom edge ---------- */
.hero { position: relative; overflow: hidden; color: var(--white); background: radial-gradient(900px 520px at 88% 8%, rgba(26, 200, 69, 0.16), transparent 60%), var(--navy); clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%); }
.hero::before { content: ""; position: absolute; width: min(760px, 70vw); aspect-ratio: 337 / 437; right: -6%; top: 50%; transform: translateY(-50%); background: url("../images/emblem.svg") center / contain no-repeat; opacity: 0.09; pointer-events: none; }
.hero > .container { position: relative; z-index: 1; }
.hero h1, .hero h2 { color: var(--white); }
.hero p { color: rgba(255, 255, 255, 0.78); }
.hero .eyebrow { color: var(--green); }
.hero--page { padding: clamp(44px, 5.5vw, 72px) 0 calc(clamp(40px, 5vw, 64px) + var(--slant)); }
.hero--page h1 { max-width: 820px; }
.hero--page .lead { max-width: 640px; }
.hero--home { padding: clamp(40px, 5vw, 68px) 0 calc(clamp(36px, 4.5vw, 60px) + var(--slant)); }
.hero--home .container { display: grid; grid-template-columns: 1.15fr minmax(320px, 440px); gap: clamp(36px, 6vw, 80px); align-items: center; }
.hero--home h1 { font-size: clamp(38px, 4.8vw, 62px); }
.hero--home .lead { font-size: 19px; max-width: 560px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 24px 0 0; padding: 0; list-style: none; }
.hero__badges li { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14.5px; font-weight: 500; color: rgba(255, 255, 255, 0.86); }
.hero__badges svg { width: 20px; height: 20px; color: var(--green); flex: none; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 14px; font-size: 14px; }
.breadcrumb li { margin: 0; color: rgba(255, 255, 255, 0.6); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: rgba(255, 255, 255, 0.35); }
.breadcrumb a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.breadcrumb a:hover { color: var(--green); }
@media (max-width: 920px) { .hero--home .container { grid-template-columns: 1fr; } .hero::before { width: 120vw; right: -50%; top: 30%; } }

/* Consultation card in the home hero */
.consult-card { background: var(--white); color: var(--text); border-radius: var(--radius-lg); padding: clamp(22px, 2.6vw, 30px); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
.consult-card h2 { font-size: 24px; margin-bottom: 6px; }
.consult-card > p { font-size: 15px; color: var(--muted); margin-bottom: 14px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 11px; }
.form--two { grid-template-columns: 1fr 1fr; gap: 16px 14px; }
.form--two .field--wide, .form--two .form-actions, .form--two .form-status, .form--two .form-note { grid-column: 1 / -1; }
.field { display: block; }
.field__label { display: block; font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.field__label small { font-weight: 400; color: var(--muted); font-size: 13px; }
.field input, .field textarea, .field select { width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; min-height: 46px; transition: border-color 0.2s, box-shadow 0.2s; }
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #6b7385 50%), linear-gradient(135deg, #6b7385 50%, transparent 50%); background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px; background-size: 6px 6px; background-repeat: no-repeat; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: #cfd4dc; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(26, 200, 69, 0.15); }
.form-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 6px; }
.form-status { margin: 2px 0 0; font-weight: 500; font-size: 15px; min-height: 1.5em; }
.form-status.is-error { color: #b3261e; }
.form-status.is-success { color: var(--green-deep); }
.form-note { font-size: 13px; line-height: 1.5; margin: 0; color: var(--muted); }
.form-note a { color: inherit; }
@media (max-width: 640px) { .form--two { grid-template-columns: 1fr; } }

/* ---------- Service cards ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc-grid--two { grid-template-columns: repeat(2, 1fr); }
.svc-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px 28px 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; color: var(--text); transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; overflow: hidden; }
.svc-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--gradient); transform: scaleX(0); transform-origin: left; transition: transform 0.35s; }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--text); }
.svc-card:hover::after { transform: scaleX(1); }
.svc-card h3 { margin: 6px 0 0; font-size: 21px; }
.svc-card p { margin: 0; font-size: 15.5px; line-height: 1.65; flex: 1; }
.svc-card .link-arrow { margin-top: 6px; }
.svc-card:hover .link-arrow svg { transform: translateX(4px); }
@media (max-width: 1000px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .svc-grid, .svc-grid--two { grid-template-columns: 1fr; } }

/* ---------- Split layouts ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.split--start { align-items: start; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; } }

/* Navy facts panel with the brand pattern */
.facts { position: relative; overflow: hidden; background: var(--navy); color: var(--white); border-radius: var(--radius-lg); padding: clamp(32px, 4vw, 48px); isolation: isolate; }
.facts::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../images/pattern.svg") 0 0 / 120px auto repeat; opacity: 0.06; }
.facts::after { content: ""; position: absolute; z-index: -1; width: 380px; height: 380px; right: -140px; bottom: -160px; background: radial-gradient(circle, rgba(26, 200, 69, 0.35), transparent 65%); }
.facts h3 { color: var(--white); font-size: 15px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; margin-bottom: 22px; }
.facts ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.facts li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; margin: 0; }
.facts strong { display: block; color: var(--white); font-size: 19px; font-weight: 600; line-height: 1.3; }
.facts span { color: rgba(255, 255, 255, 0.7); font-size: 15px; line-height: 1.5; }
.facts .tile { background: rgba(26, 200, 69, 0.14); color: var(--green); }

/* ---------- Values grid ---------- */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: clamp(22px, 2.4vw, 30px) clamp(24px, 3vw, 36px); }
.value h3 { font-size: 18px; margin: 14px 0 6px; }
.value p { margin: 0; font-size: 15.5px; line-height: 1.65; }

/* ---------- Testimonials ---------- */
.quotes { position: relative; overflow: hidden; background: var(--navy); color: var(--white); border-radius: var(--radius-lg); padding: clamp(36px, 4.5vw, 56px) clamp(24px, 6vw, 80px); isolation: isolate; text-align: center; }
.quotes::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../images/pattern.svg") 0 0 / 120px auto repeat; opacity: 0.03; }
.quotes::after { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; left: -200px; top: -240px; background: radial-gradient(circle, rgba(26, 200, 69, 0.25), transparent 65%); }
.quotes .eyebrow { color: var(--green); justify-content: center; }
.quotes h2 { color: var(--white); margin-bottom: 18px; }
.quotes__mark { display: block; width: 40px; margin: 0 auto 12px; color: var(--green); }
.quotes blockquote { margin: 0; padding: 0 clamp(36px, 6vw, 70px); }
.quotes blockquote p { color: var(--white); font-size: clamp(18px, 1.8vw, 22px); line-height: 1.6; font-weight: 400; max-width: 860px; margin: 0 auto 22px; }
.quotes blockquote h3 { color: var(--green); font-size: 15px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.quotes cite { font-style: normal; font-size: 15px; color: rgba(255, 255, 255, 0.7); }
.quotes .carousel__btn { background: rgba(255, 255, 255, 0.08); color: var(--white); box-shadow: none; border: 1px solid rgba(255, 255, 255, 0.18); }
.quotes .carousel__btn:hover { background: var(--green); border-color: var(--green); }

/* ---------- Carousel ---------- */
.carousel { position: relative; }
.carousel__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track.is-animating { scroll-snap-type: none; scroll-behavior: auto; }
.carousel__slide { flex: 0 0 100%; scroll-snap-align: start; }
.carousel__btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: var(--white); color: var(--navy); box-shadow: var(--shadow); transition: background-color 0.2s, border-color 0.2s; }
.carousel__btn svg { width: 16px; height: 16px; }
.carousel__btn--prev { left: 0; }
.carousel__btn--next { right: 0; }
.carousel__btn:disabled { opacity: 0.4; cursor: default; }
.no-js .carousel__btn { display: none; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.profile { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; transition: box-shadow 0.25s, transform 0.25s; }
.profile:hover { box-shadow: var(--shadow); }
.section--mist .profile { border-color: transparent; }
.profile__head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.profile__avatar { width: 64px; height: 64px; border-radius: 20px; background: var(--gradient); color: var(--white); display: grid; place-items: center; font-weight: 600; font-size: 20px; flex: none; }
.profile h3 { font-size: 19px; margin: 0 0 2px; }
.profile__role { margin: 0; font-size: 14px; line-height: 1.4; color: var(--muted); }
.profile p { font-size: 15px; line-height: 1.65; }
.profile details summary { cursor: pointer; font-weight: 600; font-size: 14.5px; color: var(--green-deep); list-style: none; display: inline-flex; gap: 6px; }
.profile details summary::-webkit-details-marker { display: none; }
.profile details summary::after { content: "+"; }
.profile details[open] summary::after { content: "–"; }
.profile details[open] summary { margin-bottom: 12px; }
@media (max-width: 1000px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .team-grid { grid-template-columns: 1fr; } }

/* ---------- Call to action: brand green gradient + white emblem ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; background: var(--gradient); border-radius: var(--radius-lg); padding: clamp(32px, 4vw, 52px) clamp(28px, 6vw, 72px); color: var(--white); display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.cta::before { content: ""; position: absolute; z-index: -1; width: 420px; aspect-ratio: 337 / 437; right: 4%; top: 50%; transform: translateY(-50%) rotate(0deg); background: url("../images/emblem-white.svg") center / contain no-repeat; opacity: 0.14; }
.cta h2 { color: var(--white); margin-bottom: 10px; }
.cta p { color: rgba(255, 255, 255, 0.92); font-size: 18px; margin: 0; max-width: 560px; }
.cta .btn-row { margin: 0; }
.cta .btn--ghost { border-color: rgba(255, 255, 255, 0.55); }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } }

/* ---------- Contact block ---------- */
.contact-block { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.contact-list li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: center; margin: 0; }
.contact-list h3 { font-size: 14px; font-weight: 500; color: var(--muted); margin: 0 0 2px; letter-spacing: 0; }
.contact-list p { margin: 0; color: var(--ink); font-weight: 500; line-height: 1.5; }
.contact-list a { color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--green-deep); }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(24px, 3vw, 36px); }
.form-card h2 { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 6px; }
.form-card > p { color: var(--muted); margin-bottom: 16px; }
@media (max-width: 920px) { .contact-block { grid-template-columns: 1fr; } }

/* ---------- Long-form service pages: article + sticky aside ---------- */
.page-nav { position: sticky; top: 78px; z-index: 40; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.page-nav ul { display: flex; gap: 8px; overflow-x: auto; list-style: none; margin: 0; padding: 10px 0; scrollbar-width: none; }
.page-nav li { margin: 0; flex: none; }
.page-nav a { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 14px; transition: all 0.2s; }
.page-nav a:hover { border-color: var(--green); color: var(--green-deep); }
[id] { scroll-margin-top: 150px; }
.article { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(36px, 5vw, 72px); align-items: start; }
.article__aside { position: sticky; top: 160px; }
.prose { max-width: 72ch; }
.prose > section + section { margin-top: clamp(30px, 3.5vw, 44px); padding-top: clamp(30px, 3.5vw, 44px); border-top: 1px solid var(--line); }
.prose h2 { font-size: clamp(26px, 2.6vw, 34px); }
.prose h3 { font-size: 19px; margin-top: 1.25em; }
.prose p, .prose li { line-height: 1.7; }
.prose ol > li::marker { color: var(--green-deep); font-weight: 600; }
.prose ul > li::marker { color: var(--green); }
.callout { background: var(--mist); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); }
.callout--note { border-left: 4px solid var(--green); border-radius: var(--radius-sm); padding: 18px 22px; margin: 1.4em 0; }
.callout--note p { margin: 0; }
.aside-card { position: relative; overflow: hidden; isolation: isolate; background: var(--navy); color: rgba(255, 255, 255, 0.8); border-radius: var(--radius-lg); padding: 26px 24px; }
.aside-card::before { content: ""; position: absolute; z-index: -1; width: 220px; aspect-ratio: 337 / 437; right: -60px; bottom: -60px; background: url("../images/emblem.svg") center / contain no-repeat; opacity: 0.16; }
.aside-card h2 { color: var(--white); font-size: 22px; margin-bottom: 10px; }
.aside-card p { font-size: 15px; line-height: 1.6; }
.aside-card .phone { display: flex; align-items: center; gap: 10px; margin: 18px 0 20px; color: var(--white); font-size: 20px; font-weight: 600; text-decoration: none; }
.aside-card .phone svg { width: 20px; height: 20px; color: var(--green); }
.aside-card .phone:hover { color: var(--green); }
.aside-links { list-style: none; padding: 0; margin: 20px 0 0; }
.aside-links li { margin: 0; border-top: 1px solid var(--line); }
.aside-links a { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.aside-links a:hover { color: var(--green-deep); }
.aside-links svg { width: 16px; height: 16px; color: var(--green-deep); }
@media (max-width: 1000px) { .article { grid-template-columns: 1fr; } .article__aside { position: static; } }

/* ---------- Resources ---------- */
.resource-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.resource { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; color: var(--text); transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s; }
.resource:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--text); }
.resource h3 { margin: 2px 0 6px; }
.resource p { margin: 0 0 12px; font-size: 15.5px; }
@media (max-width: 760px) { .resource-grid { grid-template-columns: 1fr; } }

/* ---------- Checklist ---------- */
.checklist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 34px; margin: 0; color: var(--ink); font-weight: 500; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: rgba(26, 200, 69, 0.14) url("../images/check.svg") center / 12px no-repeat; }
.checklist--plain li { font-weight: 400; color: var(--text); }

/* ---------- Simple text pages ---------- */
.page-text { max-width: 860px; padding-top: clamp(32px, 4vw, 48px); padding-bottom: clamp(40px, 5vw, 64px); overflow-wrap: anywhere; }
.page-text h1 { font-size: clamp(32px, 3.6vw, 44px); }
.page-text h2 { font-size: clamp(22px, 2.2vw, 26px); margin-top: 1.5em; }
.page-text h3 { font-size: 18px; margin-top: 1.5em; }
.page-text table { width: 100%; border-collapse: collapse; margin: 12px 0 26px; font-size: 14.5px; }
.page-text th, .page-text td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.page-text th { font-weight: 600; color: var(--ink); background: var(--mist); }
.page-text .updated { font-size: 14px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; isolation: isolate; margin-top: clamp(16px, 2vw, 28px); background: var(--navy); color: rgba(255, 255, 255, 0.72); padding: clamp(36px, 4vw, 56px) 0 0; clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%); }
.site-footer::before { content: ""; position: absolute; z-index: -1; width: 520px; aspect-ratio: 337 / 437; right: -120px; bottom: -120px; background: url("../images/emblem.svg") center / contain no-repeat; opacity: 0.07; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 0.8fr 1fr 0.9fr; gap: 40px; padding-top: var(--slant); }
.site-footer__brand > img { width: 170px; margin-bottom: 18px; }
.site-footer__brand p { font-size: 15px; line-height: 1.65; max-width: 320px; }
.site-footer h2 { font-size: 14px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); margin-bottom: 18px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-links li { margin: 0; }
.footer-links a { color: rgba(255, 255, 255, 0.78); text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: var(--green); }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer-contact li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; margin: 0; font-size: 15px; line-height: 1.5; }
.footer-contact svg { width: 17px; height: 17px; margin-top: 3px; color: var(--green); }
.footer-contact a { color: var(--white); text-decoration: none; }
.footer-contact a:hover { color: var(--green); }
.footer-accreditations { display: inline-flex; align-items: center; gap: 18px; background: var(--white); border-radius: 16px; padding: 14px 18px; }
.footer-accreditations__ipa { width: 120px; }
.footer-accreditations__r3 { width: 60px; }
.site-footer__legal { margin: 36px 0 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 13.5px; line-height: 1.7; color: rgba(255, 255, 255, 0.55); max-width: none; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px 0 28px; font-size: 14px; color: rgba(255, 255, 255, 0.55); }
.site-footer__bottom nav { display: flex; gap: 22px; }
.site-footer__bottom a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.site-footer__bottom a:hover { color: var(--green); }
@media (max-width: 1000px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Scroll reveal (classes added by js/site.js) ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal--left { transform: translateX(-48px); }
.reveal--right { transform: translateX(48px); }
.reveal.is-revealed { opacity: 1; transform: none; }

/* Slim hero for policy pages; heading-size helpers */
.hero--slim { padding: clamp(32px, 4vw, 48px) 0 calc(clamp(28px, 3.5vw, 40px) + var(--slant)); }
.hero--slim h1 { font-size: clamp(32px, 4vw, 46px); margin: 0; }
.page-text > h2:first-child, .page-text > p:first-child { margin-top: 0; }
.h3 { font-size: 21px; }
.hero .consult-card h2 { color: var(--ink); }
.hero .consult-card > p { color: var(--muted); }

/* Justified reading text (wider screens only, where it doesn't open gaps between words) */
@media (min-width: 640px) {
  .prose p, .page-text p, .split > div > p:not(.lead), .svc-grid--two .svc-card p, .profile details p, .callout p {
    text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto;
  }
}
/* Dropdown: an invisible bridge over the 8px gap keeps the menu open while the pointer moves
   down to it, and a short delay before closing forgives a wobbly mouse. */
.site-nav__submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.site-nav__submenu { transition: opacity 0.2s 0.15s, transform 0.2s 0.15s, visibility 0s 0.35s; }
.site-nav__has-sub:hover > .site-nav__submenu, .site-nav__has-sub:focus-within > .site-nav__submenu, .site-nav__has-sub.is-open > .site-nav__submenu { transition-delay: 0s; }

/* Trust bar: a white card overlapping the hero's slanted bottom edge */
.hero--home { padding-bottom: calc(clamp(36px, 4.5vw, 60px) + var(--slant) + 48px); }
.trust { position: relative; z-index: 2; margin-top: calc(-1 * (var(--slant) + 56px)); }
.trust__bar { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 20px 8px; }
.trust__item { display: flex; align-items: center; gap: 14px; padding: 4px 22px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.trust__item + .trust__item { border-left: 1px solid var(--line); }
.trust__item strong { display: block; font-size: 16px; color: var(--ink); margin-bottom: 2px; }
.trust__item img { height: 38px; width: auto; flex: none; }
.trust__item img.trust__r3 { height: 42px; }
.trust + .section { padding-top: clamp(40px, 5vw, 64px); }
@media (max-width: 1000px) {
  .trust__bar { grid-template-columns: 1fr 1fr; row-gap: 16px; }
  .trust__item:nth-child(3) { border-left: 0; }
}
@media (max-width: 560px) {
  .trust__bar { grid-template-columns: 1fr; padding: 14px 4px; }
  .trust__item + .trust__item { border-left: 0; border-top: 1px solid var(--line); padding-top: 14px; }
}
.trust__item img { height: 32px; }
.trust__item img.trust__r3 { height: 40px; }

/* Vertical rhythm: where two white sections meet, use one lot of padding, not two */
.section:not(.section--mist) + .section:not(.section--mist):not(.trust) { padding-top: 0; }
.trust + .section { padding-top: clamp(36px, 4vw, 56px); }
/* Testimonials box: tighter */
.quotes { padding: clamp(30px, 3.4vw, 44px) clamp(24px, 6vw, 80px); }
.quotes .eyebrow { margin-bottom: 8px; }
.quotes h2 { margin-bottom: 10px; }
.quotes__mark { width: 30px; margin: 0 auto 8px; }
.quotes blockquote p { margin-bottom: 14px; }
.section-head--center { margin-bottom: clamp(20px, 2.4vw, 30px); }
.section-head p { margin-top: -4px; }
.quotes blockquote p { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; max-width: 780px; }

/* Rhythm fixes from the gap audit */
.hero--page { padding-bottom: calc(clamp(28px, 3.5vw, 44px) + var(--slant)); }
.hero--slim { padding-bottom: calc(clamp(20px, 2.5vw, 30px) + var(--slant)); }
.hero + .section, .hero + .page-nav + .section { padding-top: clamp(24px, 3vw, 36px); }
.hero + .page-nav { margin-top: 0; }
.hero + .container.page-text { padding-top: clamp(12px, 1.5vw, 20px); }
.page-text { padding-bottom: clamp(28px, 3.5vw, 44px); }
.site-footer { margin-top: 0; }
.prose > section + section { margin-top: clamp(26px, 3vw, 36px); padding-top: clamp(26px, 3vw, 36px); }
.prose > section.callout + section { border-top: 0; padding-top: 0; }

/* Section labels: a small brand emblem instead of a line */
.eyebrow::before { width: 10px; height: 13px; border-radius: 0; background: url("../images/emblem.svg") center / contain no-repeat; }
.hero .eyebrow::before, .quotes .eyebrow::before { background-image: url("../images/emblem.svg"); }

/* ---------- Plain-English process pages ---------- */
/* Disclaimer note */
.note { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; background: var(--mist); border-radius: var(--radius-sm); padding: 16px 18px; margin: 0 0 clamp(26px, 3vw, 36px); font-size: 14.5px; line-height: 1.6; color: var(--text); }
.note svg { width: 20px; height: 20px; color: var(--green-deep); margin-top: 1px; }
.note p { margin: 0; text-align: left !important; }
.note strong { color: var(--ink); }
/* "In short" summary under each procedure heading */
.in-short { border-left: 4px solid var(--green); background: rgba(26, 200, 69, 0.07); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 12px 16px; margin: 0 0 18px; color: var(--ink); font-weight: 500; text-align: left !important; }
.in-short strong { color: var(--green-deep); font-weight: 600; }
/* "Which option might suit me?" guide */
.chooser { list-style: none; padding: 0; margin: 18px 0 14px; display: grid; gap: 10px; }
.chooser li { margin: 0; }
.chooser a { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.chooser a:hover { border-color: var(--green); box-shadow: var(--shadow); transform: translateX(3px); color: var(--text); }
.chooser span { line-height: 1.45; }
.chooser strong { display: block; color: var(--ink); font-size: 15px; margin-top: 2px; }
.chooser b { font-weight: 600; color: var(--green-deep); font-size: 14px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.chooser b svg { width: 15px; height: 15px; }
.prose .plain-list { padding-left: 1.2em; }

/* ---------- Areas we cover ---------- */
.area-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.area-card { display: grid; grid-template-columns: 44px 1fr 16px; gap: 14px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--muted); font-size: 14px; line-height: 1.4; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.area-card strong { display: block; color: var(--ink); font-size: 17px; }
.area-card > svg { width: 16px; height: 16px; color: var(--green-deep); }
.area-card:hover { border-color: var(--green); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--muted); }
.area-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.area-chips li { margin: 0; }
.area-chips a { display: inline-block; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; transition: border-color 0.2s, color 0.2s; }
.area-chips a:hover, .area-chips a[aria-current="page"] { border-color: var(--green); color: var(--green-deep); }
.proc-links { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px 48px; }
.proc-links h3 { font-size: 16px; color: var(--muted); font-weight: 600; letter-spacing: 0.02em; margin-bottom: 8px; }
.proc-links ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.proc-links li { margin: 0; border-bottom: 1px solid var(--line); }
.proc-links a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 4px; color: var(--ink); text-decoration: none; font-weight: 500; }
.proc-links a svg { width: 16px; height: 16px; color: var(--green-deep); flex: none; transition: transform 0.2s; }
.proc-links a:hover { color: var(--green-deep); }
.proc-links a:hover svg { transform: translateX(4px); }
@media (max-width: 1000px) { .area-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .proc-links { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .area-grid { grid-template-columns: 1fr; } }

/* Footer with an "Areas we cover" column; guide byline */
.site-footer__grid { grid-template-columns: 1.3fr 0.75fr 0.95fr 1fr 1fr; gap: 36px; }
.footer-links--two { grid-template-columns: 1fr 1fr; column-gap: 18px; }
@media (max-width: 1100px) { .site-footer__grid { grid-template-columns: 1fr 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 600px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__grid > :nth-child(n+4) { grid-column: 1 / -1; } }
.hero .byline { margin: 6px 0 0; font-size: 15px; color: rgba(255, 255, 255, 0.7); }

/* Centred section heading: centre what follows it too */
.section-head--center + .area-chips { justify-content: center; }
.section-head--center p { max-width: 980px; margin-left: auto; margin-right: auto; }

/* All section headings are centred (label, title, intro stacked). This replaces the earlier
   two-column heading. The content below each heading keeps its own layout. */
.section-head { display: block; max-width: 1040px; margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head > h2 { margin-bottom: 0.45em; }
.section-head > p { max-width: 980px; margin: 0 auto; padding: 0; }
.section-head + .area-chips { justify-content: center; }

/* Balanced wrapping: when a heading or intro does wrap, its lines come out roughly equal. */
.section-head > h2, .section-head > p, .hero h1 { text-wrap: balance; }
.section-head > h2 { margin-bottom: 0.5em; }

/* Team cards: line up the summaries and the "Read more" links across each row.
   The name block gets room for a two-line job title, and "Read more" sits at the bottom. */
.profile { display: flex; flex-direction: column; }
.profile__head { min-height: 76px; }
.profile details { margin-top: auto; }
.profile > p:last-of-type { margin-bottom: 14px; }
