/* =========================================================
   PRIMUS BRASIL — Design System
   Paleta: madeira quente + verde floresta + off-white
   ========================================================= */

:root {
  --wood-900: #2b1a10;
  --wood-800: #3d2817;
  --wood-700: #5a3a22;
  --wood-600: #7a4f2e;
  --wood-500: #9c6b3f;
  --amber-500: #f2650a;
  --amber-400: #ff7a1a;
  --amber-300: #ff9a45;
  --orange-600: #d6520a;
  --orange-glow: rgba(242, 101, 10, 0.4);

  --forest-800: #1f3a2b;
  --forest-600: #2f5d43;
  --forest-500: #3d7a58;

  --cream-50: #fbf7f0;
  --cream-100: #f4ecdf;
  --cream-200: #e9dcc7;

  --ink-900: #201811;
  --ink-700: #4a3d31;
  --ink-500: #7c6b5b;

  --white: #ffffff;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-full: 999px;

  --shadow-sm: 0 2px 10px rgba(43, 26, 16, 0.08);
  --shadow: 0 14px 40px rgba(43, 26, 16, 0.14);
  --shadow-lg: 0 30px 70px rgba(43, 26, 16, 0.22);

  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--cream-50);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.container--wide { max-width: 1400px; padding-inline: 20px; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--amber-500);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--amber-500); border-radius: 2px;
}
.eyebrow--center { justify-content: center; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.1; color: var(--wood-900); }
.h-display { font-size: clamp(2.4rem, 6vw, 4.6rem); letter-spacing: -0.02em; }
.h-section { font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -0.01em; }
.lead { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--ink-700); }

