@tailwind base;
@tailwind components;
@tailwind utilities;

/* Brand Fonts */
@font-face {
    font-family: "FortuneVar";
    src: url("assets/fonts/FortuneVariable-Regular.ttf") format("truetype");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "FortuneVar";
    src: url("assets/fonts/FortuneVariable-Bold.ttf") format("truetype");
    font-weight: 800 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "FranklinGothic";
    src: url("assets/fonts/FranklinGothic.ttf") format("truetype");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "FranklinGothicCond";
    src: url("assets/fonts/Franklin_Gothic_Condensed.ttf") format("truetype");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

/* On-load hero stagger */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
.hero .logo {
    animation: fadeUp 0.7s ease-out 0.05s both;
}
.hero .kicker {
    animation: fadeUp 0.7s ease-out 0.15s both;
}
.hero .badge {
    animation: fadeUp 0.7s ease-out 0.25s both;
}
.partners {
    animation: fadeUp 0.7s ease-out 0.35s both;
}

/* On-scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}
.delay-1 {
    transition-delay: 0.1s;
}
.delay-2 {
    transition-delay: 0.2s;
}
.delay-3 {
    transition-delay: 0.3s;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero .logo,
    .hero .kicker,
    .hero .badge,
    .partners,
    .reveal {
        animation: none;
        transition: none;
        opacity: 1;
        transform: none;
    }
}

/* Colors & Global Styles */
:root {
    --bg: #060606;
    --fg: #f5f5f5;
    --muted: #b7b7b7;
    --gold: #ffd45a;
    --gold2: #e3a93b;
    --border: rgba(255, 255, 255, 0.12);
    --card: rgba(255, 255, 255, 0.055);
}

* {
    box-sizing: border-box;
}
html,
body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--fg);
}
body {
    font-family: "FranklinGothic", system-ui, -apple-system, Segoe UI, Roboto,
        Arial, sans-serif;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Nav */
.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--border);
    padding: 2px 20px;
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}
.nav a {
    color: var(--fg);
    text-decoration: none;
    font-size: 14px;
    opacity: 0.9;
    margin-left: 18px;
}
.nav a:hover {
    color: var(--gold);
}
/* Default: show links inline */
.nav-links {
    display: flex;
    gap: 20px;
}

.nav-toggle {
    display: none !important;
}

.nav-links {
    display: flex !important;
    gap: 14px;
}

/* Mobile tweaks: allow wrapping and smaller text */
@media (max-width: 768px) {
    .nav-inner {
        align-items: flex-start;
    }
    .nav-links {
        flex-wrap: wrap; /* or remove for one-line */
        row-gap: 8px;
    }
    .nav a {
        font-size: 13px;
        margin-left: 0;
    }
}

/* Hero */
.hero {
    position: relative;
    min-height: 88vh;
    display: grid;
    place-items: center;
    text-align: center;
    overflow: hidden;
    background-image: radial-gradient(
            900px 500px at 20% 0%,
            rgba(255, 212, 90, 0.12),
            transparent 60%
        ),
        radial-gradient(
            800px 600px at 80% 10%,
            rgba(227, 169, 59, 0.1),
            transparent 60%
        ),
        linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.8)),
        url("assets/img/High-Stakes-BG.png");
    background-size: cover;
    background-position: center 85%;
    /* border-bottom: 1px solid var(--border); */
}
.hero .logo {
    width: min(760px, 80vw);
    filter: drop-shadow(0 0 26px rgba(255, 212, 90, 0.65));
}
.hero .kicker {
    margin-top: 10px;
    font-size: 12px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: #d6d6d6;
}

.badge {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 14px;
    background: var(--card);
}
.badge .pill {
    background: var(--gold);
    color: #000;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 800;
}

.section {
    padding: 80px 0;
}
.section h2 {
    font-family: "FortuneVar", serif;
    font-size: clamp(28px, 4vw, 42px);
    margin: 0;
}
.section p.lead {
    color: var(--muted);
    margin-top: 8px;
    max-width: 720px;
}

.partners {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    justify-content: center;
    align-items: center;
    opacity: 0.9;
}
.partners img {
    height: 34px;
    filter: grayscale(100%) brightness(85%);
    opacity: 0.75;
    transition: all 0.2s ease;
}
.partners img:hover {
    filter: grayscale(0%) brightness(100%);
    opacity: 1;
}
/* .partners .unity {
    height: 40px;
}
.partners .tt {
    height: 40px; */
/* } */
.card {
    /* display: grid;
    place-items: center;
    padding: 10px; */
}
.hero-img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-top: 10px;
}

.grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
}
.card img {
    width: 100%;
    display: block;
}
.card .body {
    padding: 14px 16px;
}
.tag {
    font-size: 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 10px;
    color: #d9d9d9;
}

