/* ================================
   TYPOGRAPHY OVERRIDES
   ================================ */

/* h1 is Inter site-wide (see theme.json), except the homepage, which
   keeps the original Playfair Display heading font. */
.home h1 {
    font-family: var(--wp--preset--font-family--heading);
}

/* Shared block-heading look, reused across blocks that each used to
   redeclare the same font-size/weight themselves (Accordion, Steps,
   Pricing, Map + Contact, Highlight Box, Testimonials, Get in Touch,
   Team Filter, and now Card Grid/Icon Card Grid/Content + Image/Team
   Grid too). Font-size + font-weight + the green accent bar live in
   base.css (shared with .prose > h2, same look) — nothing to declare
   here, the class just needs to exist for the HTML to reference.
   Each block's own class keeps only its own deltas (alignment,
   margin, colour). */

/* Shared "leaf icon" heading look, reused across Card Grid, Icon
   Card Grid, Content + Image, Team Grid and Team Filter. */
.leaf-heading {
    padding-left: 50px;
    background: url(../images/leaf.png) left center / auto 100% no-repeat;
}

/* The leaf already reads as the heading's decoration — no need for
   the green accent bar underneath too. */
.leaf-heading::after {
    display: none;
}


/* ================================
   SITE HEADER
   ================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--wp--custom--header--background);
    transition: box-shadow 0.4s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    border-bottom-color: transparent;
}

/* Header actions (CTA + search toggle) */
.site-header__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Header CTA menu */
.site-header__cta {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header__cta li {
    margin: 0;
    padding: 0;
}

.site-header__cta a {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--white);
    text-decoration: none;
    font-weight: 600;
    border-radius: 7px;
    transition: opacity 0.4s ease;
}

.site-header__cta a:hover {
    opacity: 0.85;
}

/* Search toggle button */
.search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--wp--custom--header--text);
    border-radius: 50%;
    transition: background 0.4s ease, color 0.4s ease;
    padding: 0;
}

.search-toggle:hover {
    background: var(--wp--custom--header--border);
}

.search-toggle:focus-visible {
    outline: 3px solid var(--wp--preset--color--accent);
    outline-offset: 2px;
}

/* Search overlay */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.search-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

body.search-is-open {
    overflow: hidden;
}

.search-overlay__inner {
    width: 100%;
    max-width: 640px;
    padding: 2rem;
    position: relative;
}

.search-overlay__close {
    position: absolute;
    top: -2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--wp--preset--color--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    opacity: 0.75;
    transition: opacity 0.4s ease;
}

.search-overlay__close:hover {
    opacity: 1;
}

.search-overlay__close:focus-visible {
    outline: 3px solid var(--wp--preset--color--accent);
    outline-offset: 2px;
}

.search-overlay .search-form {
    max-width: 100%;
    width: 100%;
    gap: 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    transition: border-color 0.4s ease;
}

.search-overlay .search-form:focus-within {
    border-color: var(--wp--preset--color--white);
}

.search-overlay .search-form label {
    flex: 1;
    display: flex;
}

.search-overlay .search-field {
    width: 100%;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    padding: 0.75rem 0;
    background: transparent;
    border: none;
    border-radius: 0;
    color: var(--wp--preset--color--white);
    caret-color: var(--wp--preset--color--white);
}

.search-overlay .search-field::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-overlay .search-field:focus {
    border-color: transparent;
    outline: none;
    box-shadow: 0 2px 0 0 rgba(255, 255, 255, 0.6);
}

.search-overlay .search-submit {
    background: transparent;
    border-radius: 0;
    color: var(--wp--preset--color--white);
    padding: 0.75rem 0 0.75rem 1rem;
    opacity: 0.75;
}

.search-overlay .search-submit:hover {
    opacity: 1;
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: var(--wp--style--global--wide-size);
    margin: 0 auto;
    padding: 1.5rem 2rem;
}

.site-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.site-header__logo a {
    display: block;
}

.site-header__logo img {
    height: 85px;
    width: auto;
}

.site-header__site-name {
    font-weight: 700;
    text-decoration: none;
    color: var(--wp--custom--header--text);
}

/* ================================
   CENTERED HEADER LAYOUT
   ================================ */

.site-header__top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--wp--style--global--wide-size);
    margin: 0 auto;
    padding: 1.05rem 2rem;
}

/* Desktop: this wrapper is invisible to layout (display: contents),
   so phone/email/toggle act as plain flex siblings of the logo,
   exactly as before restructuring the markup to allow the mobile
   grouping below. order:-1 on phone restores its original spot to
   the left of the logo (email already follows the logo in source
   order, so needs no override; the toggle button stays hidden via
   its own existing desktop CSS regardless of order). */
.site-header__mobile-actions {
    display: contents;
}

.site-header__contact--phone {
    order: -1;
}

.site-header__contact {
    flex: 1;
    font-size: var(--wp--preset--font-size--small);
}

.site-header__contact-icon {
    /* WTB_icon() sizes itself at 1em, following font-size - pin it
       explicitly rather than inheriting the smaller preset size the
       phone/email text uses. */
    font-size: 16px;
}

.site-header__contact a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    opacity: 1;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.site-header__contact a:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.site-header__contact--email {
    text-align: right;
}

.site-header--centered .site-header__logo {
    flex: 0 0 auto;
    padding: 0 2rem;
    text-align: center;
}


.site-header__bottom-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: var(--wp--style--global--wide-size);
    margin: 0 auto 10px;
    padding: 8px 2rem;
}

.site-nav--centered {
    flex: 1;
    justify-content: center;
}

/* Contact links in mobile off-canvas panel (centered layout only) */
.site-nav__contact {
    display: none;
}

/* ================================
   PAGE HEADER
   ================================ */

.page-header {
    position: relative;
    background: var(--wp--preset--color--primary);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--wp--preset--color--white);
    padding: 3rem 0;
}

.page-header.has-bg-image {
    padding: 6rem 0;
    min-height: 40vh;
    display: flex;
    align-items: center;
}

.page-header__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.page-header__inner {
    position: relative;
    z-index: 1;
}

.page-header .block-inner {
    max-width: var(--wp--style--global--wide-size);
}

.page-header__title {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    font-weight: 700;
    margin-top: 0.75rem;
    text-wrap: balance;
}

.page-header.has-bg-image .page-header__title {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.page-header__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    font-size: var(--wp--preset--font-size--small);
    opacity: 0.85;
}

.page-header__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.page-header__cta {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--wp--preset--color--primary);
    border-radius: 7px;
    color: var(--wp--preset--color--white);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.4s ease;
}

.page-header__cta:hover {
    opacity: 0.85;
    color: var(--wp--preset--color--white);
}

.page-header__cta--secondary {
    background: var(--wp--preset--color--accent);
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: var(--wp--preset--font-size--small);
    opacity: 0.8;
}

.breadcrumbs__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.breadcrumbs__item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.breadcrumbs__link {
    color: var(--wp--preset--color--white);
    text-decoration: none;
    transition: opacity 0.4s ease;
}

.breadcrumbs__link:hover {
    opacity: 0.75;
}

.breadcrumbs__sep {
    opacity: 0.5;
}


/* ================================
   SITE FOOTER
   ================================ */

.site-footer {
    background: var(--wp--preset--color--white);
    color: var(--wp--preset--color--dark);
    border-top: 1px solid var(--wp--preset--color--neutral);
}

.site-footer__inner {
    max-width: var(--wp--style--global--wide-size);
    margin: 0 auto;
    padding: 0 2rem;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1fr;
    align-items: flex-start;
    gap: 3rem;
    padding: var(--wp--preset--spacing--lg) 0 var(--wp--preset--spacing--md);
}

/* Brand column */
.site-footer__brand {
    min-width: 0;
}

.site-footer__site-name {
    display: inline-block;
    font-size: var(--wp--preset--font-size--medium);
    font-weight: 700;
    color: var(--wp--preset--color--dark);
    text-decoration: none;
}

.site-footer__site-name:hover {
    color: var(--wp--preset--color--primary);
}

.site-footer__brand img {
    max-height: 60px;
    width: auto;
}

.site-footer__tagline {
    margin: 1rem 0 0;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--wp--preset--color--dark);
}

.site-footer__contact {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.site-footer__contact li {
    font-size: var(--wp--preset--font-size--small);
    display: flex;
    gap: 0.4rem;
}

.site-footer__contact-label {
    font-weight: 600;
    color: var(--wp--preset--color--dark);
}

.site-footer__contact a {
    color: var(--wp--preset--color--dark);
    text-decoration: none;
    transition: color 0.4s ease;
}

.site-footer__contact a:hover {
    color: var(--wp--preset--color--primary);
}

.site-footer__cta {
    display: inline-block;
    margin-top: 1.5rem;
}

.site-footer__social {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: flex;
    gap: 0.75rem;
}

.site-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--wp--preset--color--neutral);
    color: var(--wp--preset--color--dark);
    text-decoration: none;
    transition: background 0.4s ease, color 0.4s ease;
}

.site-footer__social-link:hover {
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white);
}

/* SRA badge column */
.site-footer__sra {
    display: flex;
    align-items: flex-start;
}

/* The embed's own outer div only sets max-width, not width - as a flex
   item with no in-flow content (its iframe is position:absolute, so it
   doesn't count), it collapses to 0x0 without one, which also zeroes
   out the inner div's padding-bottom:% (percentage of ITS width) that
   the embed uses to give the iframe a height. */
.site-footer__sra > div {
    width: 100%;
}

.sra-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    max-width: 220px;
}

.sra-badge__icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--wp--preset--color--neutral);
    color: var(--wp--preset--color--primary);
    font-size: 1.15rem;
}

.sra-badge__text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.sra-badge__label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--wp--preset--color--muted);
}

.sra-badge__name {
    font-size: var(--wp--preset--font-size--small);
    font-weight: 700;
    color: var(--wp--preset--color--dark);
    line-height: 1.3;
}

.sra-badge__link {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--wp--preset--color--primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sra-badge:hover .sra-badge__link {
    color: var(--wp--preset--color--accent);
}

/* Nav columns */
.site-footer__nav {
    min-width: 0;
}

.site-footer__nav-heading {
    font-size: var(--wp--preset--font-size--small);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--wp--preset--color--dark);
    margin: 0 0 1rem;
}

.site-footer__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.site-footer__menu li {
    margin: 0;
    padding: 0;
}

.site-footer__menu a {
    color: var(--wp--preset--color--muted);
    text-decoration: none;
    font-size: var(--wp--preset--font-size--small);
    transition: color 0.4s ease;
}

