/*
Theme Name: Hello Elementor Child
Template: hello-elementor
*/



/* ============================================================
   SITE-WIDE VARIABLES & BASE STYLES
   These apply to every page so the header/footer are consistent.
   ============================================================ */

:root {
    --bg: #1A1613;
    --bg-raised: #211C17;
    --bg-card: #26201A;
    --gold: #B59410;
    --gold-bright: #E0B23D;
    --gold-dim: #5E4A0F;
    --cream: #F3ECDD;
    --muted: #A79A85;
    --muted-dim: #6E6353;
    --rule: #2E2618;
    --red-live: #C1462F;
}

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

html { scroll-behavior: smooth; font-size: 16px; }
@media(max-width: 900px) { html { font-size: 15px; } }
@media(max-width: 640px) { html { font-size: 14px; } }
@media(max-width: 480px) { html { font-size: 13px; } }
@media(max-width: 380px) { html { font-size: 12px; } }

body {
    background: var(--bg);
    color: var(--cream);
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
@media(max-width: 900px) { .wrap { padding: 0 24px; } }
@media(max-width: 640px) { .wrap { padding: 0 18px; } }
@media(max-width: 380px) { .wrap { padding: 0 14px; } }

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

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(16, 13, 11, .92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--rule);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
    gap: 24px;
}
@media(max-width: 640px) { .nav { height: 64px; } }

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.logo img.brand-mark { height: 56px; width: auto; display: block; }
@media(max-width: 640px) { .logo img.brand-mark { height: 44px; } }

.logo .word {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.35rem;
    letter-spacing: .01em;
    color: var(--cream);
}
.logo .word span { color: var(--gold); }
.logo .tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: .58rem;
    color: var(--muted-dim);
    letter-spacing: .1em;
    margin-top: 3px;
}
@media(max-width: 350px) { .logo .tag { display: none; } }

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: .85rem;
    color: var(--muted);
    white-space: nowrap;
}
.nav-links a { transition: color .2s ease; color: var(--muted); }
.nav-links a:hover { color: var(--cream); }

.nav-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.search-icon {
    width: 34px;
    height: 34px;
    border: 1px solid var(--rule);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: border-color .2s ease, color .2s ease;
    flex-shrink: 0;
}
.search-icon:hover { border-color: var(--gold-dim); color: var(--cream); }

.nav-cta {
    border: 1px solid var(--gold-dim);
    padding: 9px 18px;
    font-size: .8rem;
    color: var(--gold-bright);
    border-radius: 2px;
    transition: all .2s ease;
    white-space: nowrap;
}
.nav-cta:hover {
    background: var(--gold);
    color: var(--bg);
    border-color: var(--gold);
}

.nav-install-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--gold-dim);
    padding: 8px 14px;
    border-radius: 2px;
    font-family: 'JetBrains Mono', monospace;
    font-size: .68rem;
    letter-spacing: .06em;
    color: var(--gold-bright);
    background: transparent;
    white-space: nowrap;
    transition: all .2s ease;
}
.nav-install-btn:hover {
    background: var(--gold);
    color: var(--bg);
    border-color: var(--gold);
}

/* ============================================================
   MOBILE NAV
   ============================================================ */

.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 34px;
    height: 34px;
    padding: 9px 7px;
    background: transparent;
    border: 1px solid var(--rule);
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}
.nav-hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--muted);
    border-radius: 2px;
    transition: all 0.25s ease;
}
.nav-hamburger:hover { border-color: var(--gold-dim); }
.nav-hamburger:hover span { background: var(--cream); }
.nav-hamburger.open span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
    background: var(--gold-bright);
}
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
    background: var(--gold-bright);
}

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 8, 6, 0.7);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.mobile-nav-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: min(320px, 85vw);
    background: var(--bg-raised);
    border-left: 1px solid var(--gold-dim);
    z-index: 210;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 24px;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}
