/*
Theme Name: exosome-wellness
Theme URI:
Author: Geeks360
Author URI: https://geeks360.net
Description: Custom ACF-based WordPress theme for exosome-wellness. Pages are built with an ACF Flexible Content field (page_sections); global header and footer are managed from the Theme Settings options page.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: exosome-wellness
*/

/* ==========================================================================
   DESIGN TOKENS
   ========================================================================== */
:root {
    /* Colors - replace with the brand palette */
    --color-primary: #1a1a1a;
    --color-secondary: #f5a623;
    --color-text: #1a1a1a;
    --color-muted: #6b7280;
    --color-bg: #ffffff;
    --color-border: #e5e7eb;

    /* Typography */
    --font-heading: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --fs-body: 16px;
    --lh-body: 1.5;

    /* Spacing scale */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 40px;
    --spacing-2xl: 64px;

    /* Layout */
    --container-max: 1240px;
    --container-pad: 20px;
    --radius: 8px;
}

/* ==========================================================================
   BASE
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--color-text);
    background: var(--color-bg);
}

img,
svg { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin: 0 0 var(--spacing-sm);
}

p { margin: 0 0 var(--spacing-md); }

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

.site-main { min-height: 50vh; }

.section,
.page-content { padding-block: var(--spacing-2xl); }

/* ==========================================================================
   BLOCK-HERO
   ========================================================================== */
.block-hero { padding-block: var(--spacing-2xl); }

.block-hero__heading { margin: 0 0 var(--spacing-md); }

.block-hero__text {
    max-width: 60ch;
    color: var(--color-muted);
    margin: 0 0 var(--spacing-lg);
}

.block-hero__image {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

/* ==========================================================================
   SITE-HEADER
   ========================================================================== */
.site-header {
    position: relative;
    z-index: 1000; /* hardcoded: stacking above page content */
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    min-height: 80px; /* hardcoded: header bar height */
}

/* Bar logo - shown on tablet/mobile only; on desktop the logo is injected
   into the centre of the menu by the nav walker. */
.site-header__logo { display: none; }
.site-header__logo img { max-height: 40px; width: auto; } /* hardcoded logo height */

/* Nav wrapper - on desktop the full-width row that holds the menu + CTA. */
.site-header__nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    flex: 1 1 auto;
}

.site-nav { flex: 1 1 auto; }

.site-nav__menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav__menu > li { position: relative; }

.site-nav__menu a {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    text-decoration: none;
    color: var(--color-text);
    font-family: var(--font-heading);
    line-height: 1.2;
    white-space: nowrap;
}

.site-nav__menu a:hover { color: var(--color-secondary); }

/* Logo injected at the midpoint - centres itself, pinning the two groups
   to the left and right. */
.site-nav__logo-item { margin-inline: auto; }
.site-nav__logo-item img { max-height: 44px; width: auto; } /* hardcoded logo height */

/* Down-arrow on items that have a submenu (WP .menu-item-has-children). */
.site-nav__menu .menu-item-has-children > a::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: var(--spacing-xs);
    transition: transform 0.2s ease;
}

.site-nav__menu .menu-item-has-children:hover > a::after { transform: rotate(180deg); }

/* Submenu (one level deep) - desktop hover dropdown. */
.site-nav__menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px; /* hardcoded submenu width */
    margin: 0;
    padding: var(--spacing-sm) 0;
    list-style: none;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08); /* hardcoded shadow */
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 10;
}

.site-nav__menu .menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-nav__menu .sub-menu a { display: block; padding: var(--spacing-xs) var(--spacing-md); }

/* CTA (Book Consultation) - ACF link field, not part of the menu. */
.site-header__cta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    white-space: nowrap;
    padding: var(--spacing-sm) var(--spacing-lg);
    color: var(--color-text);
    border: 1px solid var(--color-primary);
    border-radius: 999px; /* hardcoded pill radius */
    transition: background-color 0.2s ease, color 0.2s ease;
}

.site-header__cta:hover { background: var(--color-primary); color: var(--color-bg); }

/* Burger - hidden on desktop, revealed at the tablet breakpoint. */
.site-header__burger { display: none; }

/* Sticky state, toggled from main.js after the scroll threshold. */
.site-header.is-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06); /* hardcoded shadow */
    animation: site-header-drop 0.3s ease;
}

@keyframes site-header-drop {
    from { transform: translateY(-100%); }
    to   { transform: translateY(0); }
}

/* ==========================================================================
   BLOCK-HOME-HERO
   ========================================================================== */
.block-home-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 620px; /* hardcoded: hero height (no token) */
    padding-block: var(--spacing-2xl);
    /* Readability gradient over the dynamic --hero-bg image (set inline). */
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.55) 42%, rgba(255, 255, 255, 0) 70%),
        var(--hero-bg, none);
    background-repeat: no-repeat;
    background-position: center right;
    background-size: cover;
}

.block-home-hero__content { max-width: 540px; } /* hardcoded: content column width */