.site-footer__menu a:hover,
.site-footer__menu a:focus-visible {
    color: var(--wp--preset--color--primary);
}

/* Bottom bar */
.site-footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--wp--preset--color--neutral);
}

.site-footer__address,
.site-footer__legal,
.site-footer__legal p {
    margin: 0;
    font-size: var(--wp--preset--font-size--small);
    color: var(--wp--preset--color--muted);
    line-height: 1.6;
}


/* ================================
   NAV
   ================================ */

.site-nav__menu {
    display: flex;
    align-items: center;
    justify-content:space-between;
    width:100%;
    list-style: none;
    margin: 0;
    padding: 0 5% 0 0;
}

.site-nav__menu ul {
    margin: 0;
    padding: 0;
}

.site-nav__menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav__menu a {
    text-decoration: none;
    color: var(--wp--custom--header--text);
    font-weight: 500;
    transition: color 0.4s ease;
}

.site-nav__menu a:hover {
    color: var(--wp--preset--color--accent);
}

/* ================================
   DROPDOWN NAVIGATION
   ================================ */

.menu-item-has-children {
    position: relative;
}

/* Invisible toggle button injected by JS — provides a tap target for
   touch devices to expand/collapse the submenu (desktop uses hover, so
   this stays out of the layout entirely above the mobile breakpoint). */
.sub-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    margin-left: 0.1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--wp--custom--header--text);
    padding: 0;
    flex-shrink: 0;
    vertical-align: middle;
}

.sub-menu-toggle:focus-visible {
    outline: 2px solid var(--wp--preset--color--accent);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Sub-menu panel */
.sub-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    min-width: 210px;
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    background: var(--wp--preset--color--white);
    border-top: 2px solid var(--wp--preset--color--accent);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
    z-index: 200;
}

.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children:focus-within > .sub-menu,
.menu-item-has-children.is-open > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Sub-menu links — always dark, never inherits header text colour */
.site-nav__menu .sub-menu a {
    display: block;
    padding: 0.6rem 1.25rem;
    color: var(--wp--preset--color--dark);
    font-size: var(--wp--preset--font-size--small);
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.site-nav__menu .sub-menu a:hover {
    color: var(--wp--preset--color--accent);
    padding-left: 1.5rem;
}

/* Mobile-only panel elements — hidden on desktop where panel is display:contents */
.site-nav__search,
.site-nav__mobile-cta {
    display: none;
}

/* Hamburger */
.site-nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.site-nav__toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--wp--custom--header--text);
    transition: transform 0.55s ease, opacity 0.55s ease;
}

/* Off-canvas panel — transparent on desktop */
.site-nav__panel {
    display: contents;
}

/* Close button — hidden on desktop */
.site-nav__close {
    display: none;
}

/* Overlay — hidden until nav opens */
.site-nav__overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 99;
}

.site-nav__overlay.is-visible {
    display: block;
}

body.nav-is-open {
    overflow: hidden;
}


/* ================================
   BACKGROUND COLOUR TEXT
   ================================ */

.has-primary-background-color { color: var(--wp--preset--color--white); }
.has-dark-background-color    { color: var(--wp--preset--color--white); }
.has-accent-background-color  { color: var(--wp--preset--color--white); }
.has-neutral-background-color { color: var(--wp--preset--color--dark); }
.has-white-background-color   { color: var(--wp--preset--color--dark); }

.has-primary-background-color .btn--secondary,
.has-dark-background-color .btn--secondary,
.has-accent-background-color .btn--secondary {
    border-color: var(--wp--preset--color--white);
    color: var(--wp--preset--color--white);
}

.has-primary-background-color .btn--secondary:hover,
.has-dark-background-color .btn--secondary:hover,
.has-accent-background-color .btn--secondary:hover {
    background: var(--wp--preset--color--white);
    color: var(--wp--preset--color--primary);
}


/* ================================
   HERO BLOCK
   ================================ */

.hero-block {
    position: relative;
    min-height: 52vh;
    display: flex;
    align-items: center;
    padding: 6.5rem 0;
}

/* Real <img>, not a CSS background - only an <img> can carry
   fetchpriority, which the hero image (almost always the page's LCP
   element) needs in order to be fetched at high priority. */
.hero-block__image,
.hero-block__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
    .hero-block__video {
        display: none;
    }
}

.hero-block__overlay {
    position: absolute;
    inset: 0;
}

.hero-block__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.block.alignfull .hero-block__inner{
    max-width: var(--wp--style--global--wide-size) !important;
}

.hero-block__heading {
    font-weight:700; letter-spacing:-2%;
}

.hero-block__heading,
.hero-block__subheading {
    color: var(--wp--preset--color--white);
    font-size:24px; 
}

.hero-block.has-white-background-color .hero-block__heading,
.hero-block.has-white-background-color .hero-block__subheading,
.hero-block.has-neutral-background-color .hero-block__heading,
.hero-block.has-neutral-background-color .hero-block__subheading {
    color: var(--wp--preset--color--dark);
}

.hero-block__heading {
    font-size: clamp(2rem, 5vw, 3.5rem);
    width:60%;
    text-shadow:0 4px 4px rgba(0,0,0,0.25);
}

.hero-block__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.hero-block .btn--secondary {
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white);
    border:none;
}

.hero-block .btn--secondary:hover {
    color: var(--wp--preset--color--white);
}

.hero-block.has-white-background-color .btn--secondary,
.hero-block.has-neutral-background-color .btn--secondary {
    border-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--primary);
}

.hero-block.has-white-background-color .btn--secondary:hover,
.hero-block.has-neutral-background-color .btn--secondary:hover {
    background: var(--wp--preset--color--primary);
    border-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white);
}

/* ================================
   CONTENT IMAGE BLOCK
   ================================ */

.content-image__inner {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.content-image.reverse-layout .content-image__inner {
    flex-direction: row-reverse;
}



.content-image__content {
    width: 48%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.content-image__cta {
    align-self: flex-start;
}


.content-image__image {
    width: 48%;
}

.content-image__image img {
    border-radius:1rem;
    height:auto;
}

/* ================================
   CTA PANEL BLOCK
   ================================ */

.cta-panel {
    padding:0;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.home .cta-panel {
    background:url(../images/leafbg.png) right 100px top / auto 100% no-repeat;
}

.cta-panel__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
}

.cta-panel__leaf {
    width: 35px;
    height: auto;
}

.cta-panel__inner > * + * {
    margin-top: 1.5rem;
}

.cta-panel__overlay {
    position: absolute;
    inset: 0;
}

.cta-panel__inner {
    position: relative;
    z-index: 1;
}

.cta-panel.has-bg-image {
    background-position:69% top;
    background-size:auto 100%;
}

.cta-panel.has-bg-image .btn--secondary {
    border-color: var(--wp--preset--color--white);
}

.cta-panel__subheading {
    color:#737373;
    font-size:18px;
}


/* ================================
   RICH TEXT BLOCK
   ================================ */

.rich-text-block__inner {
    max-width: var(--wp--style--global--content-size);
    padding-left: 0;
    padding-right: 0;
}

/* Box Style variants — wrap the title + (possibly multi-paragraph)
   content together in a rounded box. Plain (no box_style set) is
   the default and renders exactly as before. */
.rich-text-block--card .rich-text-block__inner,
.rich-text-block--card-tint .rich-text-block__inner,
.rich-text-block--highlight .rich-text-block__inner {
    border-radius: 1rem;
    padding: 1.75rem 2rem;
}

.rich-text-block--card .rich-text-block__inner {
    background: var(--wp--preset--color--white);
    border: 1px solid #e2e2e2;
    border-radius: 0.75rem;
    color: var(--wp--preset--color--dark);
}

.rich-text-block--card-tint .rich-text-block__inner {
    background: var(--wp--preset--color--neutral);
    border-radius: 0.75rem;
    color: var(--wp--preset--color--dark);
}

.rich-text-block--highlight .rich-text-block__inner {
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white);
}

.rich-text-block--highlight .rich-text-block__title,
.rich-text-block--highlight .rich-text-block__content {
    color: var(--wp--preset--color--white);
}

.rich-text-block--highlight .rich-text-block__title::after {
    background: var(--wp--preset--color--white);
}

.rich-text-block__title {
    margin-bottom: 1rem;
}

.rich-text-block {
    padding: 0 0 1rem;
}

/* ================================
   HIGHLIGHT BOX BLOCK (temporarily restored)
   ================================ */

.highlight-box-block {
    /* Smaller than the sitewide 4rem section padding (.block) — this is
       a compact callout, not a full page section. */
    padding: 1.5rem 0;
}

.highlight-box-block__inner {
    max-width: var(--wp--style--global--content-size);
    border-radius: 1rem;
    padding: 1.75rem 2rem;
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white);
}

.highlight-box-block__heading {
    display: inline-block;
    color: var(--wp--preset--color--white);
}

.highlight-box-block__content {
    color: var(--wp--preset--color--white);
}

/* ================================
   NOTICE BLOCK
   ================================ */

/* ================================
   REVIEWSOLICITORS WIDGET BLOCK
   ================================ */

/* The widget's actual markup (tabs etc.) is injected at runtime by
   their own external script - we don't control its internal CSS, so
   contain it defensively in case it isn't itself responsive. Scrolls
   rather than clips, so nothing inside becomes unreachable. */
.reviewsolicitors-widget-block__inner {
    max-width: 100%;
    overflow-x: auto;
}

/* With "Respect Cookie Consent" on, the block starts hidden rather than
   showing its (empty, until consent is given) placeholder - otherwise
   the section's own padding sits there as blank space, pushing
   everything below it down. reviewsolicitors-widget.php removes this
   class itself, inside the onload that only ever runs once Complianz
   has actually let the real widget script load. */
.reviewsolicitors-widget-block.is-consent-pending {
    display: none;
}

.notice-block {
    /* Smaller than the sitewide 4rem section padding (.block) — this
       is an urgent inline callout, not a full page section. */
    padding: 1.5rem 0;
}

.notice-block__inner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    max-width: var(--wp--style--global--content-size);
    border-radius: 1rem;
    padding: 1.5rem 1.75rem;
    background: #fdecea;
    border: 1px solid #f4b8b4;
}

.notice-block__icon {
    flex-shrink: 0;
    margin-top: 0.2rem;
    font-size: 1.5rem;
    color: #c0392b;
}

.notice-block__content {
    color: #7a1f1a;
    font-weight: 600;
}


