/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #1e2f4f;
  --navy-dark: #101a2e;
  --navy-darker: #0c1220;
  --orange: #1fa855;
  --orange-dark: #178a45;
  --gray-bg: #f4f5f7;
  --gray-text: #6b7280;
  --white: #ffffff;

  --font-display: 'Anton', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--navy-dark);
  line-height: 1.6;
  background: var(--white);
}

img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

a { text-decoration: none; color: inherit; }
ol, ul { list-style: none; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 16px 28px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 4px;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover { background: var(--orange-dark); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  padding: 14px 28px;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }

.btn-nav {
  padding: 12px 22px;
  grid-column: 3;
  justify-self: end;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #f1f2f4;
  border-bottom: 1px solid #e8e9ec;
  transition: box-shadow 0.2s ease;
}
.header-scrolled { box-shadow: 0 4px 16px rgba(16,26,46,0.08); }

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 84px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-width: 0;
  grid-column: 1;
  justify-self: start;
}
.logo-mark {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
}
.logo-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  letter-spacing: 1px;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  white-space: nowrap;
  color: #1fa855;
}
.logo-text.light { color: #2ecc71; }

.nav {
  display: flex;
  gap: 36px;
  grid-column: 2;
  justify-self: center;
}
.nav a {
  font-weight: 500;
  color: var(--navy-dark);
  font-size: 0.98rem;
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--orange); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  grid-column: 3;
  justify-self: end;
}
.burger span {
  width: 22px;
  height: 2px;
  background: var(--navy-dark);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(100deg, rgba(30,47,79,0.88) 0%, rgba(30,47,79,0.55) 55%, rgba(30,47,79,0.35) 100%),
    url('imgs/imagem-fundo-hero.jpeg') center/cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 60px;
  padding-bottom: 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
}
.eyebrow-light { color: var(--orange); }
.eyebrow-line {
  width: 32px;
  height: 2px;
  background: var(--orange);
  display: inline-block;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--white);
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.97;
  letter-spacing: 6px;
  margin-bottom: 24px;
}
.hero-title .accent { color: var(--orange); }

.hero-subtitle {
  color: #d7dce6;
  font-size: 1.15rem;
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: #b7bfcf;
  font-size: 1.4rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ===== STATS ===== */
.stats {
  background: var(--navy);
  padding: 56px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat {
  text-align: left;
  border-left: 1px solid rgba(255,255,255,0.15);
  padding-left: 24px;
}
.stat:first-child { border-left: none; padding-left: 0; }
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 10px;
}
.stat-label {
  color: #c7cddb;
  font-size: 0.95rem;
}

/* ===== SECTIONS GENERIC ===== */
.section { padding: 100px 0; }
.section-alt { background: var(--gray-bg); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}
.section-title.light { color: var(--white); }

/* ===== ABOUT / SOBRE ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 80px;
}
.about-grid.reverse .about-image { order: 2; }
.about-grid.reverse .about-text { order: 1; }

.about-text p {
  color: var(--gray-text);
  margin-bottom: 18px;
  max-width: 46ch;
}

.about-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* DIFERENCIAIS */
.diferenciais-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}

.diferenciais-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--navy);
  letter-spacing: 0.3px;
  margin-bottom: 24px;
}

.diferenciais {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.diferencial-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.diferencial-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--gray-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.diferencial-item p {
  color: var(--navy-dark);
  font-weight: 600;
  font-size: 1.05rem;
  padding-top: 8px;
}

.diferenciais-media {
  position: relative;
}
.diferenciais-media img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

/* ===== GALPÃO (DARK SECTION) ===== */
.section-dark { background: var(--navy-darker); }

.warehouse-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  background:
    url('https://images.unsplash.com/photo-1587293852726-70cdb56c2866?q=80&w=2000&auto=format&fit=crop') center/cover no-repeat;
}
.warehouse-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,18,32,0.2) 0%, rgba(12,18,32,0.92) 90%);
}
.warehouse-content {
  position: relative;
  z-index: 2;
  padding-bottom: 56px;
}

