/*
 * ============================================================================
 * palegreen-peafowl-948221.hostingersite.com — Design System
 * Jack Ross Chartered Accountants (Est. 1948, Manchester)
 * Theme: jackross-barristers v1.0.0
 *
 * Table of Contents:
 *   1.  Font Face Declarations
 *   2.  CSS Custom Properties (Design Tokens)
 *   3.  Reset & Base Styles
 *   4.  Typography Scale
 *   5.  Layout & Container
 *   6.  Navbar (.jr-navbar)
 *   7.  Hero Section (.jr-hero)
 *   8.  Trust Logos Bar (.jr-trust-bar)
 *   9.  Feature Cards (.jr-features)
 *   10. Philosophy Section (.jr-philosophy)
 *   11. Protocol Section (.jr-protocol)
 *   12. Pricing Section (.jr-pricing)
 *   13. Video Testimonials (.jr-testimonials)
 *   14. Credibility Section (.jr-credibility)
 *   15. Difference Section (.jr-difference)
 *   16. Pre-footer CTA (.jr-pre-footer)
 *   17. Fluent Form Overrides
 *   18. Footer (.jr-footer)
 *   19. Page Templates
 *   20. Content Elements
 *   21. FAQ Styling
 *   22. Tables
 *   23. Buttons
 *   24. Utility Classes
 *   25. Reduced Motion
 *   26. Mobile Responsive (max-width: 768px)
 * ============================================================================
 */


/* ============================================================================
   1. FONT FACE DECLARATIONS
   Self-hosted fonts — no external DNS lookups
   ============================================================================ */

/* Inter — Heading & Body */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter/Inter-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter/Inter-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter/Inter-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Playfair Display — Drama / Display Headings */
@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/playfair-display/PlayfairDisplay-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/playfair-display/PlayfairDisplay-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/playfair-display/PlayfairDisplay-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/playfair-display/PlayfairDisplay-SemiBoldItalic.woff2') format('woff2');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/playfair-display/PlayfairDisplay-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/playfair-display/PlayfairDisplay-BoldItalic.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}



/* ============================================================================
   2. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================================================ */

:root {
    /* Primary */
    --navy: #051024;
    --navy-dark: #030912;
    --red: #98012E;
    --red-dark: #7A0125;

    /* Neutrals */
    --ivory: #F1F5F9;
    --white: #FFFFFF;
    --silver: #94A3B8;
    --slate: #1E293B;
    --navy-text: #0F172A;

    /* Functional */
    --success: #10B981;

    /* Radii */
    --radius-lg: 2rem;
    --radius-xl: 3rem;
    --radius-pill: 9999px;

    /* Transitions */
    --ease-magnetic: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Typography stacks */
    --font-heading: 'Inter', -apple-system, sans-serif;
    --font-drama: 'Playfair Display', Georgia, serif;
    --font-data: var(--font-heading);
}


/* ============================================================================
   3. RESET & BASE STYLES
   ============================================================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--navy-text);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Noise texture overlay — subtle grain on dark sections */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

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

a {
    color: var(--red);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s var(--ease-magnetic);
}

a:hover {
    color: var(--red-dark);
}

/* Remove default list styles where appropriate */
ul, ol {
    list-style: none;
}


/* ============================================================================
   4. TYPOGRAPHY SCALE
   ============================================================================ */

/* Hero line 1: "PRECISION MEETS" */
.jr-hero__line1 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 3.75rem;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--ivory);
    line-height: 1.1;
}

/* Hero line 2: "the Bar." */
.jr-hero__line2 {
    font-family: var(--font-drama);
    font-weight: 700;
    font-style: italic;
    font-size: 8rem;
    letter-spacing: 0em;
    color: var(--white);
    line-height: 0.95;
}

/* Hero sub-headline */
.jr-hero__sub {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.25rem;
    letter-spacing: 0em;
    color: var(--silver);
    line-height: 1.6;
    max-width: 540px;
}

/* Hero trust line: "ICAEW Regulated · Est. 1948 · ..." */
.jr-hero__trust {
    font-family: var(--font-data);
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--silver);
    text-transform: uppercase;
    line-height: 1.5;
}

/* Section headings (h2) */
h2,
.jr-section-heading {
    font-family: var(--font-drama);
    font-weight: 600;
    font-style: italic;
    font-size: 3rem;
    letter-spacing: 0em;
    color: var(--navy-text);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

/* Card headings (h3) */
h3,
.jr-card-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--navy-text);
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

/* Sub-headings (h4) */
h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
    color: var(--navy-text);
    line-height: 1.35;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

/* Minor headings (h5) */
h5 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.0625rem;
    letter-spacing: 0em;
    color: var(--navy-text);
    line-height: 1.4;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Label headings (h6) */
h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--silver);
    line-height: 1.5;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Body text (paragraphs) */
p {
    margin-bottom: 1.25rem;
}

/* Data labels */
.jr-data-label {
    font-family: var(--font-data);
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--silver);
    line-height: 1.5;
}

/* Stat numbers */
.jr-stat__number {
    font-family: var(--font-data);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 4.5rem;
    letter-spacing: -0.02em;
    color: var(--navy-text);
    line-height: 1;
}

.jr-stat__number .red {
    color: var(--red);
}


/* ============================================================================
   5. LAYOUT & CONTAINER
   ============================================================================ */

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

.container--narrow {
    max-width: 720px;
}

section {
    padding: 100px 0;
    scroll-margin-top: 80px;
}


/* ============================================================================
   6. NAVBAR (.jr-navbar)
   ============================================================================ */

.jr-navbar {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 1200px;
    z-index: 1000;
    border-radius: var(--radius-pill);
    padding: 0.75rem 1.5rem;
    transition: background-color 0.4s var(--ease-magnetic),
                backdrop-filter 0.4s var(--ease-magnetic),
                box-shadow 0.4s var(--ease-magnetic);
    background-color: transparent;
}

/* Inner flex wrapper */
.jr-navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
}

/* Tagline "for Barristers" — Playfair Display italic to match hero */
.jr-navbar__tagline {
    font-family: var(--font-drama);
    font-weight: 400;
    font-style: italic;
    font-size: 0.875rem;
    color: rgba(241, 245, 249, 0.7);
    letter-spacing: 0.02em;
    text-transform: none;
    white-space: nowrap;
    margin-right: auto;
}

/* Actions group (phone + CTA) */
.jr-navbar__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Chevron arrow in dropdown trigger */
.jr-navbar__chevron {
    margin-left: 2px;
    transition: transform 0.2s ease;
}

.jr-navbar__dropdown-trigger:hover .jr-navbar__chevron,
.jr-navbar__dropdown-trigger[aria-expanded="true"] .jr-navbar__chevron {
    transform: rotate(180deg);
}

/* Scrolled state: frosted glass effect */
.jr-navbar--scrolled {
    background-color: rgba(5, 16, 36, 0.7);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Brand */
.jr-navbar__brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: var(--white);
    text-decoration: none;
    white-space: nowrap;
}

.jr-navbar__brand:hover {
    color: var(--white);
}

/* Nav links container */
.jr-navbar__menu {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

/* Nav link items */
.jr-navbar__link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0em;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s var(--ease-magnetic);
    white-space: nowrap;
}

.jr-navbar__link:hover {
    color: var(--white);
}

/* Phone number in navbar */
.jr-navbar__phone {
    font-family: var(--font-data);
    font-variant-numeric: tabular-nums;
    font-size: 0.875rem;
    color: var(--silver);
    text-decoration: none;
    white-space: nowrap;
}

.jr-navbar__phone:hover {
    color: var(--white);
}

/* CTA button in navbar */
.jr-navbar__cta {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: -0.01em;
    background-color: var(--red);
    color: var(--white);
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: transform 0.2s var(--ease-magnetic),
                background-color 0.2s var(--ease-magnetic);
    white-space: nowrap;
}

.jr-navbar__cta:hover {
    background-color: var(--red-dark);
    color: var(--white);
    transform: scale(1.03);
}

/* Services dropdown — parent li needs position context */
.jr-navbar__menu > li {
    position: relative;
    list-style: none;
}

/* The dropdown <ul> */
.jr-navbar__dropdown {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background-color: var(--navy);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    min-width: 260px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease-magnetic),
                transform 0.3s var(--ease-magnetic),
                visibility 0.3s;
    z-index: 1001;
}

/* Show on parent hover or focus, or when JS adds --active */
.jr-navbar__menu > li:hover > .jr-navbar__dropdown,
.jr-navbar__menu > li:focus-within > .jr-navbar__dropdown,
.jr-navbar__dropdown.jr-navbar__dropdown--active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.jr-navbar__dropdown li {
    list-style: none;
}

.jr-navbar__dropdown a {
    display: block;
    padding: 0.5rem 0.75rem;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.jr-navbar__dropdown a:hover {
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--white);
}

/* Hamburger icon — hidden on desktop */
.jr-navbar__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.jr-navbar__hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--white);
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger open state */
.jr-navbar__hamburger--active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.jr-navbar__hamburger--active span:nth-child(2) {
    opacity: 0;
}

.jr-navbar__hamburger--active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile overlay — hidden by default, shown via JS toggle */
.jr-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--navy);
    z-index: 999;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
    overflow-y: auto;
    overflow-x: hidden;
}

.jr-mobile-overlay[hidden] {
    display: none;
}

.jr-mobile-overlay--active {
    display: flex !important;
    opacity: 1;
    visibility: visible;
    color: var(--white);
}

.jr-mobile-overlay__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    flex-shrink: 0;
}

.jr-mobile-overlay__brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: var(--white);
}

.jr-mobile-overlay__close {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 0.5rem;
    transition: opacity 0.2s ease;
}

.jr-mobile-overlay__close:hover {
    opacity: 0.7;
}

.jr-mobile-overlay__nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
}

.jr-mobile-overlay__menu {
    list-style: none;
    text-align: center;
    width: 100%;
    max-width: 400px;
    padding: 0;
    margin: 0;
}

.jr-mobile-overlay__menu > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.jr-mobile-overlay__menu > li > a,
.jr-mobile-overlay__accordion {
    display: block;
    width: 100%;
    padding: 1rem 0;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.25rem;
    color: var(--white);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
    text-align: center;
}

.jr-mobile-overlay__menu > li > a:hover,
.jr-mobile-overlay__accordion:hover {
    color: var(--red);
}

.jr-mobile-overlay__chevron {
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
    vertical-align: middle;
}

.jr-mobile-overlay__accordion[aria-expanded="true"] .jr-mobile-overlay__chevron {
    transform: rotate(180deg);
}

.jr-mobile-overlay__sub {
    list-style: none;
    padding: 0 0 0.75rem;
}

.jr-mobile-overlay__sub[hidden] {
    display: none;
}

.jr-mobile-overlay__sub li a {
    display: block;
    padding: 0.5rem 0;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.jr-mobile-overlay__sub li a:hover {
    color: var(--white);
}

.jr-mobile-overlay__footer {
    padding: 1.5rem;
    text-align: center;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.jr-mobile-overlay__phone {
    font-family: var(--font-data);
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--white);
    text-decoration: none;
}

.jr-mobile-overlay__cta {
    display: inline-block;
    background-color: var(--red);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.jr-mobile-overlay__cta:hover {
    background-color: var(--red-dark);
    color: var(--white);
}

/* Mobile sticky bottom bar — hidden on desktop */
.jr-mobile-bar {
    display: none;
}


/* ============================================================================
   7. HERO SECTION (.jr-hero)
   ============================================================================ */

.jr-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    padding: 0 1.5rem 80px;
    overflow: hidden;
    background-color: var(--navy);
}

/* Background image with gradient overlay */
.jr-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.jr-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        var(--navy-dark),
        var(--navy) 60%,
        rgba(5, 16, 36, 0.3)
    );
    z-index: 1;
}

/* Hero content — positioned above overlays */
.jr-hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

/* Spacing between hero text elements */
.jr-hero__content .jr-hero__line1 {
    margin-bottom: 0;
}

.jr-hero__content .jr-hero__line2 {
    margin-bottom: 1.5rem;
}

.jr-hero__content .jr-hero__sub {
    margin-bottom: 2rem;
}

.jr-hero__content .jr-hero__trust {
    margin-top: 2rem;
}

/* Hero watermark — subtle geometric monogram */
.jr-hero__watermark {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    opacity: 0.04;
    z-index: 1;
    pointer-events: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20rem;
    color: var(--ivory);
    line-height: 1;
    user-select: none;
}

/* Hero element class for GSAP stagger animation */
.hero-elem {
    opacity: 0;
    transform: translateY(40px);
}


/* ============================================================================
   8. TRUST LOGOS BAR (.jr-trust-bar)
   ============================================================================ */

.jr-trust-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 0.5rem 1.5rem;
    height: 48px;
    background-color: var(--ivory);
    position: relative;
    z-index: 10;
}

/* Transparent bg on homepage */
.home .jr-trust-bar {
    background-color: transparent;
}

.jr-trust-bar__logo {
    height: 32px;
    width: auto;
    filter: grayscale(1);
    opacity: 0.6;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.jr-trust-bar__logo:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* Vertical dividers between logos */
.jr-trust-bar__divider {
    width: 1px;
    height: 16px;
    background-color: var(--silver);
    flex-shrink: 0;
}


/* ============================================================================
   9. FEATURE CARDS (.jr-features)
   ============================================================================ */

.jr-features {
    background-color: var(--white);
    padding: 120px 0 80px;
}

.jr-features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.jr-feature-card {
    background-color: var(--ivory);
    border: 1px solid var(--slate);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(5, 16, 36, 0.06);
    transition: transform 0.3s var(--ease-magnetic),
                box-shadow 0.3s var(--ease-magnetic);
    overflow: hidden;
}

.jr-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(5, 16, 36, 0.1);
}

/* Animation container within cards */
.jr-feature-card__animation {
    min-height: 200px;
    margin-bottom: 1.5rem;
    position: relative;
}

/* "Learn more" link style */
.jr-feature-card__link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--navy-text);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.jr-feature-card__link:hover {
    color: var(--red-dark);
    transform: translateX(4px);
}

/* Shuffler card — overlapping cards effect */
.jr-shuffler {
    position: relative;
    height: 200px;
}

