/* ========================================================================== */
/* ROOT VARIABLES                                                             */
/* ========================================================================== */

:root {
    --main-font: 'Oswald';

    --advanced-color: #1d4f8c;
    --intermediate-color: #2f6db3;
    --mixed-color: rgba(209, 213, 219, 0.35);

    --dialog-overlay: #535353AA;

    --hero_gap: clamp(18px, 3vw, 40px);
    --hero_panel_width: min(32vw, 360px);
    --hero_panel_height: clamp(88px, 10vw, 132px);
    --hero_side_pad: clamp(20px, 5vw, 64px);
    --hero_top_pad: clamp(24px, 4vw, 48px);

    --hero_logo_width: min(56vw, 760px);
    --hero_logo_height: min(62vh, 820px);

    --hero_title_color: rgba(255, 255, 255, 0.92);
    --hero_text_muted: rgba(255, 255, 255, 0.68);

    --rooster_blue: #2f6db3;
    --rooster_blue_light: #4fa3ff;
    --rooster_blue_deep: #1d4f8c;
    --rooster_navy: #0f172a;
    --rooster_navy_soft: #162033;
    --rooster_black: #05080f;
    --rooster_white: #f8fafc;
    --rooster_gray: #d1d5db;
    --rooster_gray_soft: #94a3b8;

    --hero-margin: 50px;
    --mobile-hero-margin: 20px;
    --mobile-heading-font-size: 1.5em;
}


/* ========================================================================== */
/* GLOBAL / HTML NORMALIZATION                                                */
/* ========================================================================== */

html,
body {
    background: var(--diamond-black);
    font-family: var(--main-font);
    height: 100%;
    line-height: 1;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: fixed;
    scroll-behavior: smooth;
    width: 100vw;
}

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

a:visited {
    color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: inherit;
}

main {
    height: calc(100% - var(--nav-height));
    width: 100vw;
    display: flex;
}


/* ========================================================================== */
/* UTILITY CLASSES                                                            */
/* ========================================================================== */

.align_left {
    text-align: left;
}

.align_right {
    text-align: right;
}

.bold_text {
    font-weight: bold;
}

.centered {
    text-align: center;
}

.automargin {
    margin: auto;
}

.auto_overflow {
    max-height: 60vh;
    overflow-y: auto;
}

.between {
    display: flex;
    justify-content: space-between;
}

.center_abs {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

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

.clickable {
    cursor: pointer;
}

.clipboard_msg {
    display: none;
    position: absolute;
    color: var(--text-dark);
    font-style: italic;
}

.column_2 {
    columns: 2;
}

.float_right {
    float: right;
}

.float_left {
    float: left;
}

.flex {
    display: flex;
}

.full_width {
    width: 100%;
}

.half_width {
    width: 50%;
}

.hidden {
    position: absolute;
    z-index: -10;
    visibility: hidden;
}

.indent {
    text-indent: 10px;
}

.inline_block {
    display: inline-block;
}

.italic {
    font-style: italic;
}

.json_pre {
    word-break: break-all;
    max-width: 60vw;
    white-space: break-spaces;
}

.middle {
    vertical-align: middle;
}

.red_text {
    color: var(--text-raven);
}

.std_link {
    color: #1071e5 !important;
    font-style: italic;
}

.relative {
    position: relative;
}

.underline {
    text-decoration: underline;
}


/* ========================================================================== */
/* NAVIGATION                                                                 */
/* ========================================================================== */

.navigation {
    display: none;
    position: sticky;
    top: -1px;
    background-color: #333;
    color: white;
    padding: 10px;
}

.navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-around;
}

.navigation ul li a {
    display: block;
    padding: 20px;
    color: white;
    text-decoration: none;
}

.navigation ul li a:hover {
    background-color: #555;
}

#logo_nav {
    padding: 0;
    display: flex;
    height: 100%;
}

#logo_nav img {
    height: 25px;
    margin: auto;
}


