:root {
    /* Brand palette */
    --color-prime: #154491;          /* brand blue */
    --color-prime-dark: #0e2f66;
    --color-prime-light: #2c5cb0;
    --color-second: #f9a695;         /* brand salmon */
    --color-second-deep: #d4674f;    /* darkened salmon, for small text on light backgrounds only */
    --color-second-pale: #fdeeea;
    --color-bg: #ffffff;
    --color-copy: #000000;
    --color-muted: #000000;   /* body copy is black; de-emphasised UI text sets its own colour */
    --color-light-bg: #f5f7fa;
    --color-border: #e2e6ee;

    --font-body: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-header: 'DM Serif Text', Georgia, 'Times New Roman', serif;

    --circle-size: 140px;
    --header-h: 120px;
    --radius: 3px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-copy);
    background-color: var(--color-bg);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-header);
    color: var(--color-prime);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: var(--color-prime);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-second-deep);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.text-center {
    text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: var(--radius);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-second);
    color: var(--color-prime-dark);
    border: 2px solid var(--color-second);
}

.btn-primary:hover {
    background-color: var(--color-prime);
    border-color: var(--color-prime);
    color: #fff;
}

.btn-navy {
    background-color: var(--color-prime);
    color: #fff;
    border: 2px solid var(--color-prime);
}

.btn-navy:hover {
    background-color: var(--color-second);
    border-color: var(--color-second);
    color: var(--color-prime-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-prime);
    border: 2px solid var(--color-prime);
}

.btn-outline:hover {
    background-color: var(--color-prime);
    color: #fff;
}

.btn-outline-white {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-outline-white:hover {
    background-color: #fff;
    color: var(--color-prime);
}

/* ---------- Header: fixed, and identical on every page at every scroll position ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-prime);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
}

.header a {
    color: #fff;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    gap: 30px;
}

/* Shrink-to-fit so the utility row defines the block's left and right edges;
   the nav below then spans exactly from the name to the consultation button. */
.header-right {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 0 1 auto;
    min-width: 0;
    gap: 12px;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Explicit margins rather than `gap`, so the name sits exactly 30px from the phone icon */
.header-name {
    font-family: var(--font-header);
    font-size: 22px;
    line-height: 1.1;
    color: #fff;
    margin-right: 30px;
    white-space: nowrap;
}
.header .header-name:hover {
    color: var(--color-second);
}
.header-top .btn-sm { margin-left: 16px; }
.header-top .btn-consult { margin-left: 16px; }
.header-top .nav-toggle { margin-left: 10px; }

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}
.header-phone svg {
    color: var(--color-second);
}
.header-phone:hover {
    color: var(--color-second);
}

.btn-sm {
    padding: 7px 14px;
    font-size: 12px;
    border-radius: var(--radius);
    background-color: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 700;
}
.btn-sm:hover {
    background-color: #fff;
    color: var(--color-prime);
}

.header .btn-consult,
.btn-consult {
    background-color: var(--color-second);
    padding: 10px 20px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-prime-dark);
    font-weight: 700;
    font-size: 14px;
}
.header .btn-consult:hover,
.btn-consult:hover {
    background-color: #fff;
    color: var(--color-prime);
}

.logo {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    align-items: flex-start;
}

.logo-img {
    width: 215px;
    height: auto;
    display: block;
}

.logo-title {
    font-family: var(--font-header);
    font-size: 28px;
    font-weight: 400;
    line-height: 1.1;
    color: #fff;
}

.logo-subtitle {
    font-family: var(--font-header);
    font-size: 21px;
    letter-spacing: 0.4px;
    color: var(--color-second);
    font-weight: 400;
    line-height: 1.1;
    margin-top: 4px;
}

.header-location {
    font-size: 15px;
    color: #fff;
    margin-right: auto;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.desktop-nav {
    display: flex;
}

/* space-between makes the first link flush left with the name and the last flush
   right with the button; `gap` acts only as a minimum spacing. */
.desktop-nav > ul {
    display: flex;
    gap: 18px;
    width: 100%;
    justify-content: space-between;
}

.desktop-nav a {
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    letter-spacing: 0.3px;
    padding: 6px 0;
    display: inline-block;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--color-second);
}

.has-dropdown {
    position: relative;
}

.has-dropdown > a::after {
    content: '\25BE';
    font-size: 11px;
    margin-left: 5px;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-width: 300px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    border-radius: var(--radius);
    border-top: 3px solid var(--color-second);
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
}

.dropdown li a {
    display: block;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 400;
    color: var(--color-prime);
}

.dropdown li a:hover {
    background: var(--color-light-bg);
    color: var(--color-second-deep);
}

/* Mobile nav */
.nav-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
    color: #fff;
}

