/* ===================================
   RedBag Design System
   =================================== */

/* CSS Variables */
:root {
    /* Colors */
    --color-primary: #CC2229;
    --color-primary-dark: #A51C22;
    --color-primary-light: #E54349;
    --color-secondary: #3D3D3D;
    --color-secondary-light: #5A5A5A;
    --color-white: #FFFFFF;
    --color-white-light: #f8f8f8d0;
    --color-light: #F8F8F8;
    --color-light-pink: #FDF5F5;
    --color-gray: #888888;
    --color-gray-light: #E5E5E5;
    --color-dark: #1A1A1A;

    /* Typography */
    --font-primary: 'Outfit', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3rem;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 50%;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Animations */
    --animation-slide-up: slideUp 1s ease-out forwards;


    /* Container */
    --container-max: 1200px;
    --container-padding: 1.5rem;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-secondary);
    background-color: var(--color-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-secondary);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-gray { color: var(--color-gray); }

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-xl);
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 2px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-dark {
    background-color: var(--color-secondary);
    color: var(--color-white);
    border: 2px solid var(--color-secondary);
}

.btn-dark:hover {
    background-color: var(--color-dark);
    border-color: var(--color-dark);
}

/* ===================================
   Header
   =================================== */
.header {
    position: relative;
    z-index: 1000;
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px var(--container-padding); /* Updated to 20px */
    max-width: var(--container-max);
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-secondary);
    position: relative;
    padding: var(--space-sm) 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.bg-contrast {
    background-color: #EAEBF3;
}

/* Header Marquee */
.header-marquee {
    flex: 1;
    max-width: 500px;
    margin: 0 var(--space-xl);
    overflow: hidden;
    position: relative;
    height: 30px;
    display: flex;
    align-items: center;
}

.marquee-track {
    display: flex;
    animation: marquee 10s linear infinite;
    white-space: nowrap;
}

.marquee-text {
    padding: 0 var(--space-3xl);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Hide marquee on mobile */
@media (max-width: 768px) {
    .header-marquee {
        display: none;
    }
}

/* Mobile Marquee Bar - Only visible on mobile */
.mobile-marquee-bar {
    display: none;
    width: 100%;
    height: 28px;
    background-color: var(--color-white);
    overflow: hidden;
    align-items: center;
}

.mobile-marquee-bar .marquee-track {
    display: flex;
    animation: marquee 10s linear infinite;
    white-space: nowrap;
}

.mobile-marquee-bar .marquee-text {
    padding: 0 var(--space-3xl);
    font-size: var(--font-size-xs);
    font-weight: 500;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .mobile-marquee-bar {
        display: flex;
    }
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-secondary);
    transition: all var(--transition-base);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    height: 650px; /* Fixed height for banner */
    background-color: var(--color-dark); /* Fallback color */
    overflow: hidden;
}

.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--color-white);
    padding: var(--space-2xl);
    height: 80%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 600;
    margin-top: 0; /* Moved up (removed extra margin) */
    margin-bottom: var(--space-sm);
    color: var(--color-white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    margin-bottom: var(--space-4xl); /* Pushes text up in flex container */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

/* Decorative Elements */
.hero-decoration {
    position: absolute;
    opacity: 0.1;
    pointer-events: none;
}

.hero-decoration-1 {
    top: 10%;
    right: 5%;
    width: 200px;
    height: 200px;
    border: 3px solid var(--color-white);
    border-radius: var(--radius-full);
}

.hero-decoration-2 {
    bottom: 15%;
    left: 10%;
    width: 150px;
    height: 150px;
    background-color: var(--color-white);
    border-radius: var(--radius-full);
}

/* ===================================
   Sections
   =================================== */
.section {
    padding: var(--space-4xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-3xl);
    font-size: var(--font-size-3xl);
    font-weight: 400;
}

.section-light {
    background-color: var(--color-light);
}

.section-pink {
    background-color: var(--color-light-pink);
}

/* ===================================
   Categories
   =================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.category-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 1;
    cursor: pointer;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.7) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: var(--space-xl);
}

.category-title {
    color: var(--color-white);
    font-size: var(--font-size-xl);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===================================
   Products Grid
   =================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.product-card {
    position: relative;
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-gray-light); /* Added border */
    transition: all var(--transition-base);
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background-color: var(--color-light);
    cursor: pointer;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.3);
    display: flex;
    align-items: flex-end; /* Align to bottom */
    justify-content: center;
    padding-bottom: var(--space-lg); /* Margin from bottom */
    opacity: 0;
    transition: opacity var(--transition-base);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.btn-quick-view {
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-sm);
    transform: translateY(20px);
    transition: all var(--transition-base);
}

.product-card:hover .btn-quick-view {
    transform: translateY(0);
}

.btn-quick-view:hover {
    background-color: var(--color-primary);
}

.product-info {
    padding: var(--space-lg);
    text-align: center;
}

.product-name {
    font-size: var(--font-size-base);
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
    font-weight: 400;
}

.product-description {
    font-size: var(--font-size-sm);
    color: var(--color-gray);
}

