/* ============================================================
   HIKO — Enterprise / Sober Stylesheet  (ESRI-style)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&display=swap');

/* ============================================================
   Custom Properties
   ============================================================ */
:root {
  /* Brand */
  --brand-dark:   #0d3135;   /* primary brand – dark teal    */
  --brand-mid:    #1a6068;   /* secondary – mid teal         */
  --brand-light:  #2e8b94;   /* tertiary / hover             */
  --brand-xlight: #c8dfe1;   /* very light teal tint         */

  /* Text */
  --text-heading: #111827;
  --text-body:    #374151;
  --text-muted:   #6b7280;
  --text-on-dark: #e8f0f1;

  /* Backgrounds */
  --bg-white:     #ffffff;
  --bg-light:     #f6f9f9;   /* barely-there teal tint       */
  --bg-dark:      #0d3135;

  /* Borders */
  --border-light: #e2e8ea;
  --border-mid:   #c5d4d6;

  /* Shadows — very restrained */
  --shadow-xs: 0 1px 3px rgba(13, 49, 53, 0.06);
  --shadow-sm: 0 2px 8px rgba(13, 49, 53, 0.09);
  --shadow-md: 0 6px 24px rgba(13, 49, 53, 0.11);

  /* Radius — slightly squared, enterprise feel */
  --r-sm:  4px;
  --r-md:  6px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t:    0.22s var(--ease);

  /* Aliases (backward compat) */
  --primary-darkest:  #071a1c;
  --primary-dark:     var(--brand-dark);
  --primary-medium:   var(--brand-mid);
  --primary-light:    var(--brand-light);
  --primary-lightest: var(--brand-xlight);
  --text-dark:        var(--text-heading);
  --text-light:       var(--text-on-dark);
  --text-medium:      var(--text-body);
  --background-light:  var(--bg-white);
  --background-subtle: var(--bg-light);
  --border-color:      var(--border-light);
  --primary-color:     var(--brand-dark);
  --secondary-color:   var(--brand-mid);
  --accent-color:      var(--brand-light);
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', sans-serif;
  color: var(--text-body);
  line-height: 1.65;
  margin: 0;
  padding: 0;
  background: var(--bg-white);
  overflow-x: hidden;
}

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cairo', sans-serif;
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin: 0 0 1.1em; }

a {
  color: var(--brand-dark);
  text-decoration: none;
  transition: color var(--t);
}
a:hover { color: var(--brand-mid); text-decoration: none; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
}

/* ============================================================
   Navigation  — solid dark, no blur, no glass
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0;
  background: transparent;
  transition: background var(--t), box-shadow var(--t);
}

.navbar.scrolled {
  background: var(--brand-dark);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar-brand img {
  height: 38px;
  display: block;
  vertical-align: middle;
}

.navbar-nav-wrapper {
  flex-grow: 1;
  display: flex;
  justify-content: flex-end;
}

.navbar-nav {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
}

.nav-item { margin-left: 8px; }

.nav-link {
  display: block;
  padding: 8px 16px;
  color: rgba(232, 240, 241, 0.88);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.1px;
  border-radius: var(--r-sm);
  transition: background var(--t), color var(--t);
  text-shadow: none;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-link::after { display: none; }

/* Hamburger */
.navbar-toggler {
  display: none;
  background: none;
  border: 1px solid rgba(232, 240, 241, 0.4);
  color: var(--text-on-dark);
  padding: 7px 10px;
  font-size: 1.3rem;
  line-height: 1;
  border-radius: var(--r-sm);
  cursor: pointer;
  order: -1;
  margin-right: 12px;
}

/* ============================================================
   Buttons — clean, squared, corporate
   ============================================================ */
.btn {
  display: inline-block;
  padding: 11px 28px;
  border-radius: var(--r-sm);
  font-family: 'Cairo', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--t), border-color var(--t), color var(--t), box-shadow var(--t);
  text-decoration: none !important;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-dark);
  color: #fff;
  border-color: var(--brand-dark);
}
.btn-primary:hover {
  background: #0a2528;
  border-color: #0a2528;
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--brand-dark);
  border-color: var(--brand-dark);
}
.btn-secondary:hover {
  background: var(--bg-light);
  color: #0a2528;
}

.btn-outline {
  background: transparent;
  color: var(--text-body);
  border-color: var(--border-mid);
}
.btn-outline:hover {
  background: var(--bg-light);
  border-color: var(--border-mid);
  color: var(--text-heading);
}

/* Hero CTA buttons */
.btn-hero {
  background: #fff;
  color: var(--brand-dark);
  border-color: #fff;
  font-weight: 700;
  padding: 13px 36px;
  font-size: 0.97rem;
}
.btn-hero:hover {
  background: #e8f0f1;
  border-color: #e8f0f1;
  color: var(--brand-dark);
}

