﻿:root {
  --dark: #0f5132;
  --grass: #2e7d32;
  --ink: #102019;
  --muted: #66736c;
  --line: #dce5df;
  --soft: #f3f7f4;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(11, 53, 32, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--white);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  position: fixed;
  inset: 18px 24px auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--dark); }
.brand img { width: 116px; }
.nav-links { display: flex; gap: 22px; font-weight: 700; font-size: 0.92rem; }
.nav-links a { color: #22362b; }
.menu-toggle { display: none; border: 0; background: var(--dark); color: white; border-radius: 6px; width: 42px; height: 42px; font-size: 1.35rem; }

.hero { position: relative; min-height: 92vh; display: grid; align-items: center; overflow: hidden; padding: 128px 7vw 64px; color: white; }
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 28, 17, 0.82), rgba(15, 81, 50, 0.42), rgba(15, 81, 50, 0.08)), url("assets/campo-futebol-hero.png") center/cover fixed;
  transform: scale(1.03);
}
.hero-content { position: relative; max-width: 760px; }
.eyebrow { display: inline-flex; color: var(--grass); background: rgba(46, 125, 50, 0.12); padding: 8px 12px; border-radius: 6px; font-weight: 800; text-transform: uppercase; font-size: 0.76rem; letter-spacing: 0; }
.hero .eyebrow { color: #d7ffd9; background: rgba(255, 255, 255, 0.12); }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.7rem, 7vw, 6.6rem); line-height: 0.94; max-width: 860px; margin-bottom: 22px; letter-spacing: 0; }
h2 { font-size: clamp(2rem, 4vw, 4.1rem); line-height: 1.02; margin: 14px 0 18px; letter-spacing: 0; color: var(--dark); }
h3 { margin-bottom: 10px; font-size: 1.2rem; color: var(--dark); }
p { line-height: 1.7; color: var(--muted); }
.hero p { color: rgba(255, 255, 255, 0.88); font-size: 1.18rem; max-width: 680px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 32px 0; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 6px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(15, 81, 50, 0.25); }
.btn-primary { background: var(--grass); color: white; }
.btn-outline { color: white; border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.08); }
.hero-metrics { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr; gap: 8px 12px; align-items: center; max-width: 780px; }
.hero-metrics strong { font-size: 1.6rem; color: #b9ffbd; }
.hero-metrics span { color: rgba(255, 255, 255, 0.78); font-size: 0.92rem; }

.section { padding: 96px 7vw; }
.section-heading { max-width: 850px; margin-bottom: 36px; }
.intro, .map-section, .contact { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr); gap: 42px; align-items: center; }
.trust-panel, .quote-form {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 32px;
}
.trust-panel { min-height: 330px; display: flex; flex-direction: column; justify-content: end; background: linear-gradient(160deg, #fff, #f1f7f2); }
.trust-panel span { color: var(--grass); font-weight: 800; }
.trust-panel strong { font-size: 2rem; color: var(--dark); margin: 12px 0; }

.services { background: var(--soft); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.service-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  min-height: 210px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover, .machine-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 8px; background: #e5f4e8; color: var(--grass); font-size: 1.35rem; margin-bottom: 24px; }

.machines { background: #fff; }
.machine-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.machine-card { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: white; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.machine-card img { width: 100%; height: 430px; object-fit: cover; object-position: center; }
.machine-card div { padding: 24px; }
.machine-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 22px;
  padding: 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0f5132, #2e7d32);
  color: white;
  box-shadow: var(--shadow);
}
.machine-cta span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.machine-cta strong { font-size: 1.35rem; }
.machine-cta .btn { background: white; color: var(--dark); }

.gallery { background: var(--dark); }
.gallery h2 { color: white; }
.gallery .eyebrow { color: #d7ffd9; background: rgba(255,255,255,0.12); }
.gallery-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 0.8fr; grid-auto-rows: 260px; gap: 16px; }
.gallery-item {
  position: relative;
  overflow: hidden;
  border: 0;
  padding: 0;
  border-radius: 8px;
  cursor: pointer;
  background: #092d1d;
}
.gallery-item:first-child { grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease, opacity 0.45s ease; }
.gallery-item span { position: absolute; left: 18px; bottom: 18px; color: white; font-weight: 900; background: rgba(15, 81, 50, 0.86); padding: 10px 12px; border-radius: 6px; }
.gallery-item:hover img { transform: scale(1.06); opacity: 0.78; }

.features { position: relative; overflow: hidden; }
.features-bg { position: absolute; inset: 0; background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.95)), url("assets/grama-comercial.png") center/cover fixed; }
.features > *:not(.features-bg) { position: relative; }
.feature-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.feature-list span { background: white; border: 1px solid var(--line); border-radius: 8px; padding: 18px; font-weight: 800; color: var(--dark); }

.clients { background: white; overflow: hidden; }
.client-carousel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f7faf8);
  box-shadow: var(--shadow);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.client-track {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  padding: 32px 18px;
  animation: clientScroll 34s linear infinite;
}
.client-carousel:hover .client-track { animation-play-state: paused; }
.client-logo {
  display: grid;
  place-items: center;
  width: 220px;
  height: 190px;
  flex: 0 0 auto;
  padding: 18px 20px 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.client-logo img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 142px;
  object-fit: contain;
}
@keyframes clientScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.map-section { background: var(--soft); }
.map-frame { width: 100%; min-height: 420px; border: 0; border-radius: 8px; box-shadow: var(--shadow); }
.contact-info { display: grid; gap: 14px; }
.contact-info a { color: var(--dark); font-weight: 800; }
.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 28px rgba(11, 53, 32, 0.08);
}
.instagram-link svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #e1306c;
  stroke-width: 1.8;
}
.quote-form { display: grid; gap: 14px; }
label { display: grid; gap: 7px; color: var(--dark); font-weight: 800; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 6px; min-height: 48px; padding: 12px 14px; font: inherit; color: var(--ink); background: #fff; }
textarea { resize: vertical; }

.footer { display: grid; grid-template-columns: 150px 1fr auto auto; gap: 22px; align-items: center; padding: 34px 7vw; background: #071f14; color: white; }
.footer img { width: 140px; background: white; border-radius: 8px; padding: 8px; }
.footer span, .footer small { display: block; color: rgba(255,255,255,0.72); }
.footer a { display: block; color: white; font-weight: 800; margin: 3px 0; }
.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 30; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: #25d366; color: white; font-size: 1.8rem; box-shadow: 0 18px 40px rgba(0,0,0,0.24); }

.lightbox { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; padding: 28px; background: rgba(3, 19, 12, 0.88); }
.lightbox.open { display: grid; }
.lightbox img { max-height: 86vh; border-radius: 8px; box-shadow: var(--shadow); }
.lightbox button { position: fixed; right: 24px; top: 20px; border: 0; background: white; color: var(--dark); width: 42px; height: 42px; border-radius: 50%; font-size: 1.8rem; cursor: pointer; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .site-header {
    top: max(10px, env(safe-area-inset-top));
    right: 10px;
    bottom: auto;
    left: 10px;
    width: auto;
    height: auto;
  }
  .brand span { display: none; }
  .menu-toggle { display: block; }
  .nav-links { position: absolute; top: calc(100% + 10px); left: 0; right: 0; display: none; flex-direction: column; padding: 18px; background: white; border-radius: 8px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .hero-bg, .features-bg { background-attachment: scroll; }
  .intro, .map-section, .contact { grid-template-columns: 1fr; }
  .service-grid, .machine-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client-logo { width: 188px; height: 168px; padding-bottom: 24px; }
  .client-logo img { max-height: 124px; }
  .footer { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 72px 22px; }
  .hero { min-height: 92vh; padding: 118px 22px 48px; }
  .hero-actions, .btn { width: 100%; }
  .hero-metrics { grid-template-columns: auto 1fr; }
  .service-grid, .machine-grid, .gallery-grid, .feature-list { grid-template-columns: 1fr; }
  .machine-cta { align-items: stretch; flex-direction: column; }
  .gallery-grid { grid-auto-rows: 240px; }
  .gallery-item:first-child { grid-row: span 1; }
  .machine-card img { height: 360px; }
}

