/**
 * Homepage editorial refresh
 *
 * Visual overrides only: the existing homepage structure and sections remain
 * untouched.
 */

body.is-front-page {
    --home-ink: #0b1916;
    --home-ink-soft: #142722;
    --home-cream: #f3efe4;
    --home-paper: #fffdf7;
    --home-accent: #78c891;
    --home-accent-dark: #32744d;
    --home-line: rgba(11, 25, 22, 0.2);
    background: var(--home-cream);
    color: var(--home-ink);
}

body.is-front-page main {
    overflow: hidden;
}

body.is-front-page .btn,
body.is-front-page .hero-cta,
body.is-front-page .event-link {
    border-radius: 0;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.is-front-page .btn-primary,
body.is-front-page .hero-cta {
    border-color: var(--home-accent);
    background: var(--home-accent);
    color: var(--home-ink);
    box-shadow: 5px 5px 0 var(--home-ink);
}

body.is-front-page .btn-primary:hover,
body.is-front-page .hero-cta:hover {
    border-color: var(--home-paper);
    background: var(--home-paper);
    color: var(--home-ink);
    box-shadow: 2px 2px 0 var(--home-ink);
    transform: translate(3px, 3px);
}

/* Hero */
body.is-front-page .hero-slider {
    min-height: min(800px, 88vh);
    border-bottom: 1px solid rgba(120, 200, 145, 0.55);
    background: var(--home-ink);
}

body.is-front-page .hero-slide::before {
    background:
        linear-gradient(90deg, rgba(11, 25, 22, 0.95) 0%, rgba(11, 25, 22, 0.72) 54%, rgba(11, 25, 22, 0.25) 100%),
        linear-gradient(0deg, rgba(11, 25, 22, 0.65), transparent 55%);
}

body.is-front-page .hero-slide::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        linear-gradient(rgba(120, 200, 145, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 200, 145, 0.08) 1px, transparent 1px);
    background-size: 56px 56px;
    content: "";
    pointer-events: none;
}

body.is-front-page .hero-content {
    max-width: 780px;
}

body.is-front-page .hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(120, 200, 145, 0.65);
    border-radius: 0;
    background: rgba(11, 25, 22, 0.74);
    color: var(--home-accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

body.is-front-page .hero-tag::before {
    width: 7px;
    height: 7px;
    background: var(--home-accent);
    content: "";
}

body.is-front-page .hero-title {
    max-width: 820px;
    color: var(--home-paper);
    font-size: clamp(3.1rem, 7.3vw, 7rem);
    letter-spacing: -0.065em;
    line-height: 0.88;
    text-wrap: balance;
}

body.is-front-page .hero-title em,
body.is-front-page .hero-title strong {
    color: var(--home-accent);
}

body.is-front-page .hero-description {
    max-width: 610px;
    border-left: 3px solid var(--home-accent);
    padding-left: 20px;
    color: rgba(255, 253, 247, 0.8);
    font-size: clamp(1rem, 1.6vw, 1.22rem);
    line-height: 1.65;
}

body.is-front-page .hero-arrow {
    border: 1px solid rgba(255, 253, 247, 0.35);
    background: rgba(11, 25, 22, 0.72);
    color: var(--home-paper);
}

body.is-front-page .hero-arrow:hover {
    border-color: var(--home-accent);
    background: var(--home-accent);
    color: var(--home-ink);
}

body.is-front-page .hero-dot {
    width: 28px;
    height: 4px;
    border-radius: 0;
    background: rgba(255, 253, 247, 0.4);
}

body.is-front-page .hero-dot.active {
    width: 52px;
    background: var(--home-accent);
}

/* Shared section language */
body.is-front-page #main > section:not(.hero-slider) {
    border-bottom: 1px solid var(--home-line);
}

body.is-front-page #main > section:not(.hero-slider) h2 {
    color: var(--home-ink) !important;
    letter-spacing: -0.045em !important;
    line-height: 0.96 !important;
}

body.is-front-page #main > section:not(.hero-slider) p {
    color: rgba(11, 25, 22, 0.7);
}

body.is-front-page #main > section:not(.hero-slider) .section-header {
    margin-bottom: 48px;
}

body.is-front-page #main > section:not(.hero-slider) .section-tag,
body.is-front-page #main > section:not(.hero-slider) .section-label {
    border: 0;
    border-left: 8px solid var(--home-accent);
    border-radius: 0;
    padding: 4px 0 4px 14px;
    background: transparent;
    color: var(--home-accent-dark);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

body.is-front-page #main > section:not(.hero-slider) .section-divider {
    background: var(--home-accent);
}

/* Essentials */
body.is-front-page #main > section:nth-of-type(2) {
    background: var(--home-cream) !important;
}

