:root {
    /* Full-screen hero. 100svh is used where supported: on mobile it is the
       height with the browser chrome visible, so the hero does not resize when
       the chrome hides. 100vh stays as the fallback. */
    --hero-height: 100vh;
    /* Vertical rhythm of the hero. Expressed against the viewport height so the
       gap above and below the hero copy keeps the same optical size whether the
       window is stretched wide-and-tall or shrunk. */
    --hero-pad-block: clamp(3rem, 6vh, 6rem);
    /* Clearance for the floating navbar on top of the hero. */
    --hero-clear: 6rem;
    --ink: #0c1b2e;
    --navy: #102a4a;
    --chapel: #1a3d66;
    --gold: #c4a35a;
    --gold-soft: #e8d9b0;
    --paper: #f7f3ea;
    --paper-deep: #efe6d4;
    --cream: #fbf8f1;
    --line: rgba(16, 42, 74, 0.12);
    --font-heading: "Cormorant Garamond", "Playfair Display", Georgia, serif;
    --font-body: "Outfit", "Manrope", system-ui, sans-serif;
    --color-primary: #1a3d66;
    --color-primary-dark: #0c1b2e;
    --color-primary-light: #f3efe4;
    --color-accent: #c4a35a;
    --color-background: #f7f3ea;
    --color-text-primary: #0c1b2e;
    --color-text-secondary: #4d5b6b;
    --radius-lg: 1.25rem;
    --radius-xl: 1.75rem;
    --shadow-md: 0 12px 30px rgba(12, 27, 46, 0.08);
    --shadow-lg: 0 24px 50px rgba(12, 27, 46, 0.12);
}

/* Prefer the small viewport height so the full-screen hero keeps a stable size
   on mobile: with 100vh the hero grows as the browser chrome hides, which
   makes the photo reflow mid-scroll. */
@supports (height: 100svh) {
    :root {
        --hero-height: 100svh;
        /* svh is the height with the browser chrome visible, which is the space
           the hero actually has to live in. vh would size it against the taller
           retracted-chrome viewport and push the copy below the fold. */
        --hero-pad-block: clamp(2.25rem, 5svh, 6rem);
        --hero-clear: clamp(4.75rem, 11svh, 6rem);
    }
}

body {
    background:
        radial-gradient(1200px 400px at 80% -10%, rgba(196, 163, 90, 0.12), transparent 50%),
        var(--cream);
    color: var(--ink);
}

h1, h2, h3, h4 {
    font-weight: 500;
    letter-spacing: -0.02em;
}

.container {
    max-width: 1180px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--gold);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
}

.eyebrow::before {
    content: "";
    width: 1.75rem;
    height: 1px;
    background: var(--gold);
}

.btn {
    border-radius: 999px;
    padding: 0.95rem 1.6rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.72rem;
}

.btn-primary {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--ink);
}

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

.btn-secondary {
    background: transparent;
    color: var(--navy);
    border-color: var(--line);
}

.btn-outline-white {
    color: #fff;
    border-color: rgba(255,255,255,0.45);
}

.announcement-bar {
    background: var(--ink);
    color: var(--gold-soft);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.7rem;
}

.top-bar {
    background: var(--ink);
    color: rgba(247, 243, 234, 0.72);
    font-size: 0.75rem;
}

.top-bar .container {
    max-width: 1180px;
}

.btn-top-bar {
    color: var(--gold-soft) !important;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.68rem;
}

.navbar {
    background: rgba(251, 248, 241, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    box-shadow: none;
}

.navbar.is-scrolled {
    box-shadow: 0 10px 30px rgba(12, 27, 46, 0.06);
}

/* min-height, not height: if the nav ever wraps, the bar grows instead of
   letting its items overlap the content below. */
.navbar-container {
    min-height: 84px;
}

.navbar-brand-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--ink);
}

.navbar-brand-tagline {
    letter-spacing: 0.16em;
    color: var(--gold);
}

.navbar-nav a {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 0.4rem 0.55rem;
    color: var(--navy);
}

.navbar-nav a::after {
    background: var(--gold);
    height: 1px;
    bottom: 0.15rem;
}

.navbar-nav a:hover,
.navbar-nav a.active {
    background: transparent;
    color: var(--ink);
}

/* Tap targets: the nav and top bar were ~18px tall, below the 24px minimum
   and well under the 44px comfortable target on touch screens. Padding is
   left as designed; these are minimums so the layout does not shift. */
.navbar-nav > li > a,
.navbar-nav > li > .nav-dropdown-toggle,
.top-bar a,
.top-bar .btn-top-bar {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    min-height: 2.5rem;
}

.site-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
}

@media (max-width: 1100px) {
    .navbar-nav > li > a,
    .navbar-nav > li > .nav-dropdown-toggle {
        min-height: 3rem;
    }
}

.navbar-cta .btn {
    padding: 0.7rem 1.1rem;
}

/* Navbar Dropdowns */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: none;
    padding: 0.4rem 0.55rem;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--navy);
    cursor: pointer;
    font-family: var(--font-body);
    transition: color var(--transition-fast);
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus {
    color: var(--ink);
    outline: none;
}

