/* --- GERAL E VARIÁVEIS DE TEMA --- */
:root {
    --hue: 210; /* Base de cor (azul) */
    
    /* MODO CLARO */
    --bg-color: hsl(var(--hue), 30%, 96%);
    --text-color: hsl(var(--hue), 10%, 20%);
    --card-bg-color: hsl(var(--hue), 30%, 100%);
    --header-bg-color: hsla(var(--hue), 30%, 100%, 0.85);
    --primary-color: hsl(var(--hue), 100%, 50%);
    --primary-color-alt: hsl(var(--hue), 100%, 45%);
    --section-bg-color: hsl(var(--hue), 30%, 92%);
    --shadow-color: 220, 15%, 50%;

    /* FONTES */
    --font-title: 'Space Grotesk', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

body.dark-mode {
    /* MODO ESCURO */
    --bg-color: hsl(var(--hue), 10%, 12%);
    --text-color: hsl(var(--hue), 20%, 88%);
    --card-bg-color: hsl(var(--hue), 12%, 18%);
    --header-bg-color: hsla(var(--hue), 12%, 18%, 0.75);
    --primary-color: hsl(var(--hue), 100%, 58%);
    --primary-color-alt: hsl(var(--hue), 100%, 52%);
    --section-bg-color: hsl(var(--hue), 10%, 15%);
    --shadow-color: 220, 40%, 5%;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text-color); background-color: var(--bg-color); line-height: 1.6; transition: background-color 0.4s, color 0.4s; overflow-x: hidden; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: var(--primary-color); }
.section-title { font-family: var(--font-title); text-align: center; margin-bottom: 40px; font-size: clamp(2rem, 5vw, 2.5rem); color: var(--text-color); }
section { padding: 80px 0; }

/* --- CABEÇALHO E NAVEGAÇÃO --- */
header { background-color: var(--card-bg-color); box-shadow: 0 2px 10px hsla(var(--shadow-color), 0.1); position: sticky; top: 0; z-index: 1000; transition: background-color 0.4s, box-shadow 0.3s; }
header.scrolled { background-color: var(--header-bg-color); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 4px 15px hsla(var(--shadow-color), 0.08); }
nav { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo { font-family: var(--font-title); font-size: 1.8rem; font-weight: 700; color: var(--text-color); }
.logo span { color: var(--primary-color); }
.nav-links { display: flex; list-style: none; align-items: center; }
.nav-links li { margin-left: 35px; }
.nav-links a { font-weight: 700; font-size: 1rem; color: var(--text-color); position: relative; padding: 5px 0; }
.nav-links a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0; background-color: var(--primary-color); transition: width 0.3s ease; }
.nav-links a:hover::after { width: 100%; }