body.is-front-page #main > section:nth-of-type(2) > div[style*="position: absolute"] {
    background: var(--home-accent) !important;
    opacity: 0.1 !important;
}

body.is-front-page #main > section:nth-of-type(2) .container-wide > div:first-of-type span {
    border: 0 !important;
    border-left: 8px solid var(--home-accent) !important;
    border-radius: 0 !important;
    padding: 3px 0 3px 14px !important;
    background: transparent !important;
    color: var(--home-accent-dark) !important;
    letter-spacing: 0.16em !important;
}

body.is-front-page #main > section:nth-of-type(2) .container-wide > div:first-of-type h2 {
    max-width: 800px;
    margin-inline: auto;
    font-size: clamp(2.6rem, 5.5vw, 5.2rem) !important;
    text-align: center !important;
}

body.is-front-page .essentials-articles-grid {
    gap: clamp(30px, 4vw, 56px) !important;
}

body.is-front-page .essentials-articles-grid article {
    overflow: visible !important;
    border: 1px solid var(--home-ink) !important;
    border-radius: 0 !important;
    background: var(--home-paper) !important;
    box-shadow: 12px 12px 0 var(--home-ink) !important;
}

body.is-front-page .essentials-articles-grid article:hover {
    box-shadow: 5px 5px 0 var(--home-ink) !important;
    transform: translate(7px, 7px) !important;
}

body.is-front-page .essentials-articles-grid article > div:first-child {
    background: var(--home-ink-soft) !important;
}

body.is-front-page .essentials-articles-grid article > div:first-child:has(> img) > div:first-of-type {
    z-index: 1;
    background: linear-gradient(180deg, transparent 48%, rgba(11, 25, 22, 0.42)) !important;
}

body.is-front-page .essentials-articles-grid article img {
    position: relative;
    z-index: 0;
    display: block;
    opacity: 1;
    filter: saturate(0.7) contrast(1.05);
}

body.is-front-page .essentials-articles-grid article > div:first-child:has(> img) > div:last-child {
    z-index: 2;
    border: 1px solid var(--home-ink) !important;
    border-radius: 0 !important;
    background: var(--home-accent) !important;
    color: var(--home-ink) !important;
}

body.is-front-page .essentials-articles-grid article > div:last-child {
    background: var(--home-paper) !important;
}

body.is-front-page .essentials-articles-grid article > div:last-child > div:first-child {
    border-bottom: 1px solid rgba(11, 25, 22, 0.12);
    padding-bottom: 22px;
}

body.is-front-page .essentials-articles-grid article > div:last-child span {
    border: 1px solid rgba(50, 116, 77, 0.3) !important;
    border-radius: 0 !important;
    background: rgba(120, 200, 145, 0.15) !important;
    color: var(--home-accent-dark) !important;
}

body.is-front-page .essentials-articles-grid article h3 {
    color: var(--home-ink) !important;
    letter-spacing: -0.035em !important;
    line-height: 1.02 !important;
}

body.is-front-page .essentials-articles-grid article p {
    color: rgba(11, 25, 22, 0.66) !important;
}

body.is-front-page .essentials-articles-grid article > div:last-child > div:last-child {
    border-color: rgba(11, 25, 22, 0.15) !important;
}

body.is-front-page .essentials-articles-grid article a {
    color: var(--home-accent-dark) !important;
}

/* Perspective quote */
body.is-front-page #main > section:nth-of-type(3) {
    background: var(--home-ink) !important;
}

body.is-front-page #main > section:nth-of-type(3)::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 20% 30%, rgba(120, 200, 145, 0.18), transparent 48%),
        radial-gradient(circle at 80% 70%, rgba(255, 253, 247, 0.08), transparent 46%) !important;
    content: "";
    pointer-events: none;
}

body.is-front-page #main > section:nth-of-type(3)::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        linear-gradient(rgba(120, 200, 145, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 200, 145, 0.07) 1px, transparent 1px) !important;
    background-size: 48px 48px !important;
    opacity: 1 !important;
    content: "";
    pointer-events: none;
}

body.is-front-page #main > section:nth-of-type(3) > div:nth-child(2) {
    background:
        radial-gradient(circle at 30% 20%, rgba(120, 200, 145, 0.24), transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 253, 247, 0.1), transparent 50%) !important;
}

body.is-front-page #main > section:nth-of-type(3) > div:nth-child(n+3):nth-child(-n+5) {
    background: rgba(120, 200, 145, 0.16) !important;
}

body.is-front-page #main > section:nth-of-type(3) h2,
body.is-front-page #main > section:nth-of-type(3) p,
body.is-front-page #main > section:nth-of-type(3) span {
    color: var(--home-paper) !important;
}

