
/* =========================================
   CLAVE DANCE SCHOOL
   COMPLETE WEBSITE STYLESHEET
   ========================================= */

:root {
    --text: #f6f0ee;
    --muted: #c9b5b1;
    --muted-2: #a88f8d;

    --panel: rgba(22, 10, 14, 0.68);
    --panel-strong: rgba(17, 8, 12, 0.82);

    --line: rgba(255, 218, 215, 0.12);

    --accent: #d5524a;
    --accent-soft: #ea7a6f;
    --accent-deep: #8e262d;

    --cream: #f3e2dc;

    --shadow:
        0 28px 90px rgba(0, 0, 0, 0.42);

    --nav-closed: 72px;
    --nav-open: 238px;

    --nav-speed: 0.42s;
}

/* =========================================
   RESET
   ========================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--text);

    min-height: 100vh;

    overflow-x: hidden;

    background:
        radial-gradient(
            circle at 82% 18%,
            rgba(213, 82, 74, 0.18),
            transparent 26%
        ),
        radial-gradient(
            circle at 78% 74%,
            rgba(179, 52, 72, 0.20),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #10070b 0%,
            #1a0b11 44%,
            #231217 100%
        );
}

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

button {
    cursor: pointer;
}

a {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #ffc8a3;
    outline-offset: 4px;
}

/* =========================================
   MAIN WEBSITE LAYOUT
   ========================================= */

.site-shell {
    display: block;
    min-height: 100vh;
}

.page-main {
    min-width: 0;

    margin-left: var(--nav-closed);

    width: calc(100% - var(--nav-closed));
}

/* =========================================
   COLLAPSIBLE SIDE MENU
   ========================================= */

.side-nav {
    position: fixed;

    top: 0;
    left: 0;
    bottom: 0;

    z-index: 1000;

    width: var(--nav-closed);
    height: 100dvh;

    padding: 24px 12px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: space-between;

    overflow: hidden;

    background: rgba(13, 5, 9, 0.94);

    backdrop-filter: blur(24px);

    border-right:
        1px solid rgba(255, 218, 215, 0.12);

    box-shadow:
        12px 0 42px rgba(0, 0, 0, 0.18);

    transition:
        width var(--nav-speed)
        cubic-bezier(.22, 1, .36, 1),
        background var(--nav-speed) ease;
}

/* OPEN MENU */

.side-nav:hover,
.side-nav:focus-within,
.side-nav.is-open {
    width: var(--nav-open);

    background: rgba(22, 9, 15, 0.97);
}

/* =========================================
   HAMBURGER BUTTON
   ========================================= */

.menu-toggle {
    width: 46px;
    height: 46px;

    flex-shrink: 0;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 6px;

    border:
        1px solid rgba(234, 122, 111, 0.28);

    border-radius: 14px;

    background:
        rgba(213, 82, 74, 0.07);

    color: var(--text);

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.menu-toggle:hover {
    background:
        rgba(213, 82, 74, 0.16);

    border-color:
        rgba(234, 122, 111, 0.65);
}

.hamburger-line {
    display: block;

    width: 20px;
    height: 2px;

    background: #e9ad92;

    border-radius: 10px;

    transition:
        transform 0.35s ease,
        opacity 0.25s ease;
}

/* OPEN ICON: THREE LINES BECOME X */

.side-nav.is-open
.hamburger-line:nth-child(1) {
    transform:
        translateY(8px) rotate(45deg);
}

.side-nav.is-open
.hamburger-line:nth-child(2) {
    opacity: 0;
}

.side-nav.is-open
.hamburger-line:nth-child(3) {
    transform:
        translateY(-8px) rotate(-45deg);
}

/* =========================================
   MENU LOGO
   ========================================= */

.side-nav .brand {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;

    flex-shrink: 0;

    text-decoration: none;

    opacity: 0;

    visibility: hidden;

    transform: translateX(-12px);

    pointer-events: none;

    transition:
        opacity 0.3s ease,
        transform 0.4s ease,
        visibility 0.3s ease;
}

.side-nav:hover .brand,
.side-nav:focus-within .brand,
.side-nav.is-open .brand {
    opacity: 1;

    visibility: visible;

    transform: translateX(0);

    pointer-events: auto;
}

.brand-logo-image {
    width: 116px;
    height: 116px;

    object-fit: cover;

    object-position: center;

    display: block;

    border-radius: 24px;

    box-shadow:
        0 14px 38px rgba(0, 0, 0, 0.34);
}

/* =========================================
   MENU LINKS
   ========================================= */

.side-nav .nav-links {
    display: flex;

    flex-direction: column;

    align-items: stretch;

    width: 100%;

    gap: 12px;

    opacity: 0;

    visibility: hidden;

    transform: translateX(-14px);

    pointer-events: none;

    transition:
        opacity 0.3s ease,
        transform 0.4s ease,
        visibility 0.3s ease;
}

.side-nav:hover .nav-links,
.side-nav:focus-within .nav-links,
.side-nav.is-open .nav-links {
    opacity: 1;

    visibility: visible;

    transform: translateX(0);

    pointer-events: auto;
}

.side-nav .nav-links a {
    display: block;

    padding: 17px 15px;

    border-radius: 12px;

    text-decoration: none;

    text-transform: uppercase;

    text-align: left;

    white-space: nowrap;

    color:
        rgba(255, 236, 231, 0.75);

    font-size: 11px;

    letter-spacing: 0.12em;

    transition:
        color 0.25s ease,
        background 0.25s ease;
}

.side-nav .nav-links a:hover,
.side-nav .nav-links a.active {
    color: #ffb29b;

    background:
        rgba(213, 82, 74, 0.12);
}

.side-nav .nav-links a.active {
    border-left:
        2px solid var(--accent-soft);
}


/* =========================================
   BOTTOM OF SIDE MENU Ã¢â‚¬â€ REMOVED
   ========================================= */

.nav-bottom,
.nav-bottom-line,
.nav-bottom-text,
.side-nav .social-dot {
    display: none !important;
}

/* =========================================
   GENERAL SECTIONS
   ========================================= */

section {
    position: relative;

    min-height: 100vh;

    padding:
        64px clamp(28px, 6vw, 92px);
}

/* =========================================
   TYPOGRAPHY
   ========================================= */

h1,
h2 {
    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-weight: 500;

    line-height: 0.92;

    letter-spacing: -0.055em;

    color: #fff5f2;
}

h1 {
    font-size:
        clamp(72px, 10vw, 158px);

    max-width: 820px;
}

h2 {
    font-size:
        clamp(50px, 7vw, 104px);

    margin-bottom: 24px;
}

h1 em,
h2 em {
    color: #eaa38e;

    font-weight: 400;
}

.eyebrow {
    display: inline-flex;

    align-items: center;

    gap: 14px;

    color: var(--accent-soft);

    text-transform: uppercase;

    letter-spacing: 0.34em;

    font-size: 12px;

    margin-bottom: 26px;
}

.eyebrow::before {
    content: "";

    width: 34px;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            rgba(250, 206, 184, 0.7),
            rgba(213, 82, 74, 0.92)
        );
}

