/* =========================================================================
   MERIDIAN — modern minimalist tenant theme.
   Crisp off-white canvas, Archivo grotesque (single family, weight contrast),
   generous whitespace, hairline structure, flat crisp-white surfaces, and the
   tenant's brand color as ONE precise accent. Deliberately the opposite of the
   warm/textured/decorative and dark themes — quiet, architectural, simple.

   Brand CTAs use --brand-cta (brand primary, auto-deepened only if needed so a
   white label is always legible) — ONE button treatment everywhere. Brand-as-
   text/accents use --brand-primary-readable. Tokens from header.php per
   THEME_BUILD_SPEC §2. Loads AFTER classic style.css and overrides it.
   ========================================================================= */

:root {
    --mer-bg:        #F5F4F0;   /* soft neutral off-white canvas */
    --mer-bg-2:      #EFEDE7;   /* faint band tone */
    --mer-surface:   #FFFFFF;   /* crisp white cards */
    --mer-ink:       #171613;   /* near-black */
    --mer-ink-soft:  #56534B;   /* secondary */
    --mer-ink-faint: #8B877D;   /* meta / faint */
    --mer-line:      #E5E3DB;   /* hairline */
    --mer-line-2:    #D8D5CB;   /* stronger hairline */
    --mer-gold:      #B79A5B;   /* review stars */

    --mer-shadow-sm: 0 1px 2px rgba(20,18,13,.04);
    --mer-shadow:    0 2px 6px rgba(20,18,13,.05), 0 12px 30px rgba(20,18,13,.06);
    --mer-shadow-lg: 0 6px 16px rgba(20,18,13,.06), 0 22px 48px rgba(20,18,13,.09);

    --mer-radius:    10px;
    --mer-radius-lg: 14px;
    --mer-radius-sm: 8px;

    --mer-ease:      cubic-bezier(.22,.61,.30,1);
    --mer-font:      'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --mer-maxw:      1160px;
}

/* ---------- Base ---------- */
body.theme-meridian {
    margin: 0;
    background: var(--mer-bg);
    color: var(--mer-ink);
    font-family: var(--mer-font);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
body.theme-meridian * { box-sizing: border-box; }

.theme-meridian .mer-wrap { max-width: var(--mer-maxw); margin: 0 auto; padding: 0 24px; }
.theme-meridian .mer-wrap-narrow { max-width: 800px; }

.theme-meridian h1, .theme-meridian h2, .theme-meridian h3, .theme-meridian h4 {
    font-family: var(--mer-font);
    font-weight: 700;
    color: var(--mer-ink);
    letter-spacing: -0.025em;
    line-height: 1.08;
    margin: 0 0 .5em;
    text-wrap: balance;
}
.theme-meridian h2 { font-size: clamp(1.9rem, 3.4vw, 2.85rem); }
.theme-meridian h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
.theme-meridian p { margin: 0 0 1em; color: var(--mer-ink-soft); }
.theme-meridian a { color: inherit; text-decoration: none; }
/* Accent word (city/state or accent_heading() last word): brand color, medium
   weight — a single precise highlight, no italics/serif. */
.theme-meridian em,
.theme-meridian h1 em, .theme-meridian h2 em, .theme-meridian h3 em {
    font-style: normal;
    font-weight: 700;
    color: var(--brand-primary-readable);
}
.theme-meridian img { max-width: 100%; display: block; }

/* eyebrow / kicker — uppercase, tracked, with a short leading rule */
.theme-meridian .mer-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: .74rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--brand-primary-readable);
    margin-bottom: 18px;
}
.theme-meridian .mer-eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    background: currentColor;
}

/* ---------- Buttons (ONE unified system) ---------- */
.theme-meridian .mer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: var(--mer-font);
    font-weight: 600;
    font-size: .95rem;
    line-height: 1;
    padding: 15px 26px;
    border-radius: var(--mer-radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .25s var(--mer-ease), box-shadow .25s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.theme-meridian .mer-btn svg { flex-shrink: 0; transition: transform .25s var(--mer-ease); }
.theme-meridian .mer-btn-primary {
    background: var(--brand-cta);
    color: var(--brand-cta-ink);
}
.theme-meridian .mer-btn-primary:hover {
    background: color-mix(in srgb, var(--brand-cta) 88%, #000);
    color: var(--brand-cta-ink);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--brand-cta) 30%, transparent);
}
.theme-meridian .mer-btn-primary:hover svg { transform: translateX(3px); }
.theme-meridian .mer-btn-primary:active { transform: translateY(0); }
.theme-meridian .mer-btn-ghost {
    background: transparent;
    color: var(--mer-ink);
    border-color: var(--mer-line-2);
}
.theme-meridian .mer-btn-ghost:hover {
    background: var(--mer-surface);
    border-color: var(--mer-ink);
    color: var(--mer-ink);
    transform: translateY(-2px);
}

