/* CSS Design System for Tradição Minas */
:root {
    --brand-red: #D21C1C;
    --brand-red-hover: #B51414;
    --text-red: #C81E1E;
    --bg-blue-light: #B3E5FC;
    --bg-blue-dark: #87CEEB;
    --font-primary: 'Outfit', sans-serif;
    --font-secondary: 'Nunito', sans-serif;
}

/* Base Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    min-height: 100vh;
    font-family: var(--font-primary);
    overflow-x: hidden;
    position: relative;
    background-image: url('assets/sky_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Dense & Slow Sky Background */
.sky-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Pure CSS Fluffy Cloud Shape styled to be visible but soft and watercolor-like */
.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.85); /* Highly visible white */
    border-radius: 100px;
    filter: blur(5px); /* Softened edges, remains visible */
    pointer-events: none;
}

.cloud::before, .cloud::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
}

.cloud::before {
    width: 50%;
    height: 100%;
    top: -40%;
    left: 15%;
}

.cloud::after {
    width: 40%;
    height: 80%;
    top: -30%;
    right: 15%;
}

/* 10 Clouds distributed across page height, floating at a slow but visible speed */
.cloud-1 {
    width: 160px;
    height: 50px;
    top: 4%;
    left: 5%;
    opacity: 0.8;
    animation: drift-slow 24s ease-in-out infinite;
}
.cloud-2 {
    width: 110px;
    height: 35px;
    top: 14%;
    left: 60%;
    opacity: 0.7;
    animation: drift-reverse-slow 26s ease-in-out infinite;
}
.cloud-3 {
    width: 200px;
    height: 60px;
    top: 28%;
    left: 15%;
    opacity: 0.85;
    animation: drift-slow 32s ease-in-out infinite;
}
.cloud-4 {
    width: 140px;
    height: 45px;
    top: 42%;
    left: 75%;
    opacity: 0.75;
    animation: drift-reverse-slow 28s ease-in-out infinite;
}
.cloud-5 {
    width: 100px;
    height: 32px;
    top: 55%;
    left: -2%;
    opacity: 0.7;
    animation: drift-slow 25s ease-in-out infinite;
}
.cloud-6 {
    width: 180px;
    height: 55px;
    top: 66%;
    left: 50%;
    opacity: 0.85;
    animation: drift-reverse-slow 36s ease-in-out infinite;
}
.cloud-7 {
    width: 130px;
    height: 40px;
    top: 76%;
    left: 8%;
    opacity: 0.8;
    animation: drift-slow 30s ease-in-out infinite;
}
.cloud-8 {
    width: 150px;
    height: 48px;
    top: 84%;
    left: 80%;
    opacity: 0.75;
    animation: drift-reverse-slow 31s ease-in-out infinite;
}
.cloud-9 {
    width: 220px;
    height: 68px;
    top: 90%;
    left: 30%;
    opacity: 0.85;
    animation: drift-slow 38s ease-in-out infinite;
}
.cloud-10 {
    width: 120px;
    height: 38px;
    top: 96%;
    left: -5%;
    opacity: 0.65;
    animation: drift-reverse-slow 23s ease-in-out infinite;
}

@keyframes drift-slow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(80px); }
}

@keyframes drift-reverse-slow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-80px); }
}

/* Centered Brand Watermark */
.background-watermark {
    position: absolute;
    top: 180px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 0;
    opacity: 0.055;
    pointer-events: none;
    user-select: none;
}

.watermark-image {
    width: 82%;
    height: auto;
    filter: grayscale(100%) contrast(1.1);
}