.block-home-hero__subtitle {
    margin: 0 0 var(--spacing-md);
    color: var(--color-muted);
    font-size: 13px; /* hardcoded: eyebrow size (no token) */
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.block-home-hero__title {
    margin: 0 0 var(--spacing-md);
    color: var(--color-text);
    font-weight: 400;
    font-size: 56px; /* hardcoded: hero title size (no token) */
    line-height: 1.1;
}

.block-home-hero__description {
    max-width: 46ch;
    margin: 0 0 var(--spacing-lg);
    color: var(--color-muted);
}

.block-home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.block-home-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 999px; /* hardcoded: pill radius */
    text-decoration: none;
    line-height: 1.2;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.block-home-hero__btn--primary {
    background: #1f4d3f; /* hardcoded: brand dark green (no token) */
    color: var(--color-bg);
    border: 1px solid #1f4d3f; /* hardcoded: matches fill */
}

.block-home-hero__btn--primary:hover { background: #173a30; border-color: #173a30; } /* hardcoded: darker green */

.block-home-hero__btn--secondary {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.block-home-hero__btn--secondary:hover { border-color: var(--color-text); }

/* ==========================================================================
   SITE-NAV-DROPDOWNS
   ========================================================================== */
/* Arrow on ACF-driven dropdown items (same look as .menu-item-has-children). */
.site-nav__menu .site-nav__item--dropdown > a::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: var(--spacing-xs);
    transition: transform 0.2s ease;
}

.site-nav__menu .site-nav__item--dropdown.is-open > a::after { transform: rotate(180deg); }

/* The mega panel is positioned against the header (position: relative), so
   the cards item must not create its own positioning context. */
.site-nav__menu > li.site-nav__item--cards { position: static; }

.site-nav__panel {
    position: absolute;
    z-index: 1001; /* hardcoded: above the header bar */
    background: var(--color-bg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.site-nav__item--dropdown.is-open .site-nav__panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Full-width cards panel under the header. */
.site-nav__panel--cards {
    top: 100%;
    left: 0;
    right: 0;
    padding-block: var(--spacing-lg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.08); /* hardcoded: panel shadow */
}

.site-nav__cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav__menu .site-nav__card-link {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3; /* hardcoded: menu card ratio */
    border-radius: 14px; /* hardcoded: card radius */
    overflow: hidden;
    text-decoration: none;
    background: var(--color-border);
}

.site-nav__card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.site-nav__menu .site-nav__card-link:hover .site-nav__card-image { transform: scale(1.04); }

.site-nav__menu .site-nav__card-link--static { cursor: default; }

.site-nav__card-title,
.site-nav__card-badge {
    position: absolute;
    z-index: 1;
    max-width: calc(100% - 24px);
    padding: 6px 14px; /* hardcoded: pill padding */
    background: rgba(255, 255, 255, 0.92); /* hardcoded: pill background */
    border-radius: 999px; /* hardcoded: pill radius */
    color: var(--color-text);
    font-size: 14px; /* hardcoded: pill text size */
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-nav__card-title { left: 12px; bottom: 12px; }
.site-nav__card-badge { left: 12px; top: 12px; }

/* Compact links dropdown under its item. */
.site-nav__panel--links {
    top: 100%;
    left: 0;
    min-width: 180px; /* hardcoded: dropdown width */
    margin: 0;
    padding: var(--spacing-xs) 0;
    list-style: none;
    border: 1px solid var(--color-border);
    border-radius: 10px; /* hardcoded: dropdown radius */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08); /* hardcoded shadow */
}

.site-nav__panel--links li { list-style: none; }

.site-nav__menu .site-nav__panel--links a {
    display: block;
    padding: var(--spacing-xs) var(--spacing-md);
    white-space: nowrap;
}

/* ==========================================================================
   BLOCK-AT-HOME-PROTOCOL
   ========================================================================== */
.block-at-home-protocol { padding-block: var(--spacing-2xl); }

.block-at-home-protocol__card {
    background: #1f4d3f; /* hardcoded: brand dark green (no token) */
    border-radius: 20px; /* hardcoded: card radius (larger than --radius) */
    padding: var(--spacing-2xl) var(--spacing-xl);
    text-align: center;
}

.block-at-home-protocol__title {
    max-width: 880px;
    margin: 0 auto var(--spacing-md);
    color: var(--color-bg);
    font-weight: 400;
    font-size: 40px; /* hardcoded: title size (no token) */
    line-height: 1.15;
}

.block-at-home-protocol__description {
    max-width: 728px;
    margin: 0 auto var(--spacing-lg);
    color: rgba(255, 255, 255, 0.85); /* hardcoded: muted white on green */
}

.block-at-home-protocol__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    color: var(--color-bg);
    border: 1px solid rgba(255, 255, 255, 0.6); /* hardcoded: translucent white outline */
    border-radius: 999px; /* hardcoded: pill radius */
    text-decoration: none;
    line-height: 1.2;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.block-at-home-protocol__cta:hover {
    background: var(--color-bg);
    color: #1f4d3f; /* hardcoded: brand dark green */
    border-color: var(--color-bg);
}

/* Optional background video: sits under a readability gradient overlay. */
.block-home-hero--has-video { overflow: hidden; }

.block-home-hero__video {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
}

.block-home-hero--has-video::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    /* Same readability gradient as the static background-image version. */
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.55) 42%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.block-home-hero__inner { position: relative; z-index: 2; }

/* ==========================================================================
   BLOCK-PARTNER-LOGOS
   ========================================================================== */
.block-partner-logos { padding-block: var(--spacing-2xl); }

.block-partner-logos__logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-2xl);
    margin: 0;
    padding: 0;
    list-style: none;
}

.block-partner-logos__logo { display: flex; align-items: center; }

.block-partner-logos__logo img {
    width: auto;
    max-height: 30px; /* hardcoded: logo height (no token) */
    filter: grayscale(100%);
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.block-partner-logos__logo img:hover { opacity: 1; }

/* ==========================================================================
   SERVICES-SINGLE
   ========================================================================== */
.services-single { padding-block: var(--spacing-2xl); }

.services-single__breadcrumbs {
    margin-bottom: var(--spacing-xl);
    color: var(--color-muted);
    font-size: 14px; /* hardcoded: breadcrumb size (no token) */
}

.services-single__breadcrumbs a { text-decoration: none; }
.services-single__breadcrumbs a:hover { color: var(--color-text); }
.services-single__breadcrumbs-sep { margin-inline: var(--spacing-xs); }

.services-single__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: start;
}

.services-single__image {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

/* Gallery thumbnails under the main image; the option switch selects 1/2. */
.services-single__thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin: var(--spacing-sm) 0 0;
    padding: 0;
    list-style: none;
}

.services-single__thumb {
    display: block;
    width: 72px;  /* hardcoded: thumb size */
    height: 72px; /* hardcoded: thumb size */
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px; /* hardcoded: thumb radius */
    overflow: hidden;
    background: none;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

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

.services-single__thumb.is-active { border-color: #1f4d3f; /* hardcoded: brand dark green */ }

.services-single__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin: 0 0 var(--spacing-md);
    padding: 0;
    list-style: none;
}

.services-single__tag {
    color: var(--color-muted);
    font-size: 12px; /* hardcoded: tag size (no token) */
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.services-single__title {
    margin: 0 0 var(--spacing-md);
    font-weight: 400;
    font-size: 44px; /* hardcoded: title size (no token) */
    line-height: 1.1;
}

.services-single__description {
    margin: 0 0 var(--spacing-lg);
    max-width: 52ch;
    color: var(--color-muted);
}

/* Long (WYSIWYG) description: keep paragraph rhythm inside the block. */
.services-single__description--long p { margin: 0 0 var(--spacing-sm); }
.services-single__description--long p:last-child { margin-bottom: 0; }

/* Static radio option group (styled as pills). */
.services-single__options {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.services-single__option { cursor: pointer; }

.services-single__option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.services-single__option span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-xl);
    border: 1px solid var(--color-border);
    border-radius: 999px; /* hardcoded: pill radius */
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.services-single__option input:checked + span {
    background: #eef0f1; /* hardcoded: selected pill fill */
    border-color: var(--color-text);
}

.services-single__option input:focus-visible + span { outline: 2px solid var(--color-text); outline-offset: 2px; }

/* Book Consultation button. */
.services-single__book {
    display: block;
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    color: var(--color-bg);
    background: #1f4d3f; /* hardcoded: brand dark green (no token) */
    border: 0;
    border-radius: 999px; /* hardcoded: pill radius */
    font: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.services-single__book:hover { background: #173a30; } /* hardcoded: darker green */

/* Feature accordion. */
.services-single__features { border-top: 1px solid var(--color-border); }

.services-single__feature { border-bottom: 1px solid var(--color-border); }

.services-single__feature-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    width: 100%;
    padding: var(--spacing-md) 0;
    background: none;
    border: 0;
    font: inherit;
    font-size: 18px; /* hardcoded: feature title size (no token) */
    text-align: left;
    color: var(--color-text);
    cursor: pointer;
}

.services-single__feature-icon {
    position: relative;
    flex: 0 0 auto;
    width: 16px; /* hardcoded: icon box */
    height: 16px; /* hardcoded: icon box */
    transition: transform 0.3s ease;
}

.services-single__feature-icon::before,
.services-single__feature-icon::after {
    content: "";
    position: absolute;
    background: currentColor;
}

.services-single__feature-icon::before {
    top: 50%;
    left: 0;
    right: 0;
    height: 1.5px; /* hardcoded: icon stroke */
    transform: translateY(-50%);
}

.services-single__feature-icon::after {
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1.5px; /* hardcoded: icon stroke */
    transform: translateX(-50%);
}

/* Open state: the plus rotates into a cross. */
.services-single__feature.is-open .services-single__feature-icon { transform: rotate(45deg); }

.services-single__feature-panel {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
}

/* Optional short intro shown above the bullet points in a feature panel. */
.services-single__feature-intro {
    margin: 0 0 var(--spacing-sm);
    color: var(--color-muted);
}

.services-single__feature-points {
    margin: 0;
    padding: 0 0 var(--spacing-md) var(--spacing-md);
    color: var(--color-muted);
    font-size: 14px; /* hardcoded: point size (no token) */
}

.services-single__feature-points li { margin-bottom: var(--spacing-xs); }

/* ==========================================================================
   SERVICES-POPUP (booking form)
   ========================================================================== */
.services-popup {
    position: fixed;
    inset: 0;
    z-index: 1100; /* hardcoded: above the sticky header (1000) */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    background: rgba(0, 0, 0, 0.5); /* hardcoded: backdrop */
}

.services-popup[hidden] { display: none; }

body.popup-open { overflow: hidden; }

.services-popup__dialog {
    position: relative;
    width: 100%;
    max-width: 640px; /* hardcoded: dialog width */
    max-height: 90vh;
    overflow-y: auto;
    padding: var(--spacing-xl);
    background: var(--color-bg);
    border-radius: 16px; /* hardcoded: dialog radius */
}

.services-popup__close {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; /* hardcoded: close button size */
    height: 40px; /* hardcoded: close button size */
    padding: 0;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    font-size: 22px; /* hardcoded: X glyph size */
    line-height: 1;
    color: var(--color-text);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.services-popup__close:hover { background: var(--color-border); }

.services-popup__title {
    margin: 0 0 var(--spacing-xs);
    padding-right: var(--spacing-2xl); /* keep clear of the close button */
    font-weight: 400;
    font-size: 32px; /* hardcoded: popup title size (no token) */
    line-height: 1.15;
}

.services-popup__subtitle {
    margin: 0 0 var(--spacing-lg);
    color: var(--color-text);
}

/* --- Formidable form ([formidable id=1]) --- */
.services-popup__form .frm_form_fields fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.services-popup__form .frm_screen_reader {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.services-popup__form .frm_fields_container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.services-popup__form .frm_form_field {
    flex: 1 1 100%;
    margin: 0;
}

/* Two-up fields (Formidable half-width classes). */
.services-popup__form .frm_half,
.services-popup__form .frm6 {
    flex: 1 1 calc(50% - (var(--spacing-md) / 2));
}

.services-popup__form .frm_primary_label {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--color-muted);
    font-size: 13px; /* hardcoded: field label size (no token) */
    font-weight: 400;
    visibility: visible;
}

.services-popup__form .frm_required { color: inherit; }

/* Descriptions ("First" / "Last") are noise here. */
.services-popup__form .frm_description { display: none; }

.services-popup__form input[type="text"],
.services-popup__form input[type="email"],
.services-popup__form input[type="tel"],
.services-popup__form input[type="number"],
.services-popup__form select,
.services-popup__form textarea {
    width: 100%;
    padding: 12px var(--spacing-md); /* hardcoded: field vertical padding */
    color: var(--color-text);
    background: #eef0f1; /* hardcoded: field fill */
    border: 1px solid transparent;
    border-radius: var(--radius);
    font: inherit;
}

.services-popup__form input::placeholder { color: var(--color-muted); }

.services-popup__form input:focus,
.services-popup__form select:focus,
.services-popup__form textarea:focus {
    outline: none;
    border-color: var(--color-text);
}

/* Phone field: no country flag (defensive against intl-tel-input). */
.services-popup__form .iti { width: 100%; display: block; }
.services-popup__form .iti__flag-container,
.services-popup__form .iti__selected-flag { display: none !important; } /* override plugin */
.services-popup__form .iti input[type="tel"] { padding-left: var(--spacing-md) !important; } /* reset plugin inline padding */

/* Honeypot / anti-spam field. */
/* .services-popup__form .frm_verify,
.services-popup__form #frm_field_11_container {
    position: absolute !important;
    left: -9999px;
} */

.services-popup__form .frm_submit {
    display: flex;
    justify-content: flex-end;
    margin-top: var(--spacing-sm);
}

/* Book Now - styled like .services-single__book (brand green pill). */
.services-popup__form .frm_button_submit {
    padding: var(--spacing-md) var(--spacing-2xl);
    color: var(--color-bg);
    background: #1f4d3f; /* hardcoded: brand dark green (no token) */
    border: 0;
    border-radius: 999px; /* hardcoded: pill radius */
    font: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.services-popup__form .frm_button_submit:hover { background: #173a30; } /* hardcoded: darker green */

.services-popup__form .frm_error,
.services-popup__form .frm_error_style {
    color: #b00020; /* hardcoded: validation red */
    font-size: 13px; /* hardcoded */
}

/* Inline JS validation message + invalid state. */
.services-popup__form .services-popup__field-error {
    display: block;
    margin-top: var(--spacing-xs);
    color: #b00020; /* hardcoded: validation red */
    font-size: 13px; /* hardcoded */
}

.services-popup__form input[aria-invalid="true"] {
    border-color: #b00020; /* hardcoded: validation red */
}

/* ==========================================================================
   BLOCK-SERVICE-IMAGE-CONTENT
   ========================================================================== */
.block-service-image-content {
    display: flex;
    align-items: center;
    min-height: 460px; /* hardcoded: section height (no token) */
    padding-block: var(--spacing-2xl);
    background-image: var(--bg, none);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Optional background video layered under the frosted card. */
.block-service-image-content--has-video {
    position: relative;
    overflow: hidden;
}

.block-service-image-content__video {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.block-service-image-content--has-video .container {
    position: relative;
    z-index: 1;
}

.block-service-image-content__card {
    max-width: 800px; /* hardcoded: card width */
    margin-inline: auto;
    padding: var(--spacing-2xl) var(--spacing-xl);
    text-align: center;
    background: rgba(255, 255, 255, 0.25); /* hardcoded: frosted glass tint */
    border: 1px solid rgba(255, 255, 255, 0.4); /* hardcoded: glass edge */
    border-radius: 24px; /* hardcoded: card radius */
    -webkit-backdrop-filter: blur(12px); /* hardcoded: frosted blur */
    backdrop-filter: blur(12px); /* hardcoded: frosted blur */
}

.block-service-image-content__text {
    margin: 0 0 var(--spacing-lg);
    color: var(--color-text);
    font-size: 24px; /* hardcoded: main text size (no token) */
    line-height: 1.45;
}

.block-service-image-content__caption {
    margin: 0;
    color: var(--color-muted);
    font-size: 12px; /* hardcoded: caption size (no token) */
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ==========================================================================
   BLOCK-SERVICE-FAQS
   ========================================================================== */
.block-service-faqs { padding-block: var(--spacing-2xl); }

.block-service-faqs__card {
    padding: var(--spacing-2xl) var(--spacing-xl);
    background: #1f4d3f; /* hardcoded: brand dark green (no token) */
    border-radius: 24px; /* hardcoded: card radius */
    color: var(--color-bg);
}

.block-service-faqs__head {
    margin-bottom: var(--spacing-2xl);
    text-align: center;
}

.block-service-faqs__subtitle {
    margin: 0 0 var(--spacing-sm);
    color: rgba(255, 255, 255, 0.75); /* hardcoded: muted white on green */
    font-size: 13px; /* hardcoded: eyebrow size (no token) */
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.block-service-faqs__title {
    margin: 0;
    color: var(--color-bg);
    font-weight: 400;
    font-size: 36px; /* hardcoded: title size (no token) */
    line-height: 1.15;
}

.block-service-faqs__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: var(--spacing-2xl);
    row-gap: var(--spacing-sm);
}

.block-service-faqs__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    width: 100%;
    padding: var(--spacing-md) 0;
    background: none;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25); /* hardcoded: divider on green */
    color: var(--color-bg);
    font: inherit;
    font-size: 15px; /* hardcoded: question size (no token) */
    text-align: left;
    cursor: pointer;
}

.block-service-faqs__icon {
    position: relative;
    flex: 0 0 auto;
    width: 14px; /* hardcoded: icon box */
    height: 14px; /* hardcoded: icon box */
    transition: transform 0.3s ease;
}

.block-service-faqs__icon::before,
.block-service-faqs__icon::after {
    content: "";
    position: absolute;
    background: currentColor;
}

.block-service-faqs__icon::before {
    top: 50%;
    left: 0;
    right: 0;
    height: 1.5px; /* hardcoded: icon stroke */
    transform: translateY(-50%);
}

.block-service-faqs__icon::after {
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1.5px; /* hardcoded: icon stroke */
    transform: translateX(-50%);
}

/* Open state: plus rotates into a cross. */
.block-service-faqs__item.is-open .block-service-faqs__icon { transform: rotate(45deg); }

.block-service-faqs__panel {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
}

.block-service-faqs__answer {
    padding: var(--spacing-md) 0;
    color: rgba(255, 255, 255, 0.8); /* hardcoded: answer text on green */
    font-size: 14px; /* hardcoded: answer size (no token) */
}

/* ==========================================================================
   SERVICE-CARD
   ========================================================================== */
.service-card {
    height: 100%;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px); /* hardcoded: lift on hover */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08); /* hardcoded shadow */
}

.service-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.service-card__media {
    aspect-ratio: 16 / 10; /* hardcoded: card image ratio */
    overflow: hidden;
}

.service-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card__body {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
}

.service-card__types {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-card__type {
    padding: 2px var(--spacing-sm); /* hardcoded: chip vertical padding */
    font-size: 12px; /* hardcoded: chip text size (no token) */
    line-height: 1.4;
    color: var(--color-muted);
    background: var(--color-border);
    border-radius: 999px; /* hardcoded: pill radius */
}

.service-card__title { margin: 0; }

.service-card__excerpt {
    margin: 0;
    color: var(--color-muted);
}

/* ==========================================================================
   BLOCK-FEATURED-SERVICES
   ========================================================================== */
.block-featured-services { 
    padding-block: var(--spacing-2xl); 
    background: #F8F8F8;
}

.block-featured-services__head { margin-bottom: var(--spacing-xl); }

.block-featured-services__subtitle {
    margin: 0 0 var(--spacing-sm);
    color: var(--color-muted);
    font-size: 13px; /* hardcoded: eyebrow size (no token) */
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.block-featured-services__title {
    margin: 0;
    font-weight: 400;
    font-size: 36px; /* hardcoded: title size (no token) */
    line-height: 1.15;
}

.block-featured-services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    transition: opacity 0.2s ease;
}

.block-featured-services.is-loading .block-featured-services__grid {
    opacity: 0.5;
    pointer-events: none;
}

/* Card - the service main_image is the blurred cover background. */
.block-featured-services__card {
    position: relative;
    overflow: hidden;
    min-height: 460px; /* hardcoded: card height (no token) */
    border-radius: 16px; /* hardcoded: card radius */
    background: var(--color-border);
    box-shadow: 0px 14px 37px rgba(0, 0, 0, 0.13);
    cursor: pointer; /* whole card is clickable (data-card-link) */
    transition: box-shadow 0.3s ease;
}

.block-featured-services__card:hover {
    box-shadow: 0px 22px 50px rgba(0, 0, 0, 0.22); /* hardcoded: deeper hover elevation */
}

.block-featured-services__card-bg {
    position: absolute;
    inset: -12px; /* hardcoded: overscan so blurred edges stay covered */
    background-image:
        linear-gradient(to bottom, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.55)),
        var(--card-bg, none);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(1px); /* hardcoded: readability blur */
    z-index: 0;
}

/* Hover image layer: sits above the main image, fades in on card hover. */
.block-featured-services__card-bg--hover {
    background-image:
        linear-gradient(to bottom, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.55)),
        var(--card-hover-bg, none);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.block-featured-services__card:hover .block-featured-services__card-bg--hover { opacity: 1; }

.block-featured-services__card-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 460px; /* hardcoded: matches card height */
    padding: var(--spacing-lg);
}

.block-featured-services__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin: 0;
    padding: 0;
    list-style: none;
}

.block-featured-services__tag {
    padding: 4px var(--spacing-sm); /* hardcoded: chip vertical padding */
    font-size: 11px; /* hardcoded: chip size (no token) */
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-muted);
    background: rgba(255, 255, 255, 0.6); /* hardcoded: translucent chip */
    border: 1px solid rgba(0, 0, 0, 0.08); /* hardcoded: faint border */
    border-radius: 999px; /* hardcoded: pill radius */
}

.block-featured-services__card-content { margin-top: auto; }

.block-featured-services__card-title {
    margin: 0 0 var(--spacing-sm);
    color: var(--color-text);
    font-weight: 400;
    font-size: 22px; /* hardcoded: card title size (no token) */
    /* Reserve up to 2 lines so titles align across cards of different content
       length; em-based so it tracks the font-size at every breakpoint. */
    min-height: 2.4em; /* hardcoded: 2 lines at line-height 1.2 */
}

.block-featured-services__card-text {
    margin: 0 0 var(--spacing-md);
    color: var(--color-text);
    font-size: 14px; /* hardcoded: card text size (no token) */
    /* Reserve up to 5 lines so the text block and the button below it line up
       across cards regardless of copy length. */
    min-height: 7.5em; /* hardcoded: 5 lines at line-height 1.5 */
}

.block-featured-services__card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.55); /* hardcoded: translucent fill */
    border: 1px solid var(--color-text);
    border-radius: 999px; /* hardcoded: pill radius */
    text-decoration: none;
    line-height: 1.2;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.block-featured-services__card-link:hover { background: var(--color-text); color: var(--color-bg); }

/* Numbered pagination. */
.block-featured-services__pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xl);
}

