/* ==========================================================================
   GUS Technologies LLP — Design System
   ========================================================================== */

:root {
  /* Colors */
  --navy-900: #071426;
  --navy-800: #0a1e3a;
  --navy-700: #0f2a52;
  --navy-600: #15396b;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-100: #e8f0fe;
  --amber-500: #f5a524;
  --amber-600: #e08e0b;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f8fafc;
  --white: #ffffff;

  /* Type */
  --font-head: "Poppins", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
  --font-logo: var(--font-head);
  --font-logo-size-desktop: 22px;
  --font-logo-size-mobile: 13px;
  --logo-img-h-desktop: 36px;
  --logo-img-w-desktop: auto;
  --logo-img-h-mobile: 28px;
  --logo-img-w-mobile: auto;

  /* Layout */
  --container-w: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(10, 30, 58, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 30, 58, 0.10);
  --shadow-lg: 0 20px 48px rgba(10, 30, 58, 0.16);
  --transition: 0.25s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }
body {
  margin: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--navy-900);
  line-height: 1.25;
  margin: 0 0 16px;
  font-weight: 600;
}
p { margin: 0 0 16px; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--alt { background: var(--gray-50); }
.section--navy { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: var(--gray-200); }
.section--navy h2, .section--navy h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-100);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section--navy .eyebrow {
  color: var(--amber-500);
  background: rgba(245, 165, 36, 0.12);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); }
.section-head p { color: var(--gray-500); font-size: 17px; margin: 0; }
.section--navy .section-head p { color: var(--gray-300); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15.5px;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--amber-500);
  color: var(--navy-900);
  box-shadow: 0 8px 20px rgba(245, 165, 36, 0.28);
}
.btn-primary:hover { background: var(--amber-600); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(245,165,36,0.35); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

.btn-outline-dark {
  background: transparent;
  border-color: var(--navy-700);
  color: var(--navy-800);
}
.btn-outline-dark:hover { background: var(--navy-800); color: var(--white); }

.btn-block { width: 100%; }
.btn-sm { padding: 11px 22px; font-size: 14px; }

.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--gray-200);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 84px;
}
.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.logo-image {
  height: var(--logo-img-h-desktop);
  width: var(--logo-img-w-desktop);
  aspect-ratio: 162 / 178;
  display: block;
}
.logo-image[hidden] { display: none; }
.logo .logo-text {
  font-family: var(--font-logo);
  font-size: var(--font-logo-size-desktop);
  color: var(--navy-800);
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Wrapped around the trailing "LLP" at runtime (js/site-config.js) to match
   the reference logo, where the LLP suffix runs noticeably smaller than the
   main wordmark. */
.logo .logo-text .logo-text-llp {
  font-size: 0.6em;
  margin-left: 0.15em;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.main-nav > ul { display: flex; gap: 32px; align-items: center; }
.main-nav a.nav-link {
  font-weight: 500;
  font-size: 15px;
  color: var(--gray-700);
  padding: 10px 0;
  position: relative;
  transition: color var(--transition);
}
.main-nav a.nav-link:hover, .main-nav a.nav-link.active { color: var(--blue-600); }
.main-nav a.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0; bottom: 2px;
  width: 100%; height: 2px;
  background: var(--amber-500);
}
/* Icon, "Menu" eyebrow, and quick-contact footer only belong to the
   mobile drawer layout — hidden by default so they don't spill into the
   horizontal desktop nav, and switched back on inside the mobile media
   query below. */
.nav-icon,
.nav-eyebrow,
.main-nav-footer { display: none; }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: -20px;
  width: 300px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  border: 1px solid var(--gray-200);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--gray-700);
  font-weight: 500;
}
.dropdown a:hover { background: var(--gray-50); color: var(--blue-600); }

.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone { font-size: 14px; font-weight: 600; color: var(--navy-800); display: flex; align-items: center; gap: 8px; }
.header-phone svg { flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--navy-900); border-radius: 2px; transition: var(--transition); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--navy-600) 100%);
  color: var(--white);
  overflow: hidden;
  padding: 110px 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(59,130,246,0.35), transparent 45%),
    radial-gradient(circle at 15% 90%, rgba(245,165,36,0.18), transparent 40%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  right: -8%;
  top: -20%;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 90px rgba(255,255,255,0.02);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.hero.hero--center { max-width: none; text-align: center; }
.hero.hero--center .hero-inner { max-width: 820px; margin: 0 auto; }

/* Two-column hero with illustration (homepage) */
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.hero-grid .hero-inner { max-width: none; }
.hero-visual { position: relative; }
.hero-visual > svg,
.hero-visual > img {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 30px 50px rgba(2, 8, 20, 0.45));
}
.hero-visual > img { border-radius: var(--radius-lg); object-fit: cover; aspect-ratio: 1 / 1; }
.floating-badge {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--navy-900);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  font-weight: 700;
  font-size: 13.5px;
  white-space: nowrap;
}
.floating-badge svg { width: 20px; height: 20px; color: var(--blue-600); flex-shrink: 0; }
.floating-badge.badge-top { top: 0%; right: 2%; }
.floating-badge.badge-bottom { bottom: 4%; left: -2%; }
.floating-badge span.sub { display: block; font-weight: 500; font-size: 11.5px; color: var(--gray-500); }
.hero h1 {
  color: var(--white);
  font-size: clamp(32px, 4.4vw, 52px);
  letter-spacing: -0.01em;
}
.hero .lead {
  font-size: 18px;
  color: var(--gray-300);
  max-width: 640px;
  margin-bottom: 36px;
}
.hero-stats {
  display: flex;
  gap: 16px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 16px 22px;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}
