/*
 * Styling for the Bia Vasconcelos landing page.
 *
 * The design embraces a dark, modern palette with vibrant accent colours
 * drawn from the band's own logo. Sections alternate between slightly
 * different shades to create subtle contrast without overwhelming the
 * viewer. The layout is fully responsive, using flexible grids and
 * utilities to adapt gracefully to any screen size.
 */

/* CSS reset and box sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    line-height: 1.6;
    color: #f4f4f4;
    background-color: #0f0d13;
}

h1, h2, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #ffffff;
}

p {
    margin-bottom: 1rem;
    color: #d4d4d4;
    font-weight: 300;
}

/* Container utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 0;
}

/* Hero section */
#hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-image: url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

#hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.9) 100%),
                linear-gradient(135deg, rgba(192,7,98,0.5) 0%, rgba(255,72,0,0.3) 100%);
    z-index: 0;
}

#hero .hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 1rem;
}

#hero .event-logo {
    max-width: 350px;
    width: 100%;
    height: auto;
    margin: 0 auto 1.5rem auto;
}

#hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #e12e8b 0%, #b3117e 50%, #8f0a66 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.event-details {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #e8e8e8;
    line-height: 1.4;
}

.cta-button {
    display: inline-block;
    font-size: 1rem;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 50px;
    background: linear-gradient(90deg, #e12e8b 0%, #b3117e 100%);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease;
    font-weight: 600;
}
.cta-button:hover {
    background: linear-gradient(90deg, #b3117e 0%, #e12e8b 100%);
}

/* Section styling */
.section {
    padding: 4rem 0;
}

.dark-section {
    background-color: #15121b;
}

.light-section {
    background-color: #1d1a25;
}

/* About section layout */
.about-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    overflow: hidden;
    isolation: isolate;
}

.about-carousel-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.14;
    filter: grayscale(1) brightness(0.45) blur(2px);
    pointer-events: none;
    overflow: hidden;
}

.about-image,
.about-text {
    flex: 1 1 300px;
    position: relative;
    z-index: 1;
}

.about-image {
    aspect-ratio: 3 / 4;
    max-height: 660px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.04), rgba(0,0,0,0.4));
}

.about-carousel-window {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.about-carousel-window::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(15,13,19,0.9) 0%, rgba(15,13,19,0.05) 18%, rgba(15,13,19,0.05) 82%, rgba(15,13,19,0.9) 100%);
}

.about-carousel-track {
    --slide-count: 5;
    display: flex;
    height: 100%;
    animation: aboutCarouselSlide 50s linear infinite;
    will-change: transform;
}

.about-carousel-track img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 40%;
}

@keyframes aboutCarouselSlide {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-100% * var(--slide-count)));
    }
}

.about-text h2 {
    margin-bottom: 1rem;
    font-size: 2.2rem;
}

.about-text p + p {
    margin-top: 1rem;
}


/* Gratitude section */
.gratitude-section {
    position: relative;
    overflow: hidden;
}
.gratitude-section::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(225,46,139,0.35), rgba(143,10,102,0));
    opacity: 0.45;
    animation: gratitudePulse 8s ease-in-out infinite;
}
.gratitude-section::after {
    content: "";
    position: absolute;
    bottom: -160px;
    left: -160px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(255,120,0,0.22), rgba(255,120,0,0));
    opacity: 0.4;
    animation: gratitudePulse 10s ease-in-out infinite;
}
.gratitude-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    z-index: 1;
}
.gratitude-text {
    flex: 1 1 320px;
}
.gratitude-text h2 {
    font-size: 2.6rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #ffb15a 0%, #e12e8b 45%, #b3117e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.gratitude-card {
    flex: 1 1 280px;
    position: relative;
    padding: 2rem;
    border-radius: 18px;
    background: linear-gradient(140deg, rgba(34,28,40,0.95), rgba(20,16,26,0.85));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 50px rgba(0,0,0,0.45);
    overflow: hidden;
    animation: gratitudeFloat 6s ease-in-out infinite;
}
.gratitude-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
    color: #ffffff;
}
.gratitude-card p {
    color: #d6d3df;
}
.gratitude-signature {
    margin-top: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
    color: #e12e8b;
}
.gratitude-glow {
    position: absolute;
    inset: -70% -40%;
    background: conic-gradient(from 0deg, rgba(255,177,90,0.0), rgba(225,46,139,0.25), rgba(255,177,90,0.0));
    opacity: 0.7;
    filter: blur(30px);
    animation: gratitudeSpin 12s linear infinite;
}
@keyframes gratitudePulse {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.35;
    }
    50% {
        transform: translateY(-12px) scale(1.05);
        opacity: 0.55;
    }
}
@keyframes gratitudeFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}
@keyframes gratitudeSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
/* Map section */
#mapa h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.map-layout {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 1.75rem;
    align-items: start;
    margin-top: 1.5rem;
}