/* ================================
   STAT BLOCK
   ================================ */

.stat-block {
    padding: 4rem 0;
}

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

.stat-block__inner > * + * {
    margin-top: 2rem;
}

.stat-block__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-block__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem;
    background: var(--wp--preset--color--white);
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.stat-block__number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1;
    color: var(--wp--preset--color--primary);
}

.stat-block__label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--wp--preset--color--dark);
}

.stat-block__heading {
    font-size: clamp(1.5rem, 3vw, 2rem);
}


/* ================================
   CARD GRID BLOCK
   ================================ */

.card-grid__inner > * + * {
    margin-top: 2rem;
}

.card-grid__heading {
    text-align: left;
}

.card-grid__footer {
    text-align: center;
    margin-top: 2.5rem;
}

.card-grid__intro {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.card-grid__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Explicit column count (Columns field) — bypasses the auto-fit/
   row-filling logic below entirely. Without this class, the grid
   keeps its default dynamic auto-fit layout. */
.card-grid__grid--columns {
    grid-template-columns: repeat(var(--card-grid-columns, 3), 1fr);
}

@media (min-width: 1024px) {
    /* Fixed 3-up grid (as 6 virtual columns, 2 each) so the last
       row can be filled in deterministically — auto-fit can't do
       this, since it reuses the same column tracks for every row
       and leaves a gap under any row that's short a card. Skipped
       entirely when an explicit column count is set. */
    .card-grid__grid:not(.card-grid__grid--columns) {
        grid-template-columns: repeat(6, 1fr);
    }

    .card-grid__grid:not(.card-grid__grid--columns) > * {
        grid-column: span 2;
    }

    /* Last row has exactly 1 card: stretch it full width. */
    .card-grid__grid:not(.card-grid__grid--columns) > :nth-child(3n+1):last-child {
        grid-column: span 6;
    }

    /* Last row has exactly 2 cards: stretch them to half width each. */
    .card-grid__grid:not(.card-grid__grid--columns) > :nth-last-child(2):nth-child(3n+1),
    .card-grid__grid:not(.card-grid__grid--columns) > :nth-last-child(1):nth-child(3n+2) {
        grid-column: span 3;
    }

    /* Services archive: a lone last service should sit at the same
       width as the rest, not stretch full-width - it reads as one
       service among many, not a final "summary" card. */
    .post-type-archive-service .card-grid__grid:not(.card-grid__grid--columns) > :nth-child(3n+1):last-child {
        grid-column: span 2;
    }
}

/* ================================
   ICON CARD GRID BLOCK
   ================================ */

.icon-card-grid__inner > * + * {
    margin-top: 2rem;
}

.icon-card-grid__heading {
    text-align: left;
}

.icon-card-grid__footer {
    text-align: center;
    margin-top: 2.5rem;
}

.icon-card-grid__intro {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.icon-card-grid__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .icon-card-grid__grid:not(.icon-card-grid__grid--columns) {
        grid-template-columns: repeat(2, 1fr);
    }

    /* If the last row has only one card, stretch it full width. */
    .icon-card-grid__grid:not(.icon-card-grid__grid--columns) > :nth-child(2n+1):last-child {
        grid-column: span 2;
    }
}

@media (min-width: 1024px) {
    /* 6-column base so cards can alternate between 3-up and 2-up rows:
       a repeating rhythm of 3 cards, then 2, then 3, then 2... For a
       count that's a multiple of 5 (e.g. 10) this fills every row
       exactly, with no empty columns. Skipped entirely when an
       explicit column count is set. */
    .icon-card-grid__grid:not(.icon-card-grid__grid--columns) {
        grid-template-columns: repeat(6, 1fr);
    }

    .icon-card-grid__grid:not(.icon-card-grid__grid--columns) > :nth-child(5n+1),
    .icon-card-grid__grid:not(.icon-card-grid__grid--columns) > :nth-child(5n+2),
    .icon-card-grid__grid:not(.icon-card-grid__grid--columns) > :nth-child(5n+3) {
        grid-column: span 2;
    }

    .icon-card-grid__grid:not(.icon-card-grid__grid--columns) > :nth-child(5n+4),
    .icon-card-grid__grid:not(.icon-card-grid__grid--columns) > :nth-child(5n+5) {
        grid-column: span 3;
    }

    /* The rhythm above only fills every row when the count is a
       multiple of 5 — otherwise the trailing 1 or 2 cards are left
       stranded (stretched to 2 or 2+2 of 6 columns instead of the 6
       or 3+3 needed to fill their row). Detect and fix each case: */

    /* Trailing 1 card (a lone row-of-3 or row-of-2 starter): full width. */
    .icon-card-grid__grid:not(.icon-card-grid__grid--columns) > :nth-child(5n+1):last-child,
    .icon-card-grid__grid:not(.icon-card-grid__grid--columns) > :nth-child(5n+4):last-child {
        grid-column: span 6;
    }

    /* Trailing 2 cards (a lone, incomplete row-of-3): half width each. */
    .icon-card-grid__grid:not(.icon-card-grid__grid--columns) > :nth-last-child(2):nth-child(5n+1),
    .icon-card-grid__grid:not(.icon-card-grid__grid--columns) > :nth-last-child(1):nth-child(5n+2) {
        grid-column: span 3;
    }

    /* Exactly 9 cards: plain 3-up rows (3, 3, 3) — overrides the
       repeating rhythm above for this specific count (detected via the
       first/last-child combo, which only matches when there are
       exactly 9 total). */
    .icon-card-grid__grid:not(.icon-card-grid__grid--columns) > :nth-child(1):nth-last-child(9),
    .icon-card-grid__grid:not(.icon-card-grid__grid--columns) > :nth-child(1):nth-last-child(9) ~ * {
        grid-column: span 2;
    }
}

/* Explicit column count (Columns field) — bypasses the rhythm logic
   above entirely. Without this class, the grid keeps its default
   responsive behaviour (1 col mobile, 2 col tablet, alternating
   3-up/2-up rhythm desktop). Stays 1 col below 640px either way. */
@media (min-width: 640px) {
    .icon-card-grid__grid--columns {
        grid-template-columns: repeat(var(--icon-card-grid-columns, 3), 1fr);
    }
}

.icon-card {
    background: var(--wp--preset--color--white);
    color: var(--wp--preset--color--dark);
    border: 1px solid #d5d5d5;
    border-radius: 4px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.icon-card__icon {
    width: 28px;
    height: auto;
}

.icon-card__heading {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.5;
}

.icon-card__heading-link {
    color: inherit;
    text-decoration: none;
}

.icon-card__heading-link:hover {
    color: var(--wp--preset--color--primary);
}

.icon-card__text {
    color: var(--wp--preset--color--muted);
    font-size: 0.9375rem;
    line-height: 1.6;
    flex: 1;
}

.icon-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
    color: var(--wp--preset--color--accent);
    font-weight: 600;
    text-decoration: none;
}

.icon-card__link:hover {
    text-decoration: underline;
}

.icon-card__link-arrow {
    font-size: 0.85em;
    transition: transform 0.2s ease;
}

.icon-card__link:hover .icon-card__link-arrow {
    transform: translateX(3px);
}

/* ================================
   CARD
   ================================ */

.card {
    background: var(--wp--preset--color--white);
    color: var(--wp--preset--color--dark);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card__image a {
    display: block;
}

.card__image img {
    width: 100%;
    height:auto;
    aspect-ratio: 16/12;
    object-fit: cover;
    border-radius:1rem;
}

.card__content {
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.75rem;
}



.card__heading {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.5;
}

.card__text {
    color: var(--wp--preset--color--muted);
    font-size: 0.9375rem;
    line-height: 1.6;
    flex: 1;
}

.card__link {
    align-self: flex-start;
    margin-top: auto;
}



/* ================================
   CAROUSEL BLOCK
   ================================ */

.carousel-block__heading {
    text-align: center;
    margin-bottom: 2rem;
}

.carousel {
    position: relative;
}

.carousel__track {
    display: flex;
    gap: var(--carousel-gap, 1rem);
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    outline: none;
}

.carousel__track::-webkit-scrollbar {
    display: none;
}

.carousel__slide {
    flex: 0 0 calc((100% - (var(--carousel-gap, 1rem) * (var(--slides-per-view, 1) - 1))) / var(--slides-per-view, 1));
    scroll-snap-align: start;
    min-width: 0;
}

.carousel__figure {
    margin: 0;
    position: relative;
}

.carousel__figure img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.carousel__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
    color: var(--wp--preset--color--white);
}

.carousel__caption > * + * {
    margin-top: 0.5rem;
}

.carousel__caption-heading {
    margin: 0;
    font-size: var(--wp--preset--font-size--medium);
    font-weight: 700;
}

.carousel__caption-text {
    margin: 0;
    font-size: var(--wp--preset--font-size--small);
    opacity: 0.9;
}

.carousel__caption-link {
    display: inline-block;
    margin-top: 0.75rem;
}

/* Prev / Next buttons */
.carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--wp--preset--color--white);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: background 0.4s ease, opacity 0.4s ease;
    z-index: 2;
}

.carousel__btn--prev { left: 1rem; }
.carousel__btn--next { right: 1rem; }

.carousel__btn:hover {
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white);
}

.carousel__btn:focus-visible {
    outline: 3px solid var(--wp--preset--color--accent);
    outline-offset: 2px;
}

.carousel__btn:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

/* Dots */
.carousel__dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.carousel-block {
    --carousel-dot-color: var(--wp--preset--color--primary);
    --carousel-dot-active: var(--wp--preset--color--primary);
}

.has-primary-background-color,
.has-dark-background-color,
.has-accent-background-color {
    --carousel-dot-color: rgba(255, 255, 255, 0.5);
    --carousel-dot-active: var(--wp--preset--color--white);
}

.carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--carousel-dot-color);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.4s ease, border-color 0.4s ease;
}

.carousel__dot.is-active,
.carousel__dot[aria-current="true"] {
    background: var(--carousel-dot-active);
    border-color: var(--carousel-dot-active);
}

.carousel__dot:focus-visible {
    outline: 3px solid var(--wp--preset--color--accent);
    outline-offset: 2px;
}



/* ================================
   PAGE HEADER DESCRIPTION
   ================================ */

.page-header__description {
    margin-top: 0.75rem;
    font-size: var(--wp--preset--font-size--base);
    color: var(--wp--preset--color--white);
    opacity: 1;
    max-width: 600px;
}