/* ---------- Header / nav ---------- */
.theme-meridian .mer-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: color-mix(in srgb, var(--mer-bg) 85%, transparent);
    backdrop-filter: saturate(120%) blur(12px);
    -webkit-backdrop-filter: saturate(120%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s ease, background-color .3s ease;
}
.theme-meridian .mer-header.scrolled { border-bottom-color: var(--mer-line); }
.theme-meridian .mer-nav {
    max-width: var(--mer-maxw);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.theme-meridian .mer-logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    color: var(--mer-ink);
}
.theme-meridian .mer-logo img { height: 38px; width: auto; }
.theme-meridian .mer-logo-mark {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 9px;
    background: var(--brand-cta);
    color: var(--brand-cta-ink);
    font-weight: 700;
    font-size: 1.05rem;
}
.theme-meridian .mer-nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}
.theme-meridian .mer-nav-links > a {
    font-size: .93rem;
    font-weight: 500;
    color: var(--mer-ink-soft);
    transition: color .2s ease;
    position: relative;
}
.theme-meridian .mer-nav-links > a:hover,
.theme-meridian .mer-nav-links > a.active { color: var(--mer-ink); }
.theme-meridian .mer-nav-links > a.active::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 2px;
    background: var(--brand-primary-readable);
}
.theme-meridian .mer-nav-phone {
    font-weight: 600 !important;
    color: var(--mer-ink) !important;
}
.theme-meridian .mer-nav-cta {
    padding: 11px 20px;
    border-radius: var(--mer-radius-sm);
    background: var(--brand-cta) !important;
    color: var(--brand-cta-ink) !important;
    font-weight: 600;
    transition: transform .25s ease, background-color .2s ease;
}
.theme-meridian .mer-nav-cta:hover {
    background: color-mix(in srgb, var(--brand-cta) 88%, #000) !important;
    transform: translateY(-2px);
}
.theme-meridian .mer-nav-toggle {
    display: none;
    background: none; border: none; cursor: pointer;
    color: var(--mer-ink); padding: 6px;
}

/* ---------- Hero ---------- */
.theme-meridian .mer-hero { padding: clamp(60px, 9vw, 120px) 0 clamp(44px, 6vw, 80px); }
.theme-meridian .mer-hero-grid {
    display: grid; grid-template-columns: 1fr; gap: clamp(36px, 5vw, 60px); align-items: center;
}
.theme-meridian .mer-hero.has-form .mer-hero-grid { grid-template-columns: 1fr; }
.theme-meridian .mer-hero-content { max-width: 680px; }
.theme-meridian .mer-hero-content h1 {
    font-size: clamp(2.7rem, 6vw, 4.4rem);
    font-weight: 700;
    line-height: 1.0;
    letter-spacing: -0.035em;
    margin: 0 0 22px;
}
.theme-meridian .mer-hero-sub {
    font-size: 1.16rem; line-height: 1.55; color: var(--mer-ink-soft);
    max-width: 52ch; margin: 0 0 30px;
}
.theme-meridian .mer-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.theme-meridian .mer-trust {
    display: flex; flex-wrap: wrap; gap: 10px 24px;
    margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--mer-line);
}
.theme-meridian .mer-trust-item {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .9rem; font-weight: 500; color: var(--mer-ink-soft);
}
.theme-meridian .mer-trust-item svg { color: var(--brand-primary-readable); }
.theme-meridian .mer-hero-media img {
    width: 100%; border-radius: var(--mer-radius-lg);
    border: 1px solid var(--mer-line);
    aspect-ratio: 5 / 4; object-fit: cover;
}
@media (min-width: 900px) {
    .theme-meridian .mer-hero.has-form .mer-hero-grid { grid-template-columns: 1.05fr .95fr; align-items: start; }
    .theme-meridian .mer-hero-grid:has(.mer-hero-media) { grid-template-columns: 1.02fr .98fr; }
}