.map-guides {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.map-divider {
    height: 1px;
    margin: 0.35rem 0 0.25rem 0;
    background: linear-gradient(90deg, rgba(225,46,139,0.18), rgba(255,255,255,0.05), rgba(143,10,102,0.18));
    border: none;
}

.map-panel {
    background: radial-gradient(circle at 10% 20%, rgba(255,255,255,0.04), rgba(32,28,38,0.65)),
                radial-gradient(circle at 90% 80%, rgba(225,46,139,0.1), rgba(32,28,38,0.5));
    border: 1px solid #2e2836;
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 10px 28px rgba(0,0,0,0.45);
}

.map-steps-panel {
    border-top: 3px solid #e12e8b;
}

.map-extra-panel {
    border-top: 3px solid #8f0a66;
}

.map-steps-list {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.step-heading,
.h3_inst,
.map-panel > h3 {
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
}
.map-steps-list p {
    margin: 0;
    color: #c8c6d1;
}

.map-bullets {
    list-style: none;
    padding-left: 0;
    margin: 0.4rem 0 0 0;
}

.map-bullets li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.65rem;
    color: #c5c2ce;
}

.map-bullets li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #e12e8b;
}

.map-bullets.nested {
    margin-top: 0.35rem;
    margin-left: 0.9rem;
}

.map-bullets.nested li {
    padding-left: 1.2rem;
}

.map-bullets.nested li::before {
    content: "–";
}

.extra-group + .extra-group {
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid #2e2934;
}

.extra-heading {
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
    letter-spacing: 0.01em;
}

.map-frame-panel {
    background: linear-gradient(145deg, #221c28 0%, #18141d 100%);
    border: 1px solid #2e2836;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 12px 30px rgba(0,0,0,0.55);
}

.map-frame-header {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1rem;
    background: rgba(225,46,139,0.08);
    border: 1px solid rgba(225,46,139,0.35);
    border-radius: 12px;
    color: #c5c2ce;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.map-frame-header::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(120deg, #e12e8b 0%, #b3117e 100%);
    box-shadow: 0 0 0 6px rgba(225,46,139,0.15);
}

.iframe-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: clamp(520px, 70vh, 900px);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Sponsors */
#sponsors h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.sponsor-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 2rem;
}

.sponsor-logos img {
    max-height: 80px;
    height: auto;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.4));
}

.sponsor-logos img.ws {
    max-height: 100px;
    height: auto;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.4));
}

.decorative-icons {
    text-align: center;
}
.decorative-icons img {
    max-width: 300px;
    opacity: 0.6;
    filter: grayscale(100%);
}

/* Footer */
footer {
    background-color: #0d0b10;
    padding: 2rem 0;
    text-align: center;
    color: #777;
    font-size: 0.9rem;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    max-width: 200px;
    height: auto;
    display: block;
}

.in-app-warning {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
}

.in-app-warning .warning-card {
    width: min(480px, 100%);
    background: #1f1a25;
    border: 1px solid #31293a;
    border-radius: 14px;
    padding: 1.4rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    color: #e8e8e8;
}

.in-app-warning strong {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
}

.in-app-warning p {
    margin-bottom: 1rem;
    color: #d0cbd8;
    line-height: 1.4;
}

.warning-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.warning-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    border: 1px solid transparent;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.2s ease;
    color: #fff;
}

.warning-actions .btn.open-browser {
    background: linear-gradient(120deg, #e12e8b 0%, #8f0a66 100%);
    box-shadow: 0 8px 20px rgba(225,46,139,0.28);
}

.warning-actions .btn.copy-link {
    background: #2b2431;
    border-color: #3a3240;
}

.warning-actions .btn:hover {
    transform: translateY(-1px);
}

.warning-actions .btn:active {
    transform: translateY(0);
}

/* Fade-in animation for sections */
.fade {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    #hero h1 {
        font-size: 2.4rem;
    }
    .about-container {
        flex-direction: column;
    }
    .about-image, .about-text {
        flex: 1 1 100%;
    }
    .about-image {
        margin-bottom: 2rem;
        aspect-ratio: 2 / 3;
        min-height: 300px;
    }
    .container {
        width: 92%;
    }
    .about-carousel-track {
        animation-duration: 36s;
    }
    .map-layout {
        grid-template-columns: 1fr;
    }
    .map-frame-panel {
        order: 0; /* keep o mapa após as instruções no mobile */
    }
    .iframe-wrapper {
        height: clamp(420px, 62vh, 720px);
    }
    .sponsor-logos {
        gap: 2rem;
    }
    .sponsor-logos img {
        max-height: 60px;
    }
    .sponsor-logos img.ws {
        max-height: 80px;
    }
    .footer-logo {
        max-width: 150px;
    }
    .gratitude-text h2 {
        font-size: 2.1rem;
        letter-spacing: 0.12rem;
    }
    .gratitude-card {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .sponsor-logos {
        gap: 1.25rem;
    }
    .sponsor-logos img {
        max-height: 48px;
    }
    .sponsor-logos img.ws {
        max-height: 64px;
    }
    .footer-logo {
        max-width: 120px;
    }
}
