/* ============================================================
   Deportivo Israelita — sistema profesional
   Referencia de estructura: sitios comerciales de fitness (Planet
   Fitness) con paleta sobria: navy + azul royal + blanco/gris.
   ============================================================ */

:root {
    --navy: #0e2038;
    --navy-soft: #16304f;
    --blue: #1857c4;
    --blue-dark: #12439a;
    --blue-tint: #eaf1fb;
    --ink: #17202b;
    --muted: #5a6675;
    --gray-bg: #f4f6f9;
    --white: #ffffff;
    --line: rgba(23, 32, 43, 0.12);
    --shadow-card: 0 10px 30px rgba(14, 32, 56, 0.1);
    --shadow-card-hover: 0 16px 40px rgba(14, 32, 56, 0.16);

    --font: "Archivo", Arial, sans-serif;

    --container-max: 1180px;
    --radius: 10px;
    --ease: cubic-bezier(0.25, 0.8, 0.35, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Los saltos a anclas no quedan tapados por el header fijo */
    scroll-padding-top: 5.5rem;
}

/* ---------- Transiciones entre paginas (View Transitions API) ----------
   Fundido suave al navegar entre paginas del sitio. Los navegadores
   que no lo soportan navegan normal, sin efecto. */

@view-transition {
    navigation: auto;
}

::view-transition-old(root) {
    animation: pageOut 200ms var(--ease) both;
}

::view-transition-new(root) {
    animation: pageIn 350ms var(--ease) both;
}

@keyframes pageOut {
    to {
        opacity: 0;
    }
}

@keyframes pageIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--white);
    color: var(--ink);
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.nav-open {
    overflow: hidden;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

*:focus-visible {
    outline: 3px solid rgba(24, 87, 196, 0.5);
    outline-offset: 3px;
}

::selection {
    background: var(--blue);
    color: var(--white);
}

.skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 100;
    transform: translateY(calc(-100% - 2rem));
    background: var(--navy);
    color: var(--white);
    padding: 0.7rem 1rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    transition: transform 250ms var(--ease);
}

.skip-link:focus {
    transform: translateY(0);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: min(100% - 2.5rem, var(--container-max));
    margin-inline: auto;
}

/* ---------- Tipografia ---------- */

h1,
h2,
h3 {
    margin: 0;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    color: var(--white);
}

h2 {
    font-size: clamp(1.7rem, 3.6vw, 2.6rem);
    color: var(--navy);
}

h3 {
    font-size: 1.15rem;
    color: var(--navy);
}

p {
    margin: 0;
    max-width: 640px;
    color: var(--muted);
}

.lead {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
}

.eyebrow {
    display: inline-block;
    margin: 0 0 0.75rem;
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* Entrada suave y unica al hacer scroll */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 550ms var(--ease), transform 550ms var(--ease);
    transition-delay: var(--d, 0ms);
}

.reveal.is-in {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Botones ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.8rem 1.6rem;
    border: 2px solid var(--blue);
    border-radius: var(--radius);
    background: var(--blue);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition:
        background-color 200ms var(--ease),
        border-color 200ms var(--ease),
        color 200ms var(--ease),
        transform 200ms var(--ease),
        box-shadow 200ms var(--ease);
}

.btn:hover,
.btn:focus-visible {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(18, 67, 154, 0.3);
}

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

.btn--outline:hover,
.btn--outline:focus-visible {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
    box-shadow: 0 10px 24px rgba(14, 32, 56, 0.25);
}

.btn--light {
    background: var(--white);
    border-color: var(--white);
    color: var(--navy);
}

.btn--light:hover,
.btn--light:focus-visible {
    background: var(--blue-tint);
    border-color: var(--blue-tint);
    color: var(--navy);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.btn--ghost-light {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.7);
    color: var(--white);
}

.btn--ghost-light:hover,
.btn--ghost-light:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--white);
}