.block-featured-services__page {
    min-width: 40px; /* hardcoded: page button size */
    height: 40px; /* hardcoded: page button size */
    padding: 0 var(--spacing-sm);
    color: var(--color-text);
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 999px; /* hardcoded: pill radius */
    font: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.block-featured-services__page:hover { border-color: var(--color-text); }

.block-featured-services__page.is-active {
    color: var(--color-bg);
    background: #1f4d3f; /* hardcoded: brand dark green (no token) */
    border-color: #1f4d3f;
    cursor: default;
}

/* ==========================================================================
   BLOCK-WHAT-OPTIMIZE
   ========================================================================== */
.block-what-optimize__head {
    background: #1f4d3f; /* hardcoded: brand dark green (no token) */
    padding-block: var(--spacing-xl);
    text-align: center;
}

.block-what-optimize__subtitle {
    margin: 0 0 var(--spacing-sm);
    color: rgba(255, 255, 255, 0.75); /* hardcoded: muted white on green */
    font-size: 13px; /* hardcoded: eyebrow size (no token) */
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.block-what-optimize__title {
    margin: 0;
    color: var(--color-bg);
    font-weight: 400;
    font-size: 36px; /* hardcoded: title size (no token) */
    line-height: 1.15;
}

.block-what-optimize__rows {
    display: flex;
    flex-direction: column;
    /* gap: var(--spacing-2xl); */
    padding-block: var(--spacing-2xl);
    padding-top: 0;
}

.block-what-optimize__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* gap: var(--spacing-2xl); */
    align-items: center;
}

.block-what-optimize__content{
    padding: 0 60px;
}

.block-what-optimize__rows .block-what-optimize__row:nth-child(even) .block-what-optimize__content{
    padding-left: 0;
}

/* Even rows flip: content on the left, image on the right. */
.block-what-optimize__row:nth-child(even) .block-what-optimize__media { order: 2; }

/* Parallax: the row image is a fixed-attachment background, so it stays locked
   to the viewport while the row scrolls over it (pure CSS, no JS). The image
   URL is set inline on the element as --row-image. */
.block-what-optimize__media {
    aspect-ratio: 16 / 11; /* hardcoded: row image ratio */
    background-image: var(--row-image, none);
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    /* With a fixed background, size is relative to the viewport, so < 100% zooms
       the image out. Lower the number to zoom out more. The background-color
       fills any thin edge that a below-cover size can expose. */
    background-size: 90%; /* hardcoded: zoom-out amount (tunable) */
    background-color: var(--color-border);
}

.block-what-optimize__row-title {
    margin: 0 0 var(--spacing-md);
    font-weight: 400;
    font-size: 32px; /* hardcoded: row title size (no token) */
    line-height: 1.15;
}

.block-what-optimize__row-text {
    /* max-width: 42ch; */
    margin: 0 0 var(--spacing-lg);
    color: var(--color-muted);
}

.block-what-optimize__row-link {
    display: inline-block;
    color: var(--color-text);
    text-decoration: underline;
    text-underline-offset: 4px; /* hardcoded: underline spacing */
}

.block-what-optimize__row-link:hover { color: var(--color-muted); }

/* ==========================================================================
   BLOCK-PHYSICIAN-GUIDED
   ========================================================================== */
.block-physician-guided { 
    padding-block: var(--spacing-2xl); 
    background: #F8F8F8;
}

.block-physician-guided__inner {
    display: grid;
    grid-template-columns: minmax(260px, 340px) 1fr; /* hardcoded: intro column width */
    gap: var(--spacing-2xl);
    align-items: center;
}

.block-physician-guided__title {
    margin: 0 0 var(--spacing-md);
    font-weight: 400;
    font-size: 34px; /* hardcoded: title size (no token) */
    line-height: 1.15;
}

.block-physician-guided__description {
    margin: 0;
    max-width: 36ch;
    color: var(--color-muted);
}

.block-physician-guided__steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    margin: 0;
    padding: 0;
    list-style: none;
}