.nav-dropdown-toggle svg {
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.nav-dropdown[aria-expanded="true"] .nav-dropdown-toggle svg {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--transition-base), visibility var(--transition-base), transform var(--transition-base);
    z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown[aria-expanded="true"] .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--navy);
    border-radius: 0.75rem;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
    background: var(--color-primary-light);
    color: var(--ink);
}

.nav-dropdown-menu a:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Top bar improvements */
.top-bar-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.top-bar-info li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.top-bar-info a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.top-bar-info a:hover {
    color: var(--gold);
}

.top-bar {
    padding: 0.5rem 0;
}

@media (max-width: 1100px) {
    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--line);
        border-radius: 0;
        padding: 0.5rem 0 0;
        background: transparent;
        display: none;
    }

    .nav-dropdown[aria-expanded="true"] .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown-menu a {
        padding: 0.75rem 1rem 0.75rem 1.5rem;
    }

    .nav-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        text-align: left;
    }
}

/* Hero Premium - Modern Slider Hero */
.hero,
.hero-premium {
    min-height: var(--hero-height, 100vh);
    display: grid;
    align-items: stretch;
    position: relative;
    overflow: hidden;
    background: var(--ink);
}

.hero-premium-slider {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-premium-slide {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    transform: scale(1);
}

/* Two layers: the image itself, plus a blurred copy of the same photo scaled
   up to fill whatever the image does not reach. Setting the CMS "Background
   Size" to Contain therefore shows the whole photo with no empty bars, while
   Cover stays edge-to-edge (the backdrop is simply hidden behind it). */
.hero-slide__backdrop,
.hero-slide__image {
    position: absolute;
    background-repeat: no-repeat;
}

.hero-slide__backdrop {
    /* Oversized so the blur never exposes an unpainted edge. */
    inset: -8%;
    background-size: cover;
    background-position: center;
    filter: blur(2.5rem) saturate(1.15);
    opacity: 0.5;
}

.hero-slide__image {
    inset: 0;
}

.hero-premium-slide.is-active {
    opacity: 1;
}

.hero-premium--dark .hero-premium-slide {
    filter: brightness(0.6) saturate(1.2);
}

.hero-premium--light .hero-premium-slide {
    filter: brightness(0.85) saturate(1.3);
}

/* Animated gradient overlay */
.hero-premium-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(12, 27, 46, 0.95) 0%, rgba(12, 27, 46, 0.7) 40%, rgba(12, 27, 46, 0.4) 100%),
        radial-gradient(ellipse at 20% 50%, rgba(196, 163, 90, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(26, 61, 102, 0.4) 0%, transparent 40%);
    z-index: 2;
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.hero .container,
.hero-premium .container {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
    padding-top: var(--hero-pad-block);
    padding-bottom: var(--hero-pad-block);
    min-height: var(--hero-height, 100vh);
}

/* Hero Content */
.hero-content {
    max-width: none;
}

.hero-content .eyebrow {
    color: var(--gold);
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: clamp(0.65rem, 2vh, 1.5rem);
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.hero-content .eyebrow::before {
    content: "";
    width: 2.5rem;
    height: 2px;
    background: var(--gold);
}

.hero-content h1 {
    color: #fff;
    font-family: var(--font-heading);
    font-size: clamp(2.15rem, 6vw, 5.5rem);
    font-weight: 600;
    line-height: 1.05;
    margin-bottom: clamp(0.7rem, 2.4vh, 1.5rem);
    letter-spacing: -0.03em;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-content h1 span {
    color: var(--gold);
    position: relative;
}

.hero-content h1 span::after {
    content: "";
    position: absolute;
    bottom: 0.1em;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold);
    opacity: 0.5;
}

.hero-lede {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    color: var(--gold-soft) !important;
    font-weight: 500;
    margin-bottom: clamp(0.6rem, 2vh, 1.25rem);
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-content p {
    color: rgba(255,255,255,0.75);
    max-width: 36rem;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: clamp(1.1rem, 4vh, 2.5rem);
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: clamp(0.75rem, 1.5vw, 1.25rem);
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.8s forwards;
    opacity: 0;
}

.btn-primary {
    background: var(--gold);
    color: var(--ink);
    padding: clamp(0.875rem, 1.5vw, 1.125rem) clamp(1.5rem, 3vw, 2.5rem);
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(196, 163, 90, 0.3);
    position: relative;
    overflow: hidden;
    white-space: normal;
    text-align: center;
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: var(--gold-soft);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(196, 163, 90, 0.4);
}

.btn-outline-white {
    background: transparent;
    color: #fff;
    padding: clamp(0.875rem, 1.5vw, 1.125rem) clamp(1.5rem, 3vw, 2.5rem);
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.5);
    white-space: normal;
    text-align: center;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-3px);
}

/* Hero Panel */
.hero-panel {
    background: rgba(251, 248, 241, 0.95);
    border: 1px solid rgba(232, 217, 176, 0.5);
    backdrop-filter: blur(18px);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    color: var(--ink);
    position: relative;
    overflow: hidden;
    animation: fadeInRight 0.8s ease 1s forwards;
    opacity: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-soft), var(--gold));
}

