/* =================================================================
   ZENTRA ENGENHARIA | Landing Pages (M² Black)
   Design tokens extraídos da identidade visual oficial:
     #FF6923  laranja primário Zentra
     #E75F1E  laranja hover/secundário
     #2A2826  charcoal warm (texto da wordmark)
     #1A1816  near-black warm (hero/footer)
     #FAF6F2  cream warm para fundos claros
   Base estrutural inspirada na landing Moura Engenharia (M² Black).
   ================================================================= */

:root {
  /* Paleta */
  --orange-700: #C4471A;
  --orange-600: #E75F1E;       /* hover */
  --orange-500: #FF6923;       /* primário Zentra */
  --orange-400: #FF8C57;
  --orange-300: #FFB48A;
  --orange-200: #FFD9C4;       /* peach */
  --orange-100: #FFEEE2;

  --ink-1000: #0E0C0B;
  --ink-950:  #15110F;         /* footer */
  --ink-900:  #1A1816;         /* hero/dark */
  --ink-800:  #2A2826;         /* charcoal — cor do wordmark */
  --ink-700:  #3A3633;
  --ink-500:  #5A5450;
  --ink-400:  #807870;
  --ink-300:  #B5ADA5;
  --ink-200:  #E0DBD5;

  --cream-50:  #FAF6F2;        /* fundo claro */
  --cream-100: #F2EBE2;
  --white: #ffffff;

  --line:      rgba(255,255,255,0.10);
  --line-dark: rgba(26,24,22,0.10);

  /* Tipografia */
  --font-display: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Escala */
  --fs-eyebrow: 0.75rem;
  --fs-body:    1rem;
  --fs-lead:    1.125rem;
  --fs-h3:      clamp(1.25rem, 1.05rem + 0.7vw, 1.55rem);
  --fs-h2:      clamp(1.7rem, 1.15rem + 2.0vw, 2.55rem);
  --fs-h1:      clamp(2rem, 1.25rem + 3.2vw, 3.65rem);

  --radius:     16px;
  --radius-sm:  10px;
  --radius-pill: 999px;
  --container:  1200px;
  --gutter:     clamp(20px, 4vw, 48px);

  --shadow-lg:  0 30px 60px -30px rgba(20,12,6,0.45);
  --shadow-md:  0 18px 40px -22px rgba(20,12,6,0.35);
  --ease:       cubic-bezier(.2,.7,.2,1);
}

/* =================================================================
   RESET & BASE                                                       */
*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-900);
  background: var(--cream-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; height: auto; }
img { border: 0; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--orange-500); color: #fff; }

:focus-visible {
  outline: 2px solid var(--orange-500);
  outline-offset: 3px;
  border-radius: 6px;
}

/* =================================================================
   LAYOUT HELPERS                                                     */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--orange-600);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: currentColor;
  flex-shrink: 0;
}
.eyebrow--dark { color: var(--orange-500); }
.eyebrow--light { color: var(--orange-400); }