.jr-shuffler__card {
    position: absolute;
    width: 85%;
    padding: 1.25rem;
    background-color: var(--white);
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(5, 16, 36, 0.08);
    transition: all 800ms var(--ease-spring);
}

.jr-shuffler__card:nth-child(1) {
    top: 0;
    left: 0;
    z-index: 3;
}

.jr-shuffler__card:nth-child(2) {
    top: 12px;
    left: 12px;
    z-index: 2;
    opacity: 0.7;
}

.jr-shuffler__card:nth-child(3) {
    top: 24px;
    left: 24px;
    z-index: 1;
    opacity: 0.4;
}

.jr-shuffler__label {
    font-family: var(--font-data);
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--navy-text);
}

/* Typewriter card — pulsing red dot */
.jr-typewriter {
    font-family: var(--font-data);
    font-variant-numeric: tabular-nums;
    font-size: 0.8125rem;
    color: var(--navy-text);
    line-height: 1.8;
}

.jr-typewriter__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.jr-typewriter__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--red);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.jr-typewriter__label {
    font-family: var(--font-data);
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--silver);
    text-transform: uppercase;
}

.jr-typewriter__line {
    opacity: 0.7;
}

.jr-typewriter__cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background-color: var(--red);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink-cursor 0.8s step-end infinite;
}

@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* WeekGrid card — day grid layout */
.jr-weekgrid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.jr-weekgrid__days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    width: 100%;
}

.jr-weekgrid__day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-data);
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    font-size: 0.75rem;
    color: var(--navy-text);
    border-radius: 0.5rem;
    background-color: var(--white);
    border: 1px solid rgba(30, 41, 59, 0.1);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.jr-weekgrid__day--target {
    background-color: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.jr-weekgrid__filed {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.5rem 1.25rem;
    background-color: var(--success);
    color: var(--white);
    border: none;
    border-radius: var(--radius-pill);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.jr-weekgrid__filed.is-visible {
    opacity: 1;
}

/* Career-stage callout below features grid */
.jr-features__callout.container {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1rem;
    color: var(--silver);
    text-align: center;
    max-width: 640px;
    margin: 4rem auto 0;
    line-height: 1.6;
}


/* ============================================================================
   10. PHILOSOPHY SECTION (.jr-philosophy)
   ============================================================================ */

.jr-philosophy {
    position: relative;
    background-color: var(--navy);
    padding: 120px 0;
    overflow: hidden;
    text-align: center;
}

/* Parallax background image */
.jr-philosophy__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    object-fit: cover;
    opacity: 0.08;
    filter: grayscale(1);
    pointer-events: none;
}

.jr-philosophy__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.jr-philosophy__line {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.5rem;
    color: var(--silver);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.jr-philosophy__highlight {
    font-family: var(--font-drama);
    font-weight: 700;
    font-style: italic;
    font-size: 5rem;
    color: var(--white);
    line-height: 1.05;
    margin-bottom: 2.5rem;
}

.jr-philosophy__highlight .red {
    color: var(--red);
}

.jr-philosophy__detail {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.125rem;
    color: var(--silver);
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto;
}

/* Scroll-triggered reveal class */
.phil-line {
    opacity: 0;
    transform: translateY(30px);
}


/* ============================================================================
   11. PROTOCOL SECTION (.jr-protocol)
   ============================================================================ */

.jr-protocol {
    background-color: var(--white);
    padding: 80px 0;
}

.jr-protocol__inner {
    max-width: 800px;
    margin: 0 auto;
}

.jr-protocol__card {
    background-color: var(--ivory);
    border-radius: var(--radius-lg);
    padding: 3rem;
    margin-bottom: 1.5rem;
    position: relative;
}

/* Desktop: sticky stacking handled by GSAP ScrollTrigger */
.jr-protocol__card-inner {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: start;
}

/* SVG animation container */
.jr-protocol__svg {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jr-protocol__step {
    font-family: var(--font-data);
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--silver);
    margin-bottom: 0.75rem;
}

.jr-protocol__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--navy-text);
    margin-bottom: 1rem;
}

.jr-protocol__desc {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.125rem;
    color: var(--slate);
    line-height: 1.6;
}

/* Transition line below protocol cards */
.jr-protocol__transition {
    text-align: center;
    margin-top: 2rem;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1rem;
    color: var(--silver);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}


/* ============================================================================
   12. PRICING SECTION (.jr-pricing)
   ============================================================================ */

.jr-pricing {
    background-color: var(--ivory);
    padding: 80px 0;
}

.jr-pricing h2 {
    text-align: center;
    color: var(--navy-text);
}

.jr-pricing__tiers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 800px;
    margin: 3rem auto 0;
}

.jr-pricing__card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid rgba(30, 41, 59, 0.08);
    box-shadow: 0 1px 3px rgba(5, 16, 36, 0.04);
    text-align: center;
}

/* Established Practice card — red top border */
.jr-pricing__card--featured {
    border-top: 3px solid var(--red);
    box-shadow: 0 8px 32px rgba(152, 1, 46, 0.08);
}

.jr-pricing__tier {
    font-family: var(--font-data);
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--silver);
    margin-bottom: 1rem;
}

.jr-pricing__price {
    font-family: var(--font-data);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--navy-text);
    margin-bottom: 0.25rem;
}

.jr-pricing__period {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.875rem;
    color: var(--silver);
    margin-bottom: 1.5rem;
}

.jr-pricing__features {
    text-align: left;
    margin-bottom: 2rem;
}

.jr-pricing__features li {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.9375rem;
    color: var(--navy-text);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--ivory);
    list-style: none;
}

.jr-pricing__features li::before {
    content: '\2713';
    color: var(--success);
    font-weight: 700;
    margin-right: 0.75rem;
}

/* Bespoke tier (text-only, below cards) */
.jr-pricing__chambers {
    text-align: center;
    margin-top: 2rem;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1rem;
    color: var(--slate);
}

.jr-pricing__chambers a {
    color: var(--red);
    text-decoration: none;
    font-weight: 500;
}

.jr-pricing__chambers a:hover {
    color: var(--red-dark);
}

/* "What's Included" comparison strip */
.jr-pricing__comparison {
    max-width: 800px;
    margin: 3rem auto 0;
    border: 1px solid rgba(30, 41, 59, 0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: var(--white);
}

.jr-pricing__comparison-header {
    display: grid;
    grid-template-columns: 1fr 140px 140px;
    padding: 1rem 1.5rem;
    background-color: var(--ivory);
    border-bottom: 1px solid rgba(30, 41, 59, 0.08);
}

.jr-pricing__comparison-header span {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--navy-text);
    text-align: center;
}

.jr-pricing__comparison-header span:first-child {
    text-align: left;
}

.jr-pricing__comparison-row {
    display: grid;
    grid-template-columns: 1fr 140px 140px;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid rgba(30, 41, 59, 0.04);
    align-items: center;
}

.jr-pricing__comparison-row:last-child {
    border-bottom: none;
}

.jr-pricing__comparison-row span {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.875rem;
    color: var(--navy-text);
    text-align: center;
}

.jr-pricing__comparison-row span:first-child {
    text-align: left;
}

/* Tick and dash styling */
.jr-tick {
    color: var(--success);
    font-weight: 700;
}

.jr-dash {
    color: var(--silver);
}

/* Reassurance line below pricing */
.jr-pricing__reassure {
    text-align: center;
    margin-top: 2rem;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1rem;
    color: var(--slate);
}


/* ============================================================================
   13. VIDEO TESTIMONIALS (.jr-testimonials)
   ============================================================================ */

.jr-testimonials {
    background-color: var(--navy);
    padding: 80px 0;
}

.jr-testimonials h2 {
    color: var(--white);
    text-align: center;
    margin-bottom: 3rem;
}

.jr-testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.jr-testimonial-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Video player container */
.jr-testimonial-card__video {
    position: relative;
    aspect-ratio: 16 / 9;
    background-color: var(--navy-dark);
    overflow: hidden;
    cursor: pointer;
}

.jr-testimonial-card__video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Custom play button overlay */
.jr-testimonial-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background-color: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s var(--ease-magnetic),
                background-color 0.2s var(--ease-magnetic);
    z-index: 2;
    border: none;
}

.jr-testimonial-card__play:hover {
    transform: translate(-50%, -50%) scale(1.05);
    background-color: var(--red-dark);
}

/* White triangle SVG or CSS triangle */
.jr-testimonial-card__play::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent var(--white);
    margin-left: 3px;
}

.jr-testimonial-card__play.is-hidden {
    opacity: 0;
    pointer-events: none;
}

/* ============================================================
   Fix A: Single testimonial video — prevent mobile overflow
   Section template: section-testimonials.php uses .jr-testimonial__video
   ============================================================ */
.jr-testimonial__video {
    max-width: 100%;
    overflow: hidden;
}

.jr-testimonial__video video {
    display: block;
    max-width: 100%;
    width: 100%;
    height: auto;
}

/* Defensive: iframe fallback for embedded testimonial videos */
.jr-testimonial__video iframe,
.jr-testimonial-card__video iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ============================================================
   Fix B: Single video testimonial typography (section-testimonials.php)
   Classes: .jr-testimonial, .jr-testimonial__inner, .jr-testimonial__content,
            .jr-testimonial__quote, .jr-testimonial__name, .jr-testimonial__role,
            .jr-testimonial__link
   ============================================================ */

/* Section container */
.jr-testimonial {
    background-color: var(--ivory);
    padding: 60px 0;
}

/* Inner layout: video left, content right on desktop */
.jr-testimonial__inner {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.jr-testimonial__video {
    flex: 1 1 55%;
    max-width: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.jr-testimonial__content {
    flex: 1 1 45%;
}

/* Testimonial quote — Playfair Display italic */
.jr-testimonial__quote {
    margin: 0 0 1.5rem;
    padding: 0;
    border: none;
}

.jr-testimonial__quote p {
    font-family: var(--font-drama);
    font-weight: 400;
    font-style: italic;
    font-size: 1.125rem;
    color: var(--slate);
    line-height: 1.6;
    margin: 0;
}

/* Testimonial name — bold and prominent */
.jr-testimonial__name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--navy-text);
    margin: 0 0 0.25rem;
    line-height: 1.4;
}

/* Testimonial role/chambers — subordinate */
.jr-testimonial__role {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.875rem;
    color: var(--silver);
    margin: 0 0 1.25rem;
    line-height: 1.4;
}

/* Testimonial CTA link */
.jr-testimonial__link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--red);
    text-decoration: none;
    transition: color 0.2s ease;
}

.jr-testimonial__link:hover {
    color: var(--red-dark);
    text-decoration: underline;
}

/* Mobile: stack video above content */
@media (max-width: 768px) {
    .jr-testimonial__inner {
        flex-direction: column;
        gap: 1.5rem;
    }

    .jr-testimonial__video,
    .jr-testimonial__content {
        flex: 1 1 100%;
    }

    .jr-testimonial__quote p {
        font-size: 1rem;
    }
}


/* Quote and attribution */
.jr-testimonial-card blockquote {
    padding: 1.5rem;
}