.text-link {
    color: var(--blue);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 200ms var(--ease);
}

.text-link:hover,
.text-link:focus-visible {
    color: var(--blue-dark);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ---------- Header ---------- */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 90;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    transition: box-shadow 250ms var(--ease);
}

.site-header.is-scrolled {
    box-shadow: 0 6px 24px rgba(14, 32, 56, 0.1);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 4.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    line-height: 1.05;
}

.brand__logo {
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
}

.brand__text {
    display: grid;
    font-weight: 900;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--navy);
}

.brand__text small {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--blue);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.6rem;
}

.nav-menu a {
    position: relative;
    padding: 0.35rem 0;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
    transition: color 200ms var(--ease);
}

.nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 250ms var(--ease);
}

.nav-menu a:hover,
.nav-menu a:focus-visible,
.nav-menu a[aria-current="page"] {
    color: var(--blue);
}

.nav-menu a:hover::after,
.nav-menu a:focus-visible::after,
.nav-menu a[aria-current="page"]::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.nav-toggle__line {
    width: 1.15rem;
    height: 2px;
    border-radius: 2px;
    background: var(--navy);
    transition: transform 250ms var(--ease), opacity 250ms var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    min-height: 86vh;
    display: grid;
    align-items: center;
    background: var(--navy);
    overflow: hidden;
}

.hero__media {
    position: absolute;
    inset: 0;
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* La foto "asienta" al entrar a la pagina */
    animation: heroSettle 1400ms var(--ease) both;
}

@keyframes heroSettle {
    from {
        transform: scale(1.06);
    }

    to {
        transform: scale(1);
    }
}

.hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(14, 32, 56, 0.92) 0%, rgba(14, 32, 56, 0.72) 45%, rgba(14, 32, 56, 0.35) 100%),
        linear-gradient(180deg, rgba(14, 32, 56, 0.35), transparent 35%, rgba(14, 32, 56, 0.5));
}

.hero__content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1.4rem;
    max-width: 640px;
    padding: 8rem 0 5rem;
}

.hero__content .eyebrow {
    color: #9ec1f5;
    margin: 0;
}

.hero__content .lead {
    color: rgba(255, 255, 255, 0.88);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

/* Hero reducido para paginas internas */
.hero--page {
    min-height: 52vh;
}

.hero--page .hero__content {
    padding: 8rem 0 4rem;
}

/* ---------- Secciones ---------- */

.section {
    padding: 5.5rem 0;
}

.section--gray {
    background: var(--gray-bg);
}

.section--navy {
    background: var(--navy);
}

.section--navy h2 {
    color: var(--white);
}

.section--navy p {
    color: rgba(255, 255, 255, 0.82);
}

.section__header {
    max-width: 680px;
    margin-bottom: 2.75rem;
}

.section__header .lead {
    margin-top: 0.9rem;
}

.section__header--center {
    margin-inline: auto;
    text-align: center;
}

.section__header--center p {
    margin-inline: auto;
}

/* ---------- Split (texto + imagen) ---------- */

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 3.5rem;
    align-items: center;
}

.split--reverse {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

.split__content {
    display: grid;
    gap: 1.25rem;
    justify-items: start;
}

.split__media {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.split__media img {
    width: 100%;
    height: min(58vh, 30rem);
    object-fit: cover;
}

/* Lista de checks */
.check-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem 1.5rem;
    margin: 0.5rem 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 1.7rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink);
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.28rem;
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 50%;
    background: var(--blue-tint);
}

.check-list li::after {
    content: "";
    position: absolute;
    left: 0.28rem;
    top: 0.5rem;
    width: 0.5rem;
    height: 0.28rem;
    border-left: 2px solid var(--blue);
    border-bottom: 2px solid var(--blue);
    transform: rotate(-45deg);
}

/* ---------- Tarjetas de actividades ---------- */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
}

