/* ==========================================================================
   MESH CONSULTING - Master Stylesheet
   Variant A: Editorial Authority & Civil Engineering Rigor
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Root Variables & Design Tokens (from design_brief.json)
   -------------------------------------------------------------------------- */
:root {
  /* Brand Palette */
  --background: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --primary: #1e5b8e;
  --primary-hover: #164670;
  --primary-light: #eff6fb;
  --primaryText: #ffffff;
  --accent: #d97706;
  --accent-hover: #b45309;
  --accent-light: #fffbeb;
  --dark: #0b1929;
  --dark-surface: #13273e;
  --darkText: #ffffff;
  --dark-muted: #94a3b8;
  --border: #e2e8f0;
  --border-dark: #1e3a5f;

  /* Typography */
  --font-display: 'Source Serif 4', Georgia, serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Fluid Type Scale (clamp) */
  --text-xs: clamp(0.75rem, 0.2vw + 0.7rem, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.25vw + 0.8rem, 0.9375rem);
  --text-base: clamp(1rem, 0.3vw + 0.95rem, 1.0625rem);
  --text-lg: clamp(1.125rem, 0.5vw + 1rem, 1.25rem);
  --text-xl: clamp(1.25rem, 0.8vw + 1.1rem, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.2vw + 1.2rem, 1.875rem);
  --text-3xl: clamp(1.875rem, 2vw + 1.4rem, 2.375rem);
  --text-4xl: clamp(2.25rem, 3vw + 1.5rem, 3.125rem);
  --text-5xl: clamp(2.75rem, 4.5vw + 1.75rem, 4rem);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Layout & Spacing */
  --container-max: 1280px;
  --section-pad-y: clamp(3.5rem, 7vw, 6.5rem);
  --transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background-color: var(--background);
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background-color: var(--background);
  color: var(--text);
}

img, picture, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  text-wrap: balance;
}

p {
  max-width: 75ch;
}

ul, ol {
  list-style: none;
}

/* Accessibility & Focus States */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.skip-to-content {
  position: absolute;
  top: -100px;
  inset-inline-start: 1rem;
  background: var(--dark);
  color: var(--darkText);
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  z-index: 9999;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
  box-shadow: var(--shadow-lg);
}

.skip-to-content:focus {
  top: 1rem;
}

/* --------------------------------------------------------------------------
   3. Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.section {
  padding-block: var(--section-pad-y);
  position: relative;
}

.section-dark {
  background-color: var(--dark);
  color: var(--darkText);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--darkText);
}

.section-surface {
  background-color: var(--surface);
}

.section-header {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  max-width: 800px;
}

.section-header.text-center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-dark .eyebrow {
  color: var(--accent);
}

.eyebrow-accent {
  color: var(--accent);
}

.section-title {
  font-size: var(--text-3xl);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: var(--text-lg);
  color: var(--muted);
  line-height: 1.6;
}

.section-dark .section-desc {
  color: var(--dark-muted);
}

/* --------------------------------------------------------------------------
   4. Buttons & Badges
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.875rem 1.75rem;
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.25;
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  min-height: 48px;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primaryText);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: var(--primaryText);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--surface);
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  color: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-accent {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.btn-dark {
  background-color: var(--dark);
  color: var(--darkText);
}

.btn-dark:hover {
  background-color: #173252;
  color: var(--darkText);
}

.btn-outline-light {
  background-color: transparent;
  color: var(--darkText);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--darkText);
  color: var(--darkText);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  font-size: var(--text-xs);
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-accent {
  background: var(--accent-light);
  color: var(--accent-hover);
}

/* --------------------------------------------------------------------------
   5. Site Header & Sticky Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 1.5rem;
}

/* Brand Logo */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.brand-icon-wrap {
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(30, 91, 142, 0.25);
}

.brand-icon-wrap svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--primary);
  line-height: 1.1;
}