.btn-hero-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
  padding: 13px 36px;
  font-size: 0.97rem;
}
.btn-hero-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
}

/* Card links */
.card-link {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-mid);
  margin-right: 20px;
  transition: color var(--t);
}
.card-link:last-child { margin-right: 0; }
.card-link:hover { color: var(--brand-dark); text-decoration: underline; }
.card-link-secondary { color: var(--text-muted); }
.card-link-secondary:hover { color: var(--text-body); }

/* ============================================================
   Hero — dark image overlay, no decorative shapes
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background:
    linear-gradient(to right, rgba(8, 28, 30, 0.90) 0%, rgba(8, 28, 30, 0.75) 55%, rgba(13, 49, 53, 0.60) 100%),
    url('images/background3.png') center center / cover no-repeat;
  background-attachment: fixed;
  color: var(--text-on-dark);
  padding: 80px 0 72px;
}

.hero .container { position: relative; z-index: 2; max-width: 740px; }

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(232, 240, 241, 0.82);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   Stats bar — minimal, no dark drama
   ============================================================ */
.stats-section {
  background: var(--bg-light);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 44px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 8px 40px 8px 0;
  border-right: 1px solid var(--border-light);
}
.stat-item:first-child { padding-left: 0; }
.stat-item:last-child { border-right: none; }

.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--brand-dark);
  line-height: 1;
  margin-bottom: 6px;
  font-family: 'Cairo', sans-serif;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  max-width: 160px;
  line-height: 1.4;
}

/* ============================================================
   Sections
   ============================================================ */
.section {
  padding: 88px 0;
  background: var(--bg-white);
}
.section-subtle { background: var(--bg-light); }
.section + .section-subtle,
.section-subtle + .section {
  border-top: 1px solid var(--border-light);
}

/* ============================================================
   Section Header — no colored tags, clean underline rule
   ============================================================ */
.section-header {
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand-mid);
  margin-bottom: 12px;
}

.section-header h2 {
  color: var(--text-heading);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.75;
  margin: 0;
}

/* ============================================================
   Services Grid — flat cards, clean borders
   ============================================================ */
.services-grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  overflow: hidden;
}

.service-card {
  background: var(--bg-white);
  display: flex;
  flex-direction: column;
  transition: background var(--t);
  position: relative;
}

.service-card:hover { background: var(--bg-light); }

/* Card image */
.service-card-image {
  position: relative;
  height: 180px;
  overflow: hidden;
  flex-shrink: 0;
}
.service-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s var(--ease);
}
.service-card:hover .service-card-image img { transform: scale(1.04); }
.service-card-image-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,28,30,0.25), transparent 55%);
}

/* Fallback for direct img children */
.service-card > img {
  width: 100%; height: 180px;
  object-fit: cover;
  display: block;
}

/* Card body */
.service-card-body {
  padding: 22px 24px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-heading);
}

.service-card p {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}

.card-links {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* ============================================================
   Contact Section
   ============================================================ */
#contact { background: var(--bg-white); border-top: 1px solid var(--border-light); }

.contact-container {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: flex-start;
}

/* Form */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-heading);
}
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-mid);
  border-radius: var(--r-sm);
  font-family: 'Cairo', sans-serif;
  font-size: 0.95rem;
  background: var(--bg-white);
  color: var(--text-heading);
  transition: border-color var(--t), box-shadow var(--t);
}
.form-control:focus {
  border-color: var(--brand-mid);
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 96, 104, 0.12);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { min-height: 130px; resize: vertical; }
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}
.form-submit-wrapper { margin-top: 24px; }

/* Contact Info Panel */
.contact-info {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  padding: 32px 28px;
  position: sticky;
  top: 84px;
}

.contact-info h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-top: 0;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 0.8rem;
}

.contact-person {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}
.contact-person:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-person-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.contact-person-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.contact-person-detail svg { flex-shrink: 0; color: var(--text-muted); }
.contact-person-detail a {
  color: var(--brand-mid);
  font-size: 0.85rem;
  word-break: break-all;
}
.contact-person-detail a:hover { color: var(--brand-dark); text-decoration: underline; }

.contact-response-note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ============================================================
   About Section (index)
   ============================================================ */
#about { background: var(--bg-light); border-top: 1px solid var(--border-light); }
#about p { max-width: 720px; }
#about .about-content h3 { color: var(--text-heading); }
#intro { background: var(--bg-white); }
#intro p { max-width: 800px; font-size: 1.05rem; line-height: 1.8; color: var(--text-body); }

/* ============================================================
   Footer — clean dark, minimal
   ============================================================ */
.footer {
  background: var(--brand-dark);
  color: rgba(232, 240, 241, 0.65);
  padding: 64px 0 28px;
  border-top: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 28px;
}