.mobile-nav {
    display: none;
    background: var(--color-prime);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
}
.mobile-nav.open {
    display: block;
}
.mobile-nav a {
    display: block;
    padding: 13px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-weight: 700;
    color: #fff;
}
.mobile-nav .mobile-sub a {
    padding-left: 38px;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
}
.mobile-nav .mobile-group-label {
    display: block;
    padding: 12px 20px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-second);
    background: rgba(0, 0, 0, 0.18);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 760px;
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    margin-bottom: 0;
    display: flex;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* No colour wash over the photo - only a soft darkening toward the centre,
       just enough to keep the headline and buttons legible. */
    background: radial-gradient(ellipse 125% 105% at 50% 50%,
        rgba(0, 0, 0, 0.40) 0%,
        rgba(0, 0, 0, 0.32) 38%,
        rgba(0, 0, 0, 0.15) 72%,
        rgba(0, 0, 0, 0.055) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    padding: calc(var(--header-h) + 60px) 20px calc(var(--circle-size) / 2 + 60px);
}

/* Headline sits 3/4 inch (72px) lower than the top of the content box; the
   subtitle and buttons stay anchored at the bottom by space-between. */
.hero-top {
    margin-top: 72px;
}

.hero-title {
    font-size: 62px;
    line-height: 1.12;
    color: #fff;
    font-weight: 400;
    text-shadow: 0 2px 22px rgba(0, 0, 0, 0.3);
}

.hero-title span {
    display: block;
    font-size: 34px;
    margin-top: 16px;
    color: #fff;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 36px;
    max-width: 780px;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45), 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.btn-hero {
    border-radius: var(--radius);
    padding: 16px 32px;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 0.4px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--color-second);
    color: var(--color-prime-dark);
    border: 2px solid var(--color-second);
    transition: all 0.3s ease;
}

.btn-hero:hover {
    background-color: #fff;
    border-color: #fff;
    color: var(--color-prime);
}

.btn-hero.btn-hero-ghost {
    background: rgba(21, 68, 145, 0.72);
    border-color: rgba(255, 255, 255, 0.85);
    color: #fff;
}
.btn-hero.btn-hero-ghost:hover {
    background: #fff;
    border-color: #fff;
    color: var(--color-prime);
}

/* Practice circles, centered on the banner's bottom edge */
.overlapping-circles {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-top: calc(var(--circle-size) / -2);
    position: relative;
    z-index: 30;
    flex-wrap: wrap;
}

.circle-item {
    text-align: center;
    width: 180px;
}

.circle-icon {
    width: var(--circle-size);
    height: var(--circle-size);
    background: var(--color-prime);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
    border: 4px solid #fff;
}

.circle-icon:hover {
    transform: translateY(-6px);
    background: var(--color-second);
    color: var(--color-prime-dark);
}

.circle-icon svg {
    width: 48px;
    height: 48px;
}

.circle-title {
    font-family: var(--font-header);
    color: var(--color-prime);
    font-size: 19px;
    line-height: 1.25;
}
.circle-item a:hover .circle-title {
    color: var(--color-second-deep);
}

/* ---------- Section furniture ---------- */
.eyebrow {
    display: block;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-second-deep);
    font-weight: 700;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 42px;
    line-height: 1.2;
}

.section-header p {
    font-size: 18px;
    max-width: 780px;
    margin: 14px auto 0;
    color: var(--color-muted);
}

.divider {
    width: 80px;
    height: 4px;
    background-color: var(--color-second);
    margin-bottom: 30px;
}

.divider.center {
    margin: 20px auto 30px;
}

/* ---------- Who We Help cards ---------- */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 36px;
}

.audience-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    color: inherit;
}

.audience-card:hover {
    border-color: var(--color-second);
    box-shadow: 0 12px 26px rgba(21, 68, 145, 0.10);
    transform: translateY(-3px);
    color: inherit;
}

.audience-card h3 {
    font-size: 21px;
    margin-bottom: 10px;
    line-height: 1.25;
}

.audience-card:hover h3 {
    color: var(--color-second-deep);
}

.audience-card p {
    color: var(--color-muted);
    font-size: 15px;
    line-height: 1.65;
    flex-grow: 1;
    margin-bottom: 16px;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1.5px;
    color: var(--color-prime);
}
.audience-card .link-arrow,
.practice-card .link-arrow {
    color: var(--color-second-deep);
}

/* ---------- Practice areas: feature + grid ---------- */
.practice-bento {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    gap: 18px;
    margin-top: 40px;
}

.practice-feature {
    grid-row: span 2;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 38px 34px;
    min-height: 340px;
    background-size: cover;
    background-position: center;
    color: #fff;
}