/* ========================================================================== */
/* HERO / WELCOME                                                             */
/* ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    width: 100%;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 42%, rgba(79, 163, 255, 0.10), transparent 24%),
        linear-gradient(180deg, #000 0%, #03060d 40%, #000 100%);
    text-align: center;
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0)),
        radial-gradient(circle at center, rgba(255,255,255,0.03) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.hero_inner {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    width: 100%;
    display: grid;
    place-items: center;
    padding:
        calc(var(--hero_top_pad) + env(safe-area-inset-top, 0px))
        0
        calc(var(--hero_top_pad) + env(safe-area-inset-bottom, 0px));
}

.hero_brand_mark {
    position: absolute;
    width: var(--hero_logo_width);
    height: var(--hero_logo_height);
    background-image: url(/resources/images/ir_logo_t.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.98;
    filter:
        drop-shadow(0 10px 30px rgba(0,0,0,0.45))
        drop-shadow(0 0 24px rgba(79, 163, 255, 0.06));
    pointer-events: none;
}

#welcome {
    background-color: black;
}

.hero_nav_grid {
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    width: 100%;
    min-height: calc(100vh - var(--hero_top_pad) - var(--hero_top_pad));
    min-height: calc(100svh - var(--hero_top_pad) - var(--hero_top_pad) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    min-height: calc(100dvh - var(--hero_top_pad) - var(--hero_top_pad) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    display: grid;
    grid-template-columns: minmax(220px, var(--hero_panel_width)) 1fr minmax(220px, var(--hero_panel_width));
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
        "schedule . about"
        ". . ."
        "media . contact";
    align-items: start;
    justify-items: stretch;
    gap: var(--hero_gap);
    padding: clamp(10px, 2vw, 22px) 0;
}

.hero_link_group {
    display: contents;
}

.hero_button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--hero_panel_height);
    padding: 18px 22px;
    color: var(--hero_title_color);
    text-align: left;
    border-radius: 18px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%),
        rgba(8, 12, 20, 0.42);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow:
        0 12px 30px rgba(0,0,0,0.24),
        inset 0 1px 0 rgba(255,255,255,0.05);
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease;
}

.hero_button::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--rooster_blue_light), var(--rooster_blue));
    opacity: 0.92;
}

.hero_button::after {
    content: "";
    position: absolute;
    inset: auto -20% -50% auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79,163,255,0.10), transparent 65%);
    pointer-events: none;
}

.hero_button:hover,
.hero_button:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(79, 163, 255, 0.30);
    box-shadow:
        0 18px 38px rgba(0,0,0,0.32),
        inset 0 1px 0 rgba(255,255,255,0.06);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.03) 100%),
        rgba(8, 12, 20, 0.54);
}

.hero_button_label {
    display: block;
    font-family: var(--main-font);
    font-size: clamp(2.2rem, 4.2vw, 4.5rem);
    line-height: 0.92;
    letter-spacing: 0.01em;
    font-weight: 500;
    text-shadow: 0 2px 12px rgba(0,0,0,0.30);
}

.hero_button_schedule {
    grid-area: schedule;
    align-self: start;
    justify-self: start;
}

.hero_button_about {
    grid-area: about;
    align-self: start;
    justify-self: end;
}

.hero_button_media {
    grid-area: media;
    align-self: end;
    justify-self: start;
}

.hero_button_contact {
    grid-area: contact;
    align-self: end;
    justify-self: end;
}

.hero_button_about .hero_button_label,
.hero_button_contact .hero_button_label {
    text-align: right;
    margin-left: auto;
}

.hero_button_media,
.hero_button_contact {
    align-items: flex-end;
}


/* ========================================================================== */
/* CONTENT SECTIONS                                                           */
/* ========================================================================== */

.content {
    padding: 50px 10%;
    min-height: 95vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

/* ========================================================================== */
/* MODAL CONTROL                                                              */
/* ========================================================================== */

#dialog_container {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    z-index: 9000;
}

#dialog_content {
    width: 100%;
    box-sizing: border-box;
    padding: 28px;
    color: var(--rooster_white);
}

#dialog_content h1,
#dialog_content h2,
#dialog_content h3,
#dialog_content h4,
#dialog_content p {
    color: inherit;
}

#dialog_content h1,
#dialog_content h2,
#dialog_content h3 {
    margin-top: 0;
}

#dialog_content p {
    line-height: 1.45;
}

#dialog_content > .class_detail_card {
    margin: -28px;
    width: auto;
    max-width: none;
}