.mobile-nav.open { transform: none; }

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--rule);
    margin-bottom: 20px;
}
.mobile-nav-header .word {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.35rem;
    letter-spacing: 0.01em;
    color: var(--cream);
}
.mobile-nav-header .word span { color: var(--gold); }

.mobile-nav-close {
    background: none;
    border: 1px solid var(--rule);
    color: var(--cream);
    font-size: 1.5rem;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s ease, color 0.15s ease;
}
.mobile-nav-close:hover {
    border-color: var(--gold-dim);
    color: var(--gold-bright);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.mobile-nav-links a {
    display: block;
    padding: 12px 0;
    font-size: 0.95rem;
    color: var(--muted);
    border-bottom: 1px solid var(--rule);
    transition: color 0.2s ease, padding-left 0.2s ease;
    text-decoration: none;
}
.mobile-nav-links a:hover {
    color: var(--gold-bright);
    padding-left: 6px;
}

.mobile-nav-cta { margin-top: 24px; }

@media (max-width: 980px) {
    .nav-hamburger { display: flex; }
    .nav-links { display: none !important; }
}
@media (min-width: 981px) {
    .nav-hamburger { display: none !important; }
    .mobile-nav,
    .mobile-nav-overlay { display: none !important; }
}
@media (max-width: 560px) {
    .nav-right .nav-install-btn span.btn-label-full { display: none; }
    .nav-right { gap: 8px; }
    .nav-cta { padding: 7px 12px; font-size: 0.7rem; }
}
@media (max-width: 400px) {
    .nav-cta { display: none; }
}

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

footer {
    border-top: 1px solid var(--rule);
    padding: 56px 0 30px;
    background: var(--bg-raised);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr 1.2fr;
    gap: 32px;
    margin-bottom: 40px;
}
@media(max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

.footer-col h4 {
    font-family: 'JetBrains Mono', monospace;
    font-size: .7rem;
    letter-spacing: .1em;
    color: var(--gold-bright);
    margin-bottom: 16px;
    text-transform: uppercase;
}
.footer-col a,
.footer-col p {
    display: block;
    color: var(--muted);
    font-size: .82rem;
    margin-bottom: 10px;
}
.footer-col a:hover { color: var(--cream); }

.newsletter-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.newsletter-row input {
    flex: 1;
    background: var(--bg);
    border: 1px solid var(--rule);
    color: var(--cream);
    padding: 10px 12px;
    border-radius: 2px;
    font-size: .78rem;
    min-width: 0;
}
.newsletter-row button {
    background: var(--gold);
    color: var(--bg);
    border: none;
    padding: 10px 16px;
    border-radius: 2px;
    font-size: .78rem;
    font-weight: 600;
    white-space: nowrap;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 26px;
    border-top: 1px solid var(--rule);
    flex-wrap: wrap;
    gap: 16px;
}
.footer-copy { font-size: .75rem; color: var(--muted-dim); }

.footer-social { display: flex; gap: 14px; }
.footer-social a {
    width: 32px;
    height: 32px;
    border: 1px solid var(--rule);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: all .2s ease;
}
.footer-social a:hover {
    border-color: var(--gold-dim);
    color: var(--gold-bright);
}

/* ============================================================
   GLOBAL BUTTON RESET
   Neutralizes browser defaults so buttons and links
   don't inherit the OS's pink/blue focus styling.
   ============================================================ */

button,
input[type="button"],
input[type="submit"],
.btn-primary,
.btn-primary-sm,
.btn-outline-sm,
.btn-ghost-sm,
.btn-ghost-block {
    font-family: inherit;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    color: inherit;
    border: none;
    text-decoration: none;
}

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

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--gold);
    color: var(--bg);
    padding: 14px 28px;
    font-weight: 600;
    font-size: .9rem;
    border-radius: 2px;
    border: none;
    transition: background .2s ease, transform .15s ease;
    text-decoration: none;
    line-height: 1.2;
}
.btn-primary:hover {
    background: var(--gold-bright);
    color: var(--bg);
    transform: translateY(-1px);
}
@media(max-width: 480px) {
    .btn-primary { padding: 11px 20px; font-size: .82rem; }
}

