/* ============================================================
   MORIÁ USINAGEM — home.css
   Estilos exclusivos da homepage
   ============================================================ */

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
}

/* Grade de fundo discreta */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.12;
  pointer-events: none;
}

/* Aura azul sutil no canto superior direito — assinatura Moriá */
.hero::after {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 55%;
  height: 70%;
  background: radial-gradient(ellipse at 60% 40%, rgba(30, 91, 198, 0.10), transparent 65%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-h) + 100px) 48px 80px;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--white);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.eyebrow-line {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--white);
  opacity: 0.6;
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(60px, 9vw, 120px);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -2px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 30px;
}
.hero-title em {
  font-style: italic;
  font-weight: 700;
  color: var(--blue);
}

.hero-sub {
  font-size: 16px;
  color: var(--text);
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 48px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── TICKER (posicionado após o hero-content) ────────────── */
/* ticker está no global.css — aqui só posicionamento relativo */
.hero .ticker {
  position: relative;
  bottom: auto;
  left: auto;
  right: auto;
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .usinagem-dynamic-bg { animation: none; }
  .ticker-track { animation: none; }
}

/* ── MÉTRICAS / NÚMEROS ──────────────────────────────────── */
.metrics-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.metrics-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.metric-item {
  padding: 40px 48px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.metric-item:last-child { border-right: none; }
.metric-num {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
  color: var(--white);
}
.metric-num span {
  font-size: 32px;
  color: var(--blue);
}
.metric-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-sub);
}

/* ── INTRO GRID ──────────────────────────────────────────── */
.sobre-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.sobre-intro-right p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 22px;
}
.sobre-intro-right p:last-child { margin-bottom: 0; }

/* ── GALERIA ─────────────────────────────────────────────── */
.intro-gallery {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
}
.gallery-track-container {
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.gallery-track-container::-webkit-scrollbar { display: none; }
.gallery-track { display: flex; gap: 14px; }
.gallery-img {
  flex: 0 0 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  scroll-snap-align: center;
  border: 1px solid var(--border);
}
.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: 1px solid var(--border-mid);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.gallery-btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(30, 91, 198, 0.3);
}
.prev-btn { left: -22px; }
.next-btn { right: -22px; }

/* ── COMPROMETIMENTO ─────────────────────────────────────── */
.comprometimento-lead {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.5;
  max-width: 780px;
}

/* ── LOCALIZAÇÃO ─────────────────────────────────────────── */
.localizacao-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.localizacao-lead {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--white);
  margin-bottom: 36px;
}
.localizacao-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.localizacao-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.localizacao-item svg { flex-shrink: 0; margin-top: 3px;}
.localizacao-item strong {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 5px;
}
.localizacao-item span {
  font-size: 14px;
  color: var(--text);
  line-height: 1.65;
}
.localizacao-map-block {
  display: flex;
  align-items: stretch;
}
.mapa-embed {
  width: 100%;
  min-height: 340px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.mapa-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
  display: block;
}

/* ════════════════════════════════════════════════════════
   RESPONSIVIDADE — HOME
════════════════════════════════════════════════════════ */

@media (max-width: 1100px) {
  .sobre-intro-grid { grid-template-columns: 1fr; gap: 44px; }
  .localizacao-grid { grid-template-columns: 1fr; gap: 48px; }
  .localizacao-map-block { justify-content: flex-start; }
  .metrics-inner { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .hero-content { padding: 0 36px; padding-top: calc(var(--nav-h) + 88px); padding-bottom: 64px; }
  .gallery-img { height: 360px; }
}

@media (max-width: 768px) {
  .hero-content { padding: 0 20px; padding-top: calc(var(--nav-h) + 64px); padding-bottom: 60px; }
  .hero-title { font-size: clamp(48px, 14vw, 88px); letter-spacing: -1px; margin-bottom: 20px; }
  .hero-sub { font-size: 15px; margin-bottom: 32px; max-width: 100%; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { flex: 1; justify-content: center; }

  .metrics-inner { grid-template-columns: 1fr; }
  .metric-item { border-right: none; border-bottom: 1px solid var(--border); padding: 28px 24px; }
  .metric-item:last-child { border-bottom: none; }
  .metric-num { font-size: 40px; }

  .gallery-img { height: 260px; }
  .prev-btn { left: 8px; }
  .next-btn { right: 8px; }

  .localizacao-lead { font-size: 18px; }
  .localizacao-item span { font-size: 13px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(40px, 15vw, 68px); }
  .gallery-img { height: 220px; }
}

@media (min-width: 768px) {
  .gallery-img {
    flex: 0 0 calc(50% - 7px);
    height: 440px;
  }
}
@media (min-width: 1100px) {
  .gallery-img { height: 480px; }
}