/* =========================================================
   Madeiras São Cristóvão / estilos
   Paleta da marca: vinho, preto carvão, off-white quente
   ========================================================= */

:root {
  --wine: #9b1c20;
  --wine-dark: #7a1518;
  --wine-soft: #b5333744;
  --ink: #17130f;          /* preto quente, nunca #000 */
  --ink-2: #3a322b;
  --cream: #f7f3ec;        /* fundo quente */
  --cream-2: #efe8dc;
  --paper: #fffdf9;
  --line: #e4dbcc;
  --muted: #6b615537;
  --wpp: #1fab55;
  --wpp-dark: #158a44;
  --wood-1: #7a5230;
  --wood-2: #9c6b3e;
  --wood-3: #5e3c1f;
  --shadow: 0 22px 50px -28px rgba(30, 18, 10, .5);
  --radius: 20px;
  --wrap: 1180px;
  font-synthesis: none;
}

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

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

body {
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }

h1, h2, h3, h4 { font-family: "Outfit", sans-serif; line-height: 1.05; letter-spacing: -.02em; color: var(--ink); }

.ico { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Outfit", sans-serif; font-weight: 700; font-size: 15px;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .18s cubic-bezier(.16,1,.3,1), box-shadow .25s, background .25s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--lg { padding: 16px 28px; font-size: 16px; }

.btn--wpp { background: var(--wpp); color: #fff; box-shadow: 0 12px 26px -12px rgba(31,171,85,.7); }
.btn--wpp:hover { background: var(--wpp-dark); transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(31,171,85,.7); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Outfit", sans-serif; font-weight: 700; font-size: 13px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--wine);
  margin-bottom: 16px;
}
.eyebrow__line { width: 8px; height: 8px; background: var(--wine); border-radius: 50%; }

/* ---------- Topbar ---------- */
.topbar { background: var(--ink); color: #d9cfc2; font-size: 12.5px; }
.topbar__inner { display: flex; align-items: center; gap: 12px; justify-content: center; padding: 8px 22px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; }
.topbar__sep { opacity: .4; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--wpp); box-shadow: 0 0 0 3px rgba(31,171,85,.25); }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(247,243,236,.82); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, background .3s; }
.header.is-stuck { border-color: var(--line); box-shadow: 0 10px 30px -22px rgba(30,18,10,.6); background: rgba(247,243,236,.95); }
.header__inner { display: flex; align-items: center; gap: 20px; padding-block: 12px; }
.brand__logo { height: 52px; width: auto; }
.brand { flex: none; }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  font-family: "Outfit", sans-serif; font-weight: 600; font-size: 15px; color: var(--ink-2);
  text-decoration: none; padding: 9px 14px; border-radius: 10px; position: relative; transition: color .2s, background .2s;
}
.nav a:hover { color: var(--wine); background: rgba(155,28,32,.06); }

.header__cta { margin-left: 6px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) 0 clamp(60px, 8vw, 104px); }
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(1200px 600px at 78% -8%, rgba(155,28,32,.10), transparent 60%),
    radial-gradient(900px 500px at 12% 108%, rgba(122,82,48,.10), transparent 62%),
    linear-gradient(180deg, var(--cream), var(--cream));
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(122,82,48,.05) 0 2px, transparent 2px 26px);
  mask-image: linear-gradient(180deg, transparent, #000 40%, transparent);
  opacity: .6;
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 54px; align-items: center; }

.hero__title { font-size: clamp(2.4rem, 5.2vw, 4.1rem); font-weight: 800; margin-bottom: 20px; }
.hero__title .hl { color: var(--wine); position: relative; }
.hero__title .hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .16em; background: rgba(155,28,32,.16); border-radius: 3px; z-index: -1; }
.hero__sub { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--ink-2); max-width: 54ch; margin-bottom: 30px; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

.hero__trust { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 22px; }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.hero__trust .ico { width: 18px; height: 18px; fill: var(--wpp); }

