@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,400;0,600;0,700;1,700&family=Barlow:wght@300;400;500;600&display=swap');

:root {
  --green-primary: #279544;
  --green-secondary: #48b44c;
  --green-light: #eaf1ee;
  --silver: #9a9a9a;
  --white: #ffffff;
  --dark: #1a1a1a;
  --gradient-green: linear-gradient(135deg, #279544, #48b44c);

  --bg: #ffffff;
  --bg-section: #f7faf8;
  --bg-card: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #555555;
  --border: #e0ebe3;
  --nav-bg: rgba(255,255,255,0.95);
  --shadow: 0 4px 24px rgba(0,0,0,0.07);
  --shadow-hover: 0 8px 32px rgba(39,149,68,0.15);
}

[data-theme="dark"] {
  --bg: #111815;
  --bg-section: #162018;
  --bg-card: #1c2b1e;
  --text-primary: #f0f4f1;
  --text-secondary: #9ab09e;
  --border: #2a3e2d;
  --nav-bg: rgba(17,24,21,0.97);
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-hover: 0 8px 32px rgba(39,149,68,0.25);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  transition: background 0.3s, color 0.3s;
  line-height: 1.6;
}

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s;
}

.nav-logo img { height: 38px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green-primary);
  background: var(--green-light);
}

[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-links a.active {
  background: rgba(39,149,68,0.15);
}

.nav-actions { display: flex; align-items: center; gap: 12px; }

.btn-contato {
  background: var(--gradient-green);
  color: white !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn-contato:hover { opacity: 0.9; }

.btn-client {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.btn-client:hover,
.btn-client.active {
  border-color: var(--green-primary);
  color: var(--green-primary);
  background: var(--green-light);
}

[data-theme="dark"] .btn-client:hover,
[data-theme="dark"] .btn-client.active {
  background: rgba(39,149,68,0.15);
}

.btn-client svg { flex-shrink: 0; }

@media (max-width: 1100px) {
  .btn-client-label { display: none; }
  .btn-client { padding: 6px 10px; }
}

.theme-toggle {
  background: var(--bg-section);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.theme-toggle:hover { border-color: var(--green-primary); color: var(--green-primary); }
.theme-toggle svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
}

main { padding-top: 68px; }
.section { padding: 80px 2rem; }
.section-alt { background: var(--bg-section); }
.container { max-width: 1140px; margin: 0 auto; }

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-primary);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 20px;
}

.section-title span { color: var(--green-primary); font-style: italic; }

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.7;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  border-color: var(--green-secondary);
}

.icon {
  width: 48px;
  height: 48px;
  background: var(--green-light);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--green-primary);
}

[data-theme="dark"] .icon { background: rgba(39,149,68,0.15); }

.icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary { background: var(--gradient-green); color: white; }
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--green-primary);
  border: 2px solid var(--green-primary);
}

.btn-outline:hover { background: var(--green-primary); color: white; }

.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

.hero {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 2rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(72,180,76,0.10) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(39,149,68,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  max-width: 720px;
  width: 100%;
  height: auto;
  margin-bottom: 32px;
  filter: drop-shadow(0 8px 32px rgba(39,149,68,0.15));
}

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-stats {
  display: flex;
  gap: 64px;
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  justify-content: center;
  flex-wrap: wrap;
}

.stat-item { text-align: center; }
.stat-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--green-primary);
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.page-hero {
  background: var(--gradient-green);
  padding: 64px 2rem;
  color: white;
}

.page-hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 12px;
}

.page-hero p { font-size: 18px; opacity: 0.9; max-width: 580px; }

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: var(--green-secondary);
}

.product-card.featured { border-color: var(--green-primary); }

.product-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--green-primary);
  font-style: italic;
  letter-spacing: 0.02em;
  line-height: 1;
  margin-top: 12px;
}

.product-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-top: 6px;
  margin-bottom: 20px;
}