/* --- HERO SECTION --- */
.hero { background-color: var(--section-bg-color); min-height: calc(100vh - 70px); display: flex; align-items: center; position: relative; overflow: hidden; transition: background-color 0.4s; }
#particles-js { position: absolute; width: 100%; height: 100%; top: 0; left: 0; z-index: 1; }
.hero-content { position: relative; z-index: 2; pointer-events: none; }
.hero-text h1 { font-family: var(--font-title); font-size: clamp(2.5rem, 8vw, 4.5rem); line-height: 1.1; margin-bottom: 20px; display: inline-block; }
.typing-effect::after { content: '|'; animation: blink 0.7s infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-text p { font-size: 1.2rem; max-width: 550px; margin-bottom: 30px; }
.cta-button { background: var(--primary-color); color: white; padding: 15px 35px; border-radius: 5px; font-weight: 700; font-size: 1.1rem; transition: background-color 0.3s, transform 0.3s; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; pointer-events: auto; }
.cta-button:hover { background: var(--primary-color-alt); transform: translateY(-3px); }

/* --- SOBRE MIM --- */
.sobre-content { display: flex; align-items: center; gap: 50px; }
.sobre-content img { width: 300px; height: 300px; object-fit: cover; border-radius: 50%; border: 5px solid var(--primary-color); }
.sobre-text h3 { font-family: var(--font-title); font-size: 1.8rem; margin-bottom: 15px; }
.sobre-text p { margin-bottom: 15px; }
.diferenciais { margin-top: 20px; display: flex; gap: 15px; flex-wrap: wrap; }
.diferenciais span { background-color: var(--section-bg-color); padding: 5px 15px; border-radius: 50px; font-weight: 700; font-size: 0.9rem; transition: background-color 0.4s; display: inline-flex; align-items: center; gap: 8px; }
.diferenciais i { color: var(--primary-color); }

/* --- SERVIÇOS (SCROLL PINNING) --- */
.servicos-pin-wrapper { display: contents; }
#servicos { background-color: var(--section-bg-color); transition: background-color 0.4s; }
.servicos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); max-width: 1100px; gap: 30px; margin: auto; }
.servico-card { background: var(--card-bg-color); padding: 35px; border-radius: 10px; box-shadow: 0 5px 25px hsla(var(--shadow-color), 0.08); transition: all 0.4s ease; border-top: 4px solid var(--primary-color); }
.servico-card:hover { transform: translateY(-8px); box-shadow: 0 10px 30px hsla(var(--shadow-color), 0.12); }
.servico-header { display: block; }
.card-icon { font-size: 2.5rem; margin-bottom: 20px; color: var(--primary-color); }
.servico-title h3 { font-family: var(--font-title); font-size: 1.5rem; margin-bottom: 15px; }
.servico-title p { margin: 0; }
.accordion-icon { display: none; }
.servico-body ul { list-style: none; margin: 15px 0 0 0; padding: 0; }
.servico-body li { padding: 5px 0; border-bottom: 1px solid var(--section-bg-color); transition: border-color 0.4s; }
.servico-body li:last-child { border: none; }
.servico-body li small { opacity: 0.7; font-style: italic; }