#dialog_content_container {
    position: relative;
    z-index: 1;
    width: min(92vw, 640px);
    max-height: 86vh;
    overflow-y: auto;
    color: var(--rooster_white);
    font-family: var(--main-font);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.04) 100%),
        rgba(15, 23, 42, 0.94);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 18px;
    box-shadow:
        0 28px 70px rgba(0,0,0,0.56),
        inset 0 1px 0 rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#dialog_exit {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.28);
    background: rgba(8, 15, 27, 0.72);
    color: var(--rooster_white);
    font-family: var(--main-font);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    box-shadow:
        0 8px 18px rgba(0,0,0,0.28),
        inset 0 1px 0 rgba(255,255,255,0.08);
}

#dialog_exit:hover,
#dialog_exit:focus-visible {
    border-color: rgba(79, 163, 255, 0.45);
    background: rgba(15, 23, 42, 0.92);
}

#dialog_overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at center, rgba(79, 163, 255, 0.08), transparent 42%),
        rgba(2, 8, 17, 0.78);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 0;
}

@media (max-width: 900px) {
    #dialog_content_container {
        width: 94vw;
        max-height: 88vh;
        border-radius: 14px;
    }

    #dialog_content {
        padding: 22px;
    }

    #dialog_content > .class_detail_card {
        margin: -22px;
    }

    #dialog_exit {
        top: 10px;
        right: 10px;
    }
}

#dialog_loading {
    height: 200px;
    width: 200px;
    background: url(/resources/images/ui/spinner.svg) no-repeat center;
    opacity: 0.7;
}


/* ========================================================================== */
/* CALENDAR SHELL                                                             */
/* ========================================================================== */

#calendar {
    position: relative;
    background:
        radial-gradient(circle at top, rgba(79, 163, 255, 0.10), transparent 35%),
        linear-gradient(180deg, #060b14 0%, #0b1220 100%);
    overflow: hidden;
}

#calendar_container {
    height: 85vh;
    width: 80vw;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.05) 100%),
        rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow:
        0 18px 50px rgba(0,0,0,0.45),
        inset 0 1px 0 rgba(255,255,255,0.10);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -48%);
    position: absolute;
    color: var(--rooster_white);
    border-radius: 18px;
    overflow: hidden;
}

#calendar a:-webkit-any-link {
    text-decoration: none !important;
    color: inherit !important;
}


/* ========================================================================== */
/* CLASS DETAIL CARD                                                          */
/* ========================================================================== */

.class_detail_card {
    position: relative;
    width: min(92vw, 540px);
    padding: 0;
    border-radius: 18px;
    overflow: hidden;
    color: var(--rooster_white);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.04) 100%),
        rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow:
        0 24px 60px rgba(0,0,0,0.42),
        inset 0 1px 0 rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.class_detail_card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: var(--rooster_blue);
}

.class_detail_card.beginner::before {
    background: var(--rooster_blue_light);
}

.class_detail_card.intermediate::before {
    background: var(--rooster_blue);
}

.class_detail_card.advanced::before {
    background: var(--rooster_blue_deep);
}

.class_detail_card.all_levels::before {
    background: var(--rooster_gray);
}

.class_detail_card.beginner {
    background:
        linear-gradient(180deg, rgba(79,163,255,0.16) 0%, rgba(79,163,255,0.05) 100%),
        rgba(15, 23, 42, 0.82);
}

.class_detail_card.intermediate {
    background:
        linear-gradient(180deg, rgba(47,109,179,0.18) 0%, rgba(47,109,179,0.06) 100%),
        rgba(15, 23, 42, 0.82);
}

.class_detail_card.advanced {
    background:
        linear-gradient(180deg, rgba(29,79,140,0.20) 0%, rgba(29,79,140,0.07) 100%),
        rgba(15, 23, 42, 0.84);
}

.class_detail_card.all_levels {
    background:
        linear-gradient(180deg, rgba(209,213,219,0.14) 0%, rgba(209,213,219,0.05) 100%),
        rgba(15, 23, 42, 0.80);
}

.class_detail_card_header {
    padding: 22px 24px 18px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 100%);
}

.class_detail_card_kicker {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rooster_blue_light);
    margin-bottom: 8px;
}

.class_detail_card.all_levels .class_detail_card_kicker {
    color: var(--rooster_gray);
}

.class_detail_card.advanced .class_detail_card_kicker {
    color: #7fb2ea;
}

.class_detail_card_title {
    margin: 0 0 10px 0;
    font-size: 1.6rem;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--rooster_white);
}

.class_detail_card_time_row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: rgba(248,250,252,0.82);
    font-weight: 600;
}

.class_detail_card_dot {
    opacity: 0.55;
}

