/* ============================================================
   JOÃO GUERRA & FILHOS, LDA. — STYLESHEET
   Paleta: Branco · Preto · Verde
   Tipografia: Outfit (títulos) + Inter (corpo)
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* ── CSS Variables (Design Tokens) ── */
:root {
  /* Cores */
  --white:        #ffffff;
  --black:        #0a0a0a;
  --dark:         #111111;
  --dark-soft:    #1e1e1e;

  --green-950:    #052e0f;
  --green-900:    #0d3b1c;
  --green-800:    #145a2a;
  --green-700:    #1a7a36;
  --green-600:    #22a648; /* verde principal */
  --green-500:    #2ecc5a; /* verde claro/hover */
  --green-100:    #e8f7ed;
  --green-50:     #f2fbf5;

  --grey-50:      #f8fafc;
  --grey-100:     #f1f5f9;
  --grey-200:     #e2e8f0;
  --grey-400:     #94a3b8;
  --grey-600:     #475569;
  --grey-700:     #334155;
  --grey-800:     #1e293b;

  /* Semânticas */
  --color-bg:          var(--white);
  --color-bg-alt:      var(--green-50);
  --color-bg-dark:     var(--green-950);
  --color-primary:     var(--green-600);
  --color-primary-dark:var(--green-800);
  --color-text:        var(--dark);
  --color-text-muted:  var(--grey-600);
  --color-border:      var(--grey-200);
  --color-card-bg:     var(--white);

  /* Tipografia */
  --font-display: 'Outfit', sans-serif;
  --font-body:    'Inter', sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-7xl:  4.5rem;

  /* Espaçamentos */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.25rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;

  /* Layout */
  --max-width: 1200px;
  --navbar-h:  76px;

  /* Efeitos */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.14), 0 4px 8px rgba(0,0,0,.06);
  --shadow-green: 0 8px 24px rgba(34,166,72,.25);

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

::selection {
  background: var(--green-600);
  color: var(--white);
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ── Section Wrapper ── */
.section {
  padding: var(--space-24) 0;
}
.section--alt { background: var(--color-bg-alt); }
.section--dark {
  background: var(--color-bg-dark);
  color: var(--white);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 800;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: var(--space-6);
}
.section--dark .section-title { color: var(--white); }

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 600px;
  line-height: 1.7;
}
.section--dark .section-subtitle { color: rgba(255,255,255,.65); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--white);
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--green-700);
  border-color: var(--green-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-green);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--dark);
  border-color: var(--grey-200);
}
.btn-outline-dark:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,166,72,.4); }
  50%       { box-shadow: 0 0 0 12px rgba(34,166,72,0); }
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left  { transform: translateX(-24px); }
.reveal-right { transform: translateX(24px); }
.reveal-left.visible, .reveal-right.visible { transform: translateX(0); }

/* ── Delay helpers ── */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }


/* ==========================================================
   NAVBAR
   ========================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  /* Height adapts to logo — controlled by padding */
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  border-bottom-color: var(--grey-200);
  box-shadow: var(--shadow-sm);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0; /* vertical breathing room around logo */
}

/* Logo */
.navbar__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0; /* collapse any inline-block gap */
}
.navbar__logo-img {
  height: 56px;   /* tall enough to show logo text clearly */
  width: auto;
  display: block;
  object-fit: contain;
}
/* (logo-icon placeholder removed — real logo in use) */

/* Nav links */
.navbar__nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.navbar__link {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--grey-700);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  letter-spacing: 0.03em;
  position: relative;
}
.navbar__link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: width var(--transition);
}
.navbar__link:hover,
.navbar__link.active {
  color: var(--color-primary);
}
.navbar__link:hover::after,
.navbar__link.active::after {
  width: calc(100% - 2rem);
}

.navbar__cta {
  margin-left: var(--space-4);
  padding: var(--space-2) var(--space-5);
  background: var(--color-primary);
  color: var(--white) !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--text-sm);
}
.navbar__cta::after { display: none; }
.navbar__cta:hover {
  background: var(--green-700);
  color: var(--white) !important;
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.navbar__hamburger:hover { background: var(--grey-100); }
.navbar__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile nav open */
.navbar__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: var(--space-3);
  padding: 3px;
  background: var(--grey-100);
  border-radius: var(--radius-sm);
}
.lang-switcher__btn {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--grey-700);
  background: none;
  border: none;
  padding: 5px 9px;
  border-radius: calc(var(--radius-sm) - 2px);
  cursor: pointer;
  transition: all var(--transition);
}
.lang-switcher__btn:hover { color: var(--color-primary); }
.lang-switcher__btn.active {
  background: var(--white);
  color: var(--color-primary);
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,.08));
}
.lang-switcher--mobile {
  margin: var(--space-3) 0 0;
  align-self: flex-start;
}

