/* ── Progress bar ── */
#progress-bar { position: fixed; top: 0; left: 0; height: 3px; background: #5D8C5D; z-index: 9999; width: 0%; transition: width 0.1s linear; }

/* ── Nav scroll shadow ── */
.nav-scrolled { background: rgba(30,58,47,0.92) !important; backdrop-filter: blur(12px); box-shadow: 0 2px 20px rgba(0,0,0,0.3); }

/* ── Hero parallax ── */
#hero { background-attachment: fixed; }

/* ── Service card hover ── */
.service-card { transition: transform 0.35s ease, box-shadow 0.35s ease; }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 24px 48px rgba(0,0,0,0.18); }
.service-card .icon-wrap { transition: background 0.3s; }
.service-card:hover .icon-wrap { background: #5D8C5D; }
.service-card:hover .icon-wrap i { color: #fff; }

/* ── Counter ── */
.counter-num { font-variant-numeric: tabular-nums; }

/* ── Gallery ── */
.gallery-item { overflow: hidden; border-radius: 0.75rem; cursor: pointer; }
.gallery-item img { transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .overlay { opacity: 0; transition: opacity 0.35s ease; }
.gallery-item:hover .overlay { opacity: 1; }

/* ── Lightbox ── */
#lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 10000; align-items: center; justify-content: center; }
#lightbox.active { display: flex; }
#lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 0.75rem; object-fit: contain; box-shadow: 0 0 80px rgba(0,0,0,0.5); }

/* ── Floating WA ── */
#wa-float { animation: float 3s ease-in-out infinite; }

/* ── Gradient text ── */
.gradient-text { background: linear-gradient(135deg, #5D8C5D, #8BB88B); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── Section divider wave ── */
.wave-divider svg { display: block; }

/* ── Accordion ── */
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s; }
.faq-answer.open { max-height: 500px; }

/* ── Scroll animation initial states ── */
.reveal { opacity: 0; transform: translateY(40px); }
.reveal-left { opacity: 0; transform: translateX(-50px); }
.reveal-right { opacity: 0; transform: translateX(50px); }

/* ── Clients marquee ── */
.clients-track { width: max-content; animation: marquee 55s linear infinite; }
.clients-track:hover { animation-play-state: paused; }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.clients-item {
  display: inline-block;
  white-space: nowrap;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: #fff;
  padding: 0 2rem;
  opacity: 0.75;
  transition: opacity 0.2s, color 0.2s;
}
.clients-item:hover { opacity: 1; color: #5D8C5D; }
.clients-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5D8C5D;
  opacity: 0.5;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ── Obras marquee ── */
.obras-track { width: max-content; animation: marquee 160s linear infinite; }
.obras-track:hover { animation-play-state: paused; }
@keyframes marquee-reverse {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}
.obras-item {
  display: inline-block;
  white-space: nowrap;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.07em;
  color: #1E3A2F;
  padding: 0 2rem;
  opacity: 0.65;
  transition: opacity 0.2s, color 0.2s;
}
.obras-item:hover { opacity: 1; color: #5D8C5D; }
.obras-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5D8C5D;
  opacity: 0.4;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ── Obras static pills ── */
.obra-pill {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  border: 1.5px solid rgba(93,140,93,0.3);
  border-radius: 999px;
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: rgba(255,255,255,0.04);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
  cursor: default;
}
.obra-pill:hover {
  background: rgba(93,140,93,0.15);
  border-color: #5D8C5D;
  color: #fff;
  transform: translateY(-2px);
}
