/* 1. DEFINIÇÕES GLOBAIS E VARIÁVEIS */
:root {
    --color-primary: #d4af5b;
    --color-secondary: #f0f0f0;
    --color-dark: #222;
    --color-light: #fff;
    --color-text: #414141;
    --font-body: 'Exo', sans-serif;
    --font-headings: 'Exo', sans-serif;
    --font-special: 'Rochester', cursive;
    --color-card-background: rgba(240, 240, 240, 0.1);
    --gradient-gold: linear-gradient(90deg, #FFD700, #FBB034, #FFD700);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--color-text); background-color: var(--color-light); line-height: 1.6; overflow-x: hidden;}
.container { width: 90%; max-width: 1200px; margin-left: auto; margin-right: auto; }
h1, h2, h3 { font-family: var(--font-headings); font-weight: 700; }
.section-title { text-align: center; font-size: 2.5rem; color: var(--color-dark); margin-bottom: 2rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 28px; border-radius: 50px; text-decoration: none; font-weight: 700; transition: all 0.3s ease; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background-color: var(--color-primary); color: var(--color-light); }
.btn-primary:hover { background-color: var(--color-light); color: var(--color-primary); border-color: var(--color-primary); }
.btn-secondary { background-color: var(--color-light); color: var(--color-primary); }
.btn-secondary:hover { 
    background-color: var(--color-light); 
    color: var(--color-primary); 
    border-color: var(--color-primary); 
}

/* 2. HEADER E NAVEGAÇÃO */
header.sticker {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: transparent;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    border-bottom: 1px solid transparent;
    padding: 1rem 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

header.sticker.scrolled {
    background-color: rgba(212, 175, 91, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0;
}

.main-nav { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 50px; transition: height 0.3s ease; }
header.scrolled .logo img { height: 40px; }
.nav-links { display: flex; list-style: none; align-items: center; }
.nav-links li { margin-left: 1.5rem; }
.nav-links a { text-decoration: none; color: var(--color-light); font-weight: 700; position: relative; padding-bottom: 5px; }

header.scrolled .nav-links a.btn-primary {
    background-color: var(--color-light);
    color: var(--color-primary);
}
header.scrolled .nav-links a.btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.85);
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--color-primary); transition: width 0.3s ease; }
.nav-links a:hover::after { width: 100%; }

.logo .logo-dark { display: none; }
.logo .logo-light { display: block; }

body.dark-mode .logo .logo-light { display: none; }
body.dark-mode .logo .logo-dark { display: block; }
.mobile-controls {
    display: none;
    align-items: center;
    gap: 1rem;
}

.theme-toggle, .hamburger {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

/* 3. SECÇÃO HERO */
.hero { 
    height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    color: var(--color-light); 
    position: relative; 
    overflow: hidden;
    padding-top: 80px;
}

.hero-background-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -2;
}

.hero-background {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 1.2s cubic-bezier(0.39, 0.575, 0.565, 1), 
                transform 1.2s cubic-bezier(0.39, 0.575, 0.565, 1);
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.hero-light { 
    opacity: 1;
    transform: scale(1.05);
}
.hero-dark { 
    opacity: 0;
    transform: scale(1);
}

body.dark-mode .hero-light { 
    opacity: 0;
    transform: scale(1);
}
body.dark-mode .hero-dark { 
    opacity: 1;
    transform: scale(1.05);
}

.hero-content h1 { font-family: var(--font-special); font-size: 5rem; font-weight: normal; }
.hero-content p { font-size: 1.2rem; margin: 1rem 0 2rem; max-width: 600px; text-align: center; margin: 1.5rem auto 2.5rem auto;}
body.dark-mode .hero-content h1,
body.dark-mode .hero-content p {
    color: var(--color-primary);
}

body.dark-mode .nav-links-desktop a:not(.btn),
body.dark-mode .nav-links a:not(.btn) {
    color: var(--color-primary);
}

body.dark-mode header.scrolled .nav-links-desktop a:not(.btn) {
    color: var(--color-primary);
}

body.dark-mode .nav-links-desktop a:not(.btn)::after,
body.dark-mode header.scrolled .nav-links-desktop a:not(.btn)::after {
    background-color: var(--color-primary);
}

/* --- LÓGICA DO SUBTÍTULO DINÂMICO --- */
.hero-content p {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1.6;
}

#dynamic-subtitle {
    display: inline-block;
    min-width: 350px; /* Reduza a largura mínima */
}

#service-rotator {
    position: relative;
    display: inline-block;
    text-align: left;
    height: 1.2em;
    min-width: 250px; /* Reduza a largura mínima */
}

.service-name {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.service-name.active {
    opacity: 1;
}

/* Adiciona a cor dourada apenas ao elemento rotativo no modo light */
body:not(.dark-mode) .hero-content #service-rotator,
body:not(.dark-mode) .hero-content .service-name {
    color: var(--color-primary);
}

/* 4. CARROSSEL DE SERVIÇOS */
.services-carousel { padding: 4rem 0; background-color: var(--color-secondary); }
.swiper { width: 100%; padding: 2rem 0; height: 500px}
.swiper-slide { height: 350px; transition: transform 0.3s ease; }
.swiper-slide:hover { transform: scale(1.0); }
.service-card { display: block; width: 100%; height: 100%; position: relative; border-radius: 15px; overflow: hidden; color: var(--color-light); }
.service-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.service-card:hover img { transform: scale(1.1); }
.card-caption { position: absolute; bottom: 0; left: 0; width: 100%; padding: 1.5rem; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); opacity: 0; transform: translateY(20px); transition: opacity 0.3s ease, transform 0.3s ease; }
.service-card:hover .card-caption { opacity: 1; transform: translateY(0); }
.card-caption h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.swiper-button-next, .swiper-button-prev { color: var(--color-primary); }
.swiper-pagination-bullet-active { background: var(--color-primary); }
.services-carousel .swiper-pagination {
    margin-top: 1.5rem;
    position: static;
}

/* 5. SECÇÃO FUN FACTOR (ESTATÍSTICAS INTERATIVAS) */
.fun-factor-area {
    padding: 4rem 0;
    background-color: transparent; 
}

.fun-factor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.single-fun-factor {
    position: relative;
    padding: 2rem;
    text-align: center;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.15); /* Cor branca com 15% de opacidade */
    border: 1px solid rgba(0, 0, 0, 0.1); /* Borda subtil para definição */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.fun-factor-area a.single-fun-factor.fun-factor-2 {
    text-decoration: none;
    display: block;
    height: 100%; 
    color: inherit;
    cursor: pointer;
}

.fun-factor-area a.single-fun-factor.fun-factor-2:hover .fun-factor-content h4 {
    color: var(--color-primary) !important;
    text-decoration: none
}

.fun-factor-area a.single-fun-factor.fun-factor-2:hover .fun-factor-content .counter {
    color: var(--color-primary) !important;
}

body.dark-mode .fun-factor-area a.single-fun-factor.fun-factor-2:hover .fun-factor-content h4,
body.dark-mode .fun-factor-area a.single-fun-factor.fun-factor-2:hover .fun-factor-content .counter {
    color: var(--color-primary) !important;
}

