/* =============================================
   EcoGeo Soluções — Stylesheet
   ============================================= */

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  border: none;
}

.btn-whatsapp {
  background: #2e7d32;
  color: #fff;
}
.btn-whatsapp:hover {
  background: #1b5e20;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(46,125,50,0.4);
}

.btn-hero {
  background: #2e7d32;
  color: #fff;
  padding: 14px 34px;
  font-size: 1rem;
  border-radius: 8px;
  margin-top: 28px;
}
.btn-hero:hover {
  background: #1b5e20;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46,125,50,0.45);
}

.btn-cta {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
  padding: 13px 32px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
  margin-top: 20px;
}
.btn-cta:hover {
  background: rgba(255,255,255,0.25);
  border-color: #fff;
  transform: translateY(-2px);
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid #e8f5e9;
  transition: box-shadow 0.3s;
}
.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.12);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo { display: flex; align-items: center; }
.logo-img { height: 44px; width: auto; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

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

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: #444;
  position: relative;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: #2e7d32;
  transition: width 0.3s;
}
.nav-link:hover, .nav-link.active { color: #2e7d32; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: #333;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('https://images.unsplash.com/photo-1448375240586-882707db888b?w=1600&q=85') center center / cover no-repeat;
  padding-top: 68px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.38) 0%,
    rgba(0,0,0,0.45) 60%,
    rgba(0,0,0,0.55) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 760px;
  padding: 40px 20px;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 400;
  opacity: 0.95;
  margin-bottom: 16px;
  line-height: 1.7;
}

.hero-desc {
  font-size: 0.92rem;
  opacity: 0.82;
  line-height: 1.8;
}

/* ---------- SECTIONS COMMON ---------- */
.section {
  padding: 80px 0;
}

.bg-light {
  background: #f7faf7;
}

.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: #222;
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: #777;
  font-size: 0.95rem;
  margin-bottom: 48px;
}

.highlight {
  color: #2e7d32;
}

/* ---------- PRINCIPAIS FRENTES ---------- */
.frentes { background: #fff; }

.frentes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.frente-card {
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  padding: 36px 28px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.frente-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(46,125,50,0.12);
  border-color: #a5d6a7;
}

.frente-icon {
  width: 52px; height: 52px;
  background: #e8f5e9;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.frente-icon i {
  font-size: 1.4rem;
  color: #2e7d32;
}

.frente-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
}
.frente-card p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.65;
}

/* ---------- SERVIÇOS REALIZADOS ---------- */
.servicos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 0;
}

.servico-card {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #eee;
  transition: transform 0.25s, box-shadow 0.25s;
}
.servico-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

.servico-img-wrap {
  width: 100%;
  height: 180px;
  overflow: hidden;
}
.servico-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.servico-card:hover .servico-img-wrap img {
  transform: scale(1.06);
}

.servico-info {
  padding: 14px 16px 18px;
}
.servico-info h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #2e7d32;
  margin-bottom: 5px;
}
.servico-info p {
  font-size: 0.82rem;
  color: #666;
}

/* ---------- DIFERENCIAIS ---------- */
.quem-somos { background: #fff; }

.diferenciais-list {
  max-width: 600px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.diferenciais-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

.check-icon {
  flex-shrink: 0;
  margin-top: 2px;
}
.check-icon i {
  color: #2e7d32;
  font-size: 1.15rem;
}

.diferenciais-list strong {
  color: #2e7d32;
}

/* ---------- COMO FUNCIONA ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 52px;
  text-align: center;
}

.step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-number {
  width: 68px; height: 68px;
  background: #2e7d32;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 18px;
  box-shadow: 0 4px 16px rgba(46,125,50,0.35);
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.88rem;
  color: #666;
  max-width: 220px;
  line-height: 1.65;
}

/* ---------- CTA ---------- */
.cta-section {
  background: #2e7d32;
  color: #fff;
  padding: 72px 20px;
}

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

.cta-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-sub {
  font-size: 1rem;
  opacity: 0.88;
}

/* ---------- FOOTER ---------- */
.footer {
  background: #1a1a1a;
  color: #ccc;
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid #333;
}

.footer-brand p {
  font-size: 0.86rem;
  color: #999;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 260px;
}

.footer-logo-box {
  background: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  display: inline-block;
}
.footer-logo { height: 42px; }

.footer-col h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  color: #aaa;
  margin-bottom: 12px;
  line-height: 1.5;
}
.footer-contact i {
  color: #66bb6a;
  margin-top: 3px;
  flex-shrink: 0;
}
.footer-contact a { color: #aaa; transition: color 0.2s; }
.footer-contact a:hover { color: #66bb6a; }

.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  font-size: 0.88rem;
  color: #aaa;
  transition: color 0.2s, padding-left 0.2s;
}
.footer-links a:hover {
  color: #66bb6a;
  padding-left: 4px;
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 0.82rem;
  color: #666;
}

/* ---------- PORTFOLIO PAGE ---------- */
.portfolio-hero {
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 60%, #388e3c 100%);
  color: #fff;
  text-align: center;
  padding: 120px 20px 60px;
}
.portfolio-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.portfolio-hero p {
  font-size: 1.05rem;
  opacity: 0.88;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 0;
}

.portfolio-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #eee;
  transition: transform 0.28s, box-shadow 0.28s;
}
.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.13);
}

.portfolio-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s;
}
.portfolio-card:hover .portfolio-img {
  transform: scale(1.05);
}

.portfolio-info {
  padding: 20px 20px 24px;
}
.portfolio-info h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #2e7d32;
  margin-bottom: 8px;
}
.portfolio-info p {
  font-size: 0.86rem;
  color: #666;
  line-height: 1.6;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
  .frentes-grid { grid-template-columns: repeat(2, 1fr); }
  .servicos-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 68px; right: 0; left: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 24px 20px 28px;
    border-top: 1px solid #e8f5e9;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-110%);
    transition: transform 0.35s ease;
    z-index: 999;
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-links { flex-direction: column; gap: 8px; width: 100%; }
  .nav-link { font-size: 1rem; padding: 10px 0; border-bottom: 1px solid #f1f1f1; }
  .nav-wa { margin-top: 16px; width: 100%; justify-content: center; }
  .hamburger { display: flex; }

  .frentes-grid { grid-template-columns: 1fr; gap: 20px; }
  .servicos-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .portfolio-grid { grid-template-columns: 1fr; }

  .hero-subtitle br, .hero-desc br { display: none; }
  .section { padding: 60px 0; }
}

@media (max-width: 480px) {
  .servicos-grid { grid-template-columns: 1fr; }
}

/* ---------- WHATSAPP FLUTUANTE ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.whatsapp-float i {
  font-size: 2rem;
  color: #fff;
  line-height: 1;
}

.whatsapp-float:hover {
  transform: scale(1.12) translateY(-4px);
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.65);
}

/* Tooltip */
.wa-tooltip {
  position: absolute;
  right: 70px;
  background: #1a1a1a;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.wa-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #1a1a1a;
}

.whatsapp-float:hover .wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Pulse animation */
.whatsapp-float::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #25d366;
  animation: wa-pulse 2.5s ease-out infinite;
  z-index: -1;
}

@keyframes wa-pulse {
  0%   { transform: scale(1); opacity: 0.7; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ---------- FADE-IN ANIMATION ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
