@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    --base-bg: #f4f6fa;
    --surface: #ffffff;
    --ink: #1f2430;
    --muted: #646b78;
    --line: #dde3ea;
    --brand: #f6ce71;
    --brand-deep: #dfb451;
    --social: #2c3342;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Poppins", "Segoe UI", sans-serif;
    font-size: 15px;
    color: var(--ink);
    background: radial-gradient(circle at 5% -5%, #fff9ea 0%, transparent 25%), var(--base-bg);
}

.container {
    width: min(1260px, 94%);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 1rem 0 0;
    pointer-events: none;
}

.header-card {
    width: min(1530px, 94%);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "brand nav social";
    align-items: center;
    gap: 1rem clamp(1rem, 2.5vw, 2.4rem);
    padding: 0.85rem clamp(1.2rem, 2.6vw, 2.4rem);
    border-radius: 26px;
    background: rgb(255 255 255 / 92%);
    border: 1px solid rgb(255 255 255 / 80%);
    box-shadow: 0 18px 44px rgb(120 86 20 / 9%), 0 2px 6px rgb(25 32 44 / 4%);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    pointer-events: auto;
}

.brand-wrap {
    grid-area: brand;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: inherit;
}

.brand-logo {
    display: block;
    width: 92px;
    flex-shrink: 0;
    max-width: 100%;
    height: auto;
}

.main-nav {
    grid-area: nav;
    display: flex;
    white-space: nowrap;
    gap: clamp(0.4rem, 1.2vw, 1.4rem);
    align-items: center;
    flex-wrap: nowrap;
}

.main-nav a {
    position: relative;
    text-decoration: none;
    color: var(--ink);
    font-size: clamp(0.92rem, 1.05vw, 1rem);
    font-weight: 500;
    line-height: 1;
    padding: 0.62rem 1.1rem;
    border-radius: 999px;
    transition: color 0.25s ease, transform 0.2s ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 1.1rem;
    right: 1.1rem;
    bottom: 0.3rem;
    height: 2px;
    border-radius: 999px;
    background: var(--brand-deep);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
}

.main-nav a:hover {
    color: #2b3039;
    transform: translateY(-1px);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
    transform: scaleX(1);
}

.main-nav a.active::after {
    display: none;
}

.main-nav a.active {
    background: var(--brand);
    color: #2b3039;
    font-weight: 600;
    box-shadow: 0 7px 18px rgb(223 180 81 / 28%);
}

.social-links {
    grid-area: social;
    justify-self: end;
    display: inline-flex;
    gap: 0.65rem;
    align-items: center;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--social);
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.social-links a svg {
    width: 16px;
    height: 16px;
    display: block;
}

.social-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgb(31 41 55 / 22%);
    background: #161b27;
}

main {
    min-height: 44vh;
    padding: 2.1rem 0;
}

.page-shell {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: clamp(1rem, 1.5vw, 1.6rem);
    box-shadow: 0 12px 32px rgb(23 33 45 / 6%);
}

.page-shell h1 {
    margin: 0 0 0.45rem;
    font-size: clamp(1.3rem, 2.1vw, 1.75rem);
}

.page-shell p {
    margin: 0;
    color: var(--muted);
    line-height: 1.62;
    font-size: 0.95rem;
}

/* ── Shared section titles & buttons ─────────────── */
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0.7rem 1.1rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.section-link:hover {
    transform: translateY(-2px);
}

.section-link.primary {
    background: #f6ce71;
    color: #1f2430;
    box-shadow: 0 14px 28px rgb(246 206 113 / 25%);
}

.section-link.secondary {
    background: #fff;
    border: 1px solid #dde3ea;
    color: #1f2430;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 1.4rem;
    color: #c8951f;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
}

.section-kicker::before,
.section-kicker::after {
    content: "";
    width: 52px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #dfb451, #c8951f);
}

.section-kicker.is-left::after {
    content: none;
}