body.is-front-page .full-quote-number {
    background: linear-gradient(135deg, var(--home-paper), var(--home-accent)) !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent;
}

body.is-front-page .full-quote-content > div:first-child span {
    background: var(--home-accent) !important;
}

body.is-front-page .full-quote-grid > div {
    border: 1px solid rgba(120, 200, 145, 0.42) !important;
    border-radius: 0 !important;
    background: rgba(255, 253, 247, 0.045) !important;
    box-shadow: none !important;
    backdrop-filter: blur(4px);
}

body.is-front-page .full-quote-grid > div:hover {
    border-color: var(--home-accent) !important;
    background: rgba(120, 200, 145, 0.1) !important;
    transform: translateY(-5px);
}

body.is-front-page .full-quote-grid > div > div:first-child {
    background: var(--home-accent) !important;
}

body.is-front-page .full-quote-grid strong {
    color: var(--home-accent) !important;
}

/* Featured articles */
body.is-front-page #main > section:nth-of-type(4) {
    background: var(--home-paper) !important;
}

body.is-front-page #main > section:nth-of-type(4) .container-wide > div:first-child span {
    border: 0 !important;
    border-left: 8px solid var(--home-accent) !important;
    border-radius: 0 !important;
    padding: 3px 0 3px 14px !important;
    background: transparent !important;
    color: var(--home-accent-dark) !important;
}

body.is-front-page #main > section:nth-of-type(4) article,
body.is-front-page #main > section:nth-of-type(4) .card {
    border: 1px solid var(--home-line) !important;
    border-radius: 0 !important;
    background: var(--home-cream) !important;
    box-shadow: none !important;
}

body.is-front-page #main > section:nth-of-type(4) article:hover,
body.is-front-page #main > section:nth-of-type(4) .card:hover {
    border-color: var(--home-ink) !important;
    box-shadow: 8px 8px 0 var(--home-accent) !important;
    transform: translate(-4px, -4px) !important;
}

body.is-front-page #main > section:nth-of-type(4) article > div:last-child {
    border-radius: 0 !important;
}

body.is-front-page #main > section:nth-of-type(4) article span {
    border: 1px solid rgba(50, 116, 77, 0.3) !important;
    border-radius: 0 !important;
    background: rgba(120, 200, 145, 0.15) !important;
    color: var(--home-accent-dark) !important;
}

body.is-front-page #main > section:nth-of-type(4) article img,
body.is-front-page #main > section:nth-of-type(4) .card img {
    filter: saturate(0.72);
}

body.is-front-page #main > section:nth-of-type(4) article h3,
body.is-front-page #main > section:nth-of-type(4) .card h3 {
    color: var(--home-ink) !important;
}

body.is-front-page #main > section:nth-of-type(4) article a,
body.is-front-page #main > section:nth-of-type(4) .card a {
    color: var(--home-accent-dark) !important;
}

body.is-front-page #main > section:nth-of-type(4) .container-wide > div:last-child > a {
    border: 1px solid var(--home-ink) !important;
    border-radius: 0 !important;
    background: var(--home-accent) !important;
    color: var(--home-ink) !important;
    box-shadow: 5px 5px 0 var(--home-ink) !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.is-front-page #main > section:nth-of-type(4) .container-wide > div:last-child > a:hover {
    box-shadow: 2px 2px 0 var(--home-ink) !important;
    transform: translate(3px, 3px) !important;
}

/* Why sport */
body.is-front-page #main > section:nth-of-type(5) {
    background: var(--home-cream) !important;
}

body.is-front-page #main > section:nth-of-type(5) .container-wide > div:first-child span {
    border: 0 !important;
    border-left: 8px solid var(--home-accent) !important;
    border-radius: 0 !important;
    padding: 3px 0 3px 14px !important;
    background: transparent !important;
    color: var(--home-accent-dark) !important;
}

body.is-front-page .why-sport-card {
    background: transparent !important;
}

body.is-front-page .why-sport-card > div:first-child {
    border: 1px solid var(--home-ink) !important;
    border-radius: 0 !important;
    background: var(--home-ink) !important;
    box-shadow: none !important;
}

body.is-front-page .why-sport-card:hover > div:first-child {
    border-color: var(--home-accent) !important;
    box-shadow: 8px 8px 0 var(--home-accent) !important;
    transform: translate(-4px, -4px) !important;
}

body.is-front-page .why-sport-card img {
    filter: saturate(0.55) contrast(1.05);
}

body.is-front-page .why-sport-card > div:first-child > div[style*="linear-gradient"] {
    background: linear-gradient(135deg, var(--home-ink-soft), var(--home-accent-dark)) !important;
}

