/* ===========================================================================
   TERRA — Consultoria e Análises Ambientais  ·  19 anos
   Identidade: Esmeralda + Dourado  ·  Bricolage Grotesque + Plus Jakarta Sans
   =========================================================================== */

:root {
  /* ---- Brand palette ---- */
  --green-900: #002c29;   /* verde-petróleo escuro */
  --green-800: #203939;   /* grafite esverdeado */
  --green-700: #18403c;
  --green-600: #335a65;   /* azul-petróleo apoio */
  --emerald:   #62ad9e;   /* esmeralda vibrante */
  --sage:      #5ba185;   /* verde-sálvia */
  --white:     #ffffff;

  --gold:      #cdb67e;   /* champagne — acento comemorativo / CTA primário */
  --gold-600:  #b89e63;
  --gold-300:  #e8d8ad;

  /* ---- Derived neutrals ---- */
  --paper:     #f5f8f6;
  --paper-2:   #eaf1ee;
  --ink:       #16302d;
  --ink-soft:  #43615c;
  --ink-faint: #6f8a85;
  --line:      #dde8e4;
  --line-soft: #e8efec;

  --paper-dim: color-mix(in srgb, #ffffff 70%, transparent);

  /* ---- Gradients ---- */
  --grad-hero: radial-gradient(120% 130% at 80% -10%, #1c5a52 0%, #063a35 42%, #002c29 100%);
  --grad-emerald: linear-gradient(135deg, var(--emerald) 0%, var(--sage) 100%);
  --grad-deep: linear-gradient(135deg, #063e39 0%, #002c29 100%);
  --grad-gold: linear-gradient(135deg, #e6d4a2 0%, #cdb67e 55%, #b89e63 100%);

  /* ---- Type ---- */
  --display: "Schibsted Grotesk", "Plus Jakarta Sans", system-ui, sans-serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* ---- Metrics ---- */
  --container: 1240px;
  --pad-x: clamp(20px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 132px);
  --radius: 16px;
  --radius-lg: 26px;
  --radius-xl: 36px;
  --shadow-sm: 0 4px 18px -10px rgba(0,44,41,0.30);
  --shadow-md: 0 24px 50px -28px rgba(0,44,41,0.40);
  --shadow-lg: 0 48px 90px -45px rgba(0,44,41,0.55);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-accent="amber"]   { --gold:#E6A93C; --gold-600:#d2942a; --gold-300:#f3cd86; }
html[data-accent="champagne"]{ --gold:#cdb67e; --gold-600:#b89e63; --gold-300:#e8d8ad; }
html[data-accent="copper"]  { --gold:#d98a4e; --gold-600:#c1733a; --gold-300:#f0b88c; }

/* ---- Display font options ---- */
html[data-display="schibsted"] { --display: "Schibsted Grotesk", "Plus Jakarta Sans", system-ui, sans-serif; }
html[data-display="fraunces"]  { --display: "Fraunces", Georgia, serif; }
html[data-display="space"]     { --display: "Space Grotesk", system-ui, sans-serif; }
html[data-display="hanken"]    { --display: "Hanken Grotesk", system-ui, sans-serif; }

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--green-900); }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding: var(--section-y) 0; position: relative; }
.section--paper { background: var(--paper); }
.section--paper2 { background: var(--paper-2); }
.section--deep { background: var(--grad-deep); color: var(--white); }

/* ---------- Reveal on scroll ---------- */
/* Base = ESTADO VISÍVEL (à prova de falha): se o JS não armar ou a transição
   travar (bug do Safari iOS), o conteúdo permanece visível. O estado escondido
   só é aplicado quando <html> recebe .js-reveal e o elemento ainda não entrou. */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
html.js-reveal .reveal:not(.is-in) {
  opacity: 0;
  transform: translateY(28px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js-reveal .reveal:not(.is-in) { opacity: 1; transform: none; }
}

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sage);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); border-radius: 2px; }
.eyebrow--center { justify-content: center; }
.eyebrow--gold { color: var(--gold); }
.eyebrow--paper { color: var(--gold-300); }

.h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(40px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
  margin: 0;
}
.h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin: 14px 0 0;
}
.h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(21px, 2.4vw, 27px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
}
.lede {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 22px 0 0;
  max-width: 56ch;
}
.muted { color: var(--ink-soft); }
.section-head { max-width: 720px; }
.section-head--center { max-width: 760px; margin: 0 auto; text-align: center; }
.gold-text { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  border: 1.5px solid transparent;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), background 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
.btn svg { transition: transform 0.22s var(--ease); }
.btn--gold { background: var(--grad-gold); color: var(--green-900); box-shadow: 0 14px 30px -14px rgba(205,182,126,0.6); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -16px rgba(205,182,126,0.75); }
.btn--gold:hover svg { transform: translateX(3px); }
.btn--emerald { background: var(--emerald); color: var(--white); }
.btn--emerald:hover { background: var(--sage); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--solid { background: var(--green-900); color: var(--white); }
.btn--solid:hover { background: var(--green-700); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: var(--green-900); background: var(--green-900); color: var(--white); }
.btn--outline-paper { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn--outline-paper:hover { background: var(--white); color: var(--green-900); border-color: var(--white); }
.btn--ghost-gold { background: rgba(230,169,60,0.12); color: var(--gold-300); border-color: rgba(230,169,60,0.3); }
.btn--ghost-gold:hover { background: var(--gold); color: var(--green-900); }
.btn--lg { padding: 18px 32px; font-size: 16px; }
.btn--sm { padding: 11px 18px; font-size: 13.5px; }
.btn--block { width: 100%; justify-content: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: 14.5px; color: var(--green-900);
  transition: gap 0.2s var(--ease), color 0.2s var(--ease);
}
.link-arrow svg { transition: transform 0.2s var(--ease); }
.link-arrow:hover { gap: 11px; color: var(--emerald); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; left: 22px; bottom: 22px; z-index: 1000;
  display: inline-flex; align-items: center; gap: 0;
  background: #1faa54; color: #fff;
  height: 60px; border-radius: 999px;
  padding: 0 18px;
  box-shadow: 0 18px 40px -14px rgba(31,170,84,0.7);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.wa-float:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 26px 50px -16px rgba(31,170,84,0.85); }
.wa-float svg { flex-shrink: 0; }
.wa-float__txt {
  max-width: 0; opacity: 0; white-space: nowrap; font-weight: 600; font-size: 14.5px;
  transition: max-width 0.35s var(--ease), opacity 0.25s var(--ease), margin 0.35s var(--ease);
}
.wa-float:hover .wa-float__txt { max-width: 180px; opacity: 1; margin-left: 10px; }
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(31,170,84,0.5);
  animation: waPulse 2.6s var(--ease) infinite;
}
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(31,170,84,0.45);} 70%{ box-shadow: 0 0 0 16px rgba(31,170,84,0);} 100%{ box-shadow:0 0 0 0 rgba(31,170,84,0);} }
@media (prefers-reduced-motion: reduce){ .wa-float::after{ animation: none; } }

