/* =========================================================================
   style.css — Esplêndido Café
   Estilos compartilhados por todas as páginas + página inicial (index.html)

   ÍNDICE (na ordem em que aparecem na página):
    1. Cores, fontes e medidas
    2. Base (reset e elementos gerais)
    3. Faixa de aviso (topbar)
    4. Menu do topo (header) + menu hambúrguer no celular
    5. Botões e elementos reutilizados
    6. Hero (topo da página inicial)
    7. Estrutura das seções (ondas e títulos)
    8. Seção "Nossos Produtos" (3 cards)
    9. Seção "Praticidade e qualidade" (carrossel + lista)
   10. Seção "Nossa essência" (missão, visão e valores)
   11. Seção de contato
   12. Rodapé
   ========================================================================= */


/* ===== 1. CORES, FONTES E MEDIDAS ===== */
:root{
  --marrom:#663300; --marrom-claro:#825A36; --laranja:#D96D2B; --laranja-escuro:#BE5B0A;
  --verde:#5F6C41; --azul:#94C5C9; --azul-escuro:#208789; --creme:#FDF4E8; --bege:#DDD1C3; --amarelo:#F7A829;
  --serif:'Fraunces',Georgia,serif; --sans:'Montserrat',Arial,sans-serif;
  --h:clamp(48px,7vw,110px); /* altura das ondas entre as seções */
}


/* ===== 2. BASE ===== */
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:var(--sans);background:var(--creme);color:var(--marrom);line-height:1.6}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
.container{width:min(1120px,92%);margin-inline:auto}


/* ===== 3. FAIXA DE AVISO (topbar) — hoje usada só em maquinas.html ===== */
.topbar{background:var(--azul);text-align:center;font-size:.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:.45rem 1rem;color:var(--marrom)}


