/* =========================================
   Variáveis e Base
   ========================================= */
:root {
    --brand-yellow: #FFE800;
    --brand-blue: #1814A3;
    --brand-red: #E30613;
    --glow-red: rgba(227, 6, 19, 0.6);
    --glow-yellow: rgba(255, 232, 0, 0.6);
    --bg-white: #FFFFFF;
    --text-dark: #222222;
    --font-body: 'Montserrat', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Rolagem Suave ativada para as âncoras */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 130px; /* Desconto para o Header fixo não cobrir os títulos */
}

body { 
    font-family: var(--font-body); 
    background-color: var(--bg-white); 
    overflow-x: hidden; 
    color: var(--text-dark);
}

.container { max-width: 1300px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; }

/* =========================================
   Header & Navegação (Fundo Amarelo)
   ========================================= */
.site-header {
    background-color: var(--brand-yellow);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 90;
}

.header-flex { display: flex; justify-content: space-between; align-items: center; height: 80px; }

.logo-text { font-size: clamp(1.4rem, 4vw, 1.8rem); font-weight: 800; color: var(--brand-blue); font-style: italic; }
.text-red { color: var(--brand-red); }

.header-actions { display: flex; align-items: center; gap: 1.5rem; }

.nav-link { color: var(--brand-blue); font-weight: 700; display: flex; align-items: center; gap: 5px; transition: color 0.3s; }
.nav-link:hover { color: var(--brand-red); }

.btn-contact { background-color: var(--brand-blue); color: var(--bg-white); padding: 10px 24px; border-radius: 50px; font-weight: 700; transition: 0.3s; text-align: center; }
.btn-contact:hover { background-color: var(--brand-red); }

.header-categories { border-top: 1px solid rgba(24, 20, 163, 0.1); background-color: var(--brand-yellow); }
.category-list { display: flex; list-style: none; gap: 2rem; padding: 15px 0; justify-content: center; }
.category-list li a { color: var(--brand-blue); font-weight: 700; font-size: 0.95rem; transition: color 0.3s; }
.category-list li a:hover { color: var(--brand-red); }
.category-list li.highlight a { color: var(--brand-red); display: flex; align-items: center; gap: 4px; }