.hero-panel::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(196, 163, 90, 0.1) 0%, transparent 70%);
}

.hero-panel blockquote {
    margin: 0 0 1.5rem;
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    line-height: 1.3;
    color: var(--ink);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.hero-panel .eyebrow {
    color: var(--gold);
    position: relative;
    z-index: 1;
}

.mini-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 0;
    position: relative;
    z-index: 1;
}

.mini-stats div {
    background: var(--color-primary-light);
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    padding: 1rem;
}

.mini-stats dt {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
}

.mini-stats dd {
    margin: 0.35rem 0 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink);
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}

.scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.7);
    border-radius: 13px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 10px;
    background: rgba(255,255,255,0.7);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.5s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes scroll-wheel {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 20px; }
}

/* Slider Dots */
.hero-slider-dots {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.75rem;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.hero-dot.is-active {
    background: var(--gold);
    border-color: var(--gold);
    transform: scale(1.2);
}

.hero-dot:hover {
    border-color: var(--gold);
}

/* Video Background */
.hero-premium-video {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-premium-video iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Floating Elements */
.hero-float {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.hero-float-1 {
    width: 300px;
    height: 300px;
    background: var(--gold);
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.hero-float-2 {
    width: 200px;
    height: 200px;
    background: var(--gold-soft);
    bottom: 20%;
    left: 5%;
    animation-delay: 2s;
}

.hero-float-3 {
    width: 150px;
    height: 150px;
    background: var(--gold);
    top: 50%;
    right: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Text Position Variants */
.hero-premium--center .container {
    text-align: center;
    grid-template-columns: 1fr;
    justify-items: center;
}

.hero-premium--center .hero-content {
    max-width: 60rem;
}

.hero-premium--center .hero-actions {
    justify-content: center;
}

.hero-premium--center .hero-content .eyebrow {
    display: inline-flex;
}

.hero-premium--right .container {
    grid-template-columns: 0.85fr 1.15fr;
}

.hero-premium--right .hero-content {
    text-align: right;
    margin-left: auto;
}

.hero-premium--right .hero-actions {
    justify-content: flex-end;
}

/* Slider Dots */
.hero-slider-dots {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.75rem;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.hero-dot.is-active {
    background: var(--gold);
    border-color: var(--gold);
    transform: scale(1.2);
}

.hero-dot:hover {
    border-color: var(--gold);
}

/* Video Background */
.hero-premium-video {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-premium-video iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Stats Band */
.stats-band {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    background: var(--ink);
    color: #fff;
    margin-top: 3rem;
    border-radius: 1.5rem;
    overflow: hidden;
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.stats-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(196, 163, 90, 0.1) 0%, transparent 50%, rgba(196, 163, 90, 0.05) 100%);
    z-index: 0;
}

.stats-band article {
    padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2vw, 1.5rem);
    border-right: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.stats-band article:hover {
    transform: translateY(-6px);
    background: rgba(196, 163, 90, 0.1);
}

.stats-band article:last-child { border-right: 0; }

.stats-band strong {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stats-band span {
    font-size: clamp(0.6875rem, 1vw, 0.875rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
}

/* Trust Section */
.trust-section {
    background: transparent;
    border: 0;
    margin-top: 4rem;
    padding: 0 0 2rem;
}

.trust-grid {
    /* Sixteen columns so the lead row can sit slightly narrower than a third
       of the container while the compact row below keeps its quarter width. */
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    gap: 1.5rem;
}

.trust-card {
    grid-column: span 5;
}

/* Second row: four across, so each card is about a quarter of the container. */
.trust-card--compact {
    grid-column: span 4;
}

@media (max-width: 1100px) {
    .trust-card,
    .trust-card--compact {
        grid-column: span 8;
    }
}

@media (max-width: 720px) {
    .trust-card,
    .trust-card--compact {
        grid-column: span 16;
    }
}

.trust-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 1.4rem;
    text-align: left;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
    /* Column so the text can be pushed to the bottom. The tiles carry each
       photo's own aspect ratio, so their heights differ; bottom-aligning the
       body keeps the wording on one line across the row. */
    display: flex;
    flex-direction: column;
}

.trust-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.trust-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-soft));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.trust-card:hover::before {
    opacity: 1;
}

.trust-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
}

.trust-card .eyebrow {
    color: var(--gold);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.trust-card-body {
    padding: 1.5rem;
    margin-top: auto;
}

.trust-card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.trust-card-body p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.trust-card-image {
    width: 100%;
    /* Each tile takes its own photo's aspect ratio (--tile-ar, set inline from
       the image dimensions) so the photo is never cropped or letterboxed.
       The photos here span 0.72 to 1.78, and two of them carry lettering that
       a fixed square tile cut off at the sides. */
    aspect-ratio: var(--tile-ar, 1 / 1);
    flex: none;
    overflow: hidden;
    border-radius: 1.4rem 1.4rem 0 0;
    background: var(--line);
    position: relative;
}

.trust-card-image img {
    /* Pinned to the tile rather than sized as a flex item: the global
       `img { height: auto }` in style.css otherwise lets a flex item fall
       back to its intrinsic aspect ratio, which shrinks the image off-centre. */
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    /* cover fills the tile edge-to-edge and crops the overflow. The photos span
       0.72 to 1.78 aspect ratios, so the two most landscape shots lose a fair
       slice of their sides and the most portrait one loses some height. */
    object-fit: cover;
    object-position: center 65%;
    transition: transform var(--transition-base);
}

.trust-card:hover .trust-card-image img {
    transform: scale(1.05);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header .eyebrow {
    color: var(--gold);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 500;
    color: var(--ink);
    max-width: 18ch;
    margin: 0 auto;
}

.section-header p {
    color: var(--color-text-secondary);
    max-width: 40rem;
    margin: 1rem auto 0;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 1.4rem;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-soft));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.feature-card .eyebrow {
    color: var(--gold);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.feature-card-image {
    width: 100%;
    height: 160px;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--line);
}

.feature-card-image img {
    width: 100%;
    height: 100%;
    /* cover fills the tile from any source aspect ratio by cropping. contain
       letterboxed every portrait photo into the 160px strip. */
    object-fit: cover;
    object-position: center 65%;
    transition: transform var(--transition-base);
}

.feature-card:hover .feature-card-image img {
    transform: scale(1.05);
}

/* A uniform 4:3 tile. Previously height was left auto so the whole photo was
   visible, which made each card as tall as its own image and left the grid
   ragged (measured card heights of 233, 234, 311 and 415px in one row). A fixed
   ratio plus cover keeps every tile the same size with no blank space. */
.feature-card-image--full {
    height: auto;
    aspect-ratio: 4 / 3;
    background: transparent;
}

.feature-card-image--full img {
    height: 100%;
    display: block;
}

/* About Section */
.split-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.split-copy .eyebrow {
    color: var(--gold);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.split-copy h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 500;
    color: var(--ink);
    max-width: 14ch;
    margin-bottom: 1.25rem;
}

.split-copy p {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Info Card (News) */
.info-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 1.4rem;
    overflow: hidden;
    transition: all 0.4s ease;
}

.info-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.info-card img {
    width: 100%;
    height: 200px;
    /* cover fills the card by cropping; contain left blank bars either side. */
    object-fit: cover;
    object-position: center 65%;
    transition: transform var(--transition-base);
}

.info-card:hover img {
    transform: scale(1.05);
}

/* Home news grid only. Kept a short uniform banner rather than sizing each
   banner to its photo: these range from 0.56 to 1.33, and matching every photo
   ran the banner to 669px. `center 50%` instead of `center 65%` so the crop
   splits evenly rather than taking a third off the top, which is what made the
   portrait photos look decapitated. Scoped by class because .info-card is
   shared by ten other templates, and placed here because premium.css loads
   last and would otherwise win on equal specificity. */
.info-card--news img {
    height: 240px;
    object-position: center 50%;
}

.info-card-body {
    padding: 1.5rem;
}

.info-card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.info-card-body h3 a {
    color: var(--ink);
    text-decoration: none;
    transition: color 0.2s ease;
}

.info-card-body h3 a:hover {
    color: var(--gold);
}

.news-date {
    color: var(--gold) !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Process Cards (Events) */
.process-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.process-card {
    padding: var(--space-xl) var(--space-lg);
    background: #fff;
    border-radius: 1.4rem;
    border: 1px solid var(--line);
    min-height: 220px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.process-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.process-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-soft));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.process-card:hover::before {
    opacity: 1;
}

.process-card .num {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.2rem);
    color: var(--gold);
    display: block;
    margin-bottom: 1rem;
    font-weight: 700;
}

.process-card h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.125rem, 1.5vw, 1.25rem);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.value-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 1.4rem;
    padding: var(--space-xl) var(--space-lg);
    min-height: 220px;
}

.value-card.featured {
    background: var(--navy);
    color: #fff;
}

.value-card.featured h3,
.value-card.featured p { color: #fff; }

.value-card h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 500;
}

/* Life Tiles */
.life-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.life-tile {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    min-height: 280px;
    background: var(--navy);
    color: #fff;
    padding: var(--space-xl) var(--space-lg);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.life-tile h3 {
    color: #fff;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.life-tile p { color: rgba(255,255,255,0.8); }

.contact-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 1.5rem;
    padding: 1.6rem;
    margin-bottom: 1rem;
}

.contact-card span {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.35rem;
}

form input:not([type="hidden"]):not([type="checkbox"]):not([type="submit"]):not([type="radio"]),
form select,
form textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    background: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

form input:focus,
form select:focus,
form textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(196, 163, 90, 0.15);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.9rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    border-radius: 1.2rem;
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--line);
}

/* Remove the large first/7th item styling */
.gallery-item:nth-child(1),
.gallery-item:nth-child(7) {
    grid-column: auto;
    aspect-ratio: 4/3;
}

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

.requirements-list li {
    margin: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: 1.1rem 1.2rem;
    color: var(--ink);
}

.news-date {
    color: var(--gold) !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.testimonial-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 1.4rem;
    padding: var(--space-xl) var(--space-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    position: relative;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-color: var(--gold);
}

.testimonial-card blockquote {
    margin: 0 0 1.5rem;
    font-family: var(--font-heading);
    font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
    line-height: 1.6;
    color: var(--ink);
    font-style: italic;
    position: relative;
}

.testimonial-card blockquote::before {
    content: "\201C";
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5vw, 4rem);
    color: var(--gold);
    opacity: 0.3;
    position: absolute;
    top: -1.5rem;
    left: -0.5rem;
    line-height: 1;
}

.testimonial-card footer {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: clamp(40px, 5vw, 56px);
    height: clamp(40px, 5vw, 56px);
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
}

.testimonial-meta {
    display: flex;
    flex-direction: column;
}

.testimonial-meta cite {
    font-style: normal;
    font-weight: 600;
    color: var(--ink);
}

.testimonial-meta span {
    font-size: clamp(0.75rem, 1vw, 0.875rem);
    color: var(--color-text-secondary);
}

.testimonial-meta .child-name {
    color: var(--gold);
    font-weight: 500;
}

/* Gallery */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.gallery-filters .category-tab {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    color: var(--color-text);
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color var(--transition-fast), color var(--transition-fast),
        border-color var(--transition-fast);
}

.gallery-filters .category-tab:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.gallery-filters .category-tab.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.gallery-item {
    border-radius: 1.2rem;
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--line);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    /* cover, not contain: this rule used to override the cover in
       components.css, so a 3:4 portrait photo was fitted by height and left
       empty bars either side -- about 44% of a 4:3 tile was blank. cover fills
       the tile by cropping instead, and never distorts the photo. */
    object-fit: cover;
    /* Crop low so the frame keeps more of the lower half than a centred crop.
       Images that fit without overflow are unaffected. */
    object-position: center 65%;
    transition: transform var(--transition-base);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: clamp(1rem, 2vw, 1.5rem);
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    font-size: clamp(0.8125rem, 1vw, 0.9375rem);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

/* Parent Resources */
.parent-resources {
    padding: var(--space-2xl) 0;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.resource-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 1.4rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-md);
}