.jr-testimonial-card blockquote p {
    font-family: var(--font-drama);
    font-weight: 400;
    font-style: italic;
    font-size: 1.125rem;
    color: var(--white);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.jr-testimonial-card cite strong {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.jr-testimonial-card cite span {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.875rem;
    color: var(--silver);
}


/* ============================================================================
   14. CREDIBILITY SECTION (.jr-credibility)
   ============================================================================ */

.jr-credibility {
    background-color: var(--ivory);
    /* border-radius removed */
    padding: 80px 0;
    position: relative;
    z-index: 2;
}

/* Stats row */
.jr-credibility__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.jr-stat {
    padding: 1rem;
}

.jr-stat .jr-stat__number {
    margin-bottom: 0.5rem;
}

.jr-stat__label {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1rem;
    color: var(--slate);
}

/* Google Reviews section removed */

/* Accreditation logos row */
.jr-credibility__accreditations {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-family: var(--font-data);
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--navy-text);
}

.jr-credibility__accreditations img {
    height: 28px;
    width: auto;
    opacity: 0.6;
}


/* ============================================================================
   15. DIFFERENCE SECTION (.jr-difference)
   ============================================================================ */

.jr-difference {
    background-color: var(--navy);
    padding: 120px 0;
    text-align: center;
}

.jr-difference__inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.jr-difference__line {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.25rem;
    color: var(--white);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.jr-difference__line:last-child {
    margin-bottom: 0;
}


/* ============================================================================
   16. PRE-FOOTER CTA (.jr-pre-footer)
   ============================================================================ */

.jr-pre-footer {
    background-color: var(--navy);
    padding: 80px 0;
}

.jr-pre-footer__inner {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    align-items: start;
}

/* Left column: heading + form */
.jr-pre-footer__form-col-col h2 {
    font-family: var(--font-drama);
    font-weight: 700;
    font-style: italic;
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.jr-pre-footer__form-col-col > p {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.125rem;
    color: var(--silver);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Right column: contact details */
.jr-pre-footer__info-col h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.jr-pre-footer__phone {
    font-family: var(--font-data);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.jr-pre-footer__phone:hover {
    color: var(--ivory);
}

.jr-pre-footer__email {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1rem;
    color: var(--silver);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.jr-pre-footer__email:hover {
    color: var(--white);
}

.jr-pre-footer__hours {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.9375rem;
    color: var(--silver);
    margin-bottom: 2rem;
}

/* Google Maps embed */
.jr-pre-footer__map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.jr-pre-footer__map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}


/* ============================================================================
   17. FLUENT FORM OVERRIDES
   Styles the Fluent Form ID 3 output to match the design system.
   Never modify the form fields/validation — CSS only.
   ============================================================================ */

.jr-pre-footer .fluentform {
    margin-top: 1rem;
}

.jr-pre-footer .fluentform .ff-el-input--label label,
.jr-pre-footer .fluentform label {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--silver);
    margin-bottom: 0.5rem;
}

.jr-pre-footer .fluentform .ff-el-input--content input[type="text"],
.jr-pre-footer .fluentform .ff-el-input--content input[type="email"],
.jr-pre-footer .fluentform .ff-el-input--content input[type="tel"],
.jr-pre-footer .fluentform .ff-el-input--content input[type="url"],
.jr-pre-footer .fluentform .ff-el-input--content textarea,
.jr-pre-footer .fluentform .ff-el-input--content select {
    background-color: var(--navy-dark);
    border: 1px solid var(--ivory);
    border-radius: 0.75rem;
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1rem;
    padding: 0.875rem 1rem;
    width: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jr-pre-footer .fluentform .ff-el-input--content input::placeholder,
.jr-pre-footer .fluentform .ff-el-input--content textarea::placeholder {
    color: var(--silver);
    opacity: 0.7;
}

.jr-pre-footer .fluentform .ff-el-input--content input:focus,
.jr-pre-footer .fluentform .ff-el-input--content textarea:focus,
.jr-pre-footer .fluentform .ff-el-input--content select:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(152, 1, 46, 0.15);
    outline: none;
}

/* Fluent Form submit button */
.jr-pre-footer .fluentform .ff-btn-submit,
.jr-pre-footer .fluentform button[type="submit"] {
    background-color: var(--red);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: -0.01em;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background-color 0.2s var(--ease-magnetic),
                transform 0.2s var(--ease-magnetic);
    width: auto;
}

.jr-pre-footer .fluentform .ff-btn-submit:hover,
.jr-pre-footer .fluentform button[type="submit"]:hover {
    background-color: var(--red-dark);
    transform: scale(1.03);
}

/* Fluent Form error styling */
.jr-pre-footer .fluentform .ff-el-is-error .ff-el-input--content input,
.jr-pre-footer .fluentform .ff-el-is-error .ff-el-input--content textarea {
    border-color: var(--red);
}

.jr-pre-footer .fluentform .ff-el-is-error .error {
    color: var(--red);
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

/* Fluent Form success message */
.jr-pre-footer .fluentform .ff-message-success {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    border-radius: 0.75rem;
    color: var(--success);
    padding: 1rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.9375rem;
}


/* Accreditation logos strip */
.jr-accreditation {
    background: var(--ivory, #F1F5F9);
    padding: 2.5rem 0;
    border-top: 1px solid #e2e8f0;
}
.jr-accreditation__inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}
.jr-accreditation__logo,
.jr-accreditation__inner > a {
    display: inline-flex;
    align-items: center;
    transition: opacity 0.2s ease;
}
.jr-accreditation__logo img,
.jr-footer__accred-logo {
    height: 90px;
    width: auto;
    max-width: 100%;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.2s ease;
}
.jr-accreditation__logo:hover img,
.jr-accreditation__inner > a:hover img,
.jr-accreditation__inner > a:hover .jr-footer__accred-logo {
    filter: grayscale(0%);
    opacity: 1;
}
@media (max-width: 768px) {
    .jr-accreditation__inner {
        gap: 1.5rem;
        padding: 0 1rem;
    }
    .jr-accreditation__logo img,
    .jr-footer__accred-logo {
        height: 70px;
    }
}
@media (max-width: 480px) {
    .jr-accreditation {
        padding: 1.5rem 0;
    }
    .jr-accreditation__inner {
        gap: 1.25rem;
    }
    .jr-accreditation__logo img,
    .jr-footer__accred-logo {
        height: 55px;
    }
}

/* ============================================================================
   18. FOOTER (.jr-footer)
   ============================================================================ */

.jr-footer {
    background-color: var(--navy);
    /* border-radius removed */
    padding: 4rem 0 0;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 1;
}

.jr-footer__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

/* Footer column headings */
.jr-footer__col h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.jr-footer__text {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* Footer links */
.jr-footer__link {
    display: block;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 0.25rem 0;
    transition: color 0.2s ease;
}

.jr-footer__link:hover {
    color: var(--white);
}

/* Footer contact items */
.jr-footer__contact-item {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.jr-footer__contact-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.jr-footer__contact-item a:hover {
    color: var(--white);
}

/* Footer bottom bar */
.jr-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 1rem;
}

.jr-footer__regulatory {
    font-family: var(--font-data);
    font-variant-numeric: tabular-nums;
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--silver);
}

.jr-footer__copyright {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
}


/* ============================================================================
   19. PAGE TEMPLATES
   ============================================================================ */

/* Generic page content area */
.jr-page-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    background-color: var(--ivory);
}

.jr-page-content h1 {
    font-family: var(--font-drama);
    font-weight: 700;
    font-style: italic;
    font-size: 2.5rem;
    color: var(--navy-text);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

/* Article h2: sans-serif for scannability in long-form content */
.jr-page-content h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-style: normal;
    font-size: 1.75rem;
    letter-spacing: -0.02em;
    color: var(--navy-text);
    line-height: 1.2;
    margin-top: 3rem;
    margin-bottom: 0.75rem;
}

/* Article h3: tighter spacing below */
.jr-page-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 0.5rem;
}

.jr-page-content p {
    color: var(--navy-text);
}

.jr-page-content a:not(.jr-btn) {
    color: var(--red);
    text-underline-offset: 3px;
}

.jr-page-content a:not(.jr-btn):hover {
    color: var(--red-dark);
}

/* Blockquotes in article content */
.jr-page-content blockquote,
.jr-page-content__body blockquote {
    font-family: var(--font-drama);
    font-weight: 400;
    font-style: italic;
    font-size: 1.125rem;
    color: var(--slate);
    line-height: 1.65;
    border-left: 3px solid var(--red);
    padding: 1rem 0 1rem 1.5rem;
    margin: 1.5rem 0;
}

.jr-page-content blockquote p:last-child,
.jr-page-content__body blockquote p:last-child {
    margin-bottom: 0;
}

.jr-page-content blockquote cite,
.jr-page-content__body blockquote cite {
    display: block;
    font-family: var(--font-heading);
    font-weight: 500;
    font-style: normal;
    font-size: 0.875rem;
    color: var(--silver);
    margin-top: 0.75rem;
}

/* Short hero banner for sub-pages */
.jr-hero-banner {
    position: relative;
    background-color: var(--navy);
    padding: 240px 1.5rem 80px;
    overflow: hidden;
    text-align: left;
}

.jr-hero-banner__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.06;
    filter: grayscale(1);
    pointer-events: none;
}

.jr-hero-banner__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.jr-hero-banner__title {
    font-family: var(--font-drama);
    font-weight: 700;
    font-style: italic;
    font-size: 3rem;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1rem;
}

/* Breadcrumbs */
.jr-breadcrumbs {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.8125rem;
    color: var(--silver);
}

.jr-breadcrumbs a {
    color: var(--silver);
    text-decoration: none;
    transition: color 0.2s ease;
}

.jr-breadcrumbs a:hover {
    color: var(--white);
}

.jr-breadcrumbs__separator {
    margin: 0 0.5rem;
    opacity: 0.5;
}

/* Services hub grid */
.jr-services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.jr-service-card {
    background-color: var(--navy);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    border-top: 3px solid var(--red);
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s var(--ease-magnetic),
                box-shadow 0.3s var(--ease-magnetic);
    display: block;
}

.jr-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(5, 16, 36, 0.2);
    color: var(--white);
}

.jr-service-card__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: var(--red);
}

.jr-service-card h2,
.jr-service-card h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.jr-service-card p {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.jr-service-card__link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--red);
    text-decoration: none;
}

/* Blog cards */
.jr-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.jr-blog-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(30, 41, 59, 0.06);
    box-shadow: 0 1px 3px rgba(5, 16, 36, 0.04);
    transition: transform 0.3s var(--ease-magnetic),
                box-shadow 0.3s var(--ease-magnetic);
    text-decoration: none;
    display: block;
}

.jr-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(5, 16, 36, 0.08);
}

.jr-blog-card__image {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    width: 100%;
}

.jr-blog-card__body {
    padding: 1.5rem;
}

.jr-blog-card__date {
    font-family: var(--font-data);
    font-variant-numeric: tabular-nums;
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--silver);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.jr-blog-card__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--navy-text);
    line-height: 1.3;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.jr-blog-card__excerpt {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.9375rem;
    color: var(--slate);
    line-height: 1.6;
}

/* Author bio box (Tier 3 — single.php) */
.jr-author-bio {
    background-color: var(--ivory);
    border: 1px solid rgba(30, 41, 59, 0.06);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-top: 3rem;
}

.jr-author-bio__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* Monogram placeholder when no headshot available */
.jr-author-bio__monogram {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--navy);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.jr-author-bio__name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--navy-text);
    margin-bottom: 0.25rem;
}

.jr-author-bio__role {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.9375rem;
    color: var(--slate);
    margin-bottom: 0.5rem;
}

.jr-author-bio__desc {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.875rem;
    color: var(--slate);
    line-height: 1.6;
}

/* About Jack Ross sidebar card (Tier 3 — single.php) */
.jr-about-sidebar {
    background-color: var(--navy);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    color: var(--white);
}

.jr-about-sidebar__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.jr-about-sidebar__text {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.875rem;
    color: var(--silver);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.jr-about-sidebar__link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--red);
    text-decoration: none;
    display: inline-block;
    margin-top: 0.5rem;
}

.jr-about-sidebar__link:hover {
    color: var(--ivory);
}

/* Trust strip (Tier 2 — service pages) */
.jr-trust-strip {
    text-align: center;
    padding: 2rem 1.5rem;
    border-top: 1px solid rgba(30, 41, 59, 0.06);
    background-color: var(--ivory);
}

.jr-trust-strip__text {
    font-family: var(--font-data);
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--slate);
}

/* Pull quote (Tier 2 — service pages) */
.jr-pull-quote {
    text-align: center;
    padding: 3rem 1.5rem;
    max-width: 640px;
    margin: 0 auto;
}

.jr-pull-quote__text {
    font-family: var(--font-drama);
    font-weight: 400;
    font-style: italic;
    font-size: 1.25rem;
    color: var(--navy-text);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.jr-pull-quote__attribution {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--slate);
}

/* Google Reviews line removed */


/* ============================================================================
   20. CONTENT ELEMENTS
   Inherited from child-theme-style.css, adapted to new design tokens.
   ============================================================================ */

/* "Last updated" date line */
.be-updated {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.875rem;
    color: var(--slate);
    margin-bottom: 1.5rem;
}

/* Callout box */
.be-callout {
    background-color: var(--ivory);
    border-left: 4px solid var(--red);
    border-radius: 0 0.5rem 0.5rem 0;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}

.be-callout p:last-child {
    margin-bottom: 0;
}

/* Worked example box */
.be-example {
    background-color: var(--ivory);
    border: 1px solid rgba(30, 41, 59, 0.08);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.be-example strong:first-child {
    color: var(--navy-text);
}

.be-example p:last-child {
    margin-bottom: 0;
}

/* Sources / references */
.be-sources {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.875rem;
    color: var(--slate);
    border-top: 1px solid rgba(30, 41, 59, 0.08);
    padding-top: 1rem;
    margin-top: 2rem;
}

/* CTA box at end of articles */
.be-cta {
    background-color: var(--ivory);
    border: 1px solid rgba(30, 41, 59, 0.08);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    margin-top: 3rem;
}

.be-cta h3 {
    margin-top: 0;
}

.be-cta p:last-of-type {
    margin-bottom: 1.5rem;
}


/* ============================================================================
   21. FAQ STYLING
   details/summary with plus → x rotation
   ============================================================================ */

.jr-faq,
.be-faq {
    margin: 2rem 0;
}

.jr-faq details,
.be-faq details {
    border-bottom: 1px solid rgba(30, 41, 59, 0.08);
}

.jr-faq summary,
.be-faq summary {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.0625rem;
    color: var(--navy-text);
    cursor: pointer;
    padding: 1rem 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: color 0.2s ease;
}

.jr-faq summary:hover,
.be-faq summary:hover {
    color: var(--red);
}

/* Remove default marker */
.jr-faq summary::-webkit-details-marker,
.be-faq summary::-webkit-details-marker {
    display: none;
}

/* Plus sign that rotates to x */
.jr-faq summary::before,
.be-faq summary::before {
    content: '+';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    font-weight: 400;
    font-size: 1.25rem;
    color: var(--red);
    flex-shrink: 0;
    transition: transform 0.3s var(--ease-magnetic);
}

.jr-faq details[open] summary::before,
.be-faq details[open] summary::before {
    transform: rotate(45deg);
}

.jr-faq details[open] summary,
.be-faq details[open] summary {
    color: var(--red);
}

.jr-faq details > div,
.be-faq details > div {
    padding: 0 0 1rem 2.25rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--slate);
}


/* ============================================================================
   22. TABLES
   ============================================================================ */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-family: var(--font-heading);
    font-size: 0.9375rem;
}

th {
    background-color: var(--ivory);
    font-weight: 600;
    text-align: left;
    color: var(--navy-text);
}

th, td {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(30, 41, 59, 0.08);
}

tr:nth-child(even) {
    background-color: var(--ivory);
}

/* Responsive table wrapper */
.jr-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
}


/* ============================================================================
   23. BUTTONS
   ============================================================================ */

.jr-btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: -0.01em;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s var(--ease-magnetic),
                transform 0.2s var(--ease-magnetic),
                box-shadow 0.2s var(--ease-magnetic);
}

.jr-btn:active {
    transform: translateY(1px);
}

/* Primary: red bg, white text */
.jr-btn--primary {
    background-color: var(--red);
    color: var(--white);
}

.jr-btn--primary:hover {
    background-color: var(--red-dark);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(152, 1, 46, 0.25);
    transform: scale(1.03);
}

/* Secondary: transparent, navy border */
.jr-btn--secondary {
    background-color: transparent;
    color: var(--navy-text);
    border: 2px solid var(--navy-text);
}

.jr-btn--secondary:hover {
    background-color: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

/* Ghost: transparent on dark backgrounds */
.jr-btn--ghost {
    background-color: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.jr-btn--ghost:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}


/* ============================================================================
   24. UTILITY CLASSES
   ============================================================================ */

/* Screen-reader only */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Text alignment */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* Text colours */
.text-silver { color: var(--silver); }
.text-red    { color: var(--red); }
.text-white  { color: var(--white); }
.text-navy   { color: var(--navy-text); }
.text-slate  { color: var(--slate); }

/* Margin-bottom scale */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Container utility */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}