.section-copy {
    color: var(--muted);

    font-size:
        clamp(17px, 1.55vw, 22px);

    line-height: 1.7;

    max-width: 640px;

    margin-top: 28px;
}

/* =========================================
   BUTTONS
   ========================================= */

.button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    border:
        1px solid rgba(255, 236, 231, 0.18);

    color: var(--text);

    text-decoration: none;

    padding: 15px 22px;

    border-radius: 999px;

    letter-spacing: 0.08em;

    text-transform: uppercase;

    font-size: 12px;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}

.button.primary {
    background:
        linear-gradient(
            135deg,
            var(--accent-soft),
            var(--accent)
        );

    border-color: transparent;

    color: #12080a;

    font-weight: 800;

    box-shadow:
        0 18px 42px rgba(213, 82, 74, 0.20);
}

.button:hover {
    transform: translateY(-3px);

    border-color:
        rgba(234, 122, 111, 0.65);
}

.button.primary:hover {
    background:
        linear-gradient(
            135deg,
            #f39b8a,
            #e66559
        );
}

.button.outline {
    margin-top: 30px;
}

/* =========================================
   HERO SECTION
   ========================================= */

.hero {
    min-height: 100vh;

    display: grid;

    align-items: center;

    overflow: hidden;

    padding-top: 70px;
    padding-bottom: 70px;

    background-image:
        linear-gradient(
            90deg,
            rgba(9, 4, 7, 0.82),
            rgba(12, 6, 9, 0.28),
            rgba(19, 8, 12, 0.55)
        ),
        url("hero-background.png");

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;
}

.hero::before {
    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            110deg,
            transparent 12%,
            rgba(255,255,255,.12) 18%,
            transparent 26%
        ),
        linear-gradient(
            180deg,
            transparent 56%,
            rgba(7,4,6,.34)
        );

    opacity: 0.60;

    animation:
        lightMove 8s ease-in-out infinite alternate;
}

.hero::after {
    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    background-image:
        linear-gradient(
            90deg,
            rgba(255,255,255,.028) 1px,
            transparent 1px
        ),
        linear-gradient(
            0deg,
            rgba(255,255,255,.025) 1px,
            transparent 1px
        );

    background-size: 82px 82px;

    opacity: 0.26;
}

.hero-copy {
    position: relative;

    z-index: 2;

    max-width: 760px;
}

.hero p {
    color: var(--muted);

    font-size:
        clamp(17px, 1.55vw, 22px);

    line-height: 1.7;

    max-width: 640px;

    margin-top: 28px;
}

.hero-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 26px;

    align-items: center;

    margin-top: 38px;
}

.text-link {
    text-decoration: none;

    color: var(--cream);

    border-bottom:
        1px solid #bd7f71;

    padding-bottom: 8px;

    font-size: 13px;

    letter-spacing: 0.09em;

    text-transform: uppercase;
}

.hero-session {
    position: absolute;

    z-index: 2;

    right: clamp(34px, 7vw, 110px);

    bottom: 12%;

    text-align: right;
}

.hero-session span {
    display: block;

    color:
        rgba(255,236,231,.75);

    text-transform: uppercase;

    letter-spacing: 0.22em;

    font-size: 13px;

    margin-bottom: 10px;
}

.hero-session strong {
    display: block;

    color: #fff8f6;

    font-size:
        clamp(64px, 9vw, 136px);

    line-height: 0.82;

    letter-spacing: -0.06em;
}

.scroll-cue {
    position: absolute;

    bottom: 36px;

    left: clamp(28px, 6vw, 92px);

    z-index: 3;

    color: var(--cream);

    text-decoration: none;

    text-transform: uppercase;

    letter-spacing: 0.18em;

    font-size: 10px;

    display: flex;

    gap: 14px;
}

@keyframes lightMove {
    from {
        transform:
            translateX(-4%) rotate(-1deg);
    }

    to {
        transform:
            translateX(5%) rotate(2deg);
    }
}

/* =========================================
   ABOUT US
   ========================================= */

.about-home {
    min-height: min(860px, 100vh);

    display: grid;

    grid-template-columns:
        minmax(260px, 0.95fr)
        minmax(300px, 1fr);

    gap: clamp(38px, 7vw, 110px);

    align-items: center;
}

.about-art {
    position: relative;

    height: min(640px, 68vh);

    min-height: 360px;

    border-radius:
        180px 180px 12px 12px;

    background:
        radial-gradient(
            circle at 55% 26%,
            #943d40 0%,
            #4e1724 38%,
            #18090e 72%
        );

    overflow: hidden;

    border:
        1px solid rgba(246,196,166,.22);

    box-shadow: var(--shadow);
}

.about-art-image {
    position: absolute;

    inset: 4% 4% 0;

    background:
        url("hero-background.png")
        center / cover no-repeat;

    mix-blend-mode: screen;

    opacity: 0.72;
}

.about-art-ring {
    position: absolute;

    inset: 12% 8%;

    border:
        1px solid rgba(255,226,189,.55);

    border-radius: 50%;

    transform:
        rotate(-24deg) scaleX(.9);
}

.about-art-caption {
    position: absolute;

    bottom: 23px;
    left: 28px;

    font-size: 11px;

    letter-spacing: 0.23em;

    color: #f6d9cc;
}

.about-art-caption i {
    color: var(--accent-soft);
}

.about-content .section-copy {
    font-size:
        clamp(16px, 1.3vw, 19px);

    margin-top: 19px;
}

/* =========================================
   ANIMATED GALLERY
   ========================================= */

.moments-section {
    padding-top: 110px;

    padding-bottom: 68px;

    background:
        radial-gradient(
            circle at 75% 38%,
            rgba(168,42,56,.20),
            transparent 46%
        ),
        #16090f;
}

.moments-heading {
    display: flex;

    justify-content: space-between;

    gap: 35px;

    align-items: flex-end;

    margin-bottom: 44px;
}

.moments-heading p {
    max-width: 320px;

    color: var(--muted);

    line-height: 1.7;

    font-size: 17px;
}

.moments-stage {
    display: grid;

    grid-template-columns:
        minmax(0, 1.7fr)
        minmax(210px, 0.7fr);

    gap: 16px;

    height: min(590px, 62vw);

    min-height: 420px;
}

.moment-feature {
    position: relative;

    border-radius: 18px;

    overflow: hidden;

    isolation: isolate;

    background: #38151d;
}

.moment-media {
    position: absolute;

    inset: 0;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 68% 30%,
            #ad584e,
            #4d1a27 44%,
            #16070e 83%
        );

    animation:
        galleryAppear 0.6s ease;
}

