/* ============================================================
   GenNeXT ERP — Marketing Site Stylesheet
   Clean light corporate theme, blue accent
   ============================================================ */

:root {
  --primary: #00A0E3;
  --primary-dark: #0081b8;
  --primary-light: #e4f5fd;
  --navy: #0f1f3d;
  --text: #44516b;
  --text-light: #6b7a99;
  --bg: #ffffff;
  --bg-soft: #f5f8fd;
  --border: #e3e9f4;
  --success: #0e9f6e;
  --error: #e02424;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(15, 31, 61, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 31, 61, 0.10);
  --shadow-lg: 0 16px 48px rgba(15, 31, 61, 0.14);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  /* Guard: stop any stray wide element (e.g. the logo marquee) from
     creating horizontal scroll that clips the hero. `clip` (not hidden)
     preserves the sticky header. */
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--primary); text-decoration: none; }

h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; font-weight: 700; }

.container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 48px;
}

section { padding: 80px 0; }

.section-soft { background: var(--bg-soft); }

/* ---------- Section headings ---------- */
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-head .eyebrow {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 14px; }
.section-head p { color: var(--text-light); font-size: 17px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 15.5px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-lg { padding: 16px 34px; font-size: 16.5px; }

#quote { scroll-margin-top: 96px; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }

.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 65px; width: auto; }
.footer-brand .brand-logo { height: 72px; }
.brand-name { font-size: 21px; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.brand-name span { color: var(--primary); }
.brand-name small { font-size: 12px; font-weight: 600; color: var(--text-light); margin-left: 4px; letter-spacing: 0.12em; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav > a:not(.btn) {
  color: var(--text);
  font-size: 15.5px;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s;
}
.main-nav > a:not(.btn):hover { color: var(--primary); }
.main-nav > a.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.nav-cta { margin-left: 8px; padding: 10px 22px; }

/* ---------- Dropdown navigation (Zoho-style drill-down) ---------- */
.nav-item { position: relative; }
.drop-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  padding: 26px 0;
}
.drop-trigger:hover { color: var(--primary); }
.drop-trigger .chev { transition: transform 0.2s; }
.nav-item.open .drop-trigger .chev { transform: rotate(180deg); }
.dropdown {
  position: absolute;
  top: 100%;
  left: -14px;
  min-width: 340px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  z-index: 60;
}
.nav-item.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 11px 14px; border-radius: 9px; font-size: 14.5px; font-weight: 500; color: var(--navy); }
.dropdown a:hover { background: var(--primary-light); color: var(--primary-dark); }
.dropdown a b { display: block; font-size: 14.5px; font-weight: 600; color: var(--navy); }
.dropdown a small { display: block; font-size: 12.5px; color: var(--text-light); margin-top: 1px; }
.dropdown a:hover b { color: var(--primary-dark); }
.dropdown .drop-divider { height: 1px; background: var(--border); margin: 8px 6px; }
.dropdown .drop-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-light); padding: 8px 14px 4px; }

@media (min-width: 993px) {
  /* Hover opens dropdowns on desktop */
  .nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-item:hover .drop-trigger { color: var(--primary); }
  .nav-item:hover .drop-trigger .chev { transform: rotate(180deg); }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 0 9px;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: all 0.25s; }
.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); }

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 100px;
  background:
    radial-gradient(ellipse 60% 50% at 85% 10%, rgba(0, 160, 227, 0.10), transparent),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(0, 160, 227, 0.06), transparent),
    var(--bg-soft);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.hero h1 { font-size: clamp(34px, 5vw, 54px); letter-spacing: -0.02em; margin-bottom: 22px; }
.hero h1 .accent { color: var(--primary); }
.hero-sub { font-size: 18.5px; color: var(--text-light); max-width: 520px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-points { display: flex; gap: 24px; flex-wrap: wrap; }
.hero-points li { list-style: none; display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; color: var(--text); }
.hero-points svg { color: var(--success); flex-shrink: 0; }

/* Page hero (inner pages) */
.page-hero {
  padding: 16px 0 80px;
  min-height: 440px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 70% at 50% 0%, rgba(0, 160, 227, 0.08), transparent),
    var(--bg-soft);
}
.page-hero + section { padding-top: 40px; }
.page-hero h1 { font-size: clamp(30px, 4.5vw, 44px); margin-bottom: 14px; }
.page-hero p { font-size: 17.5px; color: var(--text-light); max-width: 820px; margin: 0 auto; }