.section-title {
  font-size: var(--fs-h2);
  max-width: 26ch;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.section-title .accent { color: var(--orange-500); }
.section-title--center {
  margin-inline: auto;
  text-align: center;
}

.section-lead {
  font-size: var(--fs-lead);
  max-width: 64ch;
  color: var(--ink-500);
  margin-bottom: 1.4rem;
  line-height: 1.55;
}
.section-lead--center { text-align: center; margin-inline: auto; }

/* =================================================================
   BUTTONS                                                            */
.btn {
  --btn-bg: var(--orange-500);
  --btn-fg: #fff;
  --btn-bd: var(--orange-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 0.95rem;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1.5px solid var(--btn-bd);
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease);
  will-change: transform;
  text-align: center;
  text-decoration: none;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -18px rgba(255,105,35,0.55);
  --btn-bg: var(--orange-600);
  --btn-bd: var(--orange-600);
}
.btn--accent {
  --btn-bg: var(--orange-500);
  --btn-bd: var(--orange-500);
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bd: rgba(255,255,255,0.4);
}
.btn--ghost:hover {
  --btn-bg: rgba(255,255,255,0.08);
  --btn-bd: rgba(255,255,255,0.7);
  box-shadow: none;
}
.btn--lg { padding: 18px 34px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

/* =================================================================
   PAGE BRAND (logo no hero — sem header)
   Padrão Moura: dois posicionamentos para dois breakpoints.
   - .page-brand--desktop é primeiro filho de .hero__copy, alinhado
     com o eyebrow + h1 (mesma coluna, esquerda).
   - .page-brand--mobile vive dentro do .hero (fora do .hero__inner),
     centralizado no topo da página.                                  */
.page-brand--desktop {
  display: flex;
  margin-bottom: clamp(14px, 2.4vh, 32px);
}
.page-brand--desktop img {
  width: clamp(170px, min(15vw, 18vh), 240px);
  height: auto;
  filter: drop-shadow(0 2px 16px rgba(0,0,0,0.55))
          drop-shadow(0 1px 3px rgba(0,0,0,0.45));
}
.page-brand--mobile {
  display: none;
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  z-index: 10;
  justify-content: center;
  pointer-events: none;
}
.page-brand--mobile img {
  width: clamp(140px, min(46vw, 22vh), 220px);
  height: auto;
  filter: drop-shadow(0 2px 16px rgba(0,0,0,0.55))
          drop-shadow(0 1px 3px rgba(0,0,0,0.45));
}
@media (max-width: 979px) {
  .page-brand--desktop { display: none; }
  .page-brand--mobile  { display: flex; }
}

/* =================================================================
   HERO                                                               */
.hero {
  position: relative;
  background: var(--ink-900);
  color: #fff;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.45;
  filter: saturate(1.05) contrast(1.05);
  animation: heroKenBurns 22s ease-out forwards;
  will-change: transform;
}
@keyframes heroKenBurns {
  0%   { transform: scale(1.08) translate3d(0, 0, 0); }
  100% { transform: scale(1.0)  translate3d(0, -1%, 0); }
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(26,24,22,0.55) 0%, rgba(26,24,22,0.35) 30%, rgba(26,24,22,0.85) 100%),
    radial-gradient(ellipse at 80% 10%, rgba(255,105,35,0.25) 0%, transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(255,105,35,0.15) 0%, transparent 50%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  align-items: center;
  /* Desktop: logo lives inside .hero__copy, so we don't need extra
     header offset. Mobile: logo is absolute at top, so we add room. */
  padding: clamp(60px, 9vh, 120px) 0 clamp(60px, 8vh, 120px);
}
@media (max-width: 979px) {
  .hero__inner {
    padding-top: clamp(160px, 26vh, 240px);
  }
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}
@media (min-width: 980px) {
  .hero__grid { grid-template-columns: 1.4fr 0.85fr; }
}
.hero__copy { max-width: 740px; }
.hero__headline {
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: clamp(0.85rem, 2vh, 1.4rem);
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0,0,0,0.4);
}
.hero__headline .accent { color: var(--orange-500); }
.hero__sub {
  font-size: clamp(1rem, 0.92rem + 0.35vw, 1.18rem);
  max-width: 56ch;
  color: rgba(255,255,255,0.84);
  margin-bottom: clamp(1.4rem, 3vh, 2rem);
  line-height: 1.6;
  font-weight: 400;
}
.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero video frame (small vertical 9:16 video) */
.hero__video {
  position: relative;
  margin-inline: auto;
  width: min(280px, 70vw);
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  overflow: hidden;
  background: var(--ink-950);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 30px 80px -20px rgba(0,0,0,0.6),
    0 0 0 8px rgba(255,105,35,0.08);
}
.hero__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.hero__video.is-playing .hero__video-overlay { opacity: 0; }
.hero__video-play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,105,35,0.95);
  border: 2px solid #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.hero__video-play svg { width: 22px; height: 22px; fill: #fff; margin-left: 3px; }
.hero__video-play:hover { transform: scale(1.06); background: var(--orange-500); }
.hero__video-label {
  position: absolute;
  left: 16px;
  bottom: 14px;
  right: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
  pointer-events: none;
  text-align: center;
}