/* ============================================================================
   24b. CONTENT BODY — LIST STYLING FIX
   The global reset strips bullets/numbers. Restore them inside content areas.
   ============================================================================ */

.jr-page-content__body ul {
    list-style: disc;
    padding-left: 1.5em;
    margin-bottom: 1.25rem;
}

.jr-page-content__body ol {
    list-style: decimal;
    padding-left: 1.5em;
    margin-bottom: 1.25rem;
}

.jr-page-content__body li {
    margin-bottom: 0.35rem;
    line-height: 1.6;
}

.jr-page-content__body li::marker {
    color: var(--red);
}


/* ============================================================================
   24c. GUIDES HUB (home.php — /guides/ page)
   Categorised guide listing modelled on mtd.digital/mtd-guides/.
   ============================================================================ */

.jr-guides {
    background-color: var(--ivory);
}

.jr-guides__inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

.jr-guides__section {
    margin-bottom: 3rem;
}

.jr-guides__section-title {
    font-family: var(--font-drama);
    font-weight: 700;
    font-style: italic;
    font-size: 1.75rem;
    color: var(--navy-text);
    margin-bottom: 0.25rem;
}

.jr-guides__section-desc {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.9375rem;
    color: var(--slate);
    margin-bottom: 1.25rem;
}

.jr-guides__list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.jr-guides__item {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(30, 41, 59, 0.06);
    text-decoration: none;
    transition: background-color 0.2s var(--ease-magnetic);
}

.jr-guides__item:first-child {
    border-top: 1px solid rgba(30, 41, 59, 0.06);
}

.jr-guides__item:hover {
    background-color: var(--white);
}

.jr-guides__item-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.0625rem;
    color: var(--navy-text);
    margin-bottom: 0.15rem;
    transition: color 0.2s ease;
}

.jr-guides__item:hover .jr-guides__item-title {
    color: var(--red);
}

.jr-guides__item-excerpt {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.875rem;
    color: var(--slate);
    line-height: 1.5;
}


/* ============================================================================
   24d. ARCHIVE & POST CARDS (archive.php, index.php, single.php related)
   ============================================================================ */

.jr-archive {
    background-color: var(--ivory);
    padding: 3rem 0 4rem;
}

.jr-archive__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.jr-archive__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.jr-archive__pagination {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 2rem;
}

.jr-archive__pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.jr-archive__pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 0.875rem;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--navy-text);
    background-color: var(--white);
    border: 1px solid rgba(30, 41, 59, 0.08);
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: all 0.2s ease;
}

.jr-archive__pagination .page-numbers:hover {
    background-color: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.jr-archive__pagination .page-numbers.current {
    background-color: var(--red);
    color: var(--white);
    border-color: var(--red);
}

/* Post cards */
.jr-post-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(30, 41, 59, 0.06);
    box-shadow: 0 1px 3px rgba(5, 16, 36, 0.04);
    transition: transform 0.3s var(--ease-magnetic),
                box-shadow 0.3s var(--ease-magnetic);
    display: flex;
    flex-direction: column;
}

.jr-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(5, 16, 36, 0.08);
}

.jr-post-card__image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.jr-post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease-magnetic);
}

.jr-post-card:hover .jr-post-card__image img {
    transform: scale(1.03);
}

.jr-post-card__content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.jr-post-card__date {
    font-family: var(--font-data);
    font-variant-numeric: tabular-nums;
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--silver);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.jr-post-card__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--navy-text);
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.jr-post-card__title a {
    color: inherit;
    text-decoration: none;
}

.jr-post-card__title a:hover {
    color: var(--red);
}

.jr-post-card__excerpt {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.9375rem;
    color: var(--slate);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.jr-post-card__link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--red);
    text-decoration: none;
    transition: color 0.2s ease;
}

.jr-post-card__link:hover {
    color: var(--red-dark);
}

/* Related posts grid (single.php) */
.jr-related {
    padding: 3rem 0 4rem;
    background-color: var(--ivory);
}

.jr-related h2 {
    font-family: var(--font-drama);
    font-weight: 700;
    font-style: italic;
    font-size: 2rem;
    color: var(--navy-text);
    margin-bottom: 1.5rem;
}

.jr-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Single post layout */
.jr-single {
    background-color: var(--ivory);
}

.jr-single__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.jr-single__layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}

.jr-single__sidebar {
    position: sticky;
    top: 100px;
}


/* ============================================================================
   24e. MISSING COMPONENT STYLES
   Classes referenced in templates but not previously defined in CSS.
   ============================================================================ */

/* Skip-to-content link */
.jr-skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    z-index: 10000;
    padding: 0.75rem 1.5rem;
    background-color: var(--red);
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
}

.jr-skip-link:focus {
    top: 0;
}

/* Hero CTA button */
.jr-hero__cta {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: -0.01em;
    background-color: var(--red);
    color: var(--white);
    padding: 0.875rem 2rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: transform 0.2s var(--ease-magnetic),
                background-color 0.2s var(--ease-magnetic),
                box-shadow 0.2s var(--ease-magnetic);
}

.jr-hero__cta:hover {
    background-color: var(--red-dark);
    color: var(--white);
    transform: scale(1.03);
    box-shadow: 0 4px 16px rgba(152, 1, 46, 0.3);
}

/* Philosophy: "We focus on" line */
.jr-philosophy__focus {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.5rem;
    color: var(--silver);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* Protocol icon containers */
.jr-protocol__icon {
    width: 120px;
    height: 120px;
}

.jr-protocol__icon--ekg {
    width: 120px;
    height: 40px;
}

/* Pricing inner container + CTA */
.jr-pricing__cta {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    background-color: var(--red);
    color: var(--white);
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: background-color 0.2s var(--ease-magnetic),
                transform 0.2s var(--ease-magnetic);
    margin-top: auto;
}

.jr-pricing__cta:hover {
    background-color: var(--red-dark);
    color: var(--white);
    transform: scale(1.03);
}

/* Pricing card list styling */
.jr-pricing__card ul {
    text-align: left;
    margin-bottom: 2rem;
}

.jr-pricing__card li {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.9375rem;
    color: var(--navy-text);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--ivory);
    list-style: none;
}

.jr-pricing__card li::before {
    content: '\2713';
    color: var(--success);
    font-weight: 700;
    margin-right: 0.75rem;
}

/* Pricing comparison table (uses <table> in HTML) */
.jr-pricing__comparison table {
    width: 100%;
}

.jr-tick {
    color: var(--success);
    font-weight: 700;
    text-align: center;
}

.jr-dash {
    color: var(--silver);
    text-align: center;
}

/* Pricing price span styling */
.jr-pricing__price span {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.875rem;
    color: var(--silver);
}

/* Testimonials inner container */
.jr-testimonials__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Testimonial card styling */
.jr-testimonial-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.jr-testimonial-card blockquote {
    padding: 1.5rem;
    margin: 0;
}

.jr-testimonial-card blockquote p {
    font-family: var(--font-drama);
    font-weight: 400;
    font-style: italic;
    font-size: 1.125rem;
    color: var(--white);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.jr-testimonial-card cite {
    display: block;
    padding: 0 1.5rem 1.5rem;
    font-style: normal;
}

.jr-testimonial-card cite strong {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.jr-testimonial-card cite span {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.875rem;
    color: var(--silver);
}

/* Credibility inner container */
.jr-credibility__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Stat blocks */
.jr-stat {
    padding: 1rem;
    text-align: center;
}

.jr-stat__label {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1rem;
    color: var(--slate);
    display: block;
}

.jr-stat__number--text {
    font-family: var(--font-data);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 4.5rem;
    letter-spacing: -0.02em;
    color: var(--navy-text);
    line-height: 1;
}

/* Reviews stars section removed */

/* Difference inner container */
.jr-difference__inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Difference line animation class */
.diff-line {
    opacity: 0;
    transform: translateY(30px);
}

/* Pre-footer directions link */
.jr-pre-footer__directions {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--silver);
    text-decoration: none;
    margin-top: 0.5rem;
    transition: color 0.2s ease;
}

.jr-pre-footer__directions:hover {
    color: var(--white);
}

/* Footer column */
.jr-footer__col {
    min-width: 0;
}

.jr-footer__col h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.jr-footer__col p {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.jr-footer__col a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.jr-footer__col a:hover {
    color: var(--white);
}

.jr-footer__col ul {
    list-style: none;
}

.jr-footer__col li {
    padding: 0.25rem 0;
}

.jr-footer__col address {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    font-style: normal;
}

/* Footer brand heading */
.jr-footer__brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

/* Typewriter additional elements */
.jr-typewriter__output {
    font-family: var(--font-data);
    font-variant-numeric: tabular-nums;
    font-size: 0.8125rem;
    color: var(--navy-text);
    line-height: 1.8;
}

.jr-typewriter__prompt {
    color: var(--red);
    font-weight: 700;
    margin-right: 0.25rem;
}

.jr-typewriter__text {
    display: inline;
}

/* WeekGrid additional elements */
.jr-weekgrid__cursor {
    width: 100%;
    height: 2px;
    background-color: var(--red);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.jr-weekgrid__day--dim {
    opacity: 0.35;
}

.jr-weekgrid__day--target {
    background-color: var(--red);
    color: var(--white);
    border-color: var(--red);
}

/* Services page: __grid uses container class from template */
.jr-services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

/* Centre the last service card when it sits alone in a row (10 cards = 3+3+3+1) */
.jr-services__grid .jr-service-card:last-child:nth-child(3n + 1) {
    grid-column: 1 / -1;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}
/* Service card additional */
.jr-service-card {
    background-color: var(--navy);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    border-top: 3px solid var(--red);
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s var(--ease-magnetic),
                box-shadow 0.3s var(--ease-magnetic);
    display: block;
}

.jr-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(5, 16, 36, 0.2);
    color: var(--white);
}

.jr-service-card__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: var(--red);
}

.jr-service-card h2,
.jr-service-card h3 {
    color: var(--white);
}

.jr-service-card h2 a,
.jr-service-card h3 a {
    color: var(--white);
    text-decoration: none;
}

.jr-service-card p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.jr-service-card__link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--red);
    text-decoration: none;
}

.jr-service-card__link:hover {
    color: var(--ivory);
}

/* Mobile bar */
.jr-mobile-bar__call,
.jr-mobile-bar__cta {
    flex: 1;
    padding: 0.75rem;
    border-radius: var(--radius-pill);
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.jr-mobile-bar__call {
    background-color: var(--red);
    color: var(--white);
}

.jr-mobile-bar__cta {
    background-color: var(--navy);
    color: var(--white);
}


/* ============================================================================
   25. REDUCED MOTION
   Disable all animation for users who prefer reduced motion.
   GSAP animations are also disabled via JS check.
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    html {
        scroll-behavior: auto;
    }

    .jr-hero__watermark {
        display: none;
    }

    body::before {
        display: none;
    }

    /* Show hero elements immediately (no GSAP fade-in) */
    .hero-elem {
        opacity: 1;
        transform: none;
    }

    .phil-line,
    .diff-line {
        opacity: 1;
        transform: none;
    }
}


/* ============================================================================
   26. MOBILE RESPONSIVE (max-width: 768px)
   Mobile-first overrides for all components.
   ============================================================================ */