.practice-feature::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14, 47, 102, 0.08) 0%, rgba(14, 47, 102, 0.20) 32%, rgba(14, 47, 102, 0.78) 58%, rgba(14, 47, 102, 0.95) 78%, rgba(14, 47, 102, 0.97) 100%);
    transition: background 0.35s ease;
}

.practice-feature:hover::before {
    background: linear-gradient(180deg, rgba(14, 47, 102, 0.02) 0%, rgba(14, 47, 102, 0.12) 32%, rgba(14, 47, 102, 0.70) 58%, rgba(14, 47, 102, 0.92) 78%, rgba(14, 47, 102, 0.95) 100%);
}

.practice-feature > * {
    position: relative;
    z-index: 1;
}

.practice-feature .num {
    font-family: var(--font-header);
    font-size: 30px;
    color: var(--color-second);
    line-height: 1;
    margin-bottom: 14px;
}

.practice-feature h3 {
    color: #fff;
    font-size: 30px;
    line-height: 1.2;
    margin-bottom: 14px;
}

.practice-feature p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.practice-feature .link-arrow {
    color: var(--color-second);
}

.practice-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 26px 26px 22px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.practice-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--color-second);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}

.practice-card:hover::before {
    transform: scaleY(1);
}

.practice-card:hover {
    border-color: var(--color-second);
    box-shadow: 0 12px 26px rgba(21, 68, 145, 0.10);
    transform: translateY(-3px);
}

.practice-card .num {
    font-family: var(--font-header);
    font-size: 22px;
    color: var(--color-second-deep);
    line-height: 1;
    margin-bottom: 10px;
}

.practice-card h3 {
    font-size: 21px;
    line-height: 1.25;
    margin-bottom: 8px;
}

.practice-card:hover h3 {
    color: var(--color-second-deep);
}

.practice-card p {
    color: var(--color-muted);
    font-size: 15px;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 14px;
}

/* ---------- Split sections ---------- */
.split-section {
    display: flex;
    flex-wrap: wrap;
}
.split-img, .split-content {
    flex: 1;
    min-width: 50%;
}
.split-img {
    background-size: cover;
    background-position: center;
    min-height: 480px;
}
.split-content {
    padding: 70px 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.split-content p {
    font-size: 17px;
    line-height: 1.75;
    margin-bottom: 16px;
}
.split-content.bg-prime {
    background: var(--color-prime);
    color: #fff;
}
.split-content.bg-prime h2,
.split-content.bg-prime p {
    color: #fff;
}
.split-content.bg-prime strong {
    color: var(--color-second);
}
.split-content.bg-prime .eyebrow {
    color: var(--color-second);
}
.split-content.bg-light {
    background: var(--color-light-bg);
}
.split-content.bg-light p {
    color: #000;
}
.split-content.bg-light strong {
    color: var(--color-prime);
}
.split-content h2 {
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 20px;
}

/* Key points inside a split block */
.key-points {
    display: grid;
    gap: 12px;
    margin: 6px 0 24px;
}
.key-point {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    font-size: 16px;
    line-height: 1.6;
}
.key-point svg {
    flex: 0 0 auto;
    margin-top: 3px;
    color: var(--color-second);
}
.bg-light .key-point svg {
    color: var(--color-second-deep);
}

/* ---------- Page header (inner pages) ---------- */
.page-header {
    background: linear-gradient(110deg, var(--color-prime-dark) 0%, var(--color-prime) 55%, #2f5cae 100%);
    color: #fff;
    padding: calc(var(--header-h) + 46px) 0 58px;
    position: relative;
    overflow: hidden;
}
.page-header::after {
    content: '';
    position: absolute;
    right: -120px;
    top: -120px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 166, 149, 0.45) 0%, rgba(249, 166, 149, 0) 70%);
}
.page-header .container {
    position: relative;
    z-index: 1;
}
.page-header .eyebrow {
    color: var(--color-second);
}
.page-header h1 {
    color: #fff;
    font-size: 46px;
    margin-bottom: 18px;
    line-height: 1.15;
}
.page-header p {
    font-size: 19px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 740px;
}
.breadcrumb {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 22px;
}
.breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
}
.breadcrumb a:hover {
    color: var(--color-second);
}

/* ---------- Inner page layout ---------- */
.page-layout {
    display: flex;
    gap: 60px;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}
.main-content {
    flex: 0 0 65%;
    min-width: 0;
}
.main-content h2 {
    font-size: 34px;
    margin-bottom: 18px;
}
.main-content h3 {
    font-size: 27px;
    margin: 38px 0 14px;
}
.main-content h4 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 18px;
    margin: 24px 0 8px;
    color: var(--color-prime);
}
.main-content p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 18px;
    color: #000;
}
.main-content ul,
.main-content ol {
    margin-left: 22px;
    margin-bottom: 20px;
    font-size: 17px;
    line-height: 1.8;
    color: #000;
}
.main-content ul {
    list-style: disc;
}
.main-content ol {
    list-style: decimal;
}
.main-content li {
    margin-bottom: 8px;
}
.main-content li strong {
    color: var(--color-prime);
}
.main-content .lead {
    font-size: 21px;
    color: var(--color-prime);
    font-family: var(--font-header);
    line-height: 1.6;
}
.main-content .intro-image {
    width: 100%;
    border-radius: var(--radius);
    margin: 0 0 32px;
    display: block;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.09);
}

