/* ============================================================
   WPCORE — Design System
   Subject: WPC composite doors — where engineered material
   meets water. Palette and type built around that tension.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600;9..144,700&family=Manrope:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root{
  /* Color */
  --ink: #12191A;
  --ink-soft: #3C4644;
  --paper: #FBFAF8;
  --paper-warm: #F3F0EA;
  --petrol: #0F4C4F;
  --petrol-deep: #082D2E;
  --petrol-mist: #E7EEED;
  --walnut: #8B5A34;
  --walnut-soft: #C89A6C;
  --mist: #E4E1DC;
  --stone: #6B7270;
  --line: rgba(18,25,26,0.12);
  --line-on-dark: rgba(251,250,248,0.18);

  /* Type */
  --display: 'Fraunces', 'Iowan Old Style', serif;
  --body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'IBM Plex Mono', 'SFMono-Regular', monospace;

  /* Scale */
  --container: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 2px;
}

*, *::before, *::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *, *::before, *::after{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important; }
}

body{
  margin:0;
  font-family:var(--body);
  color:var(--ink);
  background:var(--paper);
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4,p{ margin:0; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline:2px solid var(--petrol);
  outline-offset:3px;
}

.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 var(--gutter);
}

/* ---------- Type scale ---------- */
.eyebrow{
  font-family:var(--mono);
  font-size:12px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--petrol);
  font-weight:500;
}
.eyebrow.on-dark{ color:var(--walnut-soft); }

h1, .h1{
  font-family:var(--display);
  font-weight:500;
  font-size:clamp(2.4rem, 5vw, 4.4rem);
  line-height:1.04;
  letter-spacing:-0.01em;
}
h2, .h2{
  font-family:var(--display);
  font-weight:500;
  font-size:clamp(1.9rem, 3.4vw, 2.8rem);
  line-height:1.1;
  letter-spacing:-0.01em;
}
h3, .h3{
  font-family:var(--display);
  font-weight:500;
  font-size:clamp(1.3rem, 2vw, 1.6rem);
  line-height:1.2;
}
.lede{
  font-size:clamp(1.05rem, 1.6vw, 1.25rem);
  color:var(--ink-soft);
  line-height:1.6;
  max-width:52ch;
}
.body-text{ color:var(--ink-soft); line-height:1.7; }
.body-text + .body-text{ margin-top:1em; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family:var(--body);
  font-weight:600;
  font-size:14px;
  letter-spacing:0.01em;
  padding:14px 26px;
  border-radius:var(--radius);
  border:1px solid transparent;
  cursor:pointer;
  transition:transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary{ background:var(--petrol); color:var(--paper); }
.btn-primary:hover{ background:var(--petrol-deep); transform:translateY(-1px); }
.btn-ghost{ background:transparent; color:var(--paper); border-color:var(--line-on-dark); }
.btn-ghost:hover{ border-color:var(--paper); }
.btn-outline{ background:transparent; color:var(--ink); border-color:var(--line); }
.btn-outline:hover{ border-color:var(--ink); }
.btn-arrow{ transition:transform .18s ease; }
.btn:hover .btn-arrow{ transform:translateX(3px); }

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:50;
  border-bottom:1px solid var(--line);
}
.site-header__blur{
  position:absolute; inset:0; z-index:-1;
  background:rgba(251,250,248,0.92);
  backdrop-filter:blur(10px);
}
.site-header .container{
  position:relative;
  display:flex; align-items:center; justify-content:space-between;
  height:84px;
}
.logo{ flex:none; margin-right:28px; }
.logo img{ height:24px; width:auto; }
.main-nav{ margin-right:auto; }
.main-nav ul{ display:flex; gap:20px; align-items:center; }
.main-nav a{
  font-size:12.5px; font-weight:600; letter-spacing:0.03em; text-transform:uppercase;
  color:var(--ink-soft);
  position:relative;
  padding:6px 0;
  white-space:nowrap;
}
.main-nav a::after{
  content:''; position:absolute; left:0; right:0; bottom:0; height:1px;
  background:var(--petrol); transform:scaleX(0); transform-origin:left;
  transition:transform .2s ease;
}
.main-nav a:hover, .main-nav a.active{ color:var(--ink); }
.main-nav a:hover::after, .main-nav a.active::after{ transform:scaleX(1); }
.nav-cta{
  font-size:13px; font-weight:700; letter-spacing:0.02em;
  background:var(--ink); color:var(--paper);
  padding:11px 20px; border-radius:var(--radius);
}
.nav-cta:hover{ background:var(--petrol); }
.nav-toggle{ display:none; }

