/* ============================================================
   Café® — Landing page
   "Espresso & Ouro": fundo de café torrado + acento dourado
   ============================================================ */

:root {
  --espresso-900: #0e0907;
  --espresso-800: #150e0a;
  --espresso-700: #1d130d;
  --espresso-600: #2a1c13;
  --crema:        #f4ece1;
  --crema-dim:    #c9bdae;
  --muted:        #8c8073;
  --gold:         #f5c302;
  --gold-soft:    #ffd84d;
  --gold-deep:    #c89a00;
  --line:         rgba(244, 236, 225, 0.10);
  --card:         rgba(244, 236, 225, 0.03);

  --display: "Fraunces", Georgia, serif;
  --body:    "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;

  --shell:   1180px;
  --radius:  16px;
  --ease:    cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--body);
  background: var(--espresso-900);
  color: var(--crema);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
sup { font-size: 0.5em; vertical-align: super; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: 24px; }
.accent { color: var(--gold); }
.center { margin-inline: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  --pad: 14px 26px;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: var(--pad);
  font-family: var(--body);
  font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid {
  background: var(--gold);
  color: #1a1206;
  box-shadow: 0 10px 30px -10px rgba(245, 195, 2, 0.6);
}
.btn-solid:hover { background: var(--gold-soft); box-shadow: 0 16px 40px -12px rgba(245, 195, 2, 0.75); }
.btn-outline { border-color: var(--line); color: var(--crema); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost { padding: 10px 20px; border-color: var(--line); color: var(--crema); font-size: 0.9rem; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(14, 9, 7, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { height: 40px; width: auto; filter: drop-shadow(0 0 8px rgba(245, 195, 2, 0.25)); }
.footer-inner .brand img { height: 32px; }

.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a {
  font-size: 0.95rem; font-weight: 500; color: var(--crema-dim);
  position: relative; padding: 6px 0;
  transition: color .2s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--gold); transition: width .3s var(--ease);
}
.nav a:hover { color: var(--crema); }
.nav a:hover::after { width: 100%; }

.nav-cta { margin-left: 4px; }

.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto;
}
.menu-toggle span { width: 24px; height: 2px; background: var(--crema); transition: transform .3s var(--ease), opacity .3s var(--ease); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; flex-direction: column;
  background: rgba(14, 9, 7, 0.96); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.mobile-nav a { padding: 16px 24px; border-top: 1px solid var(--line); color: var(--crema-dim); font-weight: 500; }
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav.open { display: flex; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(120% 90% at 15% 20%, rgba(245, 195, 2, 0.10), transparent 55%),
    linear-gradient(180deg, rgba(14, 9, 7, 0.55) 0%, rgba(14, 9, 7, 0.78) 55%, var(--espresso-900) 100%);
}
.hero-content { position: relative; z-index: 2; padding-top: 96px; padding-bottom: 96px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 22px;
  opacity: 0; animation: rise .8s var(--ease) .1s forwards;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(245,195,2,.6); animation: pulse 2.4s infinite; }

.hero-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 16ch;
  opacity: 0; animation: rise .9s var(--ease) .2s forwards;
}
.rotator { position: relative; display: inline-block; min-height: 1.1em; }
.rotator-word {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  font-style: italic; color: var(--gold);
  opacity: 0; transform: translateY(0.4em); filter: blur(6px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), filter .6s var(--ease);
}
.rotator-word.is-active { opacity: 1; transform: translateY(0); filter: blur(0); }

.hero-lead {
  margin-top: 26px; max-width: 46ch;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--crema-dim);
  opacity: 0; animation: rise .9s var(--ease) .35s forwards;
}
.hero-actions {
  margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap;
  opacity: 0; animation: rise .9s var(--ease) .5s forwards;
}

.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; z-index: 3; translate: -50% 0;
  width: 26px; height: 42px; border: 2px solid var(--line); border-radius: 14px;
  display: grid; place-items: start center; padding-top: 7px;
}
.scroll-hint span { width: 4px; height: 8px; border-radius: 2px; background: var(--gold); animation: scrolldot 1.8s infinite; }

/* ---------- Sections base ---------- */
.section { padding: clamp(72px, 11vw, 130px) 0; position: relative; }
.kicker {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.section-title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.08; letter-spacing: -0.02em;
}
.section-lead { margin-top: 18px; color: var(--crema-dim); font-size: 1.08rem; max-width: 52ch; }
.section-lead em { color: var(--crema); font-style: italic; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section-head .section-lead { margin-inline: auto; }

.grid-2 { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 80px); }
.grid-2.align-center { align-items: center; }

/* ---------- Empresa ---------- */
.empresa { background:
  radial-gradient(80% 50% at 100% 0%, rgba(245, 195, 2, 0.05), transparent 60%),
  var(--espresso-900); }
.feature-list { list-style: none; margin-top: 38px; display: grid; gap: 26px; }
.feature-list li { display: flex; gap: 18px; }
.feature-ico {
  flex: 0 0 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 12px;
  color: var(--gold); font-size: 1.2rem;
  background: var(--card);
}
.feature-list h3 { font-family: var(--display); font-weight: 600; font-size: 1.2rem; margin-bottom: 4px; }
.feature-list p { color: var(--crema-dim); font-size: 0.98rem; }