.class_detail_card_body {
    padding: 20px 24px 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.class_detail_card_section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.class_detail_card_label {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(209,213,219,0.72);
}

.class_detail_card_value {
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--rooster_white);
}

.class_detail_card_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.class_detail_card_tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--rooster_white);
    background: rgba(79,163,255,0.14);
    border: 1px solid rgba(79,163,255,0.22);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.class_detail_card.all_levels .class_detail_card_tag {
    background: rgba(209,213,219,0.12);
    border-color: rgba(209,213,219,0.18);
}


/* ========================================================================== */
/* CONTACT                                                                    */
/* ========================================================================== */

#contact {
    background:
        linear-gradient(180deg, #000 0%, #05080f 100%);
    box-sizing: border-box;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    padding:
        calc(32px + env(safe-area-inset-top, 0px))
        16px
        calc(32px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
}

#contact_content {
    width: min(900px, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(18px, 4dvh, 32px);
}

#contact_header {
    margin: 0;
    color: var(--rooster_white);
    text-align: center;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
}

#contact_details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    color: var(--rooster_white);
}

.contact_detail_item {
    margin: 0;
}

.contact_label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(209, 213, 219, 0.72);
}

.contact_text_link {
    font-size: clamp(1.1rem, 5vw, 1.6rem);
    color: var(--rooster_white);
    text-decoration: none;
    overflow-wrap: anywhere;
}

#contact_address {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-style: normal;
    font-size: clamp(1rem, 4.4vw, 1.35rem);
    line-height: 1.25;
}

.contact_instagram_link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
}

#ig_logo {
    width: clamp(36px, 10vw, 44px);
    height: auto;
    object-fit: contain;
}

#map_embed {
    width: 100%;
    max-width: 900px;
    aspect-ratio: 4 / 3;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow:
        0 18px 40px rgba(0,0,0,0.42),
        inset 0 1px 0 rgba(255,255,255,0.06);
    background: #0b1220;
}

#map_embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}



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

@media (max-width: 900px) {
    .hero_brand_mark {
        position: relative;
        grid-row: 2;
        justify-self: center;
        width: min(82vw, 420px);
        height: clamp(205px, 34dvh, 300px);
        transform: none;
    }

    .hero_inner {
        grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr);
        padding:
            calc(clamp(20px, 4.5dvh, 42px) + env(safe-area-inset-top, 0px))
            0
            calc(clamp(28px, 6dvh, 58px) + env(safe-area-inset-bottom, 0px));
    }

    .hero_nav_grid {
        display: contents;
    }

    .hero_link_group {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: clamp(10px, 2.2dvh, 18px);
        min-width: 0;
        width: 100%;
        max-width: min(92vw, 520px);
        justify-self: center;
        text-align: center;
    }

    .hero_link_group_top {
        grid-row: 1;
        align-self: center;
    }

    .hero_link_group_bottom {
        grid-row: 3;
        align-self: center;
    }

    .hero_button,
    .hero_button_schedule,
    .hero_button_about,
    .hero_button_media,
    .hero_button_contact {
        justify-self: stretch;
        align-self: auto;
        min-height: auto;
        padding: 10px 14px;
        border-radius: 14px;
        background: transparent;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        pointer-events: auto;
        width: 100%;
        max-width: 100%;
    }

    .hero_button_schedule,
    .hero_button_about {
        grid-area: auto;
    }

    .hero_button_media,
    .hero_button_contact {
        grid-area: auto;
    }

    .hero_button::before,
    .hero_button::after {
        display: none;
    }

    .hero_button:hover,
    .hero_button:focus-visible {
        transform: none;
        border-color: transparent;
        box-shadow: none;
        background: transparent;
    }

    .hero_button_label {
        font-size: clamp(1.85rem, 7.6vw, 3.2rem);
        line-height: 0.95;
        color: rgba(255,255,255,0.90);
        text-shadow: 0 2px 10px rgba(0,0,0,0.35);
        text-align: center;
        white-space: nowrap;
    }

    .hero_button_schedule .hero_button_label,
    .hero_button_about .hero_button_label,
    .hero_button_media .hero_button_label,
    .hero_button_contact .hero_button_label {
        text-align: center;
        margin-left: 0;
    }


    #calendar {
        background:
            radial-gradient(circle at top, rgba(79, 163, 255, 0.14), transparent 35%),
            linear-gradient(180deg, #03060d 0%, #0a1220 100%);
    }

    .class_detail_card {
        width: min(94vw, 540px);
        border-radius: 14px;
    }

    .class_detail_card_header {
        padding: 18px 18px 16px 22px;
    }

    .class_detail_card_body {
        padding: 18px 18px 20px 22px;
    }

    .class_detail_card_title {
        font-size: 1.35rem;
    }

    .class_detail_card_time_row {
        font-size: 0.9rem;
    }

    .class_detail_card_value {
        font-size: 0.95rem;
    }

    #contact {
        padding: 32px 16px;
    }

    #contact_content {
        gap: 18px;
    }

    #map_embed {
        aspect-ratio: 4 / 5;
        border-radius: 14px;
    }
}