/* ---------- Topbar ---------- */
.topbar { background: var(--green-900); color: rgba(255,255,255,0.82); font-size: 12.5px; position: relative; z-index: 60; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 40px; gap: 16px; }
.topbar__left { display: flex; align-items: center; gap: 8px; }
.topbar__left svg { color: var(--gold); }
.topbar__right { display: flex; align-items: center; gap: 16px; }
.topbar__phones { display: flex; align-items: center; gap: 14px; }
.topbar__phones a { display: inline-flex; align-items: center; gap: 6px; transition: color 0.2s; }
.topbar__phones a:hover { color: var(--gold); }
.topbar__sep { width: 1px; height: 16px; background: rgba(255,255,255,0.18); }
.topbar__social { display: flex; gap: 7px; }
.topbar__social a {
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.22);
  display: grid; place-items: center;
  transition: all 0.2s;
}
.topbar__social a:hover { background: var(--gold); border-color: var(--gold); color: var(--green-900); }
@media (max-width: 860px){ .topbar__left{ display:none; } .topbar__inner{ justify-content:center; } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 55;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px -22px rgba(0,44,41,0.4); background: rgba(255,255,255,0.96); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; height: 92px; }
.header__nav { display: flex; align-items: center; gap: 4px; }
.header__nav > a, .header__nav > .has-drop > button {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 10px 14px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; color: var(--ink-soft);
  transition: color 0.2s, background 0.2s;
}
.header__nav > a:hover, .header__nav > .has-drop > button:hover { color: var(--green-900); background: var(--paper-2); }
.header__nav > a.active { color: var(--green-900); }