/* ================================
   SINGLE POST
   ================================ */

.single-post__thumbnail {
    margin-bottom: 2.5rem;
    border-radius: 4px;
    overflow: hidden;
}

.single-post__thumbnail img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.single-post__content {
    margin-top: 2rem;
}

.single-post__nav {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--wp--preset--color--neutral);
}

.single-post__nav .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.single-post__nav .nav-previous,
.single-post__nav .nav-next {
    flex: 1;
}

.single-post__nav .nav-next {
    text-align: right;
}

.single-post__nav a {
    font-size: var(--wp--preset--font-size--small);
    font-weight: 600;
    color: var(--wp--preset--color--primary);
    text-decoration: none;
    transition: color 0.4s ease;
}

.single-post__nav a:hover {
    color: var(--wp--preset--color--accent);
}


/* ================================
   CARD HOVER
   ================================ */

.card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card:hover {
    transform: translateY(-3px);
}

.card__heading-link {
    color: inherit;
    text-decoration: none;
}

.card__heading-link:hover {
    color: var(--wp--preset--color--primary);
}


/* ================================
   CTA PANEL BUTTONS
   ================================ */

.cta-panel__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}


/* ================================
   PAGINATION
   ================================ */

.archive-pagination,
.search-pagination {
    margin-top: 3rem;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border: 2px solid var(--wp--preset--color--neutral);
    color: var(--wp--preset--color--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--wp--preset--font-size--small);
    transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease;
    border-radius: 2px;
}

.page-numbers:hover {
    border-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--primary);
}

.page-numbers.current {
    background: var(--wp--preset--color--primary);
    border-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white);
}

.page-numbers.dots {
    border-color: transparent;
}


/* ================================
   SEARCH FORM
   ================================ */

.search-form {
    display: flex;
    gap: 0;
    max-width: 480px;
}

.search-form label {
    flex: 1;
    display: flex;
}

.search-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--wp--preset--color--neutral);
    border-right: none;
    font-size: var(--wp--preset--font-size--base);
    font-family: inherit;
    border-radius: 2px 0 0 2px;
    outline: none;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.search-field:focus {
    border-color: var(--wp--preset--color--primary);
    box-shadow: 0 0 0 3px rgba(1, 62, 127, 0.25);
}

.search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white);
    border: none;
    cursor: pointer;
    border-radius: 0 2px 2px 0;
    transition: opacity 0.4s ease;
    flex-shrink: 0;
}

.search-submit:hover {
    opacity: 0.85;
}


/* ================================
   PAGE CONTENT (core blocks on pages)
   ================================ */

/*
 * Three-column grid: two fluid gutters + a capped content column.
 * All direct children land in the content column by default.
 * .block (ACF sections) override to span the full grid width.
 * Works even if WordPress wraps blocks in intermediate container divs.
 */
.page-content {
    display: grid;
    grid-template-columns:
        1fr
        min(var(--wp--style--global--content-size, 780px), calc(100% - 4rem))
        1fr;
}

/* Default page template has no vertical gap after the page-header before its
   content starts, or after its content before the footer, when that content
   is plain prose (no ACF .block already carrying its own 4rem padding).
   Scoped to only apply when a page-header actually precedes it, so the
   homepage (which hides its page-header and leads with a Hero block
   instead) keeps its existing spacing untouched. */
.page-header + .page-content > *:not(.block):first-child {
    margin-top: 3rem;
}

.page-header + .page-content > *:not(.block):last-child {
    margin-bottom: 4rem;
}

.page-content > * {
    grid-column: 2;
}

.page-content > .block {
    grid-column: 1 / -1;
}

.page-content > .alignfull {
    grid-column: 1 / -1;
    padding-inline: max(2rem, calc((100% - var(--wp--style--global--wide-size, 1200px)) / 2));
    box-sizing: border-box;
}

.page-content > .alignwide {
    grid-column: 1 / -1;
    max-width:var(--wp--style--global--wide-size, 1200px);
    margin-inline: auto;
}

/* Most section blocks span edge-to-edge regardless of alignment.
   Alignment controls the inner .block-inner width, not the outer section.
   Exception: .hero-block — alignment controls the section itself (see below). */
.page-content > .block.alignwide,
.page-content > .block.alignfull {
    max-width: none;
    margin-inline: 0;
    padding-inline: 0;
}

.block.alignwide .block-inner {
    max-width: var(--wp--style--global--wide-size, 1200px);
}

.block.alignfull .block-inner {
    max-width: none;
}

/* Hero: alignment constrains the section itself, not just the inner content.
   Wide = contained at wide-size | Full = edge-to-edge (default) */
.page-content > .hero-block.alignwide {
    width: 100%;
    max-width: var(--wp--style--global--wide-size, 1200px);
    margin-inline: auto;
    border-radius:12px;
    overflow:hidden;
}

.hero-block.alignwide .block-inner {
    max-width: none;
}

@media (max-width: 1024px) {
    .page-content > .hero-block.alignwide {
        border-radius: 0;
    }
}

/* Spacing between consecutive non-block elements */
.page-content > *:not(.block) + *:not(.block) {
    margin-top: 1.5rem;
}

/* Lettered list - add "list-lettered" as an Additional CSS Class on a core
   List block (works on both the ordered and unordered variant) to render
   (a), (b), (c)... instead of bullets or numbers. Used for legal documents
   that number their sub-clauses this way. */
.list-lettered {
    list-style: none;
    counter-reset: list-lettered;
    padding-left: 0;
}

.list-lettered > li {
    counter-increment: list-lettered;
    padding-left: 2em;
    position: relative;
}

.list-lettered > li::before {
    content: "(" counter(list-lettered, lower-alpha) ")";
    position: absolute;
    left: 0;
}


/* ================================
   CONTACT BLOCK
   ================================ */

.contact-block__header {
    margin-bottom: 2.5rem;
}

.contact-block__heading {
    font-size: var(--wp--preset--font-size--large);
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.contact-block__subheading {
    font-size: var(--wp--preset--font-size--medium);
    opacity: 0.8;
    margin: 0;
}

.contact-block__grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    align-items: start;
}

.contact-block__details {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.contact-block__item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.contact-block__label {
    font-size: var(--wp--preset--font-size--small);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.6;
}

.contact-block__value {
    font-size: var(--wp--preset--font-size--medium);
    font-weight: 600;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.4s ease;
}

.contact-block__value:hover {
    opacity: 0.75;
}

.contact-block__address {
    font-style: normal;
    line-height: 1.6;
}

.contact-block__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-block__social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.08);
    color: inherit;
    text-decoration: none;
    transition: background 0.4s ease, transform 0.4s ease;
}

.contact-block__social:hover {
    background: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--white);
    transform: translateY(-2px);
}

.contact-block__social svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: currentColor;
}

/* Background colour variants — driven by Gutenberg native colour picker */
.contact-block.has-primary-background-color,
.contact-block.has-dark-background-color,
.contact-block.has-accent-background-color {
    color: var(--wp--preset--color--white);
}

.contact-block.has-primary-background-color .contact-block__social,
.contact-block.has-dark-background-color    .contact-block__social,
.contact-block.has-accent-background-color  .contact-block__social {
    background: rgba(255, 255, 255, 0.15);
}

/* contact-block mobile moved to consolidated @media block at end of file */


/* ================================
   Columns LAYOUT PATTERN
   ================================ */

   .wp-block-column .block,
   .wp-block-column .block-inner {
        padding:0;
    }

    .wp-block-column .block.has-background {
        padding:2rem;
    }


.sidebar-layout.wp-block-columns,
.two-columns-layout.wp-block-columns {
    width: 100%;
    max-width: var(--wp--style--global--wide-size, 1200px);
    margin-inline: auto;
    padding: 2rem;
    gap: 3rem;
    align-items: flex-start;
}

.sidebar-layout.wp-block-columns.alignfull,
.two-columns-layout.wp-block-columns.alignfull {
    max-width: 100%;
}

.sidebar-column {
    position: sticky;
    top: calc(var(--header-height, 80px) + 2rem);
}

.sidebar-column__heading {
    font-size: var(--wp--preset--font-size--medium);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--wp--preset--color--accent);
}

/* Editor: disable sticky so columns stack normally in the canvas */
.editor-styles-wrapper .sidebar-column {
    position: static;
}


/* ================================
   404 PAGE
   ================================ */

.error-404 {
    text-align: center;
    padding: 4rem 0;
}

.error-404__heading {
    font-size: clamp(5rem, 15vw, 10rem);
    font-weight: 700;
    line-height: 1;
    color: var(--wp--preset--color--primary);
    opacity: 0.15;
}

.error-404__message {
    font-size: var(--wp--preset--font-size--medium);
    color: var(--wp--preset--color--muted);
    margin: 1rem 0 2rem;
}


/* ================================
   ACCORDION BLOCK
   ================================ */

/* Less than the sitewide 4rem section padding (.block) — an FAQ list
   is denser than most sections, so the extra space just looks empty. */
.accordion-block {
    padding: 2.5rem 0;
}

.accordion-block__heading {
    margin-bottom: 2rem;
}

/* Inline (unwrapped) usage, e.g. FAQs inside .service-layout__content —
   the wrapped block gets its top spacing from .block's own padding, this
   doesn't, so it needs its own. */
.service-layout__content .accordion-block__heading {
    margin-top: 1.5rem;
}

/* Card Grid / Icon Card Grid dropped into the post content on service
   pages — their .block-inner side padding offsets them from the rest
   of the column (prose, rich text, FAQs), so drop it here. */
.service-layout__content .card-grid__inner,
.service-layout__content .icon-card-grid__inner {
    padding-left: 0;
    padding-right: 0;
}

/* Card Grid has no border by default (unlike Icon Card Grid) — give
   it one here so cards read clearly against the page background. */
.service-layout__content .card,
.single-post__content .card {
    border: 1px solid #d5d5d5;
}

/* Steps used inline in content pages — match Rich Text's card-style
   padding/radius and its left-aligned heading, instead of Steps'
   usual standalone-section centred header. */
.service-layout__content .steps-block,
.single-post__content .steps-block,
.content-layout__content .steps-block {
    border-radius: 0.75rem;
    overflow: hidden;
}

.service-layout__content .steps-block .block-inner,
.single-post__content .steps-block .block-inner,
.content-layout__content .steps-block .block-inner {
    padding: 1.75rem 2rem;
}

.service-layout__content .steps-block__header,
.single-post__content .steps-block__header,
.content-layout__content .steps-block__header {
    text-align: left;
}