/* Callout */
.callout {
    background: var(--color-second-pale);
    border-left: 4px solid var(--color-second);
    padding: 24px 28px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 28px 0;
}
.callout p {
    margin-bottom: 0 !important;
    color: var(--color-prime) !important;
}
.callout.navy {
    background: var(--color-prime);
    border-left-color: var(--color-second);
}
.callout.navy p {
    color: #fff !important;
}
.callout.navy strong {
    color: var(--color-second);
}

/* Document chips */
.doc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 20px 0 30px;
}
.doc-chip {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 16px 18px;
    font-weight: 700;
    color: var(--color-prime);
    font-size: 16px;
}
.doc-chip svg {
    flex: 0 0 auto;
    color: var(--color-second-deep);
}

/* Steps */
.steps {
    counter-reset: step;
    list-style: none !important;
    margin-left: 0 !important;
}
.steps li {
    position: relative;
    padding-left: 56px;
    margin-bottom: 18px;
}
.steps li::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 2px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-prime);
    color: #fff;
    font-family: var(--font-header);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fee table */
.fee-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 30px;
    font-size: 17px;
}
.fee-table th,
.fee-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}
.fee-table th {
    background: var(--color-prime);
    color: #fff;
    font-weight: 700;
}
.fee-table td:first-child {
    font-weight: 700;
    color: var(--color-second-deep);
    width: 90px;
}

/* ---------- Sidebar ---------- */
.sidebar {
    flex: 0 0 30%;
}
.sidebar-widget {
    margin-bottom: 46px;
}
.sidebar-widget h3 {
    font-size: 25px;
    margin-bottom: 22px;
    border-bottom: 1px solid #eee;
    padding-bottom: 14px;
    color: var(--color-prime);
}
.related-menu li a {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
    color: var(--color-prime);
    font-weight: 700;
    font-size: 15px;
}
.related-menu li a::before {
    content: '>';
    background: var(--color-prime);
    color: #fff;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    font-size: 13px;
    font-weight: bold;
}
.related-menu li a:hover,
.related-menu li a.active {
    color: var(--color-second-deep);
}
.related-menu li a:hover::before,
.related-menu li a.active::before {
    background: var(--color-second);
    color: var(--color-prime-dark);
}
.sidebar-cta {
    background: var(--color-prime);
    color: #fff;
    padding: 30px;
    border-radius: var(--radius);
}
.sidebar-cta h3 {
    color: #fff;
    border: 0;
    padding: 0;
    margin-bottom: 12px;
    font-size: 24px;
}
.sidebar-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    font-size: 15px;
}

/* ---------- About / profile ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.tag {
    display: inline-block;
    background: var(--color-second-pale);
    color: var(--color-second-deep);
    padding: 5px 15px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius);
    margin-bottom: 15px;
}

.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.feature-item {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: var(--radius);
    border-left: 4px solid var(--color-second);
}

.feature-item h4 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 5px;
}

.feature-item p {
    font-size: 14px;
    margin: 0;
}

/* ---------- Backgrounds / cards ---------- */
.bg-light {
    background-color: var(--color-light-bg);
}
.bg-salmon-pale {
    background-color: var(--color-second-pale);
}
.bg-dark {
    background-color: var(--color-prime);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.06);
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.service-card p {
    color: var(--color-muted);
    margin-bottom: 30px;
}

/* ---------- CTA band ---------- */
.cta-band {
    background: var(--color-second);
    color: var(--color-prime-dark);
    padding: 64px 0;
    text-align: center;
}
.cta-band h2 {
    color: var(--color-prime-dark);
    font-size: 38px;
    margin-bottom: 14px;
}
.cta-band p {
    max-width: 640px;
    margin: 0 auto 28px;
    font-size: 18px;
    color: #4a2a20;
}

/* ---------- Testimonials carousel ---------- */
.reviews .section-header h2 {
    color: #fff;
}
.reviews .eyebrow {
    color: var(--color-second);
}

.carousel {
    position: relative;
    margin-top: 44px;
    padding: 0 58px;
}

.carousel-viewport {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.45s ease;
    align-items: stretch;
}

.carousel-slide {
    flex: 0 0 calc((100% - 48px) / 3);
    min-width: 0;
}