/* ---------- Hero form card ---------- */
.theme-meridian .mer-form-card {
    background: var(--mer-surface);
    border: 1px solid var(--mer-line);
    border-radius: var(--mer-radius-lg);
    padding: 30px;
    box-shadow: var(--mer-shadow);
}
.theme-meridian .mer-form-tag { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; color: var(--mer-ink); margin-bottom: 4px; }
.theme-meridian .mer-form-sub { font-size: .95rem; margin-bottom: 18px; }
.theme-meridian .mer-form .form-group { margin-bottom: 13px; }
.theme-meridian .mer-form label { display: block; font-size: .78rem; font-weight: 600; color: var(--mer-ink-soft); margin-bottom: 6px; letter-spacing: .01em; }
.theme-meridian .mer-form .required { color: var(--brand-primary-readable); }
.theme-meridian .mer-form input,
.theme-meridian .mer-form select,
.theme-meridian .mer-form textarea {
    width: 100%; box-sizing: border-box;
    font-family: var(--mer-font); font-size: .95rem; color: var(--mer-ink);
    background: var(--mer-bg);
    border: 1px solid var(--mer-line-2);
    border-radius: var(--mer-radius-sm);
    padding: 12px 14px;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.theme-meridian .mer-form input::placeholder,
.theme-meridian .mer-form textarea::placeholder { color: var(--mer-ink-faint); }
.theme-meridian .mer-form input:focus,
.theme-meridian .mer-form select:focus,
.theme-meridian .mer-form textarea:focus {
    outline: none; background: #fff;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 15%, transparent);
}
.theme-meridian .mer-consent {
    display: flex; align-items: flex-start; gap: 8px;
    cursor: pointer; font-size: 12.5px; font-weight: 400 !important;
    line-height: 1.45; color: var(--mer-ink-soft) !important; margin-bottom: 0 !important;
}
.theme-meridian .mer-consent input { width: auto !important; margin-top: 3px; flex-shrink: 0; }
.theme-meridian .mer-form-submit {
    width: 100%;
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: var(--mer-font); font-weight: 600; font-size: 1rem;
    padding: 15px 24px; margin-top: 6px;
    border: none; border-radius: var(--mer-radius-sm); cursor: pointer;
    background: var(--brand-cta); color: var(--brand-cta-ink);
    transition: transform .25s ease, box-shadow .25s ease, background-color .2s ease;
}
.theme-meridian .mer-form-submit:hover {
    background: color-mix(in srgb, var(--brand-cta) 88%, #000);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--brand-cta) 30%, transparent);
}
.theme-meridian .mer-form-submit svg { transition: transform .25s var(--mer-ease); }
.theme-meridian .mer-form-submit:hover svg { transform: translateX(3px); }

/* ---------- Section rhythm ---------- */
.theme-meridian .mer-section { padding: clamp(56px, 8vw, 100px) 0; }
.theme-meridian .mer-section + .mer-section { border-top: 1px solid var(--mer-line); }
.theme-meridian .mer-section-head { max-width: 640px; margin-bottom: 46px; }
.theme-meridian .mer-section-head h2 { margin-bottom: 0; }
.theme-meridian .mer-section-desc { font-size: 1.08rem; margin-top: 14px; margin-bottom: 0; }
.theme-meridian .mer-center-link { text-align: center; margin-top: 42px; }

/* ---------- Stats ---------- */
.theme-meridian .mer-stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1px; background: var(--mer-line);
    border: 1px solid var(--mer-line);
    border-radius: var(--mer-radius);
    overflow: hidden;
}
.theme-meridian .mer-stat { text-align: center; padding: 30px 16px; background: var(--mer-surface); }
.theme-meridian .mer-stat-num { font-size: clamp(2rem, 3.4vw, 2.7rem); font-weight: 700; letter-spacing: -0.03em; color: var(--mer-ink); line-height: 1; }
.theme-meridian .mer-stat-label { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mer-ink-faint); margin-top: 10px; }

/* ---------- Split (intro) ---------- */
.theme-meridian .mer-split { display: grid; grid-template-columns: 1fr; gap: clamp(30px, 5vw, 60px); align-items: center; }
.theme-meridian .mer-split-media img { width: 100%; border-radius: var(--mer-radius); border: 1px solid var(--mer-line); aspect-ratio: 4 / 3; object-fit: cover; }
.theme-meridian .mer-content-body { color: var(--mer-ink-soft); font-size: 1.05rem; }
.theme-meridian .mer-content-body p { margin-bottom: 1em; }
.theme-meridian .mer-content-body :is(h2,h3) { color: var(--mer-ink); }
@media (min-width: 860px) { .theme-meridian .mer-split { grid-template-columns: 1fr 1.1fr; } }

