/*
 * --------------------------------
 * 1. Reset e Variáveis
 * --------------------------------
 */

:root {
    /* Cores - Light Mode */
    --cor-principal: #153753;
    --cor-secundaria: #A23328;
    --cor-texto: #2e2e2e;
    --cor-fundo-claro: #f8f8f8;
    --cor-branco: #ffffff;
    --cor-cinza-claro: #cccccc;

    /* Fontes */
    --fonte-principal: "Roboto", sans-serif;
    --fonte-secundaria: "Playfair Display", serif;

    /* Espaçamento */
    --espacamento-padrao: 1.5rem;
}

/* Dark Mode */
[data-theme="dark"] {
    --cor-principal: #ff7a6a;  
    --cor-secundaria: #1f4b69;    
    --cor-texto: #e6e6e6;       
    --cor-fundo-claro: #121212;    
    --cor-branco: #1d1d1d;        
    --cor-cinza-claro: #3a3a3a;     
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --cor-principal: #ff7a6a;
        --cor-secundaria: #1f4b69;
        --cor-texto: #e6e6e6;
        --cor-fundo-claro: #121212;
        --cor-branco: #1d1d1d;
        --cor-cinza-claro: #3a3a3a;
    }
}

/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--fonte-principal);
    color: var(--cor-texto);
    background-color: var(--cor-fundo-claro);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: var(--cor-principal);
    transition: color 0.3s;
}

a:hover {
    color: var(--cor-principal);
}

ul {
    list-style: none;
}

h1,
h2,
h3 {
    font-family: var(--fonte-secundaria);
    color: var(--cor-principal);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
}

section {
    padding: 4rem var(--espacamento-padrao);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/*
 * --------------------------------
 * 2. Componentes Comuns
 * --------------------------------
 */

/* Botões */
.buttonPrimary,
.buttonSecundary {
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    border: 2px solid var(--cor-principal);
    transition: background-color 0.3s, color 0.3s;
}

.buttonPrimary {
    background-color: var(--cor-principal);
    color: var(--cor-branco);
}

.buttonPrimary:hover {
    background-color: var(--cor-secundaria);
    border-color: var(--cor-secundaria);
}

.buttonSecundary {
    background-color: transparent;
    color: var(--cor-principal);
}

.buttonSecundary:hover {
    background-color: var(--cor-principal);
    color: var(--cor-branco);
}

.theme-toggle {
    width: 28px;
    height: 28px;
    border: 1px solid var(--cor-principal);
    border-radius: 6px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    margin-left: 0.5rem;
    padding: 0;
}

/* Ícones menores */
.theme-toggle::before {
    content: "☀️";
    font-size: 0.8rem;
}

[data-theme="dark"] .theme-toggle::before {
    content: "🌙";
}
.desktop-theme-toggle {
  display: block;
}

.mobile-theme-item {
  display: none;
}

@media (max-width: 768px) {
  .desktop-theme-toggle {
    display: none;
  }

  .mobile-theme-item {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
  }

  .mobile-theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 8px;
  }
}
/*
 * --------------------------------
 * 3. Cabeçalho (Header) e Navegação
 * --------------------------------
 */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--espacamento-padrao);
    background-color: var(--cor-branco);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.header-controls {
  display: flex;
  gap: 0.8rem;
  position: absolute;
  right: 1rem;
  top: 1rem;
  align-items: center;
}

.logo {
    max-width: 100px;
    height: auto;
}

header nav ul {
    display: none;
}

/* Menu Hamburguer */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 1100;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--cor-texto, #000);
    border-radius: 3px;
    transition: 0.3s ease;
}

.menu-open .menu-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.menu-open .menu-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}
header.menu-open nav ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    right: 0;
    width: 70%;
    height: 100vh;
    background-color: var(--cor-branco);
    padding: 5rem 2rem 2rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

header.menu-open nav li {
    margin-bottom: 1.5rem;
}

header.menu-open nav a {
    font-size: 1.2rem;
    display: block;
    padding: 0.5rem 0;
}

/*
 * --------------------------------
 * 4. Carrossel/Hero Section
 * --------------------------------
 */

#carrosel {
    position: relative;
    color: var(--cor-branco);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 70vh;
    justify-content: center;
    overflow: hidden;
}

/* Video Background */
.video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

/* Overlay escuro para melhorar a legibilidade do texto */
.carrosel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(21, 55, 83, 0.7);
    /* Cor principal com 70% de opacidade */
    z-index: 1;
}

/* Conteúdo do carrossel */
.carrosel-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

#carrosel h1 {
    color: var(--cor-branco);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#carrosel p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.botoes {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.botoes .buttonSecundary {
    border-color: var(--cor-branco);
    color: var(--cor-branco);
}

.botoes .buttonSecundary:hover {
    background-color: var(--cor-branco);
    color: var(--cor-principal);
}

/*
 * --------------------------------
 * 5. Sobre Nós
 * --------------------------------
 */

#sobre {
    background-color: var(--cor-branco);
}

.imgSobre img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.imgSobre figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--cor-texto);
    margin-top: 0.5rem;
    font-style: italic;
}

.textoSobre {
    margin-top: 2rem;
}

/*
 * --------------------------------
 * 6. Produtos
 * --------------------------------
 */

