/**
 * Aplausos Festival - Home Page Styles
 */

/* ─── Hero ─────────────────────────────────────── */
.hero {
    position: relative;
    min-height: calc(100vh - 4rem);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        /* pool de luz onde os holofotes convergem — na altura do botão CTA */
        radial-gradient(ellipse 55% 22% at 50% 63%, rgba(222, 194, 106, 0.20) 0%, transparent 100%),
        radial-gradient(ellipse 60% 50% at 50% 30%, rgba(199, 121, 22, 0.10) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 20% 80%, rgba(234, 101, 36, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 40% 60% at 80% 80%, rgba(209, 143, 49, 0.06) 0%, transparent 60%),
        linear-gradient(180deg, #272a29 0%, #1e2120 100%);
    z-index: 0;
}

/* ── Central beam ──────────────────────────────────────── */
.hero-beam {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 520px;
    height: 120%;
    background: linear-gradient(
        to bottom,
        rgba(222, 194, 106, 0.30) 0%,
        rgba(199, 121, 22, 0.16) 50%,
        transparent 85%
    );
    clip-path: polygon(40% 0%, 60% 0%, 88% 100%, 12% 100%);
    pointer-events: none;
    z-index: 1;
    animation: beam-breathe 5s ease-in-out infinite;
}

@keyframes beam-breathe {
    0%, 100% { opacity: 0.65; }
    50%       { opacity: 1; }
}

/* ── Holofote esquerdo (canto superior-esq → botão CTA) ── */
.hero-spot-left {
    position: absolute;
    top: -20%;
    left: -5%;
    width: 520px;
    height: 120%;
    /* mesmo gradiente e intensidade do beam central */
    background: linear-gradient(
        to bottom,
        rgba(222, 194, 106, 0.30) 0%,
        rgba(199, 121, 22, 0.16) 50%,
        transparent 85%
    );
    /* cone angulado: origem estreita no topo-esq, converge no centro (~botão) */
    clip-path: polygon(28% 0%, 44% 0%, 78% 100%, 12% 100%);
    transform-origin: 36% 0%;
    pointer-events: none;
    z-index: 1;
    /* breathe (opacidade) + swing (rotação leve) em ciclos independentes */
    animation:
        spot-left  5.5s ease-in-out infinite,
        spot-swing-left  11s ease-in-out infinite;
}

/* ── Holofote direito (canto superior-dir → botão CTA) ── */
.hero-spot-right {
    position: absolute;
    top: -20%;
    right: -5%;
    width: 520px;
    height: 120%;
    /* mesmo gradiente e intensidade do beam central */
    background: linear-gradient(
        to bottom,
        rgba(222, 194, 106, 0.30) 0%,
        rgba(199, 121, 22, 0.16) 50%,
        transparent 85%
    );
    /* cone angulado espelhado */
    clip-path: polygon(56% 0%, 72% 0%, 88% 100%, 22% 100%);
    transform-origin: 64% 0%;
    pointer-events: none;
    z-index: 1;
    /* breathe (opacidade) + swing (rotação leve) em ciclos independentes */
    animation:
        spot-right 5.5s ease-in-out infinite 1.3s,
        spot-swing-left 11s ease-in-out infinite -5.5s;
        /* delay negativo de metade do período = sempre oposto ao da esquerda */
}

/* ── Pool de luz onde os holofotes se encontram (altura do CTA) ── */
.hero-spot-pool {
    position: absolute;
    top: 62%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 560px;
    max-width: 90vw;
    height: 260px;
    background: radial-gradient(
        ellipse,
        rgba(222, 194, 106, 0.22) 0%,
        rgba(199, 121, 22, 0.08) 45%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 1;
    animation: pool-glow 5.5s ease-in-out infinite 0.65s;
}

@keyframes spot-left {
    0%, 100% { opacity: 0.72; }
    50%       { opacity: 1; }
}
@keyframes spot-right {
    0%, 100% { opacity: 0.72; }
    50%       { opacity: 1; }
}
/* Oscilação lateral leve — pivô no topo do cone */
@keyframes spot-swing-left {
    0%   { transform: rotate(-5deg); }
    50%  { transform: rotate(5deg);  }
    100% { transform: rotate(-5deg); }
}
@keyframes pool-glow {
    0%, 100% { opacity: 0.75; transform: translate(-50%, -50%) scale(1);    }
    50%       { opacity: 1;    transform: translate(-50%, -50%) scale(1.10); }
}

/* ── Partículas flutuantes do palco ─────────────────────── */
@keyframes particle-float {
    0%   { opacity: 0;    transform: translateY(0)      translateX(0); }
    12%  { opacity: 1; }
    80%  { opacity: 0.35; }
    100% { opacity: 0;    transform: translateY(-65vh)   translateX(calc(var(--drift, 0) * 55px)); }
}

/* Stage floor line */
.hero-floor {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 5%,
        rgba(199, 121, 22, 0.15) 50%,
        transparent 95%
    );
    z-index: 2;
}

/* ─── Stats Counter ────────────────────────────── */
.stat-card {
    background: linear-gradient(135deg, rgba(205, 149, 66, 0.10) 0%, rgba(205, 149, 66, 0.04) 100%);
    border: 1px solid rgba(205, 149, 66, 0.15);
    transition: transform var(--duration) var(--ease-out),
                border-color var(--duration) var(--ease-out);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(205, 149, 66, 0.35);
}

/* ─── Testimonial Card ─────────────────────────── */
.testimonial-card {
    background: #f6f9eb;
    border: 1px solid #d4c9b0;
    transition: transform var(--duration) var(--ease-out),
                border-color var(--duration) var(--ease-out),
                box-shadow var(--duration) var(--ease-out);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(104, 25, 25, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* ─── Social Card ──────────────────────────────── */
.social-card {
    background: #f6f9eb;
    border: 1px solid #d4c9b0;
    overflow: hidden;
    transition: transform var(--duration) var(--ease-out),
                box-shadow var(--duration) var(--ease-out);
    text-decoration: none;
    color: inherit;
    display: block;
}

.social-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

/* line-clamp para caption do Instagram */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ─── Gallery Grid ─────────────────────────────── */
.gallery-item {
    overflow: hidden;
    border-radius: 0.5rem;
    position: relative;
}

.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 12, 0.5);
    opacity: 0;
    transition: opacity var(--duration) ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

/* ─── Partner Item ─────────────────────────────── */
.partner-item {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.75rem;
    transition: opacity var(--duration) ease;
}

.partner-item:hover {
    opacity: 0.85;
}

/* ─── Newsletter Input ─────────────────────────── */
.newsletter-input:focus {
    border-color: #681919;
    box-shadow: 0 0 0 3px rgba(104, 25, 25, 0.15);
}

/* ─── Countdown Timer ──────────────────────────── */
.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.countdown-number {
    font-size: clamp(2rem, 6vw, 3.5rem);
    line-height: 1;
}

.countdown-label {
    margin-top: 0.5rem;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
}

@media (max-width: 640px) {
    .countdown-unit {
        min-width: 44px;
    }
    .countdown-separator {
        font-size: 1.5rem !important;
    }
}

/* ─── Submarca Cards ───────────────────────────── */
.submarca-card {
    background: #f6f9eb;
    border: 1px solid #d4c9b0;
    border-radius: 0.75rem;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform var(--duration) var(--ease-out),
                border-color var(--duration) var(--ease-out),
                box-shadow var(--duration) var(--ease-out);
}

.submarca-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(104, 25, 25, 0.06) 0%, rgba(63, 2, 1, 0.03) 100%);
    opacity: 0;
    transition: opacity var(--duration) ease;
    pointer-events: none;
}

.submarca-card:hover {
    transform: translateY(-6px);
    border-color: rgba(104, 25, 25, 0.35);
    box-shadow: 0 14px 40px rgba(104, 25, 25, 0.10);
}

.submarca-card:hover::before {
    opacity: 1;
}

.submarca-card > * {
    position: relative;
    z-index: 1;
}

.submarca-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #cd9542 0%, #681919 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f6f9eb;
    font-size: 1.5rem;
    box-shadow: 0 6px 20px rgba(104, 25, 25, 0.25);
    transition: transform var(--duration) var(--ease-out);
}