.product-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.product-features {
  list-style: none;
  margin-bottom: 24px;
  flex-grow: 1;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.product-features li:last-child { border-bottom: none; }

.product-features li svg {
  width: 16px;
  height: 16px;
  color: var(--green-primary);
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  flex-shrink: 0;
}

.btn-saiba-mais {
  width: 100%;
  background: transparent;
  color: var(--green-primary);
  border: 2px solid var(--green-primary);
  padding: 12px 20px;
  border-radius: 8px;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  margin-top: auto;
}

.btn-saiba-mais:hover { background: var(--green-primary); color: white; }
.btn-saiba-mais svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  transition: transform 0.2s;
}

.btn-saiba-mais:hover svg { transform: translateX(3px); }

footer {
  background: var(--dark);
  color: #ccc;
  padding: 64px 2rem 32px;
}

[data-theme="dark"] footer { background: #0d120f; }

.footer-grid {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 48px;
}

.footer-brand img { height: 50px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.7; color: #999; max-width: 260px; }

.footer-col h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  text-decoration: none;
  color: #999;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--green-secondary); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  color: #999;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--green-secondary);
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  max-width: 1140px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid #2a2a2a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #666;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a { color: #666; text-decoration: none; }
.footer-bottom a:hover { color: var(--green-secondary); }

.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  text-decoration: none;
  transition: all 0.2s;
  animation: pulse-wpp 2.5s infinite;
}

.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 28px; height: 28px; fill: white; }

@keyframes pulse-wpp {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 32px rgba(37,211,102,0.65); }
}

.divider {
  width: 48px;
  height: 3px;
  background: var(--gradient-green);
  border-radius: 2px;
  margin-bottom: 20px;
}

.check-list { list-style: none; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 15px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.check-list li:last-child { border-bottom: none; }
.check-list li svg {
  width: 18px;
  height: 18px;
  color: var(--green-primary);
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  flex-shrink: 0;
  margin-top: 2px;
}

.plain-list { list-style: none; }
.plain-list li {
  padding: 10px 0;
  font-size: 15px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.plain-list li:last-child { border-bottom: none; }

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: var(--green-light);
  color: var(--green-primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

[data-theme="dark"] .badge { background: rgba(39,149,68,0.2); }

.process-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s;
}

.process-step:hover { border-color: var(--green-secondary); transform: translateX(4px); }

.process-step-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--green-primary);
  font-style: italic;
  line-height: 1;
  min-width: 56px;
}

.process-step-content h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.process-step-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: var(--nav-bg);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 10px 16px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 32px; }
}

@media (max-width: 600px) {
  .section { padding: 60px 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
}

/* ============ ANIMATIONS ============ */

/* Page fade-in */
body { opacity: 0; transition: opacity 0.4s ease-out; }
body.page-loaded { opacity: 1; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

/* Nav scroll state — shrinks slightly */
nav {
  transition: height 0.3s ease, background 0.3s, box-shadow 0.3s;
}

nav.nav-scrolled {
  height: 58px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

[data-theme="dark"] nav.nav-scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

nav.nav-scrolled .nav-logo img {
  height: 32px;
  transition: height 0.3s ease;
}

.nav-logo img { transition: height 0.3s ease; }

/* Cards — refined hover */
.card, .product-card, .contact-info-card, .progress-card, .process-step {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease,
              border-color 0.3s ease;
}

/* Hero logo subtle float */
.hero-logo {
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Buttons — micro interactions */
.btn, .btn-saiba-mais, .btn-contato {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover::after { left: 100%; }

/* Icon hover — subtle scale */
.icon { transition: transform 0.3s ease, background 0.3s ease; }
.card:hover .icon { transform: scale(1.08); }

/* Section labels — left line slide */
.section-label {
  position: relative;
  padding-left: 0;
  transition: padding-left 0.4s ease;
}

.section-label.reveal-visible {
  padding-left: 0;
}

/* Footer Social */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--green-primary);
  border-color: var(--green-primary);
  color: white;
  transform: translateY(-3px);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* Scroll-to-top */
.scroll-top {
  position: fixed;
  bottom: 100px;
  right: 28px;
  z-index: 998;
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--green-primary);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--green-primary);
  color: white;
  border-color: var(--green-primary);
  transform: translateY(-3px);
}

.scroll-top svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-logo { animation: none; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