.block-physician-guided__step {
    position: relative;
    text-align: center;
}

/* Connector line between adjacent step icons (single-row desktop only). */
/* .block-physician-guided__step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 32px;
    left: calc(50% + 40px);
    right: calc(-50% + 40px);
    border-top: 1px solid var(--color-border);
} */

.block-physician-guided__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px; /* hardcoded: icon circle size */
    height: 64px; /* hardcoded: icon circle size */
    margin-bottom: var(--spacing-md);
    background: var(--color-bg);
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06); /* hardcoded soft shadow */
}

.block-physician-guided__icon img {
    width: auto;
    /* max-height: 26px; hardcoded: icon glyph size */
}

.block-physician-guided__step-num {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--color-muted);
    font-size: 12px; /* hardcoded: step label size (no token) */
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.block-physician-guided__step-title {
    margin: 0 0 var(--spacing-sm);
    font-size: 16px; /* hardcoded: step title size */
    font-weight: 600;
}

.block-physician-guided__step-text {
    margin: 0;
    color: var(--color-muted);
    font-size: 14px; /* hardcoded: step text size (no token) */
}

/* ==========================================================================
   BLOCK-PATIENT-REVIEWS
   ========================================================================== */
.block-patient-reviews { padding-block: var(--spacing-2xl); }

