/* Fornos Revent · Campanha fim de ano 2026 — Brettécnica */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --flour: #F3EFE6;      /* fundo: farinha */
  --flour-2: #E9E3D6;
  --ink: #17150F;        /* tinta quase preta, quente */
  --ink-2: #4A463D;      /* texto secundário (7.9:1 em --flour) */
  --steel: #8B8779;
  --line: #D6CFBF;
  --yellow: #F5C400;     /* amarelo Brettécnica: sempre como fundo, texto em --ink */
  --yellow-2: #E3B500;
  --ember: #B4441C;      /* erro / calor */
  --white: #FFFDF8;

  --f-display: 'Archivo', 'Arial Narrow', sans-serif;
  --f-body: 'Public Sans', system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --radius: 4px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  font-family: var(--f-body);
  font-size: clamp(15px, 0.95rem + 0.15vw, 17px);
  line-height: 1.6;
  color: var(--ink);
  background: var(--flour);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 78%;
  line-height: 0.98;
  letter-spacing: -0.01em;
  hyphens: none; overflow-wrap: normal; word-break: normal;
  text-wrap: balance;
}
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 200; background: var(--ink); color: var(--white); padding: 10px 16px; }

.eyebrow {
  font-family: var(--f-display);
  font-stretch: 110%;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 14px;
}
.section-sub { color: var(--ink-2); max-width: 52ch; margin-top: 14px; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-display); font-stretch: 100%; font-weight: 800;
  font-size: 15px; letter-spacing: 0.01em;
  text-decoration: none; text-align: center;
  padding: 16px 26px; min-height: 52px;
  border: 0; border-radius: var(--radius); cursor: pointer;
  transition: background-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn-primary { background: var(--yellow); color: var(--ink); box-shadow: inset 0 -3px 0 rgba(0,0,0,.14); }
.btn-primary:hover { background: var(--yellow-2); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(1px); box-shadow: none; }
.btn-sm { padding: 10px 16px; min-height: 42px; font-size: 14px; }
.btn-lg { min-height: 60px; font-size: 17px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

.link-arrow {
  font-weight: 600; text-decoration: none;
  border-bottom: 2px solid var(--ink); padding-bottom: 2px;
}
.link-arrow::after { content: ' ↓'; }
.link-arrow:hover { border-color: var(--yellow-2); }

/* CAMPAIGN BAR */
.campaign-bar {
  background: var(--ink); color: var(--flour);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px;
  padding: 9px var(--gutter);
  font-size: 13px; font-weight: 500;
}
.campaign-bar .dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--yellow); margin-right: 6px; vertical-align: 1px;
  animation: pulse 2.4s ease-in-out infinite;
}
.countdown { color: var(--yellow); font-weight: 700; }
@keyframes pulse { 50% { opacity: .35; } }

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 10px var(--gutter);
  background: color-mix(in srgb, var(--flour) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand img { height: clamp(44px, 5vw, 60px); width: auto; }
.header-phone { margin-left: auto; font-weight: 600; text-decoration: none; font-size: 15px; }
.header-phone:hover { text-decoration: underline; }

/* HERO */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(36px, 6vw, 88px) var(--gutter) clamp(48px, 7vw, 96px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.5rem, 1.2rem + 5.4vw, 5.6rem);
  font-stretch: 72%;
  font-weight: 850;
  margin-bottom: clamp(20px, 2.4vw, 32px);
}
.lede { font-size: clamp(1.08rem, 1rem + 0.45vw, 1.35rem); line-height: 1.5; max-width: 40ch; }
.lede strong { font-weight: 700; background: linear-gradient(transparent 62%, rgba(245,196,0,.55) 62%); }
.hero-sub { color: var(--ink-2); max-width: 46ch; margin-top: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 32px; }