body.dark-mode .single-fun-factor {
    background-color: rgba(26, 26, 26, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.single-fun-factor:hover {
    transform: translateY(-10px); 
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .single-fun-factor:hover {
    background-color: rgba(26, 26, 26, 0.5);
}

.fun-factor-content {
    position: relative; 
    z-index: 2;
    transition: color 0.4s ease;
}

.single-fun-factor .counter {
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-primary);
    transition: color 0.4s ease;
}

body.dark-mode .single-fun-factor .counter {
    color: var(--color-primary);
}

.single-fun-factor h4 {
    font-size: 1.2rem;
    color: var(--color-text);
    transition: color 0.4s ease;
}

.single-fun-factor::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: rgba(18, 18, 18, 0.6); 
    background-blend-mode: darken; 
    opacity: 0; 
    z-index: 1;
    transition: opacity 0.5s ease;
}
.single-fun-factor:hover .fun-factor-content h4,
.single-fun-factor:hover .fun-factor-content .counter {
    color: var(--color-light);
}

body.dark-mode .single-fun-factor:hover .fun-factor-content h4,
body.dark-mode .single-fun-factor:hover .fun-factor-content .counter {
    color: var(--color-dark);
}
/* --- ESTILOS DO CARD DE FUNCIONALIDADES (PÁGINA DE SERVIÇO) --- */
.fun-factor-area .feature-card {
    background-color: var(--color-light);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    text-align: center;
    border-radius: 15px;
    transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
}

/* Estado de Hover (claro) */
.fun-factor-area .feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Estilos no Modo Escuro */
body.dark-mode .fun-factor-area .feature-card {
    background-color: var(--color-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Estado de Hover (escuro) */
body.dark-mode .fun-factor-area .feature-card:hover {
    background-color: rgba(26, 26, 26, 0.5);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Estilos para os Ícones */
.feature-icon {
    font-size: 2.5rem;
    color: var(--color-primary); /* Ícone dourado no modo claro */
    margin-bottom: 1rem;
    display: block;
    transition: color 0.4s ease;
}

body.dark-mode .feature-icon {
    color: var(--color-primary); /* Ícone dourado no modo escuro */
}

/* Estilos para o Título e Texto */
.feature-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--color-dark); /* Texto escuro no modo claro */
    transition: color 0.4s ease;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--color-text); /* Texto cinzento escuro no modo claro */
    transition: color 0.4s ease;
}

body.dark-mode .feature-card h4,
body.dark-mode .feature-card p {
    color: var(--color-dark); /* Texto claro no modo escuro */
}
.single-fun-factor:hover::after { opacity: 1; }

.fun-factor-1::after { background-image: url('images/services/Fogo\ frio.jpg'); }
.fun-factor-2::after { background-image: url('images/testimonials/testimonial-1.png'); }
.fun-factor-3::after { background-image: url('images/services/wedding-awards.png'); }
.fun-factor-4::after { background-image: url('images/services/3cefb33c-64e4-4ab5-a7f2-8894a7245824.jpg'); }


@media (min-width: 768px) {
    .fun-factor-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem; 
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ESTILOS PARA OS REQUISITOS DO SERVIÇO */
.service-requirements-area {
    padding: 2rem 0;
}
.service-requirements-area .section-title {
    margin-bottom: 2rem;
}
.requirements-list {
    max-width: 800px;
    margin: 0 auto;
}
.requirements-list ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
.requirements-list li {
    position: relative;
    padding-left: 25px; /* Espaço para o hífen */
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--color-text);
}
.requirements-list li::before {
    content: '-';
    position: absolute;
    left: 0;
    color: var(--color-primary); /* A cor dourada para o hífen */
    font-weight: 900;
}

/* 6. SUPERMENU, SIDEBAR E LAYOUTS DE NAVEGAÇÃO */
.dropdown { position: relative; }
.supermenu-content {
    display: flex; /* Mantém o layout de duas colunas */
    position: absolute;
    top: 100%;
    left: -50px;
    width: 480px;
    height: auto;
    background-color: var(--color-light);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    border-radius: 8px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    margin-top: 25px;
}
.supermenu-content .service-image-preview {
    width: 50%;
    background-color: #f9f9f9;
    background-size: cover;
    background-position: center;
    object-fit: cover;
    transition: opacity 0.2s ease-in-out;
}

.dropdown:hover .supermenu-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown:hover .supermenu-content { display: flex; opacity: 1; visibility: visible; transform: translateY(0); }
.supermenu-content .service-links { width: 50%; padding: 10px 0; display: flex; flex-direction: column; }
.service-link-item { color: var(--color-dark) !important; padding: 12px 20px; display: block; border-radius: 5px; transition: background-color 0.2s ease; text-decoration: none; }
.service-link-item:hover { background-color: #f1f1f1; }
.supermenu-content .service-image-preview { width: 50%; background-color: #f9f9f9; }
.supermenu-content .service-image-preview img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s ease; object-fit: cover; }

.hamburger { display: none; background: none; border: none; cursor: pointer; z-index: 1001; width: 30px; height: 24px; position: relative; transform: rotate(0deg); transition: .5s ease-in-out; }
.hamburger span { display: block; position: absolute; height: 3px; width: 100%; background: var(--color-light); border-radius: 3px; opacity: 1; left: 0; transform: rotate(0deg); transition: .25s ease-in-out; }

header.scrolled .hamburger span { background: var(--color-light); }

.hamburger span:nth-child(1) { top: 8px; }
.hamburger span:nth-child(2) { top: 18px; }
.hamburger span:nth-child(3) { top: 28px; }

header .hamburger.is-active span { background: var(--color-dark); }
header .hamburger.is-active span:nth-child(1) { top: 18px; transform: rotate(135deg); }
header .hamburger.is-active span:nth-child(2) { opacity: 0; left: -30px; }
header .hamburger.is-active span:nth-child(3) { top: 18px; transform: rotate(-135deg); }

.nav-left, .nav-right, .logo-desktop { display: none; }
.logo-mobile { display: flex; }

/* 7. ESTILOS MOBILE (Até 1023px) */
@media (max-width: 1023px) {
    .nav-links { position: fixed; top: 0; right: 0; width: 80%; max-width: 320px; height: 100vh; background-color: var(--color-light); flex-direction: column; align-items: flex-start; padding: 80px 20px 20px; box-shadow: -2px 0 10px rgba(0,0,0,0.1); transform: translateX(100%); transition: transform 0.4s ease-in-out; overflow-y: auto; }
    .nav-links.sidebar-open { transform: translateX(0); }
    .nav-links li { margin: 1rem 0; width: 100%; }
    
    .nav-links a { color: var(--color-dark); }
    .nav-links li a.btn-primary { color: var(--color-light); }
    .nav-links li a.btn-primary:hover,
    .nav-links li a.btn-primary:active {
        color: var(--color-light);
        background-color: #522573;
    }
    
    .dropdown:hover .supermenu-content { display: none; }
    .dropdown .supermenu-content { position: static; display: none; box-shadow: none; border-radius: 0; background-color: transparent; width: 100%; opacity: 1; visibility: visible; transform: none; flex-direction: column; transition: none; }
    .dropdown.active .supermenu-content { display: block; }
    
    .supermenu-content .service-image-preview { display: none; }
    .supermenu-content .service-links { width: 100%; padding: 10px 0 0 15px; }
    
    /* Regras de alinhamento para o Header Mobile */
    .logo-mobile img, header.scrolled .logo-mobile img {
        height: 60px;
    }

    .hamburger {
        display: block;
        height: 40px; /* Garante que a altura é a mesma do theme-toggle */
    }

    .swiper-slide-active .service-card .card-caption {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.3s;
    }

    .mobile-controls { display: flex; }
    .nav-right .theme-toggle { display: none; }
}

/* 8. ESTILOS DESKTOP (A partir de 1024px) */
@media (min-width: 1024px) {
    .hero-content h1 { font-size: 7rem; }
    .swiper-slide { width: 350px; height: 450px; }

    .logo-mobile, .nav-links { display: none !important; }
    .mobile-controls { display: none !important; }
    .hamburger { display: none !important; }

    .logo-desktop img {
        height: 100px;
        transition: height 0.3s ease;
    }
    header.scrolled .logo-desktop img {
        height: 50px;
    }
    
    .nav-left, .nav-right, .logo-desktop {
        display: flex;
        align-items: center;
    }
    
    .logo-desktop { flex-shrink: 0; }
    .main-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .nav-left { justify-content: flex-start; }
    .nav-right { justify-content: flex-end; }
    .nav-left, .nav-right { flex: 1; }
    .nav-links-desktop {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        align-items: center;
    }
    .nav-left .nav-links-desktop li { margin-right: 1.5rem; }
    .nav-left .nav-links-desktop li:last-child { margin-right: 0; }
    .nav-right .nav-links-desktop li { margin-left: 1.5rem; }
    .nav-links-desktop a {
        text-decoration: none;
        color: var(--color-light);
        font-weight: 700;
        position: relative;
    }
    .nav-links-desktop a:not(.btn)::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background-color: var(--color-primary);
        transition: width 0.3s ease;
    }
    .nav-links-desktop a:hover::after { width: 100%; }
    header.scrolled .nav-links-desktop a { color: var(--color-light); }
    header.scrolled .nav-links-desktop a::after { background-color: var(--color-light); }
    header.scrolled .nav-links-desktop a.active {
        color: var(--color-light) !important;
        font-weight: 900;
    }
    header.scrolled .nav-right .btn-primary {
        background-color: var(--color-light);
        color: var(--color-primary);
    }
}

/* 9. AJUSTES E CORREÇÕES FINAIS */
.nav-links a.btn::after { display: none; }
.nav-links a.btn { padding-top: 12px; padding-bottom: 12px; }
.nav-links a.active { color: var(--color-primary); }
.nav-links a.active::after { width: 100%; }

/* 10. UTILITÁRIOS E HELPERS */
body.dark-mode {
    --color-light: #121212;
    --color-secondary: #1a1a1a;
    --color-dark: #f0f0f0;
    --color-text: #e0e0e0;
}

body.dark-mode .testimonial-card,
body.dark-mode .service-card {
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Altera o fundo do menu para se destacar ligeiramente do fundo da página */
body.dark-mode .supermenu-content {
    background-color: var(--color-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .supermenu-content .service-link-item {
    color: var(--color-dark) !important;
}

/* Melhora o efeito hover para o modo escuro */
body.dark-mode .supermenu-content .service-link-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 11. OTIMIZAÇÕES DE CONTRASTE PARA O MODO ESCURO */

/* Garante que os títulos das secções são claros e legíveis */
body.dark-mode .section-title {
    color: var(--color-dark);
}

/* Garante que o texto principal na secção Hero se destaca, usando a cor da marca */
body.dark-mode .hero-content h1,
body.dark-mode .hero-content p {
    color: var(--color-primary);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* Garante que os links de navegação no header (desktop) têm alto contraste */
body.dark-mode .nav-links-desktop a:not(.btn) {
    color: var(--color-dark);
}

/* 12. NOVA REGRA ADICIONADA: Corrige o texto invisível no carrossel de serviços */
body.dark-mode .card-caption {
    color: var(--color-dark);
}

/* Melhora o contraste do texto nos cartões de estatísticas */
body.dark-mode .single-fun-factor h4 {
    color: var(--color-dark);
}

/* Garante a legibilidade dos testemunhos */
body.dark-mode .testimonial-card blockquote,
body.dark-mode .testimonial-card h5 {
    color: var(--color-dark);
}

/* Corrige a cor dos links de contacto e redes sociais no rodapé */
body.dark-mode .footer-contact a,
body.dark-mode .footer-social a {
    color: var(--color-dark);
}

body.dark-mode .footer-social a:hover {
    color: var(--color-primary);
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    border-color: var(--color-primary);
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 0 15px rgba(212, 175, 91, 0.5);
}

.theme-toggle svg {
    position: absolute;
    transition: transform 0.7s cubic-bezier(0.68, -0.6, 0.32, 1.6), 
                opacity 0.5s ease;
}

.theme-toggle .sun {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
}
.theme-toggle .moon {
    transform: translateY(150%) rotate(90deg);
    opacity: 0;
}

.theme-toggle.dark-active .sun {
    transform: translateY(-150%) rotate(-90deg);
    opacity: 0;
}
.theme-toggle.dark-active .moon {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
}
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 1001;
}
.scroll-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, var(--color-primary), #f9a825);
    transition: width 0.1s linear;
}

/* 13. ESTILOS DA PÁGINA DE SERVIÇO */
.service-hero { height: 85vh; background-size: cover; background-position: center center; }
.service-hero .hero-background { background-position: center 30%; }
.service-hero .hero-background::after { background-color: rgba(0, 0, 0, 0.6); }
.service-hero h1 { font-family: var(--font-headings); font-size: 4rem; font-weight: 900; }
.service-hero p.font-rochester { font-size: 2.5rem; margin-bottom: 0.5rem; font-weight: normal; }
.service-details-area { padding: 4rem 0; }
.alternating-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin-bottom: 4rem; }
.alternating-layout.reverse { grid-template-areas: "text image"; }
.alternating-layout.reverse .alternating-image { grid-area: image; }
.alternating-layout.reverse .alternating-text { grid-area: text; }

/* O CONTAINER agora garante o arredondamento e o overflow */
.alternating-image { 
    overflow: hidden; 
    border-radius: 15px;
}
.alternating-image img { 
    width: 100%; 
    height: auto; /* Garante que a proporção não é cortada */
    border-radius: 15px; /* Mantém o arredondamento no elemento */
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); 
}
.alternating-image video {
    width: 100%;
    height: auto; /* Garante que a proporção não é cortada */
    border-radius: 15px; /* Mantém o arredondamento no elemento */
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.alternating-text h3 { font-size: 2rem; color: var(--color-primary); margin-bottom: 1rem; }
.alternating-text p { line-height: 1.8; }

/* Início da otimização do layout para telas grandes (Desktop) */
@media (min-width: 1024px) {
    /* IMPORTANTE: As regras genéricas (alternating-layout sem classe extra) voltam a ser 1fr 1fr (padrão) */
    
    /* Regras específicas para Layouts com VÍDEO (is-narrow-media) */
    /* Reduz a largura da coluna de media para 29% (2fr) e aumenta a de texto para 71% (5fr). */
    /* Layout Padrão (Imagem na 1ª coluna): Media/Texto */
    .alternating-layout:not(.reverse) {
        grid-template-columns: 2fr 3fr;
    }
    /* Layout Padrão (Imagem na 1ª coluna): Media/Texto */
    .alternating-layout.is-narrow-media:not(.reverse) {
        grid-template-columns: 2fr 5fr;
    }
    /* Layout Reverso (Imagem na 2ª coluna): Texto/Media */
    .alternating-layout.reverse {
        grid-template-columns: 3fr 2fr;
    }
    /* Layout Reverso (Imagem na 2ª coluna): Texto/Media */
    .alternating-layout.is-narrow-media.reverse {
        grid-template-columns: 5fr 2fr;
    }
}
/* Fim da otimização do layout para telas grandes (Desktop) */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.feature-card .fun-factor-content { padding: 1.5rem; }
.feature-icon { font-size: 2.5rem; color: var(--color-primary); margin-bottom: 1rem; display: block; }
body.dark-mode .feature-icon { color: var(--color-primary); }
.feature-card h4 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.95rem; }
.feature-card:hover::after { opacity: 0; }
.feature-card:hover .fun-factor-content { color: inherit; }
body.dark-mode .feature-card:hover .fun-factor-content { color: var(--color-text); }

.gallery-area { padding: 4rem 0; background-color: var(--color-secondary); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.gallery-item img { width: 100%; height: 250px; object-fit: cover; border-radius: 15px; transition: transform 0.4s ease, box-shadow 0.4s ease; cursor: pointer; }
.gallery-item img:hover { transform: scale(1.05); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); }

.cta-section { padding: 4rem 0; text-align: center; background-color: var(--color-primary); color: var(--color-light); }
.cta-section h2 { font-size: 2.5rem; color: var(--color-light); margin-bottom: 1rem; }
.cta-section p { max-width: 600px; margin-left: auto; margin-right: auto; margin-bottom: 2rem; }

@media (max-width: 768px) {
    .service-hero h1 { font-size: 3rem; }
    .alternating-layout, .alternating-layout.reverse { grid-template-columns: 1fr; }
    .alternating-layout.reverse { grid-template-areas: unset; }
    .alternating-layout .alternating-image { grid-area: unset !important; }
    .alternating-layout .alternating-text { grid-area: unset !important; text-align: center; }
}
@media (max-width: 768px) {
    .service-hero {
        height: 80vh;
    }
    .service-hero h1 { 
        font-size: 3rem; 
    }
}

/* 14. LETREIRO DIGITAL PROFISSIONAL PARA TESTEMUNHOS (Estilo Reactbits) */
.testimonials-marquee-section {
    padding: 4rem 0;
    background-color: var(--color-secondary);
}

.testimonials-marquee-container {
    display: flex;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    padding-top: 1rem;    /* Adiciona espaço no topo */
    padding-bottom: 1rem; /* Adiciona espaço na base */
}

/* O wrapper que contém os cards e que será animado */
.testimonials-marquee {
    display: flex;
    flex-shrink: 0;
    justify-content: space-around;
    min-width: 100%;
}

/* 15. LÓGICA DA ANIMAÇÃO */
/* Definição da animação de scroll da esquerda para a direita */
@keyframes scroll-left {
    from { transform: translateX(0%); }
    to { transform: translateX(-100%); }
}

/* Definição da animação de scroll da direita para a esquerda */
@keyframes scroll-right {
    from { transform: translateX(-100%); }
    to { transform: translateX(0%); }
}

/* Aplicação das animações com base na classe de direção */
.testimonial-marquee-left .testimonials-marquee {
    animation: scroll-left 200s linear infinite;
}

.testimonial-marquee-right .testimonials-marquee {
    animation: scroll-right 200s linear infinite;
}

/* Pausa a animação em ambos os sentidos quando o mouse está sobre o container */
.testimonials-marquee-container:hover .testimonials-marquee {
    animation-play-state: paused;
}

body.dark-mode .testimonials-marquee-section .testimonial-card {
    background: #1e1e1e;
}

/* 16. ESTILOS DOS CARDS DE TESTEMUNHOS */
/* Ajusta o card principal */
.testimonials-marquee-section .testimonial-card {
    width: 380px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto;
    min-height: 280px; /* Aumenta a altura mínima para melhor visualização */
}

.testimonials-marquee-section .testimonial-card img {
    display: block; /* Garante que a imagem do avatar é visível */
}

/* Estiliza o cabeçalho para acomodar o avatar */
.testimonial-header {
    margin-bottom: 0.75rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem; /* Espaçamento entre o avatar e o texto */
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar .initial {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-light);
}

.author-details h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0;
}