/* No leaf icon on Card Grid headings used inline in service page
   content. */
.service-layout__content .card-grid__heading {
    background: none;
    padding-left: 0;
}

/* Consistent block spacing in a main column next to a sidebar
   (service pages, single posts, Content Page template). Each ACF
   block normally gets its own top/bottom padding from .block (or a
   per-block override), which stacks unevenly here — so zero that out
   on the section itself and use a single uniform bottom margin
   instead. */
.service-layout__content .block,
.single-post__content .block,
.content-layout__content .block {
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 1.75rem;
}

.service-layout__content .block:last-child,
.single-post__content .block:last-child,
.content-layout__content .block:last-child {
    margin-bottom: 0;
}

/* Card has no horizontal padding on its content by default — fine
   elsewhere, but with the border above it needs it so text isn't
   flush against the edge. */
.service-layout__content .card__content,
.single-post__content .card__content {
    padding: 1.5rem;
}

.service-layout__content .card-grid__grid,
.single-post__content .card-grid__grid,
.service-layout__content .icon-card-grid__grid,
.single-post__content .icon-card-grid__grid {
    gap: 0.5rem;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.accordion__item {
    border: 1px solid #d5d5d5;
    border-radius: 4px;
    overflow: hidden;
}

.accordion__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: var(--wp--preset--font-size--base);
    list-style: none;
    user-select: none;
    background: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--white);
    transition: filter 0.3s ease;
}

/* Remove default marker in Firefox */
.accordion__trigger::-webkit-details-marker { display: none; }

.accordion__trigger:hover {
    filter: brightness(0.93);
}

.accordion__question {
    flex: 1;
}

.accordion__icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    position: relative;
}

.accordion__icon::before,
.accordion__icon::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0.625rem;
    height: 2px;
    background: currentColor;
    transform-origin: center;
    transition: transform 0.5s ease;
}

/* Horizontal bar */
.accordion__icon::before {
    transform: translate(-50%, -50%) rotate(0deg);
}

/* Vertical bar — forms + when closed */
.accordion__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

/* Rotate to × when open */
.accordion__item[open] .accordion__icon::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.accordion__item[open] .accordion__icon::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Body reveal using CSS grid row trick */
.accordion__body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.55s ease;
}

.accordion__item[open] .accordion__body {
    grid-template-rows: 1fr;
}

.accordion__body-inner {
    overflow: hidden;
    padding: 0 1.5rem;
    transition: padding 0.55s ease;
}

.accordion__item[open] .accordion__body-inner {
    padding: 1rem 1.5rem 1.5rem;
}

/* Coloured background variants */
.has-primary-background-color .accordion__item,
.has-dark-background-color .accordion__item,
.has-accent-background-color .accordion__item {
    border-color: rgba(255, 255, 255, 0.15);
}

.has-primary-background-color .accordion__trigger,
.has-dark-background-color .accordion__trigger,
.has-accent-background-color .accordion__trigger {
    background: rgba(255, 255, 255, 0.05);
    color: var(--wp--preset--color--white);
}

.has-primary-background-color .accordion__trigger:hover,
.has-dark-background-color .accordion__trigger:hover,
.has-accent-background-color .accordion__trigger:hover {
    background: rgba(255, 255, 255, 0.1);
}


/* ================================
   COMPLIANZ LEGAL DOCUMENT
   #cmplz-document is Complianz's own wrapper for the Cookie Policy /
   Privacy Policy pages it generates - present wherever this theme is
   paired with the plugin, not specific to this site's content. Our
   stylesheet loads after Complianz's own document.min.css, so matching
   its selectors exactly is enough to win the cascade without !important.
   ================================ */

/* Top-level numbered sections ("1. Introduction" etc.) - direct
   children only, so this doesn't reach the smaller headings nested
   inside the cookie table accordions below. */
#cmplz-document > h2,
#cmplz-document > h3 {
    color: var(--wp--preset--color--primary);
    border-bottom: 1px solid var(--wp--preset--color--neutral);
}

/* Cookie table accordions - match the site's own Accordion block
   (accent trigger, bordered body) instead of Complianz's default grey
   box, so the two read as one consistent component rather than two. */
#cmplz-document .cmplz-dropdown {
    background: none;
    border: 1px solid var(--wp--preset--color--neutral);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

#cmplz-document .cmplz-dropdown summary {
    background: var(--wp--preset--color--accent);
    margin: 0;
    padding: 1.25rem 1.5rem;
    transition: filter 0.3s ease;
}

#cmplz-document .cmplz-dropdown summary:hover {
    filter: brightness(0.93);
}

#cmplz-document .cmplz-dropdown summary h3 {
    color: var(--wp--preset--color--white);
    font-size: var(--wp--preset--font-size--base);
}

#cmplz-document .cmplz-dropdown summary p {
    color: var(--wp--preset--color--white);
    opacity: 0.85;
}

/* Recolour Complianz's own chevron icon to match the white trigger
   text, rather than replacing its already-working rotate-on-open
   behaviour with a new one. */
#cmplz-document .cmplz-dropdown summary div::after {
    filter: brightness(0) invert(1);
}


/* ================================
   LOGOS BLOCK
   ================================ */

.logos-block__heading {
    text-align: center;
    font-size: var(--wp--preset--font-size--small);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--wp--preset--color--muted);
    margin-bottom: 2rem;
}

.has-primary-background-color .logos-block__heading,
.has-dark-background-color .logos-block__heading,
.has-accent-background-color .logos-block__heading {
    color: rgba(255, 255, 255, 0.7);
}

.logos-block__grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem 3rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.logos-block__item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logos-block__link {
    display: flex;
    align-items: center;
}

.logos-block__img {
    display: block;
    max-height: 3.5rem;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}


/* ================================
   TESTIMONIALS BLOCK
   ================================ */

.testimonials-block__heading {
    text-align: center;
    margin-bottom: 2.5rem;
}

.testimonials-block__subheading {
    text-align: center;
    opacity: 0.75;
    margin-top: -1.5rem;
    margin-bottom: 2.5rem;
}

.testimonials-block__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.testimonial {
    display: flex;
    flex-direction: column;
    border:1px solid #dadada;
    gap: 1.25rem;
    padding: 1.75rem;
    background: var(--wp--preset--color--white);
    border-radius: 1rem;
    color: var(--wp--preset--color--dark);
    box-shadow:0 2px 8px rgba(0,0,0,0.1);

}

.testimonial__stars {
    display: flex;
    gap: 0.2rem;
}

.testimonial__star {
    color: var(--wp--preset--color--neutral);
    font-size: 1.1rem;
}

.testimonial__star.is-filled {
    color: #f5a623;
}

.testimonial__quote {
    flex: 1;
    margin: 0;
    font-size: var(--wp--preset--font-size--base);
    line-height: 1.7;
    font-style: italic;
}

.testimonial__author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.testimonial__meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.testimonial__name {
    font-weight: 600;
    font-style: normal;
    font-size: var(--wp--preset--font-size--small);
}

.testimonial__role {
    font-size: var(--wp--preset--font-size--small);
    color: var(--wp--preset--color--muted);
}

.has-primary-background-color .testimonial__role,
.has-dark-background-color .testimonial__role,
.has-accent-background-color .testimonial__role {
    color: rgba(255, 255, 255, 0.7);
}


/* ================================
   FEATURE GRID BLOCK
   ================================ */

.feature-grid-block__header {
    text-align: center;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-grid-block__heading {
    text-align: left;
}

.feature-grid-block__subheading {
    font-size: var(--wp--preset--font-size--base);
    color: var(--wp--preset--color--muted);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.has-primary-background-color .feature-grid-block__subheading,
.has-dark-background-color .feature-grid-block__subheading,
.has-accent-background-color .feature-grid-block__subheading {
    color: rgba(255, 255, 255, 0.75);
}

.feature-grid {
    display: grid;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.feature-grid--cols-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.feature-grid--cols-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.feature-grid--cols-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }

.feature {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature__icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.feature__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature__heading {
    font-size: var(--wp--preset--font-size--medium);
    font-weight: 600;
}

.feature__description {
    color: var(--wp--preset--color--muted);
    line-height: 1.6;
}

.has-primary-background-color .feature__description,
.has-dark-background-color .feature__description,
.has-accent-background-color .feature__description {
    color: rgba(255, 255, 255, 0.75);
}


/* ================================
   TEAM GRID BLOCK
   ================================ */

.team-grid-block__heading {
    margin-bottom: 0.5rem;
}

.team-grid-block {
    position: relative;
    overflow: hidden;
}

.team-grid-block__offset-bg {
    position:absolute;
    top:220px;
    width:100%;
    height:100%;
    background:var(--wp--preset--color--accent) !important;
}

.team-grid-block__subheading,
.team-filter-block__subheading {
    text-align: center;
    position:Relative;
    color: var(--wp--preset--color--muted);
    font-size: var(--wp--preset--font-size--medium);
    margin-bottom: 2.5rem;
}

.team-grid-block__subheading--below {
    text-align: left;
    color: var(--wp--preset--color--white);
    margin-top: 2.5rem;
    margin-bottom: 0;
}

.team-grid-block__subheading.prose ul,
.team-grid-block__subheading.prose ol {
    display: inline-block;
    text-align: left;
}

.team-grid-block__view-all {
    position: relative;
    text-align: center;
    margin-top: 2.5rem;
}

.team-grid-block__view-all .btn--primary:hover {
    background: var(--wp--preset--color--primary);
    opacity: 1;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
    gap: 2rem;
    position:relative;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Team Grid block: explicit column count (via its "Columns" field,
   default 3) instead of the fluid auto-fill above — scoped to this
   block only, so the People archive / Team Filter grid (same .team-grid
   class) keeps its fluid behaviour. */
.team-grid-block .team-grid {
    grid-template-columns: repeat(var(--team-grid-columns, 3), 1fr);
}

@media (max-width: 768px) {
    .team-grid-block .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .team-grid-block .team-grid {
        grid-template-columns: 1fr;
    }
}

.team-member__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.team-member__photo {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.team-member__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.65s ease;
}

.team-member__img--placeholder {
    background-color: #e0e0e0;
}

.team-member:hover .team-member__img {
    transform: scale(1.04);
}

.team-member__info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.team-member__name {
    font-size: var(--wp--preset--font-size--medium);
    font-weight: 600;
    font-family:var(--wp--preset--font-family--primary);
}

.team-member__role {
    font-size: var(--wp--preset--font-size--small);
    color: var(--wp--preset--color--muted);
}

.team-member__bio {
    font-size: var(--wp--preset--font-size--small);
    line-height: 1.6;
    margin-top: 0.25rem;
}

.has-primary-background-color .team-member__role,
.has-dark-background-color .team-member__role,
.has-accent-background-color .team-member__role {
    color: rgba(255, 255, 255, 0.7);
}

.team-grid-block .team-member__name,
.team-grid-block .team-member__role {
    color: var(--wp--preset--color--white);
}


/* ================================
   TEAM FILTER BLOCK
   ================================ */

.team-filter-block__heading {
    margin-bottom: 2rem;
    text-align: center;
}

.team-filter__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.team-filter__tab {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--wp--preset--color--neutral);
    border-radius: 2rem;
    background: transparent;
    color: var(--wp--preset--color--dark);
    font-size: var(--wp--preset--font-size--small);
    font-weight: 500;
    cursor: pointer;
    transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}

.team-filter__tab:hover {
    border-color: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--accent);
}

.team-filter__tab.is-active {
    background: var(--wp--preset--color--accent);
    border-color: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--white);
}

.team-filter__tab:focus-visible {
    outline: 3px solid var(--wp--preset--color--accent);
    outline-offset: 2px;
}


/* ================================
   SINGLE PERSON
   ================================ */

.person-profile {
    padding-top: 3rem;
    padding-bottom: 4rem;
}

.person-profile-block {
    padding-top: 2rem;
}

.person-profile .breadcrumbs {
    color: var(--wp--preset--color--muted);
    margin-bottom: 2rem;
}

.person-profile .breadcrumbs__link {
    color: var(--wp--preset--color--dark);
}

.person-profile__grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 3.5rem;
    align-items: start;
}