.has-drop { position: relative; }
.has-drop__menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 280px; background: var(--white);
  border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-md); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.has-drop:hover .has-drop__menu, .has-drop:focus-within .has-drop__menu { opacity: 1; visibility: visible; transform: none; }
.has-drop__menu a {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px;
  transition: background 0.18s;
}
.has-drop__menu a:hover { background: var(--paper-2); }
.has-drop__ic { width: 38px; height: 38px; border-radius: 10px; background: var(--grad-emerald); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.has-drop__t { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.has-drop__d { font-size: 12.5px; color: var(--ink-faint); }
.has-drop > button svg.chev { transition: transform 0.2s; }
.has-drop:hover > button svg.chev { transform: rotate(180deg); }

.header__actions { display: flex; align-items: center; gap: 12px; }
.header__menu-btn { display: none; padding: 8px; color: var(--green-900); }

.mobile-nav { display: none; flex-direction: column; padding: 12px var(--pad-x) 26px; background: var(--white); border-top: 1px solid var(--line); }
.mobile-nav a { padding: 15px 4px; border-bottom: 1px solid var(--line-soft); font-size: 16px; font-weight: 600; }
.mobile-nav .sub { padding-left: 18px; font-weight: 500; color: var(--ink-soft); font-size: 15px; }
.mobile-nav .btn { margin-top: 18px; }

@media (max-width: 1000px) {
  .header__nav, .header__actions .btn--outline, .header__cta-wa { display: none !important; }
  .header__menu-btn { display: block; }
  .mobile-nav.open { display: flex; }
}

/* ---------- HERO ---------- */
.hero { position: relative; min-height: clamp(560px, 82svh, 820px); max-height: 100svh; display: flex; align-items: center; overflow: hidden; color: var(--white); isolation: isolate; }
.hero__photo {
  position: absolute; inset: -16% 0 0 0; height: 132%; z-index: 1;
  background: #0a2420 url(assets/hero-web.jpg?v=2) center/cover no-repeat;
  transform: translate3d(0,0,0) scale(1.12); will-change: transform;
}
.hero__bg { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(95deg, rgba(0,28,26,0.92) 0%, rgba(0,30,28,0.70) 38%, rgba(0,30,28,0.30) 70%, rgba(0,30,28,0.12) 100%); }
.hero__water {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0.5; mix-blend-mode: soft-light;
  background:
    radial-gradient(40% 30% at 20% 80%, rgba(98,173,158,0.5), transparent 70%),
    radial-gradient(30% 25% at 85% 70%, rgba(91,161,133,0.45), transparent 70%);
}
.hero__grain { position: absolute; inset: 0; z-index: 3; opacity: 0.06; pointer-events: none;
  background-image: repeating-linear-gradient(135deg, #fff 0 1px, transparent 1px 5px); }
/* desvanece a foto para o verde-escuro, fundindo com a Prova Social abaixo */
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%; z-index: 4; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,44,41,0) 0%, rgba(0,44,41,0.55) 55%, #002c29 100%); }
.hero__inner { position: relative; z-index: 5; padding: 116px var(--pad-x) 96px; width: 100%; }
.hero__badge19 {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(230,169,60,0.14); border: 1px solid rgba(230,169,60,0.35);
  color: var(--gold-300); padding: 8px 16px 8px 8px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em; margin-bottom: 26px;
}
.hero__badge19 b { background: var(--grad-gold); color: var(--green-900); border-radius: 999px; padding: 4px 11px; font-family: var(--display); font-size: 13px; }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 4.8vw, 64px); line-height: 1.02; letter-spacing: -0.03em; max-width: 17ch; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero__sub { font-size: clamp(15px, 1.25vw, 17px); line-height: 1.55; color: rgba(255,255,255,0.86); max-width: 44ch; margin: 22px 0 34px; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero__scroll { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.6); z-index: 2; }
.hero__scroll-line { width: 1px; height: 40px; background: linear-gradient(rgba(255,255,255,0.6), transparent); animation: scrollLine 2s var(--ease) infinite; transform-origin: top; }
@keyframes scrollLine { 0%{ transform: scaleY(0);} 40%{ transform: scaleY(1);} 100%{ transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 700px){ .hero__scroll{ display:none; } }

/* ---------- Wave dividers ---------- */
.wave { display: block; width: 100%; height: clamp(40px, 6vw, 90px); }
.wave-top { margin-bottom: -1px; }
.wave-bottom { margin-top: -1px; }

/* ---------- Proof strip ---------- */
.proof { background: linear-gradient(180deg, var(--green-900) 0%, #073d38 68%, #16504a 100%); color: var(--white); position: relative; z-index: 1; }
.proof__inner { padding: clamp(30px, 4vw, 52px) 0 clamp(48px, 6vw, 76px); }
.proof__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.proof__stat { text-align: center; }
.proof__num { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -0.03em; color: var(--gold); }
.proof__num span { color: var(--emerald); }
.proof__lbl { font-size: 13.5px; color: rgba(255,255,255,0.72); margin-top: 8px; }
.proof__seals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); justify-content: center; gap: 12px; margin-top: 52px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.12); max-width: 980px; margin-left: auto; margin-right: auto; }
.seal { display: flex; align-items: center; gap: 10px; padding: 11px 18px; border: 1px solid rgba(255,255,255,0.16); border-radius: 12px; background: rgba(255,255,255,0.03); transition: border-color 0.2s, background 0.2s; }
@media (max-width: 760px){ .proof__seals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px){ .proof__seals { grid-template-columns: 1fr; } }color 0.2s, background 0.2s; }
.seal:hover { border-color: rgba(230,169,60,0.5); background: rgba(230,169,60,0.06); }
.seal__ic { color: var(--emerald); }
.seal__t { font-weight: 700; font-size: 13.5px; }
.seal__d { font-size: 11.5px; color: rgba(255,255,255,0.6); }
@media (max-width: 760px){ .proof__stats{ grid-template-columns: repeat(2, 1fr); gap: 32px 16px; } }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.about__media { position: relative; }
.about__tilt {
  position: relative;
  transform-style: preserve-3d;
  perspective: 900px;
  transform: perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));
  transition: transform 0.4s var(--ease);
}
.about__tilt.is-tilting { transition: transform 0.12s ease-out; }
.about__photo {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3;
  box-shadow: var(--shadow-md);
  transform: translate3d(var(--mx,0px), var(--my,0px), 0);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.about__tilt.is-tilting .about__photo { transition: transform 0.12s ease-out, box-shadow 0.12s ease-out; box-shadow: var(--shadow-lg); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.06); }