.footer-brand img {
  height: 36px;
  display: block;
  margin-bottom: 16px;
  opacity: 0.85;
}
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(232, 240, 241, 0.5);
  max-width: 240px;
  margin: 0;
}

.footer-col h5 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(232, 240, 241, 0.5);
  margin-bottom: 16px;
  margin-top: 0;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col a {
  font-size: 0.88rem;
  color: rgba(232, 240, 241, 0.65);
  transition: color var(--t);
}
.footer-col a:hover { color: #fff; }

.footer-col .footer-contact-item {
  font-size: 0.85rem;
  color: rgba(232, 240, 241, 0.6);
  margin-bottom: 12px;
  line-height: 1.55;
}
.footer-col .footer-contact-item strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(232, 240, 241, 0.4);
  margin-bottom: 2px;
}
.footer-col .footer-contact-item a {
  color: rgba(232, 240, 241, 0.65);
}
.footer-col .footer-contact-item a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 0.82rem;
  margin: 0;
  color: rgba(232, 240, 241, 0.35);
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a {
  font-size: 0.82rem;
  color: rgba(232, 240, 241, 0.4);
  transition: color var(--t);
}
.footer-bottom-links a:hover { color: rgba(232, 240, 241, 0.8); }

/* ============================================================
   Page Header (services-detailed, about)
   ============================================================ */
.page-header-section {
  padding-top: 104px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-light);
}
.page-header-section h1 { margin-top: 0; }

.page-header-bg {
  background:
    linear-gradient(rgba(8, 28, 30, 0.80), rgba(8, 28, 30, 0.80)),
    url('images/background5.png') center center / cover no-repeat;
  color: var(--text-on-dark);
  padding-top: 104px;
  padding-bottom: 60px;
  border-bottom: none;
}
.page-header-bg h1 { color: #fff; }
.page-header-bg p  { color: rgba(232, 240, 241, 0.78); font-size: 1.1rem; }

/* ============================================================
   Detailed Services Page
   ============================================================ */
.service-detail-section.has-bg-image {
  padding: 80px 40px;
  position: relative; z-index: 1;
  background-size: cover; background-position: center;
  color: var(--text-on-dark);
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
}
.service-detail-section.has-bg-image:last-of-type { border-bottom: none; }
.service-detail-section.has-bg-image::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(8, 28, 30, 0.86);
  z-index: -1;
}
#mining-details.has-bg-image     { background-image: url('images/geofisica.jpg'); }
#agriculture-details.has-bg-image { background-image: url('images/agriculture-drone.jpg'); }
#energy-details.has-bg-image      { background-image: url('images/solar-panels.jpg'); }

.service-detail-section.has-bg-image h2 {
  color: #fff; margin-top: 0;
  padding-bottom: 16px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  font-weight: 700;
}
.service-detail-section.has-bg-image .service-detail-item {
  background: rgba(255, 255, 255, 0.06);
  border-left: 3px solid rgba(255,255,255,0.25);
  padding: 24px; margin-bottom: 20px;
  border-radius: var(--r-sm);
}
.service-detail-section.has-bg-image .service-detail-item h4 {
  color: #fff; margin-top: 0; margin-bottom: 8px; font-weight: 600;
}
.service-detail-section.has-bg-image .service-detail-item p {
  color: rgba(232, 240, 241, 0.78); margin-bottom: 0; font-size: 0.95rem;
}
.service-detail-section.has-bg-image .btn-primary {
  background: #fff;
  color: var(--brand-dark);
  border-color: #fff;
}
.service-detail-section.has-bg-image .btn-primary:hover {
  background: #e8f0f1;
  border-color: #e8f0f1;
}

.service-detail-section:not(.has-bg-image) {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-light);
}
.service-detail-section:not(.has-bg-image):last-child { border-bottom: none; }
.service-detail-section h2:not(.has-bg-image h2) {
  margin-bottom: 36px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  font-weight: 700;
}

.service-detail-list { list-style: none; padding: 0; }
.service-detail-item {
  background: var(--bg-light);
  padding: 24px; margin-bottom: 20px;
  border-radius: var(--r-sm);
  border-left: 3px solid var(--brand-mid);
  scroll-margin-top: 90px;
}
.service-detail-section.section-subtle .service-detail-item { background: var(--bg-white); }
.service-detail-section:not(.has-bg-image) .service-detail-item h4 {
  color: var(--text-heading); font-weight: 600; font-size: 1.05rem;
  margin-top: 0; margin-bottom: 8px;
}
.service-detail-section:not(.has-bg-image) .service-detail-item p {
  color: var(--text-body); font-size: 0.93rem; margin-bottom: 0;
}
.cta-button-wrapper { margin-top: 36px; }