@media (max-width: 768px) {

    /* --- Body padding for sticky bar --- */
    body {
        padding-bottom: 65px;
    }

    /* --- Noise overlay disabled on mobile --- */
    body::before {
        display: none;
    }

    /* --- Section padding reduction --- */
    section {
        padding: 64px 0;
    }

    .jr-philosophy {
        padding: 80px 0;
    }

    .jr-difference {
        padding: 80px 0;
    }

    .jr-features {
        padding-bottom: 80px;
    }

    .jr-credibility {
        padding: 80px 0;
    }

    /* --- Navbar mobile --- */
    .jr-navbar {
        width: calc(100% - 2rem);
        padding: 0.625rem 1rem;
    }

    .jr-navbar__brand {
        font-size: 1.125rem;
    }

    .jr-navbar__menu {
        display: none;
    }

    .jr-navbar__tagline {
        display: none;
    }

    .jr-navbar__actions {
        display: none;
    }

    .jr-navbar__hamburger {
        display: flex;
    }

    /* --- Mobile sticky bottom bar --- */
    .jr-mobile-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        box-sizing: border-box;
        background-color: var(--white);
        padding: 0.625rem 1rem;
        border-top: 1px solid rgba(30, 41, 59, 0.08);
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
        z-index: 999;
        gap: 0.5rem;
        overflow: hidden;
    }

    .jr-mobile-bar__call,
    .jr-mobile-bar__cta {
        flex: 1;
        min-width: 0;
        padding: 0.75rem;
        border-radius: var(--radius-pill);
        text-align: center;
        font-family: var(--font-heading);
        font-weight: 600;
        font-size: 0.9rem;
        text-decoration: none;
        border: none;
        cursor: pointer;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .jr-mobile-bar__call {
        background-color: var(--red);
        color: var(--white);
    }

    .jr-mobile-bar__cta {
        background-color: var(--navy);
        color: var(--white);
    }

    /* --- Hero mobile --- */
    .jr-hero {
        min-height: 100svh;
        padding: 0 1rem 60px;
    }

    .jr-hero__line1 {
        font-size: 2.25rem;
    }

    .jr-hero__line2 {
        font-size: 3.75rem;
    }

    .jr-hero__sub {
        font-size: 1rem;
    }

    .jr-hero__watermark {
        font-size: 10rem;
        bottom: 1rem;
        right: 1rem;
    }

    /* --- Trust bar mobile --- */
    .jr-trust-bar {
        gap: 1rem;
        height: auto;
        padding: 0.5rem 1rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
    }

    .jr-trust-bar__logo {
        height: 24px;
        flex-shrink: 0;
    }

    /* --- Typography mobile --- */
    h2,
    .jr-section-heading {
        font-size: 2rem;
    }

    h3,
    .jr-card-heading {
        font-size: 1.25rem;
    }

    h4 { font-size: 1.125rem; }
    h5 { font-size: 1rem; }

    .jr-stat__number {
        font-size: 3.75rem;
    }

    /* --- Features mobile --- */
    .jr-features__grid {
        grid-template-columns: 1fr;
    }

    .jr-feature-card {
        padding: 1.5rem;
    }

    /* --- Philosophy mobile --- */
    .jr-philosophy__line {
        font-size: 1.25rem;
    }

    .jr-philosophy__highlight {
        font-size: 3rem;
    }

    /* --- Protocol mobile --- */
    .jr-protocol__card {
        padding: 2rem 1.5rem;
    }

    .jr-protocol__card-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .jr-protocol__svg {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }

    /* --- Pricing mobile --- */
    .jr-pricing__tiers {
        grid-template-columns: 1fr;
    }

    .jr-pricing__card {
        padding: 2rem;
    }

    /* Comparison table: convert to stacked cards on mobile */
    .jr-pricing__comparison-header {
        display: none;
    }

    .jr-pricing__comparison-row {
        grid-template-columns: 1fr;
        padding: 1rem 1.5rem;
        gap: 0.25rem;
    }

    .jr-pricing__comparison-row span {
        text-align: left;
    }

    .jr-pricing__comparison-row span:first-child {
        font-weight: 600;
    }

    /* --- Testimonials mobile --- */
    .jr-testimonials__grid {
        grid-template-columns: 1fr;
    }

    .jr-testimonial-card__play {
        width: 52px;
        height: 52px;
    }

    .jr-testimonial-card__play::after {
        border-width: 8px 0 8px 14px;
    }

    /* --- Credibility mobile --- */
    .jr-credibility__stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .jr-credibility__accreditations {
        gap: 1rem;
    }

    /* --- Pre-footer mobile --- */
    .jr-pre-footer__inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* Form first, then contact details (via order) */
    .jr-pre-footer__form-col {
        order: 1;
    }

    .jr-pre-footer__info-col {
        order: 2;
    }

    .jr-pre-footer__form-col-col h2 {
        font-size: 2rem;
    }

    /* Hide map on mobile */
    .jr-pre-footer__map {
        display: none;
    }

    /* --- Footer mobile --- */
    .jr-footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .jr-footer__bottom {
        flex-direction: column;
        text-align: center;
    }

    .jr-footer {
        border-radius: 0;
    }

    /* --- Page templates mobile --- */
    .jr-hero-banner {
        padding: 200px 1rem 60px;
    }

    .jr-hero-banner__title {
        font-size: 2rem;
    }

    .jr-services__grid {
        grid-template-columns: 1fr;
    }

    .jr-blog-grid {
        grid-template-columns: 1fr;
    }

    /* Archive grid mobile */
    .jr-archive__grid {
        grid-template-columns: 1fr;
    }

    /* Related grid mobile */
    .jr-related__grid {
        grid-template-columns: 1fr;
    }

    .jr-related h2 {
        font-size: 1.5rem;
    }

    /* Single post layout mobile */
    .jr-single__layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .jr-single__sidebar {
        position: static;
    }

    /* Guides hub mobile */
    .jr-guides__inner {
        padding: 2rem 1rem 3rem;
    }

    .jr-guides__section-title {
        font-size: 1.375rem;
    }

    /* Author bio stacks vertically on mobile */
    .jr-author-bio {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* --- Content element padding reduction --- */
    .be-cta {
        padding: 1.5rem;
    }

    .jr-page-content {
        padding: 2rem 1rem;
    }

    .jr-page-content h1 {
        font-size: 2rem;
    }
}

/* --- Tablet breakpoint for intermediate adjustments --- */
@media (max-width: 1024px) and (min-width: 769px) {
    .jr-features__grid {
        grid-template-columns: 1fr 1fr;
    }

    .jr-testimonials__grid {
        grid-template-columns: 1fr 1fr;
    }

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

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

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

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

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


/* Feature card icons */
.jr-feature-card__icon {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}


/* Feature card icons */
.jr-feature-card__icon {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* ============================================================
   FOOTER — Consistent typography (v1.0.9)
   All Inter. Consistent sizes. Consistent gaps.
   ============================================================ */
footer.jr-footer {
    background-color: var(--navy);
    padding: 4rem 0 0;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-body);
    font-size: 0.875rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}
footer.jr-footer .jr-footer__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}
footer.jr-footer .jr-footer__col { min-width: 0; }
footer.jr-footer .jr-footer__brand {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    color: var(--white);
    margin: 0 0 0.5rem;
    letter-spacing: 0;
}
footer.jr-footer .jr-footer__tagline {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    line-height: 1.6;
}
footer.jr-footer .jr-footer__heading {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0 0.75rem;
}
footer.jr-footer .jr-footer__heading--sub {
    margin-top: 1.5rem;
}
footer.jr-footer .jr-footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
}
footer.jr-footer .jr-footer__list li {
    padding: 0.2rem 0;
}
footer.jr-footer .jr-footer__list a {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}
footer.jr-footer .jr-footer__list a:hover {
    color: var(--white);
}
footer.jr-footer .jr-footer__text {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin: 0 0 0.5rem;
}
footer.jr-footer .jr-footer__text a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}
footer.jr-footer .jr-footer__text a:hover {
    color: var(--white);
}
footer.jr-footer .jr-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 0.75rem;
}
footer.jr-footer .jr-footer__regulatory {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.35);
    margin: 0;
}
footer.jr-footer .jr-footer__copyright {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    margin: 0;
}
@media (max-width: 768px) {
    footer.jr-footer .jr-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    footer.jr-footer .jr-footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}
@media (max-width: 480px) {
    footer.jr-footer .jr-footer__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ============================================================
   FOOTER — Consistent typography (v1.0.9)
   All Inter. Consistent sizes. Consistent gaps.
   ============================================================ */
footer.jr-footer {
    background-color: var(--navy);
    padding: 4rem 0 0;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-body);
    font-size: 0.875rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}
footer.jr-footer .jr-footer__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}
footer.jr-footer .jr-footer__col { min-width: 0; }
footer.jr-footer .jr-footer__brand {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    color: var(--white);
    margin: 0 0 0.5rem;
    letter-spacing: 0;
}
footer.jr-footer .jr-footer__tagline {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    line-height: 1.6;
}
footer.jr-footer .jr-footer__heading {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0 0.75rem;
}
footer.jr-footer .jr-footer__heading--sub {
    margin-top: 1.5rem;
}
footer.jr-footer .jr-footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
}
footer.jr-footer .jr-footer__list li {
    padding: 0.2rem 0;
}
footer.jr-footer .jr-footer__list a {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}
footer.jr-footer .jr-footer__list a:hover {
    color: var(--white);
}
footer.jr-footer .jr-footer__text {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin: 0 0 0.5rem;
}
footer.jr-footer .jr-footer__text a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}
footer.jr-footer .jr-footer__text a:hover {
    color: var(--white);
}
footer.jr-footer .jr-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 0.75rem;
}
footer.jr-footer .jr-footer__regulatory {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.35);
    margin: 0;
}
footer.jr-footer .jr-footer__copyright {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    margin: 0;
}
@media (max-width: 768px) {
    footer.jr-footer .jr-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    footer.jr-footer .jr-footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}
@media (max-width: 480px) {
    footer.jr-footer .jr-footer__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Cookie consent banner */
.jr-cookie {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 1.5rem;
    font-family: var(--font-body);
}
.jr-cookie__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.jr-cookie__text {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.7);
    margin: 0;
    line-height: 1.5;
    flex: 1;
    min-width: 200px;
}
.jr-cookie__text a {
    color: var(--white);
    text-decoration: underline;
}
.jr-cookie__actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}
.jr-cookie__accept {
    background: var(--red);
    color: var(--white);
    border: none;
    padding: 0.5rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s;
}
.jr-cookie__accept:hover { opacity: 0.9; }
.jr-cookie__reject {
    background: transparent;
    color: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.5rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 400;
    border-radius: 4px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}
.jr-cookie__reject:hover {
    color: rgba(255,255,255,0.8);
    border-color: rgba(255,255,255,0.4);
}
@media (max-width: 600px) {
    .jr-cookie__inner { flex-direction: column; text-align: center; }
    .jr-cookie__actions { justify-content: center; }
}

/* Cookie consent banner */
.jr-cookie {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 1.5rem;
    font-family: var(--font-body);
}
.jr-cookie__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.jr-cookie__text {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.7);
    margin: 0;
    line-height: 1.5;
    flex: 1;
    min-width: 200px;
}
.jr-cookie__text a {
    color: var(--white);
    text-decoration: underline;
}
.jr-cookie__actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}
.jr-cookie__accept {
    background: var(--red);
    color: var(--white);
    border: none;
    padding: 0.5rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s;
}
.jr-cookie__accept:hover { opacity: 0.9; }
.jr-cookie__reject {
    background: transparent;
    color: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.5rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 400;
    border-radius: 4px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}
.jr-cookie__reject:hover {
    color: rgba(255,255,255,0.8);
    border-color: rgba(255,255,255,0.4);
}
@media (max-width: 600px) {
    .jr-cookie__inner { flex-direction: column; text-align: center; }
    .jr-cookie__actions { justify-content: center; }
}


/* ============================================================================
   27. MOBILE FIX -- Reviews, Pre-footer, About, Trust Strip (2026-02-22)
   Adds missing component styles + comprehensive mobile responsive fixes.
   ============================================================================ */

/* --- "What our clients say" testimonial section --- */
.jr-reviews-section {
    background-color: var(--ivory);
    padding: 60px 0;
    text-align: center;
}

.jr-reviews-section__heading {
    font-family: var(--font-drama);
    font-weight: 700;
    font-style: italic;
    font-size: 2.5rem;
    color: var(--navy-text);
    margin-bottom: 0.5rem;
}

.jr-reviews-section__sub {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1rem;
    color: var(--slate);
    margin-bottom: 2.5rem;
}

.jr-footer-testimonial {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    text-align: left;
}

.jr-footer-testimonial__photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--white);
    box-shadow: 0 2px 8px rgba(5, 16, 36, 0.1);
}

.jr-footer-testimonial__text p {
    font-family: var(--font-drama);
    font-weight: 400;
    font-style: italic;
    font-size: 1.125rem;
    color: var(--navy-text);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.jr-footer-testimonial__name {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.9375rem;
    color: var(--silver);
    font-style: normal;
    line-height: 1.4;
}

.jr-footer-testimonial__name strong {
    font-weight: 700;
    font-size: 1rem;
    color: var(--navy-text);
}

.jr-reviews-section__link {
    margin: 0;
}

.jr-reviews-section__link a {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--red);
    text-decoration: none;
    transition: color 0.2s ease;
}

.jr-reviews-section__link a:hover {
    color: var(--red-dark);
}


/* --- Pre-footer CTA section (jr-prefooter) --- */
.jr-prefooter {
    background-color: var(--navy);
    padding: 80px 0;
}

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

