/* CWB Películas - Premium Landing Page Styles */

/* Design Tokens & Variables */
:root {
    --bg-dark: #070707;
    --bg-card: #0d0d0d;
    --bg-card-hover: #121212;
    --text-primary: #ffffff;
    --text-secondary: #c8c8c8;
    --text-muted: #888888;
    
    /* Gold Palette */
    --gold-base: #d4af37;
    --gold-light: #f9e8a2;
    --gold-dark: #aa7c11;
    --gold-gradient: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-base) 50%, var(--gold-dark) 100%);
    --gold-border: rgba(212, 175, 55, 0.35);
    --gold-glow: rgba(212, 175, 55, 0.25);
    
    /* Fonts */
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --font-cursive: 'Kaushan Script', 'Yellowtail', 'Satisfy', cursive;
    --marquee-height: 228px;
}

/* Global Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-box: border-box;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background Ambient Glow Elements */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.08;
    pointer-events: none;
    z-index: -1;
}

.glow-1 {
    top: 5%;
    right: 10%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--gold-base), transparent 70%);
}

.glow-2 {
    top: 40%;
    left: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #aa7c11, transparent 70%);
}

.glow-3 {
    bottom: 10%;
    right: 15%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--gold-light), transparent 70%);
}

/* Page Layout */
.page-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    min-height: 100vh;
}

.banner-card {
    background-color: #050505;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    padding: 40px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9);
    position: relative;
    overflow: hidden;
}

/* Premium Border & Shimmer Effects */
.glowing-border {
    position: relative;
    border: 1px solid var(--gold-border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
}

.glowing-border:hover {
    border-color: var(--gold-base);
    box-shadow: 0 0 25px var(--gold-glow);
    transform: translateY(-2px);
}

/* Light Sweep Shimmer Animation */
.glowing-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    transform: skewX(-25deg);
    transition: 0.75s;
    pointer-events: none;
    z-index: 2;
}

.glowing-border:hover::before {
    left: 150%;
    transition: 0.8s ease-in-out;
}

/* SECTION 1: HERO & LOGO/CONTACT */
.hero-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    margin-bottom: 40px;
    align-items: center;
}

.hero-text-col {
    display: flex;
    flex-direction: column;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--text-primary);
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.cursive-gold {
    font-family: var(--font-cursive);
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 6rem; /* Much larger and bold like a real brushed signature */
    font-weight: normal;
    display: inline-block;
    transform: rotate(-10deg) translate(8px, -15px); /* Brush style slanted upwards */
    margin-left: 10px;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.45)); /* Rich glow behind the text */
    line-height: 1.2; /* Increased to prevent clipping */
    padding: 10px 30px 15px 15px; /* Added padding to give box space for rotated bounds and shadow */
    margin: -10px -20px -15px -10px; /* Offset margins to preserve title flow */
    vertical-align: middle;
    letter-spacing: normal; /* Override parent letter-spacing */
    text-transform: none; /* Override parent text-transform */
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-primary);
    letter-spacing: 3px;
    margin-top: 5px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.hero-divider {
    height: 2px;
    background: var(--gold-gradient);
    width: 100%;
    margin-bottom: 15px;
    position: relative;
    box-shadow: 0 0 10px var(--gold-glow);
}

.tagline-list {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-primary);
    opacity: 0.85;
    letter-spacing: 1px;
}

.bullet-dot {
    color: var(--gold-base);
    text-shadow: 0 0 8px var(--gold-base);
}

.hero-brand-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.logo-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.brand-logo {
    max-width: 170px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.3));
    animation: floatLogo 4s ease-in-out infinite alternate;
}

@keyframes floatLogo {
    0% { transform: translateY(0); }
    100% { transform: translateY(-5px); }
}

/* Contact Card Styling */
.contact-card {
    width: 100%;
    background: rgba(13, 13, 13, 0.6);
    backdrop-filter: blur(10px);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

.contact-title {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

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

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.contact-item:hover {
    color: var(--gold-light);
}

.contact-icon {
    width: 16px;
    height: 16px;
    color: var(--gold-base);
}

.whatsapp-item {
    font-weight: 700;
}

.whatsapp-item .phone-number {
    font-size: 1.15rem;
    color: var(--gold-base);
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

.whatsapp-item:hover .phone-number {
    filter: brightness(1.2);
}


/* SECTION 2: INSULFILM CARDS */
.insulfilm-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

.service-card {
    background-color: var(--bg-card);
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    height: 100%;
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .card-image {
    transform: scale(1.05);
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 12px;
    position: relative;
}

.badge-row {
    display: flex;
}

.gold-badge {
    background: var(--gold-gradient);
    color: #000000;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.card-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.card-icon-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 10px;
}

.service-icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--gold-base);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-base);
    background: rgba(212, 175, 55, 0.05);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

.service-icon-circle svg {
    width: 16px;
    height: 16px;
}


/* SECTION 3: ENVELOPAMENTO AUTOMOTIVO */
.envelopamento-auto-section {
    background-color: var(--bg-card);
    padding: 30px;
    margin-bottom: 40px;
}

.env-auto-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 30px;
    align-items: center;
}

.section-title-gold {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--gold-base);
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.section-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.feature-icon-wrapper {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-base);
    margin-top: 2px;
}

.feature-icon-wrapper svg {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 0 5px var(--gold-glow));
}