.moment-media img,
.moment-media video {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.moment-theme-1 {
    background:
        radial-gradient(
            circle at 28% 38%,
            #b97f74,
            #712d3d 42%,
            #1a0a12 87%
        );
}

.moment-theme-2 {
    background:
        radial-gradient(
            circle at 76% 65%,
            #bb7861,
            #6e2436 39%,
            #16080e 82%
        );
}

.moment-theme-3 {
    background:
        radial-gradient(
            circle at 30% 70%,
            #a44f54,
            #57222a 42%,
            #18070d 88%
        );
}

.moment-fallback {
    position: absolute;

    inset: 0;

    display: grid;

    place-items: center;

    overflow: hidden;
}

.moment-fallback::after {
    content: "";

    position: absolute;

    width: 70%;

    aspect-ratio: 1;

    border:
        1px solid rgba(255,215,180,.27);

    border-radius: 50%;

    transform:
        rotate(-25deg) scaleX(.72);

    animation:
        orbit 12s linear infinite;
}

.moment-fallback-mark {
    font:
        italic clamp(180px,29vw,440px)/1
        Georgia,
        serif;

    color:
        rgba(255,218,197,.10);

    transform: rotate(-12deg);
}

.moment-fallback-word {
    position: absolute;

    top: 26px;
    left: 28px;

    font-size: 10px;

    letter-spacing: 0.3em;

    color:
        rgba(255,228,212,.65);
}

.moment-feature-shade {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            transparent 40%,
            rgba(10,4,9,.87)
        );

    pointer-events: none;
}

.moment-feature-info {
    position: absolute;

    bottom: 38px;

    left: clamp(24px,4vw,56px);

    right: 80px;
}

.moment-kicker {
    color: #ffc3a5;

    font-size: 11px;

    letter-spacing: 0.21em;
}

.moment-feature-info h3 {
    font:
        normal clamp(35px,4vw,68px)/1.08
        Georgia,
        serif;

    margin: 12px 0;
}

.moment-feature-info p {
    color: #e0c8c1;

    font-size: 15px;
}

.moment-counter {
    position: absolute;

    bottom: 38px;
    right: 28px;

    display: flex;

    align-items: center;

    gap: 9px;

    font-size: 12px;
}

.moment-counter-line {
    width: 32px;
    height: 1px;

    background: #e0aea0;
}

/* GALLERY SELECTION TILES */

.moment-rail {
    display: grid;

    grid-template-rows:
        repeat(4, 1fr);

    gap: 14px;
}

.moment-tile {
    text-align: left;

    position: relative;

    overflow: hidden;

    border-radius: 15px;

    padding: 22px;

    border:
        1px solid rgba(255,228,204,.13);

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(209,93,76,.17),
            transparent 55%
        ),
        #291018;

    color: #f4e2dd;

    transition:
        background 0.3s,
        border-color 0.3s,
        transform 0.3s;
}

.moment-tile:hover,
.moment-tile.is-active {
    background:
        linear-gradient(
            125deg,
            rgba(174,68,69,.40),
            rgba(50,18,27,.94)
        );

    border-color:
        rgba(242,164,138,.55);
}

.moment-tile.is-active::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    bottom: 0;

    width: 3px;

    background: #f6a58e;
}

.tile-number {
    display: block;

    color: #eba98f;

    font-size: 10px;

    letter-spacing: 0.2em;

    margin-bottom: 14px;
}

.tile-title {
    font:
        normal clamp(20px,2vw,31px)
        Georgia,
        serif;
}

.tile-arrow {
    position: absolute;

    right: 22px;
    bottom: 20px;

    color: #f3bba6;
}

/* GALLERY BOTTOM CONTROLS */

.moments-bottom {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 22px;

    margin-top: 20px;

    color: var(--muted-2);

    font-size: 12px;
}

.gallery-controls {
    display: flex;

    gap: 10px;

    align-items: center;
}

.gallery-controls button {
    min-width: 43px;
    height: 43px;

    border:
        1px solid rgba(248,213,194,.25);

    border-radius: 40px;

    background: transparent;

    color: var(--cream);

    padding: 0 12px;
}

.gallery-controls button:hover {
    background:
        rgba(213,82,74,.18);
}

.gallery-controls [data-gallery-toggle] {
    font-size: 11px;

    letter-spacing: 0.06em;
}