.review-card-c {
    background: var(--color-prime-dark);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    padding: 34px 30px 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.review-card-c .quote-mark {
    /* the base .quote-mark is absolutely positioned; here it sits in the flow
       so the gap below it is real spacing rather than an overlap */
    position: static;
    font-family: var(--font-header);
    font-size: 64px;
    color: #fff;
    opacity: 1;
    line-height: 0.8;
    height: 34px;
}

.review-card-c .stars {
    color: var(--color-second);
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.review-card-c p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    line-height: 1.75;
    font-style: italic;
    flex-grow: 1;
    margin-bottom: 20px;
}

.review-card-c .review-author {
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 16px;
}

.review-card-c .review-role {
    color: var(--color-second);
    font-size: 13px;
    margin-top: 3px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--color-second);
    color: var(--color-second);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 2;
}
.carousel-btn:hover:not(:disabled) {
    background: var(--color-second);
    color: var(--color-prime-dark);
}
.carousel-btn:disabled {
    opacity: 0.3;
    cursor: default;
}
.carousel-prev { left: 0; }
.carousel-next { right: 0; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-top: 30px;
}
.carousel-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.32);
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}
.carousel-dot.active {
    background: var(--color-second);
    transform: scale(1.25);
}

/* Legacy single review box (inner pages) */
.review-box {
    background: var(--color-prime-dark);
    max-width: 800px;
    margin: 50px auto 0;
    padding: 56px;
    border-radius: var(--radius);
    text-align: center;
    position: relative;
}
.quote-mark {
    font-family: var(--font-header);
    font-size: 100px;
    color: #fff;
    position: absolute;
    top: 20px;
    left: 40px;
    line-height: 1;
}
.stars {
    color: var(--color-second);
    font-size: 24px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}
.review-text {
    font-size: 21px;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 26px;
    position: relative;
    z-index: 1;
    color: #fff;
}
.review-author {
    font-weight: 700;
    font-size: 18px;
    color: #fff;
}
.review-role {
    color: var(--color-second);
    font-size: 14px;
    margin-top: 5px;
}

/* ---------- Site-wide contact band ---------- */
.contact-band {
    background: var(--color-light-bg);
    padding: 80px 0;
    border-top: 1px solid var(--color-border);
}

.contact-band-inner {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 0;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(21, 68, 145, 0.08);
}

.contact-band-info {
    background: var(--color-prime);
    color: #fff;
    padding: 46px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.contact-band-info h2 {
    color: #fff;
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 14px;
}
.contact-band-info .eyebrow {
    color: var(--color-second);
}
.contact-band-info > p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.7;
}
.contact-info-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 22px;
}
.contact-info-item svg {
    flex: 0 0 auto;
    margin-top: 3px;
    color: var(--color-second);
}
.contact-info-item h4 {
    font-family: var(--font-body);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--color-second);
    margin-bottom: 3px;
    font-weight: 700;
}
.contact-info-item p,
.contact-info-item a {
    color: #fff;
    font-size: 16px;
    line-height: 1.5;
}
.contact-info-item a:hover {
    color: var(--color-second);
}

.contact-band-form {
    padding: 46px 40px;
}
.contact-band-form h3 {
    font-size: 26px;
    margin-bottom: 8px;
}
.contact-band-form .form-note {
    color: var(--color-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 7px;
    color: var(--color-prime);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: #fff;
    font-size: 16px;
    font-family: var(--font-body);
    color: #000;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    outline: none;
}
.form-control:focus {
    border-color: var(--color-second);
    box-shadow: 0 0 0 3px rgba(249, 166, 149, 0.35);
}
textarea.form-control {
    resize: vertical;
    min-height: 110px;
}
.form-disclaimer {
    font-size: 12px;
    color: #6b6b6b;
    margin-top: 14px;
    line-height: 1.5;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--color-prime-dark);
    color: rgba(255, 255, 255, 0.82);
    padding: 72px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 50px;
    margin-bottom: 52px;
}

.footer .logo-img {
    width: 200px;
    margin-bottom: 6px;
}

.footer .logo-title {
    color: #fff;
}
.footer .logo-subtitle {
    color: #fff;
}

.footer h3 {
    color: #fff;
    font-size: 21px;
    margin-bottom: 20px;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.8);
    margin: 18px 0;
    max-width: 330px;
    line-height: 1.8;
    font-size: 15px;
}

.footer ul li {
    margin-bottom: 11px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
}

.footer ul a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.footer ul a:hover {
    color: var(--color-second);
}

.social-links a {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--color-second);
    color: var(--color-prime-dark);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
}

.footer-legal {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.65);
    margin-left: 20px;
}

.footer-legal a:hover {
    color: #fff;
}