/* Mobile menu */
.navbar__mobile {
  display: none;
  position: fixed;
  top: var(--navbar-h);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
  box-shadow: var(--shadow-md);
  padding: var(--space-4) var(--space-6);
  z-index: 999;
  flex-direction: column;
  gap: var(--space-2);
  animation: fadeInUp 0.2s ease;
}
.navbar__mobile.open { display: flex; }
.navbar__mobile .navbar__link { font-size: var(--text-base); }
.navbar__mobile .navbar__cta { text-align: center; margin: var(--space-2) 0 0; }


/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--green-950);
  overflow: hidden;
  padding-top: var(--navbar-h);
}

/* Animated background mesh */
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 70% 50%, rgba(34,166,72,.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 20%, rgba(21,90,42,.35) 0%, transparent 60%),
    linear-gradient(160deg, #052e0f 0%, #0a1a0a 40%, #0d2b12 70%, #051808 100%);
  background-size: 200% 200%;
  animation: gradientShift 12s ease infinite;
}

/* Grid pattern overlay */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34,166,72,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,166,72,.05) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Decorative circles */
.hero__circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(34,166,72,.15);
}
.hero__circle--1 {
  width: 500px; height: 500px;
  right: -100px; top: -100px;
}
.hero__circle--2 {
  width: 300px; height: 300px;
  right: 80px; top: 60px;
  border-color: rgba(34,166,72,.25);
}
.hero__circle--3 {
  width: 150px; height: 150px;
  right: 200px; top: 180px;
  background: rgba(34,166,72,.06);
  border-color: transparent;
}

/* ── Hero Image Slider (Carrossel) ── */
.hero__slider {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero__slides {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  background-size: cover;
  background-position: center;
}

.hero__slide.active {
  opacity: 1;
  visibility: visible;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 46, 15, 0.75) 0%,
    rgba(10, 26, 10, 0.85) 50%,
    rgba(5, 24, 8, 0.92) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(15, 17, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
  backdrop-filter: blur(4px);
}
.hero__arrow:hover {
  background: var(--green-600);
  border-color: var(--green-400);
  transform: translateY(-50%) scale(1.08);
}
.hero__arrow svg {
  width: 22px;
  height: 22px;
}
.hero__arrow--prev { left: 24px; }
.hero__arrow--next { right: 24px; }

.hero__slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}

.hero__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}
.hero__dot:hover {
  background: rgba(255, 255, 255, 0.7);
}
.hero__dot.active {
  background: var(--green-500);
  border-color: var(--green-400);
  width: 28px;
  border-radius: 100px;
}

@media (max-width: 768px) {
  .hero__arrow { width: 38px; height: 38px; }
  .hero__arrow--prev { left: 10px; }
  .hero__arrow--next { right: 10px; }
  .hero__arrow svg { width: 18px; height: 18px; }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(34,166,72,.15);
  border: 1px solid rgba(34,166,72,.3);
  color: var(--green-500);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-4);
  border-radius: 100px;
  margin-bottom: var(--space-8);
  animation: fadeInUp 0.6s ease both;
}
.hero__badge-dot {
  width: 6px; height: 6px;
  background: var(--green-500);
  border-radius: 50%;
  animation: pulse-green 2s ease infinite;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, var(--text-7xl));
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: var(--space-3);
  animation: fadeInUp 0.6s 0.1s ease both;
}
.hero__title-green { color: var(--green-500); }

.hero__subtitle-company {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: rgba(255,255,255,.55);
  margin-bottom: var(--space-6);
  animation: fadeInUp 0.6s 0.2s ease both;
}

.hero__description {
  font-size: var(--text-lg);
  color: rgba(255,255,255,.70);
  line-height: 1.75;
  margin-bottom: var(--space-10);
  max-width: 560px;
  animation: fadeInUp 0.6s 0.3s ease both;
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  animation: fadeInUp 0.6s 0.4s ease both;
}

.hero__stats {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  animation: fadeInRight 0.8s 0.5s ease both;
}