.brand-tagline {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* Desktop Nav */
.nav-desktop {
  display: none;
}

@media (min-width: 992px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
}

.nav-desktop ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-desktop a {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text);
  padding: 0.5rem 0.25rem;
  position: relative;
  transition: color var(--transition);
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--primary);
}

.nav-desktop a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
}

.header-actions {
  display: none;
  align-items: center;
  gap: 1.25rem;
}

@media (min-width: 992px) {
  .header-actions {
    display: flex;
  }
}

.header-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text);
}

.header-phone-link:hover {
  color: var(--primary);
}

.header-phone-link svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  color: var(--text);
  transition: all var(--transition);
}

@media (min-width: 992px) {
  .mobile-nav-toggle {
    display: none;
  }
}

.mobile-nav-toggle:hover {
  background-color: var(--background);
  color: var(--primary);
}

.mobile-nav-toggle svg {
  width: 26px;
  height: 26px;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: none;
  overflow: hidden;
}

.mobile-drawer.open {
  display: block;
}

.drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 25, 41, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-drawer.open .drawer-overlay {
  opacity: 1;
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(85vw, 360px);
  background: var(--surface);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  padding: 1.5rem;
}

.mobile-drawer.open .drawer-panel {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.drawer-close {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--muted);
  border: 1px solid var(--border);
}

.drawer-close:hover {
  color: var(--text);
  background: var(--background);
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.drawer-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.drawer-links a:hover,
.drawer-links a.active {
  background-color: var(--primary-light);
  color: var(--primary);
}

.drawer-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   6. Hero Section (Split Layout)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(175deg, #ffffff 0%, var(--background) 100%);
  padding-block: clamp(3rem, 6vw, 5.5rem);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-badge-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-headline {
  font-size: var(--text-4xl);
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.01em;
}

.hero-subheadline {
  font-size: var(--text-lg);
  color: var(--muted);
  line-height: 1.6;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.875rem 1.25rem;
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-inline-start: 4px solid var(--accent);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.hero-proof svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 0.5rem;
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.05em;
  flex-wrap: wrap;
}

.hero-trust-bar span.vendor {
  color: var(--text);
  font-weight: 700;
  background: #ffffff;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.hero-visual {
  position: relative;
  padding-bottom: 3.5rem;
}

.hero-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
}

.hero-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--dark);
}

.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-card:hover .hero-img-wrap img {
  transform: scale(1.03);
}

.hero-overlay-tag {
  position: absolute;
  top: 1rem;
  inset-inline-start: 1rem;
  background: rgba(11, 25, 41, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-card-meta {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-top: 1px solid var(--border);
}

.hero-card-meta-text {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
}

.hero-card-meta-sub {
  font-size: var(--text-xs);
  color: var(--muted);
}

.hero-floating-stat {
  position: absolute;
  bottom: 0.5rem;
  inset-inline-end: 1rem;
  background: #92400e;
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--text-sm);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   7. Services Overview (Four Core Service Lines)
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: clamp(1.75rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.service-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: all var(--transition);
}

.service-card:hover .service-card-icon {
  background: var(--primary);
  color: #ffffff;
}

.service-card-icon svg {
  width: 28px;
  height: 28px;
}

.service-card-title {
  font-size: var(--text-xl);
  margin-bottom: 0.75rem;
  color: var(--text);
}

.service-card-desc {
  font-size: var(--text-base);
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: var(--text-sm);
}

.service-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--text);
}

.service-feature-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.service-card-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--primary);
}

.service-card-cta:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Service Images Showcase Grid */
.service-visual-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3.5rem;
}

