/**
 * Kontingen Indonesia Asian Games 2026
 * Redesign v2.1 — Design System, Header & Hero
 */

/* =========================================================
   DESIGN TOKENS
   ========================================================= */

:root {
    --agv2-red: #d71920;
    --agv2-red-dark: #a90f17;
    --agv2-navy: #07182f;
    --agv2-navy-soft: #102b4e;
    --agv2-blue: #164a81;
    --agv2-gold: #f3bd45;
    --agv2-gold-dark: #d99b1d;
    --agv2-white: #ffffff;
    --agv2-surface: #f5f7fb;
    --agv2-text: #122033;
    --agv2-muted: #667085;
    --agv2-border: rgba(7, 24, 47, 0.12);

    --agv2-container: 1320px;
    --agv2-radius-sm: 10px;
    --agv2-radius-md: 18px;
    --agv2-radius-lg: 28px;

    --agv2-shadow-sm:
        0 10px 30px rgba(7, 24, 47, 0.08);

    --agv2-shadow-lg:
        0 24px 70px rgba(7, 24, 47, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--agv2-surface);
    color: var(--agv2-text);
    font-family: Inter, Arial, sans-serif;
}

body .ag-container {
    width: min(
        calc(100% - 40px),
        var(--agv2-container)
    );
    margin-inline: auto;
}

/* =========================================================
   SITE HEADER
   ========================================================= */

body .ag-site-header {
    position: relative;
    z-index: 1000;
    background: var(--agv2-white);
}

/* Topbar */

body .ag-topbar {
    min-height: 38px;
    background:
        linear-gradient(
            90deg,
            var(--agv2-red-dark),
            var(--agv2-red)
        );
    color: var(--agv2-white);
}

body .ag-topbar__inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

body .ag-topbar a {
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
}

body .ag-topbar a:hover,
body .ag-topbar a:focus-visible {
    color: var(--agv2-gold);
}

body .ag-topbar__links,
body .ag-topbar__right,
body .ag-language,
body .ag-social-mini {
    display: flex;
    align-items: center;
}

body .ag-topbar__links {
    gap: 9px;
}

body .ag-topbar__right {
    gap: 18px;
}

body .ag-language,
body .ag-social-mini {
    gap: 8px;
}

body .ag-social-mini a {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    font-size: 11px;
}

/* Main navbar */

body .ag-navbar {
    position: relative;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--agv2-border);
    box-shadow: 0 8px 30px rgba(7, 24, 47, 0.06);
    backdrop-filter: blur(14px);
}

body .ag-navbar__inner {
    min-height: 90px;
    display: flex;
    align-items: center;
    gap: 30px;
}

body .ag-brand {
    min-width: 270px;
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: var(--agv2-navy);
    text-decoration: none;
}

body .ag-brand__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body .ag-navbar .ag-brand__logo img.custom-logo {
    width: auto;
    max-width: 90px;
    max-height: 68px;
    object-fit: contain;
}

body .ag-brand__mark {
    width: 62px;
    height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background:
        linear-gradient(
            145deg,
            var(--agv2-red),
            var(--agv2-red-dark)
        );
    color: var(--agv2-white);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 27px;
    font-weight: 800;
}

body .ag-brand__text {
    display: flex;
    flex-direction: column;
    line-height: 0.95;
}