.hero__stat {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  text-align: center;
  min-width: 140px;
  transition: all var(--transition);
}
.hero__stat:hover {
  background: rgba(34,166,72,.12);
  border-color: rgba(34,166,72,.3);
  transform: translateX(-4px);
}
.hero__stat-value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--green-500);
  line-height: 1;
  margin-bottom: var(--space-1);
}
.hero__stat-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255,255,255,.4);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: fadeInUp 1s 0.8s ease both;
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.4), transparent);
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .4; }
  50% { opacity: .9; }
}


/* ==========================================================
   EMPRESA
   ========================================================== */
.empresa__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.empresa__text p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-5);
}
.empresa__text p:last-of-type { margin-bottom: var(--space-8); }

.empresa__highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.highlight-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.highlight-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--color-primary);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.highlight-card:hover {
  border-color: var(--green-200, #bbf7d0);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.highlight-card:hover::before { transform: scaleX(1); }

.highlight-card__value {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.highlight-card__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Icon box for empresa */
.empresa__icon-row {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-6);
  flex-wrap: wrap;
}
.empresa__icon-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--grey-700);
}
.empresa__icon-item svg {
  width: 18px; height: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
}


/* ==========================================================
   MATÉRIA-PRIMA
   ========================================================== */
.materia-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
}

.metal-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.metal-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

/* Image placeholder area */
.metal-card__image {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: var(--grey-100);
  display: flex;
  align-items: center;
  justify-content: center;
}
.metal-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.metal-card:hover .metal-card__image img { transform: scale(1.06); }