@media (max-width: 1180px){
  .main-nav{
    position:fixed; inset:84px 0 0 0; background-color:var(--paper); opacity:1;
    z-index:60; isolation:isolate;
    display:flex; align-items:flex-start; justify-content:flex-start;
    transform:translateX(100%); transition:transform .3s ease;
    padding:40px var(--gutter);
    box-shadow:0 12px 24px rgba(18,25,26,0.08);
  }
  .main-nav.open{ transform:translateX(0); }
  .main-nav ul{ flex-direction:column; gap:22px; width:100%; }
  .main-nav a{ font-size:18px; }
  .nav-toggle{
    display:flex; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:8px;
  }
  .nav-toggle span{ width:22px; height:2px; background:var(--ink); display:block; }
  .nav-cta{ display:none; }
}

/* ---------- Waterline (signature divider) ---------- */
.waterline{ display:block; width:100%; height:auto; }
.waterline path{ fill:none; stroke:var(--petrol); stroke-width:1.4; }
.waterline.on-dark path{ stroke:var(--walnut-soft); opacity:0.6; }
.section-divider{ padding:0 0; }

/* ---------- Hero ---------- */
.hero{
  background:var(--paper);
  padding:64px 0 0;
}
.hero-grid{
  display:grid;
  grid-template-columns:1.05fr 0.95fr;
  align-items:center;
  gap:48px;
}
.hero-copy .eyebrow{ margin-bottom:18px; }
.hero-copy h1{ margin-bottom:22px; }
.hero-copy .lede{ margin-bottom:34px; }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }
.hero-media{
  position:relative;
  aspect-ratio:4/5;
  overflow:hidden;
  border-radius:var(--radius);
}
.hero-media img{ width:100%; height:100%; object-fit:cover; }
.hero-badge{
  position:absolute; left:20px; bottom:20px;
  background:var(--paper); padding:12px 16px;
  display:flex; align-items:center; gap:10px;
  font-family:var(--mono); font-size:11px; letter-spacing:0.06em; text-transform:uppercase;
  border:1px solid var(--line);
}
.hero-badge svg{ width:16px; height:16px; flex:none; }

@media (max-width:900px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-media{ aspect-ratio:16/10; }
}

/* ---------- Section shell ---------- */
.section{ padding:96px 0; }
.section.tight{ padding:64px 0; }
.section.dark{ background:var(--petrol-deep); color:var(--paper); }
.section.dark .body-text{ color:rgba(251,250,248,0.72); }
.section.mist{ background:var(--petrol-mist); }
.section-head{
  display:flex; justify-content:space-between; align-items:flex-end; gap:32px;
  margin-bottom:52px;
}
.section-head .eyebrow{ margin-bottom:14px; }
.section-head h2{ max-width:16ch; }
.section-head .lede{ margin:0; }

/* ---------- Diferenciais grid ---------- */
.diff-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  border-top:1px solid var(--line);
  border-left:1px solid var(--line);
}
.diff-item{
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:32px 28px;
  min-height:180px;
  display:flex; flex-direction:column; gap:14px;
}
.diff-item .num{ font-family:var(--mono); font-size:12px; color:var(--stone); }
.diff-item h3{ font-size:1.1rem; }
.diff-item p{ font-size:14px; color:var(--stone); line-height:1.5; }
@media (max-width:900px){
  .diff-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:560px){
  .diff-grid{ grid-template-columns:1fr; }
}