/* Plain label, not a link: inherits the copyright line's type from .footer-bottom,
   set off from the links by a rule */
.footer-ad-label {
    padding-right: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.25);
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .desktop-nav > ul {
        gap: 20px;
    }
    .desktop-nav a {
        font-size: 14px;
    }
    .logo-img {
        width: 190px;
    }
    .logo-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 1080px) {
    .audience-grid {
        grid-template-columns: 1fr 1fr;
    }
    .header-location {
        display: none;
    }
    .practice-bento {
        grid-template-columns: 1fr 1fr;
    }
    .practice-feature {
        grid-row: span 1;
        grid-column: span 2;
        min-height: 280px;
    }
    .carousel-slide {
        flex: 0 0 calc((100% - 24px) / 2);
    }
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .page-layout {
        flex-direction: column;
    }
    .main-content, .sidebar {
        flex: 1 1 auto;
    }
    .header-top .btn-sm,
    .header-top .btn-consult {
        display: none;
    }
    .contact-band-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    :root {
        --header-h: 84px;
    }
    .desktop-nav {
        display: none;
    }
    .nav-toggle {
        display: inline-flex;
    }
    .header-inner {
        padding: 12px 0;
    }
    .header-right {
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        gap: 12px;
    }
    .logo-img {
        width: 160px;
    }
    .header-name {
        font-size: 17px;
        margin-right: 18px;
    }
    .header-phone span {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 620px;
    }
    .hero-top {
        margin-top: 0;
    }
    .hero-title {
        font-size: 38px;
    }
    .hero-title span {
        font-size: 22px;
    }
    .hero-subtitle {
        font-size: 17px;
        margin-top: 26px;
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .btn-hero {
        width: 100%;
        justify-content: center;
    }
    :root {
        --circle-size: 104px;
    }
    .overlapping-circles {
        gap: 14px 10px;
    }
    .circle-item {
        width: 46%;
    }
    .circle-icon svg {
        width: 36px;
        height: 36px;
    }
    .circle-title {
        font-size: 15px;
    }
    .services-grid,
    .audience-grid,
    .doc-grid,
    .features,
    .practice-bento,
    .form-row {
        grid-template-columns: 1fr;
    }
    .practice-feature {
        grid-column: span 1;
    }
    .carousel {
        padding: 0;
    }
    .carousel-slide {
        flex: 0 0 100%;
    }
    .carousel-btn {
        position: static;
        transform: none;
    }
    .carousel-nav-mobile {
        display: flex;
        justify-content: center;
        gap: 14px;
        margin-top: 24px;
    }
    .review-box {
        padding: 36px 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 18px;
        text-align: center;
    }
    .footer-legal {
        justify-content: center;
        row-gap: 10px;
    }
    .footer-legal a {
        margin: 0 10px;
    }
    .footer-ad-label {
        flex-basis: 100%;
        text-align: center;
        padding-right: 0;
        border-right: 0;
    }
    .section {
        padding: 56px 0;
    }
    .section-header h2,
    .split-content h2 {
        font-size: 30px;
    }
    .page-header h1 {
        font-size: 32px;
    }
    .page-header {
        padding: calc(var(--header-h) + 34px) 0 44px;
    }
    /* Stack photo and text on phones; side by side, the text column was ~190px wide */
    .split-img,
    .split-content {
        min-width: 100%;
    }
    .split-content {
        padding: 48px 24px;
    }
    .split-img {
        min-height: 280px;
    }
    .main-content h2 {
        font-size: 28px;
    }
    .main-content h3 {
        font-size: 23px;
    }
    .contact-band {
        padding: 56px 0;
    }
    .contact-band-info,
    .contact-band-form {
        padding: 34px 24px;
    }
    .cta-band h2 {
        font-size: 30px;
    }
}

/* ---------- Fixed-header offsets & late overrides ---------- */

/* Anchor targets must clear the fixed header */
[id] {
    scroll-margin-top: calc(var(--header-h) + 20px);
}

/* Quote marks on light review cards (reviews.html) stay decorative, not solid white */
.review-card .quote-mark {
    color: var(--color-second);
    opacity: 0.45;
}

@media (max-width: 768px) {
    /* Keep the carousel arrows on the card edges rather than dropping them out of flow */
    .carousel {
        padding: 0 6px;
    }
    .carousel-btn {
        position: absolute;
        transform: translateY(-50%);
        width: 38px;
        height: 38px;
        background: rgba(14, 47, 102, 0.85);
    }
    .carousel-prev { left: -4px; }
    .carousel-next { right: -4px; }
}

/* ---------- Who We Help: sticky index + compact sections ---------- */
.wwh-layout {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 70px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 20px 80px;
    align-items: start;
}

.wwh-index {
    position: sticky;
    top: calc(var(--header-h) + 34px);
}

.wwh-index-label {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-second-deep);
    font-weight: 700;
    margin-bottom: 18px;
}