.stat-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(245, 165, 36, 0.45);
}
.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(245, 165, 36, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber-500);
  flex-shrink: 0;
}
.stat-icon svg { width: 22px; height: 22px; }
.stat-body { display: flex; flex-direction: column; }
.stat-number {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--amber-500);
  line-height: 1.1;
}
.stat-body span { font-size: 12.5px; color: var(--gray-300); margin-top: 2px; }

.breadcrumb { font-size: 14px; color: var(--gray-300); margin-bottom: 22px; }
.breadcrumb a { color: var(--gray-300); }
.breadcrumb a:hover { color: var(--amber-500); }
.breadcrumb span { color: var(--amber-500); }

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: transparent; }
.card .icon-badge { margin-bottom: 20px; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--gray-500); font-size: 15px; margin-bottom: 0; }

.icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-600);
}
.icon-badge.amber { background: rgba(245,165,36,0.14); color: var(--amber-600); }

/* Solution cards with link */
.solution-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.solution-card .learn-more {
  margin-top: auto;
  padding-top: 18px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--blue-600);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.solution-card .learn-more svg { transition: transform var(--transition); }
.solution-card:hover .learn-more svg { transform: translateX(4px); }

/* Why choose (feature) list */
.feature {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.feature .icon-badge { flex-shrink: 0; }
.feature h3 { font-size: 17.5px; margin-bottom: 6px; }
.feature p { font-size: 14.5px; color: var(--gray-500); margin-bottom: 0; }

/* Industries */
.industry-chip {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 22px 16px;
  text-align: center;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--navy-800);
  transition: all var(--transition);
}
.industry-chip:hover { border-color: var(--blue-500); color: var(--blue-600); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.industry-chip .icon-badge { margin: 0 auto 12px; width: 46px; height: 46px; }

/* Process steps */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
}
.process-step { position: relative; text-align: left; z-index: 1; }
.process-step .num {
  font-family: var(--font-head);
  font-size: 42px;
  font-weight: 700;
  color: var(--blue-100);
  -webkit-text-stroke: 1.5px var(--blue-500);
  margin-bottom: 14px;
  display: block;
}
.process-step h3 { font-size: 17.5px; }
.process-step p { color: var(--gray-500); font-size: 14.5px; margin: 0; }

/* Checklist */
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 15.5px;
  color: var(--gray-700);
}
.check-list li svg { flex-shrink: 0; margin-top: 3px; color: var(--blue-600); }
.section--navy .check-list li { color: var(--gray-200); }

/* Two column layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split img, .split .media-block { width: 100%; }
.media-block {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy-800), var(--blue-600));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), transparent 55%);
}
.media-block::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.14) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
  opacity: 0.6;
  pointer-events: none;
}
.media-block svg { position: relative; z-index: 1; width: 82%; height: auto; color: rgba(255,255,255,0.92); }
.media-block.illustration-only { background: linear-gradient(135deg, var(--navy-800), var(--blue-600)); }
.media-block img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* Stat strip */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-strip strong { display: block; font-family: var(--font-head); font-size: 34px; color: var(--navy-900); }
.stat-strip span { font-size: 14px; color: var(--gray-500); }
.section--navy .stat-strip strong { color: var(--amber-500); }
.section--navy .stat-strip span { color: var(--gray-300); }

/* Testimonial / quote */
.quote-block {
  background: var(--white);
  border-left: 4px solid var(--amber-500);
  border-radius: var(--radius-md);
  padding: 32px 34px;
  box-shadow: var(--shadow-sm);
}
.quote-block p { font-size: 17px; color: var(--navy-800); font-style: italic; margin-bottom: 14px; }
.quote-block .who { font-weight: 600; font-size: 14px; color: var(--gray-500); font-style: normal; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-600));
  border-radius: var(--radius-lg);
  padding: 60px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 260px; height: 260px;
  background: rgba(245,165,36,0.15);
  border-radius: 50%;
}
.cta-banner h2, .cta-banner p { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--white); font-size: 28px; margin-bottom: 8px; }
.cta-banner p { color: var(--gray-300); margin: 0; font-size: 15.5px; }
.cta-banner .cta-row { position: relative; z-index: 1; }