/* ---------- Product cards ---------- */
.product-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:2px;
  background:var(--line);
}
.product-card{
  background:var(--paper);
  display:flex; flex-direction:column;
  transition:background .2s ease;
}
.product-card:hover{ background:var(--paper-warm); }
.product-card .thumb{ aspect-ratio:3/4; overflow:hidden; background:var(--mist); }
.product-card .thumb img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.product-card:hover .thumb img{ transform:scale(1.04); }
.product-card .meta{ padding:20px 22px 26px; }
.product-card .meta .eyebrow{ margin-bottom:8px; }
.product-card .meta h3{ font-size:1.15rem; margin-bottom:8px; }
.product-card .meta p{ font-size:13.5px; color:var(--stone); line-height:1.5; }
.product-card .meta .go{ margin-top:16px; font-size:12.5px; font-weight:700; color:var(--petrol); display:inline-flex; align-items:center; gap:6px; }

@media (max-width:900px){ .product-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .product-grid{ grid-template-columns:1fr; } }

.product-card.cta-card{ background:var(--petrol-mist); justify-content:center; }
.product-card.cta-card .meta{ padding:28px 26px; display:flex; flex-direction:column; justify-content:center; height:100%; }
.product-card.cta-card:hover{ background:var(--mist); }

/* ---------- Certification strip ---------- */
.cert-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:1px;
  background:var(--line-on-dark);
  border:1px solid var(--line-on-dark);
}
.cert-item{ background:var(--petrol-deep); padding:30px 28px; }
.cert-item .cert-name{ font-family:var(--display); font-size:1.3rem; margin-bottom:6px; }
.cert-item .cert-sub{ font-family:var(--mono); font-size:11px; letter-spacing:0.08em; text-transform:uppercase; color:var(--walnut-soft); margin-bottom:14px; display:block; }
.cert-item p{ font-size:14px; color:rgba(251,250,248,0.68); line-height:1.55; }
@media (max-width:800px){ .cert-grid{ grid-template-columns:1fr; } }

/* ---------- Footer ---------- */
.site-footer{ background:var(--petrol-deep); color:var(--paper); padding:80px 0 32px; }
.footer-grid{
  display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px;
  padding-bottom:56px; border-bottom:1px solid var(--line-on-dark);
}
.footer-brand img{ height:24px; margin-bottom:18px; }
.footer-brand p{ font-size:14px; color:rgba(251,250,248,0.6); max-width:32ch; line-height:1.6; }
.footer-col h4{ font-family:var(--mono); font-size:11px; letter-spacing:0.1em; text-transform:uppercase; color:var(--walnut-soft); margin-bottom:16px; }
.footer-col ul{ display:flex; flex-direction:column; gap:10px; }
.footer-col a, .footer-col span{ font-size:14px; color:rgba(251,250,248,0.78); }
.footer-col a:hover{ color:var(--paper); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;
  padding-top:24px; font-size:12.5px; color:rgba(251,250,248,0.5);
}
.footer-social{ display:flex; gap:14px; }
.footer-social a{
  width:34px; height:34px; border:1px solid var(--line-on-dark); border-radius:50%;
  display:flex; align-items:center; justify-content:center;
}
.footer-social a:hover{ border-color:var(--paper); }
.footer-social svg{ width:15px; height:15px; }

@media (max-width:800px){
  .footer-grid{ grid-template-columns:1fr 1fr; gap:36px 24px; }
  .footer-brand{ grid-column:1 / -1; }
}
@media (max-width:560px){
  .footer-grid{ grid-template-columns:1fr; gap:32px; text-align:left; }
  .footer-brand{ grid-column:auto; }
  .footer-bottom{ justify-content:center; text-align:center; flex-direction:column; }
}

/* ---------- Utility ---------- */
.stack{ display:flex; flex-direction:column; }
.reveal{ opacity:0; transform:translateY(18px); transition:opacity .7s ease, transform .7s ease; }
.reveal.in{ opacity:1; transform:none; }
.text-center{ text-align:center; }
.mt-8{ margin-top:8px; } .mt-16{ margin-top:16px; } .mt-24{ margin-top:24px; } .mt-40{ margin-top:40px; } .mt-64{ margin-top:64px; }

/* ---------- Breadcrumb / product page ---------- */
.breadcrumb{ font-family:var(--mono); font-size:12px; color:var(--stone); margin-bottom:28px; display:flex; gap:8px; align-items:center; }
.breadcrumb a{ color:var(--stone); } .breadcrumb a:hover{ color:var(--ink); }

