/* ==========================================================================
   CSS VARIABLES & RESET
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --color-primary: #00642f;     /* Institucional Green */
  --color-primary-dark: #004b24;
  --color-bg: #FFFFFF;          /* White */
  --color-surface: #F5F5F7;     /* Light Gray (Apple style) */
  --color-text: #1D1D1F;        /* Dark Gray (Apple style text) */
  --color-text-light: #86868B;
  --color-border: #E5E5EA;

  /* Typography */
  --font-main: 'Plus Jakarta Sans', sans-serif;

  /* Transitions & Shadows */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 120px 0;
}

.text-center { text-align: center; }

.title-sm {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
  display: block;
}

.title-lg {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.title-md {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.text-lead {
  font-size: 1.125rem;
  color: var(--color-text-light);
  max-width: 700px;
  margin: 0 auto 40px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  gap: 8px;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #FFF;
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 100, 47, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: #FFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background-color: #FFF;
  color: var(--color-text);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 24px 0;
  transition: var(--transition-smooth);
}

.header.scrolled {
  padding: 16px 0;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 72px;
}

.header.scrolled .nav-links a {
  color: var(--color-text);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: #FFF;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--color-primary);
}

.nav-toggle,
.mobile-contact {
  display: none;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #FFF;
}

.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 115%;
  height: 115%;
  object-fit: cover;
  transform: translate(-50%, -50%) scale(1.1);
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.6) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  padding-top: 80px;
}

.hero h1 {
  font-size: 4.1rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.hero p {
  font-size: 1.15rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-btns {
  display: flex;
  gap: 16px;
}

/* ==========================================================================
   SOBRE (ABOUT)
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* Container da mídia */

.about-image {
  height: 520px; /* ajuste conforme desejar */
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* Vídeo institucional */

.about-image video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform .8s ease;
}

/* Efeito de zoom */

.about-image:hover video {
  transform: scale(1.05);
}

/* Diferenciais */

.about-differentials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin-top: 32px;
}

.about-differentials li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  font-weight: 600;
}

.about-differentials i {
  color: var(--color-primary);
  font-size: 1rem;
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services {
  background-color: var(--color-surface);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.service-card {
  background-color: var(--color-bg);
  padding: 40px 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 24px;
}

.service-card p {
  color: var(--color-text-light);
  margin-bottom: 24px;
  flex-grow: 1;
}

/* ==========================================================================
   SEGMENTS
   ========================================================================== */
.segments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.segment-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/5;
  cursor: pointer;
}

.segment-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.segment-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.1) 100%);
  display: flex;
  align-items: flex-end;
  padding: 32px 24px;
  transition: background 0.4s ease;
}

.segment-card:hover .segment-bg {
  transform: scale(1.1);
}

.segment-card:hover .segment-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,100,47,0.3) 100%);
}

.segment-title {
  color: #FFF;
  font-size: 1.25rem;
  font-weight: 600;
  transform: translateY(10px);
  transition: transform 0.4s ease;
}

.segment-card:hover .segment-title {
  transform: translateY(0);
}

/* ==========================================================================
   DIFFERENTIALS
   ========================================================================== */
.differentials {
  background-color: var(--color-surface);
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 64px;
}

.diff-card {
  text-align: center;
}

.diff-icon {
  width: 80px;
  height: 80px;
  background-color: #FFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2rem;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.diff-card p {
  color: var(--color-text-light);
}

/* ==========================================================================
   PROCESS
   ========================================================================== */
.process-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 80px;
  position: relative;
}

.process-step {
  position: relative;
  z-index: 2;
  width: 25%;

  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;
}

.process-num {
  width: 60px;
  height: 60px;
  background-color: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-light);
  transition: var(--transition-smooth);
}

.process-step:hover .process-num {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background-color: rgba(0, 100, 47, 0.05);
}

.process-icon {
  color: var(--color-primary);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.process-step h3{
  min-height:56px;

  display:flex;
  align-items:center;
  justify-content:center;

  margin-bottom:12px;
}

.process-step p{
  min-height:78px;

  color:var(--color-text-light);
  font-size:.9375rem;
  line-height:1.6;
}

/* ========================================================================== 
   PROJECTS IN ACTION
   ========================================================================== */
.projects-action {
  background-color: var(--color-surface);
}

.projects-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.projects-action-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background-color: #0b0b0c;
  box-shadow: var(--shadow-md);
}

.projects-action-video-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 35%, rgba(0, 100, 47, 0.28), transparent 48%),
    #0b0b0c;
}

.projects-action-video-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: transparent;
}

.projects-action-video-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.projects-action-video-frame.is-ready .projects-action-video-label {
  opacity: 0;
}

.projects-action-footer {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid rgba(0, 100, 47, 0.35);
}