.block-patient-reviews__head {
    margin-bottom: var(--spacing-2xl);
    text-align: center;
}

.block-patient-reviews__subtitle {
    margin: 0 0 var(--spacing-sm);
    color: var(--color-muted);
    font-size: 13px; /* hardcoded: eyebrow size (no token) */
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.block-patient-reviews__title {
    margin: 0;
    font-weight: 400;
    font-size: 36px; /* hardcoded: title size (no token) */
    line-height: 1.15;
}

.block-patient-reviews__grid {
    position: relative; /* offsetParent for the collapse measurement in main.js */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    transition: max-height 0.4s ease;
}

.block-patient-reviews__item {
    text-align: center;
    padding-inline: var(--spacing-md);
}

.block-patient-reviews__icon {
    width: 34px; /* hardcoded: quote icon size */
    height: auto;
    margin: 0 auto var(--spacing-md);
}

.block-patient-reviews__item-title {
    margin: 0 0 var(--spacing-md);
    font-size: 16px; /* hardcoded: review title size */
    font-weight: 600;
}

.block-patient-reviews__item-text {
    margin: 0;
    color: var(--color-muted);
}

.block-patient-reviews__actions {
    display: flex;
    justify-content: center;
    margin-top: var(--spacing-xl);
}

.block-patient-reviews__toggle {
    min-width: 280px; /* hardcoded: button width (matches design) */
    padding: var(--spacing-sm) var(--spacing-lg);
    color: var(--color-text);
    background: var(--color-border);
    border: 0;
    border-radius: var(--radius);
    font: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.block-patient-reviews__toggle:hover { background: #d7dbe0; } /* hardcoded: slightly darker grey */

/* ==========================================================================
   BLOCK-TRUSTED-PERFORMERS
   ========================================================================== */
.block-trusted-performers { padding-block: var(--spacing-2xl); }

.block-trusted-performers__head {
    margin-bottom: var(--spacing-2xl);
    text-align: center;
}

.block-trusted-performers__subtitle {
    margin: 0 0 var(--spacing-sm);
    color: var(--color-muted);
    font-size: 13px; /* hardcoded: eyebrow size (no token) */
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.block-trusted-performers__title {
    margin: 0;
    font-weight: 400;
    font-size: 36px; /* hardcoded: title size (no token) */
    line-height: 1.15;
}

/* Marquee viewport - constrained to the site container; cards outside its
   bounds are clipped. */
.block-trusted-performers__viewport {
    width: 100%;
    overflow: hidden;
}

.block-trusted-performers__track {
    display: flex;
    gap: var(--spacing-md);
    width: max-content;
    will-change: transform;
}

.block-trusted-performers__card {
    position: relative;
    flex: 0 0 auto;
    /* 4 cards fit the container: (1240 max - 2*20 pad - 3*16 gap) / 4 = 288.
       Hardcoded because a % basis would resolve against the wide track, not
       the viewport. JS reads the live offsetWidth. */
    width: 288px;
    aspect-ratio: 3 / 4; /* hardcoded: card ratio */
    border-radius: 14px; /* hardcoded: card radius */
    overflow: hidden;
    background: var(--color-border);
}

.block-trusted-performers__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Click-to-sound affordance and state badge. */
.block-trusted-performers__card { cursor: pointer; }

.block-trusted-performers__card.is-sound-on::after {
    content: "\1F50A";
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    font-size: 18px;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

/* YouTube embed variant: vertical Shorts (9:16) faked to cover the 3:4 card
   (iframe spans the card width; top/bottom overflow is cropped). */
.block-trusted-performers__video--youtube {
    inset: auto;
    top: 50%;
    left: 50%;
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    transform: translate(-50%, -50%);
    border: 0;
    background: #000;
    pointer-events: none;
}

/* Bottom gradient so the overlaid title stays readable. */
.block-trusted-performers__card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0) 45%); /* hardcoded overlay */
    pointer-events: none;
}

.block-trusted-performers__card-title {
    position: absolute;
    left: var(--spacing-md);
    right: var(--spacing-md);
    bottom: var(--spacing-md);
    z-index: 1;
    color: #ffffff; /* hardcoded: text over video */
    font-weight: 600;
    font-size: 15px; /* hardcoded: card title size (no token) */
    line-height: 1.3;
}

/* ==========================================================================
   SITE-FOOTER
   ========================================================================== */
.site-footer {
    padding-block: var(--spacing-2xl);
    background: #F8F8F8;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr; /* hardcoded: brand column is wider */
    gap: var(--spacing-2xl);
}

.site-footer__logo {
    display: inline-block;
    margin-bottom: var(--spacing-md);
    text-decoration: none;
}

.site-footer__logo img { max-height: 36px; width: auto; } /* hardcoded logo height */

.site-footer__text {
    max-width: 32ch;
    margin: 0 0 var(--spacing-lg);
    color: var(--color-muted);
    font-size: 14px; /* hardcoded: footer body size (no token) */
}

.site-footer__credit {
    margin: 0;
    color: var(--color-muted);
    font-size: 14px; /* hardcoded: footer body size (no token) */
}

.site-footer__heading {
    margin: 0 0 var(--spacing-lg);
    font-weight: 400;
    font-size: 18px; /* hardcoded: column heading size (no token) */
}

.site-footer__label {
    margin: 0 0 var(--spacing-xs);
    color: var(--color-muted);
    font-size: 14px; /* hardcoded: label size (no token) */
}

.site-footer__contact {
    display: inline-block;
    margin-bottom: var(--spacing-md);
    text-decoration: none;
    font-weight: 600;
    color: #215446;
}

.site-footer__contact:hover { color: var(--color-muted); }

.site-footer__address {
    margin: 0;
    color: var(--color-muted);
    font-size: 14px; /* hardcoded: address size (no token) */
}

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

.site-footer__links li { margin-bottom: var(--spacing-sm); }

.site-footer__links a,
.site-footer__links span {
    text-decoration: none;
    color: var(--color-muted);
    font-size: 14px; /* hardcoded: link size (no token) */
}

.site-footer__links a:hover { color: var(--color-text); }

/* Grouped menu-dropdown lists in the footer (item title + its sub-links). */
.site-footer__group + .site-footer__group { margin-top: var(--spacing-lg); }

.site-footer__group-title {
    margin: 0 0 var(--spacing-sm);
    color: var(--color-text);
    font-size: 14px; /* hardcoded: matches footer link size */
    font-weight: 600;
}

/* ==========================================================================
   THANK-YOU
   ========================================================================== */
.thank-you {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 640px; /* hardcoded: readable centered column (no token) */
    margin-inline: auto;
}

.thank-you__title {
    font-size: 44px; /* hardcoded: page heading (no token) */
    margin: 0 0 var(--spacing-md);
    color: #1f4d3f; /* hardcoded: brand dark green (no token) */
}

.thank-you__text {
    font-size: 18px; /* hardcoded: intro copy (no token) */
    color: var(--color-muted);
    max-width: 48ch;
    margin: 0 0 var(--spacing-xl);
}

.thank-you__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-xl);
    background: #1f4d3f; /* hardcoded: brand dark green (no token) */
    color: var(--color-bg);
    border: 1px solid #1f4d3f; /* hardcoded: matches fill */
    border-radius: 999px; /* hardcoded: pill radius */
    text-decoration: none;
    line-height: 1.2;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.thank-you__btn:hover { background: #173a30; border-color: #173a30; } /* hardcoded: darker green */

/* ==========================================================================
   BLOCK-CONTACT-US
   ========================================================================== */
.block-contact-us {
    padding-block: var(--spacing-2xl);
    background-image: var(--contact-us-bg, none);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.block-contact-us__inner {
    display: grid;
    grid-template-columns: minmax(0, 360px) 1fr; /* hardcoded: fixed locations card + fluid form */
    gap: var(--spacing-lg);
    align-items: stretch;
}

/* Centered header spanning both columns, above the two cards. */
.block-contact-us__header {
    grid-column: 1 / -1;
    max-width: 640px; /* hardcoded: readable centered header (no token) */
    margin: 0 auto var(--spacing-lg);
    text-align: center;
}

.block-contact-us__title {
    margin: 0 0 var(--spacing-sm);
    font-weight: 600;
    font-size: 40px; /* hardcoded: section title size (no token) */
    color: var(--color-text);
}

.block-contact-us__description {
    margin: 0;
    /* color: var(--color-muted); */
    font-size: 16px; /* hardcoded: intro copy size */
}

/* Frosted "glass" panels over the background image. */
.block-contact-us__card {
    padding: var(--spacing-xl);
    border-radius: 20px; /* hardcoded: card radius (no token) */
    background: rgba(255, 255, 255, 0.15); /* hardcoded: glass fill */
    border: 1px solid rgba(255, 255, 255, 0.35); /* hardcoded: glass edge */
    backdrop-filter: blur(12px); /* hardcoded: glass blur */
    -webkit-backdrop-filter: blur(12px); /* hardcoded: Safari glass blur */
}

.block-contact-us__heading {
    margin: 0 0 var(--spacing-lg);
    font-weight: 600;
    font-size: 22px; /* hardcoded: card heading size (no token) */
    color: var(--color-text);
}

.block-contact-us__location-name {
    margin: 0 0 var(--spacing-sm);
    font-weight: 600;
    font-size: 18px; /* hardcoded: location name size (no token) */
    color: var(--color-text);
}

.block-contact-us__phone {
    display: block;
    margin-bottom: var(--spacing-sm);
    text-decoration: none;
    color: var(--color-text);
}

.block-contact-us__phone:hover { color: var(--color-muted); }

.block-contact-us__directions {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    text-decoration: none;
    color: var(--color-muted);
}

.block-contact-us__directions:hover { color: var(--color-text); }

.block-contact-us__pin { flex: 0 0 auto; }

/* Formidable form inside the card - mirrors the .services-popup__form look
   (light rounded fields, small grey labels, brand-green pill submit). */
.block-contact-us__form .frm_form_fields fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.block-contact-us__form .frm_screen_reader {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.block-contact-us__form .frm_fields_container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.block-contact-us__form .frm_form_field {
    flex: 1 1 100%;
    margin: 0;
}

/* First/Last on one row; Contact Number/Email on the next. */
.block-contact-us__form .frm_half,
.block-contact-us__form .frm6 {
    flex: 1 1 calc(50% - (var(--spacing-md) / 2));
}

.block-contact-us__form .frm_primary_label {
    display: block;
    margin-bottom: var(--spacing-xs);
    /* color: var(--color-muted); */
    font-size: 13px; /* hardcoded: field label size (no token) */
    font-weight: 400;
}

.frm_hidden_container .frm_primary_label{
    visibility: visible;
}

.block-contact-us__form .frm_required { color: inherit; }

/* Descriptions ("First" / "Last") are noise here. */
.block-contact-us__form .frm_description { display: none; }

.block-contact-us__form input[type="text"],
.block-contact-us__form input[type="email"],
.block-contact-us__form input[type="tel"],
.block-contact-us__form input[type="number"],
.block-contact-us__form select,
.block-contact-us__form textarea {
    width: 100%;
    padding: 12px var(--spacing-md); /* hardcoded: field vertical padding */
    color: var(--color-text);
    background: #eef0f1; /* hardcoded: field fill */
    border: 1px solid transparent;
    border-radius: var(--radius);
    font: inherit;
}

.block-contact-us__form input::placeholder { color: var(--color-muted); }

.block-contact-us__form input:focus,
.block-contact-us__form select:focus,
.block-contact-us__form textarea:focus {
    outline: none;
    border-color: var(--color-text);
}

/* Phone field: no country flag (defensive against intl-tel-input). */
.block-contact-us__form .iti { width: 100%; display: block; }
.block-contact-us__form .iti__flag-container,
.block-contact-us__form .iti__selected-flag { display: none !important; } /* override plugin */
.block-contact-us__form .iti input[type="tel"] { padding-left: var(--spacing-md) !important; } /* reset plugin inline padding */

.block-contact-us__form .frm_submit {
    display: flex;
    justify-content: flex-end;
    margin-top: var(--spacing-sm);
}

/* Submit styled like .services-popup__form (brand green pill). */
.block-contact-us__form .frm_button_submit {
    padding: var(--spacing-md) var(--spacing-2xl);
    color: var(--color-bg);
    background: #1f4d3f; /* hardcoded: brand dark green (no token) */
    border: 0;
    border-radius: 999px; /* hardcoded: pill radius */
    font: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.block-contact-us__form .frm_button_submit:hover { background: #173a30; } /* hardcoded: darker green */

.block-contact-us__form .frm_error,
.block-contact-us__form .frm_error_style {
    color: #b00020; /* hardcoded: validation red */
    font-size: 13px; /* hardcoded */
}

.block-contact-us__form input[aria-invalid="true"] {
    border-color: #b00020; /* hardcoded: validation red */
}

.block-contact-us__form .block-contact-us__field-error {
    display: block;
    margin-top: var(--spacing-xs);
    color: #b00020; /* hardcoded: validation red */
    font-size: 13px; /* hardcoded */
}

/* ==========================================================================
   BLOCK-BLOG-SECTION
   ========================================================================== */
.block-blog-section { padding-block: var(--spacing-2xl); }

.block-blog-section__title {
    margin: 0 0 var(--spacing-2xl);
    text-align: center;
    color: #1f4d3f; /* hardcoded: brand dark green (no token) */
    font-weight: 600;
    font-size: 28px; /* hardcoded: section title size (no token) */
}

.block-blog-section__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 cards per row */
    gap: var(--spacing-xl);
}

.block-blog-section__card {
    display: flex;
    flex-direction: column;
    padding: var(--spacing-sm);
    border-radius: var(--radius);
    transition: box-shadow 0.3s ease;
}

.block-blog-section__card:hover {
    box-shadow: 0 14px 37px rgba(0, 0, 0, 0.13); /* hardcoded: soft hover elevation */
}

.block-blog-section__card-media {
    display: block;
    aspect-ratio: 16 / 10; /* hardcoded: card image ratio */
    margin-bottom: var(--spacing-md);
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--color-border);
}

.block-blog-section__card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.block-blog-section__card-title {
    margin: 0 0 var(--spacing-sm);
    font-weight: 600;
    font-size: 18px; /* hardcoded: card title size (no token) */
    line-height: 1.3;
}

.block-blog-section__card-title a {
    color: #1f4d3f; /* hardcoded: brand dark green (no token) */
    text-decoration: none;
}

.block-blog-section__card-title a:hover { color: #173a30; } /* hardcoded: darker green */

.block-blog-section__card-author {
    margin: 0 0 var(--spacing-xs);
    color: var(--color-muted);
    font-size: 13px; /* hardcoded: byline size (no token) */
}

.block-blog-section__card-link {
    align-self: flex-start;
    color: var(--color-muted);
    font-size: 13px; /* hardcoded: link size (no token) */
    text-decoration: underline;
    text-underline-offset: 3px; /* hardcoded: underline spacing */
}

.block-blog-section__card-link:hover { color: var(--color-text); }

/* Infinite-scroll loader: a centered sentinel; the spinner shows while fetching. */
.block-blog-section__loader {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60px; /* hardcoded: observable sentinel height */
    margin-top: var(--spacing-xl);
}

.block-blog-section__spinner {
    display: none;
    width: 32px; /* hardcoded: spinner size */
    height: 32px;
    border: 3px solid var(--color-border);
    border-top-color: #1f4d3f; /* hardcoded: brand dark green (no token) */
    border-radius: 50%;
    animation: blog-spin 0.8s linear infinite;
}

.block-blog-section__loader.is-loading .block-blog-section__spinner { display: block; }

@keyframes blog-spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   SINGLE-POST
   ========================================================================== */
.single-post__inner {
    max-width: 860px; /* hardcoded: readable article column (no token) */
    margin-inline: auto;
}

.single-post__title {
    margin: 0 0 var(--spacing-md);
    color: #1f4d3f; /* hardcoded: brand dark green (no token) */
    font-weight: 600;
    font-size: 40px; /* hardcoded: article title size (no token) */
    line-height: 1.15;
}

.single-post__meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin: 0 0 var(--spacing-xl);
    color: var(--color-muted);
    font-size: 14px; /* hardcoded: byline size (no token) */
}

/* WYSIWYG body typography - shared by the single post and the Text Block layout
   (.block-text-block__content) so both render identically. */
.single-post__content,
.block-text-block__content {
    color: var(--color-text);
    line-height: 1.7; /* hardcoded: comfortable reading measure */
}

.single-post__content > *:first-child,
.block-text-block__content > *:first-child { margin-top: 0; }

.single-post__content p,
.block-text-block__content p { margin: 0 0 var(--spacing-lg); }

.single-post__content h2,
.single-post__content h3,
.single-post__content h4,
.single-post__content h6,
.block-text-block__content h2,
.block-text-block__content h3,
.block-text-block__content h4,
.block-text-block__content h6 {
    color: #1f4d3f; /* hardcoded: brand dark green (no token) */
    font-weight: 600;
    line-height: 1.2;
    margin: var(--spacing-2xl) 0 var(--spacing-md);
}

.single-post__content h2,
.block-text-block__content h2 { font-size: 28px; } /* hardcoded */
.single-post__content h3,
.block-text-block__content h3 { font-size: 22px; } /* hardcoded */
.single-post__content h4,
.block-text-block__content h4 { font-size: 18px; } /* hardcoded */
.single-post__content h6,
.block-text-block__content h6 { font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; } /* hardcoded: small eyebrow-style heading */

.single-post__content a,
.block-text-block__content a {
    color: #1f4d3f; /* hardcoded: brand dark green (no token) */
    text-decoration: underline;
    text-underline-offset: 2px; /* hardcoded: underline spacing */
}

.single-post__content a:hover,
.block-text-block__content a:hover { color: #173a30; } /* hardcoded: darker green */

.single-post__content ul,
.single-post__content ol,
.block-text-block__content ul,
.block-text-block__content ol {
    margin: 0 0 var(--spacing-lg);
    padding-left: var(--spacing-lg);
}

.single-post__content li,
.block-text-block__content li { margin-bottom: var(--spacing-xs); }

.single-post__content img,
.block-text-block__content img {
    height: auto;
    border-radius: var(--radius);
    margin: var(--spacing-md) 0;
}

.single-post__content blockquote,
.block-text-block__content blockquote {
    margin: var(--spacing-lg) 0;
    padding-left: var(--spacing-lg);
    border-left: 3px solid #1f4d3f; /* hardcoded: brand dark green (no token) */
    color: var(--color-muted);
    font-style: italic;
}

/* ==========================================================================
   BLOCK-TEXT-BLOCK
   ========================================================================== */
.block-text-block { padding-block: var(--spacing-2xl); }

/* Readable centered column; typography is shared with .single-post__content above. */
.block-text-block__content {
    max-width: 860px; /* hardcoded: readable column (no token) */
    margin-inline: auto;
}

body.page-id-262 #frm_field_19_container{
    visibility: hidden;
}