@media (min-width: 768px) {
  .service-visual-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.visual-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.visual-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.visual-caption {
  padding: 1rem 1.25rem;
  background: var(--surface);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
}

/* --------------------------------------------------------------------------
   8. Signature Moment: Editorial Case Study (Scalfaro / PHL Airport)
   -------------------------------------------------------------------------- */
.signature-case-study {
  background: var(--dark);
  color: var(--darkText);
  position: relative;
  overflow: hidden;
}

.signature-case-study::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(30, 91, 142, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

.signature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 992px) {
  .signature-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.signature-content {
  position: relative;
  z-index: 2;
}

.signature-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: rgba(217, 119, 6, 0.15);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.signature-title {
  font-size: var(--text-3xl);
  color: var(--darkText);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

/* Pull-Quote */
.pullquote-card {
  position: relative;
  background: var(--dark-surface);
  border: 1px solid var(--border-dark);
  border-inline-start: 4px solid var(--accent);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}

.pullquote-card svg.quote-icon {
  width: 36px;
  height: 36px;
  color: rgba(217, 119, 6, 0.4);
  margin-bottom: 0.75rem;
}

.pullquote-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  line-height: 1.6;
  color: #f1f5f9;
  margin-bottom: 1.5rem;
}

.pullquote-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-info h4 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  color: #ffffff;
}

.author-info p {
  font-size: var(--text-sm);
  color: var(--dark-muted);
}

/* Stat Grid */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-dark);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--dark-muted);
  margin-top: 0.35rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.signature-media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-dark);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.signature-media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.signature-media-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(11, 25, 41, 0.95), transparent);
  padding: 1.5rem;
  font-size: var(--text-sm);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   9. Engineering Advantage (Logic Chain Breakdown)
   -------------------------------------------------------------------------- */
.logic-chain-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .logic-chain-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .logic-chain-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.logic-step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}

.logic-step-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.step-num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.step-arrow {
  color: var(--muted);
  opacity: 0.4;
}

.step-title {
  font-size: var(--text-lg);
  margin-bottom: 0.5rem;
  color: var(--text);
}

.step-desc {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   10. Featured Projects Grid
   -------------------------------------------------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.project-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.project-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--dark);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-thumb img {
  transform: scale(1.04);
}

.project-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(11, 25, 41, 0.85);
  color: #ffffff;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: var(--text-xl);
  margin-bottom: 0.5rem;
}