.wwh-index ol {
    list-style: none;
    border-left: 2px solid var(--color-border);
}

.wwh-index a {
    display: block;
    padding: 13px 0 13px 22px;
    margin-left: -2px;
    border-left: 2px solid transparent;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: #6d7787;
    transition: color 0.3s ease, border-color 0.3s ease, padding-left 0.3s ease;
}

.wwh-index a:hover {
    color: var(--color-prime);
}

.wwh-index a.current {
    color: var(--color-prime);
    border-left-color: var(--color-second);
    padding-left: 28px;
}

.wwh-section {
    padding-bottom: 46px;
    margin-bottom: 46px;
    border-bottom: 1px solid var(--color-border);
}
.wwh-section:last-of-type {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 20px;
}
.wwh-section h2 {
    font-size: 33px;
    line-height: 1.2;
    margin-bottom: 14px;
}
.wwh-section > p {
    font-size: 17px;
    line-height: 1.7;
    color: #000;
    margin-bottom: 14px;
}

.wwh-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 26px;
    margin: 20px 0 22px;
}
.wwh-links li {
    padding: 9px 0;
    border-top: 1px solid var(--color-border);
    font-size: 15px;
    line-height: 1.45;
}
.wwh-links li a,
.wwh-links li strong {
    font-weight: 700;
    color: var(--color-prime);
    display: block;
}
.wwh-links li a:hover {
    color: var(--color-second-deep);
}
.wwh-links li span {
    display: block;
    color: #000;
    font-size: 14px;
    margin-top: 2px;
    font-weight: 400;
}

/* Two-column chip list (referral sources, problem lists) */
.chip-columns {
    columns: 2;
    column-gap: 30px;
    margin: 18px 0 8px;
}
.chip-columns li {
    break-inside: avoid;
    position: relative;
    padding: 6px 0 6px 22px;
    font-size: 15px;
    line-height: 1.5;
    color: #000;
}
.chip-columns li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-second);
}

/* ---------- Problems / outcomes band ---------- */
.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 38px;
    /* reach wider than the 1200px container on both sides */
    width: calc(100% + 150px);
    margin-left: -75px;
    margin-right: -75px;
}
.problem-panel {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px 30px;
}
.problem-panel.navy {
    background: var(--color-prime);
    border-color: var(--color-prime);
}
.problem-panel h3 {
    font-size: 23px;
    margin-bottom: 16px;
}
.problem-panel.navy h3 {
    color: #fff;
}
.problem-panel ul {
    columns: 2;
    column-gap: 26px;
}
.problem-panel li {
    break-inside: avoid;
    position: relative;
    padding: 5px 0 5px 20px;
    font-size: 16px;
    line-height: 1.5;
    color: #000;
}
.problem-panel li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-second-deep);
}
.problem-panel.navy li {
    color: rgba(255, 255, 255, 0.94);
}
.problem-panel.navy li::before {
    background: var(--color-second);
}

/* ---------- Capability tiles: 3 over 2, centred ---------- */
.capability-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.capability-tile {
    grid-column: span 2;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 30px 28px 26px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

/* The last two centre themselves under the first three */
.capability-tile:nth-child(4) { grid-column: 2 / span 2; }
.capability-tile:nth-child(5) { grid-column: 4 / span 2; }

.capability-tile::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: var(--color-second);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.capability-tile:hover::before {
    transform: scaleX(1);
}

.capability-tile:hover {
    border-color: var(--color-second);
    box-shadow: 0 14px 30px rgba(21, 68, 145, 0.10);
    transform: translateY(-3px);
}

.capability-tile h3 {
    font-size: 20px;
    line-height: 1.28;
    margin-bottom: 10px;
}
.capability-tile:hover h3 {
    color: var(--color-second-deep);
}

.capability-tile p {
    font-size: 15px;
    line-height: 1.65;
    color: #000;
    flex-grow: 1;
    margin-bottom: 16px;
}

.capability-tile .link-arrow {
    color: var(--color-second-deep);
    font-size: 12px;
}

/* ---------- About: credentials under the portrait ---------- */
.credentials {
    margin-top: 26px;
}
.credentials h3 {
    font-size: 13px;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--color-second-deep);
    margin-bottom: 4px;
}
.credentials dl {
    margin: 0;
}
.credentials .cred-row {
    padding: 15px 0;
    border-bottom: 1px solid var(--color-border);
}
.credentials .cred-row:last-child {
    border-bottom: 0;
}
.credentials dt {
    font-size: 12px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #6d7787;
    font-weight: 700;
    margin-bottom: 4px;
}
.credentials dd {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #000;
}
.credentials dd .cred-sub {
    display: block;
    font-size: 14px;
    color: #3d3d3d;
    margin-top: 2px;
}