/* App Container */
.app-container {
    width: 100%;
    max-width: 576px; /* Centered mobile format on desktop viewports */
    min-height: 100vh;
    background: transparent;
    padding: 30px 24px 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Header Section */
.app-header {
    width: 100%;
    text-align: center;
    margin-bottom: 28px;
}

.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.brand-logo {
    width: 204px; /* Increased by 50% (from 136px) */
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
}

.main-headline {
    color: var(--text-red);
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.35;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.exclusivity-badge {
    background-color: var(--brand-red);
    color: white;
    font-size: 1.12rem;
    font-weight: 800;
    padding: 6px 18px;
    border-radius: 50px;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(210, 28, 28, 0.2);
    margin-top: 3px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.exclusivity-badge:hover {
    transform: scale(1.03);
    background-color: var(--brand-red-hover);
}

/* Main Content & Region Grid */
.app-main {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.states-section {
    width: 100%;
    margin-bottom: 25px;
}

.states-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 20px;
    width: 100%;
}

.states-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.state-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Red Pill Button */
.state-button {
    width: 100%;
    max-width: 190px;
    background-color: var(--brand-red);
    color: white;
    font-family: var(--font-primary);
    font-size: 1.15rem;
    font-weight: 700;
    padding: 10px 15px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(210, 28, 28, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    text-align: center;
}

.state-button:hover {
    transform: translateY(-2px) scale(1.04);
    background-color: var(--brand-red-hover);
    box-shadow: 0 6px 14px rgba(210, 28, 28, 0.35);
}

.state-button:active {
    transform: translateY(0) scale(0.98);
}

.state-subtext {
    color: var(--text-red);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    margin-top: 5px;
    max-width: 180px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Call to Action Messages */
.cta-message-section {
    text-align: center;
    margin-bottom: 28px;
}

.cta-title {
    color: var(--text-red);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 3px;
}

.cta-subtitle {
    color: var(--text-red);
    font-size: 1.15rem;
    font-weight: 800;
}

/* Product Showcase Area */
.product-showcase-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Playful Bubbled Title Image */
.playful-title-wrapper {
    width: 100%;
    max-width: 320px;
    margin: 0 auto 15px auto;
    display: flex;
    justify-content: center;
}

.playful-title-image {
    width: 100%;
    height: auto;
    display: block;
    filter: saturate(1.2) contrast(1.08) drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

/* Tilted Bag & Floating Characters Composition */
.graphic-composition {
    width: 100%;
    height: 480px; /* Adjusted to fit the scaled bag */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

/* Levitating Bag Wrapper */
.bag-wrapper {
    position: relative;
    top: -30px; /* Shifted slightly up, keeping it balanced */
    z-index: 2;
    animation: floatBag 7s ease-in-out infinite;
}

.bag-product-image {
    width: 310px; /* Aumentado (antigo 250px) para destacar mais o produto */
    height: auto; /* Resizes proportionally */
    max-width: 90vw; /* Keeps it responsive on mobile screens */
    display: block;
    filter: saturate(1.2) contrast(1.08) drop-shadow(0 12px 24px rgba(0,0,0,0.18));
    transition: width 0.3s ease;
}

@media (min-width: 768px) {
    .bag-product-image {
        width: 420px; /* Aumentado (antigo 340px) para destacar mais no desktop */
    }
}

/* Floating Characters */
.float-item {
    position: absolute;
    z-index: 3;
    filter: saturate(1.25) contrast(1.08) drop-shadow(0 6px 12px rgba(0,0,0,0.12));
}

.float-heart {
    width: 58px;
    height: auto;
    top: 180px; /* Descido até quase a metade da imagem bag */
    left: 15px; /* Shifted left and away from bag */
    animation: floatHeart 6.5s ease-in-out infinite;
}

.float-yellow-star-left {
    width: 52px;
    height: auto;
    bottom: 90px; /* Shifted down and away from bag */
    left: 10px; /* Shifted left and away from bag */
    animation: floatStar 6s ease-in-out infinite;
}

.float-moon {
    width: 58px;
    height: auto;
    top: 55px; /* Shifted up and away from bag */
    right: 15px; /* Shifted right and away from bag */
    animation: floatMoon 7.5s ease-in-out infinite;
}

.float-green-star {
    width: 50px;
    height: auto;
    bottom: 135px; /* Shifted down and away from bag */
    right: 10px; /* Shifted right and away from bag */
    animation: floatStar 5.5s ease-in-out infinite;
}

.float-bunny {
    width: 48px;
    height: auto;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    animation: floatBunny 8s ease-in-out infinite;
    z-index: 4;
}

/* Float Animations for Levitating composition */
@keyframes floatBag {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes floatHeart {
    0%, 100% { transform: translateY(0) rotate(-4deg); }
    50% { transform: translateY(-9px) rotate(6deg); }
}

@keyframes floatStar {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-11px) rotate(8deg); }
}

@keyframes floatMoon {
    0%, 100% { transform: translateY(0) rotate(4deg); }
    50% { transform: translateY(-8px) rotate(-4deg); }
}

@keyframes floatBunny {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-6px) scale(1.04); }
}

/* Footer Product Specifications */
.showcase-footer {
    text-align: center;
    width: 100%;
}

.footer-desc-text {
    color: #4A90B2;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.35;
    font-family: var(--font-primary);
    text-shadow: 0 1px 1px rgba(255,255,255,0.6);
}

/* Premium WhatsApp Redirect Modal styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 400px;
    border-radius: 24px;
    padding: 30px;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #888;
    cursor: pointer;
    line-height: 1;
}

.modal-close-btn:hover {
    color: #333;
}

.modal-logo-wrapper {
    margin-bottom: 18px;
}

.modal-logo {
    width: 80px;
    height: auto;
}

.modal-title {
    color: var(--brand-red);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.modal-description {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 24px;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.modal-primary-btn {
    width: 100%;
    background-color: #25D366; /* Official WhatsApp Green */
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.modal-primary-btn:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

.whatsapp-icon {
    width: 22px;
    height: 22px;
}

.modal-cancel-btn {
    background: none;
    border: none;
    color: #777;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    padding: 5px;
}

.modal-cancel-btn:hover {
    color: #333;
}

/* Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Responsive Scaling for very small devices */
@media (max-width: 360px) {
    .states-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .state-button {
        max-width: 100%;
    }
    .bag-product-image {
        width: 260px;
    }
    .graphic-composition {
        height: 380px;
    }
}
