/* ===== TOKENS ===== */
:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --surface-alt: #edeae3;
  --text: #1a2634;
  --muted: #5e6d78;
  --line: #d6d0c5;
  --accent: #b3531a;
  --accent-hover: #9a4516;
  --accent-light: rgba(179, 83, 26, 0.08);
  --accent-2: #0e4d7a;
  --accent-2-light: rgba(14, 77, 122, 0.08);
  --ink-dark: #0f1a22;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 2px 12px rgba(15, 26, 34, 0.06);
  --shadow-lg: 0 20px 50px rgba(15, 26, 34, 0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
html, body { margin: 0; padding: 0; }

body {
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  font-family: Sora, "Segoe UI", sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; margin: 0; padding: 0; }

.container {
  width: min(1200px, 90vw);
  margin: 0 auto;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 12px 0;
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(15, 26, 34, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 8px 0;
}

.nav-wrap {
  min-height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(15, 26, 34, 0.55);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.35rem 0.6rem 0.35rem 0.5rem;
  transition: background var(--transition), border-color var(--transition);
}

.site-header.scrolled .nav-wrap {
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: Sora, sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-left: auto;
}

.nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  font-size: 0.85rem;
  transition: color var(--transition);
  white-space: nowrap;
}

.nav a:hover { color: #fff; }

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  margin-left: 0.5rem;
  border: none;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  padding: 0.5rem 1rem;
  background: #25d366;
  font-weight: 600;
  font-size: 0.82rem;
  transition: background var(--transition), transform var(--transition);
}

.btn-nav:hover {
  background: #1fb855;
  transform: translateY(-1px);
}

/* Hamburger */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  margin-left: auto;
  padding: 0;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger { position: relative; }

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

.nav-toggle.active .hamburger { background: transparent; }
.nav-toggle.active .hamburger::before { transform: rotate(45deg); top: 0; }
.nav-toggle.active .hamburger::after { transform: rotate(-45deg); top: 0; }

/* ===== BUTTONS ===== */
.btn-solid,
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
}

.btn-solid {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-solid:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(179, 83, 26, 0.25);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  background: transparent;
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    url("./images/hero-bg.jpg") center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(10, 18, 26, 0.82) 0%, rgba(10, 18, 26, 0.5) 50%, rgba(10, 18, 26, 0.7) 100%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  padding: 140px 0 80px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy { color: #fff; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.8rem;
}

.eyebrow.dark { color: var(--accent-2); }

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.08;
  max-width: 16ch;
  font-weight: 800;
}

.hero-sub {
  margin-top: 1.2rem;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.02rem;
  line-height: 1.6;
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.hero-chips {
  margin-top: 1.8rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hero-chips li {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.76rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
}

/* Hero card */
.hero-card {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 1.6rem;
  box-shadow: var(--shadow-lg);
}

.hero-card h2 { font-size: 1.2rem; color: var(--text); }
.hero-card > p { margin-top: 0.3rem; color: var(--muted); font-size: 0.88rem; }

.hero-card form { margin-top: 1rem; display: grid; gap: 0.75rem; }
.hero-card label { display: grid; gap: 0.25rem; }
.hero-card label span { font-size: 0.8rem; font-weight: 600; color: var(--text); }

.hero-card input,
.hero-card select {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  padding: 0.6rem 0.7rem;
  font: inherit;
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.hero-card input:focus,
.hero-card select:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px var(--accent-2-light);
}

.hero-card button {
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.7rem 1rem;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.hero-card button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.hero-card-tags { margin-top: 0.8rem; display: flex; gap: 0.35rem; flex-wrap: wrap; }

.hero-card-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.2rem 0.55rem;
}

/* ===== TRUST ===== */
.trust { padding: 4rem 0; }

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.trust-intro h2 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); max-width: 18ch; }

.trust-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }

.trust-stats article {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.2rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.trust-stats article:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }

.trust-stats strong {
  font-family: Sora, sans-serif;
  color: var(--accent-2);
  font-size: 1.6rem;
  display: block;
}

.trust-stats span { color: var(--muted); font-size: 0.82rem; margin-top: 0.2rem; display: block; }

/* ===== SERVICES ===== */
.services { padding: 5rem 0; background: var(--surface-alt); }

.section-head { margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); }
.section-sub { color: var(--muted); margin-top: 0.5rem; max-width: 55ch; font-size: 0.95rem; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

.service-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }

.service-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  transition: background var(--transition), color var(--transition);
}

.service-card:hover .service-icon { background: var(--accent); color: #fff; }
.service-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.service-card p { color: var(--muted); font-size: 0.88rem; line-height: 1.55; }

/* ===== GEORREF DESTAQUE ===== */
.georref {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--ink-dark) 0%, #162b3d 100%);
  color: #fff;
}

.georref-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.georref .eyebrow { color: rgba(255, 255, 255, 0.5); }
.georref h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); max-width: 22ch; }
.georref-copy > p { margin-top: 1rem; color: rgba(255, 255, 255, 0.78); max-width: 48ch; line-height: 1.65; }

.georref-benefits { margin-top: 1.5rem; display: grid; gap: 0.7rem; }

.georref-benefits li {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.92rem; color: rgba(255, 255, 255, 0.9);
}

.georref-benefits svg { flex-shrink: 0; }
.georref .btn-solid { margin-top: 1.8rem; }

.georref-image {
  border-radius: 20px;
  min-height: 380px;
  background:
    linear-gradient(rgba(10, 18, 26, 0.15), rgba(10, 18, 26, 0.25)),
    url("./images/georref.jpg") center / cover no-repeat;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* ===== METHOD ===== */
.method { padding: 5rem 0; background: var(--surface-alt); }
.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

.method-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.4rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.method-grid article:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }

.step-num {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700; font-family: Sora, sans-serif;
}

.method-grid h3 { margin-top: 0.8rem; font-size: 1rem; }
.method-grid p { margin-top: 0.35rem; color: var(--muted); font-size: 0.86rem; line-height: 1.5; }

/* ===== PROJECTS ===== */
.projects { padding: 5rem 0; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

.project-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.project-image {
  height: 210px;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image { transform: scale(1.04); }

.project-01 {
  background-image:
    linear-gradient(rgba(15, 22, 28, 0.1), rgba(15, 22, 28, 0.2)),
    url("./images/case-obra.jpg");
}

.project-02 {
  background-image:
    linear-gradient(rgba(15, 22, 28, 0.1), rgba(15, 22, 28, 0.2)),
    url("./images/case-mineracao.jpg");
}

.project-03 {
  background-image:
    linear-gradient(rgba(15, 22, 28, 0.1), rgba(15, 22, 28, 0.2)),
    url("./images/case-rural.jpg");
}

.project-body { padding: 1.2rem; }

.project-tag {
  display: inline-block;
  background: var(--accent-2-light);
  color: var(--accent-2);
  font-size: 0.72rem; font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.project-body h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.project-body p { color: var(--muted); font-size: 0.88rem; line-height: 1.5; }

/* ===== DELIVERABLES ===== */
.deliverables { padding: 4rem 0; background: var(--surface-alt); }

.deliverables-wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2rem; align-items: center;
}

.deliverables-wrap h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.deliverables-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }

.del-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem;
  transition: transform var(--transition);
}

.del-item:hover { transform: translateY(-2px); }
.del-item strong { display: block; font-family: Sora, sans-serif; font-size: 0.9rem; color: var(--accent-2); margin-bottom: 0.15rem; }
.del-item span { color: var(--muted); font-size: 0.82rem; }

/* ===== FAQ ===== */
.faq { padding: 5rem 0; }
.faq-list { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--line); }

.faq-item summary {
  padding: 1.1rem 0;
  font-weight: 600; font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  transition: color var(--transition);
}