.about__img { width: 100%; height: 100%; background-image: url(assets/equipe-web.jpg?v=2); background-size: cover; background-position: center; transform: scale(1.06); }
.about__shine {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--sx,50%) var(--sy,50%), rgba(255,255,255,0.28), transparent 60%);
  transition: opacity 0.3s var(--ease);
}
.about__tilt.is-tilting .about__shine { opacity: 1; }
.about__badge {
  position: absolute; right: -18px; bottom: -22px;
  background: var(--grad-gold); color: var(--green-900);
  border-radius: 20px; padding: 20px 24px; box-shadow: var(--shadow-md); text-align: center;
}
.about__seal {
  position: absolute; right: -26px; bottom: -26px;
  filter: drop-shadow(0 18px 34px rgba(0,44,41,0.35));
  animation: sealSpinIn 0.9s var(--ease) both;
  transform: translateZ(60px);
}
.about__seal svg { display: block; }
.about__seal-arc { fill: var(--green-900); font-family: var(--display); font-weight: 700; font-size: 12.5px; letter-spacing: 0.14em; }
.about__seal-arc--bottom { letter-spacing: 0.22em; }
.about__seal-num { font-family: var(--display); font-weight: 800; font-size: 38px; letter-spacing: -0.02em; }
.about__seal-anos { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: 0.28em; }
@keyframes sealSpinIn { from { opacity: 0; transform: rotate(-18deg) scale(0.8); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce){ .about__seal{ animation: none; } }
.about__badge b { font-family: var(--display); font-size: 40px; line-height: 1; display: block; font-weight: 700; }
.about__badge span { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.about__list { display: grid; gap: 14px; margin: 28px 0 32px; }
.about__list li { display: flex; gap: 13px; align-items: flex-start; font-size: 15.5px; }
.about__list svg { color: var(--emerald); flex-shrink: 0; margin-top: 2px; }
@media (max-width: 880px){ .about__grid{ grid-template-columns: 1fr; } .about__media{ order: -1; } }

/* ---------- Services ---------- */
.services__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 56px; }
.svc-card {
  position: relative; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 30px 32px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.svc-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-gold); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.svc-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.svc-card:hover::before { transform: scaleX(1); }
.svc-card__ic { width: 60px; height: 60px; border-radius: 18px; background: var(--grad-emerald); color: #fff; display: grid; place-items: center; margin-bottom: 24px; box-shadow: 0 14px 28px -14px rgba(98,173,158,0.8); transition: transform 0.3s var(--ease); }
.svc-card:hover .svc-card__ic { transform: scale(1.08) rotate(-4deg); }
.svc-card__n { position: absolute; top: 28px; right: 30px; font-family: var(--display); font-size: 15px; color: var(--line); font-weight: 700; }
.svc-card h3 { margin-bottom: 12px; }
.svc-card p { color: var(--ink-soft); font-size: 15px; flex: 1; margin: 0 0 18px; }
.svc-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.svc-card__actions { display: flex; flex-direction: column; gap: 10px; }
.svc-card__tags span { font-size: 12px; font-weight: 500; color: var(--green-600); background: var(--paper-2); padding: 5px 11px; border-radius: 999px; }
@media (max-width: 920px){ .services__grid{ grid-template-columns: 1fr; } }

/* ---------- Laudos strip ---------- */
.laudos { background: var(--grad-deep); color: var(--white); border-radius: var(--radius-xl); padding: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: center; position: relative; overflow: hidden; }
.laudos::after { content: ""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(98,173,158,0.4), transparent 65%); pointer-events: none; }
.laudos__ic { width: 60px; height: 60px; border-radius: 16px; background: rgba(230,169,60,0.16); color: var(--gold); display: grid; place-items: center; margin-bottom: 22px; }
.laudos h2 { color: #fff; }
.laudos p { color: rgba(255,255,255,0.8); margin: 14px 0 0; max-width: 52ch; }
.laudos__actions { display: flex; flex-direction: column; gap: 12px; position: relative; }
@media (max-width: 820px){ .laudos{ grid-template-columns: 1fr; } .laudos__actions{ flex-direction: row; flex-wrap: wrap; } }

/* ---------- Catálogo ---------- */
.catalog__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.prod-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.prod-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.prod-card__media { position: relative; aspect-ratio: 3/2; overflow: hidden; }
.prod-card__media::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(160deg, rgba(31,82,68,0.42) 0%, rgba(0,44,41,0.40) 100%); }
.prod-card__media .photo-slot { width: 100%; height: 100%; border-radius: 0; }
.prod-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s var(--ease); }
.prod-card:hover .prod-card__media img { transform: scale(1.06); }
.prod-card__tag { position: absolute; top: 14px; left: 14px; z-index: 2; background: rgba(255,255,255,0.92); color: var(--green-900); font-size: 11.5px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.prod-card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.prod-card__body h3 { font-size: 21px; margin-bottom: 8px; }
.prod-card__body p { font-size: 14px; color: var(--ink-soft); margin: 0 0 20px; flex: 1; }
.prod-card .btn { margin-top: auto; }
@media (max-width: 920px){ .catalog__grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px){ .catalog__grid{ grid-template-columns: 1fr; } }

/* ---------- Photo slot ---------- */
.photo-slot { position: relative; width: 100%; border-radius: var(--radius-lg); overflow: hidden; isolation: isolate; color: #fff; background: var(--grad-emerald); }
.photo-slot--water { background: linear-gradient(135deg, #2f7d8f, #0c4a4a); }
.photo-slot--earth { background: linear-gradient(135deg, #7d6a3f, #3a3320); }
.photo-slot--deep { background: var(--grad-deep); }
.photo-slot__stripes { position: absolute; inset: 0; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.07) 0 2px, transparent 2px 13px); }
.photo-slot__label { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; background: rgba(0,30,28,0.55); padding: 6px 11px; border-radius: 999px; backdrop-filter: blur(6px); }
.photo-slot__label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* ---------- Clientes carousel ---------- */
.clients { overflow: hidden; }
.clients__track-wrap { position: relative; margin-top: 48px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.clients__track { display: flex; gap: 18px; width: max-content; animation: clientScroll 200s linear infinite; }
.clients:hover .clients__track { animation-play-state: paused; }
.client-logo { width: 200px; height: 96px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--white); display: flex; align-items: center; justify-content: center; padding: 18px 22px; }
.client-logo img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(1); opacity: 0.62; transition: filter 0.4s var(--ease), opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.client-logo:hover img { filter: grayscale(0); opacity: 1; transform: scale(1.05); }
@keyframes clientScroll { from { transform: translateX(0);} to { transform: translateX(calc(-50% - 9px)); } }

/* ---------- Final CTA ---------- */
.final-cta { background: var(--grad-deep); color: #fff; text-align: center; position: relative; overflow: hidden; }
.final-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 100% at 50% 0%, rgba(98,173,158,0.3), transparent 60%); }
.final-cta__inner { padding: clamp(72px, 9vw, 120px) 0; position: relative; }
.final-cta h2 { color: #fff; max-width: 18ch; margin: 14px auto 0; }
.final-cta p { color: rgba(255,255,255,0.78); margin: 18px auto 36px; max-width: 50ch; font-size: 18px; }
.final-cta__ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: var(--green-800); color: rgba(255,255,255,0.72); padding: clamp(56px, 7vw, 88px) 0 28px; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer__brand p { font-size: 14px; line-height: 1.65; margin: 18px 0; max-width: 34ch; }
.footer__social { display: flex; gap: 9px; }
.footer__social a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: grid; place-items: center; transition: all 0.2s; }
.footer__social a:hover { background: var(--gold); border-color: var(--gold); color: var(--green-900); }
.footer h5 { color: #fff; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 18px; font-weight: 700; }
.footer ul { display: grid; gap: 11px; }
.footer ul a, .footer ul span { font-size: 14px; transition: color 0.2s; }
.footer ul a:hover { color: var(--gold-300); }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.footer__contact svg { color: var(--emerald); flex-shrink: 0; margin-top: 3px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 26px; font-size: 12.5px; color: rgba(255,255,255,0.5); }
@media (max-width: 920px){ .footer__top{ grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 560px){ .footer__top{ grid-template-columns: 1fr; } }

/* ---------- Logo ---------- */
.brand-logo { display: inline-block; background-size: contain; background-repeat: no-repeat; background-position: left center; flex-shrink: 0; }
.brand-logo--ink { background-image: url(assets/logo.png); }
.brand-logo--paper { background-image: url(assets/logo-white.png); }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark { flex-shrink: 0; }
.brand__name { font-family: var(--display); font-weight: 700; font-size: 23px; letter-spacing: -0.01em; line-height: 1; }
.brand__tag { font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.62; margin-top: 3px; }
