/* ─── Design Tokens ─────────────────────────────────────── */
:root {
  --carbon:  #0F0A0A;
  --crimson: #7B0D1E;
  --ember:   #C0392B;
  --flame:   #D4821A;
  --off-white: #FAF7F5;
  --steel:   #6B6B6B;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--off-white);
  color: var(--carbon);
  -webkit-font-smoothing: antialiased;
}

/* ─── Custom scrollbar ───────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--crimson); border-radius: 0; }

/* ─── Navbar ─────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
#navbar.scrolled,
#navbar.menu-open {
  background: var(--off-white);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}
#navbar.scrolled .nav-link,
#navbar.menu-open .nav-link { color: var(--carbon); }
#navbar.scrolled .nav-link:hover,
#navbar.menu-open .nav-link:hover { color: var(--crimson); }
#navbar.scrolled .nav-logo-dark,
#navbar.menu-open .nav-logo-dark { display: block; }
#navbar.scrolled .nav-logo-light,
#navbar.menu-open .nav-logo-light { display: none; }
#navbar.scrolled .hamburger-line,
#navbar.menu-open .hamburger-line { background: var(--carbon); }

.nav-logo-dark { display: none; }
.nav-logo-light { display: block; }

/* Wordmark next to icon */
.nav-wordmark { display: flex; flex-direction: column; }
.nav-wordmark-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #fff;
  transition: color 0.3s ease;
}
.nav-wordmark-sub {
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 0.5rem;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.7);
  transition: color 0.3s ease;
  margin-top: 1px;
}
#navbar.scrolled .nav-wordmark-name,
#navbar.menu-open .nav-wordmark-name { color: var(--carbon); }
#navbar.scrolled .nav-wordmark-sub,
#navbar.menu-open .nav-wordmark-sub  { color: var(--crimson); }
@media (max-width: 380px) { .nav-wordmark-sub { display: none; } }

.nav-link {
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover { color: #fff; }

.btn-nav {
  display: inline-block;
  background: var(--crimson);
  color: #fff !important;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 1.25rem;
  text-decoration: none;
  transition: background 0.2s ease;
}
.btn-nav:hover { background: var(--ember); }

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.9);
  transition: all 0.25s ease;
}
.hamburger-line + .hamburger-line { margin-top: 5px; }

/* Mobile menu */
#mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(0,0,0,0.06);
}
#mobile-menu.open { display: flex; background: var(--off-white); padding-bottom: 0.5rem; }

.mobile-link {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--carbon);
  text-decoration: none;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: color 0.2s;
}
.mobile-link:hover { color: var(--crimson); }

/* ─── Hero ───────────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--carbon);
  /* diagonal bottom cut */
  clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
  padding-bottom: 4%;
}

.grain-overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.035;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15,10,10,0.55) 0%,
    rgba(15,10,10,0.78) 42%,
    rgba(15,10,10,0.78) 64%,
    rgba(15,10,10,0.60) 100%
  );
  pointer-events: none;
}

.hero-eyebrow {
  font-family: 'Barlow', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  margin-bottom: 1.1rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

.hero-headline {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(2.75rem, 8vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.75rem;
  text-shadow: 0 2px 18px rgba(0,0,0,0.55);
}

/* Hero product box — protagonist */
.hero-product-wrap {
  position: relative;
  margin: 0 auto;
  max-width: 300px;
}
.hero-product-wrap::before {
  content: "";
  position: absolute;
  inset: -10% -6%;
  background: radial-gradient(
    ellipse at 58% 42%,
    rgba(192,57,43,0.50) 0%,
    rgba(212,130,26,0.22) 42%,
    transparent 70%
  );
  filter: blur(34px);
  z-index: -1;
  pointer-events: none;
}
.hero-product {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 30px 52px rgba(0,0,0,0.6));
  animation: heroFloat 6s ease-in-out infinite;
  will-change: transform;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(-0.6deg); }
}

.hero-rule {
  width: 56px;
  height: 4px;
  background: var(--crimson);
  margin: 0 auto 1.5rem;
}

.hero-sub {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.88);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
  text-shadow: 0 1px 10px rgba(0,0,0,0.65);
}

.btn-hero-primary {
  display: inline-block;
  background: var(--crimson);
  color: #fff;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn-hero-primary:hover {
  background: var(--ember);
  transform: translateY(-2px);
}

.btn-hero-ghost {
  display: inline-block;
  border: 1.5px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.85);
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.btn-hero-ghost:hover {
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}

/* Scroll indicator — thin vertical line */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 20;
}
.scroll-label {
  font-family: 'Barlow', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.scroll-line-wrap {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  overflow: hidden;
}
.scroll-line-inner {
  width: 100%;
  height: 100%;
  background: var(--crimson);
  animation: scrollDown 1.8s ease-in-out infinite;
}
@keyframes scrollDown {
  0%   { transform: translateY(-100%); }
  50%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ─── Section utilities ──────────────────────────────────── */
.section-eyebrow {
  display: block;
  font-family: 'Barlow', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.25rem);
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--carbon);
}

.section-rule {
  width: 40px;
  height: 3px;
  background: var(--crimson);
  margin-top: 1rem;
}