/* Placeholder shown when no image */
.metal-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}
.metal-card__symbol {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(255,255,255,.9);
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.metal-card__atomic {
  font-size: var(--text-xs);
  font-weight: 600;
  color: rgba(255,255,255,.65);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.metal-card__placeholder-label {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  background: rgba(0,0,0,.45);
  color: rgba(255,255,255,.7);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 100px;
  letter-spacing: 0.05em;
}

/* Individual metal placeholder colors */
.metal--sn .metal-card__placeholder { background: linear-gradient(135deg, #4a5568, #718096, #a0aec0); }
.metal--pb .metal-card__placeholder { background: linear-gradient(135deg, #2d3748, #4a5568, #718096); }
.metal--sb .metal-card__placeholder { background: linear-gradient(135deg, #1a202c, #2d3748, #4a5568); }
.metal--cu .metal-card__placeholder { background: linear-gradient(135deg, #7b341e, #b7791f, #c05621); }
.metal--bi .metal-card__placeholder { background: linear-gradient(135deg, #553c9a, #b794f4, #9f7aea); }
.metal--ni  .metal-card__placeholder { background: linear-gradient(135deg, #276749, #38a169, #68d391); }

.metal-card__body {
  padding: var(--space-5) var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.metal-card__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.metal-card__name-badge {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary);
  background: var(--green-100);
  padding: 2px 8px;
  border-radius: 100px;
}

.metal-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  flex: 1;
}

.metal-card__footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--grey-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.metal-card__footer svg { width: 14px; height: 14px; }

/* Estado de stock (dot colorido) */
.metal-card__footer-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.metal-card__footer-stock::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.stock-dot--green  { color: var(--green-600); }
.stock-dot--yellow { color: #d97706; }
.stock-dot--red    { color: #dc2626; }


/* ==========================================================
   PRODUTOS
   ========================================================== */
.produtos-intro {
  max-width: 700px;
  margin-bottom: var(--space-12);
}

.produtos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.product-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--color-primary);
}

.product-card__header {
  height: 220px;
  position: relative;
  overflow: hidden;
  background: var(--grey-100);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card__header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card__header img { transform: scale(1.06); }

.product-card__header-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}
.product-card__icon {
  width: 72px;
  height: 72px;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card__icon svg { width: 36px; height: 36px; fill: rgba(255,255,255,.9); }

.product-card__header-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: rgba(255,255,255,.95);
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.product-card__placeholder-label {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  background: rgba(0,0,0,.4);
  color: rgba(255,255,255,.65);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 100px;
}

/* Product header colors */
.product--soldas .product-card__header-placeholder  { background: linear-gradient(135deg, #145a2a, #22a648); }
.product--anodos .product-card__header-placeholder  { background: linear-gradient(135deg, #2b4269, #3d5a8a); }
.product--antifriction .product-card__header-placeholder { background: linear-gradient(135deg, #2c2c2c, #4a4a4a); }
.product--ligas .product-card__header-placeholder   { background: linear-gradient(135deg, #1a3a2a, #22a648); }

.product-card__body {
  padding: var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.product-card__name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: var(--space-4);
  line-height: 1.2;
}

.product-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.75;
  flex: 1;
}

.product-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-5);
}
.product-tag {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  background: var(--green-100);
  border: 1px solid rgba(34,166,72,.2);
  padding: var(--space-1) var(--space-3);
  border-radius: 100px;
}


/* ==========================================================
   CONTACTOS
   ========================================================== */
.contactos__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-12);
  align-items: start;
}

.contactos__info-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: var(--space-6);
  line-height: 1.2;
}

.contactos__items {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.contact-item:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.contact-item__icon {
  width: 44px;
  height: 44px;
  background: var(--green-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item__icon svg { width: 20px; height: 20px; color: var(--color-primary); }

.contact-item__label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}
.contact-item__value {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--dark);
  line-height: 1.5;
}
.contact-item__value a {
  color: var(--color-primary);
  transition: color var(--transition);
}
.contact-item__value a:hover { color: var(--green-700); }

.contactos__litigio {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.7;
  padding: var(--space-4);
  background: var(--grey-50);
  border-radius: var(--radius-sm);
  border: 1px solid var(--grey-200);
}
.contactos__litigio a { color: var(--color-primary); }

/* Map */
.contactos__map {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--grey-200);
}
.contactos__map iframe {
  width: 100%;
  height: 460px;
  display: block;
  filter: grayscale(20%);
  transition: filter var(--transition);
}
.contactos__map:hover iframe { filter: grayscale(0%); }


/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: var(--space-12) 0 var(--space-8);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer__logo-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--white);
}
.footer__logo-text span {
  display: block;
  font-size: var(--text-xs);
  font-weight: 400;
  color: rgba(255,255,255,.5);
  margin-top: 2px;
  letter-spacing: 0.05em;
}

.footer__tagline {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.5);
  line-height: 1.7;
  max-width: 280px;
}

.footer__col-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-4);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.footer__link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.footer__link:hover { color: var(--green-500); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-6);
  font-size: var(--text-xs);
  color: rgba(255,255,255,.35);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__green-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--green-600);
  border-radius: 50%;
  margin-right: var(--space-2);
}


/* ==========================================================
   BACK TO TOP BUTTON
   ========================================================== */
.back-to-top {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  box-shadow: var(--shadow-green);
  opacity: 0;
  transform: translateY(16px);
  transition: all var(--transition);
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--green-700);
  transform: translateY(-2px);
}
.back-to-top svg { width: 18px; height: 18px; }


/* ==========================================================
   CONTACT FORM
   ========================================================== */

/* New contactos layout: info left | form right | map full-width below */
.contactos__top {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--space-10);
  align-items: start;
  margin-bottom: var(--space-10);
}

.contactos__map-full {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--grey-200);
}
.contactos__map-full iframe {
  width: 100%;
  height: 360px;
  display: block;
  filter: grayscale(15%);
  transition: filter var(--transition);
}
.contactos__map-full:hover iframe { filter: grayscale(0%); }

/* Contact Form Card */
.contact-form-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
}

.contact-form-card__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: var(--space-2);
}
.contact-form-card__subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  line-height: 1.65;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-group {
  margin-bottom: var(--space-5);
  position: relative;
}
.form-group:last-child { margin-bottom: 0; }

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--grey-700);
  margin-bottom: var(--space-2);
}
.form-label .req {
  color: var(--color-primary);
  margin-left: 2px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 11px var(--space-4);
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-input:hover,
.form-textarea:hover,
.form-select:hover {
  border-color: var(--grey-400);
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(34,166,72,.12);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--grey-400); }

.form-textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

/* Select arrow */
.form-select-wrap { position: relative; }
.form-select-wrap::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--grey-400);
  pointer-events: none;
}

/* Error state */
.form-group.has-error .form-input,
.form-group.has-error .form-textarea,
.form-group.has-error .form-select {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,.1);
}
.form-error-msg {
  display: none;
  font-size: var(--text-xs);
  color: #dc2626;
  margin-top: var(--space-1);
  font-weight: 500;
}
.form-group.has-error .form-error-msg { display: block; }