.author-details span {
    font-size: 0.8rem;
    color: #888;
}

/* Estiliza a avaliação por estrelas */
.testimonial-rating {
    margin-bottom: 1rem;
    color: var(--color-primary);
}

/* Estiliza o corpo do testemunho (título e texto) */
.testimonial-body h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

.testimonial-body blockquote {
    font-size: 0.9rem;
    line-height: 1.5;
    border-left: 3px solid var(--color-primary);
    padding-left: 1rem;
    margin: 0;
    font-style: italic;
    color: #555;
    
    /* Limita o texto para evitar cards muito longos */
    max-height: 120px; /* Altura máxima para cerca de 5 linhas */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 5; /* Número de linhas a exibir */
    -webkit-box-orient: vertical;
}

/* Ajustes para o Modo Escuro */
body.dark-mode .author-details h4,
body.dark-mode .testimonial-body h5 {
    color: var(--color-dark);
}

body.dark-mode .author-details span {
    color: #aaa;
}

body.dark-mode .testimonial-body blockquote {
    color: #ccc;
}

/* 17. ESTILOS DO MODAL DE TESTEMUNHOS */
/* Botão "Ver mais" */
.see-more-btn {
    background: transparent;
    border: none;
    color: var(--color-primary);
    font-weight: 700;
    cursor: pointer;
    padding: 8px 0;
    margin-top: 10px;
    font-size: 0.9rem;
    align-self: flex-start; /* Alinha o botão à esquerda */
}