/* ─── About ──────────────────────────────────────────────── */
.about-image {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.about-stat {
  border-left: 3px solid var(--crimson);
  padding-left: 1rem;
}
.about-stat-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--carbon);
  line-height: 1;
}
.about-stat-label {
  font-family: 'Barlow', sans-serif;
  font-size: 0.8rem;
  color: var(--steel);
  margin-top: 0.15rem;
}

/* ─── Product cards (the aesthetic risk) ────────────────── */
.product-card {
  position: relative;
  border-radius: 0;
  border-left: 4px solid var(--crimson);
  background: #fff;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: background 0.25s ease, border-left-color 0.25s ease;
  cursor: default;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 0;
  background: var(--crimson);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}
.product-card:hover::before { width: 100%; }
.product-card:hover { border-left-color: var(--flame); }

.product-card > * { position: relative; z-index: 1; }

.product-figure {
  height: 5rem;
  display: flex;
  align-items: flex-end;
  gap: 0.15rem;
  margin-bottom: 0.75rem;
}

.product-width {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 5rem;
  line-height: 0.9;
  color: var(--crimson);
  transition: color 0.25s ease;
}

/* text-based figure labels (Caixa, Bobina) — match the numeral's visual weight */
.product-word {
  font-size: 3.25rem;
}
.product-card:hover .product-width { color: rgba(255,255,255,0.2); }

.product-unit {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--carbon);
  transition: color 0.25s ease;
}
.product-card:hover .product-unit { color: rgba(255,255,255,0.5); }

.product-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--carbon);
  margin-top: 0;
  margin-bottom: 0.5rem;
  transition: color 0.25s ease;
}
.product-card:hover .product-name { color: #fff; }

.product-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--crimson);
  border: 1px solid rgba(123, 13, 30, 0.3);
  padding: 0.2rem 0.6rem;
  margin-bottom: 1rem;
  transition: color 0.25s, border-color 0.25s;
}
.product-card:hover .product-badge {
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.3);
}

.product-desc {
  font-family: 'Barlow', sans-serif;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--steel);
  flex: 1;
  transition: color 0.25s ease;
}
.product-card:hover .product-desc { color: rgba(255,255,255,0.75); }

.btn-product {
  display: block;
  text-align: center;
  margin-top: 1.5rem;
  border: 1.5px solid var(--crimson);
  color: var(--crimson);
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 1rem;
  text-decoration: none;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.product-card:hover .btn-product {
  background: #fff;
  color: var(--crimson);
  border-color: #fff;
}

/* ─── Diferenciais ───────────────────────────────────────── */
.feature-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 2rem;
  transition: background 0.25s;
}
.feature-card:hover { background: rgba(255,255,255,0.13); }

.feature-icon {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  margin-bottom: 0.5rem;
}

.feature-desc {
  font-family: 'Barlow', sans-serif;
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.65);
}

/* ─── Contact / Form ─────────────────────────────────────── */
/* CTAs de contato direto (WhatsApp / E-mail) */
.contact-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  text-decoration: none;
  color: #fff;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.contact-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}
.contact-cta svg {
  width: 1.85rem;
  height: 1.85rem;
  flex: none;
}
.contact-cta-label {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.05;
}
.contact-cta-value {
  display: block;
  font-family: 'Barlow', sans-serif;
  font-size: 0.9rem;
  margin-top: 2px;
  opacity: 0.92;
  word-break: break-word;
}
.contact-cta-whatsapp { background: #25D366; }
.contact-cta-whatsapp:hover { background: #1FB959; }
.contact-cta-email { background: var(--crimson); }
.contact-cta-email:hover { background: var(--ember); }

.contact-icon-wrap {
  width: 40px;
  height: 40px;
  background: rgba(123,13,30,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-label {
  font-family: 'Barlow', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 0.2rem;
}

.contact-value {
  font-family: 'Barlow', sans-serif;
  font-size: 0.9rem;
  color: var(--carbon);
  text-decoration: none;
}
a.contact-value:hover { color: var(--crimson); }

/* ─── Social links ───────────────────────────────────────── */
.social-link {
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(123,13,30,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--crimson);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
}
.social-link:hover {
  background: var(--crimson);
  color: #fff;
  border-color: var(--crimson);
}

/* ─── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--carbon);
}

.footer-link {
  font-family: 'Barlow', sans-serif;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
  display: block;
  padding: 0.25rem 0;
}
.footer-link:hover { color: rgba(255,255,255,0.85); }

.footer-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 1.25rem;
}

/* ─── WhatsApp float ─────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 99;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.5);
}
.whatsapp-float::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.4);
  animation: pulse-ring 2.5s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 1; }
  70%  { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ─── Fade-in animation ──────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Maps ───────────────────────────────────────────────── */
.map-wrap {
  border-left: 4px solid var(--crimson);
  background: #ece7e2;
  min-height: 280px;
}
.map-wrap iframe { display: block; }

/* ─── Responsive ─────────────────────────────────────────── */
/* Desktop: two-column hero, text left-aligned, larger product box */
@media (min-width: 1024px) {
  .hero-section { min-height: 64vh; }
  .hero-text .hero-rule { margin-left: 0; margin-right: 0; }
  .hero-text .hero-sub  { margin-left: 0; margin-right: 0; max-width: 460px; }
  .hero-product-wrap    { max-width: 440px; margin-right: 0; }
}

@media (max-width: 640px) {
  .hero-section {
    clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%);
    padding-bottom: 4%;
  }
  .hero-product-wrap { max-width: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