@media screen and (max-width: 768px) {
    .servicos-pin-wrapper { display: block; height: 250vh; position: relative; }
    #servicos { position: sticky; top: 0; height: 100vh; width: 100%; padding: 0; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
    .servicos-grid { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 800px; margin: auto; }
    .servico-card { padding: 0; border-top: none; border-left: 4px solid var(--primary-color); display: grid; grid-template-rows: auto 0fr; transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
    .servico-card.active { grid-template-rows: auto 1fr; }
    .servico-header { display: flex; align-items: center; gap: 20px; padding: 25px; min-height: 90px; }
    .card-icon { font-size: 2rem; margin-bottom: 0; }
    .servico-title h3 { font-size: 1.4rem; margin-bottom: 0; }
    .accordion-icon { display: block; margin-left: auto; width: 20px; height: 20px; position: relative; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
    .accordion-icon::before, .accordion-icon::after { content: ''; position: absolute; background-color: var(--text-color); border-radius: 2px; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
    .accordion-icon::before { width: 100%; height: 3px; top: 50%; left: 0; transform: translateY(-50%); }
    .accordion-icon::after { width: 3px; height: 100%; left: 50%; top: 0; transform: translateX(-50%); }
    .servico-card.active .accordion-icon { transform: rotate(135deg); }
    .servico-body { overflow: hidden; }
    .servico-body ul { list-style: none; margin: 0 25px 0 75px; padding: 0 0 25px 20px; border-left: 2px solid var(--primary-color); }
    .servico-body li { border: none; }
}

/* --- SEÇÃO DELIVERY --- */
#delivery { background-color: var(--primary-color); color: white; }
.delivery-content { display: flex; align-items: center; gap: 30px; text-align: left; max-width: 800px; margin: auto; }
.delivery-content i { font-size: 4rem; }
.delivery-content h3 { font-family: var(--font-title); font-size: 1.8rem; margin-bottom: 5px; }

/* --- CONTATO --- */
.contato-subtitulo { text-align: center; max-width: 500px; margin: -20px auto 40px; }
.contato-wrapper { display: flex; justify-content: center; gap: 25px; flex-wrap: wrap; }
.contato-button { background-color: var(--card-bg-color); border: 1px solid var(--section-bg-color); border-radius: 8px; padding: 20px; display: flex; align-items: center; gap: 20px; min-width: 280px; transition: all 0.4s ease; cursor: pointer; }
.contato-button:hover { transform: translateY(-5px); box-shadow: 0 8px 20px hsla(var(--shadow-color), 0.1); border-color: var(--primary-color); }
.contato-button i { font-size: 2.5rem; color: var(--primary-color); }
.contato-button span { font-size: 0.9rem; color: var(--text-color); opacity: 0.8; }
.contato-button strong { font-size: 1.2rem; color: var(--text-color); display: block; }

/* --- RODAPÉ --- */
footer { background-color: var(--section-bg-color); text-align: center; padding: 25px 0; transition: background-color 0.4s; }
.footer-nav a { color: var(--text-color); margin: 0 10px; font-weight: 500; }
.footer-nav a:hover { color: var(--primary-color); }

/* --- BOTÕES FLUTUANTES --- */
.whatsapp-flutuante { position: fixed; bottom: 25px; right: 25px; width: 60px; height: 60px; background-color: #25D366; color: white; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 2.2rem; box-shadow: 0 4px 15px rgba(0,0,0,0.2); z-index: 998; transition: transform 0.3s ease; cursor: pointer; }
.whatsapp-flutuante:hover { transform: scale(1.1); }
#back-to-top-btn { position: fixed; bottom: 30px; right: 95px; width: 50px; height: 50px; background-color: var(--primary-color); color: white; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.5rem; box-shadow: 0 4px 15px hsla(var(--shadow-color), 0.2); z-index: 998; cursor: pointer; border: none; opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity 0.4s, visibility 0.4s, transform 0.4s, right 0.4s; }
#back-to-top-btn.show { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top-btn:hover { background-color: var(--primary-color-alt); transform: scale(1.05); }

/* --- DARK MODE SWITCH (FINAL) --- */
#desktop-theme-switch { display: flex; }
#mobile-theme-switch { display: none; }
.theme-switch-wrapper { align-items: center; margin-left: 20px; }
.theme-switch { display: inline-block; height: 30px; position: relative; width: 60px; }
.theme-switch input { display:none; }

.slider { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--section-bg-color); border-radius: 34px; cursor: pointer; transition: .4s; }
.handle { position: absolute; content: ""; height: 24px; width: 24px; left: 3px; bottom: 3px; background-color: var(--card-bg-color); border-radius: 50%; box-shadow: 0 0 5px hsla(var(--shadow-color), 0.2); transition: .4s; display: flex; justify-content: center; align-items: center; }
input:checked + .slider { background-color: var(--primary-color); }
input:checked + .slider .handle { transform: translateX(30px); }
.handle i { font-size: 0.9rem; color: var(--primary-color); transition: opacity 0.4s, color 0.4s; position: absolute; }
input:checked + .slider .handle i { color: white; }
input:checked + .slider .handle .fa-sun { opacity: 0; }
input:not(:checked) + .slider .handle .fa-moon { opacity: 0; }

/* --- RESPONSIVIDADE GERAL E MENU MOBILE --- */
.burger { display: none; cursor: pointer; z-index: 1001; padding: 5px; }
.burger div { width: 25px; height: 3px; background-color: var(--text-color); margin: 5px; transition: all 0.3s ease; }

@media screen and (max-width: 768px) {
    #desktop-theme-switch { display: none; }
    #mobile-theme-switch { display: block; margin: 20px 0 0 0; }
    
    .nav-links {
        position: fixed; left: -100%; top: 0;
        height: 100vh; width: 100%;
        background-color: var(--header-bg-color);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column; justify-content: center;
        gap: 2.5rem; transition: left 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        padding: 0;
        align-items: center;
        overflow-x: hidden;
    }
    
    .nav-links.nav-active { left: 0; }
    .nav-links li { margin: 0; opacity: 0; text-align: center; }
    .nav-links a { font-size: 2rem; font-family: var(--font-title); }
    
    .burger { display: block; }

    .toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
    .toggle .line2 { opacity: 0; transform: translateX(20px); }
    .toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }
    
    .sobre-content { flex-direction: column; text-align: center; }
    .sobre-content img { width: 200px; height: 200px; }

    .delivery-content { flex-direction: column; text-align: center; }
}