.resource-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-color: var(--gold);
    color: inherit;
}

.resource-icon {
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
    display: inline-flex;
    width: clamp(56px, 7vw, 64px);
    height: clamp(56px, 7vw, 64px);
    align-items: center;
    justify-content: center;
    background: var(--color-primary-light);
    border-radius: 1rem;
}

.resource-card h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.125rem, 1.5vw, 1.25rem);
    font-weight: 500;
    margin: 0 0 0.5rem;
    color: var(--ink);
}

.resource-card p {
    font-size: clamp(0.8125rem, 1vw, 0.9375rem);
    color: var(--color-text-secondary);
    margin: 0;
}

/* CTA Ribbon */
.cta-ribbon {
    background: var(--navy);
    color: #fff;
    padding: var(--space-2xl) 0;
    position: relative;
    overflow: hidden;
}

.cta-ribbon::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196, 163, 90, 0.1) 0%, transparent 70%);
}

.cta-ribbon::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(196, 163, 90, 0.25);
    right: -40px;
    bottom: -80px;
    border-radius: 50%;
}

.cta-ribbon h2 {
    color: #fff;
    max-width: 16ch;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.cta-ribbon p { color: rgba(255,255,255,0.75); }

.cta-ribbon .eyebrow {
    color: var(--gold);
    font-size: clamp(0.8125rem, 1vw, 0.9375rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

/* Newsletter Signup */
.newsletter-signup {
    padding: 5.5rem 0;
    background: linear-gradient(180deg, #f3ece0, #f8f4ec);
}

.newsletter-content {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

.newsletter-content h2 {
    color: var(--ink);
    margin-bottom: 1rem;
}

.newsletter-content p {
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    max-width: 100%;
    margin: 0 auto var(--space-md);
}

.newsletter-form .form-group {
    flex: 1;
    min-width: clamp(200px, 40vw, 300px);
}

.newsletter-form input {
    width: 100%;
    padding: clamp(0.875rem, 1.5vw, 1rem) clamp(1rem, 2vw, 1.5rem);
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-family: var(--font-body);
    font-size: clamp(0.875rem, 1vw, 1rem);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(196, 163, 90, 0.15);
}

.newsletter-form .btn {
    padding: clamp(0.875rem, 1.5vw, 1rem) clamp(1.25rem, 2.5vw, 1.75rem);
    border-radius: 999px;
    white-space: normal;
    text-align: center;
}

.newsletter-note {
    font-size: clamp(0.75rem, 1vw, 0.875rem);
    color: var(--color-text-secondary);
    margin: 0;
}

/* Form elements responsive */
form input:not([type="hidden"]):not([type="checkbox"]):not([type="submit"]):not([type="radio"]),
form select,
form textarea {
    width: 100%;
    padding: clamp(0.75rem, 1.5vw, 1rem) clamp(1rem, 2vw, 1.25rem);
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    background: #fff;
    font-family: var(--font-body);
    font-size: clamp(0.875rem, 1vw, 1rem);
}

form input:focus,
form select:focus,
form textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(196, 163, 90, 0.15);
}

/* Visually hidden utility */
.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;
}

@media (max-width: 1024px) {
    .hero-panel { display: none; }
    /* min-height, matching the desktop rule, so a wrap can never overflow. */
    .navbar-container { min-height: 72px; }
}

@media (max-width: 720px) {
    .framed-photo img { height: 280px; }
    .hero-panel { display: none; }
    
    /* Stack multi-column grids on small screens */
    .values-grid,
    .life-tiles,
    .process-row,
    .stats-band,
    .gallery-grid,
    .feature-grid,
    .testimonials-grid,
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item,
    .gallery-item:nth-child(1),
    .gallery-item:nth-child(7) {
        grid-column: auto;
        aspect-ratio: 4/3;
    }
    
    .hero .container,
    .hero-premium .container {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        padding-top: var(--space-xl);
        padding-bottom: var(--space-xl);
        min-height: auto;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-content .eyebrow {
        justify-content: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-lede {
        font-size: clamp(1.125rem, 3vw, 1.5rem);
    }
    
    .stats-band {
        border-radius: var(--radius-lg);
    }
    
    .stats-band article {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        padding: var(--space-lg) var(--space-md);
    }
    
    .stats-band article:last-child {
        border-bottom: none;
    }
    
    .stats-band strong {
        font-size: clamp(2rem, 5vw, 2.5rem);
    }
    
    .newsletter-form {
        max-width: 100%;
    }
    
    .newsletter-form .form-group {
        min-width: 100%;
    }
}

/* ---------------------------------------------------------------------------
   Interaction fixes
   --------------------------------------------------------------------------- */

/* Hero slider dots: the button is the tap target, so it is sized to 28px and
   the visible 12px ring is drawn by ::after. Previously the button itself was
   12px, which is unusable on touch. */
.hero-dot {
    position: relative;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-dot::after {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    transition: all 0.3s ease;
}

.hero-dot.is-active::after {
    background: var(--gold);
    border-color: var(--gold);
    transform: scale(1.2);
}

.hero-dot:hover::after {
    border-color: var(--gold);
}

/* Breadcrumb links sat at 16px tall. */
.breadcrumb a,
.breadcrumb .current {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
}

/* Standalone contact links (phone/email) were 19px tall. */
.contact-card a,
.contact-info a {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    font-weight: 600;
}

/* ---------------------------------------------------------------------------
   Core values (editable in the CMS at /cms/corevalue/)
   --------------------------------------------------------------------------- */

.motto-line {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--gold);
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    margin-top: var(--space-2);
}

.core-values {
    margin-top: var(--space-xl);
}

.core-values__title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 500;
    margin-bottom: var(--space-lg);
    text-align: center;
}

.core-values__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-md);
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: corevalue;
}

.core-value {
    counter-increment: corevalue;
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    border-radius: 1rem;
    padding: var(--space-md) var(--space-lg);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.core-value:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.core-value__name {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy);
}

.core-value__name::before {
    content: counter(corevalue, decimal-leading-zero);
    display: inline-block;
    margin-right: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--gold);
    vertical-align: middle;
}

.core-value__desc {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--ink-soft);
}