/* ---------- Why us ---------- */
.theme-meridian .mer-why-grid { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.theme-meridian .mer-why-list { list-style: none; margin: 30px 0 0; padding: 0; }
.theme-meridian .mer-why-item { display: flex; gap: 18px; align-items: flex-start; padding: 22px 0; border-top: 1px solid var(--mer-line); }
.theme-meridian .mer-why-item:first-child { border-top: none; padding-top: 4px; }
.theme-meridian .mer-why-ico {
    flex-shrink: 0; width: 44px; height: 44px;
    display: grid; place-items: center; border-radius: 10px;
    background: var(--mer-bg-2); color: var(--brand-primary-readable);
    border: 1px solid var(--mer-line);
}
.theme-meridian .mer-why-item h3 { margin: 2px 0 5px; font-weight: 700; font-size: 1.08rem; }
.theme-meridian .mer-why-item p { margin: 0; font-size: .98rem; }
.theme-meridian .mer-why-photo img { width: 100%; border-radius: var(--mer-radius-lg); border: 1px solid var(--mer-line); aspect-ratio: 5 / 6; object-fit: cover; }
@media (min-width: 860px) {
    .theme-meridian .mer-why-grid { grid-template-columns: 1.15fr .85fr; }
    .theme-meridian .mer-why.no-photo .mer-why-grid { grid-template-columns: 1fr; }
}

/* ---------- Cards (shared) ---------- */
.theme-meridian .mer-card {
    background: var(--mer-surface);
    border: 1px solid var(--mer-line);
    border-radius: var(--mer-radius);
    transition: transform .25s var(--mer-ease), box-shadow .25s ease, border-color .2s ease;
}
.theme-meridian a.mer-card:hover,
.theme-meridian .mer-card:hover { transform: translateY(-4px); box-shadow: var(--mer-shadow-lg); border-color: var(--mer-line-2); }

/* ---------- Services / case studies ---------- */
.theme-meridian .mer-services-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.theme-meridian .mer-svc-card { display: flex; flex-direction: column; overflow: hidden; }
.theme-meridian .mer-svc-media { overflow: hidden; }
.theme-meridian .mer-svc-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s var(--mer-ease); }
.theme-meridian .mer-svc-card:hover .mer-svc-media img { transform: scale(1.04); }
.theme-meridian .mer-svc-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.theme-meridian .mer-svc-body h3 { font-weight: 700; font-size: 1.2rem; margin: 0 0 8px; letter-spacing: -0.01em; }
.theme-meridian .mer-svc-body p { font-size: .95rem; margin: 0 0 18px; }
.theme-meridian .mer-svc-more { margin-top: auto; display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: .88rem; color: var(--brand-primary-readable); }
.theme-meridian .mer-svc-more svg { transition: transform .25s ease; }
.theme-meridian .mer-svc-card:hover .mer-svc-more svg { transform: translateX(4px); }

/* ---------- CTA band ---------- */
.theme-meridian .mer-band {
    display: grid; grid-template-columns: 1fr; gap: 0;
    background: var(--mer-surface); border: 1px solid var(--mer-line);
    border-radius: var(--mer-radius-lg); overflow: hidden;
}
.theme-meridian .mer-band-media img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; }
.theme-meridian .mer-band-text { padding: clamp(30px, 4vw, 52px); align-self: center; }
.theme-meridian .mer-band-text h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.theme-meridian .mer-band-text p { font-size: 1.03rem; margin-bottom: 24px; max-width: 46ch; }
.theme-meridian .mer-band.is-no-image { grid-template-columns: 1fr; text-align: center; }
.theme-meridian .mer-band.is-no-image .mer-band-text p { margin-left: auto; margin-right: auto; }
@media (min-width: 820px) {
    .theme-meridian .mer-band { grid-template-columns: 1fr 1fr; }
    .theme-meridian .mer-band.is-reversed .mer-band-media { order: 2; }
    .theme-meridian .mer-band.is-no-image { grid-template-columns: 1fr; }
}

