/* ==========================================================================
   Honos Engenharia — Design Tokens
   ========================================================================== */
:root {
  --primary: #006837;
  --primary-dark: #004d29;
  --primary-light: #e6f2ec;
  --primary-soft: #f1f8f4;
  --bg: #ffffff;
  --bg-alt: #e7e7e7;
  --dark: #0c1b13;
  --dark-2: #12281c;
  --text: #1f2724;
  --text-light: #5f6b66;
  --text-on-dark: #d9e4de;
  --border: #e2e6e4;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --shadow-sm: 0 4px 16px rgba(12, 27, 19, 0.06);
  --shadow-md: 0 12px 32px rgba(12, 27, 19, 0.1);
  --shadow-primary: 0 14px 30px rgba(0, 104, 55, 0.28);
  --ff-heading: "Poppins", sans-serif;
  --ff-body: "Inter", sans-serif;
  --transition: 0.35s cubic-bezier(.22,1,.36,1);
}

/* ==========================================================================
   Reset
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
address { font-style: normal; }
h1, h2, h3, h4 { font-family: var(--ff-heading); color: var(--text); line-height: 1.25; font-weight: 700; }
svg.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.icon-brand { fill: currentColor; stroke: none; }

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

.section { padding: 110px 0; position: relative; }
.section-alt { background: var(--bg-alt); }

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin-bottom: 14px; }
.section-head p { color: var(--text-light); font-size: 1.05rem; }

.text-accent { color: var(--primary); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(0, 104, 55, 0.35);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
}
.btn-sm { padding: 11px 22px; font-size: 0.88rem; }

/* ==========================================================================
   Preloader
   ========================================================================== */
#preloader {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.loaded { opacity: 0; visibility: hidden; }
.loader-mark {
  width: 46px; height: 46px;
  border: 3px solid var(--primary-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  transition: var(--transition);
}
.site-header.scrolled .header-inner { height: 72px; }

.brand { display: flex; align-items: center; }
.brand-logo { height: 42px; width: auto; transition: var(--transition); }
.site-header.scrolled .brand-logo { height: 36px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.main-nav ul { display: flex; gap: 32px; }
.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
  border-radius: 2px;
}
.nav-link:hover, .nav-link.active-link { color: var(--primary); }
.nav-link:hover::after, .nav-link.active-link::after { width: 100%; }
.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1100;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Page header (secondary pages)
   ========================================================================== */
.page-header {
  position: relative;
  padding: 168px 0 64px;
  background: linear-gradient(180deg, var(--primary-soft) 0%, #fff 100%);
  overflow: hidden;
  text-align: center;
}
.page-header .hero-grid-bg { inset: -30% -10% auto auto; width: 70%; }
.breadcrumb {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--text-light); transition: color 0.25s ease; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: var(--primary); font-weight: 600; }
.page-header h1 {
  position: relative;
  font-size: clamp(2rem, 3.6vw, 3rem);
  margin-bottom: 14px;
}
.page-header p {
  position: relative;
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ==========================================================================
   Section CTA wrapper / teasers
   ========================================================================== */
.section-cta { text-align: center; margin-top: 44px; }

.services-grid-compact {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.service-chip {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 16px;
  text-align: center;
  transition: var(--transition);
}
.service-chip:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-chip .service-icon { margin: 0 auto 16px; }
.service-chip h3 { font-size: 0.96rem; }

.portfolio-grid-preview .portfolio-item { cursor: pointer; }

.about-copy .btn { margin-top: 10px; }

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner { padding: 110px 0; }
.cta-banner-inner {
  background: linear-gradient(150deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 56px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: #fff;
  flex-wrap: wrap;
  box-shadow: var(--shadow-primary);
}
.cta-banner-inner h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 10px; }
.cta-banner-inner p { color: rgba(255, 255, 255, 0.85); }
.cta-banner-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.4); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; transform: translateY(-3px); }
.cta-banner .btn-primary { background: #fff; color: var(--primary); box-shadow: none; }
.cta-banner .btn-primary:hover { background: var(--bg-alt); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: 180px 0 120px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--primary-soft) 0%, #fff 65%);
}
.hero-grid-bg {
  position: absolute;
  inset: -10% -10% auto auto;
  width: 60%;
  height: 120%;
  background-image:
    linear-gradient(rgba(0,104,55,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,104,55,0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at top right, black 30%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at top right, black 30%, transparent 72%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 22px;
  letter-spacing: 0.02em;
}
.hero h1 {
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.hero-text {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 540px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-chips li {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.hero-visual { position: relative; }
.hero-image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 6px solid #fff;
  aspect-ratio: 4/3.4;
}
.hero-image-frame img { width: 100%; height: 100%; object-fit: cover; }

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  animation: float 4.5s ease-in-out infinite;
}
.floating-card strong { display: block; font-size: 0.88rem; font-family: var(--ff-heading); }
.floating-card small { color: var(--text-light); font-size: 0.78rem; }
.fc-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.fc-1 { top: -6%; left: -8%; animation-delay: 0s; }
.fc-2 { bottom: -6%; right: -6%; animation-delay: 1.2s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ==========================================================================
   About
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
}
.about-visual { position: relative; }
.about-image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/4.2;
}
.about-image-frame img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute;
  bottom: -24px;
  left: 24px;
  background: var(--primary);
  color: #fff;
  padding: 16px 22px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: var(--shadow-primary);
}
.about-badge svg { width: 22px; height: 22px; flex-shrink: 0; }

.about-copy h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); margin: 14px 0 18px; }
.about-copy > p {
  color: var(--text-light);
  font-size: 1.08rem;
  margin-bottom: 40px;
}
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.pillar { display: flex; gap: 14px; }
.pillar-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.pillar h3 { font-size: 1rem; margin-bottom: 4px; }
.pillar p { font-size: 0.9rem; color: var(--text-light); }