.person-profile__photo {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 0.75rem;
    margin-bottom: 1.75rem;
}

.person-profile__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.person-profile__review-btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 1rem;
    background: var(--wp--preset--color--accent);
}

.person-profile__card {
    background: var(--wp--preset--color--white);
    border: 1px solid #e2e2e2;
    border-radius: 0.75rem;
    padding: 0 1.5rem;
}

.person-profile__block {
    padding: 1.5rem 0;
    border-top: 1px solid #e2e2e2;
}

.person-profile__block:first-child {
    border-top: none;
}

.person-profile__label {
    font-size: var(--wp--preset--font-size--small);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--wp--preset--color--primary);
    margin-bottom: 0.6rem;
}

.person-profile__specialism {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.person-profile__specialism li {
    color: var(--wp--preset--color--dark);
    font-size: var(--wp--preset--font-size--small);
}

.person-profile__education {
    font-size: var(--wp--preset--font-size--small);
    line-height: 1.6;
    color: var(--wp--preset--color--dark);
}

.person-profile__education p {
    margin: 0 0 0.5rem;
}

.person-profile__accreditations-text {
    font-size: var(--wp--preset--font-size--small);
    line-height: 1.6;
    color: var(--wp--preset--color--dark);
}

.person-profile__accreditations-text p {
    margin: 0 0 0.5rem;
}

.person-profile__accreditations {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.person-profile__accreditations-text + .person-profile__accreditations {
    margin-top: 0.75rem;
}

.person-profile__accreditation-logo {
    max-width: 100px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.person-profile__block--contact {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.person-profile__contact-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: var(--wp--preset--font-size--small);
    font-weight: 600;
    color: var(--wp--preset--color--dark);
    text-decoration: none;
    transition: color 0.4s ease;
}

.person-profile__contact-item:hover {
    color: var(--wp--preset--color--primary);
}

.person-profile__contact-item svg {
    color: var(--wp--preset--color--primary);
    flex-shrink: 0;
    font-size: 0.95rem;
}

.person-profile__role {
    font-size: var(--wp--preset--font-size--medium);
    font-weight: 600;
    color: var(--wp--preset--color--accent);
    margin-bottom: 1.5rem;
}

.person-profile__bio > * + * {
    margin-top: 1rem;
}

.person-profile__quote {
    margin: 1.5rem 0 0;
    padding: 0.75em 1.25em;
    border-left: 4px solid var(--wp--preset--color--primary);
    font-style: italic;
    color: var(--wp--preset--color--muted);
}

.person-profile__quote p {
    margin: 0;
}

.person-profile__quote p + p {
    margin-top: 0.75em;
}

.person-profile__callback {
    margin-top: 2.5rem;
    max-width: 100%;
    background:var(--wp--preset--color--accent) !important;
}
.person-profile__callback .wpcf7-submit {
    background:var(--wp--preset--color--primary)
}



/* ================================
   VIDEO EMBED BLOCK
   ================================ */

.video-embed {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--wp--preset--color--dark);
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-embed__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.video-embed__play:hover {
    transform: scale(1.08);
}

.video-embed__play-icon {
    width: 72px;
    height: 72px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.video-embed__caption {
    margin-top: 0.75rem;
    font-size: var(--wp--preset--font-size--small);
    color: var(--wp--preset--color--muted);
    text-align: center;
}

.has-primary-background-color .video-embed__caption,
.has-dark-background-color .video-embed__caption,
.has-accent-background-color .video-embed__caption {
    color: rgba(255, 255, 255, 0.75);
}


/* ================================
   STEPS BLOCK
   ================================ */

.steps-block__header {
    text-align: center;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}


.steps-block__subheading {
    color: var(--wp--preset--color--muted);
}

.has-primary-background-color .steps-block__subheading,
.has-dark-background-color .steps-block__subheading,
.has-accent-background-color .steps-block__subheading {
    color: rgba(255, 255, 255, 0.75);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 640px;
    margin: 0 auto;
    counter-reset: steps;
}

.step {
    display: flex;
    gap: 1.5rem;
    position: relative;
    padding-bottom: 2.5rem;
}

.step:last-child {
    padding-bottom: 0;
}

/* Connecting line */
.step::before {
    content: '';
    position: absolute;
    left: 1.25rem;
    top: 2.75rem;
    bottom: 0;
    width: 2px;
    background: var(--wp--preset--color--neutral);
}

.step:last-child::before {
    display: none;
}

.step__number {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white);
    font-weight: 700;
    font-size: var(--wp--preset--font-size--small);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.has-primary-background-color .step__number,
.has-dark-background-color .step__number,
.has-accent-background-color .step__number {
    background: var(--wp--preset--color--white);
    color: var(--wp--preset--color--primary);
}

.has-primary-background-color .step::before,
.has-dark-background-color .step::before,
.has-accent-background-color .step::before {
    background: rgba(255, 255, 255, 0.2);
}

.step__content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.4rem;
}

.step__heading {
    font-size: var(--wp--preset--font-size--medium);
    font-weight: 600;
}

.step__description {
    color: var(--wp--preset--color--muted);
    line-height: 1.6;
}

.has-primary-background-color .step__description,
.has-dark-background-color .step__description,
.has-accent-background-color .step__description {
    color: rgba(255, 255, 255, 0.75);
}


/* ================================
   PRICING BLOCK
   ================================ */

.pricing-block__header {
    text-align: center;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}


.pricing-block__subheading {
    color: var(--wp--preset--color--muted);
}

.has-primary-background-color .pricing-block__subheading,
.has-dark-background-color .pricing-block__subheading,
.has-accent-background-color .pricing-block__subheading {
    color: rgba(255, 255, 255, 0.75);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: start;
}

.pricing-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--wp--preset--color--white);
    border: 1px solid var(--wp--preset--color--neutral);
    border-radius: 4px;
    color: var(--wp--preset--color--dark);
}

.pricing-plan--featured {
    border-color: var(--wp--preset--color--primary);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.pricing-plan__badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 2px;
    white-space: nowrap;
}

.pricing-plan__header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pricing-plan__name {
    font-size: var(--wp--preset--font-size--medium);
    font-weight: 700;
}

.pricing-plan__price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.pricing-plan__amount {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    color: var(--wp--preset--color--primary);
    line-height: 1;
}

.pricing-plan__period {
    font-size: var(--wp--preset--font-size--small);
    color: var(--wp--preset--color--muted);
}

.pricing-plan__description {
    font-size: var(--wp--preset--font-size--small);
    color: var(--wp--preset--color--muted);
}

.pricing-plan__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.pricing-plan__feature {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: var(--wp--preset--font-size--small);
}

.pricing-plan__check {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--wp--preset--color--primary);
    margin-top: 0.1em;
}

.pricing-plan__cta {
    display: block;
    text-align: center;
}


/* ================================
   CALLOUT / PULL QUOTE BLOCK
   ================================ */

.callout {
    text-align: center;
    padding: 1rem 0;
    position: relative;
}

.callout::before {
    content: '\201C';
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(4rem, 10vw, 7rem);
    line-height: 1;
    color: var(--wp--preset--color--primary);
    opacity: 0.15;
    font-family: Georgia, serif;
    pointer-events: none;
}

.callout__quote {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 500;
    line-height: 1.5;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.callout__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    margin-top: 1.5rem;
}

.callout__attribution {
    font-style: normal;
    font-weight: 600;
    font-size: var(--wp--preset--font-size--small);
}

.callout__citation {
    font-size: var(--wp--preset--font-size--small);
    color: var(--wp--preset--color--muted);
}

.has-primary-background-color .callout::before,
.has-dark-background-color .callout::before,
.has-accent-background-color .callout::before {
    color: var(--wp--preset--color--white);
    opacity: 0.2;
}

.has-primary-background-color .callout__citation,
.has-dark-background-color .callout__citation,
.has-accent-background-color .callout__citation {
    color: rgba(255, 255, 255, 0.7);
}


/* ================================
   MAP & CONTACT BLOCK
   ================================ */

.map-contact-block__heading {
    margin-bottom: 2.5rem;
}

.map-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.map-contact__map {
    aspect-ratio: 4 / 3;
    border-radius: 4px;
    overflow: hidden;
}


.ninja-forms-field {
    padding: 10px;
    border-radius:0.3rem;
    border:1px solid #ccc;
}


.map-contact__details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
}

.contact-detail__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 0.15em;
    color: var(--wp--preset--color--primary);
}

.has-primary-background-color .contact-detail__icon,
.has-dark-background-color .contact-detail__icon,
.has-accent-background-color .contact-detail__icon {
    color: var(--wp--preset--color--white);
}

.contact-detail__text {
    font-style: normal;
    line-height: 1.6;
}

.contact-detail__extra {
    margin-top: 0.5rem;
}