/* Overlay do Modal (fundo escurecido) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* Conteúdo do Modal */
.modal-content {
    background: var(--color-light);
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.is-visible .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #888;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modal-body blockquote {
    max-height: none;
    -webkit-line-clamp: unset;
    overflow: visible;
    white-space: pre-wrap; /* Preserva as quebras de linha */
}

/* Modo Escuro para o Modal */
body.dark-mode .modal-content {
    background: var(--color-secondary);
}

body.dark-mode .modal-close {
    color: #ccc;
}
/* 18. BARRA DE PRÉMIOS ESTÁTICOS (Layout Minimalista) */

.static-awards-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem; /* Espaçamento entre os prémios */
    margin-top: 1rem;
    flex-wrap: wrap; /* Permite que os prémios quebrem a linha em ecrãs pequenos */
}

.award-item img {
    height: 90px; /* Tamanho controlado e consistente */
    width: auto;
    filter: grayscale(100%) opacity(60%); /* Efeito sofisticado a preto e branco */
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.award-item img:hover {
    filter: grayscale(0%) opacity(100%); /* Ganha cor e opacidade total no hover */
    transform: scale(1.1); /* Efeito de zoom subtil */
}

/* 19. FOOTER PROFISSIONAL E SOFISTICADO */
footer {
    background-color: var(--color-secondary);
    color: var(--color-text);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-mode footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

body.dark-mode .footer-column h4 {
    color: var(--color-dark);
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-primary);
}

.footer-logo img {
    height: 60px;
    margin-bottom: 1rem;
    transition: opacity 0.3s ease;
}

.footer-logo:hover img {
    opacity: 0.85;
}

.footer-tagline {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #666;
    opacity: 0;
}
/* Animação para a tagline do rodapé */
.footer-tagline {
    font-size: 0.95rem;
    line-height: 1.7;
    display: block;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Define o estado inicial para cada palavra */
.footer-tagline span {
    display: inline-block;
    opacity: 0;
    transform: translateY(10px);
    /* Remove o blur para dar destaque total à cor dourada */
    color: var(--color-primary); /* Começa com a cor dourada */
    transition: all 1s cubic-bezier(0.39, 0.575, 0.565, 1);
}

/* Esta classe ativa a animação para a tagline */
.footer-tagline.is-animated {
    opacity: 1; /* Torna o container visível */
}

/* Animação de entrada e mudança de cor */
/* Padrão (Modo Claro) */
.footer-tagline.is-animated span {
    opacity: 1;
    transform: translateY(0);
    /* Remove o blur */
    color: #666; /* Cor final do texto (cinza), para o modo claro */
}

/* Modo Escuro */
body.dark-mode .footer-tagline.is-animated span {
    color: #a0a0a0; /* Cor final para o modo escuro */
}

/* Atrasos individuais para cada palavra (mantenha como está) */
.footer-tagline.is-animated span:nth-of-type(1) { transition-delay: 0.1s; }
.footer-tagline.is-animated span:nth-of-type(2) { transition-delay: 0.2s; }
.footer-tagline.is-animated span:nth-of-type(3) { transition-delay: 0.3s; }
.footer-tagline.is-animated span:nth-of-type(4) { transition-delay: 0.4s; }
.footer-tagline.is-animated span:nth-of-type(5) { transition-delay: 0.5s; }
.footer-tagline.is-animated span:nth-of-type(6) { transition-delay: 0.6s; }
.footer-tagline.is-animated span:nth-of-type(7) { transition-delay: 0.7s; }
.footer-tagline.is-animated span:nth-of-type(8) { transition-delay: 0.8s; }
.footer-tagline.is-animated span:nth-of-type(9) { transition-delay: 0.9s; }

body.dark-mode .footer-tagline {
    color: #a0a0a0;
}

.footer-column.links ul {
    list-style: none;
}

.footer-column.links ul li {
    margin-bottom: 0.75rem;
}

.footer-column.links a {
    text-decoration: none;
    color: var(--color-text);
    transition: color 0.3s ease, padding-left 0.3s ease;
    position: relative;
}

.footer-column.links a:hover {
    color: var(--color-text);
}

/* Adiciona espaço abaixo do texto do link para o sublinhado */
.footer-column.links a {
    padding-bottom: 5px;
}

/* Cria o sublinhado (inicialmente invisível) */
.footer-column.links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

/* Expande o sublinhado a 100% no hover */
.footer-column.links a:hover::after {
    width: 100%;
}

.footer-contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    text-decoration: none;
    color: var(--color-text);
    transition: color 0.3s ease;
}

.footer-contact-link:hover {
    color: var(--color-primary);
}

.footer-contact-link i {
    color: var(--color-primary);
    width: 20px;
    text-align: center;
}

.footer-social {
    margin-top: 2rem;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--color-text);
    margin-right: 0.5rem;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

body.dark-mode .social-icons a {
    background-color: rgba(255, 255, 255, 0.1);
}

.social-icons a:hover {
    background-color: var(--color-primary);
    color: var(--color-light);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
    color: #888;
}

.footer-bottom p {
    margin: 0;
}

.creator a {
    color: var(--color-text);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.creator a:hover {
    color: var(--color-primary);
}

body.dark-mode .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #777;
}

@media (max-width: 768px) {
    .footer-main {
        text-align: center;
    }
    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-contact-link,
    .footer-column.links ul,
    .social-icons {
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
        justify-content: center;
    }
}

/* 20. PÁGINA DE ORÇAMENTO */
.quote-form-section-v2 {
    padding: 5rem 0;
}

.quote-form-v2 {
    max-width: 900px;
    margin: 0 auto;
    background-color: transparent;
}

.form-section {
    border: none;
    padding: 0;
    margin: 0 0 4rem 0;
    border-left: 3px solid var(--color-primary);
    padding-left: 2.5rem;
}

.form-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.form-section-title .step-number {
    background-color: var(--color-primary);
    color: var(--color-light);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 900;
}

.form-section-subtitle {
    color: #888;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* Seleção de Serviços */
.service-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}
.service-card-option {
    cursor: pointer;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.service-card-option input[type="checkbox"] { display: none; }

.service-card-option .card-content {
    position: relative;
    height: 250px;
}
.service-card-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.service-card-option:hover img {
    transform: scale(1.1);
}
.service-card-option video, .service-card-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.service-card-option .card-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    color: white;
    text-align: center;
    transition: background-color 0.4s ease;
}

.service-card-option .card-overlay h4 {
    position: absolute;
    bottom: 1rem;
    font-size: 1.1rem;
    width: 100%;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card-option .card-overlay .fa-check-circle {
    position: absolute;
    left: 50%;
    top: 50%;
    font-size: 3rem;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    transform: translate(-50%, -150%) scale(0.5);
}

/* Esconde as opções por padrão e exibe-as apenas quando o card-overlay tem a classe 'options-visible' */
.service-card-option .options-container {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
}
.service-card-option .card-overlay.options-visible .options-container {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
}
.service-card-option .options-container .options-title {
    font-weight: 700;
    color: var(--color-primary); /* Muda a cor do título para dourado */
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}
/* Oculta o título do serviço quando o overlay de opções está visível */
.service-card-option .card-overlay.options-visible h4 {
    opacity: 0;
}
/* Oculta o check para serviços com opções até que o checkbox seja marcado */
.service-card-option[data-service-with-options] .fa-check-circle {
    display: none;
}
/* Estilo para as opções clicáveis (destaque no hover) */
.service-card-option .option-item {
    font-size: 1rem;
    color: white;
    padding: 0.3rem 0;
    cursor: pointer;
    transition: color 0.3s ease;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    display: block;
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
}
.service-card-option .option-item:hover {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration: none;
}

/* Estado Final - Quando o checkbox é selecionado */
.service-card-option input:checked + .card-content .card-overlay {
    background: rgba(212, 175, 91, 0.7);
}

.service-card-option input:checked + .card-content .card-overlay h4 {
    /* Posição final: O texto sobe para o centro */
    transform: translateY(-55px);
    opacity: 1;
}

.service-card-option input:checked + .card-content .card-overlay .fa-check-circle {
    /* Torna o check visível e anima o movimento */
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Oculta as opções quando o checkbox está marcado, garantindo que só o check e o título são visíveis */
.service-card-option input:checked + .card-content .card-overlay .options-container {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

/* 21. ESTILOS DO CAMPO SELECT PERSONALIZADO */
.custom-select-wrapper {
    position: relative;
    display: block;
    width: 100%;
    font-family: var(--font-body);
}

.custom-select-wrapper select {
    display: block;
    width: 100%;
    padding: 14px 40px 14px 18px; /* Espaço para a seta */
    border-radius: 8px;
    border: 1px solid #ddd;
    background-color: var(--color-secondary);
    color: var(--color-text);
    font-size: 1rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Seta do select */
.custom-select-wrapper::after {
    content: '\f078'; /* Ícone de seta para baixo do Font Awesome */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    color: var(--color-primary);
    pointer-events: none; /* Permite clicar no select através da seta */
    transition: transform 0.3s ease;
}

.custom-select-wrapper select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 91, 0.2);
}

/* Estilos para o modo escuro */
body.dark-mode .custom-select-wrapper select {
    background-color: #2c2c2c;
    border-color: #444;
    color: var(--color-text);
}

/* Rotação da seta quando o select está focado (opcional) */
.custom-select-wrapper select:focus + ::after {
    transform: translateY(-50%) rotate(180deg);
}

.service-card-option input:checked + .card-content .card-overlay {
    background: rgba(212, 175, 91, 0.7);
}

.service-card-option input:checked + .card-content .card-overlay .fa-check-circle {
    /* ANIMAÇÃO DE ENTRADA (ÍCONE): Desce para o centro. */
    opacity: 1;
    transform: translate(-50%, -70%) scale(1);
}

.service-card-option input:checked + .card-content .card-overlay h4 {
    /* ANIMAÇÃO DE ENTRADA (NOME): Sobe a partir da base. */
    transform: translateY(-55px);
}
/* Adiciona a linha animada */
.service-card-option .option-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0; /* Começa com largura zero */
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

/* No hover, a linha aparece */
.service-card-option .option-item:hover::after {
    width: 100%;
}
.saiba-mais-link {
    font-size: 0.9rem;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    margin-top: 10px;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

.saiba-mais-link:hover {
    color: var(--color-primary);
    text-decoration: none;
}

.saiba-mais-link::after {
    display: none;
}

/* Estilos dos campos do formulário */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 700; color: var(--color-text); }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background-color: var(--color-secondary);
    color: var(--color-dark);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: var(--font-body);
    font-size: 1rem;
}
body.dark-mode .form-group input, body.dark-mode .form-group textarea {
    background-color: #2c2c2c;
    border-color: #444;
    color: #f0f0f0;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(212, 175, 91, 0.2); }

.form-submission-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

body.dark-mode .form-submission-area {
    border-top-color: #333;
}
.checkbox-label { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; }
.checkbox-label input { width: auto; accent-color: var(--color-primary); }
.checkbox-label a { color: var(--color-primary); text-decoration: none; }
.checkbox-label a:hover { text-decoration: underline; }

.submit-btn {
    font-size: 1.1rem;
    padding: 15px 35px;
}
.submit-btn i {
    margin-left: 10px;
}

/* Responsividade */
@media (max-width: 768px) {
    .form-grid { grid-template-columns: 1fr; }
    .form-section { padding-left: 1.5rem; }
    .submission-content { flex-direction: column; align-items: flex-start; }
}

/* 22. MODO ESCURO */
/* Aplica um fundo escuro inicial para evitar o "flash" do tema claro */
html.dark-mode-loading {
    background-color: #121212;
}

/* Redefine as variáveis de cor quando o modo escuro está ativo */
body.dark-mode {
    --color-light: #121212;      /* Fundo principal da página */
    --color-secondary: #1a1a1a;  /* Fundo de secções e componentes */
    --color-dark: #f0f0f0;       /* Cor de texto principal (títulos) */
    --color-text: #cccccc;       /* Cor de texto secundário (parágrafos) */
}

/* ESTILOS GERAIS PARA O MODO ESCURO */
body.dark-mode .section-title,
body.dark-mode .alternating-text h3,
body.dark-mode .cta-section h2 {
    color: var(--color-dark);
}

body.dark-mode .alternating-text p,
body.dark-mode .cta-section p {
    color: var(--color-text);
}

/* HEADER */
body.dark-mode .nav-links-desktop a:not(.btn) {
    color: var(--color-dark);
}
body.dark-mode header.scrolled .nav-links-desktop a:not(.btn) {
    color: var(--color-light); /* Texto branco no header dourado */
}

/* PÁGINA DE ORÇAMENTO */

body.dark-mode .form-section-title {
    color: var(--color-dark);
}

body.dark-mode .form-section-subtitle,
body.dark-mode .form-group label,
body.dark-mode .checkbox-label span {
    color: #bbb;
}

body.dark-mode .form-group input, 
body.dark-mode .form-group textarea {
    background-color: #2c2c2c;
    border-color: #444;
    color: var(--color-text);
}

body.dark-mode .form-submission-area {
    border-top-color: #333;
}

/* OUTRAS PÁGINAS E COMPONENTES */

body.dark-mode .service-hero .hero-content h1,
body.dark-mode .service-hero .hero-content p {
    color: var(--color-primary);
}

body.dark-mode p.font-rochester {
    color: var(--color-primary);
}

body.dark-mode .thank-you-content h1,
body.dark-mode .thank-you-content p {
    color: var(--color-dark);
}

body.dark-mode .footer-tagline {
    color: #a0a0a0;
}
body.dark-mode .footer-column.links a {
    color: var(--color-text);
}
body.dark-mode .footer-column.links a:hover {
    color: var(--color-primary);
}

body.dark-mode .supermenu-content {
    background-color: var(--color-secondary);
}
body.dark-mode .service-link-item {
    color: var(--color-dark) !important;
}
body.dark-mode .service-link-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 23. PÁGINA DE CONFIRMAÇÃO (OBRIGADO) */
.confirmation-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 6rem 0;
    background-size: cover;
    background-position: center;
}

.confirmation-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode .confirmation-card {
    background: rgba(26, 26, 26, 0.85); /* Fundo escuro semi-transparente */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.confirmation-header h1 {
    font-size: 3.5rem;
    margin: 0.5rem 0;
    color: var(--color-dark);
}

body.dark-mode .confirmation-header h1 {
    color: var(--color-dark); /* Mantém a cor clara do título */
}

.confirmation-header p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2.5rem;
}

body.dark-mode .confirmation-header p {
    color: #ccc;
}

.confirmation-summary {
    text-align: left;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 15px;
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
}

body.dark-mode .confirmation-summary {
    background: rgba(0, 0, 0, 0.2);
}

.confirmation-summary h2 {
    text-align: center;
    font-size: 1.3rem;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

body.dark-mode .confirmation-summary h2 {
    border-bottom-color: rgba(255,255,255,0.1);
}

.summary-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.summary-item:not(:last-child) {
    margin-bottom: 1rem;
}

.summary-item i {
    color: var(--color-primary);
    font-size: 1.2rem;
    margin-top: 5px;
    width: 20px;
}

.summary-item div {
    display: flex;
    flex-direction: column;
}

.summary-item strong {
    font-weight: 700;
    color: var(--color-dark);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-item span {
    color: #555;
    font-size: 1rem;
}

body.dark-mode .summary-item span {
    color: #ddd;
}

.next-steps {
    margin-bottom: 2.5rem;
}

.next-steps h3 {
    font-size: 1.3rem;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.next-steps p {
    color: #666;
    max-width: 500px;
    margin: 0 auto;
}

body.dark-mode .next-steps p {
    color: #ccc;
}

.confirmation-card .btn {
    width: auto;
}
/* 24. LOGÓTIPO DENTRO DO CARTÃO (PÁGINA DE OBRIGADO) */
.card-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.card-logo img {
    max-width: 180px; /* Controla o tamanho do logo */
    height: auto;
    transition: transform 0.3s ease;
}

.card-logo a:hover img {
    transform: scale(1.05); /* Efeito de zoom subtil ao passar o rato */
}

/* Ajusta a margem do cabeçalho para acomodar o novo logo */
.confirmation-header {
    margin-bottom: 2.5rem;
}

/* 25. PÁGINA DE CONTACTOS */
.contact-details-section {
    padding: 5rem 0;
    background-color: var(--color-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.contact-card {
    background-color: var(--color-light);
    border-radius: 15px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative; /* Essencial para o efeito de overlay */
    overflow: hidden; /* Essencial para o efeito de overlay */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card-content {
    position: relative; /* Para ficar por cima do overlay */
    z-index: 2;
    transition: color 0.4s ease;
}

.contact-icon {
    margin-bottom: 1.5rem;
}

.contact-icon svg {
    width: 50px;
    height: 50px;
    fill: var(--color-primary); /* Usar 'fill' para SVGs */
    transition: fill 0.4s ease;
}

.contact-card h3 {
    font-size: 1.5rem;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
    transition: color 0.4s ease;
}

.contact-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    transition: color 0.4s ease;
}

.contact-link {
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.4s ease;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.contact-link:hover::after {
    width: 100%;
}

body.dark-mode .contact-card {
    background-color: #1e1e1e;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-color: rgba(255,255,255,0.1);
}
body.dark-mode .contact-card p {
    color: #a0a0a0;
}
body.dark-mode .contact-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.social-icons-contact {
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.social-icons-contact a {
    color: var(--color-text);
}

/* Adiciona uma transição suave para a mudança de cor */
.social-icons-contact a {
    transition: color 0.3s ease;
}

/* Altera a cor do ícone para dourado ao passar o rato por cima */
.social-icons-contact a:hover {
    color: var(--color-primary);
}

/* Estilos para as secções restantes da página */
.contact-form-section {
    padding: 5rem 0;
}

/* 26. BARRA DE ÍCONES FLUTUANTE */
.floating-social-bar {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.floating-social-bar a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: var(--color-secondary);
    border-radius: 50%;
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.floating-social-bar a:hover {
    background-color: var(--color-primary);
    color: var(--color-light);
    transform: scale(1.15) translateX(5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

body.dark-mode .floating-social-bar a {
    background-color: rgba(26, 26, 26, 0.7);
    color: var(--color-primary);
}

body.dark-mode .floating-social-bar a:hover {
    background-color: var(--color-primary);
    color: var(--color-light);
}

/* Esconde a barra em ecrãs pequenos para não sobrepor o conteúdo */
@media (max-width: 768px) {
    .floating-social-bar {
        display: none;
    }
}
/* Botão do WhatsApp */
.floating-social-bar-right {
    position: fixed;
    bottom: 20px; /* Alinha na parte inferior */
    right: 20px; /* Alinha na parte direita */
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}
.floating-social-bar-right a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: var(--color-secondary);
    border-radius: 50%;
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}
.floating-social-bar-right a:hover {
    background-color: var(--color-primary);
    color: var(--color-light);
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}
body.dark-mode .floating-social-bar-right a {
    background-color: rgba(26, 26, 26, 0.7);
    color: var(--color-primary);
}
body.dark-mode .floating-social-bar-right a:hover {
    background-color: var(--color-primary);
    color: var(--color-light);
}

/* 27. PÁGINA "QUEM SOMOS" */
.about-story-section {
    padding: 5rem 0;
    background-color: transparent;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-content h2 {
    text-align: left;
    margin-bottom: 2rem;
    color: var(--color-dark);
}

.story-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.story-visual {
    position: relative;
    height: 100%; /* Garante que o container visual ocupa toda a altura */
}

.story-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    height: 100%; /* O container da imagem também ocupa toda a altura */
}

.main-story-image {
    width: 100%;
    height: 100%; /* A imagem preenche a altura do seu container */
    object-fit: cover;
    transition: transform 0.5s ease;
}

.story-highlights {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 2rem;
    display: flex;
    justify-content: space-between;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--color-light);
}

.highlight-icon {
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.highlight-text h4 {
    margin: 0;
    font-size: 1.1rem;
}

.highlight-text p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Secção de Valores */
.values-section {
    padding: 5rem 0;
    background-color: var(--color-secondary);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.value-card {
    background-color: var(--color-light);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative; /* Essencial para o overlay */
    overflow: hidden; /* Essencial para o overlay */
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.value-card-content {
    position: relative; /* Para ficar por cima do overlay */
    z-index: 2;
}

.value-icon {
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estilizar o SVG dentro do ícone */
.value-icon svg {
    width: 50px;  /* Ajustar o tamanho para ser consistente */
    height: 50px;
    fill: var(--color-primary); /* Aplicar a cor dourada diretamente no ícone */
    transition: fill 0.4s ease, transform 0.4s ease;
}

.value-card h3 {
    font-size: 1.5rem;
    color: var(--color-dark);
    margin-bottom: 1rem;
    transition: color 0.4s ease;
}

.value-card p {
    color: #666;
    line-height: 1.7;
    transition: color 0.4s ease;
}

/* Subtítulo para secções */
.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #888;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* Modo escuro para a página "Quem Somos" */
body.dark-mode .about-story-section {
    background-color: transparent;
}

body.dark-mode .story-content h2 {
    color: var(--color-dark);
}

body.dark-mode .value-card {
    background-color: #1e1e1e;
    border-color: rgba(255,255,255,0.1);
}

body.dark-mode .value-card p {
    color: #ccc;
}

body.dark-mode .values-section {
    background-color: var(--color-secondary);
}

/* Responsividade para a página "Quem Somos" */
@media (max-width: 1024px) {
    .story-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .story-content h2 {
        text-align: center;
    }
    
    .story-highlights {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .highlight-item {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .about-story-section,
    .values-section {
        padding: 3rem 0;
    }
    
    .main-story-image {
        height: 350px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .value-card {
        padding: 2rem 1.5rem;
    }
}

/* 28. SECÇÃO CONHEÇA A EQUIPA (PÁGINA QUEM SOMOS) */
.team-section {
    padding: 5rem 0;
    background-color: var(--color-light);
}

.team-photo-container {
    max-width: 1000px; /* Largura máxima para a foto da equipa */
    margin: 3rem auto 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.team-photo-container:hover {
    transform: scale(1.03); /* Efeito de zoom subtil */
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.team-photo-container img {
    width: 100%;
    height: auto; /* Mantém a proporção da imagem */
    display: block; /* Remove espaço extra abaixo da imagem */
}

/* Modo escuro para a secção de equipa */
body.dark-mode .team-section {
    background-color: var(--color-light);
}

/* 29. SECÇÃO LINHA DO TEMPO (PÁGINA QUEM SOMOS) */
.timeline-section {
    padding: 5rem 0;
    background-color: var(--color-secondary);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 3rem auto 0;
}

/* A linha central da timeline */
.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--color-primary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

/* Posiciona os itens à esquerda e à direita */
.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 60px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 60px;
    text-align: left;
}

.timeline-dot {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--color-light);
    border: 4px solid var(--color-primary);
    top: 24px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--color-light);
    position: relative;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
}

body.dark-mode .timeline-content {
    background-color: #1e1e1e;
}

.timeline-year {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--color-primary);
    color: var(--color-light);
    font-weight: 700;
    border-radius: 50px;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.timeline-content h4 {
    font-size: 1.4rem;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text);
}

/* Responsividade da timeline */
@media (max-width: 768px) {
    .timeline::after {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 20px;
        text-align: left !important;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-dot {
        left: 10px !important;
        right: auto !important;
    }
}

/* 30. Rotator de Redes Sociais */
.social-rotator-container {
    height: 220px;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    display: block;
    text-align: center;
}

/* O wrapper para os itens de rotação total */
.social-rotator-container.full-rotator {
    height: 220px;
}

.social-rotator-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.7s ease-in-out, transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-size: 1rem;
    line-height: 1.5rem;
    color: #666;
    margin: 0;
}

.social-rotator-item.active {
    opacity: 1;
    transform: translateY(0);
}

/* Estilos para os elementos internos do item rotativo */
.social-rotator-item .contact-icon {
    margin-bottom: 1.5rem; /* Para afastar do título */
}

.social-rotator-item .contact-icon svg {
    width: 50px;
    height: 50px;
    fill: var(--color-primary);
}

.social-rotator-item h3 {
    font-size: 1.5rem;
    color: var(--color-dark);
    margin-bottom: 0.5rem; /* Separa o h3 do p */
    transition: color 0.4s ease;
}

.social-rotator-item p {
    color: #666;
    margin: 0 0 1.5rem 0; /* Separa o p do link */
    line-height: 1.6;
}

body.dark-mode .social-rotator-item h3 {
    color: var(--color-dark);
}

body.dark-mode .social-rotator-item p {
    color: #a0a0a0;
}
/* Ajusta o placeholder do ícone original */
.contact-card-3 .contact-icon[style*="opacity: 0"] {
    height: 0;
    margin-bottom: 0;
}

/* 31. SCROLL DOWN INDICATOR */
.tt-scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    opacity: 1;
    visibility: visible;
    transition: all 0.5s ease-in-out;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tt-scroll-down.hide {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(20px);
}

.tt-sd-inner {
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-decoration: none;
    color: var(--color-light); 
    transition: color 0.3s ease;
}

.tt-sd-inner:hover {
    color: var(--color-primary);
}

.tt-sd-arrow {
    width: 2px;
    height: 40px; 
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 10px;
    overflow: hidden;
    position: relative;
    transition: background-color 0.3s ease;
}

/* Cria a linha animada sobreposta (o efeito de scroll) */
.tt-sd-arrow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-primary), var(--color-primary));
    transform: translateY(-100%); /* Começa fora do topo */
    animation: scroll-line-down 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
    z-index: 1;
}

.tt-sd-arrow i {
    /* O Ícone: Fixo no topo do indicador */
    font-size: 1rem;
    color: var(--color-primary);
    position: absolute;
    top: 0; /* Fixa no topo */
    left: 50%; 
    transform: translateX(-50%); /* Centraliza o ícone */
    transition: color 0.3s ease;
    z-index: 2; /* Garante que a seta está sobre a linha animada */
    animation: none !important; /* Assegura que não há movimento */
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5); 
}

.tt-sd-text {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-primary); 
    line-height: 1; 
    margin: 0;
}

/* Ajustes de cor para o Modo Escuro */
/* As regras para o ::before foram removidas daqui */
body.dark-mode .tt-sd-arrow i,
body.dark-mode .tt-sd-text,
body.dark-mode .tt-sd-inner {
    color: var(--color-primary);
}

/* Keyframes para a nova animação da linha de scroll */
@keyframes scroll-line-down {
    0% {
        transform: translateY(-100%);
        opacity: 1;
    }
    50% {
        transform: translateY(100%);
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100%);
        opacity: 1;
    }
}

/* 32. SISTEMA DE CONSENTIMENTO DE COOKIES */
/* Transforma a barra externa num container transparente com espaçamento */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    background-color: transparent;
    border-top: none;
    box-shadow: none;
    padding: 1rem; /* Espaçamento para o cartão flutuar */
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cookie-banner.show {
    transform: translateY(0%);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 15px;
    padding: 1.5rem 2rem;
    box-shadow: 0 10px 35px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    transition: background-color 0.5s, color 0.5s;
    background-color: rgba(240, 240, 240, 0.9);
    color: var(--color-text);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.cookie-text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}
.cookie-text a {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
}
.cookie-text a:hover {
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Botão secundário (personalizar/rejeitar todos) */
.btn-secondary-cookie {
    background-color: transparent;
    color: var(--color-text);
    border: 2px solid #555;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-secondary-cookie:hover {
    background-color: #333;
    border-color: #666;
    color: var(--color-light);
}

/* Estilo do modal de preferências */
.cookie-modal-content {
    max-width: 650px;
    text-align: left;
    max-height: 90vh; /* Controla a altura máxima */
    overflow-y: auto;   /* Adiciona scroll se necessário */
}
.cookie-modal-content h3 {
    font-size: 1.8rem;
    color: var(--color-dark);
    margin-bottom: 1rem;
}
.cookie-modal-content > p {
    color: var(--color-text);
    margin-bottom: 2rem;
}

.cookie-category {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}
.cookie-category:last-of-type {
    border-bottom: none;
}
.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.cookie-category-header h4 {
    font-size: 1.1rem;
    color: var(--color-dark);
    font-weight: 700;
}
.cookie-category p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.cookie-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.switch { position: relative; display: inline-block; width: 50px; height: 28px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; }
.slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 4px; bottom: 4px; background-color: white; transition: .4s; }
input:checked + .slider { background-color: var(--color-primary); }
input:focus + .slider { box-shadow: 0 0 1px var(--color-primary); }
input:checked + .slider:before { transform: translateX(22px); }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }
.switch.always-on .slider { background-color: var(--color-primary); opacity: 0.6; cursor: not-allowed; }

/* WebKit (Chrome, Safari, Edge) */
.cookie-modal-content::-webkit-scrollbar { width: 8px; }
.cookie-modal-content::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.05); border-radius: 10px; }
.cookie-modal-content::-webkit-scrollbar-thumb { background-color: #ccc; border-radius: 10px; border: 2px solid transparent; background-clip: content-box; }
.cookie-modal-content::-webkit-scrollbar-thumb:hover { background-color: #aaa; }
/* Firefox */
.cookie-modal-content { scrollbar-width: thin; scrollbar-color: #ccc rgba(0, 0, 0, 0.05); }

body.dark-mode .cookie-banner-content {
    background-color: rgba(26, 26, 26, 0.9);
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
body.dark-mode .cookie-category { border-bottom-color: #333; }
body.dark-mode .cookie-category p { color: #a0a0a0; }
body.dark-mode .cookie-modal-actions { border-top-color: #333; }
/* Scrollbar modo escuro */
body.dark-mode .cookie-modal-content::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); }
body.dark-mode .cookie-modal-content::-webkit-scrollbar-thumb { background-color: #555; }
body.dark-mode .cookie-modal-content::-webkit-scrollbar-thumb:hover { background-color: #777; }
body.dark-mode .cookie-modal-content { scrollbar-color: #555 rgba(255, 255, 255, 0.05); }

@media (max-width: 768px) {
    .cookie-banner {
        padding: 0.75rem; /* Reduz o espaçamento exterior */
    }
    .cookie-banner-content {
        padding: 1.25rem; /* Reduz o espaçamento interior */
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}
/* 33. ESTILOS DO LIVRO DE RECLAMAÇÕES (COM EFEITO DE COR HOVER) */

.footer-legal {
    margin-top: 2rem;
}

/* O link <a> que contém a imagem */
.complaints-book-link {
    display: inline-block;
    width: 120px;
    height: 50px;
    background-color: #888;
    transition: background-color 0.4s ease; /* Transição suave de cor */
    
    /* A técnica de máscara */
    mask-image: url('images/livro-reclamacoes-120x50.png');
    -webkit-mask-image: url('images/livro-reclamacoes-120x50.png');
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
}

/* Esconde a imagem original, pois estamos a usá-la como máscara */
.complaints-book-link img {
    visibility: hidden;
}

/* O efeito no hover: muda a cor de fundo para dourado */
.complaints-book-link:hover {
    background-color: var(--color-primary);
}

/* Garante que o modo escuro também funciona */
body.dark-mode .complaints-book-link {
    background-color: #666; /* Um cinza um pouco mais claro para o fundo escuro */
}

body.dark-mode .complaints-book-link:hover {
    background-color: var(--color-primary);
}

/* Centraliza em ecrãs pequenos */
@media (max-width: 768px) {
    .footer-legal {
        display: flex;
        justify-content: center;
    }
}
/* 34. PRÉ-CARREGADOR DE PÁGINA */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-light);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 1s ease, visibility 1s ease;
}
#preloader.hide {
    opacity: 0;
    visibility: hidden;
}
.preloader-content img {
    max-width: 250px;
    height: auto;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
/* 35. MODAL DE SUCESSO DE CONTACTO */

.contact-success {
    max-width: 500px;
    padding: 3rem;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    /* Estado inicial para a animação de entrada */
    transform: scale(0.9) translateY(20px);
    opacity: 0;
}

.modal-overlay.is-visible .contact-success {
    /* Estado final da animação de entrada */
    transform: scale(1) translateY(0);
    opacity: 1;
}

.contact-success .modal-header {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-success .contact-icon {
    display: flex; /* Mantém para centralizar a imagem */
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 20px; /* Adiciona algum espaço abaixo do logo */
}

.contact-success .contact-icon img {
    max-width: 200px; /* Ajusta o tamanho máximo do logo diretamente */
    height: auto;
    transform: scale(0.5);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s; /* Delay para animar após a modal */
}

/* Animação para o logo de sucesso */
.modal-overlay.is-visible .contact-success .contact-icon img {
    transform: scale(1);
    opacity: 1;
}

.contact-success .author-details {
    text-align: center;
}

.contact-success .author-details h4 {
    font-size: 1.8rem;
    color: var(--color-dark);
    font-weight: 700;
    margin: 0;
}

.contact-success .author-details span {
    font-size: 1rem;
    color: #888;
    margin-top: 0.5rem;
    display: block;
}

.contact-success .modal-body {
    padding: 0;
    margin-bottom: 2.5rem;
}

.contact-success .modal-body h5 {
    display: none; /* Escondido para um design mais limpo */
}

.contact-success .modal-body p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
}

.contact-success .modal-btn {
    width: 100%;
}

body.dark-mode .contact-success .author-details h4 {
    color: var(--color-light-); /* Ajustado para modo escuro */
}

body.dark-mode .contact-success .author-details span,
body.dark-mode .contact-success .modal-body p {
    color: var(--color-text);
}

/* 36. ESTILOS DA PÁGINA FAQ */
.faq-section {
    padding: 5rem 0;
}

.faq-search {
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-container {
    position: relative;
    width: 100%;
}

.search-container i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-primary);
    font-size: 1.2rem;
}

#faq-search {
    width: 100%;
    padding: 16px 20px 16px 55px;
    border-radius: 50px;
    border: 2px solid #eee;
    background-color: var(--color-light);
    color: var(--color-text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

#faq-search:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 91, 0.2);
}

body.dark-mode #faq-search {
    background-color: var(--color-secondary);
    border-color: #444;
    color: var(--color-text);
}

.faq-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.category-btn {
    padding: 10px 24px;
    border: 2px solid var(--color-primary);
    background-color: transparent;
    color: var(--color-primary);
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
    background-color: var(--color-primary);
    color: var(--color-light);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-category {
    margin-bottom: 3rem;
}

.faq-category-title {
    font-size: 2rem;
    color: var(--color-dark);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.faq-category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
}

.faq-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    background-color: var(--color-light);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-mode .faq-item {
    background-color: var(--color-secondary);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(212, 175, 91, 0.05);
}

.faq-question h3 {
    font-size: 1.2rem;
    color: var(--color-dark);
    margin: 0;
    flex: 1;
}

.faq-question i {
    color: var(--color-primary);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.faq-item.active .faq-answer {
    padding: 0 2rem 2rem;
    max-height: 1000px;
}

.faq-answer p {
    color: var(--color-text);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.faq-answer ul {
    list-style-type: none;
    padding: 0;
    margin: 1rem 0;
}

.faq-answer li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: var(--color-text);
}

.faq-answer li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 900;
    font-size: 1.2rem;
}

.faq-answer strong {
    color: var(--color-dark);
}

body.dark-mode .cta-card {
    background-color: var(--color-secondary);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.cta-card h3 {
    font-size: 1.8rem;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.cta-card p {
    color: var(--color-text);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsividade para FAQ */
@media (max-width: 768px) {
    .faq-section {
        padding: 3rem 0;
    }
    
    .faq-categories {
        gap: 0.5rem;
    }
    
    .category-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .faq-question {
        padding: 1.25rem 1.5rem;
    }
    
    .faq-question h3 {
        font-size: 1.1rem;
    }
    
    .faq-answer {
        padding: 0 1.5rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 1.5rem 1.5rem;
    }
    
    .cta-card {
        padding: 2rem 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .faq-category-title {
        font-size: 1.6rem;
    }
    
    .faq-question {
        padding: 1rem 1.25rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
}
/* NOVO: Estilos para as Opções de Moldura (Mirrorbooth) */
.service-card-option .option-item.frame-option-item {
    display: flex; /* Permite alinhamento horizontal */
    justify-content: space-between; /* Alinha o nome à esquerda e a miniatura à direita */
    align-items: center; /* Alinhamento vertical */
    padding: 0.3rem 0; /* Padding mais subtil */
    margin-bottom: 5px;
    transition: all 0.3s ease;
    text-align: left;
}

/* Reverte o fundo e a cor para o estilo anterior do 'option-item' */
.service-card-option .option-item.frame-option-item:hover {
    color: var(--color-primary);
    text-decoration: underline;
    background-color: transparent !important;
}

.frame-option-item .option-name {
    flex-grow: 1; /* Permite que o nome ocupe o espaço restante */
    color: inherit; /* Mantém a cor original do option-item (branco) */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    font-weight: normal;
    text-decoration: none !important;
}

.frame-thumbnail {
    width: 20px; /* Largura da miniatura - mais discreta */
    height: 30px; /* Altura da miniatura */
    border-radius: 3px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.5); 
    margin-left: 10px;
    flex-shrink: 0; 
}

/* Mantém o underline no hover, mas apenas na linha de texto */
.service-card-option .option-item.frame-option-item:hover .option-name {
    color: var(--color-primary);
}

/* Remove o pseudo-elemento sublinhado do CSS original para os novos botões */
.service-card-option .option-item.frame-option-item::after {
    display: none;
}

/* 37. ESTILOS ESPECÍFICOS PARA PERSONALIZAÇÃO EM SERVICES */
.custom-options-block {
    padding: 4rem 0;
    background-color: transparent; 
}

/* Estilos para o Título e Subtítulo da Secção (para clareza) */
.custom-options-block .section-title {
    text-align: center;
}
.custom-options-block .section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #888;
    max-width: 600px;
    margin: 0 auto 2rem; /* Ajustado para 2rem para espaçar a grelha */
    line-height: 1.6;
}

/* Grelha Padrão de 3 Colunas (Para Mirrorbooth frames, etc.) */
.frame-customization-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 2.5rem;
    margin-top: 2rem;
    max-width: 1100px; 
    margin-left: auto;
    margin-right: auto;
}

/* NOVO: Classe para grelha de 2 colunas (Cabines Audio/Video) */
.cabine-customization-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 colunas iguais para as 2 opções */
    gap: 2.5rem;
    margin-top: 2rem;
    max-width: 750px; /* Limita a largura para centralizar e melhorar o aspeto */
    margin-left: auto;
    margin-right: auto;
}

/* CORREÇÃO: Aplica a regra de object-fit: cover para as imagens dentro da grelha de 2 colunas */
.cabine-customization-grid .frame-image-container img {
    /* Altera o comportamento para preencher a área, resolvendo o problema de tamanho inconsistente */
    object-fit: cover !important; 
    
    /* Remove o padding padrão de 15px que causa o "contain" */
    padding: 0 !important; 
    
    /* Garante que preenche 100% da largura/altura do container */
    width: 100%; 
    height: 100%; 
}

/* Estilo para cada Opção Individual (Card) */
.frame-option {
    text-align: center;
    padding: 1.5rem;
    border-radius: 15px;
    background-color: var(--color-secondary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* ESSENCIAL: Garante que os cards na grelha têm a mesma altura */
    display: flex; 
    flex-direction: column;
    justify-content: space-between;
}

.frame-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Container da Imagem (fixo para controlar a altura da imagem) */
.frame-image-container {
    height: 250px; /* Altura fixa para todos os containers de imagem */
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f1f1;
    border: 1px solid #ddd;
}

.frame-image-container img {
    /* CORREÇÃO: Garante que a imagem é exibida por inteiro, sem corte */
    max-height: 100%;
    width: auto; /* Permite que a largura se ajuste mantendo a proporção */
    object-fit: contain; /* O que evita o corte (importante para molduras verticais) */
    transition: transform 0.5s ease;
    padding: 15px; /* Adiciona espaçamento para a imagem não tocar as bordas */
}

.frame-option:hover .frame-image-container img {
    transform: scale(1.05);
}

.frame-option h4 {
    font-size: 1.3rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-weight: 900;
}

.frame-option p {
    font-size: 0.95rem;
    color: var(--color-text);
}

/* Modo Escuro (Mantido) */
body.dark-mode .frame-option {
    background-color: #1e1e1e;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

body.dark-mode .frame-image-container {
    background-color: #0d0d0d;
    border-color: #333;
}

body.dark-mode .frame-option p {
    color: #ccc;
}
body.dark-mode .custom-options-block .section-subtitle {
    color: #a0a0a0;
}

/* Responsividade: Garante 1 coluna para ambas as grelhas em mobile */
@media (max-width: 768px) {
    .frame-customization-grid,
    .cabine-customization-grid {
        grid-template-columns: 1fr; 
        gap: 2rem;
    }
    .frame-image-container {
         height: 200px;
    }
}