/* ---------------------------------------------------------------------------
   Progressive Web App: scroll to top + install prompt
   --------------------------------------------------------------------------- */

.scroll-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.5rem;
    width: 2.875rem;
    height: 2.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    color: var(--gold);
    border: 1px solid rgba(196, 163, 90, 0.45);
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(12, 27, 46, 0.28);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 900;
}

.scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--ink);
    color: var(--gold-soft);
}

.scroll-top:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

.pwa-install {
    position: fixed;
    left: 50%;
    bottom: 1.25rem;
    transform: translate(-50%, 140%);
    display: flex;
    align-items: center;
    gap: 0.9rem;
    width: min(30rem, calc(100vw - 2rem));
    padding: 0.9rem 1.1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    border-radius: 1.1rem;
    box-shadow: 0 18px 45px rgba(12, 27, 46, 0.22);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 950;
}

.pwa-install.is-visible {
    transform: translate(-50%, 0);
    opacity: 1;
}

.pwa-install__icon {
    border-radius: 0.6rem;
    flex-shrink: 0;
}

.pwa-install__body {
    flex: 1;
    min-width: 0;
}

.pwa-install__title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--navy);
    line-height: 1.3;
}

.pwa-install__text {
    font-size: 0.82rem;
    color: var(--ink-soft);
    margin-top: 0.15rem;
}