/* ================================
   RESPONSIVE STYLES
   ================================ */

/* main mobile styles moved to consolidated @media block at end of file */


/* ================================
   ROW LIST BLOCK
   ================================ */

.row-list__inner > * + * {
    margin-top: 2rem;
}

.row-list__heading {
    font-size: clamp(1.5rem, 3vw, 2rem);
    text-align: center;
}

.row-list__intro {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.row-list__rows {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.row-list__row {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.row-list__row--reverse {
    flex-direction: row-reverse;
}

.row-list__image {
    width: 45%;
    flex-shrink: 0;
}

.row-list__image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 1rem;
    display: block;
}

.row-list__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.row-list__item-heading {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 600;
    line-height: 1.2;
}

.row-list__item-link {
    color: inherit;
    text-decoration: none;
}

.row-list__item-link:hover {
    color: var(--wp--preset--color--primary);
}

.row-list__text {
    color: var(--wp--preset--color--muted);
    line-height: 1.6;
}

.row-list__footer {
    text-align: center;
    margin-top: 2.5rem;
}


/* ================================
   GET IN TOUCH BLOCK
   ================================ */

.get-in-touch-block {
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white);
    position: relative;
    background-size: cover;
    background-position: center;
}

.get-in-touch-block__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Light background overrides */
.get-in-touch-block.has-white-background-color,
.get-in-touch-block.has-neutral-background-color {
    color: var(--wp--preset--color--dark);
}

.get-in-touch-block.has-white-background-color .get-in-touch-block__address,
.get-in-touch-block.has-neutral-background-color .get-in-touch-block__address {
    color: var(--wp--preset--color--dark);
}

.get-in-touch-block__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding-top: .5rem;
    padding-bottom: .5rem;
    position: relative;
    z-index: 1;
}

/* Grid items default to min-width: auto, i.e. they won't shrink
   below their content's intrinsic width - the CF7 form on the right
   can hold that min-content wider than the available column (e.g. a
   validation tooltip's fixed width), stretching this whole grid
   wider than the viewport on mobile's single-column layout. */
.get-in-touch-block__left,
.get-in-touch-block__right {
    min-width: 0;
}

.get-in-touch-block__card {
    max-width: 100%;
}

.get-in-touch-block__form input,
.get-in-touch-block__form textarea,
.get-in-touch-block__form select {
    max-width: 100%;
}

.get-in-touch-block__heading {
    line-height: 1.15;
    color: inherit;
    margin-bottom: 2rem;
}

.get-in-touch-block__subheading {
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.get-in-touch-block__ctas {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.get-in-touch-block__cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--white);
    text-decoration: none;
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.get-in-touch-block__cta:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.get-in-touch-block__cta-icon {
    font-size: 1.1rem;
    color: var(--wp--preset--color--white);
    flex-shrink: 0;
}

.get-in-touch-block__cta-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex-grow: 1;
}

.get-in-touch-block__cta-label {
    font-size: var(--wp--preset--font-size--small);
    font-weight: 700;
    color: white;
}

.get-in-touch-block__cta-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--wp--preset--color--white);
}

.get-in-touch-block__cta-arrow {
    color: var(--wp--preset--color--white);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.get-in-touch-block__address-block {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.get-in-touch-block__detail-label {
    display: block;
    font-size: var(--wp--preset--font-size--small);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--wp--preset--color--accent);
}

.get-in-touch-block__address {
    font-style: normal;
    font-weight: 700;
    line-height: 1.6;
}

.get-in-touch-block__extra-text {
    margin-top: 2rem;
    font-size: var(--wp--preset--font-size--small);
    opacity: 0.6;
    line-height: 1.6;
}

.get-in-touch-block__extra-text p {
    margin: 0 0 0.5rem;
}

.get-in-touch-block__card {
    background: var(--wp--preset--color--white);
    color: var(--wp--preset--color--dark);
    border-radius: 0.75rem;
    padding: 2.5rem;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
}

.page-id-286 .get-in-touch-block__card {
    background: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--white);
}

.get-in-touch-block__form-heading {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.home .get-in-touch-block__form-heading {
    color:var(--wp--preset--color--primary);
}

.page-id-286 .get-in-touch-block__form-heading {
    color:White;
}

.person-profile__main .get-in-touch-block__form-heading {color:white;}

.person-profile__main .get-in-touch-block__card .wpcf7-list-item-label {color:White}


.get-in-touch-block__placeholder-field {
    height: 2.75rem;
    background: #f0f0f0;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.get-in-touch-block__placeholder-field--tall {
    height: 6rem;
}

.get-in-touch-block__placeholder-btn {
    height: 2.75rem;
    width: 8rem;
    background: var(--wp--preset--color--primary);
    border-radius: 4px;
    margin-top: 0.5rem;
}

.page-id-286 .get-in-touch-block__placeholder-btn {
    background:var(--wp--preset--color--primary);
}

.page-id-286 .get-in-touch-block .wpcf7-submit{
    background:var(--wp--preset--color--primary);
}

.page-id-286 .get-in-touch-block .wpcf7-form .wpcf7-list-item label {
    color:white;
}

/* get-in-touch mobile moved to consolidated @media block at end of file */


/* ================================
   CONTACT FORM (Contact Form 7)
   Styled globally so every embed (Get in Touch card, sidebar callback
   card, Contact block) looks the same.
   ================================ */

.wpcf7-form {
    display:flex;
    flex-direction:column;
    gap: 1rem;
}

.wpcf7-form > p {
    margin: 0;
    grid-column: span 1;
}

.wpcf7-form > p:nth-of-type(n+3) {
    grid-column: 1 / -1;
}

/* Visually hide the field label text (kept for screen readers) — the
   placeholder inside the input carries the visible guidance instead. */
.wpcf7-form > p > label {
    display: block;
    font-size: 0;
    line-height: 0;
}

.wpcf7-form-control-wrap {
    display: block;
    font-size: var(--wp--preset--font-size--small);
    line-height: normal;
}

input.wpcf7-form-control[type="text"],
input.wpcf7-form-control[type="email"],
input.wpcf7-form-control[type="tel"],
input.wpcf7-form-control[type="password"],
textarea.wpcf7-form-control {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #c4c4c4;
    border-radius: 0.5rem;
    background: var(--wp--preset--color--white);
    color: var(--wp--preset--color--dark);
    font-family: inherit;
    font-size: var(--wp--preset--font-size--small);
    transition: border-color 0.4s ease;
}

.wpcf7-form-control:focus {
    outline: none;
    border-color: var(--wp--preset--color--primary);
    box-shadow: 0 0 0 3px rgba(1, 62, 127, 0.25);
}

.wpcf7-form-control::placeholder {
    color: var(--wp--preset--color--muted);
}

textarea.wpcf7-form-control {
    min-height: 160px;
    resize: vertical;
}

.wpcf7-form-control.wpcf7-not-valid {
    border-color: #e53e3e;
}

.wpcf7-not-valid-tip {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    color: #e53e3e;
}

/* Consent / acceptance checkbox */
.wpcf7-form .wpcf7-list-item {
    margin: 0;
}

.wpcf7-form .wpcf7-list-item label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: var(--wp--preset--font-size--small);
    color: var(--wp--preset--color--muted);
    line-height: 1.5;
    cursor: pointer;
}

.wpcf7-form input[type="checkbox"] {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    margin-top: 0.2rem;
    accent-color: var(--wp--preset--color--primary);
}

.wpcf7-form .wpcf7-list-item-label a {
    color: var(--wp--preset--color--dark);
    text-decoration: underline;
}

.wpcf7-submit {
    display: inline-block;
    width: 100%;
    padding: 1rem 2rem;
    background: var(--wp--preset--color--accent);
    border: none;
    border-radius: 0.5rem;
    color: var(--wp--preset--color--white);
    font-weight: 600;
    font-size: var(--wp--preset--font-size--small);
    cursor: pointer;
    transition: opacity 0.4s ease;
}

.wpcf7-submit:hover {
    opacity: 0.9;
}

.wpcf7-spinner {
    vertical-align: middle;
    margin-left: 0.5rem;
}

.wpcf7-response-output {
    grid-column: 1 / -1;
    margin: 0;
    padding: 0.85rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: var(--wp--preset--font-size--small);
}