/* Submit button */
.form-submit-btn {
  width: 100%;
  padding: 14px var(--space-8);
  font-size: var(--text-base);
  font-family: var(--font-display);
  font-weight: 700;
  background: var(--color-primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}
.form-submit-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}
.form-submit-btn:hover:not(:disabled) {
  background: var(--green-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-green);
}
.form-submit-btn:hover::before { opacity: 1; }
.form-submit-btn:active:not(:disabled) { transform: translateY(0); }
.form-submit-btn:disabled {
  opacity: .7;
  cursor: not-allowed;
  transform: none;
}
.form-submit-btn svg { width: 18px; height: 18px; }

/* Spinner */
@keyframes spin { to { transform: rotate(360deg); } }
.btn-spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: none;
}
.form-submit-btn.loading .btn-spinner { display: block; }
.form-submit-btn.loading .btn-text { display: none; }

/* Success state */
.form-success-state {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-8) var(--space-4);
  gap: var(--space-4);
}
.form-success-state.visible { display: flex; }
.form-success-state__icon {
  width: 72px; height: 72px;
  background: var(--green-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scaleIn .4s ease;
}
.form-success-state__icon svg { width: 36px; height: 36px; color: var(--color-primary); }
.form-success-state__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--dark);
}
.form-success-state__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 320px;
}
.form-alert-error {
  display: none;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: #dc2626;
  margin-bottom: var(--space-4);
  text-align: center;
}
.form-alert-error.visible { display: block; }


/* ==========================================================
   RESPONSIVE — Tablet (≤1024px)
   ========================================================== */
@media (max-width: 1024px) {
  .hero__stats {
    display: none;
  }

  .materia-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .empresa__grid {
    gap: var(--space-10);
  }

  .contactos__top {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}


/* ==========================================================
   RESPONSIVE — Mobile (≤768px)
   ========================================================== */
@media (max-width: 768px) {
  :root { --navbar-h: 64px; }

  .section { padding: var(--space-16) 0; }
  .container { padding: 0 var(--space-4); }

  .section-title { font-size: var(--text-3xl); }

  /* Navbar */
  .navbar__nav { display: none; }
  .navbar__hamburger { display: flex; }

  /* Hero */
  .hero { min-height: 100svh; }
  .hero__circle { display: none; }
  .hero__title { font-size: clamp(2rem, 8vw, 3rem); }
  .hero__subtitle-company { font-size: var(--text-xl); }
  .hero__description { font-size: var(--text-base); }

  /* Empresa */
  .empresa__grid { grid-template-columns: 1fr; gap: var(--space-10); }
  .empresa__highlights { grid-template-columns: 1fr 1fr; }

  /* Matéria-Prima */
  .materia-grid { grid-template-columns: 1fr; }

  /* Produtos */
  .produtos-grid { grid-template-columns: 1fr; }

  /* Contactos */
  .contactos__top { grid-template-columns: 1fr; }
  .contactos__map-full iframe { height: 280px; }
  .contact-form-card { padding: var(--space-6); }

  /* Footer */
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }

  /* Back to top */
  .back-to-top { bottom: var(--space-6); right: var(--space-4); }
}

/* ==========================================================
   MODAL — Pop-ups de Detalhe
   ========================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  visibility: hidden;
  pointer-events: none;
}

.modal-overlay.is-open {
  visibility: visible;
  pointer-events: all;
}

.modal-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.is-open .modal-overlay__backdrop {
  opacity: 1;
}

.modal-box {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  transform: translateY(24px) scale(0.97);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  scrollbar-width: none;
}
.modal-box::-webkit-scrollbar { display: none; }

.modal-overlay.is-open .modal-box {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-box__image {
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  overflow: hidden;
  background: var(--grey-100);
  min-height: 320px;
}

.modal-box__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholder for products without an image */
.modal-box__image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  background: linear-gradient(135deg, var(--green-950) 0%, var(--green-800) 100%);
  color: var(--white);
}
.modal-box__image-placeholder svg {
  width: 64px;
  height: 64px;
  opacity: 0.7;
  fill: var(--green-500);
}
.modal-box__image-placeholder-label {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  opacity: 0.85;
  text-align: center;
  padding: 0 var(--space-4);
}

.modal-box__body {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.modal-box__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.08);
  color: var(--grey-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
  z-index: 10;
}
.modal-box__close:hover {
  background: rgba(0,0,0,0.15);
  color: var(--dark);
}
.modal-box__close svg { width: 18px; height: 18px; }

