/* ============================================================
   Layout — Montanhesa FM
   ============================================================ */

/* ── Header / Nav ────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    padding: var(--sp-4) 0;
    transition: background var(--transition-base), padding var(--transition-base), box-shadow var(--transition-base);
}

.site-header.scrolled {
    background: rgba(10, 10, 15, .92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--sp-3) 0;
    box-shadow: 0 1px 0 var(--color-border);
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: var(--sp-8);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    flex-shrink: 0;
}

.nav-logo img {
    height: 64px;
    width: auto;
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.nav-logo-name {
    font-size: var(--text-base);
    font-weight: var(--fw-bold);
    color: var(--color-white);
}

.nav-logo-freq {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
    margin-left: auto;
}

.nav-link {
    padding: var(--sp-2) var(--sp-4);
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
    color: var(--color-text-muted);
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background var(--transition-fast);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-white);
    background: rgba(255, 255, 255, .06);
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: rgba(10, 10, 15, .97);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--sp-2) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
    z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: block;
    padding: var(--sp-2) var(--sp-4);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-dropdown-item:hover,
.nav-dropdown-item.active {
    color: var(--color-white);
    background: rgba(255, 255, 255, .06);
}

.nav-cta {
    margin-left: var(--sp-4);
    padding: var(--sp-2) var(--sp-5);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
    padding: var(--sp-2);
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
.nav-mobile {
    display: none;
    flex-direction: column;
    gap: var(--sp-2);
    padding: var(--sp-6) var(--sp-6) var(--sp-8);
    background: rgba(10, 10, 15, .97);
    border-top: 1px solid var(--color-border);
}

.nav-mobile.open {
    display: flex;
}

.nav-mobile .nav-link {
    padding: var(--sp-3) var(--sp-4);
    font-size: var(--text-base);
}

/* ── Hero Section ────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background:
        var(--grad-hero),
        radial-gradient(ellipse 60% 50% at 80% 50%, rgba(79, 70, 229, .15) 0%, transparent 70%),
        var(--color-bg);
}

/* Grid pattern overlay */
.hero__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: var(--sp-20) 0;
}

.hero__eyebrow {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin-bottom: var(--sp-6);
}

.hero__title {
    font-size: clamp(var(--text-4xl), 7vw, var(--text-7xl));
    font-weight: var(--fw-black);
    color: var(--color-white);
    line-height: 1.05;
    letter-spacing: -.02em;
    margin-bottom: var(--sp-6);
}

.hero__subtitle {
    font-size: var(--text-xl);
    color: var(--color-text-muted);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: var(--sp-10);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-4);
    margin-bottom: var(--sp-16);
}

.hero__wave-wrap {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 60px;
    opacity: .6;
}

.hero__wave-bar {
    width: 5px;
    border-radius: 3px;
    background: var(--grad-primary);
    animation: wave-bar 1s ease-in-out infinite;
    transform-origin: bottom;
}

.hero__wave-bar:nth-child(1) {
    height: 20%;
    animation-delay: 0s;
}

.hero__wave-bar:nth-child(2) {
    height: 60%;
    animation-delay: .09s;
}

.hero__wave-bar:nth-child(3) {
    height: 40%;
    animation-delay: .18s;
}

.hero__wave-bar:nth-child(4) {
    height: 90%;
    animation-delay: .07s;
}

.hero__wave-bar:nth-child(5) {
    height: 50%;
    animation-delay: .22s;
}

.hero__wave-bar:nth-child(6) {
    height: 75%;
    animation-delay: .14s;
}

.hero__wave-bar:nth-child(7) {
    height: 35%;
    animation-delay: .28s;
}

.hero__wave-bar:nth-child(8) {
    height: 100%;
    animation-delay: .05s;
}

.hero__wave-bar:nth-child(9) {
    height: 55%;
    animation-delay: .19s;
}

.hero__wave-bar:nth-child(10) {
    height: 70%;
    animation-delay: .33s;
}

.hero__wave-bar:nth-child(11) {
    height: 30%;
    animation-delay: .10s;
}

.hero__wave-bar:nth-child(12) {
    height: 80%;
    animation-delay: .24s;
}

.hero__wave-bar:nth-child(13) {
    height: 45%;
    animation-delay: .38s;
}

.hero__wave-bar:nth-child(14) {
    height: 65%;
    animation-delay: .16s;
}

.hero__wave-bar:nth-child(15) {
    height: 25%;
    animation-delay: .29s;
}

.hero__wave-bar:nth-child(16) {
    height: 85%;
    animation-delay: .07s;
}

.hero__wave-bar:nth-child(17) {
    height: 48%;
    animation-delay: .21s;
}

.hero__wave-bar:nth-child(18) {
    height: 72%;
    animation-delay: .13s;
}

.hero__wave-bar:nth-child(19) {
    height: 38%;
    animation-delay: .35s;
}