/* Taller hero on industry pages (any page with a background image).
   Height scales with viewport width (matches source assets' ~3.16:1 aspect
   ratio) so the object-fit:cover crop stays consistent across screen sizes
   instead of getting more aggressive on wide monitors. */
.page-hero[style*="background-images"] {
  min-height: auto;
  height: clamp(380px, 31.67vw, 1200px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 44px;
}

/* Photo heroes (.jpg) — dark scrim + white text for readability.
   Illustration heroes (.svg) keep dark text on their light scenes. */
.page-hero[style*=".jpg"] { position: relative; }
.page-hero[style*=".jpg"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(15, 31, 61, 0.10);
}
.page-hero[style*=".jpg"] .container { position: relative; z-index: 1; }
.page-hero[style*=".jpg"] h1 { color: var(--navy); }
.page-hero[style*=".jpg"] h1 span { color: var(--primary) !important; }
.page-hero[style*=".jpg"] p  { color: rgba(255,255,255,0.92); }
.page-hero[style*=".jpg"] .eyebrow { color: var(--primary) !important; }

/* Video heroes (.mp4 background) — same look & position as the photo heroes.
   Height scales with viewport width (matches source assets' ~3.16:1 aspect
   ratio) so the object-fit:cover crop stays consistent across screen sizes
   instead of getting more aggressive on wide monitors. */
.page-hero.video-hero {
  min-height: auto;
  height: clamp(380px, 31.67vw, 1200px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 44px;
  position: relative;
  overflow: hidden;
}
.page-hero.video-hero .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.page-hero.video-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(15, 31, 61, 0.10);
}
.page-hero.video-hero .container { position: relative; z-index: 2; }
.page-hero.video-hero h1 { color: var(--navy); }
.page-hero.video-hero h1 span { color: var(--primary) !important; }
.page-hero.video-hero p  { color: rgba(255,255,255,0.92); }
.page-hero.video-hero .eyebrow { color: var(--primary) !important; }

/* Orange-accent variant for company pages (careers, etc.) */
.page-hero.video-hero.hero-orange h1 span,
.page-hero.video-hero.hero-orange .eyebrow { color: #EF7F1A !important; }

/* Frosted glass panel behind the industry hero text */
.hero-glass {
  max-width: 760px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 18px;
  padding: 8px 14px;
  box-shadow: 0 10px 44px rgba(15, 31, 61, 0.28);
}
.hero-glass p { margin-bottom: 0; }

/* ---------- Dashboard mockup (pure CSS visual) ---------- */
.mockup {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mockup-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.mockup-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mockup-bar i:nth-child(1) { background: #ff6b6b; }
.mockup-bar i:nth-child(2) { background: #ffc94d; }
.mockup-bar i:nth-child(3) { background: #51cf66; }
.mockup-bar b { margin-left: 10px; font-size: 12px; font-weight: 600; color: var(--text-light); }
.mockup-body { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; padding: 18px; }
.mockup-kpi { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.mockup-kpi small { display: block; font-size: 11px; color: var(--text-light); margin-bottom: 4px; }
.mockup-kpi strong { font-size: 18px; color: var(--navy); }
.mockup-kpi em { display: block; font-style: normal; font-size: 11px; font-weight: 600; color: var(--success); margin-top: 2px; }
.mockup-chart { grid-column: 1 / -1; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.mockup-chart small { display: block; font-size: 11px; color: var(--text-light); margin-bottom: 12px; font-weight: 600; }
.mockup-bars { display: flex; align-items: flex-end; gap: 10px; height: 110px; }
.mockup-bars i {
  flex: 1;
  background: linear-gradient(180deg, var(--primary), #66c9f0);
  border-radius: 6px 6px 2px 2px;
  opacity: 0.9;
}

/* ---------- Trust strip ---------- */
.trust { padding: 36px 0; border-bottom: 1px solid var(--border); }
.trust p { text-align: center; font-size: 13.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-light); margin-bottom: 20px; }
.trust-logos { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.trust-logos span {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-light);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 9px 20px;
  border-radius: 999px;
}

/* ---------- Client logos ---------- */
.clients-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.client-logo {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.client-logo:hover { border-color: rgba(0, 160, 227, 0.45); color: var(--primary); box-shadow: var(--shadow-sm); }
.client-logo img { max-height: 52px; width: auto; }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(0, 160, 227, 0.45); }
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--text-light); }
.card .card-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; margin-top: 16px; }

/* Module cards with capability lists */
.module-card ul { margin-top: 16px; }
.module-card li { list-style: none; display: flex; align-items: flex-start; gap: 9px; font-size: 14.5px; padding: 4px 0; color: var(--text); }
.module-card li svg { color: var(--primary); flex-shrink: 0; margin-top: 4px; }

/* ---------- Alternating feature rows ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0;
}
.feature-row + .feature-row { border-top: 1px solid var(--border); }
.feature-row.reverse .feature-text { order: 2; }
.feature-row.reverse .feature-visual { order: 1; }
.feature-text .eyebrow {
  display: inline-block;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.feature-text h3 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 16px; }
.feature-text p { color: var(--text-light); margin-bottom: 18px; }
.feature-text ul { margin: 0 0 8px; }
.feature-text li { list-style: none; display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; font-size: 15.5px; }
.feature-text li svg { color: var(--success); flex-shrink: 0; margin-top: 5px; }

.feature-visual {
  background: linear-gradient(135deg, var(--primary-light), #f0f5ff 60%, #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}
.feature-visual svg { color: var(--primary); }

/* ---------- Stats band ---------- */
.stats-band { background: linear-gradient(160deg, #65a7f0 0%, #5da3ed 100%); color: #fff; padding: 42px 0; }
.stats-head { text-align: center; margin-bottom: 26px; }
.stats-head h2 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 700; color: #fff; line-height: 1.3; margin: 0; min-height: 1.3em; }
.stats-accent { width: 46px; height: 3px; background: #6fcf5a; border-radius: 2px; margin: 12px auto 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
.stat { border-left: 1px solid rgba(255, 255, 255, 0.3); }
.stat:first-child { border-left: none; }
.stat strong { display: block; font-size: clamp(26px, 3.2vw, 34px); font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.stat span { font-size: 13.5px; color: rgba(255, 255, 255, 0.8); }

/* ---------- Testimonials ---------- */
.testimonial { display: flex; flex-direction: column; height: 100%; }
.testimonial .stars { color: #f5a623; font-size: 17px; letter-spacing: 2px; margin-bottom: 14px; }
.testimonial blockquote { font-size: 15.5px; color: var(--text); flex: 1; margin-bottom: 22px; }
.testimonial .person { display: flex; align-items: center; gap: 13px; }
.testimonial .avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.testimonial .person b { display: block; color: var(--navy); font-size: 15px; }
.testimonial .person small { color: var(--text-light); font-size: 13.5px; }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  padding: 20px 24px;
  cursor: pointer;
}
.faq-q .faq-arrow { flex-shrink: 0; color: var(--primary); transition: transform 0.25s; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { padding: 0 24px 20px; color: var(--text-light); font-size: 15.5px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, #0081b8, var(--primary));
  border-radius: var(--radius-lg);
  padding: 44px 34px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-banner h2 { color: #fff; font-size: clamp(20px, 3vw, 26px); margin-bottom: 10px; }
.cta-banner p { color: rgba(255, 255, 255, 0.88); font-size: 14.5px; max-width: 520px; margin: 0 auto 20px; }

/* ---------- About page ---------- */
.about-story { max-width: 800px; margin: 0 auto; }
.about-story p { margin-bottom: 18px; font-size: 16.5px; }
.why-item { display: flex; gap: 18px; align-items: flex-start; }
.why-item .card-icon { flex-shrink: 0; margin-bottom: 0; }

/* ---------- Values blocks (about) ---------- */
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.value-block { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 34px 30px; }
.value-block.wide { grid-column: 1 / -1; }
.value-block h3 { font-size: 20px; margin-bottom: 10px; }
.value-block p { font-size: 15.5px; color: var(--text-light); }

/* ---------- Journey timeline (about) ---------- */
.timeline { max-width: 760px; margin: 0 auto; position: relative; padding-left: 34px; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-item { position: relative; padding: 0 0 40px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ''; position: absolute; left: -31px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--primary-light); }
.tl-item .when { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); margin-bottom: 6px; }
.tl-item h3 { font-size: 20px; margin-bottom: 8px; }
.tl-item p { color: var(--text-light); font-size: 15.5px; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.contact-info .card { margin-bottom: 18px; display: flex; gap: 16px; align-items: flex-start; padding: 22px; }
.contact-info .card:hover { transform: none; }
.contact-info .card-icon { width: 44px; height: 44px; margin-bottom: 0; flex-shrink: 0; }
.contact-info h3 { font-size: 16px; margin-bottom: 4px; }
.contact-info p { font-size: 14.5px; }

.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow-md); }
.form-card h2 { font-size: 24px; margin-bottom: 6px; }
.form-card > p { color: var(--text-light); font-size: 15px; margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 14px; font-weight: 600; color: var(--navy); }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font);
  font-size: 15px;
  color: var(--navy);
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  background: var(--bg-soft);
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 160, 227, 0.15);
}
.form-field.invalid input,
.form-field.invalid select,
.form-field.invalid textarea { border-color: var(--error); }
.field-error { font-size: 13px; color: var(--error); display: none; }
.form-field.invalid .field-error { display: block; }

.form-success {
  display: none;
  background: #e6f7f0;
  border: 1px solid #b5e6d3;
  color: var(--success);
  font-weight: 600;
  border-radius: 10px;
  padding: 16px 20px;
  margin-top: 20px;
}
.form-success.show { display: flex; align-items: center; gap: 10px; }

.map-placeholder {
  margin-top: 48px;
  background: var(--bg-soft);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-light);
  font-size: 15px;
}
.map-placeholder svg { color: var(--primary); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.72); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-name small { color: rgba(255, 255, 255, 0.55); }
.footer-brand p { font-size: 14.5px; margin-top: 14px; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 18px; letter-spacing: 0.04em; text-transform: uppercase; }
.footer-col a { display: block; color: rgba(255, 255, 255, 0.72); font-size: 14.5px; padding: 5px 0; transition: color 0.15s; }
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: 14.5px; padding: 5px 0; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding: 16px 0 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  justify-content: center;
}
.footer-legal a { font-size: 12.5px; color: rgba(255,255,255,0.5); transition: color .15s; }
.footer-legal a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13.5px;
}
.footer-bottom a { color: rgba(255, 255, 255, 0.72); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 12px 24px 20px;
    max-height: calc(100vh - 74px);
    max-height: calc(100dvh - 74px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .main-nav.open { display: flex; }
  body.nav-open { overflow: hidden; }
  .main-nav > a:not(.btn) { padding: 13px 0; border-bottom: 1px solid var(--border); }
  .main-nav > a.active { border-bottom-color: var(--border); }
  .nav-cta { margin: 16px 0 0; justify-content: center; }

  /* Dropdowns become tap-to-expand accordions in the mobile menu */
  .nav-item { width: 100%; }
  .drop-trigger { width: 100%; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--border); }
  .dropdown {
    position: static;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 0 14px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-item.open .dropdown { max-height: 1200px; }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }

  .grid-2, .grid-3, .contact-grid, .form-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 32px; padding: 40px 0; }
  .feature-row.reverse .feature-text { order: 1; }
  .feature-row.reverse .feature-visual { order: 2; }
  .hero { padding: 60px 0 70px; }
  .cta-banner { padding: 34px 18px; }
  .form-card { padding: 26px 20px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ---------- Floating WhatsApp chat button ---------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0;
  height: 58px;
  padding: 0 16px;
  border-radius: 30px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.45), 0 2px 8px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  max-width: 58px;
  transition: max-width 0.35s ease, box-shadow 0.25s ease, transform 0.2s ease;
  animation: wa-pulse 2.6s ease-out infinite;
}
.wa-float svg { flex-shrink: 0; }
.wa-label {
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  margin-left: 0;
  transition: opacity 0.25s ease 0.05s, margin-left 0.25s ease;
}
.wa-float:hover, .wa-float:focus-visible {
  max-width: 230px;
  animation: none;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55), 0 3px 10px rgba(0, 0, 0, 0.22);
}
.wa-float:hover .wa-label, .wa-float:focus-visible .wa-label {
  opacity: 1;
  margin-left: 10px;
}
@keyframes wa-pulse {
  0%   { box-shadow: 0 6px 22px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70%  { box-shadow: 0 6px 22px rgba(37, 211, 102, 0.45), 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 6px 22px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0); }
}
@media (prefers-reduced-motion: reduce) { .wa-float { animation: none; } }
@media (max-width: 480px) {
  .wa-float { right: 16px; bottom: 16px; height: 54px; max-width: 54px; padding: 0 14px; }
}