.product-hero{ display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:start; padding:56px 0 40px; }
.product-hero .gallery-main{ aspect-ratio:3/4; overflow:hidden; background:var(--mist); margin-bottom:10px; }
.product-hero .gallery-main img{ width:100%; height:100%; object-fit:cover; }
.gallery-thumbs{ display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.gallery-thumbs button{ padding:0; border:1px solid transparent; background:none; cursor:pointer; aspect-ratio:1; overflow:hidden; }
.gallery-thumbs button.active{ border-color:var(--petrol); }
.gallery-thumbs img{ width:100%; height:100%; object-fit:cover; }
.gallery-thumbs .label{ font-family:var(--mono); font-size:9px; text-align:center; padding-top:4px; color:var(--stone); }

.spec-table{ width:100%; border-collapse:collapse; font-family:var(--mono); font-size:13.5px; }
.spec-table tr{ border-bottom:1px solid var(--line); }
.spec-table td{ padding:13px 0; vertical-align:top; }
.spec-table td:first-child{ color:var(--stone); width:42%; padding-right:16px; }
.spec-table td:last-child{ color:var(--ink); }

.highlight-list{ display:flex; flex-direction:column; gap:12px; }
.highlight-list li{ display:flex; gap:12px; align-items:flex-start; font-size:14.5px; color:var(--ink-soft); }
.highlight-list li svg{ flex:none; width:16px; height:16px; margin-top:3px; color:var(--petrol); }

.tabs{ display:flex; gap:2px; border-bottom:1px solid var(--line); margin-bottom:32px; }
.tab-btn{ background:none; border:none; cursor:pointer; padding:14px 4px; margin-right:28px; font-family:var(--body); font-weight:700; font-size:13px; letter-spacing:0.02em; text-transform:uppercase; color:var(--stone); border-bottom:2px solid transparent; margin-bottom:-1px; }
.tab-btn.active{ color:var(--ink); border-color:var(--petrol); }
.tab-panel{ display:none; }
.tab-panel.active{ display:block; }

.other-products{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
@media (max-width:900px){ .product-hero{ grid-template-columns:1fr; gap:32px; } .other-products{ grid-template-columns:repeat(2,1fr);} }
@media (max-width:560px){ .other-products{ grid-template-columns:1fr; } }

/* ---------- Rep table ---------- */
.rep-table{ width:100%; border-collapse:collapse; }
.rep-table th{ text-align:left; font-family:var(--mono); font-size:11px; letter-spacing:0.08em; text-transform:uppercase; color:var(--stone); font-weight:500; padding:0 16px 14px 0; border-bottom:1px solid var(--line); }
.rep-table td{ padding:20px 16px 20px 0; border-bottom:1px solid var(--line); vertical-align:top; font-size:14.5px; }
.rep-table td:first-child{ font-family:var(--display); font-size:1.05rem; }
.rep-table .region{ color:var(--stone); }
.rep-table a{ color:var(--petrol); font-weight:600; }
.rep-table a:hover{ text-decoration:underline; }
@media (max-width:800px){
  .rep-table thead{ display:none; }
  .rep-table, .rep-table tbody, .rep-table tr, .rep-table td{ display:block; width:100%; }
  .rep-table tr{ padding:18px 0; border-bottom:1px solid var(--line); }
  .rep-table td{ border:none; padding:3px 0; }
  .rep-table td::before{ content:attr(data-label); display:block; font-family:var(--mono); font-size:10px; text-transform:uppercase; color:var(--stone); letter-spacing:.06em; margin-bottom:2px; }
}

/* ---------- Contact ---------- */
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:64px; }
.field{ margin-bottom:22px; }
.field label{ display:block; font-family:var(--mono); font-size:11px; letter-spacing:0.08em; text-transform:uppercase; color:var(--stone); margin-bottom:8px; }
.field input, .field textarea, .field select{
  width:100%; border:1px solid var(--line); background:var(--paper); padding:13px 14px;
  font-family:var(--body); font-size:15px; color:var(--ink); border-radius:var(--radius);
}
.field input:focus, .field textarea:focus, .field select:focus{ outline:none; border-color:var(--petrol); }
.contact-info-item{ display:flex; gap:16px; padding:22px 0; border-bottom:1px solid var(--line); }
.contact-info-item svg{ width:20px; height:20px; color:var(--petrol); flex:none; margin-top:2px; }
.contact-info-item h4{ font-size:14.5px; font-weight:700; margin-bottom:4px; }
.contact-info-item p, .contact-info-item a{ font-size:14px; color:var(--stone); }
@media (max-width:900px){ .contact-grid{ grid-template-columns:1fr; gap:40px; } }

/* ---------- Company / credibility page pieces ---------- */
.two-col{ display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center; }
.two-col img{ width:100%; aspect-ratio:4/3; object-fit:cover; }
@media (max-width:900px){ .two-col{ grid-template-columns:1fr; gap:32px; } }

.stat-row{ display:grid; grid-template-columns:repeat(4,1fr); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.stat-item{ padding:28px 24px; border-right:1px solid var(--line); }
.stat-item:last-child{ border-right:none; }
.stat-item .n{ font-family:var(--display); font-size:2.2rem; display:block; }
.stat-item .l{ font-size:12.5px; color:var(--stone); margin-top:4px; }
@media (max-width:700px){ .stat-row{ grid-template-columns:repeat(2,1fr); } .stat-item:nth-child(2n){ border-right:none; } .stat-item{ border-bottom:1px solid var(--line); } }

/* ===== Availability badges (product cards) ===== */
.product-card .thumb{ position:relative; }
.avail-badge{
  position:absolute; top:12px; left:12px; z-index:2;
  font-family:var(--mono); font-size:10.5px; font-weight:500; letter-spacing:0.04em; text-transform:uppercase;
  padding:5px 10px; border-radius:100px; backdrop-filter:blur(6px);
}
.avail-badge.in-stock{ background:rgba(15,76,79,0.92); color:var(--paper); }
.avail-badge.on-order{ background:rgba(251,250,248,0.92); color:var(--ink-soft); border:1px solid var(--line); }

/* ===== Availability note (product detail page) ===== */
.avail-note-wrap{ position:relative; }
.avail-note{ display:none; font-size:13.5px; color:var(--stone); align-items:center; gap:8px; flex-wrap:wrap; }
.avail-note.active{ display:flex; }
.avail-note svg{ width:15px; height:15px; color:var(--petrol); flex:none; }
.avail-note a{ color:var(--petrol); font-weight:600; }
.avail-note a:hover{ text-decoration:underline; }

/* ===== Pedido em volume section ===== */
.volume-grid{ max-width:640px; }
.volume-facts{ display:flex; flex-direction:column; gap:14px; }
.volume-facts li{ display:flex; justify-content:space-between; gap:16px; padding-bottom:14px; border-bottom:1px solid rgba(251,250,248,0.14); font-size:14.5px; }
.volume-facts li strong{ color:var(--paper); font-weight:600; }
.volume-facts li span{ color:rgba(251,250,248,0.72); text-align:right; }

.btn-whatsapp{ background:#25D366; color:#0B3B23; display:inline-flex; align-items:center; gap:9px; }
.btn-whatsapp:hover{ background:#1ebe5a; transform:translateY(-1px); }
.btn-whatsapp svg{ width:18px; height:18px; }

/* ===== Floating WhatsApp button (all pages) ===== */
.whatsapp-float{
  position:fixed; right:22px; bottom:22px; z-index:60;
  width:56px; height:56px; border-radius:50%;
  background:#25D366; color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 6px 20px rgba(0,0,0,0.22);
  transition:transform .2s ease, box-shadow .2s ease;
}
.whatsapp-float svg{ width:28px; height:28px; }
.whatsapp-float:hover{ transform:scale(1.08); box-shadow:0 8px 26px rgba(0,0,0,0.28); }
@media (max-width:600px){
  .whatsapp-float{ right:16px; bottom:16px; width:50px; height:50px; }
  .whatsapp-float svg{ width:25px; height:25px; }
}