.section-title {
    margin: 0;
    font-size: clamp(2.2rem, 4.4vw, 4.2rem);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.03em;
    color: #14161c;
}

.section-title .accent {
    background: linear-gradient(95deg, #c38b1c 0%, #e6b03c 50%, #c99227 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-right: 0.06em;
}

/* ── Decorative music notes & waves ─────────────── */
.music-decor {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.music-waves {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 520px;
    fill: none;
    stroke: #e2b866;
    stroke-width: 1.2;
    opacity: 0.28;
}

.music-note {
    position: absolute;
    font-family: "Apple Symbols", "Segoe UI Symbol", "Noto Music", "Noto Sans Symbols 2", serif;
    line-height: 1;
    background: linear-gradient(160deg, #f3cf7c 0%, #d39a2b 60%, #b9821c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: music-note-drift 7s ease-in-out infinite;
}

@keyframes music-note-drift {
    0%,
    100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }

    50% {
        transform: translate3d(0, -10px, 0) rotate(-4deg);
    }
}

/* ── Scroll reveal ([data-reveal] sections, .reveal items) ── */
.reveal {
    opacity: 0;
    will-change: transform, opacity;
}

[data-reveal].is-visible .reveal {
    opacity: 1;
    animation: reveal-up 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

[data-reveal].is-visible .reveal.anim-left {
    animation-name: reveal-left;
}

[data-reveal].is-visible .reveal.anim-right {
    animation-name: reveal-right;
}

[data-reveal].is-visible .reveal.anim-down {
    animation-name: reveal-down;
}

[data-reveal].is-visible .reveal.delay-1 { animation-delay: 0.12s; }
[data-reveal].is-visible .reveal.delay-2 { animation-delay: 0.24s; }
[data-reveal].is-visible .reveal.delay-3 { animation-delay: 0.36s; }
[data-reveal].is-visible .reveal.delay-4 { animation-delay: 0.48s; }
[data-reveal].is-visible .reveal.delay-5 { animation-delay: 0.6s; }

@keyframes reveal-up {
    from { opacity: 0; transform: translate3d(0, 28px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes reveal-down {
    from { opacity: 0; transform: translate3d(0, -28px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes reveal-left {
    from { opacity: 0; transform: translate3d(-34px, 0, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes reveal-right {
    from { opacity: 0; transform: translate3d(34px, 0, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .music-note {
        animation: none;
    }

    .reveal,
    [data-reveal].is-visible .reveal {
        opacity: 1;
        animation: none;
    }
}

/* ── Page hero (About, Classes, Teachers, Blog, Contact) ── */
/* Full-bleed cream banner that sits behind the floating header, photo fading in on the right */
.page-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    width: 100vw;
    min-height: clamp(420px, 52vh, 560px);
    margin-left: calc(50% - 50vw);
    margin-top: calc(-1 * var(--header-h, 150px) - 2.1rem);
    padding: calc(var(--header-h, 150px) + clamp(2.5rem, 4vw, 3.5rem)) calc((100vw - min(1180px, 92vw)) / 2) clamp(3rem, 5vw, 4.5rem);
    background:
        radial-gradient(ellipse at 20% 40%, rgb(255 236 200 / 55%) 0%, transparent 45%),
        linear-gradient(180deg, #fffaf1 0%, #fffcf6 70%, #fff 100%);
}

/* Fade the hero (photo included) into the white section below */
.page-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    height: clamp(120px, 16vh, 180px);
    background: linear-gradient(180deg, rgb(255 255 255 / 0%) 0%, rgb(255 255 255 / 75%) 60%, #fff 100%);
    pointer-events: none;
}

.page-hero-media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
    width: 48%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
}

.page-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% center;
    display: block;
}

.page-hero-copy {
    position: relative;
    max-width: 520px;
}

.page-hero .section-kicker {
    font-size: 0.78rem;
    letter-spacing: 0.24em;
}

.page-hero .section-kicker::before,
.page-hero .section-kicker::after {
    width: 40px;
}

.page-hero h1.section-title {
    margin: 0.9rem 0 0;
    font-size: clamp(2.6rem, 4.6vw, 4rem);
    line-height: 1.05;
}

.page-hero-lead {
    max-width: 44ch;
    margin: 1rem 0 0;
    color: #4f5560;
    font-size: 1rem;
    line-height: 1.75;
}

.page-hero .music-note.note-a {
    left: 50%;
    top: calc(var(--header-h, 150px) + 1rem);
    font-size: clamp(2.6rem, 4vw, 4rem);
}

.page-hero .music-note.note-b {
    left: 44%;
    top: 46%;
    font-size: clamp(4.5rem, 8vw, 7.5rem);
    animation-delay: -2.5s;
}

.page-hero .music-note.note-c {
    left: 34%;
    bottom: 12%;
    font-size: clamp(2rem, 3vw, 3rem);
    opacity: 0.7;
    animation-delay: -4s;
}

.page-hero .music-waves {
    top: auto;
    bottom: 0;
    height: 320px;
    opacity: 0.3;
}

@media (max-width: 1080px) {
    .page-hero-media {
        width: 60%;
        opacity: 0.55;
    }
}

@media (max-width: 768px) {
    .page-hero-media {
        width: 100%;
        opacity: 0.25;
    }

    .page-hero .music-note.note-a,
    .page-hero .music-note.note-b {
        left: auto;
        right: 6%;
    }

    .page-hero .music-note.note-c {
        display: none;
    }
}

/* ── Inner page building blocks (Classes, Blog, Teachers, Contact) ── */
/* White page body that fades in from, and back out to, the page grey */
.inner-shell {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 0 calc((100vw - min(1260px, 94vw)) / 2) clamp(4rem, 6vw, 5.5rem);
    background: linear-gradient(180deg, var(--base-bg) 0%, #fff 140px, #fff calc(100% - 180px), var(--base-bg) 100%);
}

.inner-shell > section + section {
    margin-top: clamp(2.6rem, 4.5vw, 3.8rem);
}

.page-kicker {
    color: #c8951f;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

/* Left-aligned title with a short gold bar underneath */
.bar-title {
    position: relative;
    margin: 0;
    padding-bottom: 0.9rem;
    color: #14161c;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.bar-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 44px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f0c25a, #d9a12e);
}

.bar-lead {
    margin: 1rem 0 0;
    color: #4f5560;
    font-size: 1rem;
    line-height: 1.7;
}

.inner-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: clamp(1.4rem, 2.4vw, 2rem);
}

/* Round prev/next buttons */
.circle-nav {
    display: flex;
    flex-shrink: 0;
    gap: 0.75rem;
}

.circle-nav button {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f1e6cc;
    border-radius: 50%;
    background: #fff8ea;
    color: #1f2430;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 10px 22px rgb(120 86 20 / 10%);
    transition: translate 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.circle-nav button.is-primary {
    border-color: transparent;
    background: linear-gradient(135deg, #f6ce71 0%, #e2ad38 100%);
}

.circle-nav button:hover:not(:disabled) {
    translate: 0 -2px;
    background: #f6ce71;
}

.circle-nav button:disabled {
    opacity: 0.45;
    cursor: default;
}

.gold-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #f8d27a 0%, #efbf55 100%);
    color: #1f2430;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 14px 28px rgb(223 170 60 / 28%);
    transition: translate 0.2s ease, box-shadow 0.2s ease;
}

.gold-btn:hover {
    translate: 0 -2px;
    box-shadow: 0 18px 32px rgb(223 170 60 / 36%);
}

.gold-btn i {
    transition: transform 0.2s ease;
}

.gold-btn:hover i {
    transform: translateX(3px);
}

/* Dark card with a photo fading in from the right (banners and CTAs) */
.dark-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(2rem, 4vw, 3.2rem) clamp(1.6rem, 5vw, 4.5rem);
    border-radius: 24px;
    background: linear-gradient(90deg, #1c2230 0%, #232a38 55%, #2a2622 100%);
    box-shadow: 0 24px 48px rgb(18 24 38 / 20%);
    color: #fff;
}

.dark-card-media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    width: 58%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
}

.dark-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 75% center;
    display: block;
    filter: brightness(0.75) saturate(0.95);
}

/* Fine gold arcs in the bottom-left corner */
.dark-card::before {
    content: "";
    position: absolute;
    left: -120px;
    bottom: -150px;
    z-index: -1;
    width: 420px;
    height: 220px;
    border-radius: 50%;
    border-top: 1px solid rgb(226 173 56 / 35%);
    box-shadow: 0 -10px 0 -9px rgb(226 173 56 / 25%), 0 -20px 0 -19px rgb(226 173 56 / 18%);
}

.dark-card .music-note {
    left: 50%;
    top: 55%;
    font-size: 3.6rem;
    opacity: 0.28;
    animation-duration: 8s;
}

.dark-card-copy {
    position: relative;
    max-width: 580px;
}

.dark-card .page-kicker {
    color: #f0c25a;
}

.dark-card h1,
.dark-card h2 {
    margin: 0.8rem 0 0;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.dark-card h1 {
    font-size: clamp(2.4rem, 4.6vw, 3.8rem);
}

.dark-card h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.dark-card .accent {
    color: #f0c25a;
}

.dark-card p {
    margin: 0.9rem 0 0;
    color: rgb(255 255 255 / 82%);
    font-size: 0.98rem;
    line-height: 1.7;
}

.dark-card .gold-btn {
    margin-top: 1.5rem;
}

/* Row of three icon highlights separated by thin dividers */
.feature-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 1.6rem 0;
    border-radius: 20px;
    background: linear-gradient(90deg, #fffaf0 0%, #fff 50%, #fffaf0 100%);
}

.feature-strip > div {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 0.2rem clamp(1rem, 3vw, 2.4rem);
}

.feature-strip > div + div {
    border-left: 1px solid #efe4cc;
}

.feature-strip i {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff8e8, #fbe2a8);
    color: #c8901f;
    font-size: 1.6rem;
}

.feature-strip h4 {
    margin: 0 0 0.3rem;
    color: #14161c;
    font-size: 1rem;
}

.feature-strip p {
    margin: 0;
    color: #6a717c;
    font-size: 0.88rem;
    line-height: 1.55;
}

@media (max-width: 768px) {
    .inner-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .dark-card-media {
        width: 100%;
        opacity: 0.4;
    }

    .feature-strip {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .feature-strip > div + div {
        padding-top: 1.2rem;
        border-left: 0;
        border-top: 1px solid #efe4cc;
    }
}

.site-footer {
    --footer-wave: calc(max(100vw, 1400px) * 0.105);
    position: relative;
    margin-top: 0;
    padding: calc(var(--footer-wave) + clamp(1.5rem, 3vw, 2.6rem)) 0 1.6rem;
    color: #e9e2d4;
    background-color: #150f09;
    background-image: url('../images/footer.png');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
}

/* Blend the cream top of the footer artwork into the page background */
.site-footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: calc(var(--footer-wave) * 0.45);
    background: linear-gradient(180deg, var(--base-bg) 0%, rgb(244 246 250 / 0%) 100%);
    pointer-events: none;
}

.footer-grid {
    position: relative;
    width: min(1110px, 92%);
    display: grid;
    grid-template-columns: 1.05fr 1fr 0.85fr;
    padding-bottom: clamp(1.8rem, 3vw, 2.6rem);
    border-bottom: 1px solid rgb(223 180 81 / 28%);
}

.footer-col {
    padding: 0.4rem clamp(1.2rem, 3vw, 3rem);
}

.footer-col:first-child {
    padding-left: 0;
}

.footer-col:last-child {
    padding-right: 0;
}

.footer-col + .footer-col {
    border-left: 1px solid rgb(223 180 81 / 22%);
}

.footer-brand .brand-logo {
    width: 140px;
}

.footer-about .footer-brand {
    position: relative;
    padding-bottom: 1rem;
}

.footer-about .footer-brand::after,
.footer-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f0c25a, #d9a12e);
}

.footer-copy {
    max-width: 40ch;
    margin: 1.2rem 0 0;
    color: #e6dfd2;
    font-size: 0.95rem;
    line-height: 1.75;
}

.footer-social {
    display: flex;
    gap: 0.7rem;
    margin-top: 1.6rem;
}

.footer-social a {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgb(223 180 81 / 65%);
    background: rgb(255 255 255 / 3%);
    color: #fff;
    font-size: 1.05rem;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.footer-social a svg {
    width: 16px;
    height: 16px;
}

.footer-social a:hover {
    transform: translateY(-2px);
    background: #e2ad38;
    color: #1a130b;
}

.footer-title {
    position: relative;
    margin: 0 0 1.6rem;
    padding-bottom: 0.9rem;
    color: #fff;
    font-size: clamp(1.5rem, 2vw, 1.9rem);
    font-weight: 600;
}

.footer-title span {
    color: #e6b03c;
}

.footer-contact {
    display: grid;
    gap: 1.3rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
}

.footer-contact-item i {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgb(223 180 81 / 55%);
    background: radial-gradient(circle at 35% 30%, #3a2c18, #1b140c);
    color: #fff;
    font-size: 1.3rem;
    box-shadow: 0 8px 18px rgb(0 0 0 / 30%);
}

.footer-contact-item span {
    display: grid;
    gap: 0.3rem;
    padding-top: 0.2rem;
}

.footer-contact-item strong {
    color: #fff;
    font-size: 0.98rem;
}

.footer-contact-item small {
    color: #d8d0c1;
    font-size: 0.92rem;
    line-height: 1.6;
}

.footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li + li {
    border-top: 1px solid rgb(255 255 255 / 10%);
}

.footer-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0;
    color: #f1ebdf;
    font-size: 0.97rem;
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a i {
    color: #e6b03c;
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    padding-left: 0.3rem;
    color: #e6b03c;
}

.footer-links a:hover i,
.footer-links a:focus-visible i {
    transform: translateX(3px);
}

.footer-bottom {
    position: relative;
    width: min(1110px, 92%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    padding-top: 1.4rem;
}

.footer-bottom p {
    margin: 0;
    color: #d8d0c1;
    font-size: 0.92rem;
}

.footer-bottom a {
    color: #e6b03c;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-bottom a:hover,
.footer-bottom a:focus-visible {
    color: #f6ce71;
    border-color: currentColor;
}

@media (max-width: 960px) {
    .header-card {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "brand social"
            "nav nav";
        row-gap: 0.4rem;
    }

    .main-nav {
        justify-content: center;
        padding-top: 0.6rem;
        border-top: 1px solid var(--line);
    }
}

@media (max-width: 1080px) {

    .site-footer {
        background-image:
            linear-gradient(180deg, transparent 0, transparent var(--footer-wave), rgb(21 15 9 / 60%) calc(var(--footer-wave) + 80px), #150f09 calc(max(100vw, 1400px) * 0.36)),
            url('../images/footer.png');
        background-size: 100% 100%, max(100%, 1400px) auto;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        row-gap: 2rem;
    }

    .footer-col:last-child {
        grid-column: 1 / -1;
        padding-left: 0;
        border-left: 0;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding-top: 0.6rem;
    }

    .header-card {
        border-radius: 20px;
        padding: 0.7rem 1rem;
    }

    .brand-logo {
        width: 72px;
    }

    .main-nav {
        justify-content: flex-start;
        gap: 0.2rem;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .main-nav a {
        font-size: 0.9rem;
        padding: 0.55rem 0.8rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-col {
        padding: 0;
    }

    .footer-col + .footer-col {
        border-left: 0;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}