.btn-secondary:hover {
  color: var(--color-primary-dark);
  border-color: var(--color-primary);
  background-color: rgba(0, 100, 47, 0.06);
  transform: translateY(-2px);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list {
  max-width: 800px;
  margin: 48px auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 24px 0;
  background: none;
  border: none;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}

.faq-question i {
  color: var(--color-primary);
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer p {
  padding-bottom: 24px;
  color: var(--color-text-light);
}

.faq-item.active .faq-question i {
  transform: rotate(45deg);
}

.faq-item.active .faq-answer {
  max-height: 300px; /* arbitrary large enough height */
}

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.cta-final {
  background-color: var(--color-surface);
}

.cta-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 560px;
  overflow: hidden;
  color: #FFF;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.cta-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent 48%),
    radial-gradient(circle at 20% 20%, rgba(0, 100, 47, 0.38), transparent 42%),
    #151a17;
}

.cta-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(to bottom right, #000, transparent 82%);
  mask-image: linear-gradient(to bottom right, #000, transparent 82%);
}

.cta-media > img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(56px, 6vw, 88px);
  background-color: #00642f;
}

.cta-eyebrow {
  display: block;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cta-content h2 {
  max-width: 560px;
  margin-bottom: 24px;
  font-size: clamp(2.25rem, 3.4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.cta-content p {
  max-width: 520px;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.cta-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.cta-primary {
  background-color: #FFF;
  color: var(--color-primary);
}

.cta-primary:hover {
  background-color: var(--color-surface);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: rgba(0, 100, 47, 0.055);
  padding: 80px 0 40px;
  border-top: 1px solid rgba(0, 100, 47, 0.12);
  text-align: center;
}

.footer-content {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo img {
  height: 52px;
  margin-bottom: 28px;
}

.footer-about {
  color: var(--color-text-light);
  margin-bottom: 28px;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background-color: var(--color-surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  transition: var(--transition-smooth);
}

.social-links a:hover {
  background-color: var(--color-primary);
  color: #FFF;
}

.footer-whatsapp {
  margin-bottom: 64px;
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(0, 100, 47, 0.12);
  color: var(--color-text-light);
  font-size: 0.875rem;
}

/* ==========================================================================
   MICRO-ANIMATIONS & OBSERVER CLASSES
   ========================================================================== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE FIRST APPROACH OVERRIDES FOR SMALLER SCREENS)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero h1 { font-size: 3.5rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .segments-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .header {
    padding: 16px 0;
  }

  .logo img {
    height: 60px;
  }

  .header-action {
    display: none;
  }

  .nav-toggle {
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: transparent;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
  }

  .nav-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background-color: #FFF;
    transition: var(--transition-smooth);
  }

  .header.scrolled .nav-toggle,
  .header.menu-open .nav-toggle {
    border-color: var(--color-border);
  }

  .header.scrolled .nav-toggle span,
  .header.menu-open .nav-toggle span {
    background-color: var(--color-text);
  }

  .header.menu-open {
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
  }

  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 24px;
    right: 24px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background-color: #FFF;
    box-shadow: var(--shadow-md);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 13px 12px;
    color: var(--color-text);
    border-radius: var(--radius-sm);
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    background-color: var(--color-surface);
  }

  .mobile-contact {
    display: block;
    margin-top: 4px;
    background-color: var(--color-primary);
    color: #FFF !important;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section-padding { padding: 88px 0; }
  .title-lg { font-size: 2.25rem; }
  .text-lead { font-size: 1rem; margin-bottom: 32px; }
  .hero { min-height: 82svh; padding: 112px 0 40px; }
  .hero-content { padding-top: 0; }
  .hero h1 { font-size: 2.25rem; line-height: 1.08; margin-bottom: 16px; }
  .hero p { font-size: 1rem; line-height: 1.5; margin-bottom: 24px; }
  .hero-btns { gap: 12px; }
  .hero-btns .btn { flex: 1; min-width: 0; padding: 13px 18px; font-size: 0.9375rem; white-space: nowrap; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .services-grid { margin-top: 48px; }
  .segments-grid { margin-top: 40px; }
  .diff-grid { gap: 40px 24px; margin-top: 48px; }
  .projects-action-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-right: auto;
    margin-left: auto;
  }
  .process-grid {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-top: 36px;
  }
  .process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
  }
  .process-num { margin: 0 auto 12px; }
  .process-step h3 { margin-bottom: 4px; }
  .process-step p { line-height: 1.45; }
  .faq-list { margin-top: 40px; }
  .faq-question { padding: 20px 0; font-size: 1.125rem; gap: 20px; }
  .cta-box {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .cta-media {
    min-height: 380px;
  }
  .cta-content {
    padding: 56px 40px;
  }
  .cta-content h2 { font-size: 2.5rem; }
  .footer { padding: 64px 0 32px; }
}

@media (max-width: 480px) {
  .header { padding: 12px 0; }
  .logo img { height: 52px; }
  .nav-links { left: 20px; right: 20px; }
  .section-padding { padding: 72px 0; }
  .title-lg { font-size: 2rem; }
  .title-md { font-size: 1.375rem; }
  .hero { min-height: 78svh; padding: 104px 0 36px; }
  .hero h1 { font-size: 1.8rem; line-height: 1.15; }
  .hero p { line-height: 1.6rem; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; padding: 14px 20px; font-size: 0.9rem; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 32px 24px; }
  .segments-grid { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: 1fr; }
  .about-differentials { grid-template-columns: 1fr; }
  .faq-question { font-size: 1rem; }
  .cta-media { min-height: 280px; }
  .cta-content { padding: 44px 24px; }
  .cta-content h2 { font-size: 2rem; }
  .cta-content p { margin-bottom: 30px; font-size: 1rem; }
  .cta-actions { align-items: flex-start; flex-direction: column; gap: 16px; }
  .cta-primary { width: 100%; }
}
