/* =========================
   Variáveis
========================= */
:root {
  --bg: #f5efe6;
  --card: #fff8ee;
  --text: #2a2723;
  --muted: #7b6f65;
  --brand: #b67c3d;
  --ring: rgba(182,124,61,.25);
  --shadow: 0 10px 30px rgba(74, 56, 40, .12);
}
:root.light { /* para futuros temas */
  --bg: #f5efe6;
  --card: #fff8ee;
  --text: #2a2723;
  --muted: #7b6f65;
  --brand: #b67c3d;
  --ring: rgba(182,124,61,.25);
  --shadow: 0 10px 30px rgba(74, 56, 40, .12);
}

/* =========================
   Base
========================= */
html { font-size: 115%; }
@media (max-width: 600px){ html { font-size: 100%; } }

* { box-sizing: border-box; }
html, body { height: 100%; }

body{
  margin: 0;
  font-family: 'Times New Roman', Times, serif;
  background: linear-gradient(90deg,#f5efe6 0%,#ffffff 100%);
  color: var(--text);
  line-height: 1.7;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(1100px, 92%); margin: 0 auto; }

/* =========================
   Header / Nav
========================= */
header{
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
  background: linear-gradient(
    to bottom,
    rgba(226,203,170,1) 0%,
    rgba(231,210,180,.95) 20%,
    rgba(240,220,190,.85) 45%,
    rgba(248,230,200,.65) 70%,
    rgba(255,240,215,0) 100%
  );
  border-bottom: 1px solid rgba(150,95,45,.35);
  box-shadow: 0 10px 26px rgba(120,80,50,.18);
}

.nav{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding:14px 0;
}

.brand{ display:flex; align-items:center; gap:10px; font-weight:700; letter-spacing:.2px; }
.brand .dot{ width:10px; height:10px; border-radius:999px; background:linear-gradient(135deg,var(--brand),#d0a670); }
.brand-name{ color: var(--text); }

/* Menu padrão (desktop) */
.menu{
  display:flex; gap:18px; align-items:center; font-weight:600;
}
.menu a{ padding:8px 10px; border-radius:10px; }
.menu a:hover{ background: color-mix(in oklab, var(--brand), transparent 90%); }

.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 14px; border-radius:12px; background:var(--brand);
  color:#fff; font-weight:700; border:0; box-shadow: var(--shadow); cursor:pointer;
}
.btn.ghost{ background:transparent; color:var(--text);
  border:1px solid color-mix(in oklab, var(--brand), transparent 65%); }
.menu a:hover, .btn:hover{
  transform: scale(1.12);
  box-shadow: 0 10px 22px rgba(120,80,50,.25);
  background: linear-gradient(135deg,#e6d1a8,#f5e3c6);
  color:#2a2723;
}

/* Botão hambúrguer (escondido no desktop) */
.nav-toggle{
  display:none;
  font-size:28px; background:none; border:none; cursor:pointer; color:#222;
}

/* Tablet e mobile: esconde menu, mostra hambúrguer */
@media (max-width:1024px){
  .nav-toggle{ display:block; }
  .menu{
    display:none;               /* só aparece quando .open */
    position:absolute; top:60px; right:20px;
    flex-direction:column; gap:15px; padding:20px;
    background:#fff; border-radius:8px;
    box-shadow:0 4px 16px rgba(0,0,0,.15);
    z-index:1000;
  }
  .menu.open{ display:flex; }
}

/* =========================
   Hero
========================= */
.hero{ padding:72px 0 32px; }
.hero .content{
  display:grid; grid-template-columns: 1.15fr .85fr; gap:28px; align-items:center;
}

/* Empilha no mobile */
@media (max-width:900px){
  .hero .content{ grid-template-columns: 1fr; }
}

/* Bloco vermelho (overlay) — centrado e responsivo */
.hero-overlay{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; width:100%;
}
.hero-overlay img{
  max-width:100%; height:auto; display:block; margin:0 auto;
}

/* Bloco azul (sobre + foto ao lado) */
.hero-body{
  display:flex; align-items:center; justify-content:space-between;
  gap:40px; width:100%; box-sizing:border-box;
}
.hero-body > div{ flex:2; }
.hero-body .avatar{
  flex:1; max-width:300px; border-radius:16px; overflow:hidden; box-shadow: var(--shadow);
  width:100%; aspect-ratio:1/1; background: linear-gradient(135deg, color-mix(in oklab, var(--brand), transparent 70%), color-mix(in oklab, #d0a670, transparent 70%));
  display:grid; place-items:center; position:relative;
}
.hero-body .avatar img{ width:100%; height:100%; object-fit:cover; }

/* Mobile: empilha texto e foto */
@media (max-width:768px){
  .hero-body{ flex-direction:column; text-align:center; }
  .hero-body .avatar{ max-width:80%; }
}

/* Microcomponentes */
.eyebrow{
  display:inline-flex; gap:8px; align-items:center; font-size:.95rem; color:var(--muted);
  padding:6px 10px; border:1px solid color-mix(in oklab, var(--brand), transparent 70%);
  border-radius:999px; background: color-mix(in oklab, var(--card), transparent 0%);
}
h1{ font-size: clamp(2rem, 4vw, 3rem); line-height:1.15; margin:16px 0 0; }
p.lead{ font-size: clamp(1.05rem, 2.1vw, 1.25rem); color:var(--muted); margin:14px 0 20px; }
.hero-cta{ display:flex; gap:12px; flex-wrap:wrap; }

/* =========================
   Sections / Cards / About
========================= */
section{ padding:56px 0; }

.section-head{
  display:flex; align-items:end; justify-content:space-between; gap:16px; flex-wrap:wrap;
}
.section-title{ margin:0; font-size: clamp(1.4rem, 3vw, 2rem); }
.section-desc{ margin:6px 0 0; color:var(--muted); }

.grid{ margin-top:22px; display:grid; grid-template-columns: repeat(3,1fr); gap:18px; }
@media (max-width:900px){ .grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width:640px){ .grid{ grid-template-columns: 1fr; } }

.card{
  background:var(--card);
  border:1px solid color-mix(in oklab, var(--muted), transparent 70%);
  border-radius:18px; box-shadow: var(--shadow);
  overflow:hidden; display:flex; flex-direction:column; justify-content:space-between;
}
.card-body{ padding:18px; }
.card-foot{
  padding:14px 18px; border-top:1px solid color-mix(in oklab, var(--muted), transparent 75%);
  display:flex; gap:8px; flex-wrap:wrap;
}
.tag{
  font-size:.85rem; color:var(--muted);
  border:1px dashed color-mix(in oklab, var(--brand), transparent 65%);
  padding:4px 8px; border-radius:999px; background: color-mix(in oklab, var(--bg), white 5%);
}

/* About */
.about-grid{ display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-top:10px; }
.about-card{
  background:var(--card); border:1px solid color-mix(in oklab, var(--muted), transparent 70%);
  border-radius:18px; padding:18px;
}
@media (max-width:900px){ .about-grid{ grid-template-columns:1fr; } }

.list{ margin:0; padding-left:18px; }

/* =========================
   Contato
========================= */
.contact .form{
  max-width:720px; margin:40px auto; padding:32px;
  background:var(--card);
  border:1px solid color-mix(in oklab, var(--muted), transparent 65%);
  border-radius:22px; box-shadow:0 14px 32px rgba(120,80,50,.15);
}
.field{ display:flex; flex-direction:column; gap:10px; margin:14px 0; }
.field input, .field textarea{
  width:100%; padding:14px 16px; border-radius:14px;
  border:1px solid color-mix(in oklab, var(--brand), transparent 55%);
  background: color-mix(in oklab, var(--card), transparent 0%); color:var(--text);
  outline:none; font-size:1rem; transition: box-shadow .25s ease, transform .15s ease;
}
.field input:focus, .field textarea:focus{ box-shadow:0 0 0 6px var(--ring); transform: scale(1.02); }
.form-actions{ display:flex; align-items:center; gap:16px; margin-top:14px; }
#formStatus{ font-size:.95rem; color:var(--muted); margin-left:4px; }

/* =========================
   Footer
========================= */
.site-foot{
  padding:40px 0 60px; border-top:1px solid color-mix(in oklab, var(--muted), transparent 75%);
}
.foot{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.to-top{ border:1px solid color-mix(in oklab, var(--brand), transparent 65%); padding:8px 12px; border-radius:10px; }

/* =========================
   Carousel
========================= */
.carousel{ position:relative; background:transparent; border:0; box-shadow:none; }
.carousel-viewport{
  position:relative; display:grid; grid-auto-flow:column; grid-auto-columns:100%; overflow:hidden;
}
.slide{
  width:100%; height:420px; margin:0 0 14px 0; position:relative;
  display:none; align-items:stretch; justify-content:center;
  background:var(--card);
  border:1px solid color-mix(in oklab, var(--muted), transparent 70%);
  border-radius:18px; box-shadow: var(--shadow); overflow:hidden;
}
.slide.is-active{ display:block; }
.slide img{ width:100%; height:100%; object-fit: contain; background:transparent; border-radius:0; }

.slide figcaption{
  position:absolute; left:14px; bottom:14px; padding:10px 12px; border-radius:12px;
  background: color-mix(in oklab, var(--bg), transparent 15%); backdrop-filter: blur(6px);
  border:1px solid color-mix(in oklab, var(--muted), transparent 65%); color:var(--text);
  font-size:.95rem; display:inline-flex; flex-direction:column; gap:3px;
}
.slide figcaption strong{ font-weight:700; }
.slide figcaption span{ color:var(--muted); }

.ctrl{
  position:absolute; top:50%; transform: translateY(-50%); width:42px; height:42px;
  border-radius:999px; border:1px solid color-mix(in oklab, var(--brand), transparent 50%);
  background: linear-gradient(135deg, color-mix(in oklab, var(--card), white 2%), color-mix(in oklab, var(--card), white 8%));
  color:var(--text); cursor:pointer; display:grid; place-items:center;
  box-shadow:0 8px 18px rgba(120,80,50,.12);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.ctrl:hover{ transform: translateY(-50%) scale(1.06); box-shadow:0 10px 22px rgba(120,80,50,.18); }
.ctrl:active{ transform: translateY(-50%) scale(.98); }
.ctrl.prev{ left:12px; } .ctrl.next{ right:12px; }

.dots{
  position:absolute; left:50%; bottom:10px; transform: translateX(-50%);
  display:flex; gap:8px; padding:6px 10px; border-radius:999px;
  background: color-mix(in oklab, var(--bg), transparent 25%);
  backdrop-filter: blur(6px);
  border:1px solid color-mix(in oklab, var(--muted), transparent 65%);
}
.dot{
  width:8px; height:8px; border-radius:999px; border:0;
  background: color-mix(in oklab, var(--text), white 60%);
  opacity:.6; cursor:pointer; transition: transform .18s ease, opacity .18s ease, background .18s ease;
}
.dot:hover{ transform: scale(1.25); opacity:.9; }
.dot.is-active{ opacity:1; background: var(--brand); }

@media (max-width:900px){ .slide{ height:360px; } }
@media (max-width:640px){ .slide{ height:280px; } }

/* =========================
   Ajustes finais do hero-stack
========================= */
.hero .container.content.hero-stack{ display:block; }
.hero-stack > .hero-overlay,
.hero-stack > .hero-body{
  display:block; width:100%; max-width:none; margin:0 0 24px 0; box-sizing:border-box;
}
/* ───── Botão hambúrguer animado ───── */

.nav-toggle {
  width: 34px;
  height: 28px;
  display: none;                 /* some no desktop */
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  z-index: 1100;                 /* fica acima do menu */
}

.nav-toggle .bar {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: #222;
  transition: transform .3s ease, opacity .3s ease;
}

/* Quando o menu estiver aberto, vira X */
.nav-toggle.open .bar:nth-child(1) {
  transform: translateY(12px) rotate(45deg);
}
.nav-toggle.open .bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open .bar:nth-child(3) {
  transform: translateY(-12px) rotate(-45deg);
}

/* mostra no tablet e celular */
@media (max-width:1024px){
  .nav-toggle { display:flex; }
}