#produtos {
    background-color: var(--cor-fundo-claro);
    text-align: center;
}
.containers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;   /* CENTRALIZA */
    gap: 2rem;
    width: 100%;
    margin: 0 auto;
}

.container {
    background-color: var(--cor-principal);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    padding: 1rem;
    margin-bottom: var(--espacamento-padrao);
    height: 352px;
    width: 376px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden
}

.container:hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 24px rgba(21, 55, 83, 0.2);
    transform: scale(1.1)
}

.container img {
    width: 376px;
    height: 240px;
    border-radius: 8px;
    object-fit: cover;
}

.container figcaption {
    font-weight: bold;
    color: var(--cor-branco);
    margin: 0.5rem 0;
}

.container h3 {
    font-size: 1rem;
    min-height: 3em;
    color: var(--cor-branco);
}

/*
 * --------------------------------
 * 7. Feedback (Depoimentos)
 * --------------------------------
 */

#feedback {
    background-color: var(--cor-branco);
}

.card {
    text-align: center;
    padding: 2rem 1.5rem;
    background-color: var(--cor-fundo-claro);
    border-radius: 8px;
    margin-bottom: var(--espacamento-padrao);
    box-shadow: -6px -4px 0px rgba(162, 51, 40, 0.4);
}

.imgCirculo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: var(--cor-texto);
}

.card cite {
    display: block;
    font-weight: bold;
    color: var(--cor-secundaria);
}

/*
 * --------------------------------
 * 8. Contato e Localização
 * --------------------------------
 */

#contato {
    text-align: center;
    background-color: var(--cor-fundo-claro);
}

#contato p {
    margin-bottom: 1.5rem;
}

.cardsContatos {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 2rem 0;
}

.cardContato {
    background: #fff;
    width: 260px;
    padding: 2rem 1rem;
    border-radius: 15px;
    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;

    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    transition: .2s ease;
}

.cardContato:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.cardContato img {
    width: 65px;
    height: 65px;
}

.cardContato h3 {
    font-size: 1.4rem;
    margin: 0;
    font-weight: 700;
    color: #222;
}

.cardContato p {
    margin: 0;
    font-size: 1rem;
    color: #444;
}

/* Botões */
.btn {
    width: 100%;
    padding: .8rem 0;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
    font-size: .95rem;
}

/* Botão Instagram (degradê igual ao Figma) */
.btn.insta {
    background: linear-gradient(90deg, #FF4A55, #F6A836, #C72EB2);
}

/* Botão WhatsApp */
.btn.whats {
    background: #25D366;
}

/* Botão Gmail */
.btn.gmail {
    background: var(--cor-secundaria);
}

.maps figcaption {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--cor-principal);
}

.maps iframe {
    width: 100%;
    height: 300px;
    border: 1px solid var(--cor-cinza-claro);
    border-radius: 5px;
}

.frase-final {
    font-style: italic;
    color: var(--cor-principal);
    font-weight: 500;
    margin-top: 2rem;
}

/*
 * --------------------------------
 * 9. Rodapé (Footer)
 * --------------------------------
 */

footer {
    background-color: var(--cor-principal);
    color: var(--cor-branco);
    padding: 2rem var(--espacamento-padrao) 1rem;
    font-size: 0.9rem;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 2rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    max-width: 100px;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    margin: 0;
}

.footer-links h3,
.footer-contato h3 {
    color: var(--cor-secundaria);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--cor-branco);
}

.footer-links a:hover {
    color: var(--cor-secundaria);
}

.footer-contato p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.footer-contato p:first-child {
    margin-top: 0.5rem;
}

.footer-contato p a {
    color: var(--cor-branco);
}

.footer-redes a {
    color: var(--cor-branco);
    font-weight: bold;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.footer-bottom a {
    color: var(--cor-secundaria);
}

/*
 * --------------------------------
 * 10. Media Queries (Desktop)
 * --------------------------------
 */

@media (min-width: 768px) {

    /* Ocultar o menu hamburguer no desktop */
    .menu-toggle {
        display: none;
    }

    /* Exibir a navegação no desktop */
    header nav ul {
        display: flex;
        gap: 2rem;
    }

    header nav a {
        font-weight: 500;
        color: var(--cor-principal);
    }

    header {
        padding: 1rem 3rem;
    }

    section {
        padding: 6rem 3rem;
    }

    /* Seção Sobre */
    #sobre {
        display: flex;
        gap: 3rem;
        align-items: center;
    }

    .imgSobre,
    .textoSobre {
        flex: 1;
    }

    .textoSobre {
        margin-top: 0;
    }

    /* Seção Produtos */
    .containers {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }

    /* Seção Feedback */
    .cards {
        display: flex;
        gap: 2rem;
    }

    .card {
        flex: 1;
        margin-bottom: 0;
    }

    /* Seção Contato */
    .cardsContatos {
        flex-direction: row;
        justify-content: center;
    }

    .cardContato {
        flex-basis: 300px;
    }

    /* Rodapé */
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        max-width: 1200px;
        margin: 0 auto 1rem;
        text-align: left;
    }

    .footer-logo {
        flex-basis: 30%;
    }

    .footer-links,
    .footer-contato {
        flex-basis: 30%;
    }
}