.submarca-card:hover .submarca-icon {
    transform: scale(1.08) rotate(-4deg);
}

/* ─── Testimonial Carousel (luxury) ────────────── */
.testimonial-carousel {
    position: relative;
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-viewport {
    flex: 1;
    overflow: hidden;
    border-radius: 1rem;
}

.testimonial-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.testimonial-slide {
    flex: 0 0 100%;
    padding: 0 0.5rem;
}

.testimonial-card-lux {
    background: #f6f9eb;
    border: 1px solid rgba(104, 25, 25, 0.15);
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.testimonial-quote-icon {
    position: absolute;
    top: 1.25rem;
    left: 1.5rem;
    font-size: 1.75rem;
    color: rgba(222, 194, 106, 0.35);
}

.testimonial-avatar {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #cd9542 0%, #681919 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f6f9eb;
    font-size: 1.5rem;
    box-shadow: 0 6px 20px rgba(104, 25, 25, 0.25);
}

.testimonial-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    line-height: 1.6;
    color: #3f0201;
    margin: 0 auto;
    max-width: 600px;
}

.testimonial-author {
    margin-top: 1.5rem;
}

.testimonial-name {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #3f0201;
    font-size: 1.05rem;
}

.testimonial-role {
    color: #681919;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

.testimonial-nav {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f6f9eb;
    border: 1px solid rgba(104, 25, 25, 0.25);
    color: #681919;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--duration) ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.testimonial-nav:hover {
    background: #681919;
    color: #f6f9eb;
    transform: scale(1.08);
}

.testimonial-dots {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    margin-top: 1.75rem;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(104, 25, 25, 0.25);
    border: none;
    cursor: pointer;
    transition: all var(--duration) ease;
    padding: 0;
}

.testimonial-dot:hover {
    background: rgba(104, 25, 25, 0.5);
}

.testimonial-dot.active {
    width: 28px;
    border-radius: 6px;
    background: linear-gradient(90deg, #cd9542, #681919);
}

@media (max-width: 640px) {
    .testimonial-card-lux { padding: 2rem 1.25rem; }
    .testimonial-nav { width: 38px; height: 38px; }
}

/* ─── Próxima Edição ───────────────────────────── */
.proxima-info {
    background: linear-gradient(135deg, #191919 0%, #111114 100%);
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    color: #f0ece4;
    position: relative;
    overflow: hidden;
}

.proxima-info::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(222, 194, 106, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.proxima-info > * {
    position: relative;
    z-index: 1;
}

.proxima-edition-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border: 1px solid #cd9542;
    border-radius: 999px;
    color: #cd9542;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.proxima-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 0;
    border-top: 1px solid rgba(205, 149, 66, 0.12);
}

.proxima-row:first-of-type {
    border-top: none;
    padding-top: 0;
}

.proxima-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(205, 149, 66, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cd9542;
}

.proxima-label {
    color: #a8a099;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.proxima-value {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #f0ece4;
    font-size: 1.1rem;
}

.proxima-sub {
    color: #a8a099;
    font-size: 0.85rem;
    margin-top: 0.15rem;
}

.proxima-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 2rem;
    padding: 0.85rem 1.75rem;
    background: linear-gradient(135deg, #cd9542 0%, #681919 100%);
    color: #f6f9eb;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 999px;
    transition: all var(--duration) ease;
    text-decoration: none;
}

.proxima-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(205, 149, 66, 0.35);
}

.proxima-map {
    border-radius: 1rem;
    overflow: hidden;
    min-height: 360px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.proxima-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 360px;
}

/* ─── CTA Final ─────────────────────────────────── */
.cta-final-section {
    padding: 5rem 1rem;
    background:
        radial-gradient(ellipse at top, rgba(205, 149, 66, 0.15) 0%, transparent 60%),
        linear-gradient(135deg, #681919 0%, #4a1010 60%, #3f0201 100%);
    position: relative;
    overflow: hidden;
}

.cta-final-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.cta-final-title {
    color: #ffffff;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.cta-final-subtitle {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.05rem;
    margin-top: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-final-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    padding: 1rem 2.5rem;
    background: #ffffff;
    color: #681919;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 999px;
    transition: all var(--duration) ease;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.cta-final-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
    background: #3f0201;
    color: #cd9542;
}
