/*
 * Brand of Kumdo Argentina on the club site of storefront (ADR 0005): the
 * Celeste variant of the WordPress mockup (sitio-kumdo, tickets 05, 21 and 22).
 * It only redefines the variables of sites/club/src/styles/global.css, plus
 * the fonts and the text logotype.
 *
 * Accessibility: sky blue (celeste) is never text on a light background, only
 * an accent on night blue; info #1f5f99 and warning #985b00 on light.
 */

@font-face {
    font-family: "Barlow";
    font-weight: 400;
    font-display: swap;
    src: url("fonts/barlow-latin-400-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Barlow";
    font-weight: 600;
    font-display: swap;
    src: url("fonts/barlow-latin-600-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Barlow Condensed";
    font-weight: 600;
    font-display: swap;
    src: url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Barlow Condensed";
    font-weight: 800;
    font-display: swap;
    src: url("fonts/barlow-condensed-latin-800-normal.woff2") format("woff2");
}

/*
 * Until a Barlow file arrives the text is drawn with a local font scaled to
 * Barlow's metrics, so the swap does not reflow the page (from hello-kumdo).
 */
@font-face {
    font-family: "Barlow Fallback";
    font-weight: 400;
    src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Arimo");
    size-adjust: 95.07%;
    ascent-override: 105.19%;
    descent-override: 21.04%;
    line-gap-override: 0%;
}

@font-face {
    font-family: "Barlow Fallback";
    font-weight: 600;
    src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"),
        local("Arimo Bold");
    size-adjust: 90.66%;
    ascent-override: 110.31%;
    descent-override: 22.06%;
    line-gap-override: 0%;
}

@font-face {
    font-family: "Barlow Fallback Roboto";
    font-weight: 400;
    src: local("Roboto"), local("Roboto-Regular");
    size-adjust: 96.22%;
    ascent-override: 103.93%;
    descent-override: 20.79%;
    line-gap-override: 0%;
}

@font-face {
    font-family: "Barlow Fallback Roboto";
    font-weight: 600;
    src: local("Roboto Bold"), local("Roboto-Bold");
    size-adjust: 96.71%;
    ascent-override: 103.4%;
    descent-override: 20.68%;
    line-gap-override: 0%;
}

@font-face {
    font-family: "Barlow Condensed Fallback";
    font-weight: 600;
    src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"),
        local("Arimo Bold");
    size-adjust: 66.1%;
    ascent-override: 151.29%;
    descent-override: 30.26%;
    line-gap-override: 0%;
}

@font-face {
    font-family: "Barlow Condensed Fallback";
    font-weight: 800;
    src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"),
        local("Arimo Bold");
    size-adjust: 68.85%;
    ascent-override: 145.24%;
    descent-override: 29.05%;
    line-gap-override: 0%;
}

@font-face {
    font-family: "Barlow Condensed Fallback Roboto";
    font-weight: 600;
    src: local("Roboto Bold"), local("Roboto-Bold");
    size-adjust: 72.08%;
    ascent-override: 138.73%;
    descent-override: 27.75%;
    line-gap-override: 0%;
}

@font-face {
    font-family: "Barlow Condensed Fallback Roboto";
    font-weight: 800;
    src: local("Roboto Bold"), local("Roboto-Bold");
    size-adjust: 75.09%;
    ascent-override: 133.18%;
    descent-override: 26.64%;
    line-gap-override: 0%;
}

:root {
    --color-bg: #f7fafd;
    --color-surface: #ffffff;
    --color-text: #0b1f3a;
    --color-muted: #4b5d75;
    --color-accent: #0b1f3a;
    --color-accent-contrast: #ffffff;
    --color-border: #c9d9ea;
    --color-warn: #985b00;
    --color-link: #0b1f3a;
    --color-focus: #1f5f99;
    --font-sans: Barlow, "Barlow Fallback", "Barlow Fallback Roboto", system-ui,
        sans-serif;
    --font-heading: "Barlow Condensed", "Barlow Condensed Fallback",
        "Barlow Condensed Fallback Roboto", Barlow, system-ui, sans-serif;
    --heading-weight: 800;
    --heading-transform: uppercase;
    --radius-button: 999px;
    --color-header-bg: #0b1f3a;
    --color-header-text: #ffffff;
    --color-header-link: #c7d5e6;
    --color-header-border: #06142a;
    --color-footer-bg: #06142a;
    --color-footer-text: #c7d5e6;
    --color-footer-link: #ffffff;
    --color-cta-bg: #cd2e3a;
    --color-cta-text: #ffffff;
    --radius: 14px;

    /* The night of the dark bands and the glow of their sky blue and red. */
    --kumdo-night: oklch(22% 0.06 255);
    --kumdo-deep: oklch(16% 0.05 258);
    --kumdo-sky: #6cace4;
    --kumdo-red: #cd2e3a;
    --kumdo-red-hover: #b3242f;
    --kumdo-shadow: 0 1px 2px oklch(22% 0.06 255 / 0.08),
        0 8px 24px oklch(22% 0.06 255 / 0.1);
    --kumdo-shadow-lift: 0 2px 4px oklch(22% 0.06 255 / 0.1),
        0 18px 40px oklch(22% 0.06 255 / 0.18);
    --kumdo-stripe: linear-gradient(
        90deg,
        var(--kumdo-sky) 0 50%,
        var(--kumdo-red) 50% 100%
    );

    /* The logotype (logo.svg, inline in the header). */
    --brand-ring: #6cace4;
    --brand-red: #cd2e3a;
    --brand-blue: #2f5fa8;
}

h1,
h2,
h3 {
    letter-spacing: 0.02em;
    line-height: 1.1;
}

.brand-logo__name,
.brand-logo__country {
    font-family: var(--font-heading);
    font-weight: 800;
    fill: #ffffff;
}

.brand-logo__name {
    font-size: 22px;
}

.brand-logo__country {
    font-size: 13px;
    letter-spacing: 0.3em;
    fill: #6cace4;
}

/* The main button of the header: «Probar una clase». */
.site-header .cta {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.button.secondary {
    background: transparent;
}

/*
 * The visual refresh (2026-10-24): full-bleed night bands with a glow, the red
 * main button, cards that lift, and sections that rise into view. Only CSS,
 * no JavaScript (budget of ADR 0005 of storefront); every motion stops with
 * prefers-reduced-motion.
 */

/* Cross-document view transitions: a soft fade between pages, no script. */
@view-transition {
    navigation: auto;
}

::selection {
    background: var(--kumdo-sky);
    color: var(--kumdo-deep);
}

html {
    accent-color: var(--kumdo-red);
    scroll-behavior: smooth;
}

h1,
h2,
h3 {
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

main h2 {
    font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem);
}

/* The two colors of the logo under each section title. */
main .section > h2::after,
main .section .prose > h2::after,
main .section .text > h2::after {
    content: "";
    display: block;
    width: 3.5rem;
    height: 4px;
    margin-top: 0.6rem;
    border-radius: 2px;
    background: var(--kumdo-stripe);
}

main .section.call > h2::after {
    margin-inline: auto;
}

main .section {
    margin-block: clamp(2.5rem, 1.5rem + 4vw, 5rem);
}

/* Buttons: pill, a clear hover and press. */
.button {
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.button:hover {
    box-shadow: var(--kumdo-shadow);
    transform: translateY(-1px);
}

.button:active {
    transform: translateY(0);
}

.site-header .cta:hover,
.mobile-bar .cta:hover {
    background: var(--kumdo-red-hover);
}

/* The header: a thin stripe of the logo's colors at its foot. */
.site-header.header-bar {
    border-bottom: 0;
    background: var(--kumdo-stripe) bottom / 100% 3px no-repeat, var(--color-header-bg);
}

/*
 * The dark bands (the opening hero and the call): full bleed past the
 * container with a pseudo-element, a night gradient with a sky blue glow.
 */
body {
    overflow-x: clip;
}

main .section.hero.dark,
main .section.call {
    position: relative;
    isolation: isolate;
    border: 0;
    border-radius: 0;
    color: #ffffff;
    background: none;
}

main .section.hero.dark::before,
main .section.call::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset-block: 0;
    inset-inline: calc(50% - 50vw);
    background: radial-gradient(
            ellipse 60% 80% at 85% 10%,
            oklch(68% 0.11 245 / 0.35),
            transparent 70%
        ),
        radial-gradient(
            ellipse 40% 60% at 5% 100%,
            oklch(55% 0.2 25 / 0.22),
            transparent 70%
        ),
        linear-gradient(160deg, var(--kumdo-night), var(--kumdo-deep));
}

main .section.hero.dark {
    margin-top: 0;
    padding-block: clamp(3rem, 2rem + 6vw, 7rem);
    padding-inline: 0;
}

main > .section.hero.dark:first-child {
    margin-top: 0;
}

main .section.hero.dark h1,
main .section.hero.dark h2 {
    font-size: clamp(2.6rem, 1.6rem + 5vw, 5rem);
    line-height: 0.95;
    margin-block: 0 1rem;
}

main .section.hero.dark .lead {
    font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
    color: #dbe7f5;
    max-width: 34rem;
}

main .section.hero.dark .button,
main .section.call .button:not(.secondary) {
    background: var(--kumdo-red);
    color: #ffffff;
    font-size: 1.1rem;
}

main .section.hero.dark .button:hover,
main .section.call .button:not(.secondary):hover {
    background: var(--kumdo-red-hover);
}

main .section.call .button.secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
}

main .section.hero.dark .hero-image {
    border-radius: var(--radius);
    box-shadow: 0 24px 60px oklch(10% 0.04 258 / 0.55);
}

main .section.call {
    padding-block: clamp(3rem, 2rem + 4vw, 5rem);
    padding-inline: 0;
    text-align: center;
}

main .section.call p {
    color: #dbe7f5;
    max-width: 40rem;
    margin-inline: auto;
}

main .section.call .button + .button {
    margin-inline-start: 0.5rem;
}

/* Images of the sections and cards. */
main .section .side-image {
    border-radius: var(--radius);
    box-shadow: var(--kumdo-shadow);
}

/* Cards: the schools, the events and the cards Section. */
main .school-card,
main .event-card,
main .section.cards li {
    border-color: transparent;
    border-radius: var(--radius);
    box-shadow: var(--kumdo-shadow);
    transition: box-shadow 0.25s, transform 0.25s;
}

main .school-card:hover,
main .event-card:hover,
main .section.cards li:hover {
    box-shadow: var(--kumdo-shadow-lift);
    transform: translateY(-3px);
}

main .event-card {
    border-top: 4px solid var(--kumdo-red);
}

main .school-card img {
    transition: transform 0.4s;
}

main .school-card:hover img {
    transform: scale(1.04);
}

main .chip:hover {
    border-color: var(--kumdo-sky);
}

/* The footer: the stripe again on top. */
.site-footer {
    border-top: 0;
    background: var(--kumdo-stripe) top / 100% 3px no-repeat, var(--color-footer-bg);
}

/*
 * Sections rise into view as they scroll in (scroll-driven animations).
 * Without support or with reduced motion they are simply there; before they
 * enter the animation does not apply, so nothing is hidden.
 */
@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        main .section:not(.hero),
        main .school-card,
        main .event-card {
            animation: kumdo-rise linear;
            animation-timeline: view();
            animation-range: entry 0% entry 35%;
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    @view-transition {
        navigation: none;
    }

    html {
        scroll-behavior: auto;
    }

    .button,
    main .school-card,
    main .event-card,
    main .section.cards li,
    main .school-card img {
        transition: none;
    }
}

/* Only movement, never transparency: text stays at full contrast. */
@keyframes kumdo-rise {
    from {
        transform: translateY(2.5rem) scale(0.97);
    }
}