@media (max-width: 992px) {
    .wwh-layout {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 44px;
    }
    .wwh-index {
        position: static;
    }
    .wwh-index ol {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 0;
        border-left: 0;
        border-bottom: 2px solid var(--color-border);
    }
    .wwh-index a {
        padding: 8px 14px;
        margin-left: 0;
        border-left: 0;
        border-bottom: 2px solid transparent;
        margin-bottom: -2px;
        font-size: 14px;
    }
    .wwh-index a.current {
        padding-left: 14px;
        border-left: 0;
        border-bottom-color: var(--color-second);
    }
    .capability-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .capability-tile,
    .capability-tile:nth-child(4),
    .capability-tile:nth-child(5) {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .wwh-links,
    .problem-grid {
        grid-template-columns: 1fr;
    }
    .chip-columns,
    .problem-panel ul {
        columns: 1;
    }
    .capability-grid {
        grid-template-columns: 1fr;
    }
    .wwh-section h2 {
        font-size: 26px;
    }
}

@media (max-width: 620px) {
    /* No room for the name beside the logo and the menu button */
    .header-name {
        display: none;
    }
}

@media (max-width: 1400px) {
    /* No room to break out of the container; sit flush instead */
    .problem-grid {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

/* ---------- Legal pages (privacy, terms, disclaimer) ---------- */
.legal-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 64px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px 80px;
    align-items: start;
}
.legal-toc {
    position: sticky;
    top: calc(var(--header-h) + 30px);
    font-size: 14px;
}
.legal-toc .wwh-index-label {
    margin-bottom: 12px;
}
.legal-toc ol {
    list-style: none;
    border-left: 2px solid var(--color-border);
}
.legal-toc a {
    display: block;
    padding: 6px 0 6px 16px;
    margin-left: -2px;
    border-left: 2px solid transparent;
    color: #4a5568;
    line-height: 1.4;
}
.legal-toc a:hover {
    color: var(--color-prime);
    border-left-color: var(--color-second);
}
.legal-content {
    min-width: 0;
    max-width: 760px;
}
.legal-meta {
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}
.legal-content h2 {
    font-size: 26px;
    line-height: 1.25;
    margin: 42px 0 14px;
}
.legal-content h2:first-of-type {
    margin-top: 0;
}
.legal-content h3 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 17px;
    color: var(--color-prime);
    margin: 22px 0 8px;
}
.legal-content p,
.legal-content li {
    font-size: 16.5px;
    line-height: 1.75;
    color: #000;
}
.legal-content p {
    margin-bottom: 14px;
}
.legal-content ul {
    list-style: disc;
    margin: 0 0 16px 22px;
}
.legal-content li {
    margin-bottom: 6px;
}
.legal-content .callout {
    margin: 24px 0;
}
.legal-address {
    font-style: normal;
    line-height: 1.7;
    margin: 6px 0 16px;
}

/* Site-wide compliance notes (testimonials, photographs) */
.compliance-note {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    max-width: 760px;
    margin: 26px auto 0;
}
.compliance-note.on-light {
    color: #4a5568;
}

@media (max-width: 900px) {
    .legal-layout {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 40px;
    }
    .legal-toc {
        position: static;
    }
}

/* ---------- Contact form states ---------- */
/* Honeypot: kept in the form for bots, moved out of sight and reach for people */
.form-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.contact-band-form form {
    position: relative;
}
.form-status {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 15px;
    line-height: 1.5;
}
.form-status.is-success {
    background: #e7f3ec;
    color: #1d5b35;
    border-left: 3px solid #2e8b57;
}
.form-status.is-error {
    background: var(--color-second-pale);
    color: #8a2c17;
    border-left: 3px solid var(--color-second-deep);
}
.contact-band-form button[disabled] {
    opacity: 0.7;
    cursor: wait;
}

/* ---------- Russian pages ---------- */
/* Lato and DM Serif Text have no Cyrillic letters. Latin text keeps those fonts; Cyrillic
   letters fall through to Carlito (a Lato derivative, self-hosted with a size correction so its
   letters match Lato's height) and Playfair Display Bold (loaded from Google Fonts on /ru pages). */
@font-face {
    font-family: 'Carlito Cyrillic';
    src: url('/public/fonts/carlito-cyrillic-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
    size-adjust: 106.1%;
}
@font-face {
    font-family: 'Carlito Cyrillic';
    src: url('/public/fonts/carlito-cyrillic-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
    size-adjust: 106.1%;
}
html[lang="ru"] {
    --font-body: 'Lato', 'Carlito Cyrillic', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-header: 'DM Serif Text', 'Playfair Display', Georgia, 'Times New Roman', serif;
}
