/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f5f3;
}
::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Color palette variables (red theme) */
:root {
    --primary: #b11220; /* main red */
    --primary-light: #d94a4a; /* lighter red */
    --primary-dark: #7a0f14; /* dark red */
    --accent: #ff6b6b; /* accent */
    --muted: #f7eaea;
}

/* Hero Video Overlay */
.hero-overlay {
    /*background: linear-gradient(
                to bottom,
                rgba(0, 0, 0, 0.4) 0%,
                rgba(0, 0, 0, 0.2) 50%,
                rgba(0, 0, 0, 0.6) 100%
            );*/
    background-image: url("/assets/2026/bg-expoasa.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(5px);
}

/* Landing hero isolated styles */
#hero {
    padding-top: 8rem;
}

.hero-a-container {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 0 28px;
    overflow: hidden;
    color: #ffffff;
}

.hero-a-kenburns {
    position: absolute;
    inset: 0;
    z-index: -3;
}

.hero-a-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 1;
}

.hero-a-layer-a {
    background-image: url("/assets/2026/bg-expoasa.jpeg");
    background-color: #0a1513;
}

/* Hero picture replacement: keep hidden on desktop (layer handles it), show img on mobile */
/* no picture fallback; use background image for all viewports */

.hero-a-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 18% 22%,
            rgba(255, 197, 73, 0.22),
            transparent 44%
        ),
        radial-gradient(
            circle at 84% 18%,
            rgba(10, 102, 66, 0.32),
            transparent 42%
        ),
        linear-gradient(
            180deg,
            rgba(9, 15, 23, 0.45) 0%,
            rgba(9, 15, 23, 0.74) 62%,
            rgba(9, 15, 23, 0.9) 100%
        );
    z-index: -2;
}

.hero-a-brand-container {
    position: relative;
    z-index: 5;
    text-align: center;
    width: 100%;
    margin-top: -60px;
}

.hero-a-main-logo {
    max-width: 240px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 45px rgba(0, 0, 0, 0.6));
}

.hero-a-brand-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero-a-countdown {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
    position: relative;
    z-index: 20;
}

.hero-a-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 65px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 10px 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero-a-countdown-value {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
}

.hero-a-countdown-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.hero-a-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    z-index: 10;
    transition: opacity 0.3s;
}

.hero-a-scroll-indicator:hover {
    opacity: 0.8;
}

.hero-a-hsi-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    opacity: 0.9;
}

.hero-a-hsi-icon {
    width: 22px;
    height: 22px;
    display: block;
    animation: hero-a-bounce 2s infinite;
    fill: currentColor;
}

@keyframes hero-a-bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@media (min-width: 992px) {
    .hero-a-main-logo {
        max-width: min(85vw, 540px);
        max-height: 50vh;
        width: auto;
        object-fit: contain;
    }
    .hero-a-countdown {
        gap: 20px;
        margin-top: clamp(20px, 4vh, 45px);
    }
    .hero-a-countdown-item {
        min-width: clamp(80px, 8vw, 110px);
        padding: clamp(10px, 1.5vh, 18px) 10px;
    }
    .hero-a-countdown-value {
        font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    }
    .hero-a-countdown-label {
        font-size: 0.75rem;
    }
}

@media (min-width: 992px) and (max-height: 820px) {
    .hero-a-main-logo {
        max-width: 380px;
    }
    .hero-a-countdown {
        margin-top: 15px;
    }
    .hero-a-countdown-item {
        min-width: 85px;
        padding: 8px 5px;
    }
    .hero-a-scroll-indicator {
        bottom: 20px;
    }
}

@media (max-width: 767px) {
    .hero-a-scroll-indicator {
        bottom: 20px;
    }
}

/* Header */
.header {
    background-color: var(--primary-dark);
}