.pwa-install__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.pwa-install__btn {
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.55rem 1.1rem;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    min-height: 2.5rem;
}

.pwa-install__btn:hover { background: var(--ink); }

.pwa-install__later {
    background: none;
    border: none;
    color: var(--ink-soft);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0.5rem 0.35rem;
    min-height: 2.5rem;
    text-decoration: underline;
}

.pwa-ios {
    position: fixed;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
    width: min(30rem, calc(100vw - 2rem));
    background: #fff;
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    border-radius: 1.1rem;
    padding: 1rem 1.1rem;
    box-shadow: 0 18px 45px rgba(12, 27, 46, 0.22);
    z-index: 950;
}

.pwa-ios p { font-size: 0.9rem; color: var(--navy); }
.pwa-ios__how { color: var(--ink-soft) !important; font-size: 0.82rem !important; margin: 0.35rem 0 0.5rem; }

/* On small screens the install card stacks so the buttons stay reachable. */
@media (max-width: 480px) {
    .pwa-install {
        flex-wrap: wrap;
        padding: 0.85rem 0.95rem;
    }
    .pwa-install__body { flex: 1 1 100%; order: 1; }
    .pwa-install__actions {
        flex: 1 1 100%;
        order: 2;
        justify-content: flex-end;
    }
    .scroll-top { right: 0.9rem; bottom: 1rem; }
}