@keyframes galleryAppear {
    from {
        opacity: 0.45;
        transform: scale(1.04);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes orbit {
    to {
        transform:
            rotate(335deg) scaleX(.72);
    }
}

/* =========================================
   GLASS PANELS
   ========================================= */

.glass {
    background:
        linear-gradient(
            180deg,
            rgba(26,12,17,.76),
            rgba(15,7,11,.74)
        );

    border:
        1px solid var(--line);

    border-radius: 32px;

    padding:
        clamp(26px,4vw,48px);

    box-shadow: var(--shadow);

    backdrop-filter: blur(18px);
}

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

#contact {
    display: grid;

    align-items: center;

    min-height:
        calc(100vh - 80px);
}

.contact-card {
    max-width: 920px;

    width: 100%;

    margin-inline: auto;

    text-align: center;
}

.contact-card h2 {
    max-width: 860px;

    margin-inline: auto;
}

.contact-card .section-copy {
    margin-inline: auto;
}

.contact-form {
    margin-top: 34px;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 14px;
}

.contact-form textarea {
    grid-column: 1 / -1;

    min-height: 130px;

    resize: vertical;
}

.contact-form button {
    grid-column: 1 / -1;

    justify-self: center;

    border: none;
}

.thanks-message {
    display: none;

    margin-top: 20px;

    color: #ff9b7d;
}

/* =========================================
   FOOTER
   ========================================= */

.site-footer {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    padding:
        26px clamp(28px,6vw,92px) 34px;

    border-top:
        1px solid var(--line);

    color: var(--muted-2);

    font-size: 12px;
}

.site-footer a {
    color: #f2b5a3;

    text-decoration: none;
}

/* =========================================
   SCROLL REVEAL
   ========================================= */

/* Content remains visible if JavaScript fails. */

.js .reveal {
    opacity: 0;

    transform: translateY(28px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.js .reveal.visible {
    opacity: 1;

    transform: translateY(0);
}

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

@media (max-width: 920px) {

    .page-main {
        margin-left: 0;

        width: 100%;
    }

    /* Closed state: compact floating menu button */

    .side-nav {
        top: 14px;
        left: 14px;
        bottom: auto;

        width: 60px;
        height: 60px;

        padding: 7px;

        border:
            1px solid rgba(255,218,215,.16);

        border-radius: 18px;

        align-items: flex-start;

        justify-content: flex-start;

        box-shadow:
            0 14px 40px rgba(0,0,0,.3);

        transition:
            width 0.35s ease,
            height 0.35s ease,
            border-radius 0.35s ease;
    }

    /* Hover does not open the menu on mobile */

    .side-nav:hover {
        width: 60px;
        height: 60px;
    }

    /* Expanded mobile menu */

    .side-nav.is-open,
    .side-nav.is-open:hover {
        width: min(300px, calc(100vw - 28px));

        height: calc(100dvh - 28px);

        border-radius: 24px;

        padding: 13px;

        justify-content: space-between;
    }

    .menu-toggle {
        width: 44px;
        height: 44px;
    }

    .side-nav .brand,
    .side-nav .nav-links {
        opacity: 0;

        visibility: hidden;

        pointer-events: none;
    }

    .side-nav.is-open .brand,
    .side-nav.is-open .nav-links {
        opacity: 1;

        visibility: visible;

        transform: none;

        pointer-events: auto;
    }

    .side-nav .brand-logo-image {
        display: block;

        width: 104px;
        height: 104px;
    }

    .side-nav .nav-links {
        flex-direction: column;

        align-items: stretch;
    }

    .side-nav .nav-links a {
        font-size: 12px;

        writing-mode: horizontal-tb;

        transform: none;
    }

    .nav-bottom {
        display: none;
    }

    section {
        padding:
            80px 22px 70px;
    }

    /* Hero */

    .hero {
        padding-top: 110px;
    }

    .hero-session {
        position: relative;

        right: auto;
        bottom: auto;

        text-align: left;

        margin-top: 40px;
    }

    .scroll-cue {
        display: none;
    }

    /* About */

    .about-home {
        grid-template-columns: 1fr;

        min-height: auto;

        gap: 48px;
    }

    .about-art {
        height: 460px;

        min-height: 0;

        max-width: 520px;

        width: 100%;
    }

    /* Gallery */

    .moments-heading {
        align-items: flex-start;

        flex-direction: column;
    }

    .moments-stage {
        height: auto;

        grid-template-columns: 1fr;

        min-height: 0;
    }

    .moment-feature {
        min-height: 480px;
    }

    .moment-rail {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));

        grid-template-rows: none;

        gap: 8px;
    }

    .moment-tile {
        min-height: 116px;

        padding: 15px 10px;
    }

    .tile-title {
        font-size: 16px;
    }

    .tile-arrow {
        right: 10px;
        bottom: 10px;
    }

    /* Forms */

    .contact-form {
        grid-template-columns: 1fr;
    }

    .contact-form textarea,
    .contact-form button {
        grid-column: 1;
    }

    .site-footer {
        padding-bottom: 45px;
    }
}

/* =========================================
   SMALL MOBILE
   ========================================= */

@media (max-width: 560px) {

    .hero h1 {
        font-size:
            clamp(58px, 15vw, 82px);
    }

    .hero-actions {
        gap: 20px;
    }

    .hero-session strong {
        font-size: 64px;
    }

    .about-art {
        height: 380px;
    }

    .moment-feature {
        min-height: 430px;
    }

    .moment-feature-info {
        bottom: 35px;
        right: 20px;
    }

    .moment-feature-info h3 {
        font-size: 38px;
    }

    .moment-counter {
        bottom: 12px;
        right: 15px;
    }

    .moment-rail {
        grid-template-columns: 1fr 1fr;
    }

    .moment-tile {
        min-height: 96px;
    }

    .moments-bottom {
        flex-direction: column;

        align-items: flex-start;
    }

    .site-footer {
        font-size: 10px;
    }
}

/* =========================================
   REDUCED MOTION
   ========================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .js .reveal {
        opacity: 1;

        transform: none;

        transition: none;
    }

    .hero::before,
    .moment-fallback::after {
        animation: none;
    }

    .side-nav,
    .moment-media {
        transition: none;

        animation: none;
    }
}

/* =========================================
   CLAVE Ã¢â‚¬â€ FINAL SIDE MENU LAYOUT FIX
   ========================================= */

/* DESKTOP */

@media (min-width: 921px) {

    /* Sidebar layout */

    .side-nav {
        position: fixed;

        display: flex;
        flex-direction: column;

        align-items: center;
        justify-content: flex-start;

        padding: 24px 12px;

        overflow: hidden;
    }

    /* Three stripes in the closed menu */

    .side-nav .menu-toggle {
        position: absolute;

        top: 24px;
        left: 12px;

        width: 46px;
        height: 46px;

        opacity: 1;
        visibility: visible;

        pointer-events: auto;

        transition:
            opacity 0.2s ease,
            visibility 0.2s ease;
    }

    /* Hide three stripes when menu opens */

    .side-nav:hover .menu-toggle,
    .side-nav:focus-within .menu-toggle,
    .side-nav.is-open .menu-toggle {
        opacity: 0 !important;

        visibility: hidden !important;

        pointer-events: none !important;
    }

    /* Logo at the top of the expanded menu */

    .side-nav .brand {
        position: absolute;

        top: 55px;
        left: 0;

        width: 100%;

        display: flex;

        align-items: center;
        justify-content: center;

        margin: 0;

        opacity: 0;
        visibility: hidden;

        transform: translateX(-12px);

        pointer-events: none;
    }

    .side-nav:hover .brand,
    .side-nav:focus-within .brand,
    .side-nav.is-open .brand {
        opacity: 1;

        visibility: visible;

        transform: translateX(0);

        pointer-events: auto;
    }

    .side-nav .brand-logo-image {
        width: 116px;
        height: 116px;

        object-fit: cover;

        border-radius: 24px;
    }

    /* Navigation centered vertically */

    .side-nav .nav-links {
        position: absolute;

        top: 50%;
        left: 12px;

        transform: translateY(-50%) translateX(-14px);

        width: calc(100% - 24px);

        display: flex;
        flex-direction: column;

        align-items: stretch;
        justify-content: center;

        gap: 14px;

        margin: 0;

        opacity: 0;
        visibility: hidden;

        pointer-events: none;

        transition:
            opacity 0.3s ease,
            visibility 0.3s ease;
    }

    .side-nav:hover .nav-links,
    .side-nav:focus-within .nav-links,
    .side-nav.is-open .nav-links {
        opacity: 1;

        visibility: visible;

        transform: translateY(-50%);

        pointer-events: auto;
    }

    /* Navigation link styling */

    .side-nav .nav-links a {
        display: flex;

        align-items: center;

        min-height: 52px;

        padding: 14px 16px;

        border-radius: 12px;

        text-align: left;

        white-space: nowrap;
    }

}

/* Remove the vertical text, decorative line
   and bottom red dot completely */

.nav-bottom,
.nav-bottom-text,
.nav-bottom-line,
.side-nav .social-dot {
    display: none !important;
}

/* =========================================
   MOBILE Ã¢â‚¬â€ KEEP HAMBURGER / X FUNCTIONAL
   ========================================= */

@media (max-width: 920px) {

    /* Closed mobile menu */

    .side-nav {
        justify-content: flex-start;
    }

    /* Keep hamburger visible on mobile */

    .side-nav .menu-toggle,
    .side-nav.is-open .menu-toggle {
        position: relative;

        top: auto;
        left: auto;

        opacity: 1 !important;

        visibility: visible !important;

        pointer-events: auto !important;
    }

    /* Position logo near the top */

    .side-nav.is-open .brand {
        position: relative;

        margin-top: 25px;

        width: 100%;

        display: flex;

        justify-content: center;
    }

    /* Center navigation links */

    .side-nav.is-open .nav-links {
        position: absolute;

        top: 50%;
        left: 13px;

        width: calc(100% - 26px);

        margin: 0;

        transform: translateY(-50%);

        display: flex;
        flex-direction: column;

        gap: 14px;
    }

    /* Three lines change into X */

    .side-nav.is-open
    .hamburger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .side-nav.is-open
    .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .side-nav.is-open
    .hamburger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

}

/* =========================================
   EVENTS Ã¢â‚¬â€ uses existing Clave color tokens
   ========================================= */
.events-section,.event-detail{min-height:calc(100vh - 80px);padding-top:clamp(90px,10vw,140px);padding-bottom:95px}
.events-intro{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:28px}
.events-intro h1,.event-detail-info h1{font-size:clamp(58px,8vw,118px);max-width:none}
.events-intro h1 em{font-style:italic;color:#eaa38e}
.events-intro .section-copy{margin-top:20px}.events-count{font-size:12px;color:var(--muted);letter-spacing:.2em;white-space:nowrap}
.events-demo-note{font-size:12px;line-height:1.7;color:var(--muted-2);margin:15px 0 30px}
.events-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(18px,2.4vw,38px)}
.event-card{min-width:0;color:inherit;text-decoration:none;display:block}
.event-card-media{position:relative;aspect-ratio:1 / 1.03;overflow:hidden;border-radius:19px;border:1px solid var(--line);background:var(--panel);box-shadow:var(--shadow)}
.event-cover{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:opacity .55s ease,transform .75s cubic-bezier(.22,1,.36,1)}
.event-cover-secondary{opacity:0;transform:scale(1.045)}
.event-card:hover .event-cover-primary,.event-card:focus-visible .event-cover-primary{opacity:0;transform:scale(1.045)}
.event-card:hover .event-cover-secondary,.event-card:focus-visible .event-cover-secondary{opacity:1;transform:scale(1)}
.event-card-indicator{position:absolute;bottom:16px;right:16px;background:rgba(18,7,12,.78);border:1px solid rgba(255,218,215,.22);border-radius:99px;padding:10px 14px;font-size:11px;letter-spacing:.07em;backdrop-filter:blur(12px)}
.event-card-copy{padding:23px 3px}.event-card-category,.event-category{color:var(--muted);font-size:12px;letter-spacing:.1em;text-transform:uppercase}
.event-card-copy h3{font-family:Georgia,serif;font-size:clamp(26px,2.5vw,41px);font-weight:400;line-height:1.1;margin:12px 0 17px}
.event-card-cta{color:#eaa38e;font-size:12px;text-transform:uppercase;letter-spacing:.12em}
.event-back{display:inline-block;color:var(--cream);text-decoration:none;border-bottom:1px solid var(--accent-soft);padding-bottom:7px;margin-bottom:38px;font-size:12px;letter-spacing:.12em;text-transform:uppercase}
.event-detail-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.8fr);gap:clamp(30px,5vw,84px);align-items:start}
.event-viewport{position:relative;overflow:hidden;border:1px solid var(--line);border-radius:22px;background:var(--panel);box-shadow:var(--shadow)}
.event-track{display:flex;transition:transform .55s cubic-bezier(.22,1,.36,1)}
.event-slide{flex:0 0 100%;min-width:0;aspect-ratio:1.15/1}.event-slide img{width:100%;height:100%;display:block;object-fit:cover}
.event-gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:1;width:44px;height:44px;border:1px solid rgba(255,236,231,.35);border-radius:50%;color:white;background:rgba(17,8,12,.68);backdrop-filter:blur(12px);font-size:19px}
.event-gallery-arrow:hover{background:var(--accent-deep)}.event-gallery-prev{left:16px}.event-gallery-next{right:16px}
.event-gallery-counter{position:absolute;right:16px;bottom:16px;padding:10px 12px;background:rgba(17,8,12,.72);border-radius:10px;font-size:12px;letter-spacing:.15em}
.event-thumbs{display:flex;gap:12px;margin-top:14px}.event-thumb{width:90px;aspect-ratio:1.25;border:2px solid transparent;border-radius:10px;overflow:hidden;background:var(--panel);opacity:.65;padding:0}
.event-thumb img{display:block;width:100%;height:100%;object-fit:cover}.event-thumb.is-active{border-color:var(--accent-soft);opacity:1}
.event-detail-info{padding-top:12px}.event-detail-info h1{margin:15px 0 25px}.event-detail-info .section-copy{font-size:clamp(16px,1.4vw,20px);margin:20px 0 28px}
.event-facts{border-top:1px solid var(--line);margin:35px 0 25px}.event-facts div{display:grid;grid-template-columns:85px 1fr;gap:12px;padding:20px 0;border-bottom:1px solid var(--line)}
.event-facts dt{color:var(--muted-2);font-size:12px;text-transform:uppercase;letter-spacing:.1em}.event-facts dd{color:var(--cream);font-size:13px;letter-spacing:.05em}
@media(max-width:1100px){.events-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.event-detail-layout{grid-template-columns:1fr}.event-detail-info{max-width:760px}}
@media(max-width:600px){.events-section,.event-detail{padding-left:24px;padding-right:24px}.events-intro{display:block}.events-count{display:block;margin-top:20px}.events-grid{grid-template-columns:1fr}.event-card-media{aspect-ratio:1.1}.event-detail-info h1{font-size:clamp(51px,13vw,78px)}.event-thumb{width:72px}}
@media(prefers-reduced-motion:reduce){.event-track,.event-cover{transition:none}}