/* Hero card / logo plate */
.hero__card { position: relative; }
.hero__photo {
  border-radius: 28px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow); aspect-ratio: 5 / 6; background: var(--cream-2);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__badge {
  position: absolute; left: -14px; bottom: 74px;
  background: var(--wine); color: #fff; padding: 12px 20px; border-radius: 14px;
  box-shadow: 0 16px 30px -14px rgba(155,28,32,.7); transform: rotate(-3deg);
}
.hero__badge-script { font-family: "Outfit", sans-serif; font-weight: 700; font-style: italic; font-size: 18px; }
.hero__stat {
  position: absolute; right: -10px; top: -18px; background: var(--ink); color: #fff;
  border-radius: 16px; padding: 14px 18px; display: flex; align-items: center; gap: 12px;
  max-width: 220px; box-shadow: var(--shadow);
}
.hero__stat strong { font-family: "Outfit", sans-serif; font-size: 30px; color: #fff; line-height: 1; }
.hero__stat span { font-size: 12.5px; color: #cfc4b6; line-height: 1.3; }

/* ---------- Stats ---------- */
.stats { background: var(--ink); color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding-block: 34px; }
.stat { text-align: center; padding: 8px 12px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 15%; height: 70%; width: 1px; background: rgba(255,255,255,.12); }
.stat__num { display: block; font-family: "Outfit", sans-serif; font-size: clamp(2rem, 4vw, 2.7rem); font-weight: 800; color: #fff; }
.stat__num .stat__small { font-size: .5em; color: #b9ad9e; font-weight: 600; }
.stat__label { font-size: 13.5px; color: #c3b8a9; }

/* ---------- Seções ---------- */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section--alt { background: var(--cream-2); }
.section__head { max-width: 640px; margin-bottom: 48px; }
.section__title { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; margin-bottom: 14px; }
.section__lead { font-size: 1.06rem; color: var(--ink-2); }

/* ---------- Produtos ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.prod {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; overflow: hidden;
}
.prod__art { position: relative; height: 200px; overflow: hidden; background: var(--cream-2); }
.prod__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod__art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(23,19,15,.14));
}
.prod__art--roof { background: linear-gradient(135deg, var(--wine) 0%, var(--wine-dark) 100%); }
.prod__art--roof::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(-45deg, rgba(0,0,0,.22) 0 16px, transparent 16px 34px),
    linear-gradient(45deg, rgba(255,255,255,.09) 0 16px, transparent 16px 34px);
}
.prod__art--lambril { background: linear-gradient(115deg, var(--wood-2), var(--wood-1)); }
.prod__art--lambril::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.14) 0 2px, transparent 2px 22px), repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 1px, transparent 1px 22px);
}
.prod__art--porta { background: linear-gradient(120deg, var(--wood-1), var(--wood-3)); }
.prod__art--porta::before {
  content: ""; position: absolute; inset: 0; margin: 22px 34%;
  border: 3px solid rgba(0,0,0,.18); border-radius: 6px;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 12px, rgba(0,0,0,.05) 12px 24px);
  box-shadow: inset 0 0 0 6px rgba(255,255,255,.04);
}
.prod__art--mesa { background: linear-gradient(115deg, var(--wood-2), var(--wood-3)); }
.prod__art--mesa::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(0,0,0,.12) 0 3px, transparent 3px 30px), repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 18px);
}
.prod__body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.prod__title { font-size: 1.32rem; font-weight: 700; margin-bottom: 8px; }
.prod__text { font-size: .97rem; color: var(--ink-2); margin-bottom: 16px; flex: 1; }
.prod__tag {
  align-self: flex-start; font-family: "Outfit", sans-serif; font-weight: 700; font-size: 11.5px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--wine);
  background: rgba(155,28,32,.08); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.prod__link { font-family: "Outfit", sans-serif; font-weight: 700; color: var(--wine); text-decoration: none; font-size: .95rem; display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; }
.prod__link span { transition: transform .2s; }
.prod__link:hover span { transform: translateX(4px); }

/* ---------- Diferenciais ---------- */
.diff { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.diff__map {
  background: var(--paper); border: 1px solid var(--line); border-radius: 26px;
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
}
.diff__map-frame { width: 100%; height: 360px; border: 0; display: block; filter: saturate(1.05); }
.diff__map-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; }
.diff__map-info strong { display: block; font-family: "Outfit", sans-serif; font-size: 1.02rem; color: var(--ink); }
.diff__map-info span { font-size: .88rem; color: var(--ink-2); }
.diff__map-btn {
  flex: none; font-family: "Outfit", sans-serif; font-weight: 700; font-size: 14px;
  color: #fff; background: var(--wine); padding: 10px 18px; border-radius: 999px; text-decoration: none;
  transition: background .25s, transform .18s cubic-bezier(.16,1,.3,1);
}
.diff__map-btn:hover { background: var(--wine-dark); transform: translateY(-2px); }
.diff__map-btn:active { transform: translateY(0) scale(.98); }
.diff__list { list-style: none; display: grid; gap: 20px; margin-top: 30px; }
.diff__list li { display: flex; gap: 16px; }
.diff__ico { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--wine); display: grid; place-items: center; }
.diff__ico svg { width: 24px; height: 24px; fill: #fff; }
.diff__list strong { font-family: "Outfit", sans-serif; font-size: 1.1rem; display: block; margin-bottom: 3px; }
.diff__list p { font-size: .95rem; color: var(--ink-2); }

/* ---------- Passos ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.step { position: relative; padding: 30px 26px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.step__num { font-family: "Outfit", sans-serif; font-weight: 800; font-size: 2.4rem; color: var(--wine); opacity: .9; display: block; margin-bottom: 12px; letter-spacing: -.04em; }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { font-size: .96rem; color: var(--ink-2); }
.step:not(:last-child)::after { content: ""; position: absolute; top: 46px; right: -16px; width: 20px; height: 2px; background: var(--line); }

/* ---------- Depoimentos ---------- */
.depos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.depo { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.depo__stars { color: #e0a924; letter-spacing: 3px; font-size: 15px; }
.depo blockquote { font-size: 1.02rem; color: var(--ink); line-height: 1.55; flex: 1; }
.depo figcaption { display: flex; align-items: center; gap: 12px; }
.depo__avatar { width: 42px; height: 42px; border-radius: 50%; background: rgba(31,171,85,.12); display: grid; place-items: center; flex: none; }
.depo__avatar svg { width: 22px; height: 22px; fill: var(--wpp); }
.depo figcaption strong { display: block; font-family: "Outfit", sans-serif; font-size: .98rem; }
.depo figcaption small { color: var(--ink-2); font-size: .85rem; }
.depos__note { margin-top: 20px; text-align: center; font-size: .85rem; color: var(--ink-2); opacity: .7; font-style: italic; }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(120deg, var(--wine) 0%, var(--wine-dark) 100%); position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(0,0,0,.08) 0 16px, transparent 16px 40px); }
.cta__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-block: clamp(44px, 6vw, 68px); flex-wrap: wrap; }
.cta__eyebrow { display: inline-block; font-family: "Outfit", sans-serif; font-weight: 700; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: #f3c6c6; margin-bottom: 10px; }
.cta__title { color: #fff; font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 800; }
.cta__text { color: #f5dcdc; font-size: 1.08rem; margin-top: 8px; max-width: 44ch; }
.cta .btn--wpp { background: #fff; color: var(--wine); box-shadow: 0 16px 36px -14px rgba(0,0,0,.5); }
.cta .btn--wpp:hover { background: #fff; color: var(--wine-dark); }

/* ---------- Contato ---------- */
.contato { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.contato__list { list-style: none; display: grid; gap: 20px; margin: 28px 0 30px; }
.contato__list li { display: flex; gap: 15px; align-items: flex-start; }
.contato__ico { flex: none; width: 46px; height: 46px; border-radius: 12px; background: rgba(155,28,32,.08); display: grid; place-items: center; }
.contato__ico svg { width: 24px; height: 24px; fill: var(--wine); }
.contato__list strong { font-family: "Outfit", sans-serif; display: block; }
.contato__list p { color: var(--ink-2); }
.contato__map-inner {
  aspect-ratio: 4/3; border-radius: var(--radius); border: 1px dashed var(--line);
  background: var(--cream-2); display: grid; place-items: center; text-align: center; gap: 8px; color: var(--ink-2);
  padding: 20px;
}
.contato__map-inner svg { width: 44px; height: 44px; fill: var(--wine); opacity: .5; }
.contato__map-inner p { font-size: .95rem; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #cabfb0; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-block: 56px; }
.footer__logo-plate { background: #fff; border-radius: 14px; padding: 16px 18px; display: inline-block; margin-bottom: 16px; }
.footer__logo-plate img { max-width: 220px; }
.footer__tag { max-width: 34ch; font-size: .96rem; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer__nav { display: flex; flex-direction: column; gap: 9px; }
.footer__nav a { color: #cabfb0; text-decoration: none; font-size: .95rem; transition: color .2s; }
.footer__nav a:hover { color: #fff; }
.footer__contact p { font-size: .95rem; margin-bottom: 8px; }
.footer__contact a { color: #cabfb0; text-decoration: none; transition: color .2s; }
.footer__contact a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 12px; padding-block: 18px; font-size: 13px; color: #9c9082; flex-wrap: wrap; }

/* ---------- WhatsApp flutuante ---------- */
.wpp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wpp);
  display: grid; place-items: center; box-shadow: 0 14px 30px -8px rgba(31,171,85,.7);
  transition: transform .2s;
}
.wpp-float svg { width: 30px; height: 30px; fill: #fff; }
.wpp-float:hover { transform: scale(1.08); }
.wpp-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--wpp); animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .wpp-float::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .header__cta { margin-left: auto; }
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__card { max-width: 420px; margin-inline: auto; width: 100%; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 20px 8px; }
  .stat:nth-child(3)::before, .stat:nth-child(1)::before { display: none; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .prod--wide { grid-column: span 2; }
  .diff { grid-template-columns: 1fr; gap: 36px; }
  .diff__media { order: 2; }
  .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
  .depos { grid-template-columns: 1fr; }
  .contato { grid-template-columns: 1fr; gap: 32px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
}

@media (max-width: 560px) {
  .brand__logo { height: 42px; }
  .prod-grid { grid-template-columns: 1fr; }
  .prod--wide { grid-column: span 1; flex-direction: column; }
  .prod__art { width: 100%; min-height: 150px; }
  .prod--wide .prod__body { padding: 24px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .cta__inner .btn { width: 100%; justify-content: center; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__brand { grid-column: span 1; }
  .topbar__sep:last-of-type, .topbar__hours { display: none; }
}
