/* ============================================================
   استديو الوزاب — Site theme
   Direction: elegant dark stage, antique gold, Arabic RTL
   ============================================================ */

:root {
    --bg: #12151a;
    --bg-deep: #0b0d11;
    --surface: #191d24;
    --surface-2: #20252e;
    --line: rgba(201, 163, 92, 0.18);
    --gold: #c9a35c;
    --gold-bright: #e8c98a;
    --gold-deep: #96733a;
    --ink: #f4eddd;
    --ink-soft: #cfc7b6;
    --muted: #8f97a3;
    --whatsapp: #22c15e;
    --font-display: 'Aref Ruqaa', serif;
    --font-body: 'Tajawal', sans-serif;
    --radius: 14px;
    --shell: min(1140px, 92%);
}

/* ---------- Font presets ---------- */
html[data-font="ruqaa"] {
    --font-display: 'Aref Ruqaa', serif;
    --font-body: 'Tajawal', sans-serif;
}
html[data-font="amiri"] {
    --font-display: 'Amiri', serif;
    --font-body: 'Tajawal', sans-serif;
}
html[data-font="kufi"] {
    --font-display: 'Reem Kufi', sans-serif;
    --font-body: 'Tajawal', sans-serif;
}
html[data-font="scheherazade"] {
    --font-display: 'Scheherazade New', serif;
    --font-body: 'Tajawal', sans-serif;
}
html[data-font="cairo"] {
    --font-display: 'Cairo', sans-serif;
    --font-body: 'Cairo', sans-serif;
}
html[data-font="ibm"] {
    --font-display: 'IBM Plex Sans Arabic', sans-serif;
    --font-body: 'IBM Plex Sans Arabic', sans-serif;
}

/* Display font scopes */
html[data-font-scope="none"] {
    --font-display: var(--font-body);
}

html[data-font-scope="brand"] .hero-title,
html[data-font-scope="brand"] .section-title,
html[data-font-scope="brand"] .cat-card-title,
html[data-font-scope="brand"] .error-code {
    font-family: var(--font-body);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.02rem;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--gold-bright); text-decoration: none; }
a:hover { color: var(--gold); }

img { max-width: 100%; }

::selection { background: rgba(201, 163, 92, 0.35); }

/* ---------- Header ---------- */

.site-header {
    position: fixed;
    inset-inline: 0;
    top: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(0.75rem, 2vw, 1.4rem);
    padding: 0.75rem clamp(1rem, 4vw, 3rem);
    transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}

.site-header.is-scrolled {
    background: rgba(11, 13, 17, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--line);
    padding-block: 0.5rem;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--ink);
    min-width: 0;
}

.site-brand:hover { color: var(--gold-bright); }

.site-brand svg,
.site-brand-logo {
    display: block;
    width: var(--logo-size, 48px);
    height: var(--logo-size, 48px);
    object-fit: contain;
    border-radius: 10px;
    flex-shrink: 0;
}

.site-brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.15rem, 2.4vw, 1.4rem);
    line-height: 1.15;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.site-nav {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: clamp(0.55rem, 1.6vw, 1.5rem);
    font-weight: 500;
    font-size: clamp(0.86rem, 1.35vw, 0.98rem);
    min-width: 0;
}

.site-nav a { color: var(--ink-soft); position: relative; padding-block: 0.3rem; display: inline-flex; align-items: center; gap: 0.35rem; }
.site-nav a::after {
    content: '';
    position: absolute;
    inset-inline: 50% 50%;
    bottom: 0;
    height: 2px;
    background: var(--gold);
    transition: inset-inline 0.3s ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after, .site-nav a.is-active::after { inset-inline: 0 0; }

.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 1.05em;
    height: 1.05em;
    opacity: 0.92;
}

.nav-icon .menu-icon-svg,
.menu-icon-svg {
    width: 1em;
    height: 1em;
    display: block;
}

.nav-label { display: inline-block; }

.site-nav .nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex: 0 0 auto;
    white-space: nowrap;
    text-align: center;
    line-height: 1.25;
    border: 1px solid var(--gold-deep);
    color: var(--gold-bright);
    border-radius: 999px 8px 999px 8px;
    padding: 0.55rem 1.2rem;
    min-height: 2.55rem;
    box-sizing: border-box;
}
.site-nav .nav-cta::after { display: none; }
.site-nav .nav-cta:hover { background: rgba(201, 163, 92, 0.12); }

.nav-toggle {
    display: none;
    position: relative;
    z-index: 70;
    width: 2.65rem;
    height: 2.65rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.34rem;
    margin-inline-start: auto;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    padding: 0;
}

.nav-toggle-bar {
    display: block;
    width: 1.15rem;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

body.nav-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(0.42rem) rotate(45deg);
}
body.nav-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
body.nav-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-0.42rem) rotate(-45deg);
}

.nav-backdrop {
    display: none;
}

html[data-hero-overlay="photo"] .site-header:not(.is-scrolled) .site-brand,
html[data-hero-overlay="photo"] .site-header:not(.is-scrolled) .site-nav a {
    color: rgba(255, 252, 248, 0.94);
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.55);
}

html[data-hero-overlay="photo"] .site-header:not(.is-scrolled) .site-brand:hover,
html[data-hero-overlay="photo"] .site-header:not(.is-scrolled) .site-nav a:hover,
html[data-hero-overlay="photo"] .site-header:not(.is-scrolled) .site-nav a.is-active {
    color: #ffffff;
}