.hero-visual { position: relative; justify-self: center; width: min(100%, 420px); }
.hero-oven {
  width: 100%; max-height: 74vh; object-fit: contain;
  mix-blend-mode: multiply;
}
.hero-caption {
  position: absolute; left: 0; bottom: -4px;
  font-family: var(--f-display); font-stretch: 110%; font-weight: 700;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--steel);
}
.deal {
  position: absolute; z-index: 2;
  top: 6%; left: -14%;
  width: clamp(132px, 14vw, 180px); aspect-ratio: 1;
  border-radius: 50%;
  background: var(--yellow); color: var(--ink);
  display: grid; place-content: center; text-align: center;
  box-shadow: 0 18px 40px -18px rgba(23,21,15,.45);
  rotate: -8deg;
}
.deal-num {
  font-family: var(--f-display); font-weight: 900; font-stretch: 70%;
  font-size: clamp(3.2rem, 2rem + 3vw, 4.6rem); line-height: .85;
}
.deal-num span { font-size: .55em; vertical-align: .55em; }
.deal-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; line-height: 1.25; margin-top: 4px; }

/* load-in, uma vez */
.reveal { opacity: 0; translate: 0 18px; animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 90ms + 80ms); }
.reveal-pop { opacity: 0; scale: .6; animation: pop .8s var(--ease) .55s forwards; }
.hero-oven { opacity: 0; clip-path: inset(100% 0 0 0); animation: lift 1.2s var(--ease) .15s forwards; }
.motion-done .reveal, .motion-done .reveal-pop, .motion-done .hero-oven { animation: none; opacity: 1; translate: none; scale: none; clip-path: none; }
@keyframes rise { to { opacity: 1; translate: 0 0; } }
@keyframes pop { to { opacity: 1; scale: 1; } }
@keyframes lift { to { opacity: 1; clip-path: inset(0 0 0 0); } }

/* MODELS */
.models {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(56px, 7vw, 104px) var(--gutter);
  border-top: 1px solid var(--line);
}
.models-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 48px; align-items: end;
}
.models h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.6rem); }
.trays { display: flex; flex-wrap: wrap; gap: 8px; max-width: 660px; justify-content: flex-end; }
.tray {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 14px/1 var(--f-body); color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 10px 16px; min-height: 44px; cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.tray i {
  display: inline-block;
  width: calc(var(--w) * 0.22px); height: calc(var(--h) * 0.22px);
  border: 1.5px solid currentColor; border-radius: 2px;
}
.tray:hover { border-color: var(--ink); }
.tray.is-active { background: var(--ink); color: var(--flour); border-color: var(--ink); }
.tray-status { margin-top: 22px; font-weight: 600; font-size: 14px; color: var(--ink-2); min-height: 1.6em; }

.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: clamp(14px, 1.6vw, 22px);
  margin-top: 18px;
}
.model {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  transition: opacity .35s var(--ease), filter .35s var(--ease), border-color .35s;
}
.model-img { background: #fff; aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 18px; }
.model-img img { max-height: 100%; width: auto; object-fit: contain; transition: scale .6s var(--ease); }
.model:hover .model-img img { scale: 1.04; }
.model-body { display: flex; flex-direction: column; gap: 12px; padding: 20px 20px 22px; flex: 1; border-top: 1px solid var(--line); }
.model-tag {
  align-self: flex-start;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: var(--flour); padding: 4px 8px; border-radius: 2px;
}
.model h3 { font-size: clamp(1.6rem, 1.3rem + .8vw, 2rem); font-weight: 600; font-stretch: 80%; }
.model h3 b { font-weight: 900; }
.model-trays { font-weight: 700; font-size: 15px; }
.model-body > p:not([class]) { color: var(--ink-2); font-size: 15px; }
.specs { margin-top: auto; border-top: 1px solid var(--line); padding-top: 4px; }
.specs div { display: grid; grid-template-columns: 7.2em 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.specs dt { color: var(--ink-2); }
.specs dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.model .btn { margin-top: 8px; font-size: 14px; font-stretch: 86%; padding: 14px 10px; white-space: nowrap; }
.no-fit { display: none; font-size: 14px; font-weight: 600; color: var(--ink-2); }

.model.is-off { opacity: .42; filter: grayscale(1); }
.model.is-off .btn { display: none; }
.model.is-off .no-fit { display: block; margin-top: 8px; }
.model.is-match { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }

/* COMMON */
.common {
  background: var(--ink); color: var(--flour);
  padding: clamp(48px, 6vw, 80px) var(--gutter);
}
.common-title {
  max-width: var(--max); margin: 0 auto 28px;
  font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem); font-stretch: 90%; color: var(--yellow);
}
.common-list {
  max-width: var(--max); margin: 0 auto; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  border-top: 1px solid rgba(243,239,230,.2);
}
.common-list li { padding: 22px 24px 8px 0; display: flex; flex-direction: column; gap: 6px; }
.common-list b { font-family: var(--f-display); font-weight: 850; font-stretch: 72%; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1; }
.common-list span { color: #CFC8B8; font-size: 15px; max-width: 28ch; }

/* PROCESS */
.process {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(56px, 7vw, 104px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px);
}
.process-head { position: sticky; top: 110px; align-self: start; }
.process h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.2rem); }
.steps { list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 36px 72px; }
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: -4px;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 900; font-size: 20px;
  background: var(--yellow); color: var(--ink);
}
.steps li:not(:last-child)::after {
  content: ''; position: absolute; left: 23px; top: 52px; bottom: 6px; width: 2px; background: var(--line);
}
.steps h3 { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); font-stretch: 85%; margin-bottom: 8px; }
.steps p { color: var(--ink-2); max-width: 52ch; }