/* Related services */
.related-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all var(--transition);
}
.related-card:hover { border-color: var(--blue-500); box-shadow: var(--shadow-sm); }
.related-card .icon-badge { width: 46px; height: 46px; flex-shrink: 0; }
.related-card h4 { font-size: 15.5px; margin: 0 0 3px; }
.related-card span { font-size: 13px; color: var(--blue-600); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--gray-300); padding: 76px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo { font-family: var(--font-head); font-weight: 700; font-size: 21px; color: var(--white); margin-bottom: 14px; }
.footer-col h4 { color: var(--white); font-size: 15px; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { font-size: 14.5px; color: var(--gray-300); transition: color var(--transition); }
.footer-col a:hover { color: var(--amber-500); }
.footer-about p { font-size: 14.5px; color: var(--gray-500); max-width: 320px; }
.footer-contact li { display: flex; gap: 10px; font-size: 14.5px; margin-bottom: 16px; align-items: flex-start; }
.footer-contact svg { flex-shrink: 0; margin-top: 3px; color: var(--amber-500); }
.social-row { display: flex; gap: 10px; margin-top: 20px; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.social-row a:hover { background: var(--amber-500); color: var(--navy-900); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 13.5px;
  color: var(--gray-500);
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--navy-800); margin-bottom: 8px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--gray-900);
  background: var(--gray-50);
  transition: all var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--blue-100);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 13px; color: var(--gray-500); margin-top: 14px; text-align: center; }
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.form-success.show { display: block; }
.form-error {
  text-align: center;
  margin-top: 14px;
  color: #dc2626;
  font-size: 14px;
  font-weight: 600;
}
.form-success .icon-badge { margin: 0 auto 18px; width: 64px; height: 64px; background: rgba(37,99,235,0.1); }

/* ---------- Contact info cards ---------- */
.contact-info-card {
  display: flex;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-200);
}
.contact-info-card:last-child { border-bottom: none; }
.contact-info-card h4 { font-size: 16px; margin-bottom: 4px; }
.contact-info-card p { font-size: 14.5px; color: var(--gray-500); margin: 0; }

/* ---------- Values / About ---------- */
.value-card { text-align: center; padding: 30px 20px; }
.value-card .icon-badge { margin: 0 auto 18px; }

/* ---------- Page hero small (inner pages) ---------- */
.page-hero { padding: 90px 0 80px; }


/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-list span {
  background: var(--blue-100);
  color: var(--blue-600);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 100px;
}

/* ---------- Brand logos carousel ---------- */
.brand-carousel-section { padding: 56px 0; border-bottom: 1px solid var(--gray-200); }
.brand-carousel-heading {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 32px;
}
.brand-carousel { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.brand-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: brand-scroll linear infinite;
  animation-duration: 30s;
}
.brand-track a, .brand-track span.brand-logo-wrap { display: flex; align-items: center; flex-shrink: 0; }
.brand-track img {
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.55);
  transition: filter var(--transition);
}
.brand-track a:hover img { filter: grayscale(0) opacity(1); }
@keyframes brand-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .brand-track { animation: none; overflow-x: auto; }
}

/* ---------- WhatsApp floating chat button ---------- */
.whatsapp-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  z-index: 550;
  transition: transform var(--transition);
}
.whatsapp-fab:hover { transform: scale(1.08); }
.whatsapp-fab svg { width: 30px; height: 30px; fill: #ffffff; }
.whatsapp-fab[hidden] { display: none; }
body:has(.main-nav.open) .whatsapp-fab { display: none; }

/* ---------- Admin-uploadable image slots (replace an empty slot's placeholder once an image is set) ---------- */
.image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}
.image-placeholder svg { width: 34px; height: 34px; opacity: 0.7; }
.hero-visual .image-placeholder {
  border: 1.5px dashed rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3.4;
  padding: 40px;
}

/* ---------- FAQ accordion (AEO/GEO content block) ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16.5px;
  color: var(--navy-900);
  padding: 20px 4px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  line-height: 1;
  color: var(--blue-600);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 4px 20px; color: var(--gray-500); margin: 0; font-size: 15px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .media-block { order: -1; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

/* Nav collapses to a hamburger well before true "mobile" widths — the full
   desktop header (logo + 5 nav links + phone + CTA button) needs more room
   than a typical tablet gives it, especially with a longer site title. */