@media (max-width: 979px) {
  .hero__copy { text-align: center; max-width: none; margin-inline: auto; }
  .hero__sub { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__cta .btn { flex: 1 1 auto; min-width: 0; }
  .hero .eyebrow { margin-inline: auto; }
}
@media (max-width: 560px) {
  .hero__inner { padding-top: clamp(100px, 18vh, 140px); }
  .hero__cta .btn { width: 100%; padding: 14px 22px; }
  .hero__video { width: min(220px, 70vw); }
}

/* =================================================================
   PROOF BAR                                                          */
.proof {
  background: var(--ink-900);
  color: #fff;
  padding: 44px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 1;
}
.proof__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 20px;
}
@media (min-width: 800px) {
  .proof__grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .proof__grid--3 { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}
.proof__item {
  text-align: center;
  padding: 8px;
  position: relative;
}
@media (min-width: 800px) {
  .proof__item + .proof__item::before {
    content: '';
    position: absolute;
    top: 18%;
    bottom: 18%;
    left: -10px;
    width: 1px;
    background: rgba(255,255,255,0.08);
  }
}
.proof__num {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
  font-weight: 700;
  color: var(--orange-500);
  line-height: 1;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
  font-variant-numeric: tabular-nums;
}
.proof__num small {
  font-size: 0.45em;
  color: var(--orange-400);
  margin-left: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
/* Variant for non-numeric stats (e.g., "Por fases", "Método validado")
   — slightly smaller, no baseline alignment quirks                  */
.proof__num--text {
  font-size: clamp(1.4rem, 0.95rem + 1.6vw, 2rem);
  letter-spacing: -0.015em;
  line-height: 1.05;
}
.proof__label {
  margin-top: 12px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.78);
  font-weight: 500;
  line-height: 1.45;
}

/* =================================================================
   PILLARS (4 diferenciais)                                           */
.pillars {
  background: var(--cream-50);
  color: var(--ink-900);
  padding: clamp(48px, 5.5vw, 80px) 0;
  position: relative;
  overflow: hidden;
}
.pillars::before {
  content: '';
  position: absolute;
  right: -180px;
  top: -180px;
  width: 500px;
  height: 500px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  pointer-events: none;
}
.pillars::after {
  content: '';
  position: absolute;
  left: -120px;
  bottom: -120px;
  width: 320px;
  height: 320px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  pointer-events: none;
}
.pillars__head { max-width: 720px; }

.pillars__grid {
  display: grid;
  gap: 18px;
  margin-top: 1.8rem;
  grid-template-columns: 1fr;
  position: relative;
}
@media (min-width: 720px) { .pillars__grid { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
@media (min-width: 1080px) { .pillars__grid { grid-template-columns: repeat(4, 1fr); } }

.pillar {
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  position: relative;
}
.pillar:hover {
  transform: translateY(-4px);
  border-color: rgba(255,105,35,0.5);
  box-shadow: var(--shadow-md);
}
.pillar__icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 1.4rem;
  background: linear-gradient(135deg, rgba(255,105,35,0.12), rgba(255,140,87,0.05));
  border: 1px solid rgba(255,105,35,0.25);
  color: var(--orange-500);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.pillar__icon svg { width: 32px; height: 32px; }
.pillar:hover .pillar__icon {
  transform: translateY(-2px) scale(1.04);
  background: linear-gradient(135deg, rgba(255,105,35,0.22), rgba(255,140,87,0.10));
  border-color: rgba(255,105,35,0.5);
  color: var(--orange-600);
}
.pillar__title {
  font-size: var(--fs-h3);
  margin-bottom: 0.7rem;
  color: var(--ink-900);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.pillar__text {
  color: var(--ink-500);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* =================================================================
   CTA STRIP (between sections)                                        */
.cta-strip {
  text-align: center;
  padding: clamp(36px, 4.5vw, 60px) 0;
  background: var(--cream-50);
}
.cta-strip--dark {
  background: var(--ink-900);
  color: #fff;
}
.cta-strip__title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 0.95rem + 1vw, 1.55rem);
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 1.2rem;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.cta-strip--dark .cta-strip__title { color: #fff; }
.cta-strip__title .accent { color: var(--orange-500); }

/* =================================================================
   GALLERY (obras)                                                    */
.gallery {
  background: var(--ink-900);
  color: #fff;
  padding: clamp(48px, 5.5vw, 80px) 0;
  position: relative;
  overflow: hidden;
}
.gallery::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(255,105,35,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 0% 100%, rgba(255,105,35,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.gallery__inner { position: relative; z-index: 1; }
.gallery .section-title { color: #fff; }
.gallery .section-lead { color: rgba(255,255,255,0.76); }

.gallery__projects {
  display: grid;
  gap: clamp(32px, 4vw, 52px);
  margin-top: 1.8rem;
}
.gallery__cta {
  margin-top: clamp(28px, 4vw, 44px);
  text-align: center;
}
.project__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
.project__title {
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.85rem);
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.project__meta {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--orange-400);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.project__grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) { .project__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .project__grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

.project__item {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  position: relative;
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--ink-950);
}
.project__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.5s var(--ease);
  filter: saturate(0.95) brightness(0.97);
}
.project__item:hover img {
  transform: scale(1.05);
  filter: saturate(1) brightness(1);
}
.project__item--feature {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: 1 / 1;
}
@media (max-width: 719px) {
  .project__item--feature { grid-column: span 2; aspect-ratio: 4 / 3; }
}

/* Single-list variant for residencial gallery (no project grouping) */
.gallery--mosaic .project__grid {
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) {
  .gallery--mosaic .project__grid { grid-template-columns: repeat(4, 1fr); }
}

/* =================================================================
   FAQ CARDS                                                          */
.faq {
  background: var(--cream-50);
  padding: clamp(44px, 5vw, 76px) 0;
  position: relative;
}
.faq__head { max-width: 720px; margin-inline: auto; text-align: center; }
.faq__head .eyebrow { justify-content: center; }
.faq__head .section-title { margin-inline: auto; }

.faq__grid {
  display: grid;
  gap: 18px;
  margin-top: 1.8rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .faq__grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .faq__grid--single { grid-template-columns: minmax(0, 720px); justify-content: center; }
}

.faq__card {
  background: var(--ink-900);
  border: 1px solid var(--ink-800);
  border-radius: var(--radius);
  padding: 36px 32px;
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.faq__card:hover { transform: translateY(-3px); border-color: var(--orange-500); }
.faq__card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 100% 0%, rgba(255,105,35,0.18) 0%, transparent 55%);
  pointer-events: none;
}
.faq__card--accent {
  background: linear-gradient(165deg, var(--orange-500) 0%, var(--orange-700) 100%);
  border-color: var(--orange-500);
}
.faq__card--accent::after {
  background: radial-gradient(ellipse at 0% 100%, rgba(0,0,0,0.20) 0%, transparent 60%);
}
.faq__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 1;
}
.faq__icon svg { width: 20px; height: 20px; color: #fff; }
.faq__card--accent .faq__icon { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.35); }
.faq__q {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-400);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.faq__card--accent .faq__q { color: rgba(255,255,255,0.95); }
.faq__a {
  font-size: 1.06rem;
  font-weight: 500;
  line-height: 1.55;
  color: #fff;
  letter-spacing: -0.005em;
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
}

/* =================================================================
   SERVICES (Execução + Projetos)                                     */
.services {
  background: var(--cream-50);
  padding: clamp(44px, 5vw, 76px) 0;
}
.services__head { text-align: center; max-width: 720px; margin-inline: auto; }
.services__head .eyebrow { justify-content: center; }
.services__head .section-title { margin-inline: auto; }
.services__grid {
  margin-top: 1.6rem;
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}
.service {
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 38px 32px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(255,105,35,0.4); }
.service__icon {
  width: 54px; height: 54px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  display: grid;
  place-items: center;
  color: #fff;
  margin-bottom: 1.2rem;
  box-shadow: 0 16px 30px -14px rgba(255,105,35,0.6);
}
.service__icon svg { width: 28px; height: 28px; }
.service__title {
  font-size: clamp(1.25rem, 1.05rem + 0.5vw, 1.45rem);
  margin-bottom: 0.7rem;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.015em;
}
.service__text {
  color: var(--ink-500);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* =================================================================
   ESPECIALISTAS (team)                                               */
.experts {
  background: var(--cream-50);
  color: var(--ink-900);
  padding: clamp(48px, 5.5vw, 80px) 0;
  position: relative;
  overflow: hidden;
}
.experts__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 900px) {
  .experts__inner { grid-template-columns: minmax(280px, 0.85fr) 1.15fr; }
}
.experts__photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  /* Use the photo's natural landscape ratio so both Jonio + Rebecca
     are fully framed. The orange background pattern of the source
     image keeps the section warm without forcing a portrait crop.   */
  aspect-ratio: 3 / 2;
  background: var(--orange-500);
}
.experts__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  transition: transform 0.7s var(--ease);
}
.experts__photo:hover img { transform: scale(1.025); }
.experts__copy { max-width: 580px; }
.experts__lead {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-700);
  margin-top: 1.1rem;
}
.experts__lead strong { color: var(--orange-600); font-weight: 600; }
.experts__cta { margin-top: 2rem; }

/* =================================================================
   DEPOIMENTOS (testimonials carousel)                                */
.testimonials {
  background: var(--ink-900);
  color: #fff;
  padding: clamp(44px, 5vw, 76px) 0;
  position: relative;
  overflow: hidden;
}
.testimonials::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 0% 30%, rgba(255,105,35,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 100% 80%, rgba(255,105,35,0.08) 0%, transparent 55%);
  pointer-events: none;
}
.testimonials__inner { position: relative; z-index: 1; }
.testimonials .section-title { color: #fff; }
.testimonials .section-lead { color: rgba(255,255,255,0.76); }

.depo-carousel {
  position: relative;
  margin-top: 1.6rem;
}
.depo-carousel__track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 24px;
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
  scrollbar-width: none;
}
.depo-carousel__track::-webkit-scrollbar { display: none; }
.depo-card {
  scroll-snap-align: center;
  flex: 0 0 280px;
  max-width: 320px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.depo-card:hover { border-color: rgba(255,105,35,0.4); transform: translateY(-3px); }
.depo-card img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}
@media (min-width: 720px) {
  .depo-card { flex-basis: 320px; }
}
.depo-carousel__nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}
.depo-carousel__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.2s var(--ease);
}
.depo-carousel__btn:hover { background: var(--orange-500); border-color: var(--orange-500); transform: scale(1.06); }
.depo-carousel__btn svg { width: 18px; height: 18px; }