/* ==========================================================================
   Services
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 38px 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 22px;
  transition: var(--transition);
}
.service-card:hover .service-icon { transform: rotate(-8deg) scale(1.05); }
.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service-card p { color: var(--text-light); font-size: 0.94rem; }

.service-cta {
  background: linear-gradient(150deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.service-cta h3 { color: #fff; }
.service-cta p { color: rgba(255,255,255,0.82); margin-bottom: 24px; }
.service-cta .btn-primary { background: #fff; color: var(--primary); box-shadow: none; }
.service-cta .btn-primary:hover { background: var(--bg-alt); transform: translateY(-3px); }

/* ==========================================================================
   Portfolio
   ========================================================================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.portfolio-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16/10.5;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.portfolio-item:hover { box-shadow: var(--shadow-md); transform: translateY(-6px); }
.portfolio-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  background: #f4f5f4;
}
.portfolio-item:hover img { transform: scale(1.06); }
.portfolio-number {
  position: absolute;
  top: 18px; left: 18px;
  background: var(--primary);
  color: #fff;
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: 0.85rem;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: var(--shadow-primary);
}
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 27, 19, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  opacity: 0;
  transition: var(--transition);
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: stretch;
}
.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.contact-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.contact-icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: var(--transition);
}
.contact-card:hover .contact-icon { background: var(--primary); color: #fff; }
.contact-card h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-card p { font-size: 0.9rem; color: var(--text-light); word-break: break-word; }

.contact-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  min-height: 320px;
  border: 1px solid var(--border);
}
.contact-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ==========================================================================
   Brazil coverage map
   ========================================================================== */