.jr-prefooter__heading {
    font-family: var(--font-drama);
    font-weight: 700;
    font-style: italic;
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.jr-prefooter__sub {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.125rem;
    color: var(--silver);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.jr-prefooter__form-heading {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.jr-prefooter__label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.jr-prefooter__phone {
    margin-bottom: 0.5rem;
}

.jr-prefooter__phone a {
    font-family: var(--font-data);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white);
    text-decoration: none;
    display: block;
}

.jr-prefooter__phone a:hover {
    color: var(--ivory);
}

.jr-prefooter__hours {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.9375rem;
    color: var(--silver);
    margin-bottom: 2rem;
}

.jr-prefooter__map {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.jr-prefooter__map iframe {
    display: block;
    width: 100%;
    border: 0;
}

/* Fluent Form overrides inside jr-prefooter */
.jr-prefooter .fluentform {
    margin-top: 1rem;
}

.jr-prefooter .fluentform .ff-el-input--label label,
.jr-prefooter .fluentform label {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--silver);
    margin-bottom: 0.5rem;
}

.jr-prefooter .fluentform .ff-el-input--content input[type="text"],
.jr-prefooter .fluentform .ff-el-input--content input[type="email"],
.jr-prefooter .fluentform .ff-el-input--content input[type="tel"],
.jr-prefooter .fluentform .ff-el-input--content input[type="url"],
.jr-prefooter .fluentform .ff-el-input--content textarea,
.jr-prefooter .fluentform .ff-el-input--content select {
    background-color: var(--navy-dark);
    border: 1px solid rgba(241, 245, 249, 0.15);
    border-radius: 0.75rem;
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1rem;
    padding: 0.875rem 1rem;
    width: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jr-prefooter .fluentform .ff-el-input--content input::placeholder,
.jr-prefooter .fluentform .ff-el-input--content textarea::placeholder {
    color: var(--silver);
    opacity: 0.7;
}

.jr-prefooter .fluentform .ff-el-input--content input:focus,
.jr-prefooter .fluentform .ff-el-input--content textarea:focus,
.jr-prefooter .fluentform .ff-el-input--content select:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(152, 1, 46, 0.15);
    outline: none;
}

.jr-prefooter .fluentform .ff-btn-submit,
.jr-prefooter .fluentform button[type="submit"] {
    background-color: var(--red);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: -0.01em;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background-color 0.2s var(--ease-magnetic),
                transform 0.2s var(--ease-magnetic);
    width: auto;
}

.jr-prefooter .fluentform .ff-btn-submit:hover,
.jr-prefooter .fluentform button[type="submit"]:hover {
    background-color: var(--red-dark);
    transform: scale(1.03);
}

.jr-prefooter .fluentform .ff-el-is-error .ff-el-input--content input,
.jr-prefooter .fluentform .ff-el-is-error .ff-el-input--content textarea {
    border-color: var(--red);
}

.jr-prefooter .fluentform .ff-el-is-error .error {
    color: var(--red);
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

.jr-prefooter .fluentform .ff-message-success {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    border-radius: 0.75rem;
    color: var(--success);
    padding: 1rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.9375rem;
}

/* Fluent Form name fields side by side */
.jr-prefooter .fluentform .ff-t-container {
    display: flex;
    gap: 1rem;
}

.jr-prefooter .fluentform .ff-t-cell {
    flex: 1;
}


/* --- Trust strip reviews sub-line --- */




.jr-trust-strip__reviews a {
    color: var(--red);
    text-decoration: none;
    font-weight: 500;
}

.jr-trust-strip__reviews a:hover {
    color: var(--red-dark);
}

.jr-trust-strip__inner {
    text-align: center;
}

.jr-trust-strip__inner > p:first-child {
    font-family: var(--font-data);
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--slate);
    margin-bottom: 0.25rem;
}


/* --- About page: fix section padding inside .jr-page-content__body --- */
.jr-page-content__body section {
    padding: 0;
    margin-bottom: 2.5rem;
}

.jr-page-content__body section:last-child {
    margin-bottom: 0;
}

/* About page CTA centering */
.jr-about-cta {
    text-align: center;
    margin-top: 2.5rem;
}

/* About page list styling */
.jr-about-why ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.jr-about-why ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(30, 41, 59, 0.06);
    line-height: 1.6;
}

.jr-about-why ul li:last-child {
    border-bottom: none;
}


/* ============================================================================
   27b. MOBILE RESPONSIVE -- Additional fixes (max-width: 768px)
   ============================================================================ */

@media (max-width: 768px) {

    /* --- Fix: About page sections should NOT have 48px padding --- */
    .jr-page-content__body section {
        padding: 0;
        margin-bottom: 1.5rem;
    }

    /* --- Reviews section mobile --- */
    .jr-reviews-section {
        padding: 40px 0;
    }

    .jr-reviews-section__heading {
        font-size: 1.75rem;
    }

    .jr-footer-testimonial {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
        padding: 0 1rem;
    }

    .jr-footer-testimonial__photo {
        width: 64px;
        height: 64px;
    }

    .jr-footer-testimonial__text p {
        font-size: 1rem;
    }

    /* --- Pre-footer (jr-prefooter) mobile --- */
    .jr-prefooter {
        padding: 48px 0;
    }

    .jr-prefooter__inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .jr-prefooter__left {
        order: 1;
    }

    .jr-prefooter__right {
        order: 2;
    }

    .jr-prefooter__heading {
        font-size: 2rem;
    }

    /* Hide map on mobile */
    .jr-prefooter__map {
        display: none;
    }

    /* Form submit button full-width on mobile */
    .jr-prefooter .fluentform .ff-btn-submit,
    .jr-prefooter .fluentform button[type="submit"] {
        width: 100%;
    }

    /* Fluent Form name fields stack on small screens */
    .jr-prefooter .fluentform .ff-t-container {
        flex-direction: column;
        gap: 0;
    }

    /* --- About page CTA full-width on mobile --- */
    .jr-about-cta .jr-btn {
        display: block;
        width: 100%;
        text-align: center;
    }

    /* --- Team member cards compact on mobile --- */
    .jr-team-member {
        padding: 1.25rem 0;
    }

    .jr-team-member__name {
        font-size: 1.15rem;
    }

    .jr-team-member__quals {
        font-size: 0.75rem;
        display: block;
        margin-left: 0;
        margin-top: 0.25rem;
    }

    /* --- Trust strip mobile fixes --- */
    .jr-trust-strip {
        padding: 1.25rem 1rem;
    }

    .jr-trust-strip__inner > p:first-child {
        font-size: 0.6875rem;
    }

    
}

@media (max-width: 480px) {

    /* --- Reviews section small mobile --- */
    .jr-reviews-section__heading {
        font-size: 1.5rem;
    }

    .jr-reviews-section__sub {
        font-size: 0.875rem;
    }

    /* --- Pre-footer small mobile --- */
    .jr-prefooter__heading {
        font-size: 1.75rem;
    }

    .jr-prefooter__phone a {
        font-size: 1.25rem;
    }
}


/* ============================================================================
   27. MOBILE FIX -- Reviews, Pre-footer, About, Trust Strip (2026-02-22)
   Adds missing component styles + comprehensive mobile responsive fixes.
   ============================================================================ */

/* --- "What our clients say" testimonial section --- */
.jr-reviews-section {
    background-color: var(--ivory);
    padding: 60px 0;
    text-align: center;
}

.jr-reviews-section__heading {
    font-family: var(--font-drama);
    font-weight: 700;
    font-style: italic;
    font-size: 2.5rem;
    color: var(--navy-text);
    margin-bottom: 0.5rem;
}

.jr-reviews-section__sub {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1rem;
    color: var(--slate);
    margin-bottom: 2.5rem;
}

.jr-footer-testimonial {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    text-align: left;
}

.jr-footer-testimonial__photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--white);
    box-shadow: 0 2px 8px rgba(5, 16, 36, 0.1);
}

.jr-footer-testimonial__text p {
    font-family: var(--font-drama);
    font-weight: 400;
    font-style: italic;
    font-size: 1.125rem;
    color: var(--navy-text);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.jr-footer-testimonial__name {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.9375rem;
    color: var(--silver);
    font-style: normal;
    line-height: 1.4;
}

.jr-footer-testimonial__name strong {
    font-weight: 700;
    font-size: 1rem;
    color: var(--navy-text);
}

.jr-reviews-section__link {
    margin: 0;
}

.jr-reviews-section__link a {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--red);
    text-decoration: none;
    transition: color 0.2s ease;
}

.jr-reviews-section__link a:hover {
    color: var(--red-dark);
}


/* --- Pre-footer CTA section (jr-prefooter) --- */
.jr-prefooter {
    background-color: var(--navy);
    padding: 80px 0;
}

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