/* =================================================================
   VIABILITY / FORM                                                   */
.viability {
  background: var(--ink-900);
  color: #fff;
  padding: clamp(48px, 5.5vw, 80px) 0;
  position: relative;
  overflow: hidden;
}
.viability::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(255,105,35,0.20) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 100%, rgba(255,105,35,0.12) 0%, transparent 50%);
  pointer-events: none;
}

.viability__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  position: relative;
}
@media (min-width: 980px) {
  .viability__inner {
    grid-template-columns: 1fr 1.05fr;
    gap: 80px;
    align-items: start;
  }
}
.viability .section-title { color: #fff; }
.viability .section-lead { color: rgba(255,255,255,0.78); }

.viability__checks {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}
.viability__checks li {
  padding-left: 32px;
  position: relative;
  color: rgba(255,255,255,0.92);
  font-size: 0.98rem;
}
.viability__checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--orange-500);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 13px 13px;
  background-position: center;
  background-repeat: no-repeat;
}

/* FORM */
.form {
  background: #fff;
  color: var(--ink-900);
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.2);
  position: relative;
  z-index: 1;
}
@media (min-width: 700px) { .form { padding: 44px 38px; } }

.form__title {
  font-size: clamp(1.3rem, 1.1rem + 0.5vw, 1.55rem);
  color: var(--ink-900);
  margin-bottom: 6px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.form__subtitle {
  font-size: 0.9rem;
  color: var(--ink-400);
  margin-bottom: 26px;
}
.form__steps {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-400);
}
.form__step-dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--ink-200);
  color: var(--ink-500);
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  transition: all 0.25s var(--ease);
}
.form__step-dot.is-active {
  background: var(--orange-500);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(255,105,35,0.18);
}
.form__step-dot.is-done {
  background: var(--ink-900);
  color: #fff;
}
.form__step-line {
  flex: 1;
  height: 2px;
  background: var(--ink-200);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.form__step-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--orange-500);
  width: 0;
  transition: width 0.4s var(--ease);
}
.form__step-line.is-half::after { width: 50%; }
.form__step-line.is-full::after { width: 100%; }