html[data-hero-overlay="photo"] .site-header:not(.is-scrolled) .site-nav a::after {
    background: color-mix(in srgb, var(--gold-bright) 45%, #ffffff);
}

html[data-hero-overlay="photo"] .site-header:not(.is-scrolled) .site-nav .nav-cta {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-shadow: none;
}

html[data-hero-overlay="photo"] .site-header:not(.is-scrolled) .site-nav .nav-cta:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.75);
}

html[data-hero-overlay="photo"][data-theme="light"] .site-header.is-scrolled .site-brand,
html[data-hero-overlay="photo"][data-theme="light"] .site-header.is-scrolled .site-nav a {
    text-shadow: none;
}

html[data-hero-overlay="photo"][data-theme="light"] .site-header.is-scrolled .site-nav .nav-cta {
    border-color: var(--gold-deep, var(--gold));
    color: var(--gold-deep, var(--gold));
    background: color-mix(in srgb, var(--gold) 8%, #ffffff);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

@media (max-width: 1100px) {
    .site-nav { gap: 0.55rem; font-size: 0.88rem; }
    .site-nav .nav-cta {
        padding: 0.48rem 0.95rem;
        min-height: 2.35rem;
        font-size: 0.86rem;
    }
}

@media (max-width: 900px) {
    .site-nav .nav-cta { display: none; }
}

@media (max-width: 860px) {
    .nav-toggle {
        display: inline-flex;
        color: var(--ink);
    }

    html[data-hero-overlay="photo"] .site-header:not(.is-scrolled) .nav-toggle {
        color: rgba(255, 252, 248, 0.96);
        text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
    }

    .site-header {
        flex-wrap: nowrap;
    }

    .site-brand-name {
        font-size: 1.05rem;
        max-width: 42vw;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .site-brand-logo {
        width: min(var(--logo-size, 48px), 40px);
        height: min(var(--logo-size, 48px), 40px);
    }

    .site-nav {
        position: fixed;
        inset-block: 0;
        inset-inline-end: 0;
        width: min(20rem, 86vw);
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.15rem;
        padding: 5.2rem 1.15rem 1.5rem;
        background: color-mix(in srgb, var(--bg) 94%, #ffffff);
        box-shadow: -18px 0 48px rgba(20, 12, 16, 0.18);
        border-inline-start: 1px solid var(--line);
        transform: translateX(105%);
        transition: transform 0.28s ease;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 65;
        font-size: 1rem;
    }

    html[dir="rtl"] .site-nav {
        transform: translateX(-105%);
    }

    body.nav-open .site-nav {
        transform: translateX(0);
    }

    .site-nav a {
        display: flex;
        width: 100%;
        padding: 0.85rem 0.7rem;
        border-radius: 12px;
        color: var(--ink) !important;
        text-shadow: none !important;
    }

    .site-nav a::after {
        display: none;
    }

    .site-nav a:hover,
    .site-nav a.is-active {
        background: color-mix(in srgb, var(--gold) 12%, transparent);
        color: var(--ink) !important;
    }

    .site-nav .nav-cta {
        display: inline-flex;
        margin-top: 0.65rem;
        justify-content: center;
        width: 100%;
        color: var(--gold-deep, var(--gold)) !important;
        border-color: var(--gold-deep, var(--gold));
        background: color-mix(in srgb, var(--gold) 10%, #ffffff);
        text-shadow: none !important;
    }

    .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 55;
        background: rgba(12, 10, 14, 0.42);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }

    .nav-backdrop[hidden] {
        display: none;
    }

    body.nav-open {
        overflow: hidden;
    }

    body.nav-open .site-header {
        background: color-mix(in srgb, var(--bg) 92%, #ffffff);
        box-shadow: 0 1px 0 var(--line);
    }

    body.nav-open .site-header .site-brand,
    body.nav-open .site-header .nav-toggle {
        color: var(--ink);
        text-shadow: none;
    }
}

@media (max-width: 420px) {
    .site-brand-name { display: none; }
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 7rem 1.25rem 5rem;
    overflow: hidden;
    background:
        radial-gradient(1200px 600px at 50% -10%, rgba(201, 163, 92, 0.16), transparent 60%),
        radial-gradient(900px 500px at 85% 110%, rgba(150, 115, 58, 0.12), transparent 65%),
        linear-gradient(180deg, #0b0d11 0%, #12151a 55%, #101318 100%);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.055;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23c9a35c' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='32' cy='56' rx='11' ry='8' transform='rotate(-22 32 56)'/%3E%3Cpath d='M42 52V16'/%3E%3Cpath d='M42 16c10 3 14 12 12 24'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 80px 80px;
    pointer-events: none;
}

/* ---------- Photo hero (preview / proposed homepage) ---------- */

.hero--photo {
    align-items: stretch;
    justify-content: flex-end;
    text-align: start;
    padding: 0;
    background: #0b0d11;
}

.hero--photo::before { display: none; }

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 18% center;
    display: block;
    transform: scale(1.04);
    animation: heroKen 18s ease-in-out alternate infinite;
}

@keyframes heroKen {
    from { transform: scale(1.04) translate3d(0, 0, 0); }
    to { transform: scale(1.1) translate3d(-1.5%, 1%, 0); }
}

.hero-veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(11, 13, 17, 0.18) 0%, rgba(11, 13, 17, 0.42) 42%, rgba(11, 13, 17, 0.88) 72%, rgba(11, 13, 17, 0.96) 100%),
        linear-gradient(180deg, rgba(11, 13, 17, 0.55) 0%, transparent 28%, transparent 68%, rgba(11, 13, 17, 0.9) 100%);
}

.hero--photo-light .hero-veil {
    background:
        linear-gradient(90deg, rgba(12, 10, 18, 0.15) 0%, rgba(12, 10, 18, 0.42) 40%, rgba(12, 10, 18, 0.88) 70%, rgba(12, 10, 18, 0.96) 100%),
        linear-gradient(180deg, rgba(12, 10, 18, 0.5) 0%, transparent 30%, transparent 65%, rgba(12, 10, 18, 0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(36rem, calc(100% - 2.5rem));
    margin-block: 0;
    margin-inline-start: clamp(1rem, 6vw, 5rem);
    margin-inline-end: auto;
    padding: clamp(7.5rem, 14vw, 10rem) 0 clamp(4rem, 8vw, 5.5rem);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-brand {
    margin: 0 0 0.85rem;
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 3.4vw, 2.15rem);
    font-weight: 700;
    color: var(--gold-bright);
    line-height: 1.2;
    animation: rise 0.9s ease both;
}

.hero--photo .hero-eyebrow {
    animation: rise 0.9s ease 0.08s both;
}

.hero--photo .hero-title {
    margin: 0.15rem 0 1rem;
    text-align: start;
    font-size: clamp(2.8rem, 8vw, 4.6rem);
    background: linear-gradient(
        160deg,
        #ffffff 8%,
        color-mix(in srgb, var(--gold-bright) 55%, #ffffff) 42%,
        color-mix(in srgb, var(--gold) 28%, #f4eddd) 92%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 18px rgba(0, 0, 0, 0.35));
    animation: rise 0.95s ease 0.16s both;
}

.hero--photo .hero-sub {
    text-align: start;
    max-width: 28rem;
    color: rgba(245, 240, 230, 0.88);
    text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
    animation: rise 0.95s ease 0.24s both;
}

.hero--photo .hero-actions {
    justify-content: flex-start;
    animation: rise 0.95s ease 0.32s both;
}

.hero--photo .hero-scroll-hint {
    z-index: 2;
    color: rgba(245, 240, 230, 0.7);
}

.hero--photo .btn-ghost {
    background: rgba(11, 13, 17, 0.35);
    backdrop-filter: blur(6px);
    border-color: rgba(201, 163, 92, 0.55);
    color: #f6e7c5;
}

@media (max-width: 860px) {
    .hero-media img { object-position: 12% center; }

    .hero-veil {
        background:
            linear-gradient(180deg, rgba(11, 13, 17, 0.5) 0%, rgba(11, 13, 17, 0.35) 28%, rgba(11, 13, 17, 0.78) 62%, rgba(11, 13, 17, 0.96) 100%),
            linear-gradient(90deg, rgba(11, 13, 17, 0.15) 0%, rgba(11, 13, 17, 0.55) 100%);
    }

    .hero-content {
        width: min(100%, calc(100% - 2rem));
        margin-inline: auto;
        padding-inline: 0.25rem;
        padding-bottom: 4.5rem;
        align-items: center;
        text-align: center;
    }

    .hero--photo .hero-title,
    .hero--photo .hero-sub { text-align: center; }

    .hero--photo .hero-actions { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-media img { animation: none; transform: none; }
}

.hero-eyebrow {
    margin: 0 0 1rem;
    color: var(--gold);
    font-size: 1.05rem;
    font-weight: 500;
    animation: rise 0.9s ease both;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
    content: '';
    display: inline-block;
    width: 42px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
    vertical-align: middle;
    margin-inline: 0.8rem;
}

.hero-eyebrow::after { background: linear-gradient(90deg, var(--gold), transparent); }

.hero-title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(3.2rem, 11vw, 6.8rem);
    line-height: 1.15;
    background: linear-gradient(160deg, #f6e7c5 15%, var(--gold-bright) 45%, var(--gold-deep) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 30px 80px rgba(201, 163, 92, 0.18);
    animation: rise 0.9s 0.12s ease both;
}

.hero-sub {
    margin: 1.4rem auto 0;
    max-width: 34rem;
    color: var(--ink-soft);
    font-size: clamp(1.05rem, 2.4vw, 1.25rem);
    animation: rise 0.9s 0.24s ease both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
    margin-top: 2.4rem;
    animation: rise 0.9s 0.36s ease both;
}

.hero-wave {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 130px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 5px;
    opacity: 0.5;
    mask-image: linear-gradient(180deg, transparent, #000 45%);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 45%);
    pointer-events: none;
}

.hero-wave span {
    width: 4px;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(180deg, var(--gold-bright), rgba(150, 115, 58, 0.25));
    animation: wave 2.6s ease-in-out infinite;
    height: 18%;
}

@keyframes wave {
    0%, 100% { height: 16%; }
    50% { height: var(--h, 60%); }
}

@keyframes rise {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-scroll-hint {
    position: absolute;
    bottom: 1.4rem;
    inset-inline: 0;
    display: flex;
    justify-content: center;
    color: var(--muted);
    font-size: 0.85rem;
    animation: floaty 2.8s ease-in-out infinite;
}

@keyframes floaty {
    0%, 100% { transform: translateY(0); opacity: 0.55; }
    50% { transform: translateY(7px); opacity: 1; }
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.78rem 2rem;
    border-radius: 999px 6px 999px 6px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.4;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:active { transform: translateY(1px); }

.btn-gold {
    background: linear-gradient(150deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
    color: #1d1608;
    box-shadow: 0 12px 34px rgba(201, 163, 92, 0.28);
}
.btn-gold:hover { color: #000; transform: translateY(-2px); box-shadow: 0 18px 44px rgba(201, 163, 92, 0.4); }

.btn-ghost {
    border-color: var(--gold-deep);
    color: var(--gold-bright);
    background: rgba(201, 163, 92, 0.06);
}
.btn-ghost:hover { background: rgba(201, 163, 92, 0.14); color: var(--gold-bright); transform: translateY(-2px); }

.btn-whatsapp {
    border-color: rgba(34, 193, 94, 0.55);
    color: #7fe3a8;
    background: rgba(34, 193, 94, 0.08);
}
.btn-whatsapp:hover { background: rgba(34, 193, 94, 0.16); color: #a5f0c3; transform: translateY(-2px); }

.btn-sm { padding: 0.45rem 1.2rem; font-size: 0.9rem; }

/* ---------- Sections ---------- */

.section {
    width: var(--shell);
    margin: 0 auto;
    padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section-head {
    margin-bottom: clamp(1.8rem, 4vw, 2.8rem);
}

.section-eyebrow {
    margin: 0 0 0.4rem;
    color: var(--gold);
    font-size: 0.95rem;
    font-weight: 500;
}

.section-eyebrow::after {
    content: '';
    display: inline-block;
    width: 46px;
    height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent);
    vertical-align: middle;
    margin-inline-start: 0.7rem;
}

.section-title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.7rem, 4.5vw, 2.5rem);
    line-height: 1.4;
}

.section-lead {
    margin: 0.7rem 0 0;
    max-width: 40rem;
    color: var(--ink-soft);
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-eyebrow, .hero-title, .hero-sub, .hero-actions { animation: none; }
    .hero-wave span { animation: none; height: 30%; }
}

/* ---------- Category grid ---------- */

.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.1rem;
}

.cat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1.7rem 1.5rem 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        radial-gradient(400px 160px at 85% -20%, rgba(201, 163, 92, 0.12), transparent 70%),
        linear-gradient(170deg, var(--surface), var(--surface-2));
    color: var(--ink);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.cat-card::after {
    content: '';
    position: absolute;
    inset-inline-start: 1.5rem;
    top: 0;
    width: 52px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), transparent);
    border-radius: 0 0 3px 3px;
}

.cat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(201, 163, 92, 0.45);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.35);
    color: var(--ink);
}

.cat-card-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.5;
}

.cat-card-desc {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    flex: 1;
}

.cat-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.8rem;
    color: var(--gold);
    font-size: 0.88rem;
    font-weight: 500;
}

.cat-card-meta .arrow { transition: transform 0.3s ease; }
.cat-card:hover .arrow { transform: translateX(-6px); }

/* ---------- Track rows ---------- */

.track-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--line);
}

.track-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.05rem 0.4rem;
    border-bottom: 1px solid var(--line);
    transition: background 0.25s ease;
}

.track-row:hover { background: rgba(201, 163, 92, 0.04); }

.track-row.is-playing { background: rgba(201, 163, 92, 0.08); }

.track-play {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--gold-deep);
    background: rgba(201, 163, 92, 0.08);
    color: var(--gold-bright);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.track-play:hover { background: rgba(201, 163, 92, 0.22); transform: scale(1.06); }

.track-play svg { width: 17px; height: 17px; fill: currentColor; }
.track-play .icon-pause { display: none; }
.track-row.is-playing .icon-play { display: none; }
.track-row.is-playing .icon-pause { display: block; }

.track-info { flex: 1; min-width: 0; }

.track-title {
    margin: 0;
    font-weight: 500;
    font-size: 1.02rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-meta {
    margin: 0.1rem 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 0.05rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--gold);
    font-size: 0.75rem;
}

.track-actions { display: flex; gap: 0.45rem; flex: 0 0 auto; }

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.icon-btn:hover { color: var(--gold-bright); border-color: var(--gold-deep); }
.icon-btn svg { width: 17px; height: 17px; fill: currentColor; }

@media (max-width: 560px) {
    .track-actions .icon-btn.act-share { display: none; }
    .track-play { width: 42px; height: 42px; }
}

/* ---------- Rhythm tabs ---------- */

.rhythm-tabs {
    display: inline-flex;
    gap: 0.35rem;
    padding: 0.3rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    margin-bottom: 1.6rem;
}

.rhythm-tabs a {
    padding: 0.38rem 1.35rem;
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: 0.94rem;
    font-weight: 500;
    transition: background 0.25s ease, color 0.25s ease;
}

.rhythm-tabs a:hover { color: var(--ink); }

.rhythm-tabs a.is-active {
    background: linear-gradient(150deg, var(--gold-bright), var(--gold-deep));
    color: #1d1608;
}

/* ---------- Inner pages ---------- */

.inner-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(7.2rem, 12vw, 9rem) 0 clamp(1.6rem, 3.5vw, 2.4rem);
    background:
        radial-gradient(900px 380px at 50% -20%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 65%),
        linear-gradient(180deg, var(--bg-deep), var(--bg));
}

.inner-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.14;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='160' viewBox='0 0 220 160'%3E%3Cg fill='none' stroke='%23c9a35c' stroke-width='1.2' opacity='0.85'%3E%3Cpath d='M28 110c8-28 18-48 28-48 8 0 10 14 4 34'/%3E%3Ccircle cx='28' cy='118' r='7' fill='%23c9a35c' stroke='none'/%3E%3Cpath d='M92 40v70'/%3E%3Ccircle cx='84' cy='112' r='7' fill='%23c9a35c' stroke='none'/%3E%3Cpath d='M130 52v62M168 46v68'/%3E%3Cpath d='M130 52h38l-4 14H130'/%3E%3Ccircle cx='122' cy='116' r='6' fill='%23c9a35c' stroke='none'/%3E%3Ccircle cx='160' cy='116' r='6' fill='%23c9a35c' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 220px 160px;
    background-repeat: repeat;
    mask-image: linear-gradient(120deg, transparent 8%, #000 38%, #000 72%, transparent 96%);
    -webkit-mask-image: linear-gradient(120deg, transparent 8%, #000 38%, #000 72%, transparent 96%);
}

.inner-hero-shell {
    position: relative;
    z-index: 1;
    width: var(--shell);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    align-items: end;
}

.inner-hero-copy { min-width: 0; }

.inner-hero-ornament {
    display: none;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 0.55rem;
    padding-bottom: 0.35rem;
    color: var(--gold);
    opacity: 0.55;
}

.ornament-note {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1;
    transform: translateY(0);
    animation: note-float 4.8s ease-in-out infinite;
}

.ornament-note--delay { animation-delay: 0.8s; font-size: clamp(1.3rem, 2.4vw, 1.9rem); opacity: 0.85; }
.ornament-note--soft { animation-delay: 1.5s; font-size: clamp(1.1rem, 2vw, 1.55rem); opacity: 0.65; }

@keyframes note-float {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(-8px); opacity: 1; }
}

@media (min-width: 820px) {
    .inner-hero-shell {
        grid-template-columns: minmax(0, 1.4fr) minmax(8rem, 0.6fr);
    }

    .inner-hero-ornament { display: flex; }
}

.inner-hero .section-title { font-size: clamp(2rem, 6vw, 3.1rem); color: var(--ink); }

.inner-hero .section-lead {
    max-width: 38rem;
    color: var(--ink-soft);
    font-size: 1.05rem;
}

.inner-hero-copy::after {
    content: '';
    display: block;
    width: min(12rem, 42%);
    height: 2px;
    margin-top: 1.15rem;
    background: linear-gradient(90deg, var(--gold), color-mix(in srgb, var(--gold) 20%, transparent));
    border-radius: 2px;
}

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

.page-body {
    max-width: 46rem;
    color: var(--ink-soft);
    font-size: 1.08rem;
}

.page-body p { margin: 0 0 1.1rem; }

/* Light theme: warmer paper, readable text, less empty void */
html[data-theme="light"] body {
    background:
        radial-gradient(1200px 520px at 90% -10%, color-mix(in srgb, var(--gold) 12%, transparent), transparent 55%),
        radial-gradient(900px 420px at 8% 30%, color-mix(in srgb, var(--gold) 8%, transparent), transparent 50%),
        linear-gradient(180deg, #fffafb 0%, var(--bg) 28%, var(--bg) 100%);
    color: var(--ink);
}

html[data-theme="light"] .site-header.is-scrolled {
    background: color-mix(in srgb, var(--bg) 88%, #ffffff);
    box-shadow: 0 1px 0 var(--line), 0 10px 28px rgba(40, 24, 28, 0.06);
}

html[data-theme="light"] .inner-hero {
    padding: clamp(5.2rem, 8.5vw, 6.4rem) 0 0.85rem;
    background:
        radial-gradient(780px 320px at 80% 0%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 70%),
        linear-gradient(180deg, color-mix(in srgb, var(--bg-deep) 55%, #fff3f0), var(--bg));
    border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}

html[data-theme="light"] .inner-hero::before {
    opacity: 0.34;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='160' viewBox='0 0 220 160'%3E%3Cg fill='none' stroke='%23c4788a' stroke-width='1.35' opacity='0.9'%3E%3Cpath d='M28 110c8-28 18-48 28-48 8 0 10 14 4 34'/%3E%3Ccircle cx='28' cy='118' r='7' fill='%23c4788a' stroke='none'/%3E%3Cpath d='M92 40v70'/%3E%3Ccircle cx='84' cy='112' r='7' fill='%23c4788a' stroke='none'/%3E%3Cpath d='M130 52v62M168 46v68'/%3E%3Cpath d='M130 52h38l-4 14H130'/%3E%3Ccircle cx='122' cy='116' r='6' fill='%23c4788a' stroke='none'/%3E%3Ccircle cx='160' cy='116' r='6' fill='%23c4788a' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
}

html[data-theme="light"] .inner-hero-ornament {
    opacity: 0.88;
    color: var(--gold-deep);
}

html[data-theme="light"] .inner-hero .section-lead {
    color: var(--ink-soft);
    font-weight: 500;
}

html[data-theme="light"] .section {
    padding: clamp(1.35rem, 3vw, 2.1rem) 0 clamp(2.2rem, 4.5vw, 3.2rem);
}

html[data-theme="light"] .section--catalog {
    position: relative;
}

html[data-theme="light"] .section--catalog::before {
    content: '';
    position: absolute;
    inset: -0.5rem -2%;
    pointer-events: none;
    opacity: 0.16;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='140' viewBox='0 0 180 140'%3E%3Cg fill='%23c4788a' opacity='0.55'%3E%3Ccircle cx='30' cy='100' r='6'/%3E%3Crect x='34' y='36' width='2.5' height='64'/%3E%3Cpath d='M36 36c16 3 24 12 24 22' fill='none' stroke='%23c4788a' stroke-width='2.5'/%3E%3Ccircle cx='92' cy='108' r='5'/%3E%3Crect x='96' y='48' width='2.5' height='60'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 180px 140px;
    mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}

/* Internal pages: single elegant reading column */
.page-article {
    width: min(44rem, 100%);
    margin: 0 auto;
    position: relative;
    border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
    border-radius: calc(var(--radius) + 4px);
    background:
        radial-gradient(420px 180px at 100% 0%, color-mix(in srgb, var(--gold) 12%, transparent), transparent 70%),
        linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, #fff), var(--surface));
    box-shadow: 0 18px 42px rgba(50, 28, 36, 0.06);
    overflow: hidden;
}

.page-article::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='140' viewBox='0 0 180 140'%3E%3Cg fill='%23c4788a' opacity='0.7'%3E%3Ccircle cx='30' cy='100' r='6'/%3E%3Crect x='34' y='36' width='2.5' height='64'/%3E%3Cpath d='M36 36c16 3 24 12 24 22' fill='none' stroke='%23c4788a' stroke-width='2.5'/%3E%3Ccircle cx='92' cy='108' r='5'/%3E%3Crect x='96' y='48' width='2.5' height='60'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 180px 140px;
    mask-image: linear-gradient(160deg, #000 0%, transparent 55%);
    -webkit-mask-image: linear-gradient(160deg, #000 0%, transparent 55%);
}

.page-article-band {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.15rem clamp(1.25rem, 3vw, 2rem) 0.85rem;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
}

.page-article-mark {
    flex: 0 0 auto;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--gold-deep);
    background: color-mix(in srgb, var(--gold) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
}

.page-article-band-copy { min-width: 0; }

.page-article-brand {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--ink);
    line-height: 1.3;
}

.page-article-tag {
    margin: 0.15rem 0 0;
    color: var(--ink-soft);
    font-size: 0.92rem;
    line-height: 1.55;
}

.page-article .page-body,
.page-article .page-body-rich {
    position: relative;
    z-index: 1;
    max-width: none;
    margin: 0;
    padding: clamp(1.35rem, 3vw, 1.9rem) clamp(1.25rem, 3vw, 2rem) clamp(1.6rem, 3.5vw, 2.2rem);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--ink-soft);
    font-weight: 500;
    line-height: 1.95;
    font-size: 1.08rem;
}

.page-article .page-body-rich p:first-child {
    font-size: 1.12rem;
    color: var(--ink);
}

.page-article-actions {
    justify-content: center;
    margin-top: 1.35rem;
}

html[data-theme="light"] .page-article {
    background:
        radial-gradient(460px 200px at 100% 0%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 72%),
        linear-gradient(180deg, #ffffff, color-mix(in srgb, var(--surface) 70%, #fff8f9));
}

html[data-theme="light"] .page-body,
html[data-theme="light"] .page-body-rich {
    color: var(--ink-soft);
    font-weight: 500;
    line-height: 1.9;
}

html[data-theme="light"] .site-footer {
    position: relative;
    overflow: hidden;
    color: var(--ink);
    border-top: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
    background:
        radial-gradient(720px 220px at 85% 0%, color-mix(in srgb, var(--gold) 12%, transparent), transparent 70%),
        radial-gradient(560px 180px at 12% 100%, color-mix(in srgb, var(--gold) 8%, transparent), transparent 65%),
        linear-gradient(180deg, #fffafb 0%, #faf3f4 48%, #f7eef0 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

html[data-theme="light"] .site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.11;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='150' viewBox='0 0 200 150'%3E%3Cg fill='%23c4788a' opacity='0.55'%3E%3Ccircle cx='34' cy='108' r='6'/%3E%3Crect x='38' y='42' width='2.5' height='66'/%3E%3Cpath d='M40 42c16 3 24 12 24 22' fill='none' stroke='%23c4788a' stroke-width='2.4'/%3E%3Ccircle cx='98' cy='114' r='5'/%3E%3Crect x='102' y='52' width='2.5' height='62'/%3E%3Ccircle cx='148' cy='110' r='5'/%3E%3Crect x='152' y='46' width='2.5' height='64'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 200px 150px;
    mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
}

html[data-theme="light"] .site-footer::after {
    content: '';
    position: absolute;
    inset-inline: 12% auto;
    top: 0;
    width: min(14rem, 40%);
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

html[data-theme="light"] .site-footer-inner {
    position: relative;
    z-index: 1;
}

html[data-theme="light"] .site-footer-brand {
    color: var(--gold-deep);
    letter-spacing: 0.01em;
}

html[data-theme="light"] .site-footer-note {
    color: var(--ink-soft);
    font-weight: 500;
}

html[data-theme="light"] .site-footer-nav a {
    color: var(--ink-soft);
    font-weight: 500;
}

html[data-theme="light"] .site-footer-nav a:hover,
html[data-theme="light"] .site-footer-copy a:hover {
    color: var(--gold-deep);
}

html[data-theme="light"] .site-footer-copy {
    color: color-mix(in srgb, var(--ink-soft) 82%, #7a5a64);
    border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
    background: transparent;
}

html[data-theme="light"] .site-footer-copy a {
    color: color-mix(in srgb, var(--ink-soft) 82%, #7a5a64);
}

html[data-theme="light"] .site-footer-sep {
    color: var(--gold-deep);
    opacity: 0.75;
}

html[data-theme="light"] .site-footer .social-links a {
    color: var(--ink-soft);
    border-color: color-mix(in srgb, var(--line) 95%, transparent);
    background: color-mix(in srgb, #ffffff 70%, transparent);
}

html[data-theme="light"] .site-footer .social-links a:hover {
    color: var(--gold-deep);
    border-color: color-mix(in srgb, var(--gold) 50%, transparent);
    background: #ffffff;
}

html[data-theme="light"] .site-footer .btn-whatsapp {
    color: #157a3e;
    border-color: color-mix(in srgb, var(--whatsapp) 45%, transparent);
    background: color-mix(in srgb, var(--whatsapp) 10%, #ffffff);
}

html[data-theme="light"] .site-footer .btn-whatsapp:hover {
    color: #0f5f30;
    background: color-mix(in srgb, var(--whatsapp) 16%, #ffffff);
    border-color: color-mix(in srgb, var(--whatsapp) 60%, transparent);
}

html[data-theme="light"] .page-body,
html[data-theme="light"] .page-body-rich,
html[data-theme="light"] .page-body-rich p,
html[data-theme="light"] .page-body-rich li {
    color: var(--ink);
}

html[data-theme="light"] .page-body-rich h1,
html[data-theme="light"] .page-body-rich h2,
html[data-theme="light"] .page-body-rich h3 {
    color: var(--ink);
}

html[data-theme="light"] .cat-card {
    background:
        radial-gradient(360px 140px at 90% -10%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 70%),
        linear-gradient(170deg, #ffffff, var(--surface-2));
    box-shadow: 0 10px 28px rgba(45, 28, 34, 0.06);
    border-color: color-mix(in srgb, var(--line) 95%, transparent);
}

html[data-theme="light"] .cat-card:hover {
    box-shadow: 0 18px 36px rgba(45, 28, 34, 0.1);
    border-color: color-mix(in srgb, var(--gold) 45%, transparent);
}

html[data-theme="light"] .cat-card-title {
    color: var(--ink);
}

html[data-theme="light"] .cat-card-desc,
html[data-theme="light"] .section-lead {
    color: var(--ink-soft);
    font-weight: 500;
}

html[data-theme="light"] .cat-card-meta {
    color: color-mix(in srgb, var(--gold-deep) 55%, var(--ink));
    font-weight: 600;
}

html[data-theme="light"] .panel {
    background: linear-gradient(170deg, var(--surface), var(--surface-2));
    box-shadow: 0 12px 30px rgba(45, 28, 34, 0.05);
}

html[data-theme="light"] .track-row {
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    border-color: var(--line);
}

html[data-theme="light"] .btn-ghost {
    color: var(--gold-deep);
    border-color: color-mix(in srgb, var(--gold-deep) 55%, transparent);
    background: color-mix(in srgb, var(--gold) 8%, #ffffff);
}

html[data-theme="light"] .btn-ghost:hover {
    background: color-mix(in srgb, var(--gold) 14%, #ffffff);
    color: var(--gold-deep);
}

html[data-theme="light"] .rhythm-tabs a {
    color: var(--ink-soft);
    border-color: var(--line);
}

html[data-theme="light"] .rhythm-tabs a.is-active,
html[data-theme="light"] .rhythm-tabs a:hover {
    color: var(--ink);
    border-color: color-mix(in srgb, var(--gold) 55%, transparent);
    background: color-mix(in srgb, var(--gold) 10%, #ffffff);
}

/* ---------- Panels (delivery / track share pages) ---------- */

.panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(170deg, var(--surface), var(--surface-2));
    padding: clamp(1.4rem, 4vw, 2.4rem);
}

.panel audio { width: 100%; margin-top: 0.6rem; }

.panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.6rem;
}

.delivery-track { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.delivery-track:last-of-type { border-bottom: 0; }

.delivery-track-title {
    margin: 0 0 0.3rem;
    font-size: 1.05rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.delivery-track-num {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--gold-deep);
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.delivery-track-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.45rem;
    color: var(--muted);
    font-size: 0.85rem;
}

/* ---------- Error pages ---------- */

.error-wrap {
    min-height: 70svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 1rem 4rem;
}

.error-code {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(4rem, 14vw, 7rem);
    line-height: 1;
    color: transparent;
    background: linear-gradient(160deg, var(--gold-bright), var(--gold-deep));
    -webkit-background-clip: text;
    background-clip: text;
}

/* ---------- About strip ---------- */

.about-strip {
    border-block: 1px solid var(--line);
    background:
        radial-gradient(700px 300px at 15% 120%, rgba(201, 163, 92, 0.09), transparent 65%),
        var(--bg-deep);
}

.about-strip .section { display: grid; gap: 1rem; }

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--bg-deep);
    padding: clamp(2.5rem, 6vw, 4rem) 0 1.6rem;
}

.site-footer-inner {
    width: var(--shell);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.1rem;
}

.site-footer-brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.7rem;
    color: var(--gold-bright);
}

.site-footer-note { margin: 0; color: var(--muted); font-size: 0.92rem; max-width: 34rem; }

.social-links { display: flex; gap: 0.7rem; }

.social-links a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-soft);
    transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.social-links a:hover { color: var(--gold-bright); border-color: var(--gold-deep); transform: translateY(-3px); }
.social-links svg { width: 18px; height: 18px; fill: currentColor; }

.site-footer-copy {
    margin-top: 0.8rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(201, 163, 92, 0.08);
    width: 100%;
    color: var(--muted);
    font-size: 0.8rem;
    text-align: center;
}

.site-footer-sep { margin: 0 0.5rem; color: var(--gold-deep); opacity: 0.6; }

.site-footer-copy a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer-copy a:hover {
    color: var(--gold-bright);
}

/* ---------- Floating WhatsApp ---------- */

.whatsapp-float {
    position: fixed;
    bottom: 1.3rem;
    inset-inline-start: 1.3rem;
    z-index: 55;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--whatsapp);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(34, 193, 94, 0.4);
    transition: transform 0.25s ease;
}

.whatsapp-float:hover { transform: scale(1.08); color: #fff; }
.whatsapp-float svg { width: 26px; height: 26px; fill: currentColor; }

body.has-player .whatsapp-float { bottom: 5.6rem; }

/* ---------- Bottom player bar ---------- */

.player-bar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 58;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.65rem clamp(1rem, 4vw, 2.2rem);
    background: rgba(11, 13, 17, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
    transform: translateY(110%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.player-bar.is-open { transform: translateY(0); }

.player-bar .track-play { width: 42px; height: 42px; }

.player-bar-title {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 32vw;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-bar-seek {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.player-bar-time {
    color: var(--muted);
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
    direction: ltr;
}

.player-bar input[type=range] {
    flex: 1;
    appearance: none;
    -webkit-appearance: none;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(to left, var(--gold) var(--fill, 0%), rgba(255, 255, 255, 0.14) var(--fill, 0%));
    outline: none;
    cursor: pointer;
}

.player-bar input[type=range]::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--gold-bright);
    border: none;
}

.player-bar input[type=range]::-moz-range-thumb {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--gold-bright);
    border: none;
}

.player-bar-close {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    line-height: 1;
}

.player-bar-close:hover { color: var(--ink); }

@media (max-width: 640px) {
    .player-bar { flex-wrap: wrap; gap: 0.5rem; }
    .player-bar-title { max-width: 55vw; }
    .player-bar-seek { flex-basis: 100%; order: 3; }
}

/* ---------- Font lab (preview page only) ---------- */

.font-lab {
    position: fixed;
    inset-inline-end: 1rem;
    bottom: 1.2rem;
    z-index: 70;
    width: min(20.5rem, calc(100vw - 1.5rem));
    font-family: var(--font-body);
}

.font-lab-toggle {
    display: none;
    margin-inline-start: auto;
    margin-bottom: 0.55rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(201, 163, 92, 0.45);
    background: rgba(11, 13, 17, 0.9);
    color: var(--gold-bright);
    font: inherit;
    font-size: 0.86rem;
    cursor: pointer;
}

.font-lab-panel {
    border: 1px solid rgba(201, 163, 92, 0.28);
    border-radius: 16px;
    background: rgba(11, 13, 17, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
    padding: 1rem 1rem 1.1rem;
    max-height: min(70vh, 34rem);
    overflow: auto;
}

.font-lab-title {
    margin: 0;
    color: var(--gold-bright);
    font-size: 0.95rem;
    font-weight: 700;
}

.font-lab-hint {
    margin: 0.35rem 0 0.9rem;
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.55;
}

.font-lab-label {
    margin: 0.85rem 0 0.45rem;
    color: var(--ink-soft);
    font-size: 0.78rem;
    font-weight: 500;
}

.font-lab-options {
    display: grid;
    gap: 0.4rem;
}

.font-lab-option {
    display: grid;
    gap: 0.15rem;
    text-align: start;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    border: 1px solid rgba(201, 163, 92, 0.14);
    background: rgba(255, 255, 255, 0.03);
    color: var(--ink);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.font-lab-option:hover {
    border-color: rgba(201, 163, 92, 0.4);
    background: rgba(201, 163, 92, 0.08);
}

.font-lab-option.is-active {
    border-color: var(--gold);
    background: rgba(201, 163, 92, 0.14);
}

.font-lab-option-name {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
}

.font-lab-option-note {
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.45;
}

body.has-player .font-lab { bottom: 5.4rem; }

@media (max-width: 860px) {
    .font-lab-toggle { display: inline-flex; }
    .font-lab.is-collapsed .font-lab-panel { display: none; }
    .font-lab:not(.is-collapsed) .font-lab-toggle { margin-bottom: 0.55rem; }
}

/* ---------- CMS rich pages & footer nav ---------- */
.page-body-rich h2,
.page-body-rich h3 {
    font-family: var(--font-display);
    color: var(--gold-bright);
    margin: 1.25rem 0 0.65rem;
}
.page-body-rich p { margin: 0 0 0.85rem; color: var(--ink-soft); line-height: 1.85; }
.page-body-rich ul,
.page-body-rich ol { margin: 0 0 1rem; padding-inline-start: 1.35rem; color: var(--ink-soft); }
.page-body-rich blockquote {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border-inline-start: 3px solid var(--gold-deep);
    background: rgba(201, 163, 92, 0.06);
    color: var(--ink-soft);
}
.page-body-rich a { color: var(--gold-bright); }
.page-body-rich img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.1rem 0;
    border-radius: 12px;
    border: 1px solid var(--line);
}
.page-body-rich hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 1.5rem 0;
}
.page-body-rich code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9em;
    padding: 0.1em 0.35em;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
}
.page-body-rich del { opacity: 0.75; }
.page-body-rich u { text-decoration: underline; }
.page-body-rich [style*="text-align: center"],
.page-body-rich [style*="text-align:center"] { text-align: center; }
.page-body-rich [style*="text-align: left"],
.page-body-rich [style*="text-align:left"] { text-align: left; }
.page-body-rich [style*="text-align: right"],
.page-body-rich [style*="text-align:right"] { text-align: right; }
.page-body-rich [style*="text-align: justify"],
.page-body-rich [style*="text-align:justify"] { text-align: justify; }
.page-body-rich h1 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    color: var(--ink);
    margin: 0 0 0.85rem;
}

.site-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.1rem;
    justify-content: center;
    margin: 0.75rem 0 1rem;
}
.site-footer-nav a {
    color: var(--muted);
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.site-footer-nav a:hover { color: var(--gold-bright); }

.track-waveform {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 56px;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}
.track-waveform span {
    flex: 1;
    min-width: 2px;
    background: linear-gradient(to top, var(--gold), rgba(201,163,92,0.35));
    border-radius: 2px 2px 0 0;
    opacity: 0.85;
}