@media (max-width: 767px) {
    #header img:first-of-type{
        max-height: 3.75rem !important;
    }
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #d4af37 0%, #f0d875 50%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Japanese Pattern Background */
.jp-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231a472a' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Mobile Menu */
.mobile-menu {
    clip-path: circle(0% at calc(100% - 40px) 40px);
    transition: clip-path 0.5s ease-in-out;
}
.mobile-menu.active {
    clip-path: circle(150% at calc(100% - 40px) 40px);
}

/* Countdown Box */
.countdown-box {
    background: linear-gradient(
        135deg,
        rgba(26, 71, 42, 0.9) 0%,
        rgba(15, 42, 25, 0.95) 100%
    );
    backdrop-filter: blur(10px);
}

/* Section Reveal Animation */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease-out;
}
.reveal.waiting {
    opacity: 0;
    transform: translateY(30px);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Button Shine Effect */
.btn-shine {
    position: relative;
    overflow: hidden;
}
.btn-shine::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s;
}
.btn-shine:hover::before {
    left: 100%;
}

/* Schedule Tabs */
.schedule-tab {
    cursor: pointer;
    transition:
        background-color 0.18s ease,
        color 0.18s ease,
        transform 0.12s ease;
}
.schedule-tab:hover {
    background-color: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Image Placeholder */
.img-placeholder {
    background: linear-gradient(135deg, #e5e5e5 0%, #f5f5f5 50%, #e5e5e5 100%);
    background-size: 200% 200%;
    animation: shimmer 2s ease-in-out infinite;
}
@keyframes shimmer {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Navigation Active State */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d4af37;
    transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Statistics Cards Animation */
.stat-card {
    animation: cardSlideUp 0.6s ease-out forwards;
    opacity: 0;
}
.stat-card:nth-child(1) {
    animation-delay: 0.1s;
}
.stat-card:nth-child(2) {
    animation-delay: 0.2s;
}
.stat-card:nth-child(3) {
    animation-delay: 0.3s;
}
.stat-card:nth-child(4) {
    animation-delay: 0.4s;
}
.stat-card:nth-child(5) {
    animation-delay: 0.5s;
}
.stat-card:nth-child(6) {
    animation-delay: 0.6s;
}

@keyframes cardSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduce vertical spacing between sections by 50% (override Tailwind py- utilities) */
/* These rules halve the vertical padding for the most common py- classes used in the template. */
.py-8 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}
.py-12 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}
.py-16 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}
.py-20 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
}
.py-24 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}
.py-32 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

@media (min-width: 768px) {
    .md\:py-8 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
    .md\:py-12 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    .md\:py-16 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    .md\:py-20 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    .md\:py-24 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    .md\:py-32 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
}

#sobre #logo-laca {
    display: block;
    width: clamp(2.75rem, 12vw, 3.5rem);
    height: auto;
    padding: 0;
}

#assai #logo-assai {
    display: block;
    width: clamp(2.75rem, 12vw, 3.5rem);
    height: auto;
    padding: 0;
}

@media (max-width: 767px) {
    #assai #logo-assai {
    display: block;
    width: clamp(2.75rem, 12vw, 4rem);
    height: auto;
    padding: 0;
}
}