/* Specific sections on services-detailed.html */
#spectral-analysis, #terrain-analysis, #magnetometry-uav,
#vegetation-analysis, #thermal-mapping, #solar-termography,
#infrastructure-inspection, #a3d-modeling {
  color: var(--text-on-dark);
  padding: 120px 0 96px;
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  background-size: cover; background-position: center; background-attachment: fixed;
}
#spectral-analysis    { background-image: linear-gradient(rgba(8,28,30,0.80), rgba(8,28,30,0.80)), url('images/geofisica0.jpg'); }
#terrain-analysis     { background-image: linear-gradient(rgba(8,28,30,0.78), rgba(8,28,30,0.78)), url('images/background2.jpg'); }
#magnetometry-uav     { background-image: linear-gradient(rgba(8,28,30,0.78), rgba(8,28,30,0.78)), url('images/service-magnetometry.jpg'); }
#vegetation-analysis  { background-image: linear-gradient(rgba(8,28,30,0.72), rgba(8,28,30,0.72)), url('images/service-ndvi.jpg'); }
#thermal-mapping      { background-image: linear-gradient(rgba(8,28,30,0.72), rgba(8,28,30,0.72)), url('images/heladas.jpeg'); }
#solar-termography    { background-image: linear-gradient(rgba(8,28,30,0.72), rgba(8,28,30,0.72)), url('images/service-thermal.jpg'); }
#infrastructure-inspection { background-image: linear-gradient(rgba(8,28,30,0.72), rgba(8,28,30,0.72)), url('images/eolico.jpg'); }
#a3d-modeling         { background-image: linear-gradient(rgba(8,28,30,0.72), rgba(8,28,30,0.72)), url('images/urbano.jpeg'); }

/* Dark section variant */
.section-dark {
  background: var(--brand-dark);
  color: var(--text-on-dark);
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark p { color: rgba(232, 240, 241, 0.72); }

/* ============================================================
   Scroll-reveal — subtle, no bounce
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

.stagger-children > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.stagger-children.visible > *:nth-child(1) { transition-delay: 0.04s; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.10s; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.16s; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.22s; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.28s; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.34s; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.40s; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.46s; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(9) { transition-delay: 0.52s; opacity: 1; transform: none; }

/* Legacy */
.fade-in { opacity: 0; transform: translateY(14px); animation: fadeInAnim 0.7s ease-out forwards; }
@keyframes fadeInAnim { to { opacity: 1; transform: none; } }

/* ============================================================
   WhatsApp Float
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 999;
  width: 54px; height: 54px;
  background: #25d366;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t), box-shadow var(--t);
}
.whatsapp-float img { width: 28px; height: 28px; }
.whatsapp-float:hover {
  background: #1ebe5d;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 992px) {
  .hero { background-attachment: scroll; }
  .services-grid-container { grid-template-columns: repeat(2, 1fr); }
  .contact-container { grid-template-columns: 1fr; gap: 36px; }
  .contact-info { position: static; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; padding-right: 0; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--border-light); padding-top: 24px; }
  .stat-item:nth-child(4) { border-top: 1px solid var(--border-light); border-right: none; padding-top: 24px; }

  /* Mobile nav */
  .navbar-toggler { display: block; }
  .navbar-nav-wrapper { order: 1; width: 100%; flex-basis: 100%; }
  .navbar .container { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; }
  .navbar-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--brand-dark);
    position: absolute; top: 100%; left: 0;
    padding: 6px 0; gap: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .navbar-nav.show { display: flex; }
  .nav-item { margin-left: 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .nav-item:last-child { border-bottom: none; }
  .nav-link {
    padding: 13px 24px;
    border-radius: 0;
    font-size: 0.93rem;
  }
  .nav-link:hover, .nav-link.active {
    background: rgba(255,255,255,0.07);
  }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .hero { padding: 72px 0 64px; min-height: 85vh; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .btn-hero, .btn-hero-ghost { width: 100%; text-align: center; }

  .stats-section { padding: 36px 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-number { font-size: 2rem; }

  .services-grid-container {
    grid-template-columns: 1fr;
    background: none;
    border: none;
    gap: 1px;
    background: var(--border-light);
    border-radius: 0;
  }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer { padding: 48px 0 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .section-header { margin-bottom: 32px; }
  .contact-container { gap: 28px; }
}

@media (min-width: 993px) {
  .navbar-toggler { display: none; }
  .navbar-nav {
    display: flex !important;
    flex-direction: row;
    position: static;
    width: auto;
    background: transparent;
    box-shadow: none;
    border-top: none;
    padding: 0;
  }
  .nav-item { border-bottom: none; width: auto; }
  .nav-link { border-radius: var(--r-sm); }
  .nav-link:hover { background: rgba(255,255,255,0.1); }
}