.feature-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #232f45;
  margin-top: 48px;
  padding: 36px 40px;
  gap: 24px;
}
.feature {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature-number {
  font-family: var(--font-display);
  color: var(--orange);
  font-size: 2rem;
}
.feature-label { color: #aab2c5; font-size: 0.92rem; }

.feature-desc {
  color: #aab2c5;
  max-width: 70ch;
  padding: 40px 0 60px;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.service-card {
  background: var(--white);
  border: 1px solid #e5e7eb;
  padding: 32px 24px;
  border-left: 3px solid var(--orange);
}
.service-card h3 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.2rem;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}
.service-card p { color: var(--gray-text); font-size: 0.95rem; }

/* ===== CTA FINAL ===== */
.cta-final {
  background: var(--navy);
  padding: 90px 0;
  text-align: center;
}
.cta-final-inner p {
  color: #c7cddb;
  max-width: 50ch;
  margin: 0 auto 32px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy-darker);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8891a5;
  font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .nav {
    display: none;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid #e8e9ec;
  }
  .nav a { padding: 16px 32px; border-top: 1px solid #f0f1f3; }
  .nav.nav-open { display: flex; }
  .burger { display: flex; }
  .about-grid, .diferenciais-wrap { grid-template-columns: 1fr; }
  .about-grid.reverse .about-image { order: 1; }
  .about-grid.reverse .about-text { order: 2; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .feature-bar { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .btn-nav { display: none; }
}

@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-left: none; padding-left: 0; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 16px; }
  .stat:first-child { border-top: none; padding-top: 0; }
  .feature-bar { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
}

@media (max-width: 768px) {
  .logo-text { font-size: 1rem; }
  .logo-mark { height: 32px; }
}

/* ===== MODAL PROPOSTA ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 18, 32, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 1000;
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }
body.modal-open { overflow: hidden; }

.modal {
  position: relative;
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  transform: translateY(20px);
  transition: transform 0.25s ease;
}
.modal-overlay.is-open .modal { transform: translateY(0); }
.modal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 7px;
  background: var(--orange);
  z-index: 2;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 6px;
  background: #eef0f3;
  color: #2b2b2b;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background 0.2s ease;
}
.modal-close:hover { background: #e1e3e7; }

.modal-left {
  background: #2b2b2b;
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}
.modal-eyebrow {
  color: var(--orange);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.modal-title {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--white);
  font-size: 2.6rem;
  line-height: 1.15;
  margin-bottom: 18px;
}
.modal-desc {
  color: #c7c9cd;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 360px;
}

.modal-right {
  padding: 56px 48px;
  display: flex;
  align-items: center;
  overflow-y: auto;
}
.proposal-form {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px 20px;
}
.form-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.form-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #444;
}
.form-field input {
  width: 100%;
  min-width: 0;
  border: 1px solid transparent;
  border-bottom: 2px solid #d8d9dc;
  background: #f5f5f5;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #222;
  border-radius: 4px 4px 0 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field input:focus {
  outline: none;
  border-color: #111;
  box-shadow: 0 0 0 1px #111;
}
.form-submit {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 16px 22px;
  font-weight: 700;
  font-size: 0.98rem;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.2s ease, transform 0.15s ease;
}
.form-submit:hover { background: var(--orange-dark); transform: translateY(-2px); }
.form-note {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8a8d93;
  font-size: 0.85rem;
  margin-top: -8px;
}
.form-status {
  grid-column: 1 / -1;
  font-size: 0.9rem;
  min-height: 1.2em;
}
.form-status.is-success { color: #1f8a4c; }
.form-status.is-error { color: #c0392b; }

@media (max-width: 820px) {
  .modal { grid-template-columns: 1fr; max-height: 92vh; overflow-y: auto; }
  .modal-left { padding: 48px 32px 32px; }
  .modal-title { font-size: 2rem; }
  .modal-right { padding: 32px; }
  .proposal-form { grid-template-columns: 1fr; }
}

/* ===== WHATSAPP FLUTUANTE ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 58px;
  height: 58px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

@media (max-width: 480px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 16px;
    right: 16px;
  }
}