.wpcf7-mail-sent-ok {
    border-color: #38a169 !important;
    color: #2f855a;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng,
.wpcf7-spam-blocked {
    border-color: #e53e3e !important;
    color: #c53030;
}

@media (max-width: 480px) {
    .wpcf7-form {
        grid-template-columns: 1fr;
    }

    .wpcf7-form > p {
        grid-column: 1 / -1;
    }
}


/* ================================
   SINGLE SERVICE
   ================================ */

.service-layout {
    padding:0 0 2rem;
}

.service-layout__inner {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    align-items: flex-start;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.content-layout {
    padding: 0 0 4rem;
}

.content-layout__inner {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    align-items: flex-start;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.content-layout__breadcrumbs {
    opacity: 1;
    margin-bottom: 0.75rem;
}

.content-layout__breadcrumbs .breadcrumbs__link {
    color: var(--wp--preset--color--muted);
}

.content-layout__breadcrumbs .breadcrumbs__sep,
.content-layout__breadcrumbs span {
    color: var(--wp--preset--color--muted);
}

.content-layout__title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .content-layout__inner {
        grid-template-columns: 1fr;
    }
}

.service-sidebar-card {
    background: var(--wp--preset--color--neutral);
    border-radius: 0.75rem;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-sidebar-card__heading {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.service-sidebar-card__intro {
    font-size: var(--wp--preset--font-size--small);
    color: var(--wp--preset--color--muted);
    margin: 0 0 0.5rem;
}

.service-sidebar-card__item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: var(--wp--preset--font-size--small);
    font-weight: 600;
    color: var(--wp--preset--color--dark);
    text-decoration: none;
    transition: color 0.4s ease;
}

.service-sidebar-card__item:hover {
    color: var(--wp--preset--color--primary);
}

.service-sidebar-card__item i {
    color: var(--wp--preset--color--primary);
    width: 1rem;
    text-align: center;
}

.service-sidebar-callback-request {
    background:var(--wp--preset--color--accent);
    display:block;
    color:white;
    width:100%;
    border-radius:7px;
    padding:15px 0;
    text-align:center;
    text-decoration:none; 
    margin:15px 0 0;
}

@media (max-width: 768px) {
    .service-layout__inner {
        grid-template-columns: 1fr;
    }
}


/* ================================
   NEWS ARCHIVE (home.php / archive.php)
   ================================ */

.news-layout {
    padding: 0 0 4rem;
}

.news-layout__inner {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    align-items: flex-start;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: sticky;
    top: 6rem;
}

.news-sidebar__card {
    background: var(--wp--preset--color--white);
    border: 1px solid #e2e2e2;
    border-radius: 0.75rem;
    padding: 0 1.5rem;
}

.news-sidebar__section {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.5rem 0;
    border-top: 1px solid #e2e2e2;
}

.news-sidebar__section:first-child {
    border-top: none;
}

.news-sidebar__heading {
    font-size: var(--wp--preset--font-size--small);
    font-weight: 700;
    font-family:var(--wp--preset--font-family--primary);
    letter-spacing:0.04em;
    text-transform: uppercase;
    color: var(--wp--preset--color--primary);
}

.news-sidebar__list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding-left:0;
}

.news-sidebar__list li {
    color: var(--wp--preset--color--dark);
}

.news-sidebar__link {
    color:var(--wp--preset--color--dark);
    font-size: var(--wp--preset--font-size--small);
    text-decoration: none;
    transition: color 0.4s ease;
}

.news-sidebar__link:hover {
    color: var(--wp--preset--color--primary);
}

.news-sidebar__section--contact {
    gap: 0.85rem;
}

.news-sidebar__contact-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: var(--wp--preset--font-size--small);
    font-weight: 600;
    color: var(--wp--preset--color--dark);
    text-decoration: none;
    transition: color 0.4s ease;
}

.news-sidebar__contact-item:hover {
    color: var(--wp--preset--color--primary);
}

.news-sidebar__contact-item svg {
    color: var(--wp--preset--color--primary);
    flex-shrink: 0;
    font-size: 0.95rem;
}

.news-sidebar__callback {
    padding: 1.75rem;
}

aside .news-sidebar__callback {background:var(--wp--preset--color--accent);}
aside .news-sidebar__callback .wpcf7-submit {background:var(--wp--preset--color--primary)}
aside .news-sidebar__callback label .wpcf7-list-item-label {color:white;}
aside .news-sidebar__callback .get-in-touch-block__form-heading {color:white; font-family:var(--wp--preset--font-family--primary);}


@media (max-width: 768px) {
    .news-layout__inner {
        grid-template-columns: 1fr;
    }

    .news-sidebar {
        position: static;
    }
}


/* ================================
   NOTICE BAR
   ================================ */

.notice-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 3.5rem;
    background: var(--wp--preset--color--primary, #1a1a1a);
    color: #fff;
    font-size: 0.9rem;
    text-align: center;
}

.notice-bar__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.notice-bar__message {
    margin: 0;
}

.notice-bar__cta {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    white-space: nowrap;
    transition: opacity 0.4s;
}

.notice-bar__cta:hover {
    opacity: 0.8;
    text-decoration: none;
}

.notice-bar__dismiss {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    padding: 0.375rem;
    opacity: 0.7;
    transition: opacity 0.4s;
    border-radius: 4px;
}

.notice-bar__dismiss:hover {
    opacity: 1;
}

/* Colour overrides — ensure text stays readable on brand backgrounds */
.notice-bar.has-primary-background-color,
.notice-bar.has-dark-background-color,
.notice-bar.has-accent-background-color {
    color: #fff;
}

.notice-bar.has-light-background-color,
.notice-bar.has-neutral-background-color,
.notice-bar.has-white-background-color {
    color: var(--wp--preset--color--dark, #1a1a1a);
}


/* ================================
   RESPONSIVE — max-width: 768px
   ================================ */

@media (max-width: 768px) {

    /* ================================
       TYPOGRAPHY
       ================================ */

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.125rem; }
    h4 { font-size: 1rem; }

    /* .prose > h2 / .block-heading are class selectors, so they beat
       the plain "h2" rule above on service pages' content column -
       shrink them slightly too, separately from the sitewide size. */
    .service-layout__content .prose > h2,
    .service-layout__content .block-heading {
        font-size: 28px;
    }

    /* ================================
       HEADER
       ================================ */

    .site-nav__toggle {
        display: flex;
    }

    .site-header__actions {
        display: none;
    }

    .site-header__inner,
    .site-header__top-inner,
    .site-header__bottom-inner {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .site-header--centered .site-header__logo { padding: 0; }

    /* Icon-only on mobile (text hidden) rather than hidden entirely -
       there's no room for the full pill, but the number/email should
       still be one tap away without opening the menu. Grouped with
       the hamburger (not either side of the logo, like on desktop)
       since .site-header__mobile-actions becomes a real flex
       container here instead of display: contents. */
    .site-header--centered .site-header__mobile-actions {
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }

    .site-header--centered .site-header__contact {
        flex: 0 0 auto;
    }

    .site-header--centered .site-header__contact a {
        padding: 0.5rem;
        border-radius: 50%;
    }

    .site-header__contact-text {
        display: none;
    }

    .site-header--centered .site-header__bottom {
        height: 0;
        overflow: hidden;
        border-top: none;
    }

    .site-header__logo img {
        height: 50px;
    }

    /* ================================
       NAV PANEL
       ================================ */

    .site-nav__contact {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 0;
        border-bottom: 1px solid var(--wp--preset--color--neutral);
    }

    .site-nav__contact a {
        color: var(--wp--preset--color--dark);
        text-decoration: none;
        font-size: var(--wp--preset--font-size--small);
        font-weight: 500;
    }

    .site-nav__contact a:hover {
        color: var(--wp--preset--color--accent);
    }

    .site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bar:nth-child(2) {
        opacity: 0;
    }

    .site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .site-nav__panel {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: min(320px, 85vw);
        height: 100%;
        background: var(--wp--preset--color--white);
        padding: 1.5rem;
        z-index: 100;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.55s ease;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    }

    .site-nav__panel.is-open {
        transform: translateX(0);
    }

    .site-nav__close {
        display: flex;
        align-self: flex-end;
        background: none;
        border: none;
        cursor: pointer;
        font-size: 1.5rem;
        line-height: 1;
        padding: 0.25rem 0.5rem;
        color: var(--wp--preset--color--dark);
        margin-bottom: 1rem;
    }

    .site-nav__menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding-bottom: 1rem;
    }

    .site-nav__search,
    .site-nav__mobile-cta {
        display: block;
    }

    .site-nav__search {
        padding: 1.5rem 0 0;
        border-top: 1px solid var(--wp--preset--color--neutral);
    }

    .site-nav__search .search-form {
        max-width: 100%;
    }

    .site-nav__mobile-cta {
        list-style: none;
        margin: auto 0 0;
        padding: 1.5rem 0 0;
        border-top: 1px solid var(--wp--preset--color--neutral);
    }

    .site-nav__mobile-cta li {
        margin: 0;
        padding: 0;
    }

    .site-nav__mobile-cta a {
        display: block;
        text-align: center;
        padding: 0.75rem 1.25rem;
        background: var(--wp--preset--color--accent);
        color: var(--wp--preset--color--white);
        text-decoration: none;
        font-weight: 600;
        font-size: var(--wp--preset--font-size--small);
        border-radius: 2px;
        transition: opacity 0.4s ease;
    }

    .site-nav__mobile-cta a:hover {
        opacity: 0.85;
    }

    .site-nav__panel .site-nav__menu a {
        color: var(--wp--preset--color--dark);
    }

    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        border-left: 2px solid var(--wp--preset--color--neutral);
        margin: 0.25rem 0 0.5rem 0.75rem;
        padding: 0.25rem 0;
        display: none;
    }

    .menu-item-has-children.is-open > .sub-menu {
        display: block;
    }

    .sub-menu-toggle {
        display: inline-flex;
        color: var(--wp--preset--color--dark);
    }

    /* ================================
       GLOBAL
       ================================ */

    .block {
        padding: 2.5rem 0;
    }

    .block-inner {
        padding: 0 1rem;
    }

    /* .notice-block__inner's own padding rule and this generic
       .block-inner reset are equal specificity - whichever comes
       later in the file wins, which is this one, zeroing it out on
       mobile. Reassert it here. */
    .notice-block__inner {
        padding: 1.25rem 1.25rem;
    }

    .sidebar-layout.wp-block-columns,
    .two-columns-layout.wp-block-columns {
        padding: 2rem 1rem;
    }

    .site-header__inner {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .site-footer__inner {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-top: var(--wp--preset--spacing--md);
    }

    /* ================================
       HERO BLOCK
       ================================ */

    .hero-block {
        min-height: 40vh;
        padding: 4rem 0;
    }

    .hero-block__heading {
        width: 100%;
    }

    .hero-block__subheading {
        font-size:16px; 
    }

    /* ================================
       CONTACT BLOCK
       ================================ */

    .contact-block__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* ================================
       CONTENT IMAGE BLOCK
       ================================ */

    .content-image__inner {
        flex-direction: column;
        gap: 2rem;
    }

    .content-image.reverse-layout .content-image__inner {
        flex-direction: column;
    }

    .content-image__content,
    .content-image__image {
        width: 100%;
    }

    /* ================================
       CTA PANEL BLOCK
       ================================ */

    .cta-panel__inner {
        padding: 2.5rem 1.5rem;
    }

    /* ================================
       STAT BLOCK
       ================================ */

    .stat-block__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* ================================
       CAROUSEL BLOCK
       ================================ */

    .carousel {
        --slides-per-view: 1;
    }

    /* ================================
       CARD GRID BLOCK
       ================================ */

    .card-grid__grid {
        grid-template-columns: 1fr;
    }

    .leaf-heading {
        padding-left:30px;
    }

    /* ================================
       ROW LIST BLOCK
       ================================ */

    .row-list__row,
    .row-list__row--reverse {
        flex-direction: column;
    }

    .row-list__image {
        width: 100%;
    }

    /* ================================
       MAP CONTACT BLOCK
       ================================ */

    .map-contact {
        grid-template-columns: 1fr;
    }

    /* ================================
       GET IN TOUCH BLOCK
       ================================ */

    .get-in-touch-block__inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .nf-form-content .one-half, .nf-form-content .three-sixths, .nf-form-content .two-fourths {
        width:100% !important;
    }

    
    .get-in-touch-block__card {
        padding:1.4rem;
    }

    /* ================================
       SINGLE PERSON
       ================================ */

    .person-profile__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .person-profile__photo {
        max-width: 260px;
    }

    .person-profile__callback {
        max-width: none;
    }

}