@media (max-width: 767px) {
    html,
    body {
        overflow-x: hidden;
    }

    #header nav .flex.items-center.justify-between.h-20 {
        height: 4.5rem;
    }

    #header img {
        height: auto !important;
        max-height: 2.75rem;
        width: auto !important;
    }

    /* Centralizar logos no header no mobile */
    #header nav .flex.items-center.justify-between.h-20 {
        justify-content: center !important;
    }

    #header nav .flex.items-center.justify-between.h-20 a.flex.items-center.gap-4.z-50 {
        position: relative;
        left: 0;
    }

    /* se houver um botão de menu à direita, reposicionar para não sobrepor o logo */
    #menuToggle {
        position: absolute;
        right: 12px;
        top: 12px;
        z-index: 60;
    }

    .hero-a-container {
        padding-top: 5.5rem;
    }

    .hero-a-container {
        min-height: 100svh;
        padding: 88px 0 22px;
    }

    .hero-a-brand-container {
        margin-top: -24px;
        padding-inline: 1rem;
    }

    /* Ajuste adicional para evitar sobreposição/corte do logo e conteúdo no mobile */
    .hero-a-brand-container {
        margin-top: -10px;
    }

    .hero-a-main-logo {
        max-width: min(76vw, 220px);
    }

    /* Melhor foco da imagem de fundo no mobile para evitar cortes importantes */
    /* ensure same background image used on mobile and desktop; tweak focus */
    .hero-a-layer-a {
        background-image: url("/assets/2026/bg-expoasa.jpeg") !important;
        background-size: cover !important;
        background-repeat: no-repeat !important;
        background-position: 25% center !important;
    }

    .hero-a-countdown {
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 18px;
    }

    .hero-a-countdown-item {
        min-width: calc(50% - 8px);
        flex: 1 1 calc(50% - 8px);
        max-width: 150px;
        padding: 8px 6px;
    }

    .hero-a-countdown-value {
        font-size: 1.25rem;
    }

    .hero-a-countdown-label {
        font-size: 0.55rem;
        letter-spacing: 1px;
    }

    .hero-a-scroll-indicator {
        bottom: 14px;
        gap: 8px;
    }

    .hero-a-scroll-indicator {
        display: none !important;
    }

    #atracoes .w-\[90\%\] {
        width: 94% !important;
    }

    #slider-container {
        height: 320px !important;
        overflow: hidden;
    }

    #programacao .flex.flex-wrap.justify-center.gap-2.mb-12.reveal {
        flex-direction: column;
        align-items: stretch;
    }

    #programacao .schedule-tab {
        width: 100%;
    }

    #sobre,
    #assai {
        padding-inline: 0.75rem;
    }

    #sobre .grid,
    #assai .grid {
        gap: 0;
    }

    #sobre .bg-primary-dark\/95 {
        padding: 1.5rem;
        border-radius: 32px 32px 0 0;
    }

    #sobre .bg-primary-dark\/95:first-of-type {
        padding: 1.5rem;
        border-radius: 0 0 32px 32px;
    }

    #assai .bg-primary-dark\/95 {
        padding: 1.5rem;
        border-radius: 0 0 32px 32px;
    }

    #sobre .relative.p-8,
    #assai .relative.p-8 {
        padding: 1rem;
        min-height: 280px;
    }

    #sobre p,
    #assai p {
        font-size: 0.98rem;
        line-height: 1.7;
    }

    #sobre .flex.items-center.gap-4,
    #assai .flex.items-center.gap-4 {
        align-items: center;
        gap: 0.75rem;
    }

    .eventos-card-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        padding: 0.3rem;
        height: 100%;
    }

    .eventos-card-content h3 {
        font-size: 1rem;;
    }

    .organizadores-grid,
    .apoiadores-grid {
        gap: 6px;
    }

    /*#sobre #sobre-img {
        padding-top: 10px;
    }*/

    /*#assai #assai-img {
        padding-bottom: 10px;
    }*/*

    #comochegar span {
        width: 100%;
        text-align: center;
    }

    #comochegar h2 {
        width: 100%;
        text-align: center;
    }

    /* Footer mobile: centralizar conteúdo */
    .footer {
        align-items: center;
        text-align: center;
    }

    .footer .container {
        width: 100%;
        padding-inline: 0.5rem;
        align-items: center;
        text-align: center;
    }

    .footer-surface {
        padding: 28px 16px 22px;
    }

    .footer-brand {
        flex-direction: column;
        align-items: center;
    }

    .footer-brand p {
        max-width: none;
        text-align: center;
    }

    .footer-meta {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .footer-nav,
    .footer-social {
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .footer-back {
        margin-left: 0;
    }

    .footer-links {
        display: none !important;
    }

    /* Botão voltar ao topo: oculto no mobile */
    #backToTop {
        display: none !important;
    }
}