.map-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.brazil-map-wrap {
  max-width: 460px;
  margin: 0 auto;
}
.brazil-map-wrap svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.br-state {
  fill: var(--bg-alt);
  stroke: #fff;
  stroke-width: 1.2;
  transition: fill 0.25s ease;
}
.br-state:hover { fill: #cfd3d1; }
.br-state--active { fill: var(--primary); cursor: pointer; }
.br-state--active:hover { fill: var(--primary-dark); }
.map-caption {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 12px;
}
.map-caption a { color: var(--text-light); text-decoration: underline; }

.map-legend {
  display: flex;
  gap: 22px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.map-legend span { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--text-light); font-weight: 600; }
.legend-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.legend-dot--active { background: var(--primary); }
.legend-dot--inactive { background: var(--bg-alt); border: 1px solid var(--border); }

.map-state-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.map-state-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px;
}
.map-state-list li::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px 26px;
  transition: var(--transition);
}
.faq-item[open] { border-color: transparent; box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); background: var(--primary); color: #fff; }
.faq-item p { padding: 0 0 22px; color: var(--text-light); font-size: 0.95rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--dark); color: var(--text-on-dark); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 80px 24px 50px;
}
.footer-logo { height: 44px; margin-bottom: 18px; }
.footer-brand p { font-size: 0.92rem; color: rgba(217,228,222,0.7); max-width: 320px; margin-bottom: 24px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--dark-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-dark);
  transition: var(--transition);
  font-size: 1.05rem;
}
.footer-social a:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }

.footer-links h4, .footer-contact h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 20px;
}
.footer-links ul, .footer-contact ul { display: flex; flex-direction: column; gap: 12px; }
.footer-links a, .footer-links li, .footer-contact li {
  font-size: 0.9rem;
  color: rgba(217,228,222,0.72);
  transition: color 0.25s ease;
}
.footer-links a:hover { color: #fff; }
.footer-contact address a { color: inherit; transition: color 0.25s ease; }
.footer-contact address a:hover { color: #fff; }

.footer-bottom { border-top: 1px solid rgba(217,228,222,0.12); }
.footer-bottom-inner {
  padding: 22px 24px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(217,228,222,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-dot { color: rgba(217,228,222,0.35); }
.footer-credit a { color: rgba(217,228,222,0.75); text-decoration: underline; transition: color 0.25s ease; }
.footer-credit a:hover { color: #fff; }

/* ==========================================================================
   Floating elements
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 58px; height: 58px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: var(--shadow-primary);
  z-index: 900;
  transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08); background: var(--primary-dark); }

.back-to-top {
  position: fixed;
  bottom: 26px; left: 26px;
  width: 48px; height: 48px;
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-sm);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: var(--transition);
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--primary); color: #fff; }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(12, 27, 19, 0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 88vw;
  max-height: 82vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close, .lightbox-nav {
  position: absolute;
  color: #fff;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: var(--transition);
}
.lightbox-close:hover, .lightbox-nav:hover { background: var(--primary); }
.lightbox-close { top: 26px; right: 26px; }
.lightbox-prev { left: 26px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 26px; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   Reveal animation
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 340px);
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,0.12);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 26px; }
  .nav-cta { width: 100%; justify-content: center; }
  .nav-toggle { display: flex; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 460px; margin: 0 auto 20px; }
  .about-grid { grid-template-columns: 1fr; }
  .map-section { grid-template-columns: 1fr; }
  .about-visual { max-width: 420px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid-compact { grid-template-columns: repeat(3, 1fr); }
  .cta-banner-inner { text-align: center; justify-content: center; }
}

@media (max-width: 680px) {
  .section { padding: 80px 0; }
  .header-inner { height: 76px; }
  .services-grid { grid-template-columns: 1fr; }
  .services-grid-compact { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .map-state-list { grid-template-columns: 1fr; }
  .hero { padding: 150px 0 90px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .page-header { padding: 140px 0 50px; }
  .cta-banner { padding: 80px 0; }
  .cta-banner-inner { padding: 40px 28px; flex-direction: column; }
  .cta-banner-actions { width: 100%; flex-direction: column; }
  .cta-banner-actions .btn { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; padding: 60px 24px 40px; }
  .whatsapp-float { width: 52px; height: 52px; bottom: 18px; right: 18px; }
  .back-to-top { width: 44px; height: 44px; bottom: 18px; left: 18px; }
}