/* ===================================
   Quick View Modal
   =================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    padding: var(--space-xl);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background-color: var(--color-white);
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: var(--radius-md);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    transform: scale(0.9);
    transition: transform var(--transition-base);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-white);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xl);
    color: var(--color-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10;
}

.modal-close:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.modal-image {
    background-color: var(--color-light);
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-content {
    padding: var(--space-2xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-lg);
    color: var(--color-secondary);
}

.modal-code {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.modal-description {
    color: var(--color-gray);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}

.modal-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap; /* Ensure buttons wrap on small screens */
    align-items: stretch; /* Ensure both buttons have same height */
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--color-white);
    border: 2px solid #25D366;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: var(--radius-sm);
    flex-shrink: 0; /* Prevent shrinking */
    width: 45px;
    aspect-ratio: 1 / 1; /* Keep it square based on height */
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    border-color: #128C7E;
    color: var(--color-white);
}

.btn-whatsapp svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* ===================================
   Newsletter Section
   =================================== */
.newsletter {
    /* background-color: var(--color-light-pink); Removed to let background image take over */
    padding: var(--space-4xl) 0;
    position: relative;
    z-index: 1;
    background-color: #1A1A1A;
    margin-bottom: 0; /* Attach to footer */
}

.newsletter::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../assets/img/masp-paulista.jpeg');
    background-color: var(--color-light-pink); /* Fallback/Tint */
    background-size: cover;
    background-position: center;
    opacity: 0.2;    
    z-index: -1;
    /* border-radius removed for full width */
}

.newsletter-content {
    /* Resetting styles to be just a wrapper */
    width: 100%;
    margin: 0 auto;
    text-align: center;
    /* Removed padding/border/background logic from here */
}

.newsletter-title {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-md);
    color: var(--color-white);
}

.newsletter-text {
    color: var(--color-white-light);
    margin-bottom: var(--space-xl);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-inputs {
    display: flex;
    gap: var(--space-md);
}

.newsletter-input {
    flex: 1;
    padding: var(--space-md) var(--space-lg);
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    transition: border-color var(--transition-fast);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.lgpd-container {
    text-align: left;
    font-size: 0.8rem;
    color: var(--color-gray);
}

.lgpd-label {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    cursor: pointer;
}

.lgpd-label input {
    margin-top: 3px;
}

/* ===================================
   About Page
   =================================== */
.about-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-content h2 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-xl);
    color: var(--color-primary);
}

.about-content p {
    color: var(--color-gray);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.about-mission {
    margin-top: var(--space-xl);
}

.about-mission h3 {
    font-size: var(--font-size-lg);
    color: var(--color-secondary);
    margin-bottom: var(--space-sm);
}

.about-image {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-redbag h2 {
  margin-bottom: 20px;
}

.about-redbag p {
  margin-bottom: 16px;
  line-height: 1.7;
}


/* Why Choose Us */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.feature-card {
    text-align: center;
    padding: var(--space-xl);
    background-color: var(--color-white);
    border-radius: 20px; /* Rounded borders as requested */
    border: 1px solid var(--color-gray-light); /* Distinct border */
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-10px); /* Increased movement */
    box-shadow: var(--shadow-lg); /* Stronger shadow */
    border-color: var(--color-primary); /* Primary color border on hover */
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--space-lg);
}

.feature-title {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-md);
    color: var(--color-secondary);
}

.feature-text {
    font-size: var(--font-size-sm);
    color: var(--color-gray);
    line-height: 1.7;
}

.team-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

/* ===================================
   Contact Page
   =================================== */
.contact-info {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.contact-info h1 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-lg);
}

.contact-info p {
    color: var(--color-gray);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    color: var(--color-primary);
}

.contact-details span {
    font-size: var(--font-size-sm);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-input {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-base);
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(204, 34, 41, 0.1);
}

.form-input::placeholder {
    color: var(--color-gray);
}

textarea.form-input {
    min-height: 150px;
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background-color: var(--color-white);
    padding: var(--space-lg) 0; /* Reduced padding */
    border-top: 1px solid var(--color-gray-light);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; 
    gap: var(--space-md);
}

.footer-left {
    flex: 1; /* Takes up space to push center content */
    text-align: left;
}

.footer-center {
    flex: 2; /* Center area checks */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.footer-nav {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
    justify-content: center;
}

.footer-social {
    display: flex;
    gap: var(--space-lg);
}

.footer-link {
    font-size: var(--font-size-sm);
    color: var(--color-gray);
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--color-primary);
}

.footer-copyright {
    font-size: var(--font-size-sm);
    color: var(--color-gray);
    margin: 0;
}