/* ===== 4. MENU DO TOPO (header) ===== */
header{background:var(--creme);position:sticky;top:0;z-index:10;box-shadow:0 2px 10px rgba(102,51,0,.06)}
.nav{display:flex;align-items:center;justify-content:space-between;padding:.7rem 0}
.nav img{height:64px;width:auto}
.nav ul{display:flex;gap:1.8rem;list-style:none;font-size:.78rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
.nav ul a:hover{color:var(--laranja)}
.nav ul a.ativo{border-bottom:3px solid var(--azul);padding-bottom:.35rem} /* item da página atual (maquinas e contato) */

/* Botão hambúrguer (escondido no computador) */
.menu-toggle{display:none}
.hamburger{display:none;cursor:pointer;width:44px;height:44px;flex-direction:column;justify-content:center;gap:5px}
.hamburger span{display:block;width:26px;height:3px;background:var(--marrom);border-radius:3px;transition:.25s}

/* Menu no celular: logo no centro, hambúrguer ao lado */
@media(max-width:860px){
  .nav{display:grid;grid-template-columns:44px 1fr 44px;align-items:center}
  .hamburger{display:flex}
  .logo{justify-self:center}
  .nav img{height:56px}
  .nav nav{position:absolute;top:100%;left:0;right:0;background:var(--creme);box-shadow:0 12px 20px rgba(102,51,0,.1);display:none;padding:.4rem 4%}
  .menu-toggle:checked ~ nav{display:block}
  .nav ul{flex-direction:column;gap:0}
  .nav ul a{display:block;padding:1rem 0;border-top:1px solid rgba(102,51,0,.12)}
  .nav ul li:first-child a{border-top:0}
  .nav ul a.ativo{border-bottom:0;color:var(--laranja)}
  .menu-toggle:checked + .hamburger span:nth-child(1){transform:translateY(8px) rotate(45deg)}
  .menu-toggle:checked + .hamburger span:nth-child(2){opacity:0}
  .menu-toggle:checked + .hamburger span:nth-child(3){transform:translateY(-8px) rotate(-45deg)}
}


/* ===== 5. BOTÕES E ELEMENTOS REUTILIZADOS ===== */
.btn{display:inline-block;padding:.75rem 1.5rem;border-radius:999px;font-size:.78rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase;border:2px solid var(--laranja);transition:.2s}
.btn-cheio{background:var(--laranja);color:#fff}
.btn-cheio:hover{background:var(--laranja-escuro);border-color:var(--laranja-escuro)}
.btn-vazio{color:var(--marrom);border-color:var(--marrom-claro)}
.btn-vazio:hover{background:var(--marrom);color:#fff}

/* Ícone das ondinhas laranja (usado em maquinas.html e contato.html) */
.icone-onda{width:30px;height:18px;flex:0 0 30px;fill:none;stroke:var(--laranja);stroke-width:2;stroke-linecap:round}


/* ===== 6. HERO (topo da página inicial) ===== */
.hero{background:var(--creme) url('img/hero-bg.jpg') right center/cover no-repeat;aspect-ratio:2130/945;display:flex;align-items:center}
.hero .container{padding:3rem 0}
.hero .container>div{max-width:520px}
.hero h1{font-family:var(--serif);font-size:clamp(2.2rem,5vw,3.6rem);line-height:1.1;font-weight:700}
.hero h1 span{color:var(--laranja)}
.hero p{margin:1.2rem 0 1.8rem;max-width:30ch}
.hero .botoes{display:flex;gap:.8rem;flex-wrap:wrap}

@media(max-width:860px){
  .hero{background-position:70% center;aspect-ratio:auto;min-height:480px;position:relative}
  .hero::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(253,244,232,.92) 25%,rgba(253,244,232,.35))} /* véu claro para o texto ficar legível */
  .hero .container{position:relative}
}


/* ===== 7. ESTRUTURA DAS SEÇÕES (ondas e títulos) ===== */
section{padding:3.5rem 0 calc(3.5rem + var(--h))}
section,footer{background:var(--bg);position:relative} /* cada seção define sua cor em --bg */
.onda{position:absolute;left:0;top:calc(1px - var(--h));width:100%;height:var(--h);fill:var(--bg);display:block;pointer-events:none} /* onda no topo da seção, na cor dela */
.titulo{font-size:.9rem;letter-spacing:.2em;text-transform:uppercase;text-align:center;margin-bottom:2rem;font-weight:700}
.titulo::before{content:"≈ ";color:var(--laranja)}


/* ===== 8. SEÇÃO "NOSSOS PRODUTOS" (3 cards) ===== */
#categorias{--bg:var(--creme)}
.categorias{display:grid;grid-template-columns:repeat(3,1fr);gap:1.4rem}
.cat{position:relative;overflow:hidden;min-height:270px;padding:1.8rem 1.6rem;border-radius:44px 44px 44px 120px}
.cat h2{font-size:1rem;letter-spacing:.12em;text-transform:uppercase;margin:.7rem 0 .5rem}
.cat p{font-size:1.2rem;max-width:60%}
.cat img{position:absolute;right:0;bottom:0;width:46%;max-width:200px;height:auto}
.c1{background:#e8c49b}
.c2{background:var(--azul)}
.c3{background:#f5b472}

/* Celular: os 3 cards ficam lado a lado, menores */
@media(max-width:860px){
  .categorias{grid-template-columns:repeat(3,1fr);gap:.6rem}
  .cat{min-height:285px;padding:1rem .8rem;border-radius:24px 24px 24px 80px}
  .cat h2{font-size:.7rem;letter-spacing:.04em}
  .cat p{font-size:.7rem;max-width:100%}
  .cat img{width:100%}
}


/* ===== 9. SEÇÃO "PRATICIDADE E QUALIDADE" (carrossel + lista) ===== */
#destaques{--bg:#F6E7D3}
.dest-grid{display:grid;grid-template-columns:1.05fr 1fr;gap:2.5rem;align-items:center}

/* Carrossel automático: 3 fotos x 4s = ciclo de 12s */
.dest-fotos{position:relative;aspect-ratio:4/3.4;background:var(--bege);overflow:hidden;border-radius:120px 44px 44px 44px}
.dest-slide{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;animation:dest-fade 12s infinite}
.dest-slide:nth-child(2){animation-delay:4s}
.dest-slide:nth-child(3){animation-delay:8s}
@keyframes dest-fade{
  0%{opacity:0}
  4%{opacity:1}
  33.33%{opacity:1}
  37.33%{opacity:0}
  100%{opacity:0}
}
@media (prefers-reduced-motion:reduce){
  .dest-slide{animation:none}
  .dest-slide:first-child{opacity:1}
}

/* Lista de diferenciais */
.dest-lista{list-style:none;background:#fff8ef;border:1px solid #f0e2d0;border-radius:28px;overflow:hidden}
.dest-item{display:flex;align-items:center;gap:1.1rem;padding:1.3rem 1.5rem}
.dest-item + .dest-item{border-top:1px solid #f0e2d0}
.dest-item h3{font-size:0.9rem;font-weight:700;line-height:1.3;letter-spacing:0.03em;text-transform:uppercase;}
.dest-item p{font-size:.88rem;color:var(--marrom-claro);margin-top:.15rem}

/* Círculo azul onde entra o ícone de cada item */
.icone{flex:0 0 44px;width:44px;height:44px;border-radius:50%;background:var(--azul);display:grid;place-items:center}
.icone img,.icone svg{width:22px;height:22px}

/* Grãos de café decorativos no fundo da seção */
#destaques::before,
#destaques::after{
  content:"";
  position:absolute;
  width:clamp(110px,16vw,240px);
  aspect-ratio:1.1;
  background:url('img/graos.png') center/contain no-repeat;
  opacity:.22;
  pointer-events:none;
  z-index:0;
}
#destaques::before{left:2%;top:10%;transform:rotate(-12deg)}
#destaques::after{right:2%;bottom:calc(var(--h) + 1.5rem);transform:rotate(18deg) scaleX(-1)}
#destaques .container{position:relative;z-index:1} /* conteúdo fica na frente dos grãos */

@media(max-width:860px){
  .dest-grid{grid-template-columns:1fr;gap:1.5rem}
  .dest-fotos{aspect-ratio:4/3;border-radius:80px 36px 36px 36px}
  #destaques::before,#destaques::after{width:150px;opacity:.18}
  #destaques::before{top:6%;left:-5%}
  #destaques::after{right:-2%;bottom: 0%;}
}


/* ===== 10. SEÇÃO "NOSSA ESSÊNCIA" (fundo azul) ===== */
#valores{--bg:var(--azul)}

/* Missão e visão */
.essencia{display:grid;grid-template-columns:1fr 1fr;gap:3rem}
.essencia-item{display:flex;align-items:center;gap:1.4rem}
.essencia-icone{align-self:stretch;flex:0 0 38px;display:grid;place-items:center;padding-right:1.4rem;border-right:1px solid rgba(102,51,0,.35)}
.essencia-icone img,.essencia-icone svg{width:80px;height:auto}
.essencia-item h3{font-size:1.5rem;font-weight:700;line-height:1.2;margin-bottom:.6rem}
.essencia-item p{font-size:.95rem;max-width:44ch}

/* Valores (6 itens em 3 colunas) */
.valores-titulo{text-align:center;font-size:1.4rem;font-weight:700;margin:3rem 0 2rem}
.valores-lista{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem 2.5rem}
.vl-item{display:flex;align-items:flex-start;gap:1rem}
.vl-icone{flex:0 0 44px;width:44px;height:44px;display:grid;place-items:center}
.vl-icone img,.vl-icone svg{width:100%;height:auto}
.vl-item h4{font-size:1.05rem;font-weight:700;line-height:1.3;margin-bottom:.3rem}
.vl-item p{font-size:.9rem;max-width:30ch}

@media(max-width:860px){
  .essencia{grid-template-columns:1fr;gap:2rem}
  .essencia-icone{flex-basis:80px;padding-right:1rem}
  .essencia-icone img,.essencia-icone svg{width:56px}
  .valores-lista{grid-template-columns:1fr;gap:1.6rem}
}


/* ===== 11. SEÇÃO DE CONTATO (texto + botões à esquerda, foto à direita) ===== */
#contato{--bg:var(--creme)}
.contato-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:2rem;align-items:center}
.contato-chamada{display:flex;align-items:center;gap:.7rem;font-size:1rem;margin-bottom:1rem}
.contato-texto h2{font-family:var(--sans);font-size:clamp(2rem,4.5vw,2.5rem);max-width: 93%;line-height:1.1;font-weight:700;margin-bottom:1rem}

/* Telefone e e-mail: botões com contorno */
.contato-lista{list-style:none;display:grid;gap:1rem;margin-bottom:1.5rem}
.contato-lista a{display:inline-flex;align-items:center;gap:.8rem;padding:.5rem 1.2rem;border:2px solid var(--marrom);border-radius:999px;color:var(--marrom);font-weight:700;transition:.2s}
.contato-icone{flex:0 0 28px;width:28px;height:28px;display:grid;place-items:center}
.contato-icone img,.contato-icone svg{width:100%;height:auto}

/* Redes sociais: círculos marrons com ícone */
.contato-social{display:flex;gap:1rem}
.contato-social a{width:50px;height:50px;border-radius:50%;background:var(--marrom);border:2px solid var(--marrom);display:grid;place-items:center;transition:.2s}
.contato-social img,.contato-social svg{width:22px;height:22px}

/* Foto */
.contato-foto{aspect-ratio:1/1;background:var(--bege);overflow:hidden;border-radius:44px 120px 44px 44px}
.contato-foto img{width:100%;height:100%;object-fit:cover}

@media(max-width:860px){
  .contato-grid{grid-template-columns:1fr;gap:2rem}
  .contato-foto{aspect-ratio:4/3}
}


/* ===== 12. RODAPÉ ===== */
footer{--bg:var(--laranja-escuro);color:#fff;padding:1rem 0 1.2rem}
.rodape-linha{display:flex;align-items:center;justify-content:center;gap:2.5rem;}
.rodape-linha img{height:100px;width:auto}
.rodape-frase{font-size:clamp(1.3rem,2.6vw,1.4rem);font-weight:700;line-height:1.25;max-width:24ch}
.copy{margin-top:2rem;padding-top:1rem;border-top:1px solid rgba(255,255,255,.3);display:flex;justify-content:space-between;flex-wrap:wrap;gap:.5rem;font-size:.72rem}

@media(max-width:860px){
  .rodape-linha{flex-direction:column;text-align:center;gap:1rem}
}