/* =========================================
   COURSES PAGE (replaces Private Classes)
   ========================================= */
.courses-section {
    min-height: calc(100vh - 80px);
    padding: 110px clamp(28px, 6vw, 92px) 100px;
    background:
        radial-gradient(circle at 80% 20%, rgba(213,82,74,.12), transparent 35%),
        radial-gradient(circle at 15% 85%, rgba(142,38,45,.15), transparent 40%);
}
.courses-intro { max-width: 1000px; margin-bottom: 65px; }
.courses-intro .eyebrow { margin-bottom: 28px; }
.courses-intro h1 {
    font-size: clamp(58px, 7vw, 112px);
    line-height: 1.02;
    max-width: 1000px;
}
.courses-intro h1 em { color: var(--accent-soft); font-weight: 400; }
.courses-intro .section-copy {
    max-width: 780px;
    margin-top: 30px;
    font-size: clamp(16px, 1.4vw, 20px);
    line-height: 1.8;
}
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}
.course-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 370px;
    padding: 34px;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(54,22,32,.9), rgba(21,9,15,.95));
    border: 1px solid var(--line);
    box-shadow: 0 24px 65px rgba(0,0,0,.2);
    backdrop-filter: blur(18px);
    transition: background .35s ease, border-color .35s ease,
                box-shadow .35s ease, transform .35s ease;
}
/* The global .glass rule also applies: keep this override after it. */
.course-card.glass { padding: 34px; border-radius: 24px; }
.course-card::before {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    top: -140px;
    right: -110px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(213,82,74,.18), transparent 70%);
    pointer-events: none;
    transition: transform .5s ease;
}
.course-card:hover {
    transform: translateY(-8px);
    border-color: rgba(234,122,111,.5);
    box-shadow: 0 32px 80px rgba(0,0,0,.32);
    background: linear-gradient(145deg, rgba(75,29,40,.95), rgba(24,10,17,.98));
}
.course-card:hover::before { transform: scale(1.4); }
.course-card-number {
    position: relative;
    z-index: 1;
    color: var(--accent-soft);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.course-card-content { position: relative; z-index: 1; flex: 1; padding-top: 48px; }
.course-card-content h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 2.7vw, 44px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -.035em;
    color: #fff5f2;
    margin-bottom: 24px;
    transition: color .3s ease;
}
.course-card:hover .course-card-content h3 { color: #f4b29d; }
.course-card-content p { max-width: 360px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.course-card-bottom {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 42px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    color: var(--muted-2);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.course-card-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(234,122,111,.35);
    color: var(--accent-soft);
    font-size: 19px;
    transition: background .3s ease, color .3s ease, transform .3s ease;
}
.course-card:hover .course-card-arrow {
    background: var(--accent-soft);
    color: #1a0b11;
    transform: rotate(45deg);
}
.courses-bottom { margin-top: 80px; }
.courses-bottom-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(234,122,111,.45), rgba(255,218,215,.08), transparent);
}
.courses-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding-top: 42px;
}
.courses-bottom-content > div { max-width: 760px; }
.courses-bottom-content .eyebrow { margin-bottom: 20px; }
.courses-bottom-content p {
    color: var(--muted);
    font-size: clamp(17px, 1.5vw, 21px);
    line-height: 1.75;
}
.courses-bottom-content .button { flex-shrink: 0; }
@media (max-width: 1100px) {
    .courses-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .courses-bottom-content { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 700px) {
    .courses-section { padding: 110px 22px 70px; }
    .courses-intro { margin-bottom: 45px; }
    .courses-intro h1 { font-size: clamp(54px, 11vw, 78px); }
    .courses-intro .section-copy { font-size: 16px; }
    .courses-grid { grid-template-columns: 1fr; gap: 18px; }
    .course-card, .course-card.glass { min-height: 300px; padding: 28px; }
    .course-card-content { padding-top: 32px; }
    .course-card-content h3 { font-size: 36px; }
    .course-card-content p { font-size: 15px; }
    .course-card-bottom { margin-top: 32px; }
    .courses-bottom { margin-top: 55px; }
    .courses-bottom-content { gap: 30px; }
}
@media (prefers-reduced-motion: reduce) {
    .course-card, .course-card::before, .course-card-arrow { transition: none; }
    .course-card:hover { transform: none; }
}


/* =========================================
   CLAVE DANCE SCHOOL
   CONTACT FORM - FINAL STYLING
   ========================================= */

/* CONTACT FORM LAYOUT */

#contact .contact-form {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;

    width: 100%;

    margin-top: 40px;
}