body .ag-brand__text small {
    color: var(--agv2-navy);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 15px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

body .ag-brand__text strong {
    color: var(--agv2-red);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 31px;
    font-weight: 800;
    letter-spacing: 0.015em;
    text-transform: uppercase;
}

body .ag-brand__text em {
    margin-top: 5px;
    color: var(--agv2-muted);
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

/* Navigation */

body .ag-primary-nav {
    margin-left: auto;
}

body .ag-primary-nav .ag-menu {
    display: flex;
    align-items: center;
    gap: 3px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body .ag-primary-nav .ag-menu > li {
    position: relative;
}

body .ag-primary-nav .ag-menu > li > a {
    min-height: 90px;
    display: flex;
    align-items: center;
    padding: 0 13px;
    color: var(--agv2-navy);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.035em;
    text-decoration: none;
    text-transform: uppercase;
}

body .ag-primary-nav .ag-menu > li > a::after {
    position: absolute;
    right: 13px;
    bottom: 19px;
    left: 13px;
    height: 3px;
    border-radius: 20px;
    background: var(--agv2-red);
    content: "";
    opacity: 0;
    transform: scaleX(0.35);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

body .ag-primary-nav .ag-menu > li:hover > a,
body .ag-primary-nav .ag-menu > li.current-menu-item > a,
body .ag-primary-nav .ag-menu > li.current-menu-ancestor > a {
    color: var(--agv2-red);
}

body .ag-primary-nav .ag-menu > li:hover > a::after,
body .ag-primary-nav .ag-menu > li.current-menu-item > a::after,
body .ag-primary-nav .ag-menu > li.current-menu-ancestor > a::after {
    opacity: 1;
    transform: scaleX(1);
}

body .ag-search-button {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--agv2-border);
    border-radius: 50%;
    background: var(--agv2-white);
    color: var(--agv2-navy);
    cursor: pointer;
}

body .ag-search-button:hover {
    border-color: var(--agv2-red);
    background: var(--agv2-red);
    color: var(--agv2-white);
}

body .ag-search-button svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* =========================================================
   HOMEPAGE HERO
   ========================================================= */

body.home .ag-hero--final {
    position: relative;
    min-height: 630px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 76% 42%,
            rgba(215, 25, 32, 0.34),
            transparent 34%
        ),
        linear-gradient(
            115deg,
            #051328 0%,
            #0a2342 52%,
            #07182f 100%
        );
    color: var(--agv2-white);
}

body.home .ag-hero--final::before {
    position: absolute;
    top: -180px;
    left: -120px;
    width: 540px;
    height: 540px;
    border: 1px solid rgba(243, 189, 69, 0.15);
    border-radius: 50%;
    content: "";
}

body.home .ag-hero--final::after {
    position: absolute;
    right: -170px;
    bottom: -290px;
    width: 700px;
    height: 700px;
    border: 90px solid rgba(215, 25, 32, 0.11);
    border-radius: 50%;
    content: "";
}

body.home .ag-hero--final .ag-hero__background {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            100deg,
            rgba(5, 19, 40, 0.98) 0%,
            rgba(5, 19, 40, 0.86) 42%,
            rgba(5, 19, 40, 0.12) 75%
        );
}

body.home .ag-hero__red-glow {
    position: absolute;
    top: 5%;
    right: 15%;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(215, 25, 32, 0.26);
    filter: blur(90px);
}

body.home .ag-hero__gold-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(
            135deg,
            transparent 47%,
            rgba(243, 189, 69, 0.05) 48%,
            transparent 49%
        );
    background-size: 38px 38px;
    opacity: 0.45;
}

body.home .ag-hero--final .ag-hero__inner {
    position: relative;
    z-index: 3;
    min-height: 630px;
    display: grid;
    grid-template-columns: minmax(420px, 0.9fr) minmax(520px, 1.1fr);
    align-items: center;
    gap: 20px;
}

body.home .ag-hero--final .ag-hero__copy {
    max-width: 620px;
    padding: 68px 0 78px;
}