/* Responsive adjustment for footer */
@media (max-width: 900px) {
    .footer-content {
        flex-direction: column-reverse; /* Put copyright at bottom on mobile */
        gap: var(--space-lg);
        text-align: center;
    }
    
    .footer-left {
        text-align: center;
    }
    
    .footer-center {
        flex-direction: column;
        gap: var(--space-md);
    }
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-hero {
        gap: var(--space-2xl);
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        flex-direction: column;
        padding: var(--space-xl);
        gap: var(--space-lg);
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .hero-title {
        font-size: 2rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .modal {
        grid-template-columns: 1fr;
    }

    .modal-image {
        max-height: 300px;
    }

    .about-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        order: -1;
        max-height: 300px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .newsletter-inputs {
        flex-direction: column;
    }

    .section {
        padding: var(--space-3xl) 0;
    }

    .section-title {
        font-size: var(--font-size-2xl);
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .footer-nav {
        flex-direction: column;
        align-items: center;
        gap: var(--space-md);
    }

    .hero {
        min-height: 80vh;
    }
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Scroll animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Specific Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Staggered Animations for Hero Content */
.hero-content .hero-title,
.hero-content .hero-subtitle,
.hero-content .hero-btn {
    opacity: 0;
    animation: slideUp 0.8s ease-out forwards;
}

.hero-content .hero-title {
    animation-delay: 0.2s;
}

.hero-content .hero-subtitle {
    animation-delay: 0.4s;
}

.hero-content .hero-btn {
    animation-delay: 0.6s;
}

/* ===================================
   Flow Animation Section
   =================================== */
.flow-section {
    background-color: var(--color-dark); /* RedBag Dark */
    font-family: var(--font-primary);
    overflow: hidden;
    padding: 0; /* Full bleed */
}

.flow-container {
    height: 600px;
    width: 100%;
    position: relative;
    text-align: center; /* Center stripes horizontally */
    overflow: hidden;
    /* Removed flexbox to allow vertical-align: top to work for the 'hanging' effect */
}


.flow-title {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    z-index: 0;
    color: var(--color-light);
    font-size: 15vw; /* Responsive font size */
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
}

.flow-title-large {
    margin-left: -5px;
    opacity: 0.05;
    z-index: 0;
}

.img-container {
    display: inline-block;
    overflow: hidden;
    margin-left: -2px;
    margin-right: -2px;
    width: 14vw; 
    max-width: 170px;
    /* height is controlled by animation */
    vertical-align: top; /* Critical for the 'wave from top' effect */
    border-radius: 0px 0px 80px 80px;
    animation-name: flow;
    animation-duration: 4s;
    animation-iteration-count: infinite;
    box-shadow: 2px 2px 16px 2px rgba(0,0,0,0.5);
    position: relative;
    z-index: 1;
    background-color: var(--color-primary); 
    
    /* Single Link Effect */
    background-image: url('../assets/img/redbag-movimento.jpeg'); /* Updated per user request */
    background-attachment: fixed;
    background-position: center;
    background-size: contain; /* Zoom out to see full image */
    background-repeat: no-repeat;
}

/* Removed .flow-img since we are using background image now */

/* Animation Delays */
.flow-delay-1 { animation-delay: -2s; }
.flow-delay-2 { animation-delay: -1.5s; }
.flow-delay-3 { animation-delay: -1s; }
.flow-delay-4 { animation-delay: -0.5s; }
.flow-delay-5 { animation-delay: 0s; }
.flow-delay-6 { animation-delay: 0.5s; }
.flow-delay-7 { animation-delay: 1s; }

.nba { margin-top: -20px; }

@keyframes flow {
  0% {height: 20%; border-radius: 0px 0px 30px 30px;}
  50% {height: 90%; border-radius: 0px 0px 100px 100px;}
  100% {height: 20%; border-radius: 0px 0px 30px 30px;}
}

/* Responsive adjustments */
@media only screen and (max-width: 1200px) {
  /* Ensure all images stay visible */
  .img-container { width: 14vw; }
}

@media only screen and (max-width: 1028px) {
  .img-container { width: 14vw; }
}

@media only screen and (max-width: 860px) {
  .img-container { width: 14vw; }
  .flow-title { font-size: 20vw; }
}

@media only screen and (max-width: 600px) {
    .flow-container { height: 60vh; }
    .img-container { 
        width: 14vw; 
        max-width: none;
        border-radius: 0 0 40px 40px;
    }

    /* Modal Mobile Adjustments */
    .modal-actions {
        flex-wrap: nowrap; /* Force side-by-side */
        gap: var(--space-sm); /* Reduce gap */
        align-items: stretch;
    }

    .modal-actions .btn-primary {
        padding: var(--space-sm) var(--space-md); /* Reduce padding */
        font-size: 0.8rem; /* Smaller font */
        flex: 1; /* Take up remaining space */
        width: auto; /* Allow shrinking */
        white-space: nowrap; 
        text-overflow: ellipsis;
        overflow: hidden;
    }
    
    .btn-whatsapp {
        width: auto !important; /* Force auto width */
        aspect-ratio: 1/1;
        padding: 0;
        flex: 0 0 auto;
    }
}

/* ===================================
   Features Grid / Cards
   =================================== */
.features-grid {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.feature-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    flex: 0 1 280px;
    max-width: 300px;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.feature-card h3 {
    color: var(--color-secondary);
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-xl);
}

.feature-card p {
    color: var(--color-gray);
    font-size: var(--font-size-sm);
    line-height: 1.6;
}