/* PROPOSAL / FORM */
.proposal {
  background: var(--ink); color: var(--flour);
  padding: clamp(56px, 7vw, 104px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.proposal > * { max-width: 620px; }
.proposal-intro { justify-self: end; width: 100%; }
.eyebrow-light { color: var(--yellow); }
.proposal h2 { font-size: clamp(2.2rem, 1.3rem + 3.2vw, 4rem); color: var(--white); }
.proposal-intro > p:not([class]) { margin-top: 18px; color: #CFC8B8; font-size: 1.1rem; max-width: 44ch; }
.proposal-deal {
  display: flex; align-items: center; gap: 18px;
  margin-top: 32px; padding: 18px 20px;
  border: 1px solid rgba(243,239,230,.22); border-left: 6px solid var(--yellow);
  border-radius: var(--radius);
}
.pd-num { font-family: var(--f-display); font-weight: 900; font-stretch: 70%; font-size: 3.2rem; line-height: 1; color: var(--yellow); }
.proposal-deal strong { color: var(--white); }
.proposal-alt { margin-top: 24px; color: #CFC8B8; font-size: 15px; }
.proposal-alt a { color: var(--white); font-weight: 700; }

.form {
  background: var(--flour); color: var(--ink);
  border-radius: 6px; padding: clamp(22px, 3vw, 36px);
  display: flex; flex-direction: column; gap: 18px;
}
.goal { border: 0; display: grid; gap: 8px; }
.goal legend { font-weight: 700; font-size: 1.05rem; line-height: 1.4; margin-bottom: 10px; }
.goal-opt { position: relative; cursor: pointer; }
.goal-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.goal-opt span {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; min-height: 52px;
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius);
  font-weight: 600; transition: border-color .2s, background-color .2s;
}
.goal-opt span::before {
  content: ''; flex: none; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--steel); background: var(--white);
  transition: box-shadow .2s, border-color .2s;
}
.goal-opt:hover span { border-color: var(--ink-2); }
.goal-opt input:checked + span { border-color: var(--ink); background: #FFF7D1; }
.goal-opt input:checked + span::before { border-color: var(--ink); box-shadow: inset 0 0 0 4px var(--white), inset 0 0 0 10px var(--ink); }
.goal-opt input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: 14px; }
.field input {
  font: 500 16px/1.3 var(--f-body); color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 13px 14px; min-height: 50px; width: 100%;
  transition: border-color .2s;
}
.field input:hover { border-color: var(--steel); }
.field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(245,196,0,.55); }
.field-hint { font-size: 13px; color: var(--ink-2); }
.field-error { display: none; font-size: 13.5px; font-weight: 600; color: var(--ember); }
.is-invalid .field-error, .field-error.show { display: block; }
.is-invalid input { border-color: var(--ember); }

.picked {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px 10px 14px; background: #FFF7D1; border: 1px dashed var(--yellow-2); border-radius: var(--radius);
  font-size: 14px;
}
.picked[hidden] { display: none; }
.picked button { font: 600 13px var(--f-body); background: none; border: 0; text-decoration: underline; cursor: pointer; color: var(--ink); padding: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; color: var(--ink-2); text-align: center; margin-top: -6px; }
.form-msg { padding: 14px 16px; border-radius: var(--radius); font-weight: 600; font-size: 14.5px; }
.form-msg.error { background: #F8E1D7; color: #7A2A0E; }

/* FAQ */
.faq {
  max-width: 920px; margin: 0 auto;
  padding: clamp(56px, 7vw, 104px) var(--gutter);
}
.faq h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); margin-bottom: 24px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 20px 0; font-weight: 700; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 28px/1 var(--f-display); transition: rotate .3s var(--ease); flex: none; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 64ch; }
.faq summary:hover { color: var(--ink-2); }

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px var(--gutter) 48px;
  text-align: center; font-size: 14px; color: var(--ink-2);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.site-footer img { height: 48px; width: auto; margin-bottom: 8px; }