.jr-prefooter__heading {
    font-family: var(--font-drama);
    font-weight: 700;
    font-style: italic;
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.jr-prefooter__sub {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.125rem;
    color: var(--silver);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.jr-prefooter__form-heading {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.jr-prefooter__label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.jr-prefooter__phone {
    margin-bottom: 0.5rem;
}

.jr-prefooter__phone a {
    font-family: var(--font-data);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white);
    text-decoration: none;
    display: block;
}

.jr-prefooter__phone a:hover {
    color: var(--ivory);
}

.jr-prefooter__hours {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.9375rem;
    color: var(--silver);
    margin-bottom: 2rem;
}

.jr-prefooter__map {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.jr-prefooter__map iframe {
    display: block;
    width: 100%;
    border: 0;
}

/* Fluent Form overrides inside jr-prefooter */
.jr-prefooter .fluentform {
    margin-top: 1rem;
}

.jr-prefooter .fluentform .ff-el-input--label label,
.jr-prefooter .fluentform label {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--silver);
    margin-bottom: 0.5rem;
}

.jr-prefooter .fluentform .ff-el-input--content input[type="text"],
.jr-prefooter .fluentform .ff-el-input--content input[type="email"],
.jr-prefooter .fluentform .ff-el-input--content input[type="tel"],
.jr-prefooter .fluentform .ff-el-input--content input[type="url"],
.jr-prefooter .fluentform .ff-el-input--content textarea,
.jr-prefooter .fluentform .ff-el-input--content select {
    background-color: var(--navy-dark);
    border: 1px solid rgba(241, 245, 249, 0.15);
    border-radius: 0.75rem;
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1rem;
    padding: 0.875rem 1rem;
    width: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jr-prefooter .fluentform .ff-el-input--content input::placeholder,
.jr-prefooter .fluentform .ff-el-input--content textarea::placeholder {
    color: var(--silver);
    opacity: 0.7;
}

.jr-prefooter .fluentform .ff-el-input--content input:focus,
.jr-prefooter .fluentform .ff-el-input--content textarea:focus,
.jr-prefooter .fluentform .ff-el-input--content select:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(152, 1, 46, 0.15);
    outline: none;
}

.jr-prefooter .fluentform .ff-btn-submit,
.jr-prefooter .fluentform button[type="submit"] {
    background-color: var(--red);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: -0.01em;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background-color 0.2s var(--ease-magnetic),
                transform 0.2s var(--ease-magnetic);
    width: auto;
}

.jr-prefooter .fluentform .ff-btn-submit:hover,
.jr-prefooter .fluentform button[type="submit"]:hover {
    background-color: var(--red-dark);
    transform: scale(1.03);
}

.jr-prefooter .fluentform .ff-el-is-error .ff-el-input--content input,
.jr-prefooter .fluentform .ff-el-is-error .ff-el-input--content textarea {
    border-color: var(--red);
}

.jr-prefooter .fluentform .ff-el-is-error .error {
    color: var(--red);
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

.jr-prefooter .fluentform .ff-message-success {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    border-radius: 0.75rem;
    color: var(--success);
    padding: 1rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.9375rem;
}

/* Fluent Form name fields side by side */
.jr-prefooter .fluentform .ff-t-container {
    display: flex;
    gap: 1rem;
}

.jr-prefooter .fluentform .ff-t-cell {
    flex: 1;
}


/* --- Trust strip reviews sub-line --- */
.jr-trust-strip__reviews {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.875rem;
    color: var(--slate);
    margin: 0;
}

.jr-trust-strip__stars {
    color: var(--red);
    margin-right: 0.25rem;
}

.jr-trust-strip__reviews a {
    color: var(--red);
    text-decoration: none;
    font-weight: 500;
}

.jr-trust-strip__reviews a:hover {
    color: var(--red-dark);
}

.jr-trust-strip__inner {
    text-align: center;
}

.jr-trust-strip__inner > p:first-child {
    font-family: var(--font-data);
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--slate);
    margin-bottom: 0.25rem;
}


/* --- About page: fix section padding inside .jr-page-content__body --- */
.jr-page-content__body section {
    padding: 0;
    margin-bottom: 2.5rem;
}

.jr-page-content__body section:last-child {
    margin-bottom: 0;
}

/* About page CTA centering */
.jr-about-cta {
    text-align: center;
    margin-top: 2.5rem;
}

/* About page list styling */
.jr-about-why ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.jr-about-why ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(30, 41, 59, 0.06);
    line-height: 1.6;
}

.jr-about-why ul li:last-child {
    border-bottom: none;
}


/* ============================================================================
   27b. MOBILE RESPONSIVE -- Additional fixes (max-width: 768px)
   ============================================================================ */

@media (max-width: 768px) {

    /* --- Fix: About page sections should NOT have 48px padding --- */
    .jr-page-content__body section {
        padding: 0;
        margin-bottom: 1.5rem;
    }

    /* --- Reviews section mobile --- */
    .jr-reviews-section {
        padding: 40px 0;
    }

    .jr-reviews-section__heading {
        font-size: 1.75rem;
    }

    .jr-footer-testimonial {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
        padding: 0 1rem;
    }

    .jr-footer-testimonial__photo {
        width: 64px;
        height: 64px;
    }

    .jr-footer-testimonial__text p {
        font-size: 1rem;
    }

    /* --- Pre-footer (jr-prefooter) mobile --- */
    .jr-prefooter {
        padding: 48px 0;
    }

    .jr-prefooter__inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .jr-prefooter__left {
        order: 1;
    }

    .jr-prefooter__right {
        order: 2;
    }

    .jr-prefooter__heading {
        font-size: 2rem;
    }

    /* Hide map on mobile */
    .jr-prefooter__map {
        display: none;
    }

    /* Form submit button full-width on mobile */
    .jr-prefooter .fluentform .ff-btn-submit,
    .jr-prefooter .fluentform button[type="submit"] {
        width: 100%;
    }

    /* Fluent Form name fields stack on small screens */
    .jr-prefooter .fluentform .ff-t-container {
        flex-direction: column;
        gap: 0;
    }

    /* --- About page CTA full-width on mobile --- */
    .jr-about-cta .jr-btn {
        display: block;
        width: 100%;
        text-align: center;
    }

    /* --- Team member cards compact on mobile --- */
    .jr-team-member {
        padding: 1.25rem 0;
    }

    .jr-team-member__name {
        font-size: 1.15rem;
    }

    .jr-team-member__quals {
        font-size: 0.75rem;
        display: block;
        margin-left: 0;
        margin-top: 0.25rem;
    }

    /* --- Trust strip mobile fixes --- */
    .jr-trust-strip {
        padding: 1.25rem 1rem;
    }

    .jr-trust-strip__inner > p:first-child {
        font-size: 0.6875rem;
    }

    .jr-trust-strip__reviews {
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {

    /* --- Reviews section small mobile --- */
    .jr-reviews-section__heading {
        font-size: 1.5rem;
    }

    .jr-reviews-section__sub {
        font-size: 0.875rem;
    }

    /* --- Pre-footer small mobile --- */
    .jr-prefooter__heading {
        font-size: 1.75rem;
    }

    .jr-prefooter__phone a {
        font-size: 1.25rem;
    }
}


/* ============================================================================
   27. MOBILE FIX -- Reviews, Pre-footer, About, Trust Strip (2026-02-22)
   Adds missing component styles + comprehensive mobile responsive fixes.
   ============================================================================ */

/* --- "What our clients say" testimonial section --- */
.jr-reviews-section {
    background-color: var(--ivory);
    padding: 60px 0;
    text-align: center;
}

.jr-reviews-section__heading {
    font-family: var(--font-drama);
    font-weight: 700;
    font-style: italic;
    font-size: 2.5rem;
    color: var(--navy-text);
    margin-bottom: 0.5rem;
}

.jr-reviews-section__sub {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1rem;
    color: var(--slate);
    margin-bottom: 2.5rem;
}

.jr-footer-testimonial {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    text-align: left;
}

.jr-footer-testimonial__photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--white);
    box-shadow: 0 2px 8px rgba(5, 16, 36, 0.1);
}

.jr-footer-testimonial__text p {
    font-family: var(--font-drama);
    font-weight: 400;
    font-style: italic;
    font-size: 1.125rem;
    color: var(--navy-text);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.jr-footer-testimonial__name {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.9375rem;
    color: var(--silver);
    font-style: normal;
    line-height: 1.4;
}

.jr-footer-testimonial__name strong {
    font-weight: 700;
    font-size: 1rem;
    color: var(--navy-text);
}

.jr-reviews-section__link {
    margin: 0;
}

.jr-reviews-section__link a {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--red);
    text-decoration: none;
    transition: color 0.2s ease;
}

.jr-reviews-section__link a:hover {
    color: var(--red-dark);
}


/* --- Pre-footer CTA section (jr-prefooter) --- */
.jr-prefooter {
    background-color: var(--navy);
    padding: 80px 0;
}

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

.jr-prefooter__heading {
    font-family: var(--font-drama);
    font-weight: 700;
    font-style: italic;
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.jr-prefooter__sub {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.125rem;
    color: var(--silver);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.jr-prefooter__form-heading {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.jr-prefooter__label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.jr-prefooter__phone {
    margin-bottom: 0.5rem;
}

.jr-prefooter__phone a {
    font-family: var(--font-data);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white);
    text-decoration: none;
    display: block;
}

.jr-prefooter__phone a:hover {
    color: var(--ivory);
}

.jr-prefooter__hours {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.9375rem;
    color: var(--silver);
    margin-bottom: 2rem;
}

.jr-prefooter__map {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.jr-prefooter__map iframe {
    display: block;
    width: 100%;
    border: 0;
}

/* Fluent Form overrides inside jr-prefooter */
.jr-prefooter .fluentform {
    margin-top: 1rem;
}

.jr-prefooter .fluentform .ff-el-input--label label,
.jr-prefooter .fluentform label {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--silver);
    margin-bottom: 0.5rem;
}

.jr-prefooter .fluentform .ff-el-input--content input[type="text"],
.jr-prefooter .fluentform .ff-el-input--content input[type="email"],
.jr-prefooter .fluentform .ff-el-input--content input[type="tel"],
.jr-prefooter .fluentform .ff-el-input--content input[type="url"],
.jr-prefooter .fluentform .ff-el-input--content textarea,
.jr-prefooter .fluentform .ff-el-input--content select {
    background-color: var(--navy-dark);
    border: 1px solid rgba(241, 245, 249, 0.15);
    border-radius: 0.75rem;
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1rem;
    padding: 0.875rem 1rem;
    width: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jr-prefooter .fluentform .ff-el-input--content input::placeholder,
.jr-prefooter .fluentform .ff-el-input--content textarea::placeholder {
    color: var(--silver);
    opacity: 0.7;
}

.jr-prefooter .fluentform .ff-el-input--content input:focus,
.jr-prefooter .fluentform .ff-el-input--content textarea:focus,
.jr-prefooter .fluentform .ff-el-input--content select:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(152, 1, 46, 0.15);
    outline: none;
}

.jr-prefooter .fluentform .ff-btn-submit,
.jr-prefooter .fluentform button[type="submit"] {
    background-color: var(--red);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: -0.01em;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background-color 0.2s var(--ease-magnetic),
                transform 0.2s var(--ease-magnetic);
    width: auto;
}

.jr-prefooter .fluentform .ff-btn-submit:hover,
.jr-prefooter .fluentform button[type="submit"]:hover {
    background-color: var(--red-dark);
    transform: scale(1.03);
}

.jr-prefooter .fluentform .ff-el-is-error .ff-el-input--content input,
.jr-prefooter .fluentform .ff-el-is-error .ff-el-input--content textarea {
    border-color: var(--red);
}

.jr-prefooter .fluentform .ff-el-is-error .error {
    color: var(--red);
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

.jr-prefooter .fluentform .ff-message-success {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    border-radius: 0.75rem;
    color: var(--success);
    padding: 1rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.9375rem;
}

/* Fluent Form name fields side by side */
.jr-prefooter .fluentform .ff-t-container {
    display: flex;
    gap: 1rem;
}

.jr-prefooter .fluentform .ff-t-cell {
    flex: 1;
}


/* --- Trust strip reviews sub-line --- */
.jr-trust-strip__reviews {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.875rem;
    color: var(--slate);
    margin: 0;
}

.jr-trust-strip__stars {
    color: var(--red);
    margin-right: 0.25rem;
}

.jr-trust-strip__reviews a {
    color: var(--red);
    text-decoration: none;
    font-weight: 500;
}

.jr-trust-strip__reviews a:hover {
    color: var(--red-dark);
}

.jr-trust-strip__inner {
    text-align: center;
}

.jr-trust-strip__inner > p:first-child {
    font-family: var(--font-data);
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--slate);
    margin-bottom: 0.25rem;
}


/* --- About page: fix section padding inside .jr-page-content__body --- */
.jr-page-content__body section {
    padding: 0;
    margin-bottom: 2.5rem;
}

.jr-page-content__body section:last-child {
    margin-bottom: 0;
}

/* About page CTA centering */
.jr-about-cta {
    text-align: center;
    margin-top: 2.5rem;
}

/* About page list styling */
.jr-about-why ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.jr-about-why ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(30, 41, 59, 0.06);
    line-height: 1.6;
}

.jr-about-why ul li:last-child {
    border-bottom: none;
}


/* ============================================================================
   27b. MOBILE RESPONSIVE -- Additional fixes (max-width: 768px)
   ============================================================================ */

@media (max-width: 768px) {

    /* --- Fix: About page sections should NOT have 48px padding --- */
    .jr-page-content__body section {
        padding: 0;
        margin-bottom: 1.5rem;
    }

    /* --- Reviews section mobile --- */
    .jr-reviews-section {
        padding: 40px 0;
    }

    .jr-reviews-section__heading {
        font-size: 1.75rem;
    }

    .jr-footer-testimonial {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
        padding: 0 1rem;
    }

    .jr-footer-testimonial__photo {
        width: 64px;
        height: 64px;
    }

    .jr-footer-testimonial__text p {
        font-size: 1rem;
    }

    /* --- Pre-footer (jr-prefooter) mobile --- */
    .jr-prefooter {
        padding: 48px 0;
    }

    .jr-prefooter__inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .jr-prefooter__left {
        order: 1;
    }

    .jr-prefooter__right {
        order: 2;
    }

    .jr-prefooter__heading {
        font-size: 2rem;
    }

    /* Hide map on mobile */
    .jr-prefooter__map {
        display: none;
    }

    /* Form submit button full-width on mobile */
    .jr-prefooter .fluentform .ff-btn-submit,
    .jr-prefooter .fluentform button[type="submit"] {
        width: 100%;
    }

    /* Fluent Form name fields stack on small screens */
    .jr-prefooter .fluentform .ff-t-container {
        flex-direction: column;
        gap: 0;
    }

    /* --- About page CTA full-width on mobile --- */
    .jr-about-cta .jr-btn {
        display: block;
        width: 100%;
        text-align: center;
    }

    /* --- Team member cards compact on mobile --- */
    .jr-team-member {
        padding: 1.25rem 0;
    }

    .jr-team-member__name {
        font-size: 1.15rem;
    }

    .jr-team-member__quals {
        font-size: 0.75rem;
        display: block;
        margin-left: 0;
        margin-top: 0.25rem;
    }

    /* --- Trust strip mobile fixes --- */
    .jr-trust-strip {
        padding: 1.25rem 1rem;
    }

    .jr-trust-strip__inner > p:first-child {
        font-size: 0.6875rem;
    }

    .jr-trust-strip__reviews {
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {

    /* --- Reviews section small mobile --- */
    .jr-reviews-section__heading {
        font-size: 1.5rem;
    }

    .jr-reviews-section__sub {
        font-size: 0.875rem;
    }

    /* --- Pre-footer small mobile --- */
    .jr-prefooter__heading {
        font-size: 1.75rem;
    }

    .jr-prefooter__phone a {
        font-size: 1.25rem;
    }
}


/* ============================================================================
   27. MOBILE FIX -- Reviews, Pre-footer, About, Trust Strip (2026-02-22)
   Adds missing component styles + comprehensive mobile responsive fixes.
   ============================================================================ */

/* --- "What our clients say" testimonial section --- */
.jr-reviews-section {
    background-color: var(--ivory);
    padding: 60px 0;
    text-align: center;
}

.jr-reviews-section__heading {
    font-family: var(--font-drama);
    font-weight: 700;
    font-style: italic;
    font-size: 2.5rem;
    color: var(--navy-text);
    margin-bottom: 0.5rem;
}

.jr-reviews-section__sub {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1rem;
    color: var(--slate);
    margin-bottom: 2.5rem;
}

.jr-footer-testimonial {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    text-align: left;
}

.jr-footer-testimonial__photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--white);
    box-shadow: 0 2px 8px rgba(5, 16, 36, 0.1);
}

.jr-footer-testimonial__text p {
    font-family: var(--font-drama);
    font-weight: 400;
    font-style: italic;
    font-size: 1.125rem;
    color: var(--navy-text);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.jr-footer-testimonial__name {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.9375rem;
    color: var(--silver);
    font-style: normal;
    line-height: 1.4;
}

.jr-footer-testimonial__name strong {
    font-weight: 700;
    font-size: 1rem;
    color: var(--navy-text);
}

.jr-reviews-section__link {
    margin: 0;
}

.jr-reviews-section__link a {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--red);
    text-decoration: none;
    transition: color 0.2s ease;
}

.jr-reviews-section__link a:hover {
    color: var(--red-dark);
}


/* --- Pre-footer CTA section (jr-prefooter) --- */
.jr-prefooter {
    background-color: var(--navy);
    padding: 80px 0;
}

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

.jr-prefooter__heading {
    font-family: var(--font-drama);
    font-weight: 700;
    font-style: italic;
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.jr-prefooter__sub {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.125rem;
    color: var(--silver);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.jr-prefooter__form-heading {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.jr-prefooter__label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.jr-prefooter__phone {
    margin-bottom: 0.5rem;
}

.jr-prefooter__phone a {
    font-family: var(--font-data);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white);
    text-decoration: none;
    display: block;
}

.jr-prefooter__phone a:hover {
    color: var(--ivory);
}

.jr-prefooter__hours {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.9375rem;
    color: var(--silver);
    margin-bottom: 2rem;
}

.jr-prefooter__map {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.jr-prefooter__map iframe {
    display: block;
    width: 100%;
    border: 0;
}

/* Fluent Form overrides inside jr-prefooter */
.jr-prefooter .fluentform {
    margin-top: 1rem;
}

.jr-prefooter .fluentform .ff-el-input--label label,
.jr-prefooter .fluentform label {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--silver);
    margin-bottom: 0.5rem;
}

.jr-prefooter .fluentform .ff-el-input--content input[type="text"],
.jr-prefooter .fluentform .ff-el-input--content input[type="email"],
.jr-prefooter .fluentform .ff-el-input--content input[type="tel"],
.jr-prefooter .fluentform .ff-el-input--content input[type="url"],
.jr-prefooter .fluentform .ff-el-input--content textarea,
.jr-prefooter .fluentform .ff-el-input--content select {
    background-color: var(--navy-dark);
    border: 1px solid rgba(241, 245, 249, 0.15);
    border-radius: 0.75rem;
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1rem;
    padding: 0.875rem 1rem;
    width: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jr-prefooter .fluentform .ff-el-input--content input::placeholder,
.jr-prefooter .fluentform .ff-el-input--content textarea::placeholder {
    color: var(--silver);
    opacity: 0.7;
}

.jr-prefooter .fluentform .ff-el-input--content input:focus,
.jr-prefooter .fluentform .ff-el-input--content textarea:focus,
.jr-prefooter .fluentform .ff-el-input--content select:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(152, 1, 46, 0.15);
    outline: none;
}

.jr-prefooter .fluentform .ff-btn-submit,
.jr-prefooter .fluentform button[type="submit"] {
    background-color: var(--red);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: -0.01em;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background-color 0.2s var(--ease-magnetic),
                transform 0.2s var(--ease-magnetic);
    width: auto;
}

.jr-prefooter .fluentform .ff-btn-submit:hover,
.jr-prefooter .fluentform button[type="submit"]:hover {
    background-color: var(--red-dark);
    transform: scale(1.03);
}

.jr-prefooter .fluentform .ff-el-is-error .ff-el-input--content input,
.jr-prefooter .fluentform .ff-el-is-error .ff-el-input--content textarea {
    border-color: var(--red);
}

.jr-prefooter .fluentform .ff-el-is-error .error {
    color: var(--red);
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

.jr-prefooter .fluentform .ff-message-success {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    border-radius: 0.75rem;
    color: var(--success);
    padding: 1rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.9375rem;
}

/* Fluent Form name fields side by side */
.jr-prefooter .fluentform .ff-t-container {
    display: flex;
    gap: 1rem;
}

.jr-prefooter .fluentform .ff-t-cell {
    flex: 1;
}


/* --- Trust strip reviews sub-line --- */
.jr-trust-strip__reviews {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.875rem;
    color: var(--slate);
    margin: 0;
}

.jr-trust-strip__stars {
    color: var(--red);
    margin-right: 0.25rem;
}

.jr-trust-strip__reviews a {
    color: var(--red);
    text-decoration: none;
    font-weight: 500;
}

.jr-trust-strip__reviews a:hover {
    color: var(--red-dark);
}

.jr-trust-strip__inner {
    text-align: center;
}

.jr-trust-strip__inner > p:first-child {
    font-family: var(--font-data);
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--slate);
    margin-bottom: 0.25rem;
}


/* --- About page: fix section padding inside .jr-page-content__body --- */
.jr-page-content__body section {
    padding: 0;
    margin-bottom: 2.5rem;
}

.jr-page-content__body section:last-child {
    margin-bottom: 0;
}

/* About page CTA centering */
.jr-about-cta {
    text-align: center;
    margin-top: 2.5rem;
}

/* About page list styling */
.jr-about-why ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.jr-about-why ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(30, 41, 59, 0.06);
    line-height: 1.6;
}

.jr-about-why ul li:last-child {
    border-bottom: none;
}


/* ============================================================================
   27b. MOBILE RESPONSIVE -- Additional fixes (max-width: 768px)
   ============================================================================ */

@media (max-width: 768px) {

    /* --- Fix: About page sections should NOT have 48px padding --- */
    .jr-page-content__body section {
        padding: 0;
        margin-bottom: 1.5rem;
    }

    /* --- Reviews section mobile --- */
    .jr-reviews-section {
        padding: 40px 0;
    }

    .jr-reviews-section__heading {
        font-size: 1.75rem;
    }

    .jr-footer-testimonial {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
        padding: 0 1rem;
    }

    .jr-footer-testimonial__photo {
        width: 64px;
        height: 64px;
    }

    .jr-footer-testimonial__text p {
        font-size: 1rem;
    }

    /* --- Pre-footer (jr-prefooter) mobile --- */
    .jr-prefooter {
        padding: 48px 0;
    }

    .jr-prefooter__inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .jr-prefooter__left {
        order: 1;
    }

    .jr-prefooter__right {
        order: 2;
    }

    .jr-prefooter__heading {
        font-size: 2rem;
    }

    /* Hide map on mobile */
    .jr-prefooter__map {
        display: none;
    }

    /* Form submit button full-width on mobile */
    .jr-prefooter .fluentform .ff-btn-submit,
    .jr-prefooter .fluentform button[type="submit"] {
        width: 100%;
    }

    /* Fluent Form name fields stack on small screens */
    .jr-prefooter .fluentform .ff-t-container {
        flex-direction: column;
        gap: 0;
    }

    /* --- About page CTA full-width on mobile --- */
    .jr-about-cta .jr-btn {
        display: block;
        width: 100%;
        text-align: center;
    }

    /* --- Team member cards compact on mobile --- */
    .jr-team-member {
        padding: 1.25rem 0;
    }

    .jr-team-member__name {
        font-size: 1.15rem;
    }

    .jr-team-member__quals {
        font-size: 0.75rem;
        display: block;
        margin-left: 0;
        margin-top: 0.25rem;
    }

    /* --- Trust strip mobile fixes --- */
    .jr-trust-strip {
        padding: 1.25rem 1rem;
    }

    .jr-trust-strip__inner > p:first-child {
        font-size: 0.6875rem;
    }

    .jr-trust-strip__reviews {
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {

    /* --- Reviews section small mobile --- */
    .jr-reviews-section__heading {
        font-size: 1.5rem;
    }

    .jr-reviews-section__sub {
        font-size: 0.875rem;
    }

    /* --- Pre-footer small mobile --- */
    .jr-prefooter__heading {
        font-size: 1.75rem;
    }

    .jr-prefooter__phone a {
        font-size: 1.25rem;
    }
}

/* ============================================================================
   CONTACT PAGE (.jr-contact)
   ============================================================================ */

.jr-contact {
    padding: 4rem 1.5rem;
    background-color: var(--ivory);
}

.jr-contact__inner {
    max-width: 1000px;
    margin: 0 auto;
}

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

.jr-contact__form-col h2,
.jr-contact__info-col h2 {
    font-family: var(--font-drama);
    font-weight: 700;
    font-style: italic;
    font-size: 2rem;
    color: var(--navy-text);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.jr-contact__form-col > p {
    color: var(--navy-text);
    margin-bottom: 1.5rem;
}

.jr-contact__card {
    margin-bottom: 1.5rem;
}

.jr-contact__card h3 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--red);
    margin-bottom: 0.25rem;
}

.jr-contact__card a {
    color: var(--navy-text);
    text-decoration: none;
    font-weight: 500;
}

.jr-contact__card a:hover {
    color: var(--red);
}

.jr-contact__card address {
    font-style: normal;
    color: var(--navy-text);
    line-height: 1.6;
}

.jr-contact__card p {
    color: var(--navy-text);
}

.jr-contact__map {
    margin-top: 2rem;
    border-radius: 1rem;
    overflow: hidden;
}

/* --- Contact page responsive --- */
@media (max-width: 768px) {
    .jr-contact {
        padding: 2.5rem 1rem;
    }

    .jr-contact__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .jr-contact__form-col h2,
    .jr-contact__info-col h2 {
        font-size: 1.625rem;
    }
}


/* ============================================================
   CONTRAST FIX — inner page hero banner text colours
   Root cause: hero-banner.php outputs a plain <h1> with no
   class, so it never matched .jr-hero-banner__title (which
   had color: var(--white)). Body default is --navy-text
   (#0F172A) which is near-invisible on the navy (#051024)
   background. Fix: explicitly colour ALL text descendants of
   .jr-hero-banner to white/ivory.
   Applied: 2026-02-22
   ============================================================ */

.jr-hero-banner h1,
.jr-hero-banner .jr-hero-banner__title {
    font-family: var(--font-drama);
    font-weight: 700;
    font-style: italic;
    font-size: 3rem;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.jr-hero-banner p,
.jr-hero-banner .jr-hero-banner__subtitle,
.jr-hero-banner .jr-hero-banner__meta,
.jr-hero-banner time,
.jr-hero-banner .jr-hero-banner__author {
    color: rgba(241, 245, 249, 0.85);  /* ivory at 85% for secondary text */
}

.jr-breadcrumbs,
.jr-breadcrumbs__list,
.jr-breadcrumbs li,
.jr-breadcrumbs span {
    color: rgba(241, 245, 249, 0.70);  /* slightly dimmed ivory for breadcrumb trail */
}

.jr-breadcrumbs a {
    color: rgba(241, 245, 249, 0.70);
    text-decoration: none;
    transition: color 0.2s ease;
}

.jr-breadcrumbs a:hover {
    color: var(--white);
    text-decoration: underline;
}


/* ============================================================
   HERO BANNER SPACING FIX — forced override
   ============================================================ */
.jr-hero-banner {
    padding-top: 300px !important;
    padding-bottom: 80px !important;
}

@media (max-width: 768px) {
    .jr-hero-banner {
        padding-top: 240px !important;
        padding-bottom: 60px !important;
    }
}


/* ============================================================
   DARK-ON-DARK CONTRAST SAFETY NET
   Root cause: global heading rules (h1-h6) set
   color: var(--navy-text) directly, which beats inherited
   color from dark-background parents. This block ensures
   ALL text inside ANY navy-background component is light.

   Previously fixed ad-hoc for .jr-hero-banner (2026-02-22).
   This block covers all dark components systematically so
   the issue never recurs.

   Applied: 2026-02-28
   ============================================================ */

/* ---------- 1. Sidebar CTA card (immediate fix) ---------- */
.jr-about-sidebar h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.jr-about-sidebar p {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.875rem;
    color: var(--silver);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.jr-about-sidebar a {
    color: var(--red);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.jr-about-sidebar a:hover {
    color: var(--ivory);
}

/* ---------- 2. Systemic safety net for ALL dark containers ----------
   Force light text on headings, paragraphs, and links inside
   every component that uses a navy / navy-dark background.
   This list is exhaustive as of 2026-02-28. Any new dark-bg
   component MUST be added here.
   ---------------------------------------------------------------- */

/* Heading overrides: prevent h1-h6 global color from winning */
.jr-hero h1,
.jr-hero h2,
.jr-hero h3,
.jr-hero h4,
.jr-hero h5,
.jr-hero h6,
.jr-hero-banner h1,
.jr-hero-banner h2,
.jr-hero-banner h3,
.jr-hero-banner h4,
.jr-hero-banner h5,
.jr-hero-banner h6,
.jr-philosophy h1,
.jr-philosophy h2,
.jr-philosophy h3,
.jr-philosophy h4,
.jr-philosophy h5,
.jr-philosophy h6,
.jr-testimonials h1,
.jr-testimonials h2,
.jr-testimonials h3,
.jr-testimonials h4,
.jr-testimonials h5,
.jr-testimonials h6,
.jr-difference h1,
.jr-difference h2,
.jr-difference h3,
.jr-difference h4,
.jr-difference h5,
.jr-difference h6,
.jr-pre-footer h1,
.jr-pre-footer h2,
.jr-pre-footer h3,
.jr-pre-footer h4,
.jr-pre-footer h5,
.jr-pre-footer h6,
.jr-prefooter h1,
.jr-prefooter h2,
.jr-prefooter h3,
.jr-prefooter h4,
.jr-prefooter h5,
.jr-prefooter h6,
.jr-footer h1,
.jr-footer h2,
.jr-footer h3,
.jr-footer h4,
.jr-footer h5,
.jr-footer h6,
.jr-about-sidebar h1,
.jr-about-sidebar h2,
.jr-about-sidebar h3,
.jr-about-sidebar h4,
.jr-about-sidebar h5,
.jr-about-sidebar h6,
.jr-service-card h1,
.jr-service-card h2,
.jr-service-card h3,
.jr-service-card h4,
.jr-service-card h5,
.jr-service-card h6,
.jr-mobile-overlay h1,
.jr-mobile-overlay h2,
.jr-mobile-overlay h3,
.jr-mobile-overlay h4,
.jr-mobile-overlay h5,
.jr-mobile-overlay h6,
.jr-navbar__dropdown h1,
.jr-navbar__dropdown h2,
.jr-navbar__dropdown h3,
.jr-navbar__dropdown h4,
.jr-navbar__dropdown h5,
.jr-navbar__dropdown h6,
.jr-cookie h1,
.jr-cookie h2,
.jr-cookie h3,
.jr-cookie h4,
.jr-cookie h5,
.jr-cookie h6,
.jr-mobile-bar h1,
.jr-mobile-bar h2,
.jr-mobile-bar h3,
.jr-mobile-bar h4,
.jr-mobile-bar h5,
.jr-mobile-bar h6 {
    color: var(--white);
}

/* Paragraph and body text inside dark containers */
.jr-hero p,
.jr-hero-banner p,
.jr-philosophy p,
.jr-testimonials p,
.jr-difference p,
.jr-pre-footer p,
.jr-prefooter p,
.jr-about-sidebar p,
.jr-mobile-overlay p,
.jr-navbar__dropdown p,
.jr-cookie p,
.jr-mobile-bar p {
    color: var(--silver);
}

/* Links inside dark containers: red, with ivory on hover */
.jr-hero a:not(.jr-btn):not(.jr-hero__cta),
.jr-hero-banner a:not(.jr-btn),
.jr-philosophy a:not(.jr-btn),
.jr-testimonials a:not(.jr-btn),
.jr-difference a:not(.jr-btn),
.jr-about-sidebar a:not(.jr-btn),
.jr-mobile-bar a:not(.jr-btn):not(.jr-mobile-bar__call):not(.jr-mobile-bar__cta) {
    color: var(--red);
}

.jr-hero a:not(.jr-btn):not(.jr-hero__cta):hover,
.jr-hero-banner a:not(.jr-btn):hover,
.jr-philosophy a:not(.jr-btn):hover,
.jr-testimonials a:not(.jr-btn):hover,
.jr-difference a:not(.jr-btn):hover,
.jr-about-sidebar a:not(.jr-btn):hover,
.jr-mobile-bar a:not(.jr-btn):not(.jr-mobile-bar__call):not(.jr-mobile-bar__cta):hover {
    color: var(--ivory);
}

/* Lists inside dark containers */
.jr-hero li,
.jr-hero-banner li,
.jr-philosophy li,
.jr-testimonials li,
.jr-difference li,
.jr-pre-footer li,
.jr-prefooter li,
.jr-about-sidebar li,
.jr-mobile-overlay li,
.jr-cookie li {
    color: var(--silver);
}



/* ============================================================================
   HOMEPAGE SEO CONTENT SECTION (.jr-homepage-content)
   Added 2026-02-28. Renders the_content() from the homepage post editor.
   ============================================================================ */

.jr-homepage-content {
    padding: 80px 0 60px;
    background-color: var(--ivory);
}

.jr-homepage-content__inner {
    max-width: 800px;
}

.jr-homepage-content h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.75rem;
    letter-spacing: -0.02em;
    color: var(--navy-text);
    line-height: 1.2;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

.jr-homepage-content h2:first-child {
    margin-top: 0;
}

.jr-homepage-content h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--navy-text);
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.jr-homepage-content p {
    color: var(--navy-text);
    margin-bottom: 1rem;
}

.jr-homepage-content a:not(.be-btn) {
    color: var(--red);
    text-underline-offset: 3px;
}

.jr-homepage-content a:not(.be-btn):hover {
    color: var(--red-dark);
}

.jr-homepage-content ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem;
}

.jr-homepage-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--navy-text);
}

.jr-homepage-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background-color: var(--red);
    border-radius: 50%;
}

/* Services grid within homepage content */
.be-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 2rem;
    margin: 1.5rem 0 2rem;
}

.be-services-grid dt {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--navy-text);
    margin-bottom: 0.25rem;
}