.form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.form__field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-700);
  letter-spacing: 0.02em;
}
.form__field input,
.form__field select,
.form__field textarea {
  height: 50px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1.5px solid #e2e2ea;
  background: #fafafb;
  font-size: 0.975rem;
  color: var(--ink-900);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
  width: 100%;
  font-family: inherit;
}
.form__field input::placeholder,
.form__field textarea::placeholder { color: var(--ink-400); }
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: 0;
  border-color: var(--orange-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,105,35,0.15);
}
.form__field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath fill='%23FF6923' d='M6 7L0 1 1.4-.4 6 4.2 10.6-.4 12 1z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 42px;
}

.form__page { display: none; }
.form__page.is-active { display: block; }

.form__nav {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.form__nav .btn { flex: 1; }
.form__back {
  --btn-bg: transparent;
  --btn-fg: var(--ink-700);
  --btn-bd: var(--ink-200);
}
.form__back:hover {
  --btn-bg: var(--ink-200);
  --btn-bd: var(--ink-300);
  box-shadow: none;
}

.form__consent {
  margin-top: 18px;
  font-size: 0.74rem;
  color: var(--ink-400);
  line-height: 1.55;
}

.form__feedback {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
}
.form__feedback--success {
  background: rgba(20,150,90,0.12);
  color: #146a3d;
  border: 1px solid rgba(20,150,90,0.3);
}
.form__feedback--error {
  background: rgba(200,50,50,0.12);
  color: #a32020;
  border: 1px solid rgba(200,50,50,0.3);
}

/* =================================================================
   FOOTER                                                             */
.site-footer {
  background: var(--ink-950);
  color: rgba(255,255,255,0.72);
  padding: 48px 0 24px;
  border-top: 1px solid var(--line);
  position: relative;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 780px) {
  .site-footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 56px;
    align-items: start;
  }
  .site-footer__grid--2 {
    grid-template-columns: 1.6fr 1fr;
    gap: 60px;
  }
}
.site-footer__logo {
  width: clamp(180px, 18vw, 240px);
  height: auto;
  margin-bottom: 22px;
  display: block;
}
.site-footer__tagline {
  color: rgba(255,255,255,0.58);
  font-size: 0.9rem;
  max-width: 42ch;
  line-height: 1.65;
}
.site-footer__col h4 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--orange-400);
  margin-bottom: 16px;
  font-weight: 700;
}
.site-footer__col ul { display: grid; gap: 12px; }
.site-footer__col a:hover { color: var(--orange-400); }

.site-footer__bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: space-between;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.44);
}
@media (min-width: 700px) { .site-footer__bottom { flex-direction: row; } }

/* =================================================================
   REVEAL ON SCROLL
   `.reveal` is inert until JS confirms IntersectionObserver works
   (avoids hidden content if JS fails or for crawlers/screenshots).   */
.reveal { opacity: 1; transform: none; }
.js-reveal-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js-reveal-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =================================================================
   PROOF NUMBER (counter animation)                                   */
.proof__num[data-count],
.proof__num [data-count] {
  font-variant-numeric: tabular-nums;
}

/* =================================================================
   REDUCED MOTION                                                     */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