.empresa-gallery { position: relative; }
.gallery-stack {
  position: relative; aspect-ratio: 4 / 3.4; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.8);
}
.gallery-stack img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06); transition: opacity 1s var(--ease), transform 8s linear;
}
.gallery-stack img.is-active { opacity: 1; transform: scale(1); }
.gallery-dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.gallery-dots button {
  width: 28px; height: 4px; border: 0; border-radius: 2px; background: var(--line);
  cursor: pointer; transition: background .3s var(--ease);
}
.gallery-dots button.is-active { background: var(--gold); }
.stat-badge {
  position: absolute; left: -18px; bottom: 40px;
  background: var(--espresso-700); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px 20px;
  box-shadow: 0 24px 50px -22px rgba(0,0,0,.9);
}
.stat-badge strong { display: block; font-family: var(--display); font-size: 1.5rem; color: var(--gold); }
.stat-badge span { font-size: 0.82rem; color: var(--crema-dim); }

/* ---------- Serviços ---------- */
.servicos { background: var(--espresso-800); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  position: relative; padding: 30px 26px 34px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: rgba(245,195,2,.35); background: rgba(245,195,2,.04); }
.card:hover::before { transform: scaleX(1); }
.card-num { font-family: var(--display); font-size: 1rem; color: var(--gold-deep); font-weight: 600; }
.card h3 { font-family: var(--display); font-weight: 600; font-size: 1.25rem; margin: 14px 0 10px; }
.card p { color: var(--crema-dim); font-size: 0.96rem; }

/* ---------- Produtos ---------- */
.produtos { background:
  radial-gradient(70% 60% at 0% 50%, rgba(245, 195, 2, 0.06), transparent 60%),
  var(--espresso-900); }
.check-list { list-style: none; margin: 28px 0 34px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; color: var(--crema-dim); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--gold); font-weight: 700;
}
.produto-shot { position: relative; }
.produto-shot img {
  border-radius: 14px; border: 1px solid var(--line);
  box-shadow: 0 50px 90px -40px rgba(0,0,0,.9);
  transform: perspective(1400px) rotateY(-7deg) rotateX(2deg);
  transition: transform .6s var(--ease);
}
.produto-shot:hover img { transform: perspective(1400px) rotateY(0) rotateX(0); }
.shot-glow {
  position: absolute; inset: -10% -6% auto auto; width: 70%; height: 80%; z-index: -1;
  background: radial-gradient(circle, rgba(245,195,2,.28), transparent 65%);
  filter: blur(40px);
}

/* Mais produtos */
.more-products { margin-top: clamp(56px, 8vw, 90px); }
.more-products .kicker { margin-bottom: 28px; }
.prod-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.prod-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
  overflow: hidden;
}
.prod-card:hover { transform: translateY(-6px); border-color: rgba(245,195,2,.35); background: rgba(245,195,2,.04); }
.prod-shot {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent);
}
.prod-shot img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform .6s var(--ease);
}
.prod-card:hover .prod-shot img { transform: scale(1.04); }
.prod-body { padding: 26px 28px 30px; }
.prod-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold-deep);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; margin-bottom: 16px;
}
.prod-card h3 { font-family: var(--display); font-weight: 600; font-size: 1.5rem; margin-bottom: 10px; }
.prod-card p { color: var(--crema-dim); font-size: 0.98rem; }
.prod-link {
  display: inline-block; margin-top: 18px; font-weight: 600; font-size: 0.92rem; color: var(--gold);
  transition: gap .25s var(--ease), color .25s var(--ease);
}
.prod-card:hover .prod-link { color: var(--gold-soft); }

/* ---------- Promo ---------- */
.promo {
  padding: clamp(60px, 9vw, 100px) 0; text-align: center;
  background:
    linear-gradient(rgba(14,9,7,.72), rgba(14,9,7,.72)),
    url("../media/ab2.jpg") center / cover fixed;
  border-block: 1px solid var(--line);
}
.promo h2 {
  font-family: var(--display); font-weight: 500; font-style: italic;
  font-size: clamp(1.7rem, 3.6vw, 2.8rem); line-height: 1.2; letter-spacing: -0.01em;
  max-width: 22ch; margin-inline: auto;
}

/* ---------- Contato ---------- */
.contato { background: var(--espresso-800); }
.contato-form {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(26px, 4vw, 40px); display: grid; gap: 18px;
}
.field { display: grid; gap: 8px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--crema-dim); letter-spacing: 0.02em; }
.field input, .field textarea {
  font-family: var(--body); font-size: 1rem; color: var(--crema);
  background: rgba(14, 9, 7, 0.6);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 15px; resize: vertical;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 195, 2, 0.14);
}
.contato-form .btn { margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { font-size: 0.92rem; min-height: 1.2em; }
.form-status.ok { color: var(--gold-soft); }
.form-status.err { color: #ff8d6b; }

/* ---------- Footer ---------- */
.site-footer { background: var(--espresso-900); border-top: 1px solid var(--line); padding: 36px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.copy { color: var(--muted); font-size: 0.88rem; }
.to-top { color: var(--crema-dim); font-size: 0.88rem; font-weight: 600; transition: color .2s var(--ease); }
.to-top:hover { color: var(--gold); }

/* ---------- Botão voltar ao topo ---------- */
.back-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--espresso-700); color: var(--gold);
  font-size: 1.25rem; line-height: 1; cursor: pointer;
  box-shadow: 0 14px 30px -12px rgba(0,0,0,.8);
  opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.back-to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { background: var(--gold); color: #1a1206; transform: translateY(-2px); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 195, 2, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(245, 195, 2, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 195, 2, 0); }
}
@keyframes scrolldot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav, .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .grid-2 { grid-template-columns: 1fr; }
  .empresa-gallery { order: -1; }
  .stat-badge { left: 12px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .prod-cards { grid-template-columns: 1fr; }
  .produto-shot img { transform: none; }
}
@media (max-width: 540px) {
  .cards { grid-template-columns: 1fr; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