.site-footer a { color: var(--ink); font-weight: 600; }
.legal { font-size: 12.5px; max-width: 70ch; margin-top: 12px; }

/* MOBILE BAR */
.mobile-bar { display: none; }

/* scroll-driven reveal (só onde há suporte) */
@supports (animation-timeline: view()) {
  .model, .steps li, .common-list li {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
    opacity: 0; translate: 0 24px;
  }
}

/* View Transitions para o filtro de tabuleiros */
::view-transition-group(*) { animation-duration: .45s; animation-timing-function: cubic-bezier(.16,1,.3,1); }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { order: -1; width: min(62%, 300px); justify-self: end; margin-right: 6%; }
  .hero-oven { max-height: 46vh; }
  .deal { left: -48%; top: 18%; }
  .models-head { grid-template-columns: 1fr; }
  .trays { justify-content: flex-start; }
  .process { grid-template-columns: 1fr; }
  .process-head { position: static; }
  .proposal { grid-template-columns: 1fr; }
  .proposal-intro { justify-self: start; }
  .header-phone { display: none; }
  .site-header .btn { margin-left: auto; }
}

@media (max-width: 640px) {
  .campaign-bar { font-size: 12px; }
  .site-header .btn { display: none; }
  .brand img { height: 40px; }
  .hero { padding-top: 20px; }
  .hero-visual { width: 42%; margin-right: 6%; }
  .hero-oven { max-height: 30vh; }
  .deal { left: -92%; top: 14%; }
  .hero h1 { font-size: clamp(2.3rem, 1.4rem + 5vw, 3rem); }
  .model-img { aspect-ratio: 4 / 3; }
  .hero-caption { display: none; }
  .mobile-bar {
    display: flex; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--ink);
    translate: 0 110%; transition: translate .4s var(--ease);
  }
  .mobile-bar.is-visible { translate: 0 0; }
  .mobile-bar .btn { flex: 1; font-size: 15px; padding: 12px 14px; }
  .mb-call {
    display: grid; place-items: center; padding: 0 18px; min-height: 52px;
    color: var(--flour); font-weight: 700; text-decoration: none;
    border: 1.5px solid rgba(243,239,230,.35); border-radius: var(--radius);
  }
  body { padding-bottom: 76px; }
  .steps li { padding-left: 62px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal-pop, .hero-oven { opacity: 1; translate: none; scale: none; clip-path: none; }
  .model, .steps li, .common-list li { opacity: 1 !important; translate: none !important; }
  html { scroll-behavior: auto; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* OBRIGADO */
.thanks { max-width: 860px; margin: 0 auto; padding: clamp(56px, 10vw, 140px) var(--gutter); }
.thanks h1 { font-size: clamp(2.2rem, 1.2rem + 4vw, 4.4rem); font-stretch: 74%; margin-bottom: 28px; }
.thanks-lede { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--ink-2); max-width: 56ch; margin-top: 14px; }
.thanks-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 36px; }
.thanks-back::after { content: ' ↑'; }