body.home .ag-hero__kicker {
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    margin-bottom: 18px;
    padding: 0 14px;
    border: 1px solid rgba(243, 189, 69, 0.48);
    border-radius: 99px;
    background: rgba(243, 189, 69, 0.1);
    color: var(--agv2-gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

body.home .ag-hero--final h1 {
    max-width: 650px;
    margin: 0;
    color: var(--agv2-white);
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(50px, 5vw, 78px);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.025em;
    text-transform: uppercase;
}

body.home .ag-hero--final h1 > span {
    display: block;
    margin-bottom: 7px;
    color: var(--agv2-white);
    font-size: 0.58em;
    line-height: 1;
    letter-spacing: 0.015em;
}

body.home .ag-hero__event {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.82);
}

body.home .ag-hero__event strong {
    color: var(--agv2-gold);
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
}

body.home .ag-hero__event span {
    font-size: 14px;
}

body.home .ag-countdown-label {
    margin-top: 30px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

body.home .ag-hero--final .ag-countdown {
    width: fit-content;
    display: grid;
    grid-template-columns: repeat(4, minmax(72px, 1fr));
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--agv2-radius-sm);
    background: rgba(1, 10, 25, 0.58);
    box-shadow: var(--agv2-shadow-lg);
    backdrop-filter: blur(12px);
}

body.home .ag-hero--final .ag-countdown > div {
    min-width: 82px;
    padding: 13px 15px 11px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

body.home .ag-hero--final .ag-countdown > div:last-child {
    border-right: 0;
}

body.home .ag-hero--final .ag-countdown strong {
    display: block;
    color: var(--agv2-white);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
}

body.home .ag-hero--final .ag-countdown span {
    display: block;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

body.home .ag-hero--final .ag-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

body.home .ag-hero--final .ag-button {
    min-height: 49px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 23px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.065em;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

body.home .ag-hero--final .ag-button:hover {
    transform: translateY(-2px);
}

body.home .ag-hero--final .ag-button--red {
    background: var(--agv2-red);
    color: var(--agv2-white);
    box-shadow: 0 14px 30px rgba(215, 25, 32, 0.32);
}

body.home .ag-hero--final .ag-button--gold {
    border-color: rgba(243, 189, 69, 0.65);
    background: rgba(243, 189, 69, 0.1);
    color: var(--agv2-gold);
}

body.home .ag-hero--final .ag-hero__visual {
    align-self: stretch;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    min-width: 0;
}

body.home .ag-hero--final .ag-hero__athletes-image {
    position: relative;
    z-index: 2;
    width: min(760px, 115%);
    max-width: none;
    max-height: 630px;
    margin-right: -55px;
    object-fit: contain;
    object-position: center bottom;
    filter:
        drop-shadow(0 28px 34px rgba(0, 0, 0, 0.3));
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1180px) {
    body .ag-brand {
        min-width: 230px;
    }

    body .ag-primary-nav .ag-menu > li > a {
        padding-inline: 9px;
        font-size: 14px;
    }

    body.home .ag-hero--final .ag-hero__inner {
        grid-template-columns: minmax(390px, 0.95fr) minmax(430px, 1.05fr);
    }
}

@media (max-width: 980px) {
    body .ag-topbar__links {
        display: none;
    }

    body .ag-topbar__inner {
        justify-content: flex-end;
    }

    body .ag-navbar__inner {
        min-height: 76px;
    }

    body .ag-brand {
        min-width: 0;
        margin-right: auto;
    }

    body .ag-brand__text strong {
        font-size: 25px;
    }

    body.home .ag-hero--final,
    body.home .ag-hero--final .ag-hero__inner {
        min-height: auto;
    }

    body.home .ag-hero--final .ag-hero__inner {
        grid-template-columns: 1fr;
    }

    body.home .ag-hero--final .ag-hero__copy {
        max-width: 720px;
        padding: 65px 0 22px;
    }

    body.home .ag-hero--final .ag-hero__visual {
        min-height: 390px;
        justify-content: center;
    }

    body.home .ag-hero--final .ag-hero__athletes-image {
        width: min(760px, 100%);
        max-height: 440px;
        margin-right: 0;
    }
}

@media (max-width: 680px) {
    body .ag-container {
        width: min(calc(100% - 28px), var(--agv2-container));
    }

    body .ag-topbar {
        display: none;
    }

    body .ag-navbar__inner {
        min-height: 70px;
        gap: 12px;
    }

    body .ag-navbar .ag-brand__logo img.custom-logo {
        max-width: 58px;
        max-height: 50px;
    }

    body .ag-brand__text small,
    body .ag-brand__text em {
        display: none;
    }

    body .ag-brand__text strong {
        font-size: 23px;
    }

    body .ag-search-button {
        display: none;
    }

    body.home .ag-hero--final .ag-hero__copy {
        padding-top: 52px;
    }

    body.home .ag-hero--final h1 {
        font-size: clamp(42px, 13vw, 58px);
    }

    body.home .ag-hero__event {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    body.home .ag-hero--final .ag-countdown {
        width: 100%;
        grid-template-columns: repeat(4, 1fr);
    }

    body.home .ag-hero--final .ag-countdown > div {
        min-width: 0;
        padding-inline: 8px;
    }

    body.home .ag-hero--final .ag-countdown strong {
        font-size: 25px;
    }

    body.home .ag-hero--final .ag-hero__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    body.home .ag-hero--final .ag-button {
        width: 100%;
    }

    body.home .ag-hero--final .ag-hero__visual {
        min-height: 310px;
    }

    body.home .ag-hero--final .ag-hero__athletes-image {
        max-height: 340px;
    }
}