body.is-front-page .why-sport-card .card-description-overlay {
    background: linear-gradient(180deg, rgba(11, 25, 22, 0), rgba(11, 25, 22, 0.98)) !important;
}

body.is-front-page .why-sport-card h3 {
    color: var(--home-paper) !important;
}

body.is-front-page .why-sport-card p {
    color: rgba(255, 253, 247, 0.74) !important;
}

body.is-front-page .why-sport-card a {
    color: var(--home-accent) !important;
}

/* Optional event and testimony sections */
body.is-front-page .event-card,
body.is-front-page .testimony-card {
    border: 1px solid var(--home-line);
    border-radius: 0;
    background: var(--home-paper);
    box-shadow: none;
}

body.is-front-page .event-card:hover,
body.is-front-page .testimony-card:hover {
    border-color: var(--home-ink);
    box-shadow: 8px 8px 0 var(--home-accent);
    transform: translate(-4px, -4px);
}

body.is-front-page section:has(.event-card) {
    background: var(--home-paper);
}

body.is-front-page section:has(.testimony-card) {
    background: var(--home-cream);
}

body.is-front-page .event-date-badge {
    border-radius: 0;
    background: var(--home-accent);
    color: var(--home-ink);
}

body.is-front-page .event-link,
body.is-front-page .event-card .card-title,
body.is-front-page .testimony-card strong {
    color: var(--home-accent-dark);
}

body.is-front-page .btn-ghost {
    border-color: var(--home-ink);
    border-radius: 0;
    color: var(--home-ink);
}

body.is-front-page .btn-ghost:hover {
    border-color: var(--home-accent);
    background: var(--home-accent);
    color: var(--home-ink);
}

body.is-front-page .testimony-avatar {
    border: 2px solid var(--home-accent);
}

@media (max-width: 1024px) {
    body.is-front-page .hero-slider {
        min-height: 720px;
    }

    body.is-front-page .hero-slide::before {
        background: linear-gradient(90deg, rgba(11, 25, 22, 0.94), rgba(11, 25, 22, 0.62));
    }

    body.is-front-page .essentials-articles-grid article {
        box-shadow: 8px 8px 0 var(--home-ink) !important;
    }
}

@media (max-width: 768px) {
    body.is-front-page .hero-slider {
        min-height: 680px;
    }

    body.is-front-page .hero-slide::before {
        background: linear-gradient(180deg, rgba(11, 25, 22, 0.58), rgba(11, 25, 22, 0.96) 72%);
    }

    body.is-front-page .hero-slide::after {
        background-size: 36px 36px;
    }

    body.is-front-page .hero-content {
        padding-bottom: 70px;
    }

    body.is-front-page .hero-title {
        font-size: clamp(3rem, 15vw, 4.8rem);
        line-height: 0.92;
    }

    body.is-front-page .hero-description {
        padding-left: 14px;
    }

    body.is-front-page .hero-arrow {
        width: 44px;
        height: 44px;
    }

    body.is-front-page #main > section:not(.hero-slider) .section-header {
        margin-bottom: 34px;
        text-align: left;
    }

    body.is-front-page #main > section:nth-of-type(4) .container-wide > div:first-child,
    body.is-front-page #main > section:nth-of-type(5) .container-wide > div:first-child {
        text-align: left !important;
    }

    body.is-front-page #main > section:nth-of-type(2) .container-wide > div:first-of-type {
        text-align: center !important;
    }

    body.is-front-page #main > section:nth-of-type(2) .container-wide > div:first-of-type h2 {
        margin-inline: auto;
        font-size: clamp(2.5rem, 13vw, 4rem) !important;
        text-align: center !important;
    }

    body.is-front-page #main > section:nth-of-type(2) .container-wide > div:first-of-type p {
        margin-inline: auto !important;
        text-align: center !important;
    }

    body.is-front-page .essentials-articles-grid {
        gap: 32px !important;
    }

    body.is-front-page .essentials-articles-grid article {
        box-shadow: 6px 6px 0 var(--home-ink) !important;
    }

    body.is-front-page .full-quote-content {
        text-align: left !important;
    }

    body.is-front-page .full-quote-grid {
        gap: 14px !important;
    }

    body.is-front-page .full-quote-grid > div {
        padding: 22px 18px !important;
    }

    body.is-front-page .why-sport-card:hover > div:first-child,
    body.is-front-page #main > section:nth-of-type(4) article:hover,
    body.is-front-page #main > section:nth-of-type(4) .card:hover,
    body.is-front-page .event-card:hover,
    body.is-front-page .testimony-card:hover {
        box-shadow: 5px 5px 0 var(--home-accent) !important;
        transform: translate(-2px, -2px) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.is-front-page *,
    body.is-front-page *::before,
    body.is-front-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