/* ---------- Gallery / before-after ---------- */
.theme-meridian .mer-gallery-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.theme-meridian .mer-gallery-card { background: var(--mer-surface); border: 1px solid var(--mer-line); border-radius: var(--mer-radius); overflow: hidden; }
.theme-meridian .ba-slider { position: relative; overflow: hidden; user-select: none; aspect-ratio: 3 / 2; cursor: ew-resize; }
.theme-meridian .ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.theme-meridian .ba-slider .ba-after { clip-path: inset(0 0 0 50%); }
.theme-meridian .ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; transform: translateX(-50%); box-shadow: 0 0 0 1px rgba(20,18,13,.18); }
.theme-meridian .ba-handle::after {
    content: ""; position: absolute; top: 50%; left: 50%;
    width: 38px; height: 38px; transform: translate(-50%,-50%);
    background: #fff; border-radius: 50%; box-shadow: var(--mer-shadow);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23171613' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 5L3 10l5 5M12 5l5 5-5 5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: center;
}
.theme-meridian .ba-label { position: absolute; bottom: 12px; font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(23,22,19,.66); padding: 5px 11px; border-radius: 6px; }
.theme-meridian .ba-label-before { left: 12px; }
.theme-meridian .ba-label-after { right: 12px; }
.theme-meridian .mer-gallery-label { padding: 15px 20px; font-weight: 600; font-size: .96rem; color: var(--mer-ink); }

/* ---------- Process ---------- */
.theme-meridian .mer-process { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--mer-line); border: 1px solid var(--mer-line); border-radius: var(--mer-radius); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.theme-meridian .mer-process-step { padding: 30px 26px; background: var(--mer-surface); }
.theme-meridian .mer-process-num { font-size: 1.1rem; font-weight: 700; color: var(--brand-primary-readable); line-height: 1; margin-bottom: 16px; letter-spacing: .02em; }
.theme-meridian .mer-process-step h3 { font-weight: 700; font-size: 1.1rem; margin: 0 0 7px; }
.theme-meridian .mer-process-step p { margin: 0; font-size: .96rem; }

/* ---------- Reviews ---------- */
.theme-meridian .mer-reviews-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.theme-meridian .mer-review { padding: 28px 26px; display: flex; flex-direction: column; }
.theme-meridian .mer-review-stars { color: var(--mer-gold); letter-spacing: 3px; font-size: 1.02rem; margin-bottom: 14px; }
.theme-meridian .mer-review-text { font-size: 1.05rem; line-height: 1.55; color: var(--mer-ink); margin: 0 0 20px; }
.theme-meridian .mer-review-text.review-truncated { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.theme-meridian .mer-review-readmore { align-self: flex-start; background: none; border: none; cursor: pointer; color: var(--brand-primary-readable); font-weight: 600; font-size: .85rem; padding: 0; margin: -12px 0 18px; }
.theme-meridian .mer-review-author { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--mer-line); }
.theme-meridian .mer-review-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--mer-bg-2); color: var(--brand-primary-readable); font-weight: 700; }
.theme-meridian .mer-review-name { font-weight: 600; font-size: .94rem; color: var(--mer-ink); }
.theme-meridian .mer-review-source { font-size: .81rem; color: var(--mer-ink-faint); }

/* ---------- Videos ---------- */
.theme-meridian .mer-video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.theme-meridian .mer-video { overflow: hidden; margin: 0; }
.theme-meridian .mer-video-frame { aspect-ratio: 16 / 9; }
.theme-meridian .mer-video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.theme-meridian .mer-video figcaption { padding: 14px 20px; font-weight: 600; font-size: .94rem; color: var(--mer-ink); }

/* ---------- Blog ---------- */
.theme-meridian .mer-blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.theme-meridian .mer-blog-card { display: flex; flex-direction: column; overflow: hidden; }
.theme-meridian .mer-blog-media { overflow: hidden; }
.theme-meridian .mer-blog-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s var(--mer-ease); }
.theme-meridian .mer-blog-card:hover .mer-blog-media img { transform: scale(1.04); }
.theme-meridian .mer-blog-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.theme-meridian .mer-blog-date { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mer-ink-faint); }
.theme-meridian .mer-blog-body h3 { font-weight: 700; font-size: 1.18rem; margin: 8px 0 8px; letter-spacing: -0.01em; }
.theme-meridian .mer-blog-body p { font-size: .94rem; margin: 0 0 16px; }
.theme-meridian .mer-blog-body .mer-svc-more { margin-top: auto; }