/* Footer from landing page */
.footer {
    background:
        radial-gradient(
            circle at top left,
            rgba(255, 255, 255, 0.08),
            transparent 35%
        ),
        linear-gradient(180deg, #04110d 0%, #081c15 52%, #020604 100%);
    color: rgba(255, 255, 255, 0.9);
    padding: 0;
}

.footer-surface {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 42px 24px 28px;
}

.footer .footer-brand,
.footer-links,
.footer-contact {
    min-width: 0;
}

.footer {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: center;
}

.footer-brand {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
}

.footer-brand img {
    height: 102px;
    width: auto;
}

.footer-brand p {
    margin-bottom: 0;
    max-width: 34ch;
    color: rgba(255, 255, 255, 0.76);
}

.footer-heading {
    margin: 0 0 14px;
    color: #fff;
    font-size: 0.98rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.footer-nav,
.footer-social {
    display: grid;
    gap: 10px;
}

.footer-nav a,
.footer-social a {
    color: rgba(255, 255, 255, 0.84);
    text-decoration: none;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.footer-nav a:hover,
.footer-social a:hover {
    color: #ffffff;
    transform: translateX(3px);
}

    .footer-social a i {
    width: 18px;
    text-align: center;
    margin-right: 10px;
    color: var(--accent);
}

.footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 0 24px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
}

.footer-meta a {
    color: #ffffff;
    text-decoration: none;
}

    .footer-meta a:hover {
    color: var(--accent);
}

.footer-back {
    float: none;
    margin-left: auto;
}

    .footer .back-to-top {
    background-color: var(--primary);
    color: #ffffff !important;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    float: right;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    z-index: 1000;
}

.footer .back-to-top i {
    color: #ffffff !important;
    font-size: 1.4rem;
    display: block;
}

.footer .back-to-top:hover {
    background-color: var(--secondary-light, #2d6a4f);
    transform: translateY(-5px);
    color: #ffffff !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    .hero-a-container {
        min-height: 100svh;
        padding: 88px 0 22px;
    }

    .footer-surface {
        grid-template-columns: 1.25fr 0.75fr 1fr;
        gap: 36px;
        padding: 52px 0 34px;
    }

    .footer-brand img {
        height: 120px;
    }

    .footer-meta {
        font-size: 0.95rem;
    }
}

/* Slide modal fixed image sizing */
.modal-image-wrapper {
    width: 100%;
    height: 520px;
    max-height: 80vh;
    overflow: hidden;
    border-radius: 24px;
    background-color: #000;
}
.modal-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 640px) {
    .modal-image-wrapper {
        height: 420px;
    }
}

/* Utility mappings to support existing Tailwind-like classes with the red palette */
.bg-primary { background-color: var(--primary) !important; }
.bg-primary-dark { background-color: var(--primary-dark) !important; }
.bg-primary-light { background-color: var(--primary-light) !important; }
.text-primary { color: var(--primary) !important; }
.text-primary-dark { color: var(--primary-dark) !important; }
.text-primary-light { color: var(--primary-light) !important; }
.bg-accent { background-color: var(--accent) !important; }
.text-accent { color: var(--accent) !important; }
.bg-muted { background-color: var(--muted) !important; }

/* Support for opacity-suffixed classnames generated by Tailwind (escaped) */
.bg-primary\/5 { background-color: rgba(177,18,32,0.05) !important; }
.bg-primary\/10 { background-color: rgba(177,18,32,0.10) !important; }
.bg-accent\/20 { background-color: rgba(255,107,107,0.20) !important; }
.bg-accent\/10 { background-color: rgba(255,107,107,0.10) !important; }
.bg-primary-dark\/95 { background-color: rgba(122,15,20,0.95) !important; }

/* Minor helpers */
.text-primary\/important { color: var(--primary) !important; }