@media (max-width: 1100px) {
  /* Dimmed backdrop behind the slide-in drawer — sits above page content
     (z-index 390) but below the drawer itself (400) and the WhatsApp fab,
     which is hidden separately while the drawer is open. */
  body:has(.main-nav.open)::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(10, 30, 58, 0.45);
    z-index: 390;
    animation: fade-in 0.25s ease;
  }
  @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
  /* The drawer's box must stay clear of the header row (0-84px) — the header
     has a higher z-index but that only wins against siblings stacked in the
     SAME parent context; since .main-nav lives inside .site-header and has
     its own positive z-index, letting its box reach top:0 would paint it
     over the header's own Contact/close-button row. Starting at 84px avoids
     the overlap entirely. */
  .main-nav {
    position: fixed;
    top: 84px;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(320px, 82vw);
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 24px 0 0;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: -16px 0 40px rgba(10, 30, 58, 0.18);
    z-index: 400;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav > .nav-eyebrow { display: inline-block; margin: 0 20px 14px; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; padding: 0 14px; }
  .main-nav a.nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 12px;
    border-radius: 10px;
    font-weight: 600;
    transition: background var(--transition), color var(--transition);
  }
  .main-nav .nav-icon { display: block; flex-shrink: 0; color: var(--blue-600); opacity: 0.75; transition: opacity var(--transition); }
  .main-nav a.nav-link:hover,
  .main-nav a.nav-link.active { background: var(--blue-100); color: var(--blue-600); }
  .main-nav a.nav-link:hover .nav-icon,
  .main-nav a.nav-link.active .nav-icon { opacity: 1; }
  .main-nav a.nav-link.active::after { content: none; }
  /* Not space-between: with 3 flex children (icon, text, chevron) that would
     spread all three apart instead of grouping icon+text together — the
     chevron's own margin-left:auto (below) is what pushes it to the end. */
  .has-dropdown > .nav-link::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform var(--transition);
    flex-shrink: 0;
    margin-left: auto;
  }
  .has-dropdown.open > .nav-link::after { transform: rotate(-135deg); }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--gray-200);
    width: auto;
    margin: 2px 0 0 34px;
    padding: 0 0 0 12px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin 0.3s ease;
  }
  .has-dropdown.open .dropdown { max-height: 400px; margin: 2px 0 8px 34px; }
  .dropdown a { padding: 12px 10px; font-size: 14px; border-radius: 8px; transition: background var(--transition), color var(--transition); }
  /* Anchored to the bottom of the drawer via margin-top:auto — turns the
     leftover vertical space below a short link list into a useful
     quick-contact panel instead of empty white space. */
  .main-nav-footer {
    margin-top: auto;
    padding: 18px 20px 26px;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .mnf-contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy-800);
  }
  .mnf-contact-link svg { flex-shrink: 0; color: var(--blue-600); }
  .main-nav-footer .btn-block { margin-top: 4px; }
  .header-phone { display: none; }
  .nav-toggle {
    display: flex;
    position: relative;
    width: 26px;
    height: 18px;
    padding: 0;
  }
  .nav-toggle span {
    position: absolute;
    left: 0;
    width: 26px;
    height: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
  }
  .nav-toggle span:nth-child(1) { top: 0; }
  .nav-toggle span:nth-child(2) { top: 8px; }
  .nav-toggle span:nth-child(3) { top: 16px; }
  .nav-toggle.active span:nth-child(1) { top: 8px; transform: rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { top: 8px; transform: rotate(-45deg); }
  .header-cta .btn { padding: 11px 18px; font-size: 14px; }
  .logo-text { max-width: 190px; }
}

@media (max-width: 860px) {
  .logo-text { max-width: 220px; font-size: var(--font-logo-size-mobile); }
  .logo { font-size: 16px; gap: 4px; }
  .logo-image { height: var(--logo-img-h-mobile); width: var(--logo-img-w-mobile); }
  .header-cta { gap: 10px; }
  /* Removed on mobile entirely (not just shortened) so the brand name has
     the room to display in full — it's still reachable via the "Request a
     Free Consultation" button inside the mobile drawer itself. */
  .header-cta .btn-primary.btn-sm { display: none; }
  .whatsapp-fab { bottom: 20px; right: 16px; width: 52px; height: 52px; }
  .whatsapp-fab svg { width: 26px; height: 26px; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 70px 0; }
  .hero-stats { gap: 10px; }
  .stat-card { flex: 1 1 100%; padding: 14px 18px; }
  .cta-banner { padding: 40px 28px; flex-direction: column; text-align: center; }
  .cta-banner .cta-row { justify-content: center; }
  .form-card { padding: 26px; }
  .form-row { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .brand-track { gap: 40px; }
  .brand-track img { height: 30px; max-width: 100px; }
}

/* Prevent iOS Safari auto-zoom on form focus (inputs must be >=16px) */
@media (max-width: 720px) {
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
  }
}