/* ---------- FAQ ---------- */
.theme-meridian .mer-faq-list { border-top: 1px solid var(--mer-line); }
.theme-meridian .mer-faq-item { border-bottom: 1px solid var(--mer-line); }
.theme-meridian .mer-faq-item .faq-toggle {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
    background: none; border: none; cursor: pointer; text-align: left; padding: 24px 4px;
    font-family: var(--mer-font); font-size: 1.1rem; font-weight: 600; color: var(--mer-ink);
    transition: color .2s ease;
}
.theme-meridian .mer-faq-item .faq-toggle:hover { color: var(--brand-primary-readable); }
.theme-meridian .mer-faq-item .faq-icon { flex-shrink: 0; color: var(--brand-primary-readable); transition: transform .3s ease; }
.theme-meridian .mer-faq-item.active .faq-icon { transform: rotate(45deg); }
.theme-meridian .mer-faq-item .faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s var(--mer-ease); }
.theme-meridian .mer-faq-item .faq-answer-inner { padding: 0 4px 24px; color: var(--mer-ink-soft); font-size: 1.0rem; line-height: 1.65; }
.theme-meridian .mer-faq-item .faq-answer-inner p { margin: 0 0 .8em; }
.theme-meridian .mer-faq-item .faq-answer-inner :last-child { margin-bottom: 0; }

/* ---------- Service areas ---------- */
.theme-meridian .mer-areas {
    display: grid; grid-template-columns: 1fr; gap: 0;
    background: var(--mer-surface); border: 1px solid var(--mer-line);
    border-radius: var(--mer-radius-lg); overflow: hidden;
}
.theme-meridian .mer-areas-map img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.theme-meridian .mer-areas-text { padding: clamp(30px, 4vw, 52px); }
.theme-meridian .mer-areas-text h2 { margin-bottom: 12px; }
.theme-meridian .mer-areas-list { list-style: none; margin: 22px 0 28px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; }
.theme-meridian .mer-areas-list a { display: inline-flex; align-items: center; gap: 9px; padding: 7px 0; font-size: .96rem; color: var(--mer-ink-soft); transition: color .2s ease; }
.theme-meridian .mer-areas-list a:hover { color: var(--mer-ink); }
.theme-meridian .mer-areas-list svg { color: var(--brand-primary-readable); flex-shrink: 0; }
@media (min-width: 860px) {
    .theme-meridian .mer-areas { grid-template-columns: 1fr 1fr; align-items: stretch; }
    .theme-meridian .mer-areas--nomap { grid-template-columns: 1fr; }
}