/* NAME, EMAIL AND MESSAGE FIELDS */

#contact .contact-form input,
#contact .contact-form textarea {
    display: block;

    width: 100%;

    min-width: 0;

    padding: 20px 22px;

    border:
        1px solid rgba(255, 218, 215, 0.18);

    border-radius: 16px;

    background: rgba(255, 255, 255, 0.045);

    color: #fff5f2;

    font-family: inherit;

    font-size: 15px;

    font-weight: 400;

    line-height: 1.5;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.025);

    outline: none;

    appearance: none;

    -webkit-appearance: none;

    transition:
        border-color 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}


/* PLACEHOLDER TEXT */

#contact .contact-form input::placeholder,
#contact .contact-form textarea::placeholder {
    color: rgba(201, 181, 177, 0.65);

    opacity: 1;
}


/* HOVER EFFECT */

#contact .contact-form input:hover,
#contact .contact-form textarea:hover {
    border-color:
        rgba(234, 122, 111, 0.4);

    background:
        rgba(255, 255, 255, 0.065);
}


/* FOCUS EFFECT */

#contact .contact-form input:focus,
#contact .contact-form textarea:focus {
    border-color: var(--accent-soft);

    background:
        rgba(213, 82, 74, 0.075);

    box-shadow:
        0 0 0 4px rgba(213, 82, 74, 0.12);

    outline: none;
}


/* MESSAGE TEXTAREA */

#contact .contact-form textarea {
    grid-column: 1 / -1;

    min-height: 180px;

    resize: vertical;
}


/* SUBMIT BUTTON */

#contact .contact-form button {
    grid-column: 1 / -1;

    justify-self: center;

    margin-top: 8px;
}


/* =========================================
   CONTACT FORM - MOBILE
   ========================================= */

@media (max-width: 700px) {

    #contact .contact-form {
        grid-template-columns: 1fr;

        gap: 14px;

        margin-top: 30px;
    }

    #contact .contact-form input,
    #contact .contact-form textarea {
        padding: 17px 18px;

        font-size: 14px;
    }

    #contact .contact-form textarea {
        grid-column: 1;

        min-height: 160px;
    }

    #contact .contact-form button {
        grid-column: 1;
    }

}


/* =========================================
   REDUCED MOTION
   ========================================= */

@media (prefers-reduced-motion: reduce) {

    #contact .contact-form input,
    #contact .contact-form textarea {
        transition: none;
    }

}


/* =========================================
   CLAVE DANCE SCHOOL
   STUDENT LOGIN PAGE
   ========================================= */

.login-section {
    min-height: calc(100vh - 80px);

    display: grid;

    place-items: center;

    padding:
        110px clamp(28px, 6vw, 92px)
        90px;
}

.login-card {
    width: 100%;

    max-width: 640px;

    padding: clamp(28px, 5vw, 55px);

    border-radius: 28px;
}

.login-card h1 {
    font-size: clamp(52px, 6vw, 82px);

    line-height: 1.05;

    max-width: 100%;
}

.login-card h1 em {
    color: var(--accent-soft);
}

.login-card .section-copy {
    margin-top: 22px;

    font-size: 16px;

    line-height: 1.7;
}


/* =========================================
   LOGIN / REGISTER TABS
   ========================================= */