.text-center { text-align: center; }
.section-head { max-width: 640px; margin: 0 auto 56px; }
.section-head.text-center { text-align: center; }
.section-head h2 { margin: 14px 0 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: var(--radius-full);
  font-weight: 700; font-size: 0.98rem; letter-spacing: 0.01em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s ease, color .3s ease;
  will-change: transform;
}
.btn svg { width: 19px; height: 19px; }
.btn--primary {
  background: linear-gradient(135deg, var(--amber-400), var(--orange-600));
  color: #fff; box-shadow: 0 12px 30px var(--orange-glow);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 20px 45px rgba(242, 101, 10, 0.55); }
.btn--ghost { background: transparent; color: var(--wood-900); border: 1.5px solid rgba(43,26,16,0.22); }
.btn--ghost:hover { background: var(--wood-900); color: #fff; border-color: var(--wood-900); transform: translateY(-3px); }
.btn--light { background: #fff; color: var(--wood-900); box-shadow: var(--shadow-sm); }
.btn--light:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn--wa { background: #25d366; color: #fff; box-shadow: 0 12px 30px rgba(37,211,102,0.4); }
.btn--wa:hover { transform: translateY(-3px); box-shadow: 0 20px 45px rgba(37,211,102,0.5); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s ease, box-shadow .4s ease, padding .4s ease;
  padding: 18px 0;
}
.header.scrolled {
  background: rgba(251, 247, 240, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo {
  height: 88px; width: auto; display: block;
  transition: height .4s ease;
}
.header.scrolled .brand__logo { height: 66px; }
.footer .brand__logo { height: 92px; }
.brand__mark {
  width: 46px; height: 46px; border-radius: 13px;
  background: linear-gradient(135deg, var(--amber-500), var(--wood-700));
  display: grid; place-items: center; color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: 1.35rem;
  box-shadow: var(--shadow-sm);
}
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-head); font-weight: 600; font-size: 1.35rem; color: var(--wood-900); letter-spacing: 0.02em; }
.brand__sub { font-size: 0.66rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--amber-500); font-weight: 700; margin-top: 3px; }
.header:not(.scrolled) .brand__name { color: #fff; }
.header:not(.scrolled) .brand__sub { color: var(--amber-300); }

.nav__menu { display: flex; align-items: center; gap: 6px; }
.nav__link {
  position: relative; padding: 10px 16px; border-radius: var(--radius-full);
  font-weight: 600; font-size: 0.95rem; color: var(--wood-900);
  transition: color .3s ease, background .3s ease;
}
.header:not(.scrolled) .nav__link { color: rgba(255,255,255,0.9); }
.nav__link:hover, .nav__link.active { color: var(--amber-500); }
.header:not(.scrolled) .nav__link:hover, .header:not(.scrolled) .nav__link.active { color: #fff; background: rgba(255,255,255,0.14); }

.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__toggle { display: none; width: 46px; height: 46px; border-radius: 12px; color: var(--wood-900); }
.header:not(.scrolled) .nav__toggle { color: #fff; }
.nav__toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; color: #fff; padding: 130px 0 90px; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, rgba(30,18,10,0.9) 0%, rgba(43,26,16,0.72) 45%, rgba(43,26,16,0.35) 100%);
}
.hero__inner { max-width: 720px; }
.hero .eyebrow { color: var(--amber-300); }
.hero .eyebrow::before { background: var(--amber-300); }
.hero h1 { color: #fff; margin: 18px 0 22px; }
.hero h1 em { font-style: italic; color: var(--amber-300); }
.hero__lead { font-size: clamp(1.08rem, 2vw, 1.3rem); color: rgba(255,255,255,0.9); max-width: 560px; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 42px; margin-top: 56px; }
.hero__stat strong { font-family: var(--font-head); font-size: 2.4rem; color: var(--amber-300); display: block; line-height: 1; }
.hero__stat span { font-size: 0.9rem; color: rgba(255,255,255,0.8); }

/* ---------- Marquee / trust strip ---------- */
.strip { background: var(--wood-900); color: var(--cream-100); padding: 22px 0; border-top: 3px solid var(--amber-400); }
.strip__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 44px; align-items: center; }
.strip__item { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.95rem; }
.strip__item svg { width: 20px; height: 20px; color: var(--amber-400); }

/* ---------- About preview ---------- */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/3.4; object-fit: cover; }
.about__badge {
  position: absolute; bottom: -28px; right: -20px;
  background: #fff; border-radius: var(--radius); padding: 22px 26px;
  box-shadow: var(--shadow); text-align: center; max-width: 210px;
}
.about__badge strong { font-family: var(--font-head); font-size: 2.6rem; color: var(--amber-500); display: block; line-height: 1; }
.about__badge span { font-size: 0.85rem; color: var(--ink-700); }
.about__text p { margin-bottom: 18px; color: var(--ink-700); }
.about__list { display: grid; gap: 14px; margin: 26px 0 32px; }
.about__list li { display: flex; gap: 13px; align-items: flex-start; font-weight: 500; }
.about__list svg { width: 22px; height: 22px; color: var(--forest-500); flex-shrink: 0; margin-top: 2px; }

/* ---------- Products ---------- */
.bg-cream { background: var(--cream-100); }
.bg-wood { background: var(--wood-900); color: var(--cream-100); }
.bg-wood h2, .bg-wood h3 { color: #fff; }
.bg-wood .lead { color: rgba(255,255,255,0.8); }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.grid-cards--row { grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-cards--row .pcard__img { aspect-ratio: 4/3.6; }

.pcard {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: #fff; box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.pcard:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.pcard__img { aspect-ratio: 4/3; overflow: hidden; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pcard:hover .pcard__img img { transform: scale(1.08); }
.phero + .section .grid-cards .pcard__img {
  aspect-ratio: 5/4;
}
.phero + .section .grid-cards .pcard__img img { object-fit: cover; object-position: center top; }
.phero + .section .grid-cards .pcard:hover .pcard__img img { transform: scale(1.04); }
.pcard__body { padding: 24px 26px 28px; }
.pcard__tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber-500); }
.pcard__body h3 { font-size: 1.35rem; margin: 8px 0 10px; }
.pcard__body p { color: var(--ink-700); font-size: 0.96rem; }
.pcard__link { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font-weight: 700; color: var(--wood-700); font-size: 0.92rem; transition: gap .3s ease, color .3s ease; }
.pcard__link svg { width: 17px; height: 17px; }
.pcard:hover .pcard__link { gap: 12px; color: var(--amber-500); }

/* ---------- Services / features ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.feature {
  background: #fff; border-radius: var(--radius-lg); padding: 38px 32px;
  border: 1px solid var(--cream-200); box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature__icon {
  width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--amber-400), var(--orange-600)); color: #fff; margin-bottom: 22px;
  box-shadow: 0 10px 24px var(--orange-glow);
}
.feature__icon svg { width: 30px; height: 30px; }
.feature h3 { font-size: 1.3rem; margin-bottom: 12px; }
.feature p { color: var(--ink-700); font-size: 0.97rem; }
.bg-wood .feature { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }
.bg-wood .feature p { color: rgba(255,255,255,0.72); }

/* ---------- Warranty banner ---------- */
.warranty { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.warranty__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 5/4; object-fit: cover; }
.warranty__seal { display: inline-flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.warranty__seal span { font-family: var(--font-head); font-size: 3.2rem; color: var(--amber-300); line-height: 1; }
.warranty__seal small { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; font-weight: 700; color: rgba(255,255,255,0.7); }

/* ---------- Gallery / portfolio ---------- */
.gallery { columns: 3; column-gap: 20px; }
.gallery__item { break-inside: avoid; margin-bottom: 20px; border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow-sm); }
.gallery__item img { width: 100%; transition: transform .8s var(--ease); }
.gallery__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(43,26,16,0.55), transparent 55%);
  opacity: 0; transition: opacity .4s ease;
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item:hover::after { opacity: 1; }
.gallery__cap { position: absolute; left: 18px; bottom: 16px; z-index: 2; color: #fff; font-weight: 600; opacity: 0; transform: translateY(8px); transition: all .4s ease; }
.gallery__item:hover .gallery__cap { opacity: 1; transform: translateY(0); }

/* ---------- Suppliers ---------- */
.supplier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; }
.supplier {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.supplier:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.supplier__img { aspect-ratio: 3/2; overflow: hidden; }
.supplier__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.supplier:hover .supplier__img img { transform: scale(1.07); }
.supplier__body { padding: 22px 24px; }
.supplier__body h3 { font-size: 1.15rem; }

/* ---------- CTA contact ---------- */
.cta {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  padding: 72px 8%; color: #fff; text-align: center;
  background: linear-gradient(135deg, var(--wood-800), var(--forest-800));
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(224,160,74,0.35), transparent 55%);
}
.cta > * { position: relative; }
.cta h2 { color: #fff; margin-bottom: 16px; }
.cta p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 34px; }
.cta__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact cards ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.contact-card { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); text-align: center; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.contact-card__icon { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 18px; display: grid; place-items: center; background: linear-gradient(135deg, var(--amber-400), var(--orange-600)); color: #fff; box-shadow: 0 8px 20px var(--orange-glow); }
.contact-card__icon svg { width: 26px; height: 26px; }
.contact-card h4 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 6px; font-weight: 700; }
.contact-card a, .contact-card p { font-weight: 600; color: var(--wood-900); font-size: 1.05rem; }

/* ---------- Page hero (inner pages) ---------- */
.phero { position: relative; padding: 170px 0 90px; color: #fff; text-align: center; }
.phero__bg { position: absolute; inset: 0; z-index: -2; }
.phero__bg img { width: 100%; height: 100%; object-fit: cover; }
.phero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, rgba(30,18,10,0.88), rgba(43,26,16,0.7)); }
.phero h1 { color: #fff; margin: 16px 0 14px; }
.phero p { color: rgba(255,255,255,0.85); max-width: 620px; margin: 0 auto; }
.phero .eyebrow { color: var(--amber-300); }
.phero .eyebrow::before { background: var(--amber-300); }
.crumbs { margin-top: 22px; font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.crumbs a:hover { color: #fff; }

/* ---------- Footer ---------- */
.footer { background: var(--wood-900); color: rgba(255,255,255,0.72); padding: 72px 0 30px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; margin-bottom: 50px; }
.footer h4 { color: #fff; font-family: var(--font-body); font-size: 0.95rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 20px; }
.footer__links li { margin-bottom: 12px; }
.footer__links a { transition: color .3s ease, padding .3s ease; }
.footer__links a:hover { color: var(--amber-300); padding-left: 5px; }
.footer__brand p { margin: 18px 0; max-width: 300px; }
.footer .brand__name { color: #fff; }
.footer__contact li { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.footer__contact svg { width: 19px; height: 19px; color: var(--amber-300); flex-shrink: 0; margin-top: 3px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 62px; height: 62px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 30px rgba(37,211,102,0.5);
  animation: waPulse 2.4s infinite; transition: transform .3s ease;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 32px; height: 32px; }
@keyframes waPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); } 50% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .12s; }
[data-reveal][data-delay="2"] { transition-delay: .24s; }
[data-reveal][data-delay="3"] { transition-delay: .36s; }

/* ---------- Mobile ---------- */
@media (max-width: 980px) {
  .about, .warranty { grid-template-columns: 1fr; gap: 40px; }
  .about__badge { position: static; margin-top: 20px; max-width: none; }
  .gallery { columns: 2; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .grid-cards--row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .section { padding: 68px 0; }
  .nav__menu {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 82%);
    background: var(--cream-50); flex-direction: column; align-items: stretch;
    padding: 100px 26px 40px; gap: 6px; transform: translateX(100%);
    transition: transform .45s var(--ease); box-shadow: var(--shadow-lg);
  }
  .nav__menu.open { transform: translateX(0); }
  .nav__menu .nav__link { color: var(--wood-900); padding: 14px 16px; font-size: 1.05rem; border-radius: 12px; }
  .nav__menu .nav__link:hover { background: var(--cream-100); }
  .header:not(.scrolled) .nav__menu .nav__link { color: var(--wood-900); }
  .header:not(.scrolled) .nav__menu .nav__link:hover,
  .header:not(.scrolled) .nav__menu .nav__link.active { color: var(--wood-900); background: var(--cream-100); }
  .nav__toggle { display: grid; place-items: center; }
  .nav__cta .btn { display: none; }
  .hero__stats { gap: 28px; }
  .hero__stat strong { font-size: 2rem; }
  .gallery { columns: 1; }
  .footer__grid { grid-template-columns: 1fr; }
  .cta { padding: 56px 24px; }
  .grid-cards--row { grid-template-columns: 1fr; }
}