.cta {
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 24px;
    display: grid;
    gap: 16px;
    background: linear-gradient(
        90deg,
        rgba(255, 212, 90, 0.16),
        rgba(227, 169, 59, 0.16)
    );
}
.btn {
    appearance: none;
    border: 0;
    background: var(--gold);
    color: #000;
    font-weight: 800;
    padding: 12px 18px;
    border-radius: 14px;
    cursor: pointer;
    text-decoration: none;
}
.btn-alt {
    background: transparent;
    color: var(--fg);
    border: 1px solid var(--border);
}
.btn:focus {
    outline: 2px solid var(--gold2);
    outline-offset: 2px;
}

.footer {
    border-top: 1px solid var(--border);
    padding: 18px 0;
    color: #a7a7a7;
    font-size: 14px;
}
.footer .container {
    display: flex;
    justify-content: space-between; /* push text left, icons right */
    align-items: center; /* keeps them aligned on the same line */
    flex-wrap: wrap; /* allows wrapping on very small screens */
}
.footer .socials {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-left: 20px;
}

.footer .socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, background 0.2s ease;
    opacity: 0.8;
}

.footer .socials a:hover {
    transform: scale(1.1);
    background: var(--gold); /* matches your festival theme */
}

.footer .socials img {
    width: 20px; /* keeps logos consistent */
    height: 20px;
    object-fit: contain;
}

/* Responsive helpers */
@media (max-width: 640px) {
    .footer .container {
        justify-content: center; /* center row */
        gap: 12px; /* spacing between text & icons */
        flex-wrap: wrap;
        text-align: center; /* centers the copyright text */
    }
    .footer .socials {
        margin-left: 0; /* remove left offset */
        justify-content: center; /* center icons */
        width: 100%; /* allow centering across row */
    }
}

/* 
PLAYLIST PAGE */
/* --- Card Glow & Lift --- */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow: 0 14px 40px rgba(255, 212, 90, 0.15);
}

/* --- Music Embeds --- */
#music iframe {
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease;
}
#music iframe:hover {
    transform: scale(1.02);
}

/* --- Button Animation --- */
.btn,
.btn-alt {
    transition: all 0.25s ease;
}
.btn:hover,
.btn-alt:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 212, 90, 0.25);
}

/* --- Reveal Animation (scroll in) --- */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.reveal.is-visible {
    animation: fadeSlideUp 0.8s ease forwards;
}

/* CONTACt */

/* Contact */
.contact-card {
    display: grid;
    gap: 28px;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
    padding: 40px;
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: 20px;
    box-shadow: 0 10px 30px #0007;
}
@media (max-width: 900px) {
    .contact-card {
        grid-template-columns: 1fr;
        padding: 24px;
    }
}
.form {
    display: grid;
    gap: 14px;
}
.field-group {
    display: grid;
    gap: 8px;
}
.label {
    font-size: 0.9rem;
    color: var(--muted);
}
.field {
    background: #0b0b0b;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    color: var(--fg);
    transition: border 0.2s, box-shadow 0.2s;
}
.field::placeholder {
    color: #9a9a9a;
}
.field:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px #ffd45a26;
}
.textarea {
    min-height: 140px;
    resize: vertical;
}
.honeypot {
    display: none;
}
.btn {
    border-radius: 14px;
    font-weight: 800;
    padding: 12px 18px;
}
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.small {
    opacity: 0.65;
    font-size: 0.9rem;
}
.sidebar {
    display: grid;
    gap: 16px;
}
.sidebar h3 {
    margin: 0 0 6px;
    font-family: FortuneVar;
}
/* Contact sidebar socials */
.contact-socials {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.contact-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card);
    border: 1px solid var(--border);
    transition: transform 0.2s ease, background 0.2s ease;
    opacity: 0.9;
}
.contact-socials a:hover {
    transform: translateY(-2px);
    background: #111;
}
.contact-socials img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
}

html {
    scroll-behavior: smooth;
}

/* width helper */
.container--narrow {
    max-width: 820px;
}
@media (max-width: 640px) {
    .container--narrow {
        max-width: 600px;
        padding: 0 16px;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 48px 0;
    }
    .contact-card {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 18px;
        border-radius: 16px;
    }
    .form {
        gap: 12px;
    }
    .label {
        font-size: 0.85rem;
    }
    .field {
        padding: 14px 16px;
        font-size: 16px;
    } /* stops iOS zoom */
    .textarea {
        min-height: 130px;
    }
    .btn {
        width: 100%;
        padding: 14px 18px;
    }
    .small {
        font-size: 0.88rem;
    }
    .sidebar {
        gap: 12px;
        padding-top: 10px;
        border-top: 1px solid var(--border);
    }
    .sidebar h3 {
        font-size: 18px;
    }
    .contact-socials a {
        width: 36px;
        height: 36px;
    }
    .contact-socials img {
        width: 16px;
        height: 16px;
    }
}