/* ---------------------------------------------------------------------------
   Full-screen hero: header floats over the photo
   ---------------------------------------------------------------------------
   The header is in normal flow, so it pushed the top of the hero below the
   fold: on a 1080p screen 145px of the hero (and 257px on a phone, where the
   top bar wraps) was only reachable by scrolling. Fixing the header over the
   photo makes the whole 100svh hero the first screen.

   Scoped with :has() so pages without a full-screen hero keep the solid,
   sticky header. Browsers without :has() simply ignore these rules and fall
   back to the previous behaviour.
   -------------------------------------------------------------------------- */

:root {
    --announce-height: 0px;
}

body:has(.hero-premium) > header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
}

body:has(.hero-premium) > .announcement-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

body:has(.hero-premium) > header {
    top: var(--announce-height);
}

/* Transparent over the photo, with light text. */
body:has(.hero-premium) > header .navbar {
    background: transparent;
    backdrop-filter: none;
    border-bottom-color: transparent;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Scoped to direct children of the list: dropdown panel links are nested a
   level deeper and must keep their own colour on the white panel, otherwise
   the white text plus its shadow smears across the light background. */
body:has(.hero-premium) > header .navbar .navbar-nav > li > a,
body:has(.hero-premium) > header .navbar .navbar-nav > li > .nav-dropdown-toggle,
body:has(.hero-premium) > header .navbar .navbar-brand-name,
body:has(.hero-premium) > header .navbar .navbar-brand-tagline,
body:has(.hero-premium) > header .navbar .navbar-toggle {
    color: #fff;
    text-shadow: 0 1px 3px rgba(12, 27, 46, 0.55);
}

body:has(.hero-premium) > header .top-bar {
    background: transparent;
    text-shadow: 0 1px 3px rgba(12, 27, 46, 0.55);
}

/* The gold Apply Now button is a filled button, not a photo-overlay link, so
   the white light-on-photo colour left it as white-on-gold at 2.4:1. Keep the
   dark text the button uses everywhere else (navy on gold is 5.3:1). */
body:has(.hero-premium) > header .navbar .navbar-cta .btn,
body:has(.hero-premium) > header.is-scrolled .navbar .navbar-cta .btn {
    color: var(--navy);
    text-shadow: none;
}

/* Once scrolled, restore the solid header. */
body:has(.hero-premium) > header.is-scrolled .navbar {
    background: rgba(251, 248, 241, 0.95);
    backdrop-filter: blur(16px);
    border-bottom-color: var(--line);
    box-shadow: 0 10px 30px rgba(12, 27, 46, 0.06);
}

body:has(.hero-premium) > header.is-scrolled .navbar .navbar-nav > li > a,
body:has(.hero-premium) > header.is-scrolled .navbar .navbar-nav > li > .nav-dropdown-toggle,
body:has(.hero-premium) > header.is-scrolled .navbar .navbar-brand-name,
body:has(.hero-premium) > header.is-scrolled .navbar .navbar-brand-tagline,
body:has(.hero-premium) > header.is-scrolled .navbar .navbar-toggle {
    color: var(--color-text-primary);
    text-shadow: none;
}

body:has(.hero-premium) > header.is-scrolled .top-bar {
    background: var(--ink);
    text-shadow: none;
}

/* On a phone the top bar wraps onto several lines (184px), which collided
   with the hero headline when the header sits over the photo. Only the
   navbar is kept over the hero on small screens. */
@media (max-width: 900px) {
    /* Let the hero scale with the device instead of always claiming the whole
       screen. 72svh keeps the hero shrinking on small handsets, where a full
       100svh hero left a large empty gap under the copy, and still grows again
       on taller screens. The clamp stops the copy from being squeezed on very
       short viewports and stops the hero from running away on tall ones. */
    :root {
        --hero-height: clamp(19rem, 72svh, 44rem);
    }

    body:has(.hero-premium) > header .top-bar {
        display: none;
    }

    body:has(.hero-premium) > header {
        top: 0;
    }

    /* Give the headline room below the floating navbar. Scales with the
       available height instead of pinning a fixed 6rem, which used to swallow
       a sixth of a short landscape screen. */
    body:has(.hero-premium) .hero-premium .container {
        padding-top: var(--hero-clear);
    }
}

/* Short viewports: landscape phones, split-screen windows and small handsets.
   The hero has to fit the height it is actually given, so the navbar shrinks
   and the copy tightens rather than spilling past the bottom of the screen.
   The top bar is dropped too: it is a third of a landscape phone's height. */
@media (max-height: 620px) and (max-width: 1100px) {
    :root {
        --hero-clear: clamp(3.5rem, 14svh, 5rem);
        --hero-pad-block: clamp(1.5rem, 4svh, 3rem);
        /* A landscape phone has almost no height to give away, so the hero
           yields even more of it to the copy. */
        --hero-height: clamp(17rem, 78svh, 30rem);
    }

    .navbar-container {
        min-height: 60px;
    }

    body:has(.hero-premium) > header .top-bar {
        display: none;
    }

    /* This applies at any width, not just <=900px. The clearance used to stop
       at the 900px breakpoint, so between 901 and 1100px the fixed header sat
       on top of the hero eyebrow and headline. */
    body:has(.hero-premium) .hero-premium .container {
        padding-top: var(--hero-clear);
    }

    .hero-content h1 {
        font-size: clamp(1.75rem, 5vw, 3rem);
    }

    .hero-lede {
        font-size: clamp(0.95rem, 2vw, 1.25rem);
    }

    .hero-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* Start the hero copy just under the navbar on small screens instead of
   floating it in the vertical middle of a full-height hero, which left
   135-230px of empty photo above the eyebrow on phones and tablets. Placed
   after both hero breakpoints so it also covers short viewports: the
   max-height:620px block above is later in the file and was overriding the
   clearance, which put the eyebrow behind the navbar at 320x568. The extra
   3rem is what clears the fixed header, which now also holds the ticker. */
@media (max-width: 900px), (max-height: 620px) and (max-width: 1100px) {
    body:has(.hero-premium) .hero-premium .container {
        align-items: start;
        padding-top: calc(var(--hero-clear) + 3rem);
    }
}

/* At the drawer breakpoint the nav collapses into an opaque white panel, so
   the light-on-photo treatment above must not reach it: white links with a
   shadow on a white panel are invisible. This covers both the collapsed
   submenus and the whole drawer. */
@media (max-width: 1100px) {
    body:has(.hero-premium) > header .navbar .navbar-nav > li > a,
    body:has(.hero-premium) > header .navbar .navbar-nav > li > .nav-dropdown-toggle,
    body:has(.hero-premium) > header.is-scrolled .navbar .navbar-nav > li > a,
    body:has(.hero-premium) > header.is-scrolled .navbar .navbar-nav > li > .nav-dropdown-toggle {
        color: var(--color-text-primary);
        text-shadow: none;
    }
}

/* ------------------------------------------------------------------
   Scrolling announcement bar, directly under the navbar.
   Two identical lists side by side inside a track that slides left by
   exactly half its width, so the loop is seamless. Pauses on hover and
   on keyboard focus, and stops entirely under prefers-reduced-motion,
   where it falls back to a plain readable row that can still scroll.
   ------------------------------------------------------------------ */
.ticker {
    display: flex;
    align-items: stretch;
    background: var(--ink);
    color: var(--gold-soft);
    border-bottom: 1px solid rgba(201, 162, 39, 0.35);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    overflow: hidden;
}

.ticker__badge {
    flex: none;
    display: flex;
    align-items: center;
    padding: 0 var(--space-4);
    background: var(--gold);
    color: var(--ink);
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ticker__viewport {
    flex: 1 1 auto;
    overflow: hidden;
    /* Fade the text out at both edges rather than cutting it mid-word. */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}

.ticker__track {
    display: flex;
    width: max-content;
    animation: ticker-scroll 32s linear infinite;
}

.ticker__list {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    margin: 0;
    padding: 0 var(--space-6) 0 0;
    list-style: none;
}

.ticker__item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    white-space: nowrap;
    padding: var(--space-2) 0;
}

.ticker__item::before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.7;
    flex: none;
}

.ticker__item a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.ticker__item a:hover,
.ticker__item a:focus-visible {
    color: var(--gold);
    border-bottom-color: currentColor;
}

@keyframes ticker-scroll {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}

/* Hover and keyboard focus pause the scroll so a link can actually be hit. */
.ticker:hover .ticker__track,
.ticker:focus-within .ticker__track {
    animation-play-state: paused;
}

/* No motion: drop the animation, keep every item readable and reachable. */
@media (prefers-reduced-motion: reduce) {
    .ticker__track {
        animation: none;
    }
    .ticker__viewport {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }
    .ticker__list[aria-hidden="true"] {
        display: none;
    }
}
