/*
Theme Name: Shopping Igarassu
Author: Wallyf M (CortereX)
Description: Shopping Igarassu.
Produzido por CortereX.
Version: 9.0
*/

/* --- 1. VARIÁVEIS E GLOBAIS --- */
:root {
    --primary-color: #003060;     
    --secondary-color: #FFD700;   
    --text-color: #333;           
    --bg-light: #f4f4f4;          
    --white: #ffffff;             
    --footer-bg: #1a1a1a;         
    --cinema-btn: #E1306C;
    --card-shadow: rgba(0,0,0,0.1); 
}

body.dark-mode {
    --primary-color: #66b2ff;     
    --secondary-color: #FFD700;   
    --text-color: #f4f4f4;        
    --bg-light: #121212;          
    --white: #1e1e1e;             
    --footer-bg: #000000;         
    --card-shadow: rgba(0,0,0,0.5); 
}

html { scrollbar-gutter: stable; overflow-x: hidden; }

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

body {
    background-color: var(--bg-light);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s;
}

main { flex: 1; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- 2. CABEÇALHO --- */
.nav-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; position: relative; min-height: 120px; }
.logo { display: flex; align-items: center; }
.logo img { height: 115px; width: auto; transition: 0.3s; }

/* Botão Dark Mode */
.theme-switch-wrapper { position: absolute; right: -260px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; z-index: 1002; }
.theme-switch { display: inline-block; height: 34px; position: relative; width: 60px; }
.theme-switch input { display: none; }
.slider { background-color: #fceea7; bottom: 0; cursor: pointer; left: 0; position: absolute; right: 0; top: 0; transition: .4s; border-radius: 34px; border: 2px solid #fceea7; }
.slider:before { background-color: #fec84e; bottom: 3px; content: ""; height: 24px; left: 4px; position: absolute; transition: .4s; width: 24px; border-radius: 50%; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0 9c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1zM11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1zm0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zM5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41L5.99 4.58zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41l-1.06-1.06zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06z"/></svg>'); background-size: 16px; background-repeat: no-repeat; background-position: center; }
input:checked + .slider { background-color: #0f172a; border-color: #0f172a; }
input:checked + .slider:before { transform: translateX(26px); background-color: #3b82f6; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-3.03 0-5.5-2.47-5.5-5.5 0-1.82.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1z"/></svg>'); }

header { background-color: var(--white); box-shadow: 0 2px 5px var(--card-shadow); position: sticky; top: 0; z-index: 1000; transition: background-color 0.3s; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.menu-content { display: flex; align-items: center; gap: 20px; }
nav ul { display: flex; gap: 20px; }
nav a { font-weight: 500; color: var(--text-color); }
nav a:hover, nav a.active { color: var(--primary-color); border-bottom: 2px solid var(--secondary-color); }
.btn-contact { background-color: #003060; color: #ffffff !important; padding: 8px 15px; border-radius: 4px; }
.btn-contact:hover { background-color: #004494; }
.hamburger { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; transition: all 0.3s ease-in-out; background-color: var(--text-color); }

.banner-slider { position: relative; max-width: 100%; margin: 0 auto; overflow: hidden; }
.mySlides { display: none; width: 100%; }
.mySlides img { width: 100%; height: auto; display: block; }
.prev, .next { cursor: pointer; position: absolute; top: 50%; width: auto; padding: 16px; margin-top: -22px; color: white; font-weight: bold; font-size: 24px; transition: 0.6s ease; border-radius: 0 3px 3px 0; user-select: none; background-color: rgba(0,0,0,0.3); }
.next { right: 0; border-radius: 3px 0 0 3px; }
.prev:hover, .next:hover { background-color: rgba(0,0,0,0.8); }
.fade { animation-name: fade; animation-duration: 1.5s; }
@keyframes fade { from {opacity: .4} to {opacity: 1} }

.yellow-separator { width: 80px; height: 4px; background-color: var(--secondary-color); margin: 0 auto 50px auto; border-radius: 2px; }
.hero-video { max-width: 800px; margin: 0 auto; background-color: #000; position: relative; line-height: 0; border-radius: 8px; overflow: hidden; }
.hero-video video { width: 100%; height: auto; display: block; max-height: 60vh; object-fit: cover; }
.video-container-adjust { margin-bottom: 80px; }
@media (max-width: 820px) { .hero-video { max-width: 100%; margin: 0 0 60px 0; border-radius: 0; } }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 50px; }
.card { background: var(--white); padding: 15px; border-radius: 8px; box-shadow: 0 2px 10px var(--card-shadow); text-align: center; transition: transform 0.2s, box-shadow 0.2s, background-color 0.3s; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; }
.card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.card img { width: 100%; height: 120px; object-fit: contain; margin-bottom: 10px; }
.card h3 { margin: 5px 0; color: var(--text-color); font-size: 1.1rem; }
.card p { font-size: 0.9rem; color: var(--text-color); opacity: 0.8; margin-top: auto; }
.home-card img { height: 180px; object-fit: cover; border-radius: 6px; }

.page-header { background-color: #003060; color: white; padding: 40px 0; text-align: center; margin-bottom: 40px; }
.section-title { text-align: center; margin-bottom: 30px; margin-top: 30px; }
.section-title h2 { font-size: 2rem; color: var(--primary-color); position: relative; display: inline-block; }
.section-title h2::after { content: ''; display: block; width: 50px; height: 3px; background-color: var(--secondary-color); margin: 10px auto 0; }

.contact-single-box { background: var(--white); padding: 50px; border-radius: 8px; box-shadow: 0 2px 10px var(--card-shadow); max-width: 1000px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.contact-text-side { flex: 1; text-align: left; }
.contact-text-side h2 { color: var(--primary-color); margin-bottom: 25px; font-size: 1.8rem; border-bottom: 2px solid var(--secondary-color); display: inline-block; padding-bottom: 5px; }
.contact-text-side p { font-size: 1.05rem; color: var(--text-color); margin-bottom: 15px; line-height: 1.6; }
.contact-logo-side { flex: 1; display: flex; justify-content: center; align-items: center; }
.contact-logo-side img { max-width: 100%; height: auto; max-height: 250px; }

/* Mapa Full Width */
.map-section {
    width: 100vw; position: relative; left: 50%; right: 50%;
    margin-left: -50vw; margin-right: -50vw; margin-top: 50px; line-height: 0;
}
.map-section iframe { width: 100%; height: 450px; border: 0; display: block; }

.cinema-banner { background-color: #000; color: white; padding: 60px 20px; text-align: center; border-radius: 8px; margin-bottom: 40px; }
.hero-btn { background-color: var(--cinema-btn); color: white !important; padding: 10px 25px; border-radius: 5px; text-decoration: none; font-weight: bold; display: inline-block; transition: 0.3s; margin-top: 20px; }
.hero-btn:hover { background-color: #b01c4d; transform: scale(1.05); }

/* Botão PDF */
.pdf-download-section { text-align: center; margin: 40px 0 20px 0; }
.btn-download-pdf { background-color: #003060; color: #ffffff !important; padding: 10px 25px; font-size: 1rem; border-radius: 50px; font-weight: bold; text-decoration: none; box-shadow: 0 4px 6px rgba(0,0,0,0.2); transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
body.dark-mode .btn-download-pdf { background-color: #003060; color: #ffffff !important; }
.btn-download-pdf:hover { background-color: var(--secondary-color); color: #000000 !important; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.3); }

footer { background-color: var(--footer-bg); color: #ccc; padding: 50px 0 20px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; margin-bottom: 30px; }
.footer-col h4 { color: #ffffff; margin-bottom: 20px; border-bottom: 2px solid var(--secondary-color); display: inline-block; padding-bottom: 5px; }
.footer-col ul li { margin-bottom: 10px; }
.copyright { text-align: center; border-top: 1px solid #333; padding-top: 20px; font-size: 0.85rem; }

/* --- 3. PACK CINEMA (Cores e Layout da Página Cinema) --- */
.cinema-section {
    background-color: #121212 !important;
    color: #f0f0f0 !important;
    padding-top: 40px; padding-bottom: 60px; min-height: 100vh;
}
.cinema-info-bar {
    display: flex; justify-content: center; gap: 40px; text-align: center;
    margin-bottom: 50px; border-bottom: 1px solid #333; padding-bottom: 30px; flex-wrap: wrap;
}
.cinema-info-bar .info-item h3 { color: #ffffff !important; margin-bottom: 5px; font-size: 1.2rem; }
.cinema-info-bar .info-item p { color: #cccccc !important; font-size: 1rem; }
.dashicons-custom { font-size: 40px; color: #FFC107; margin-bottom: 15px; display: block; width: 100%; height: 40px; }

.movie-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; width: 100%; }
.badge-container { position: absolute; top: 15px; right: 15px; z-index: 10; }
.badge-age { 
    padding: 6px 10px; border-radius: 4px; font-size: 0.75rem; font-weight: bold; text-transform: uppercase;
    background: rgba(0,0,0,0.9); color: #fff; border: 1px solid #555; display: block;
}

/* --- 4. RESPONSIVIDADE (MOBILE) --- */
@media (max-width: 768px) {
    .hamburger { display: block; z-index: 1001; }
    .menu-content { position: fixed; left: -100%; top: 120px; gap: 0; flex-direction: column; background-color: var(--white); width: 100%; text-align: center; transition: 0.3s; box-shadow: 0 10px 10px rgba(0,0,0,0.1); padding: 20px 0; }
    .menu-content.active { left: 0; }
    .nav-bar { justify-content: space-between; padding: 15px 20px; }
    .logo img { height: 90px; } 
    .menu-content nav ul { flex-direction: column; gap: 20px; margin-bottom: 20px; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .contact-single-box { flex-direction: column-reverse; text-align: center; padding: 30px 20px; }
    .contact-text-side { text-align: center; }
    .section-title h2 { font-size: 1.6rem; margin-top: 10px; margin-bottom: 10px; }
    .section-title h2::after { margin-top: 5px; }
    .grid-cards { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .home-card img { height: 120px; }
    .card p { font-size: 0.85rem; }
    .btn-download-pdf { width: auto; padding: 8px 20px; font-size: 0.85rem; }

    /* MOBILE: Botão no canto superior direito */
    .theme-switch-wrapper { position: absolute; top: 25px; right: 30px; margin: 0; transform: none; }
    
    /* FIX CINEMA MOBILE: Ícones lado a lado */
    .cinema-info-bar { 
        flex-wrap: nowrap; /* Força ficar na mesma linha */
        gap: 5px; 
    }
    .cinema-info-bar .info-item { 
        width: auto; 
        flex: 1; /* Divide o espaço igualmente */
    }
    .dashicons-custom { font-size: 28px; height: 28px; margin-bottom: 5px; }
    .cinema-info-bar .info-item h3 { font-size: 0.8rem; margin-bottom: 0; }
    .cinema-info-bar .info-item p { font-size: 0.65rem; line-height: 1.2; }
}