.login-tabs {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;

    margin-top: 38px;

    margin-bottom: 30px;
}

.login-tab {
    padding: 15px 12px;

    border:
        1px solid rgba(255, 218, 215, 0.15);

    border-radius: 14px;

    background: rgba(255, 255, 255, 0.035);

    color: var(--muted);

    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: 0.08em;

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease;
}

.login-tab:hover,
.login-tab.active {
    background: rgba(213, 82, 74, 0.16);

    border-color: var(--accent-soft);

    color: #fff5f2;
}


/* =========================================
   LOGIN AND REGISTRATION FORMS
   ========================================= */

.account-form {
    display: grid;

    gap: 14px;
}

/* Keep the inactive form completely hidden. */

.account-form[hidden] {
    display: none;
}

.account-form label {
    color: var(--muted);

    font-size: 12px;

    letter-spacing: 0.08em;

    text-transform: uppercase;

    margin-top: 8px;
}

.account-form input {
    width: 100%;

    min-width: 0;

    padding: 17px 20px;

    border:
        1px solid rgba(255, 218, 215, 0.18);

    border-radius: 14px;

    background: rgba(255, 255, 255, 0.045);

    color: #fff5f2;

    font-size: 15px;

    outline: none;

    transition:
        border-color 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}

.account-form input::placeholder {
    color: rgba(201, 181, 177, 0.65);
}

.account-form input:hover {
    border-color: rgba(234, 122, 111, 0.45);
}

.account-form input:focus {
    border-color: var(--accent-soft);

    background: rgba(213, 82, 74, 0.07);

    box-shadow:
        0 0 0 4px rgba(213, 82, 74, 0.12);
}

.account-form .button {
    width: 100%;

    border: none;

    margin-top: 20px;

    padding: 18px 24px;
}

.account-form .button:disabled {
    opacity: 0.55;

    cursor: wait;
}


/* =========================================
   AUTHENTICATION MESSAGE
   ========================================= */

.auth-message {
    margin-top: 24px;

    color: var(--accent-soft);

    font-size: 14px;

    line-height: 1.6;
}

.auth-message:empty {
    display: none;
}

.auth-message.is-error {
    color: #ff9b91;
}


/* =========================================
   LOGIN PAGE MOBILE
   ========================================= */

@media (max-width: 700px) {

    .login-section {
        padding: 110px 20px 70px;
    }

    .login-card {
        padding: 28px 22px;
    }

    .login-card h1 {
        font-size: clamp(48px, 11vw, 68px);
    }

    .login-tabs {
        margin-top: 30px;
    }

    .account-form input {
        padding: 16px;
    }

}


/* =========================================
   CLAVE DANCE SCHOOL
   STUDENT DASHBOARD
   ========================================= */

.dashboard-section {
    min-height: calc(100vh - 80px);

    padding:
        110px clamp(28px, 6vw, 92px)
        100px;
}

.dashboard-container {
    max-width: 1200px;

    margin: 0 auto;
}

.dashboard-heading {
    margin-bottom: 50px;
}

.dashboard-heading h1 {
    font-size: clamp(54px, 7vw, 105px);

    max-width: 100%;
}


/* WELCOME CARD */

.dashboard-welcome {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}

.dashboard-welcome h2 {
    font-size: clamp(38px, 5vw, 64px);

    margin-bottom: 16px;
}

.dashboard-welcome p {
    color: var(--muted);

    line-height: 1.6;
}

.dashboard-welcome .button {
    flex-shrink: 0;

    margin-top: 0;
}


/* DASHBOARD SECTIONS */

.dashboard-block {
    margin-top: 65px;
}

.dashboard-block-heading {
    margin-bottom: 28px;
}

.dashboard-block-heading h2 {
    font-size: clamp(38px, 4vw, 58px);
}


/* STUDENT PACKAGES */

.student-packages {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 24px;
}

.student-package-card {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 20px;

    min-width: 0;
}

.student-package-card h3 {
    font-family: Georgia, serif;

    color: #fff5f2;

    font-size: clamp(28px, 3vw, 42px);

    font-weight: 400;

    line-height: 1.1;
}

.package-status {
    display: inline-flex;

    padding: 8px 13px;

    border-radius: 999px;

    border:
        1px solid rgba(234, 122, 111, 0.3);

    background:
        rgba(213, 82, 74, 0.12);

    color: var(--accent-soft);

    font-size: 11px;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}

.package-remaining {
    color: var(--cream);

    font-size: 19px;

    font-weight: 600;
}

.package-progress {
    width: 100%;

    height: 7px;

    overflow: hidden;

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.08);
}

.package-progress-fill {
    height: 100%;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            var(--accent),
            var(--accent-soft)
        );

    transition: width 0.4s ease;
}

.package-expiry {
    color: var(--muted-2);

    font-size: 13px;
}


/* PERSONAL INFORMATION */

.dashboard-profile {
    max-width: 850px;
}

.dashboard-profile-form {
    display: grid;

    gap: 14px;
}

.dashboard-profile-form label {
    margin-top: 10px;

    color: var(--muted);

    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: 0.1em;
}

.dashboard-profile-form input {
    width: 100%;

    min-width: 0;

    padding: 18px 20px;

    border:
        1px solid rgba(255, 218, 215, 0.18);

    border-radius: 15px;

    background: rgba(255, 255, 255, 0.045);

    color: #fff5f2;

    font-size: 15px;

    outline: none;
}

.dashboard-profile-form input::placeholder {
    color: rgba(201, 181, 177, 0.65);
}

.dashboard-profile-form input:focus {
    border-color: var(--accent-soft);

    box-shadow:
        0 0 0 4px rgba(213, 82, 74, 0.12);
}

.dashboard-profile-form input[readonly] {
    opacity: 0.65;

    cursor: not-allowed;
}

.dashboard-profile-form .button {
    justify-self: start;

    border: none;

    margin-top: 20px;
}

.dashboard-field-note {
    color: var(--muted-2);

    font-size: 12px;

    line-height: 1.6;
}


/* MESSAGES */

.dashboard-message {
    margin-bottom: 20px;

    color: var(--accent-soft);

    font-size: 14px;

    line-height: 1.6;
}

.dashboard-message:empty {
    display: none;
}

.dashboard-empty {
    grid-column: 1 / -1;

    padding: 36px;

    border: 1px solid var(--line);

    border-radius: 22px;

    background: var(--panel);

    color: var(--muted);

    line-height: 1.7;
}


/* MOBILE */

@media (max-width: 800px) {

    .dashboard-section {
        padding: 110px 22px 70px;
    }

    .dashboard-welcome {
        flex-direction: column;

        align-items: flex-start;
    }

    .student-packages {
        grid-template-columns: 1fr;
    }

    .dashboard-block {
        margin-top: 45px;
    }

    .dashboard-profile-form .button {
        width: 100%;
    }

}