.be-services-grid dt a {
    color: var(--navy-text);
    text-decoration: none;
}

.be-services-grid dt a:hover {
    color: var(--red);
}

.be-services-grid dd {
    margin: 0 0 1rem;
    font-size: 0.9375rem;
    color: var(--slate);
    line-height: 1.6;
}

/* CTA block */
.be-cta {
    margin-top: 3rem;
    padding: 2rem 2.5rem;
    background-color: var(--navy);
    border-radius: 4px;
}

.be-cta h3 {
    font-family: var(--font-drama);
    font-weight: 700;
    font-style: italic;
    font-size: 1.5rem;
    color: var(--white);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.be-cta p {
    color: var(--silver);
    margin-bottom: 1.25rem;
}

.be-btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    padding: 0.75rem 2rem;
    border-radius: 2px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.be-btn--primary {
    background-color: var(--red);
    color: var(--white);
}

.be-btn--primary:hover {
    background-color: var(--red-dark);
    color: var(--white);
}

/* FAQ section */
.be-faq {
    margin-top: 2.5rem;
    text-align: left;
}

.be-faq details {
    border-bottom: 1px solid rgba(5, 16, 36, 0.1);
    padding: 1rem 0;
}

.be-faq details:first-of-type {
    border-top: 1px solid rgba(5, 16, 36, 0.1);
}

.be-faq summary {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--navy-text);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.be-faq summary::-webkit-details-marker {
    display: none;
}

.be-faq summary::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--red);
    flex-shrink: 0;
    margin-left: 1rem;
}

.be-faq details[open] summary::after {
    content: '\2212';
}

.be-faq details p {
    margin-top: 0.75rem;
    font-size: 0.9375rem;
    line-height: 1.7;
    text-align: left;
}

/* Responsive */
@media (max-width: 768px) {
    .jr-homepage-content {
        padding: 60px 0 40px;
    }

    .be-services-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .be-cta {
        padding: 1.5rem;
    }
}



/* Fix: FAQ dual-icon centering bug (2026-02-28)
 * Root cause: .jr-faq/.be-faq shared rules add a ::before "+",
 * while .be-faq-specific rules add a ::after "+". With flexbox
 * justify-content: space-between, this creates [+] [text] [+]
 * making the text appear visually centred.
 * Fix: Hide the ::before on .be-faq (keep only the ::after). */
.be-faq summary::before {
    display: none !important;
    content: none !important;
}