.btn-primary-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gold);
    color: var(--bg);
    padding: 11px 22px;
    font-weight: 600;
    font-size: .82rem;
    border-radius: 2px;
    border: none;
    transition: background .2s ease;
    text-decoration: none;
    line-height: 1.2;
}
.btn-primary-sm:hover {
    background: var(--gold-bright);
    color: var(--bg);
}
@media(max-width: 480px) {
    .btn-primary-sm { padding: 9px 16px; font-size: .74rem; }
}

.btn-outline-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--rule);
    color: var(--muted);
    padding: 9px 16px;
    font-size: .75rem;
    border-radius: 2px;
    transition: all .2s ease;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.2;
}
.btn-outline-sm:hover {
    border-color: var(--gold-dim);
    color: var(--cream);
}
@media(max-width: 480px) {
    .btn-outline-sm { padding: 7px 12px; font-size: .68rem; }
}

.btn-ghost-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--rule);
    color: var(--muted);
    padding: 11px 22px;
    font-size: .82rem;
    border-radius: 2px;
    background: none;
    cursor: pointer;
    transition: all .2s ease;
    text-decoration: none;
    line-height: 1.2;
}
.btn-ghost-sm:hover {
    border-color: var(--gold-dim);
    color: var(--cream);
}
.btn-ghost-sm:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.btn-ghost-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border: 1px solid var(--rule);
    color: var(--cream);
    padding: 12px;
    font-size: .8rem;
    border-radius: 2px;
    text-align: center;
    transition: border-color .2s ease;
    background: none;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    line-height: 1.2;
}
.btn-ghost-block:hover {
    border-color: var(--gold-dim);
    color: var(--cream);
}
@media(max-width: 480px) {
    .btn-ghost-block { padding: 9px; font-size: .72rem; }
}

/* ============================================================
   FIX: STRONGER HAMBURGER HOVER (overrides browser defaults)
   ============================================================ */

.nav-hamburger {
    background: transparent !important;
    color: inherit !important;
    -webkit-appearance: none;
    appearance: none;
}
.nav-hamburger:hover,
.nav-hamburger:focus {
    background: transparent !important;
    border-color: var(--gold-dim) !important;
    outline: none;
}
.nav-hamburger:hover span,
.nav-hamburger:focus span {
    background: var(--cream) !important;
}
.nav-hamburger.open:hover span:nth-child(1),
.nav-hamburger.open:focus span:nth-child(1),
.nav-hamburger.open:hover span:nth-child(3),
.nav-hamburger.open:focus span:nth-child(3) {
    background: var(--gold-bright) !important;
}

/* ============================================================
   FIX: MOBILE NAV CTA BUTTON
   Ensures the LICENSE A SONG link in the drawer has full styling
   ============================================================ */

.mobile-nav-cta .btn-primary {
    display: block !important;
    width: 100%;
    text-align: center;
    background: var(--gold);
    color: var(--bg);
    padding: 14px 20px;
    border-radius: 2px;
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .04em;
    border: none;
    text-decoration: none;
}
.mobile-nav-cta .btn-primary:hover,
.mobile-nav-cta .btn-primary:focus {
    background: var(--gold-bright);
    color: var(--bg);
}

/* ============================================================
   FOOTER — legal links & privacy note
   ============================================================ */

.footer-privacy-note {
    margin-top: 10px;
    font-size: 0.7rem;
    color: var(--muted-dim);
    line-height: 1.5;
}

.footer-privacy-note a {
    color: var(--gold-dim);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.footer-privacy-note a:hover,
.footer-privacy-note a:focus {
    color: var(--gold-bright);
}

.footer-copy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-copy-divider {
    color: var(--muted-dim);
    opacity: 0.5;
}

.footer-legal-link {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal-link:hover,
.footer-legal-link:focus {
    color: var(--gold-bright);
    text-decoration: underline;
    text-underline-offset: 3px;
}