.card {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-card);
    transition: transform 250ms var(--ease), box-shadow 250ms var(--ease);
    scroll-margin-top: 6rem;
}

/* Toda la tarjeta funciona como boton: el enlace se estira sobre la card */
.card__link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.card__link:focus-visible {
    outline: none;
}

.card:focus-within {
    outline: 3px solid rgba(24, 87, 196, 0.5);
    outline-offset: 3px;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--navy);
}

.card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms var(--ease);
}

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

/* Disciplina sin fotografia propia */
.card__media--pending {
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--navy), var(--navy-soft));
}

.card__media--pending span {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.card__body {
    display: grid;
    align-content: start;
    gap: 0.6rem;
    padding: 1.25rem 1.35rem 1.5rem;
}

.card__tag {
    color: var(--blue);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.card__body p {
    font-size: 0.9rem;
}

.card__body .text-link {
    margin-top: 0.35rem;
}

/* ---------- Confianza ---------- */

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
}

.trust-item {
    display: grid;
    align-content: start;
    gap: 0.6rem;
    padding: 1.6rem 1.5rem;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.trust-item__num {
    display: inline-grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 8px;
    background: var(--blue-tint);
    color: var(--blue);
    font-size: 0.85rem;
    font-weight: 900;
}

.trust-item p {
    font-size: 0.88rem;
}

/* ---------- Pagina de actividad: horarios ---------- */

.schedule {
    overflow-x: auto;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.schedule table {
    width: 100%;
    min-width: 460px;
    border-collapse: collapse;
}

.schedule th,
.schedule td {
    padding: 0.9rem 1.25rem;
    text-align: left;
    font-size: 0.9rem;
}

.schedule th {
    background: var(--navy);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.schedule td {
    color: var(--muted);
    border-bottom: 1px solid var(--line);
}

.schedule tr:last-child td {
    border-bottom: 0;
}

.schedule td:first-child {
    color: var(--ink);
    font-weight: 700;
}

.schedule-note {
    margin-top: 0.75rem;
    font-size: 0.78rem;
    color: var(--muted);
}

/* ---------- Pagina de actividad: planes ---------- */

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

.plan-card {
    display: grid;
    align-content: start;
    gap: 0.9rem;
    padding: 1.75rem 1.5rem;
    border-top: 4px solid var(--blue);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-card);
    transition: transform 250ms var(--ease), box-shadow 250ms var(--ease);
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.plan-card__price {
    color: var(--blue);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.plan-card ul {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.plan-card ul li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.88rem;
    color: var(--muted);
}

.plan-card ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.3rem;
    width: 0.95rem;
    height: 0.95rem;
    border-radius: 50%;
    background: var(--blue-tint);
}

.plan-card ul li::after {
    content: "";
    position: absolute;
    left: 0.25rem;
    top: 0.5rem;
    width: 0.45rem;
    height: 0.25rem;
    border-left: 2px solid var(--blue);
    border-bottom: 2px solid var(--blue);
    transform: rotate(-45deg);
}

.plan-card .btn {
    margin-top: 0.4rem;
}

/* ---------- Formulario de visita (agenda.html) ---------- */

.form-card {
    max-width: 760px;
    margin-inline: auto;
    padding: 2.25rem 2rem;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.form-field {
    display: grid;
    gap: 0.45rem;
}

.form-field--full {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ink);
}

.form-field label .req {
    color: var(--blue);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.78rem 0.95rem;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    font-size: 0.95rem;
    transition: border-color 200ms var(--ease);
}

.form-field textarea {
    min-height: 7rem;
    resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: rgba(90, 102, 117, 0.65);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(24, 87, 196, 0.15);
}

.form-actions {
    display: grid;
    gap: 0.8rem;
    margin-top: 1.6rem;
}

.form-note {
    font-size: 0.8rem;
    color: var(--muted);
    text-align: center;
}

.form-status {
    max-width: none;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

.form-status--ok {
    background: var(--blue-tint);
    color: var(--blue-dark);
}

.form-status--error {
    background: #fdecea;
    color: #a4272d;
}

/* ---------- Revelado del salon (eventos.html) ---------- */

.reveal-section {
    position: relative;
    min-height: 200vh;
}

.reveal-sticky {
    position: sticky;
    top: 0;
    min-height: 100vh;
    display: grid;
    align-items: center;
    padding: 6rem 0 3rem;
}

.reveal-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 3rem;
    align-items: center;
}

.reveal-copy {
    display: grid;
    gap: 1.25rem;
    justify-items: start;
}

.reveal-frame {
    --reveal-progress: 0%;
    --reveal-frame-width: 100%;
    position: relative;
    height: min(68vh, 38rem);
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.reveal-frame__base,
.reveal-frame__overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.reveal-frame__overlay {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--reveal-progress);
    min-width: 0;
    overflow: hidden;
    will-change: width;
}

.reveal-frame__overlay::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: var(--blue);
}

.reveal-frame__overlay img {
    width: var(--reveal-frame-width);
    max-width: none;
}

/* ---------- Ubicacion (mapa) ---------- */

.map-frame {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    aspect-ratio: 16 / 8;
    background: var(--blue-tint);
}

.map-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-actions {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

/* ---------- Preguntas frecuentes ---------- */

.faq-list {
    max-width: 760px;
    margin-inline: auto;
    display: grid;
    gap: 0.8rem;
}

.faq-item {
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.faq-item summary {
    position: relative;
    padding: 1.1rem 3rem 1.1rem 1.4rem;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--navy);
    cursor: pointer;
    list-style: none;
    transition: color 200ms var(--ease);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 1.3rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--blue);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
    transition: transform 250ms var(--ease);
}

.faq-item[open] summary {
    color: var(--blue);
}

.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-item summary:hover {
    color: var(--blue);
}

.faq-item p {
    max-width: none;
    padding: 0 1.4rem 1.25rem;
    font-size: 0.92rem;
}

/* ---------- Boton flotante de WhatsApp ---------- */

.wa-float {
    position: fixed;
    right: 1.25rem;
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    z-index: 85;
    display: grid;
    place-items: center;
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 50%;
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 10px 28px rgba(14, 32, 56, 0.3);
    transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}

.wa-float:hover,
.wa-float:focus-visible {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 14px 34px rgba(14, 32, 56, 0.35);
}

/* ---------- Honeypot anti-spam (invisible para personas) ---------- */

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- CTA final ---------- */

.cta-banner {
    background:
        linear-gradient(120deg, rgba(24, 87, 196, 0.25), transparent 55%),
        var(--navy);
    padding: 5.5rem 0;
}

.cta-banner__inner {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 1.4rem;
}

.cta-banner h2 {
    color: var(--white);
    max-width: 18ch;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.85);
    margin-inline: auto;
}

.cta-banner__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 0.4rem;
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-brand {
    display: grid;
    gap: 0.9rem;
    align-content: start;
    justify-items: start;
}

.footer-brand .brand__text {
    color: var(--white);
}

.footer-brand .brand__text small {
    color: #9ec1f5;
}

.footer-brand p {
    max-width: 16rem;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
}

.footer-col {
    display: grid;
    gap: 0.65rem;
    align-content: start;
    justify-items: start;
}

.footer-col__title {
    margin-bottom: 0.4rem;
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.footer-col a,
.footer-col p {
    max-width: none;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.8);
    transition: color 200ms var(--ease);
}

.footer-col a:hover,
.footer-col a:focus-visible {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer-col em {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    padding-top: 1.5rem;
}

.footer-bottom p {
    max-width: none;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
}

/* ---------- Reduced motion ---------- */

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

    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .reveal-section {
        min-height: auto;
    }

    .reveal-sticky {
        position: static;
    }
}