.project-scope {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.project-desc {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.project-specs {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.spec-tag {
  background: var(--background);
  color: var(--text);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  border: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   11. Regional Coverage & Hardware Compatibility
   -------------------------------------------------------------------------- */
.coverage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 992px) {
  .coverage-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.states-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-block: 1.25rem;
}

.state-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.hardware-table-wrap {
  margin-top: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.hardware-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: var(--text-sm);
}

.hardware-table th {
  background: var(--background);
  padding: 0.875rem 1.25rem;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.hardware-table td {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.hardware-table tr:last-child td {
  border-bottom: none;
}

.hardware-table td strong {
  color: var(--text);
}

/* --------------------------------------------------------------------------
   12. Leadership Credentials
   -------------------------------------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.team-photo-wrap {
  width: 100%;
  aspect-ratio: 1 / 1.15;
  overflow: hidden;
  background: var(--background);
}

.team-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.team-card:hover .team-photo-wrap img {
  transform: scale(1.03);
}

.team-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.team-name {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.team-bio {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.55;
}

.team-meta {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: var(--text-xs);
  color: var(--text);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   13. Technical FAQ (AEO Answer-First Structure)
   -------------------------------------------------------------------------- */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 900px;
  margin-inline: auto;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item[open] {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text);
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  width: 24px;
  height: 24px;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  font-size: var(--text-base);
  color: var(--muted);
  line-height: 1.65;
  border-top: 1px solid transparent;
}

.faq-item[open] .faq-answer {
  border-top-color: var(--background);
  padding-top: 1rem;
}

/* --------------------------------------------------------------------------
   14. Contact & Consultation Section
   -------------------------------------------------------------------------- */
.contact-section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
}

@media (min-width: 992px) {
  .contact-section-grid {
    grid-template-columns: 1fr 1.15fr;
  }
}

.contact-info-card {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.office-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.office-title {
  font-size: var(--text-lg);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--primary);
}

.office-title svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.office-address {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.office-details {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: var(--text-sm);
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.office-details a {
  font-weight: 600;
}

.extensions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.ext-badge {
  background: var(--background);
  border: 1px solid var(--border);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  color: var(--text);
}

/* Consultation Form */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-lg);
}

.form-header {
  margin-bottom: 1.75rem;
}

.form-header h3 {
  font-size: var(--text-2xl);
  margin-bottom: 0.5rem;
}

.form-header p {
  font-size: var(--text-sm);
  color: var(--muted);
}

.consult-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
}

.form-label span.req {
  color: #dc2626;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: #ffffff;
  color: var(--text);
  font-size: var(--text-base);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 91, 142, 0.15);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.file-upload-box {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  background: var(--background);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.file-upload-box:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.file-upload-box svg {
  width: 32px;
  height: 32px;
  color: var(--primary);
  margin: 0 auto 0.5rem;
}

.form-status {
  padding: 1rem;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  display: none;
}

.form-status.success {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-status.error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Map Embed */
.map-embed-wrap {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-top: 1.5rem;
  aspect-ratio: 16 / 9;
}

.map-embed-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --------------------------------------------------------------------------
   15. Site Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--dark);
  color: var(--darkText);
  padding-top: clamp(3.5rem, 6vw, 5rem);
  padding-bottom: 2rem;
  border-top: 1px solid var(--border-dark);
  margin-top: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--border-dark);
}

@media (min-width: 640px) {
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-top {
    grid-template-columns: 1.4fr 0.9fr 1fr 1.1fr;
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-brand .brand-logo {
  color: #ffffff;
}

.footer-brand .brand-name {
  color: #ffffff;
}

.footer-brand .brand-tagline {
  color: var(--dark-muted);
}

.footer-bio {
  font-size: var(--text-sm);
  color: var(--dark-muted);
  line-height: 1.6;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--dark-surface);
  border: 1px solid var(--border-dark);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.footer-col-title {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav-list a {
  color: var(--dark-muted);
  font-size: var(--text-sm);
  transition: color var(--transition);
}

.footer-nav-list a:hover {
  color: #ffffff;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: var(--text-sm);
  color: var(--dark-muted);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-item a {
  color: #ffffff;
  font-weight: 600;
}

.footer-contact-item a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  font-size: var(--text-xs);
  color: var(--dark-muted);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-credits {
  color: #94a3b8;
}

/* --------------------------------------------------------------------------
   16. Back to Top Button
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

/* --------------------------------------------------------------------------
   17. Page Hero (Secondary Pages)
   -------------------------------------------------------------------------- */
.page-hero {
  background: var(--dark);
  color: var(--darkText);
  padding-block: clamp(3rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--border-dark);
  position: relative;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 50%, rgba(30, 91, 142, 0.3) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 840px;
}

.page-hero-title {
  font-size: var(--text-4xl);
  color: var(--darkText);
  margin-bottom: 1rem;
}

.page-hero-desc {
  font-size: var(--text-lg);
  color: var(--dark-muted);
  line-height: 1.6;
}

.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-dark);
  font-size: var(--text-sm);
  color: #cbd5e1;
}

.page-hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-hero-meta-item svg {
  color: var(--accent);
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------------------
   18. Content Tables & Technical Matrices
   -------------------------------------------------------------------------- */
.data-table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-block: 2rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 640px;
}

.data-table th {
  background: var(--background);
  padding: 1rem 1.25rem;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  border-bottom: 2px solid var(--border);
}

.data-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
  color: var(--muted);
}

.data-table tr:hover td {
  background-color: var(--background);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table td strong {
  color: var(--text);
}

/* --------------------------------------------------------------------------
   19. Motion & Scroll Reveals (Respecting Prefers-Reduced-Motion)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}