/* ---------- Pre-footer CTA ---------- */
.theme-meridian .mer-pre-cta {
    margin-top: clamp(20px, 4vw, 40px);
    padding: clamp(56px, 7vw, 96px) 0;
    background: var(--mer-bg-2);
    border-top: 1px solid var(--mer-line);
    text-align: center;
}
.theme-meridian .mer-pre-cta-inner h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: 14px; }
.theme-meridian .mer-pre-cta-inner p { font-size: 1.12rem; margin: 0 auto 30px; max-width: 48ch; }
.theme-meridian .mer-pre-cta-inner .mer-hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.theme-meridian .mer-footer {
    background: var(--mer-ink);
    color: color-mix(in srgb, #fff 74%, transparent);
    padding: clamp(52px, 7vw, 80px) 0 34px;
}
.theme-meridian .mer-footer-grid { display: grid; gap: 40px 30px; grid-template-columns: 1fr; }
.theme-meridian .mer-footer-brandcol { max-width: 34ch; }
.theme-meridian .mer-footer-brand { font-weight: 700; font-size: 1.4rem; letter-spacing: -0.02em; color: #fff; margin-bottom: 12px; }
.theme-meridian .mer-footer-logo { height: 40px; width: auto; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: .9; }
.theme-meridian .mer-footer-tag { font-size: .95rem; color: color-mix(in srgb, #fff 55%, transparent); }
.theme-meridian .mer-footer h4 { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, #fff 50%, transparent); margin: 0 0 16px; }
.theme-meridian .mer-footer ul { list-style: none; margin: 0; padding: 0; }
.theme-meridian .mer-footer ul li { margin-bottom: 10px; }
.theme-meridian .mer-footer ul a { font-size: .95rem; color: color-mix(in srgb, #fff 72%, transparent); transition: color .2s ease; }
.theme-meridian .mer-footer ul a:hover { color: #fff; }
.theme-meridian .mer-footer-social { display: flex; gap: 12px; margin-top: 20px; }
.theme-meridian .mer-footer-social a {
    width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center;
    color: color-mix(in srgb, #fff 74%, transparent);
    background: color-mix(in srgb, #fff 8%, transparent);
    transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.theme-meridian .mer-footer-social a:hover { background: var(--brand-cta); color: var(--brand-cta-ink); transform: translateY(-2px); }
.theme-meridian .mer-footer-bottom {
    margin-top: 44px; padding-top: 26px;
    border-top: 1px solid color-mix(in srgb, #fff 14%, transparent);
    display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between;
    font-size: .85rem; color: color-mix(in srgb, #fff 48%, transparent);
}
.theme-meridian .mer-footer-bottom a { color: color-mix(in srgb, #fff 64%, transparent); transition: color .2s ease; }
.theme-meridian .mer-footer-bottom a:hover { color: #fff; }
@media (min-width: 720px) { .theme-meridian .mer-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

/* ---------- Mobile call bar ---------- */
.theme-meridian .mer-mobile-cta {
    display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    align-items: center; justify-content: center; gap: 9px; padding: 14px; font-weight: 600;
    background: var(--brand-cta); color: var(--brand-cta-ink);
    box-shadow: 0 -6px 20px rgba(20,18,13,.16);
}

/* ---------- Reveal motion ---------- */
.theme-meridian .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s var(--mer-ease); }
.theme-meridian .reveal.visible { opacity: 1; transform: none; }
.theme-meridian .reveal.rd1 { transition-delay: .07s; }
.theme-meridian .reveal.rd2 { transition-delay: .14s; }
.theme-meridian .reveal.rd3 { transition-delay: .21s; }
.theme-meridian .reveal.rd4 { transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) {
    .theme-meridian .reveal { opacity: 1; transform: none; transition: none; }
    .theme-meridian * { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .theme-meridian .mer-nav-toggle { display: inline-flex; }
    .theme-meridian .mer-nav-links {
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 4px; padding: 14px 20px 22px;
        background: var(--mer-bg); border-bottom: 1px solid var(--mer-line); box-shadow: var(--mer-shadow);
        transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
    }
    .theme-meridian .mer-nav-links.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .theme-meridian .mer-nav-links > a { padding: 11px 4px; font-size: 1.0rem; }
    .theme-meridian .mer-nav-links > a.active::after { display: none; }
    .theme-meridian .mer-nav-cta { text-align: center; margin-top: 8px; }
    .theme-meridian .mer-nav-phone { padding: 8px 4px; }
}
@media (max-width: 620px) {
    body.theme-meridian { padding-bottom: 60px; }
    .theme-meridian .mer-mobile-cta { display: flex; }
    .theme-meridian .mer-areas-list { grid-template-columns: 1fr; }
    .theme-meridian .mer-hero-content h1 { font-size: clamp(2.3rem, 9vw, 3rem); }
}

/* =========================================================================
   INNER PAGES — hero band, breadcrumbs, prose, contact, CTA card.
   ========================================================================= */
.theme-meridian .mer-page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(30px, 4vw, 50px); border-bottom: 1px solid var(--mer-line); }
.theme-meridian .mer-page-hero .mer-eyebrow { margin-bottom: 16px; }
.theme-meridian .mer-page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.035em; margin: 0; max-width: 22ch; }
.theme-meridian .mer-page-hero-sub { font-size: 1.13rem; line-height: 1.55; color: var(--mer-ink-soft); margin: 16px 0 0; max-width: 62ch; }

.theme-meridian .mer-breadcrumbs { margin-bottom: 20px; font-size: .82rem; color: var(--mer-ink-faint); }
.theme-meridian .mer-breadcrumbs a { color: var(--mer-ink-soft); }
.theme-meridian .mer-breadcrumbs a:hover { color: var(--mer-ink); }
.theme-meridian .mer-breadcrumbs ol, .theme-meridian .mer-breadcrumbs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.theme-meridian .mer-breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }

.theme-meridian .mer-prose { font-size: 1.06rem; line-height: 1.75; color: var(--mer-ink-soft); }
.theme-meridian .mer-prose > :first-child { margin-top: 0; }
.theme-meridian .mer-prose > :last-child { margin-bottom: 0; }
.theme-meridian .mer-prose h2 { font-weight: 700; font-size: clamp(1.5rem,2.6vw,1.9rem); color: var(--mer-ink); letter-spacing: -0.02em; margin: 1.7em 0 .5em; }
.theme-meridian .mer-prose h3 { font-weight: 700; font-size: 1.3rem; color: var(--mer-ink); letter-spacing: -0.01em; margin: 1.5em 0 .45em; }
.theme-meridian .mer-prose h4 { font-weight: 700; font-size: 1.05rem; color: var(--mer-ink); margin: 1.4em 0 .4em; }
.theme-meridian .mer-prose p { margin: 0 0 1.1em; }
.theme-meridian .mer-prose a { color: var(--brand-primary-readable); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: opacity .2s ease; }
.theme-meridian .mer-prose a:hover { opacity: .7; }
.theme-meridian .mer-prose ul, .theme-meridian .mer-prose ol { margin: 0 0 1.2em; padding-left: 1.35em; }
.theme-meridian .mer-prose li { margin: 0 0 .55em; padding-left: .2em; }
.theme-meridian .mer-prose li::marker { color: var(--brand-primary-readable); }
.theme-meridian .mer-prose img { max-width: 100%; height: auto; border-radius: var(--mer-radius); border: 1px solid var(--mer-line); margin: 1.4em 0; }
.theme-meridian .mer-prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--brand-primary); font-size: 1.18rem; color: var(--mer-ink); }
.theme-meridian .mer-prose hr { border: 0; border-top: 1px solid var(--mer-line); margin: 2em 0; }
.theme-meridian .mer-prose strong, .theme-meridian .mer-prose b { color: var(--mer-ink); font-weight: 700; }
.theme-meridian .mer-prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .97rem; }
.theme-meridian .mer-prose th, .theme-meridian .mer-prose td { border: 1px solid var(--mer-line); padding: 10px 14px; text-align: left; }
.theme-meridian .mer-prose th { background: var(--mer-bg-2); color: var(--mer-ink); font-weight: 700; }

.theme-meridian .mer-contact-grid { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 48px); align-items: start; }
.theme-meridian .mer-contact-info h2 { font-size: 1.55rem; margin-bottom: 12px; }
.theme-meridian .mer-contact-info ul { list-style: none; margin: 22px 0 0; padding: 0; }
.theme-meridian .mer-contact-info li { display: flex; align-items: flex-start; gap: 13px; padding: 15px 0; border-top: 1px solid var(--mer-line); color: var(--mer-ink-soft); }
.theme-meridian .mer-contact-info li:first-child { border-top: none; }
.theme-meridian .mer-contact-info li svg { flex-shrink: 0; color: var(--brand-primary-readable); margin-top: 2px; }
.theme-meridian .mer-contact-info a { color: var(--mer-ink); }
.theme-meridian .mer-contact-info a:hover { color: var(--brand-primary-readable); }
@media (min-width: 880px) { .theme-meridian .mer-contact-grid { grid-template-columns: 0.82fr 1.18fr; } }

.theme-meridian .mer-cta-card {
    background: var(--mer-bg-2); border: 1px solid var(--mer-line);
    border-radius: var(--mer-radius-lg); padding: clamp(28px, 4vw, 44px);
    text-align: center;
}
.theme-meridian .mer-cta-card h2, .theme-meridian .mer-cta-card h3 { margin: 0 0 10px; }
.theme-meridian .mer-cta-card p { margin: 0 auto 20px; max-width: 46ch; color: var(--mer-ink-soft); }
.theme-meridian .mer-cta-card .mer-hero-actions { justify-content: center; }

.theme-meridian .mer-faq-search { position: relative; max-width: 520px; margin: 26px 0 0; }
.theme-meridian .mer-faq-search > svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--mer-ink-faint); pointer-events: none; }
.theme-meridian .mer-faq-search input {
    width: 100%; box-sizing: border-box; padding: 14px 18px 14px 48px;
    font-family: var(--mer-font); font-size: 1rem; color: var(--mer-ink);
    background: var(--mer-surface); border: 1px solid var(--mer-line-2); border-radius: var(--mer-radius-sm);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.theme-meridian .mer-faq-search input::placeholder { color: var(--mer-ink-faint); }
.theme-meridian .mer-faq-search input:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 15%, transparent); }
.theme-meridian .mer-faq-noresults { display: none; margin: 22px 0 0; color: var(--mer-ink-soft); font-weight: 500; }

.theme-meridian .mer-proof-grid { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: start; }
@media (min-width: 820px) { .theme-meridian .mer-proof-grid { grid-template-columns: 1.15fr .85fr; } }

.theme-meridian .mer-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.theme-meridian .mer-chip { display: inline-flex; align-items: center; padding: 9px 18px; border-radius: var(--mer-radius-sm); background: var(--mer-surface); border: 1px solid var(--mer-line); font-size: .93rem; font-weight: 500; color: var(--mer-ink-soft); }
.theme-meridian a.mer-chip-link { transition: transform .2s ease, border-color .2s ease, color .2s ease; }
.theme-meridian a.mer-chip-link:hover { transform: translateY(-2px); border-color: var(--brand-primary); color: var(--mer-ink); }