@media (max-width: 600px) {
    .navigation ul {
        flex-direction: column;
    }

    .parallax {
        background-attachment: scroll;
    }

    .hero,
    .content {
        min-height: 100vh;
        min-height: 100svh;
        min-height: 100dvh;
    }

    .hero_inner,
    .hero_nav_grid {
        min-height: 100vh;
        min-height: 100svh;
        min-height: 100dvh;
    }

    .hero_nav_grid {
        min-height: 0;
    }

    .hero_brand_mark {
        width: min(82vw, 360px);
        height: clamp(185px, 38dvh, 270px);
    }

    .hero_button_label {
        font-size: clamp(1.55rem, 8vw, 2.65rem);
    }

      #contact_header {
        font-size: clamp(1.7rem, 8vw, 2.4rem);
    }

    #map_embed {
        aspect-ratio: 1 / 1.1;
    }
}

@media (max-width: 600px) and (max-height: 720px) {
    .hero_inner {
        padding-top: calc(6px + env(safe-area-inset-top, 0px));
        padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    }

    .hero_brand_mark {
        width: min(76vw, 320px);
        height: clamp(155px, 33dvh, 220px);
    }

    .hero_link_group {
        gap: clamp(7px, 1.5dvh, 12px);
    }

    .hero_button_label {
        font-size: clamp(1.42rem, 7.5vw, 2.25rem);
    }
}

/* ========================================================================== */
/* CALENDAR CARD VIEW                                                         */
/* ========================================================================== */
#calendar_container {
    position: absolute;
    inset: calc(50% + env(safe-area-inset-top, 0px) / 2 - env(safe-area-inset-bottom, 0px) / 2) auto auto 50%;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
    width: min(1040px, 92vw);
    height: auto;
    max-height: calc(88vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    max-height: calc(88dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    padding: 0;
    border: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.calendar_text_layout,
.calendar_schedule_panel {
    min-height: 0;
}

.calendar_text_layout {
    display: flex;
    flex-direction: column;
    gap: clamp(1.2rem, 2.6vw, 1.8rem);
}

.calendar_schedule_panel {
    display: flex;
    flex-direction: column;
    gap: clamp(.75rem, 1.5vw, 1.05rem);
    max-height: 100%;
    overflow: auto;
}

.calendar_card {
    padding: clamp(.85rem, 2vw, 1.25rem);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 18px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.05) 100%),
        rgba(15, 23, 42, 0.72);
    box-shadow:
        0 18px 50px rgba(0,0,0,0.45),
        inset 0 1px 0 rgba(255,255,255,0.10);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.calendar_intro {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: .35rem .9rem;
}

.calendar_title {
    margin: 0;
    font-size: clamp(1.45rem, 3vw, 2.15rem);
    line-height: 1;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.calendar_subtitle {
    margin: 0;
    color: rgba(248,250,252,.78);
    font-size: clamp(.78rem, 1.4vw, .95rem);
    line-height: 1.25;
}

.calendar_schedule_compact {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(.45rem, 1vw, .7rem);
}

.compact_day_card {
    position: relative;
    min-width: 0;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.075) 0%, rgba(255,255,255,.028) 100%),
        rgba(8, 15, 27, .64);
    box-shadow:
        0 10px 24px rgba(0,0,0,.2),
        inset 0 1px 0 rgba(255,255,255,.06);
}

.compact_day_card {
    padding: clamp(.5rem, 1vw, .72rem);
}

.compact_day_card_featured {
    background:
        linear-gradient(180deg, rgba(79, 163, 255, .11) 0%, rgba(79, 163, 255, .035) 100%),
        rgba(8, 15, 27, .66);
}