.faq-item summary:hover { color: var(--accent); }

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem; font-weight: 300;
  color: var(--muted);
  transition: transform 0.3s;
  flex-shrink: 0; margin-left: 1rem;
}

.faq-item[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item p {
  padding: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.9rem; line-height: 1.65;
  max-width: 60ch;
}

/* ===== CTA ===== */
.cta {
  padding: 5rem 0;
  background:
    radial-gradient(800px 300px at 10% 100%, rgba(14, 77, 122, 0.12), transparent 55%),
    radial-gradient(600px 300px at 90% 0, rgba(179, 83, 26, 0.12), transparent 55%),
    var(--bg);
}

.cta-wrap {
  display: grid; grid-template-columns: 1.2fr auto;
  gap: 2rem; align-items: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2.5rem;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.cta-wrap h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); max-width: 28ch; }
.cta-wrap .cta-copy > p { color: var(--muted); margin-top: 0.6rem; max-width: 50ch; }

.cta-actions { display: flex; flex-direction: column; gap: 0.6rem; }
.cta-actions .btn-solid { text-align: center; }
.cta-actions .btn-outline { color: #25d366; border-color: #25d366; text-align: center; justify-content: center; }
.cta-actions .btn-outline:hover { background: rgba(37, 211, 102, 0.08); }

/* ===== FOOTER ===== */
.site-footer { background: var(--ink-dark); color: rgba(255, 255, 255, 0.85); padding: 2.5rem 0 1.5rem; }

.footer-grid {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 2rem; align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand { display: flex; align-items: center; gap: 0.7rem; }
.footer-brand img { border-radius: 8px; background: #fff; padding: 2px; }
.footer-brand strong { display: block; font-family: Sora, sans-serif; font-size: 1rem; }
.footer-brand small { color: rgba(255, 255, 255, 0.5); font-size: 0.72rem; }

.footer-links { display: flex; gap: 1.2rem; justify-self: center; }
.footer-links a { text-decoration: none; font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); transition: color var(--transition); }
.footer-links a:hover { color: #fff; }

.footer-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 0.2rem; }
.footer-contact a { text-decoration: none; font-size: 0.82rem; color: rgba(255, 255, 255, 0.6); transition: color var(--transition); }
.footer-contact a:hover { color: #25d366; }

.footer-bottom { display: flex; justify-content: space-between; padding-top: 1rem; font-size: 0.78rem; color: rgba(255, 255, 255, 0.4); }

/* ===== WHATSAPP FLUTUANTE ===== */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 99;
  width: 56px; height: 56px; border-radius: 999px;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: pulse-wa 2.5s ease-in-out infinite;
}

.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5); }

@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.6), 0 0 0 8px rgba(37, 211, 102, 0.1); }
}

/* ===== REVEAL ANIMATION ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-card { max-width: 440px; }
  .trust-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .method-grid { grid-template-columns: 1fr 1fr; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .georref-grid { grid-template-columns: 1fr; }
  .georref-image { min-height: 280px; }
  .deliverables-wrap { grid-template-columns: 1fr; }
  .cta-wrap { grid-template-columns: 1fr; text-align: center; }
  .cta-actions { flex-direction: row; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-links { justify-self: center; }
  .footer-contact { align-items: center; }
  .footer-bottom { flex-direction: column; align-items: center; gap: 0.3rem; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    right: 0.5rem;
    top: 70px;
    background: rgba(15, 26, 34, 0.97);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
    min-width: 200px;
    flex-direction: column;
    gap: 0.8rem;
    box-shadow: var(--shadow-lg);
  }
  .nav.open { display: flex; }
  .btn-nav { display: none; }
  .hero-grid { padding: 120px 0 60px; }
  .hero h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); }
  .service-grid { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .trust-stats { grid-template-columns: 1fr; }
  .deliverables-list { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: column; }
  .services, .method, .projects, .faq, .cta, .georref { padding: 3.5rem 0; }
}