.modal-box__header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.modal-box__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  flex: 1;
}

.modal-box__badge {
  background: var(--green-100);
  color: var(--green-700);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-sm);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  margin-top: 4px;
  letter-spacing: 0.05em;
}

.modal-box__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.modal-box__spec {
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
}

.modal-box__spec-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey-400);
  margin-bottom: var(--space-1);
}

.modal-box__spec-value {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--dark);
}

.modal-box__desc {
  font-size: var(--text-sm);
  line-height: 1.75;
  color: var(--grey-600);
}

.modal-box__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.modal-box__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-primary);
  color: var(--white);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
  align-self: flex-start;
  margin-top: auto;
}
.modal-box__cta:hover {
  background: var(--green-700);
  transform: translateY(-1px);
}
.modal-box__cta svg { width: 16px; height: 16px; }

/* ── Card updates for teaser + detail button ── */

.metal-card__teaser,
.product-card__teaser {
  font-size: var(--text-sm);
  color: var(--grey-600);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.metal-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--grey-100);
  gap: var(--space-3);
}

.metal-card__footer-stock {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: none;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  color: var(--dark);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  padding: var(--space-2) var(--space-3);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  font-family: var(--font-body);
  white-space: nowrap;
}
.detail-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--green-50);
}
.detail-btn svg {
  width: 12px;
  height: 12px;
  transition: transform var(--transition);
}
.detail-btn:hover svg { transform: translateX(3px); }

.product-card__body .detail-btn {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-4);
}

/* ── Modal Responsive ── */
@media (max-width: 640px) {
  .modal-box {
    grid-template-columns: 1fr;
    max-height: 95vh;
  }
  .modal-box__image {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    min-height: 200px;
    max-height: 220px;
  }
  .modal-box__image-placeholder { min-height: 200px; }
  .modal-box__body { padding: var(--space-6); }
  .modal-box__specs { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================
   RESPONSIVE — Small Mobile (≤480px)
   ========================================================== */
@media (max-width: 480px) {
  .hero__actions { flex-direction: column; width: 100%; }
  .btn { width: 100%; justify-content: center; }
  .empresa__highlights { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}


/* ==========================================================
   NOTÍCIAS & NOVIDADES
   ========================================================== */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-10);
}

.news-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-300, #6ee7b7);
}

.news-card__image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.news-card:hover .news-card__image img { transform: scale(1.06); }

.news-card__accent {
  height: 4px;
  background: linear-gradient(90deg, var(--green-600), var(--green-500));
  flex-shrink: 0;
}

.news-card__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.news-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.news-card__date {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--grey-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.news-card__pinned {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-card__title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}

.news-card__summary {
  font-size: var(--text-sm);
  color: var(--grey-600);
  line-height: 1.7;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__footer {
  padding-top: var(--space-4);
  border-top: 1px solid var(--grey-100);
  margin-top: auto;
}

.news-read-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-body);
  transition: gap var(--transition), color var(--transition);
}
.news-read-btn:hover { gap: var(--space-3); }
.news-read-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Modal das notícias */
.modal-box--news { max-width: 640px; }
.modal-box--news .modal-box__body { grid-column: 1 / -1; }

.news-modal-date {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--grey-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
}

.news-modal-content {
  font-size: var(--text-base);
  line-height: 1.85;
  color: var(--grey-600);
  white-space: pre-wrap;
  margin-top: var(--space-4);
}

/* Responsive news grid */
@media (max-width: 1024px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .news-grid { grid-template-columns: 1fr; }
}


/* ==========================================================
   WHATSAPP FLOATING BUTTON
   ========================================================== */

.whatsapp-float {
  position: fixed;
  bottom: 85px;
  right: 25px;
  z-index: 999;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
  color: var(--white);
}

.whatsapp-float__icon {
  width: 30px;
  height: 30px;
}

.whatsapp-float__tooltip {
  position: absolute;
  right: 64px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: #111827;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.whatsapp-float:hover .whatsapp-float__tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 640px) {
  .whatsapp-float {
    bottom: 75px;
    right: 18px;
    width: 48px;
    height: 48px;
  }
  .whatsapp-float__icon {
    width: 26px;
    height: 26px;
  }
  .whatsapp-float__tooltip {
    display: none;
  }
}


/* ==========================================================
   ACESSIBILIDADE — foco visível ao navegar por teclado
   ========================================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm, 4px);
}