/* Menu Lateral Mobile */
.menu-toggle, .menu-close { background: none; border: none; font-size: 2rem; color: var(--brand-blue); cursor: pointer; display: flex; align-items: center; }
.mobile-menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(0,0,0,0.5); backdrop-filter: blur(3px); z-index: 99; opacity: 0; visibility: hidden; transition: 0.3s; }
.mobile-menu { position: fixed; top: 0; right: -100%; width: 300px; max-width: 85vw; height: 100vh; background-color: var(--bg-white); z-index: 100; display: flex; flex-direction: column; box-shadow: -5px 0 15px rgba(0,0,0,0.1); transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1); }
.mobile-menu.active { right: 0; }
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid #eee; background-color: #fafafa; }
.mobile-menu-body { padding: 20px; display: flex; flex-direction: column; height: 100%; overflow-y: auto;}
.mobile-category-list { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2rem; }
.mobile-category-list li a { font-size: 1.1rem; font-weight: 600; color: var(--text-dark); display: block;}
.mobile-category-list li.highlight a { color: var(--brand-red); font-weight: 700; }
.mobile-menu-footer { margin-top: auto; border-top: 1px solid #eee; padding-top: 20px;}
.btn-full { width: 100%; display: block; padding: 15px; margin-top: 15px; }

/* =========================================
   Títulos Padrões de Secções
   ========================================= */
.section-subtitle { display: inline-block; color: var(--brand-red); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem; margin-bottom: 0.5rem; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: clamp(2rem, 3vw, 2.8rem); color: var(--brand-blue); font-weight: 800; margin-bottom: 1rem; }
.section-header p { color: var(--text-dark); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* =========================================
   Hero Carousel (Swiper)
   ========================================= */
.hero-carousel { width: 100%; padding: 2rem 0; background-color: var(--bg-white); }
.swiper { width: 100%; padding-bottom: 40px; }
.swiper-slide { display: flex; align-items: center; justify-content: space-between; border-radius: 20px; padding: clamp(2rem, 5vw, 4rem); min-height: 400px; transition: transform 0.3s ease; overflow: hidden; }
.swiper-slide:not(.swiper-slide-active) { transform: scale(0.95); opacity: 0.7; }
.slide-content { max-width: 550px; z-index: 2; }
.slide-content h2 { font-size: clamp(1.8rem, 4vw, 3.2rem); font-weight: 800; line-height: 1.1; margin-bottom: 1rem; }
.slide-content p { font-size: clamp(1rem, 2vw, 1.1rem); font-weight: 600; margin-bottom: 2rem; }
.slide-yellow { background-color: var(--brand-yellow); color: var(--brand-blue); }
.slide-blue { background-color: var(--brand-blue); color: var(--bg-white); }
.slide-red { background-color: var(--brand-red); color: var(--bg-white); }

.btn-slide { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 32px; font-size: 1.1rem; font-weight: 800; border-radius: 50px; text-transform: uppercase; transition: all 0.3s ease; }
.btn-red-glow { background-color: var(--brand-red); color: var(--bg-white); box-shadow: 0 0 15px var(--glow-red); animation: pulse-red 2s infinite alternate; }
.btn-yellow-glow { background-color: var(--brand-yellow); color: var(--brand-blue); box-shadow: 0 0 15px var(--glow-yellow); animation: pulse-yellow 2s infinite alternate; }
@keyframes pulse-red { 0% { box-shadow: 0 0 10px var(--glow-red); } 100% { box-shadow: 0 0 25px rgba(227, 6, 19, 0.8), 0 0 40px rgba(227, 6, 19, 0.4); } }
@keyframes pulse-yellow { 0% { box-shadow: 0 0 10px var(--glow-yellow); } 100% { box-shadow: 0 0 25px rgba(255, 232, 0, 0.9), 0 0 40px rgba(255, 232, 0, 0.4); } }

.swiper-button-next, .swiper-button-prev { color: var(--brand-blue); background: rgba(255, 255, 255, 0.9); width: 50px; height: 50px; border-radius: 50%; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.swiper-pagination-bullet-active { background: var(--brand-red) !important; }

/* =========================================
   Secção Sobre Nós
   ========================================= */
.about-section { padding: 6rem 0; background-color: var(--bg-white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-text h2 { font-size: clamp(2rem, 3vw, 2.5rem); color: var(--brand-blue); font-weight: 800; line-height: 1.2; margin-bottom: 1.5rem; }
.about-text p { font-size: 1.1rem; color: #444; margin-bottom: 1rem; line-height: 1.7; }
.about-features { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.feature-item { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--brand-blue); }
.feature-item i { color: var(--brand-yellow); font-size: 1.5rem; background: var(--brand-blue); border-radius: 50%; padding: 5px; }
.about-image { position: relative; }
.image-placeholder img { width: 100%; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); display: block; }
.experience-badge { position: absolute; bottom: -20px; left: -20px; background-color: var(--brand-yellow); color: var(--brand-blue); padding: 20px; border-radius: 15px; display: flex; align-items: center; gap: 15px; box-shadow: 0 10px 20px rgba(255, 232, 0, 0.3); animation: pulse-yellow 3s infinite alternate; }
.experience-badge .number { font-size: 2.5rem; font-weight: 800; }
.experience-badge .text { font-weight: 700; line-height: 1.2; }

/* =========================================
   Secção Portfólio
   ========================================= */
.portfolio-section { padding: 6rem 0; background-color: #F8F9FA; }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-bottom: 3rem; }
.portfolio-card { background-color: var(--bg-white); padding: 3rem 2rem; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); transition: transform 0.3s ease, box-shadow 0.3s ease; border-bottom: 4px solid transparent; }
.portfolio-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.08); border-bottom: 4px solid var(--brand-red); }
.card-icon { width: 70px; height: 70px; background-color: rgba(24, 20, 163, 0.05); color: var(--brand-blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; margin-bottom: 1.5rem; transition: all 0.3s ease; }
.portfolio-card:hover .card-icon { background-color: var(--brand-blue); color: var(--brand-yellow); }
.portfolio-card h3 { font-size: 1.4rem; font-weight: 700; color: var(--brand-blue); margin-bottom: 1rem; }
.portfolio-card p { color: #555; line-height: 1.6; margin-bottom: 2rem; }
.btn-card { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-red); font-weight: 700; transition: color 0.3s; }
.btn-card:hover { color: var(--brand-blue); }

/* =========================================
   Marcas Parceiras & Depoimentos
   ========================================= */
.brands-section { padding: 5rem 0; background-color: var(--bg-white); }
.brands-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; align-items: center; justify-items: center; margin-top: 2rem; }
.brand-item img { max-width: 100%; height: auto; filter: grayscale(100%) opacity(0.6); transition: all 0.4s ease; cursor: pointer; }
.brand-item:hover img { filter: grayscale(0%) opacity(1); transform: scale(1.05); }

.testimonials-section { padding: 6rem 0; background-color: #F8F9FA; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; margin-top: 3rem; }
.testimonial-card { background-color: var(--bg-white); padding: 3rem 2.5rem; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.04); position: relative; transition: transform 0.3s ease; }
.testimonial-card:hover { transform: translateY(-5px); }
.testimonial-card i.ph-quotes { font-size: 3rem; color: var(--brand-yellow); position: absolute; top: -20px; left: 30px; background: var(--bg-white); padding: 0 10px; }
.testimonial-card p { font-size: 1.1rem; font-style: italic; color: #555; line-height: 1.7; margin-top: 1rem; margin-bottom: 2rem; }
.testimonial-author h4 { color: var(--brand-blue); font-weight: 800; font-size: 1.2rem; }
.testimonial-author span { color: var(--brand-red); font-weight: 600; font-size: 0.9rem; }

/* =========================================
   Secção Lojas (Fundo Amarelo)
   ========================================= */
.stores-section { padding: 6rem 0; background-color: var(--brand-yellow); color: var(--text-dark); }
.stores-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; margin-top: 3rem; }
.store-card { background-color: var(--bg-white); color: var(--text-dark); border-radius: 15px; padding: 2.5rem 2rem; display: flex; flex-direction: column; align-items: center; text-align: center; box-shadow: 0 15px 35px rgba(0,0,0,0.1); transition: transform 0.3s ease; border-top: 5px solid var(--brand-blue); }
.store-card:hover { transform: translateY(-10px); }
.store-icon { width: 60px; height: 60px; background-color: rgba(24, 20, 163, 0.1); color: var(--brand-blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin-bottom: 1.5rem; }
.store-info h3 { font-size: 1.3rem; color: var(--brand-blue); margin-bottom: 1rem; font-weight: 800; }
.store-info p { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 0.5rem; font-size: 1rem; font-weight: 600; color: #444; }
.store-info p i { color: var(--brand-red); font-size: 1.2rem; }
.store-actions { display: flex; gap: 10px; margin-top: 1.5rem; width: 100%; }
.btn-store { flex: 1; padding: 12px 0; border-radius: 8px; font-weight: 700; font-size: 0.95rem; transition: all 0.3s ease; text-align: center; }
.btn-call { background-color: var(--brand-red); color: var(--bg-white); box-shadow: 0 4px 10px rgba(227, 6, 19, 0.3); }
.btn-call:hover { background-color: #c00510; transform: translateY(-2px); }
.btn-map { background-color: transparent; color: var(--brand-blue); border: 2px solid var(--brand-blue); }
.btn-map:hover { background-color: var(--brand-blue); color: var(--bg-white); }

/* =========================================
   Rodapé (Fundo Amarelo)
   ========================================= */
.site-footer { background-color: var(--brand-yellow); color: var(--text-dark); padding-top: 5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; padding-bottom: 4rem; }
.footer-logo { color: var(--brand-blue); }
.footer-about p { color: #444444; margin: 1.5rem 0; line-height: 1.7; max-width: 400px; font-weight: 500; }
.social-links { display: flex; gap: 15px; }
.social-links a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background-color: rgba(24, 20, 163, 0.1); color: var(--brand-blue); border-radius: 50%; font-size: 1.2rem; transition: all 0.3s ease; }
.social-links a:hover { background-color: var(--brand-blue); color: var(--brand-yellow); transform: translateY(-3px); }
.footer-links h3, .footer-contact h3 { color: var(--brand-blue); font-size: 1.3rem; margin-bottom: 1.5rem; font-weight: 800; }
.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 1rem; }
.footer-links a { color: #444444; transition: color 0.3s ease; font-weight: 600; }
.footer-links a:hover { color: var(--brand-blue); padding-left: 5px; }
.footer-contact p { display: flex; align-items: center; gap: 10px; color: #444444; margin-bottom: 1rem; font-weight: 600; }
.footer-contact i { color: var(--brand-red); font-size: 1.2rem; }
.btn-footer { display: inline-block; margin-top: 1rem; padding: 10px 20px; border: 2px solid var(--brand-blue); color: var(--brand-blue); border-radius: 4px; font-weight: 700; transition: all 0.3s ease; }
.btn-footer:hover { background-color: var(--brand-blue); color: var(--brand-yellow); }
.footer-bottom { background-color: var(--brand-blue); padding: 1.5rem 0; text-align: center; }
.footer-bottom p { color: var(--bg-white); font-size: 0.95rem; font-weight: 500; }

/* =========================================
   Responsividade (Mobile & Tablets)
   ========================================= */
.mobile-only { display: none; }

@media (max-width: 992px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: flex; }
    .header-flex { height: 70px; }
    
    .swiper-slide { padding: 2rem 1.5rem; text-align: center; min-height: 380px; justify-content: center; }
    .slide-content { margin: 0 auto; }
    .btn-slide { width: 100%; font-size: 1rem; }
    
    .about-grid { grid-template-columns: 1fr; }
    .experience-badge { left: 20px; bottom: 20px; }
    
    .store-actions { flex-direction: column; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
    .footer-about p { margin: 1.5rem auto; }
    .social-links { justify-content: center; }
    .footer-contact p { justify-content: center; }
}

/* =========================================
   Botão Flutuante (Voltar ao Topo)
   ========================================= */
.btn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background-color: var(--brand-red); /* Vermelho para destaque de ação */
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(227, 6, 19, 0.4); /* Glow vermelho suave */
    
    /* Estado inicial: Invisível e um pouco para baixo */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Classe ativada via JavaScript quando o utilizador rolar a página */
.btn-back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-back-to-top:hover {
    background-color: var(--brand-blue);
    color: var(--brand-yellow);
    box-shadow: 0 8px 25px rgba(24, 20, 163, 0.5);
    transform: translateY(-5px) scale(1.05); /* Efeito de levitação ao passar o rato */
}

/* Responsividade: Ajusta a posição em ecrãs mais pequenos */
@media (max-width: 768px) {
    .btn-back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

/* Configuração para Slides com Imagem de Fundo */
.slide-bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Película protetora (Overlay) para garantir a leitura do texto */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px; /* Mantém os cantos arredondados iguais aos da referência */
    z-index: 1;
}

/* Gradientes usando a paleta da Chiquinho (Mistura a cor com a foto) */
.overlay-yellow { background: linear-gradient(90deg, rgba(20, 15, 0, 0.8) 0%, rgba(255, 232, 0, 0.3) 100%); }
.overlay-blue { background: linear-gradient(90deg, rgba(10, 8, 80, 0.9) 0%, rgba(24, 20, 163, 0.4) 100%); }
.overlay-red { background: linear-gradient(90deg, rgba(60, 0, 0, 0.9) 0%, rgba(227, 6, 19, 0.4) 100%); }

/* Garante que o texto fique por cima do overlay e adiciona uma sombra para legibilidade máxima */
.slide-bg-image .slide-content {
    position: relative;
    z-index: 2;
}

.slide-bg-image .slide-content h2,
.slide-bg-image .slide-content p {
    color: var(--bg-white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); /* Sombra escura atrás do texto */
}