.hero__wave-bar:nth-child(20) {
    height: 58%;
    animation-delay: .25s;
}

/* Floating visual on right side */
.hero__visual {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 440px;
    pointer-events: none;
    z-index: 1;
}

.hero__disc {
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #7C3AED, #4F46E5, #F97316, #FBBF24, #7C3AED);
    animation: disc-spin 12s linear infinite;
    opacity: .15;
    filter: blur(1px);
}

@keyframes disc-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Page Sections ───────────────────────────────────────── */
.section {
    padding: var(--sp-24) 0;
}

.section--dark {
    background: var(--color-bg);
}

.section--darker {
    background: var(--color-bg-2);
}

/* ── Sobre Section ───────────────────────────────────────── */
.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-16);
    align-items: center;
}

.sobre-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-4);
    margin-top: var(--sp-10);
}

.sobre-stat {
    padding: var(--sp-6);
    border-radius: var(--radius-lg);
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border);
    text-align: center;
}

.sobre-stat__number {
    font-size: var(--text-3xl);
    font-weight: var(--fw-black);
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.sobre-stat__label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-top: var(--sp-1);
}

.sobre-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sobre-glow-circle {
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, .2) 0%, rgba(79, 70, 229, .05) 60%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.sobre-glow-circle::before {
    content: '';
    position: absolute;
    inset: 20px;
    border-radius: 50%;
    border: 1px solid rgba(124, 58, 237, .2);
}

.sobre-glow-circle::after {
    content: '';
    position: absolute;
    inset: 60px;
    border-radius: 50%;
    border: 1px solid rgba(124, 58, 237, .15);
}

.sobre-mic-icon {
    font-size: 6rem;
    z-index: 1;
    filter: drop-shadow(0 0 30px rgba(124, 58, 237, .6));
}

/* ── Onde Ouvir ──────────────────────────────────────────── */
.stations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-6);
}

/* ── Contact Section ─────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--sp-8);
    align-items: start;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

/* ── Live Page Hero ──────────────────────────────────────── */
.live-hero {
    padding-top: calc(80px + var(--sp-16));
    padding-bottom: var(--sp-12);
    text-align: center;
    position: relative;
    background:
        radial-gradient(ellipse 60% 60% at 50% 0%, rgba(124, 58, 237, .3) 0%, transparent 70%),
        var(--color-bg);
}

.live-hero__title {
    font-size: var(--text-5xl);
    font-weight: var(--fw-black);
    color: var(--color-white);
    margin: var(--sp-4) 0 var(--sp-3);
    letter-spacing: -.02em;
}

.live-hero__sub {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
}

.live-section {
    padding: var(--sp-8) 0 var(--sp-24);
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
    background: var(--color-bg-2);
    border-top: 1px solid var(--color-border);
    padding: var(--sp-16) 0 var(--sp-8);
    /* leave room for sticky player */
    padding-bottom: calc(var(--sp-8) + 72px);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--sp-12);
    margin-bottom: var(--sp-12);
}

.footer-brand p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.8;
    max-width: 320px;
    margin: var(--sp-4) 0 var(--sp-6);
}

.footer-heading {
    font-size: var(--text-xs);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--color-text-dim);
    margin-bottom: var(--sp-5);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.footer-links a {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-bottom {
    padding-top: var(--sp-8);
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    flex-wrap: wrap;
}

.footer-bottom span {
    font-size: var(--text-xs);
    color: var(--color-text-dim);
}

.footer-bottom a {
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.footer-bottom a:hover {
    color: var(--color-primary);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .sobre-grid {
        grid-template-columns: 1fr;
        gap: var(--sp-12);
    }

    .sobre-visual {
        display: none;
    }

    .hero__visual {
        display: none;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: var(--sp-16) 0;
    }

    .section-title {
        font-size: var(--text-3xl);
    }

    .hero__title {
        font-size: var(--text-4xl);
    }

    .nav-cta {
        display: none;
    }

    .hero__subtitle {
        font-size: var(--text-base);
    }

    .stations-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--sp-8);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .sobre-stats {
        grid-template-columns: 1fr 1fr;
    }

    .player-bar__station-switch {
        display: none;
    }

    .live-hero__title {
        font-size: var(--text-3xl);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--sp-4);
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .sobre-stats {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .player-bar__info {
        gap: var(--sp-3);
    }

    .player-bar .player-bar__controls {
        gap: var(--sp-2);
    }

    .glass-card {
        flex-direction: column;
        align-items: stretch !important;
        text-align: center;
    }

    .glass-card .btn,
    .glass-card a.btn-ghost {
        width: 100%;
        justify-content: center;
    }

    .glass-card>div {
        flex-direction: column !important;
        text-align: center;
    }

    .glass-card img {
        margin: 0 auto;
    }
}