.compact_day_heading,
.calendar_section_title {
    margin: 0;
    color: rgba(248,250,252,.94);
    line-height: 1;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.compact_day_heading {
    margin-bottom: .42rem;
    font-size: clamp(.72rem, 1.2vw, .86rem);
}

.compact_class_grid {
    display: grid;
    gap: .24rem;
}

.compact_class_row {
    display: grid;
    grid-template-columns: 3.45rem minmax(0, 1fr);
    gap: .35rem;
    min-width: 0;
    align-items: baseline;
    font-size: clamp(.72rem, 1vw, .84rem);
    line-height: 1.08;
}

.compact_class_row span:first-child {
    color: rgba(248,250,252,.78);
    font-weight: 700;
    white-space: nowrap;
}

.compact_class_row span:last-child {
    overflow: hidden;
    color: rgba(248,250,252,.86);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact_class_row_beginner span:last-child { color: rgba(129,189,255,.94); }
.compact_class_row_advanced span:last-child { color: rgba(102,161,224,.94); }
.compact_class_row_all span:last-child { color: rgba(222,226,236,.92); }
.compact_class_row_closed span:last-child,
.compact_class_row_closed span:first-child { color: rgba(248,250,252,.58); }

.calendar_events {
    display: block;
    padding: 0;
    text-align: center;
}

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

.calendar_events p {
    margin: .45rem 0 0;
    color: rgba(248,250,252,.76);
    font-size: clamp(.8rem, 1.2vw, .92rem);
    line-height: 1.2;
}

@media (max-width: 980px) {
    .calendar_schedule_compact {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    #calendar_container {
        inset: calc(env(safe-area-inset-top, 0px) + .7rem) auto auto 50%;
        transform: translateX(-50%);
        width: 95vw;
        max-height: calc(96vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
        max-height: calc(96dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
        padding: 0 0 env(safe-area-inset-bottom, 0px);
    }
    .calendar_card {
        padding: .68rem;
        border-radius: 14px;
    }
    .calendar_schedule_panel {
        gap: .58rem;
    }
    .calendar_text_layout {
        gap: .9rem;
    }
    .calendar_intro {
        display: block;
    }
    .calendar_title {
        font-size: clamp(1.28rem, 6.2vw, 1.6rem);
        line-height: .96;
    }
    .calendar_subtitle {
        margin-top: .18rem;
        font-size: .76rem;
    }
    .calendar_schedule_compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .35rem;
    }
    .compact_day_card_sunday { grid-column: 1; grid-row: 1; }
    .compact_day_card_monday { grid-column: 1; grid-row: 2; }
    .compact_day_card_tuesday { grid-column: 1; grid-row: 3; }
    .compact_day_card_wednesday { grid-column: 2; grid-row: 1; }
    .compact_day_card_thursday { grid-column: 2; grid-row: 2; }
    .compact_day_card_friday { grid-column: 2; grid-row: 3; }
    .compact_day_card_saturday { grid-column: 2; grid-row: 4; }
    .compact_day_card {
        padding: .42rem .46rem;
    }
    .compact_day_heading {
        margin-bottom: .25rem;
        font-size: .7rem;
    }
    .compact_class_grid {
        gap: .18rem;
    }
    .compact_class_row {
        grid-template-columns: 3.15rem minmax(0, 1fr);
        gap: .26rem;
        font-size: .69rem;
    }
    .calendar_events {
        padding: 0 .05rem;
    }
    .calendar_section_title {
        font-size: .78rem;
    }
    .calendar_events p {
        margin-top: .18rem;
        font-size: .72rem;
    }
}

@media (max-width: 390px) {
    #calendar_container {
        padding: 0 0 env(safe-area-inset-bottom, 0px);
    }
    .calendar_card {
        padding: .55rem;
    }
    .calendar_schedule_panel {
        gap: .42rem;
    }
    .calendar_text_layout {
        gap: .72rem;
    }
    .calendar_subtitle {
        display: none;
    }
    .calendar_schedule_compact {
        gap: .28rem;
    }
    .compact_day_card {
        padding: .34rem .38rem;
    }
    .compact_day_heading {
        margin-bottom: .18rem;
        font-size: .66rem;
    }
    .compact_class_row {
        grid-template-columns: 2.85rem minmax(0, 1fr);
        gap: .2rem;
        font-size: .64rem;
    }
}