/* KEEP ACCOUNT CONTENT HIDDEN UNTIL LOADED */

#dashboardContent[hidden] {
    display: none;
}


/* =========================================
   CLAVE DANCE SCHOOL
   FLOATING ACCOUNT MENU
   ========================================= */


/* =========================================
   1. ACCOUNT WIDGET POSITION
   ========================================= */

.clave-account-widget {

    position: fixed;

    top: 24px;
    right: 30px;

    z-index: 2000;

    display: flex;

    flex-direction: column;

    align-items: flex-end;

    font-family:
        Inter,
        system-ui,
        sans-serif;

}


/* =========================================
   2. ACCOUNT BUTTON
   ========================================= */

.clave-account-trigger {

    display: flex;

    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    padding: 4px;

    border-radius: 50%;

    border:
        2px solid rgba(
            255, 218, 215, 0.35
        );

    background:
        rgba(25, 10, 16, 0.94);

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.35);

    cursor: pointer;

    backdrop-filter: blur(16px);

    transition:
        border-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;

}

.clave-account-trigger:hover {

    transform: scale(1.07);

    border-color: var(--accent-soft);

    box-shadow:
        0 12px 35px rgba(
            213, 82, 74, 0.25
        );

}


/* =========================================
   3. CIRCULAR AVATAR
   ========================================= */

.clave-account-avatar {

    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            var(--accent-soft),
            var(--accent)
        );

    color: #190a10;

    font-size: 20px;

    font-weight: 700;

    line-height: 1;

    text-transform: uppercase;

    user-select: none;

}

.clave-account-avatar-large {

    width: 54px;
    height: 54px;

    flex-shrink: 0;

    font-size: 23px;

}


/* =========================================
   4. DROPDOWN PANEL
   ========================================= */

.clave-account-dropdown {

    position: absolute;

    top: calc(100% + 14px);
    right: 0;

    width: 310px;

    max-width:
        calc(100vw - 30px);

    padding: 12px;

    border-radius: 22px;

    border:
        1px solid rgba(
            255, 218, 215, 0.15
        );

    background:
        rgba(29, 12, 19, 0.98);

    box-shadow:
        0 24px 70px rgba(
            0, 0, 0, 0.45
        );

    backdrop-filter: blur(24px);

    overflow: hidden;

}


/* KEEP THE DROPDOWN HIDDEN
   UNTIL THE BUTTON IS CLICKED */

.clave-account-dropdown[hidden] {

    display: none;

}


/* =========================================
   5. ACCOUNT HEADER
   ========================================= */

.clave-account-header {

    display: flex;

    align-items: center;

    gap: 14px;

    padding: 15px 12px 20px;

    border-bottom:
        1px solid var(--line);

}

.clave-account-user {

    display: flex;

    flex-direction: column;

    gap: 5px;

    min-width: 0;

}

.clave-account-user strong {

    color: #fff5f2;

    font-size: 15px;

    font-weight: 600;

    line-height: 1.4;

    overflow-wrap: anywhere;

}

.clave-account-user > span {

    color: var(--muted);

    font-size: 11px;

    line-height: 1.5;

    overflow-wrap: anywhere;

}


/* =========================================
   6. DROPDOWN LINKS
   ========================================= */

.clave-account-links {

    display: flex;

    flex-direction: column;

    gap: 4px;

    padding: 12px 0;

}

.clave-account-links a {

    display: flex;

    align-items: center;

    gap: 14px;

    width: 100%;

    padding: 14px 13px;

    border-radius: 12px;

    color: #f6f0ee;

    text-decoration: none;

    font-size: 13px;

    line-height: 1.4;

    transition:
        background 0.25s ease,
        color 0.25s ease;

}

.clave-account-links a > span {

    display: flex;

    align-items: center;
    justify-content: center;

    width: 22px;

    flex-shrink: 0;

    font-size: 19px;

    color: var(--accent-soft);

}

.clave-account-links a:hover {

    background:
        rgba(213, 82, 74, 0.16);

    color: #ffb29b;

}


/* =========================================
   7. SIGN OUT BUTTON
   ========================================= */

.clave-account-footer {

    padding-top: 10px;

    border-top:
        1px solid var(--line);

}

.clave-account-footer button {

    display: flex;

    align-items: center;

    gap: 14px;

    width: 100%;

    padding: 14px 13px;

    border: none;

    border-radius: 12px;

    background: transparent;

    color: var(--muted);

    font-size: 13px;

    text-align: left;

    cursor: pointer;

    transition:
        background 0.25s ease,
        color 0.25s ease;

}

.clave-account-footer button > span {

    display: flex;

    align-items: center;
    justify-content: center;

    width: 22px;

    flex-shrink: 0;

    font-size: 19px;

    color: var(--accent-soft);

}

.clave-account-footer button:hover {

    background:
        rgba(213, 82, 74, 0.16);

    color: #ffb29b;

}

.clave-account-footer button:disabled {

    opacity: 0.5;

    cursor: wait;

}


/* =========================================
   8. MOBILE ACCOUNT MENU
   ========================================= */

@media (max-width: 700px) {

    .clave-account-widget {

        top: 18px;
        right: 18px;

    }

    .clave-account-trigger {

        width: 48px;
        height: 48px;

    }

    .clave-account-dropdown {

        width: min(
            310px,
            calc(100vw - 36px)
        );

    }

    .clave-account-avatar {

        font-size: 18px;

    }

    .clave-account-avatar-large {

        font-size: 23px;

    }

}


/* =========================================
   9. REDUCED MOTION
   ========================================= */

@media (prefers-reduced-motion: reduce) {

    .clave-account-trigger,
    .clave-account-links a,
    .clave-account-footer button {

        transition: none;

    }

}


#packages,
#account-settings {
    scroll-margin-top: 100px;
}

/* =========================================
   CLAVE — SIDE MENU: KEEP LINKS BELOW THE LOGO
   (the menu now has more items, so they start
   under the logo instead of the exact middle)
   ========================================= */

@media (min-width: 921px) {

    .side-nav .nav-links {
        top: 196px;
        bottom: 24px;

        justify-content: center;
        justify-content: safe center;

        gap: 6px;

        overflow-y: auto;

        transform: translateX(-14px);
    }

    .side-nav:hover .nav-links,
    .side-nav:focus-within .nav-links,
    .side-nav.is-open .nav-links {
        transform: none;
    }

    .side-nav .nav-links a {
        min-height: 46px;
        padding: 12px 16px;
    }
}

@media (max-width: 920px) {

    /* Logo at the top of the open phone menu, not the bottom */
    .side-nav.is-open,
    .side-nav.is-open:hover {
        justify-content: flex-start;
    }

    .side-nav.is-open .nav-links {
        top: 206px;
        bottom: 24px;

        transform: none;

        justify-content: center;
        justify-content: safe center;

        gap: 6px;

        overflow-y: auto;
    }
}