.feature-text h4 {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.feature-text p {
    font-size: 0.65rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.env-image-col {
    display: flex;
    justify-content: center;
}

.env-image-wrapper {
    width: 100%;
    height: 178px;
    border-radius: 8px;
    overflow: hidden;
}

.env-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.env-image-wrapper:hover .env-image {
    transform: scale(1.04);
}


/* SECTION 4: ENVELOPAMENTO RESIDENCIAL */
.envelopamento-res-section {
    background-color: var(--bg-card);
    padding: 30px;
    margin-bottom: 40px;
}

.env-res-content {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 35px;
    align-items: center;
}

.section-title-normal {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.section-title-gold-bold {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.section-desc-normal {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.env-res-panels-col {
    width: 100%;
}

.panels-image-container {
    width: 100%;
    height: 228px;
    border-radius: 8px;
    overflow: hidden;
}

.panels-combined-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.panels-image-container:hover .panels-combined-image {
    transform: scale(1.03);
}


/* SECTION 5: FOOTER VALUES */
.footer-values-section {
    background: rgba(13, 13, 13, 0.7);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    margin-bottom: 30px;
}

.values-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: center;
    min-width: 130px;
}

.value-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-base);
    width: 20px;
    height: 20px;
}

.value-icon svg {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 0 5px var(--gold-glow));
}

.value-item span {
    font-family: var(--font-heading);
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.value-divider {
    width: 1px;
    height: 20px;
    background: rgba(212, 175, 55, 0.2);
}


/* SECTION 6: BOTTOM SLOGAN & FOOTER */
.banner-footer {
    text-align: center;
    padding-top: 10px;
}

.footer-slogan {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
}

.white-italic {
    color: var(--text-primary);
    font-style: italic;
}

.gold-italic {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
    display: inline-block;
}


/* Responsive visibility display modes */
.desktop-only {
    display: block;
}
.mobile-only {
    display: none !important;
}

/* Mobile Combined Marquee Styles */
.carousel-container-combined {
    width: 100%;
    position: relative;
    padding: 10px 0;
    overflow: hidden; /* Hide horizontal scrolling overflow */
    border: 1px solid var(--gold-border);
    border-radius: 12px;
}

.carousel-track.marquee-combined {
    display: flex;
    gap: 0; /* NO gap for perfect alignment of duplicate images */
    width: max-content;
    animation: scrollMarqueeCombined 18s linear infinite;
}

/* Pause scroll animation on hover */
.carousel-track.marquee-combined:hover {
    animation-play-state: paused;
}

.marquee-combined-img {
    height: var(--marquee-height); /* Responsive height */
    width: auto; /* Maintain original aspect ratio */
    display: block;
    flex-shrink: 0; /* Prevent images from shrinking, forcing horizontal overflow for a seamless loop */
}

@keyframes scrollMarqueeCombined {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Loops infinitely by translating exactly half the track width (one copy of the image) */
        transform: translateX(-50%);
    }
}


/* Floating WhatsApp Button */
.whatsapp-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366; /* Official WhatsApp green */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    animation: pulseWhatsapp 2.2s infinite;
}

.whatsapp-float-btn svg {
    width: 30px;
    height: 30px;
    stroke: currentColor;
    stroke-width: 2.2;
}

.whatsapp-float-btn:hover {
    transform: scale(1.08);
    background-color: #20ba5a;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

@keyframes pulseWhatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    70% {
        box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}


/* Footer Social Links Styling */
.footer-social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.footer-social-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    font-family: var(--font-heading);
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social-item svg {
    width: 18px;
    height: 18px;
    stroke: var(--gold-base);
    transition: stroke 0.3s ease, filter 0.3s ease;
}

.footer-social-item:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.footer-social-item:hover svg {
    stroke: var(--gold-light);
    filter: drop-shadow(0 0 5px var(--gold-glow));
}


/* Responsive Styles (Media Queries) */
@media (max-width: 768px) {
    .page-wrapper {
        padding: 15px 10px;
    }

    .banner-card {
        padding: 20px;
        border-radius: 12px;
    }

    .hero-section {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.1rem;
    }

    .cursive-gold {
        font-size: 4rem;
        transform: rotate(-10deg) translate(4px, -10px);
        padding: 10px 20px 10px 10px;
        margin: -10px -15px;
        letter-spacing: normal;
        text-transform: none;
    }



    :root {
        --marquee-height: 180px; /* Mobile scaled-down height */
    }

    .tagline-list {
        justify-content: center;
        font-size: 0.65rem;
    }

    .hero-brand-col {
        width: 100%;
    }

    .brand-logo {
        max-width: 140px;
    }

    .insulfilm-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .env-auto-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .env-image-col {
        order: -1; /* Image comes first on mobile */
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .env-res-content {
        display: flex;
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }

    .env-res-text-col {
        order: 1; /* Text on top */
    }

    .env-res-carousel-col {
        order: 2; /* Images below */
    }

    .values-row {
        gap: 20px;
    }
    
    .value-item {
        min-width: 45%;
        justify-content: flex-start;
    }

    .value-divider {
        display: none;
    }
    
    .footer-slogan {
        font-size: 0.65rem;
        line-height: 1.4;
    }

    /* Media query visibility overrides */
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    /* Mobile floating button overrides */
    .whatsapp-float-btn {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.45);
    }

    .whatsapp-float-btn svg {
        width: 26px;
        height: 26px;
    }

    /* Mobile social links overrides */
    .footer-social-links {
        gap: 15px;
        flex-direction: column;
        align-items: center; /* Center them on mobile but stack vertically */
        margin-bottom: 20px;
    }
    
    .footer-social-item {
        font-size: 0.75rem;
    }
}

