/* ==========================================================================
   EAGLE EYE SECURITY - ALWAYS VIGILANT
   Production Stylesheet (HTML5 / CSS3 / Vanilla CSS)
   Brand Colors: Navy (#152c55), Red (#d12525), White (#ffffff)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Core Brand Colors */
  --brand-navy: #152c55;
  --brand-red: #d12525;
  --brand-red-hover: #b01c1c;
  --brand-white: #ffffff;

  /* Extended Surface & Contrast Tokens (Executive Sentinel) */
  --canvas-dark: #091326;
  --canvas-surface: #0d1c36;
  --canvas-surface-high: #13223f;
  --border-dark: #1e3a6c;
  --border-light: #e2e8f0;
  --bg-subtle: #f8fafc;
  --bg-card-light: #f4f7fb;

  /* Typography Colors */
  --text-primary-dark: #152c55;
  --text-secondary-dark: #4b5d78;
  --text-muted-dark: #64748b;
  --text-primary-light: #ffffff;
  --text-secondary-light: #a4b3ca;
  --text-muted-light: #5c6e88;

  /* Typography */
  --font-family-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Geometry & Elevation */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;

  --shadow-sm: 0 2px 6px rgba(21, 44, 85, 0.06);
  --shadow-md: 0 4px 16px rgba(21, 44, 85, 0.08);
  --shadow-lg: 0 10px 30px rgba(21, 44, 85, 0.12);
  --shadow-tactical: 0 8px 30px rgba(9, 19, 38, 0.25);
  --shadow-red: 0 4px 18px rgba(209, 37, 37, 0.3);

  --transition-fast: 0.18s ease-in-out;
  --transition-base: 0.28s ease-in-out;
  --transition-slow: 0.45s cubic-bezier(0.16, 1, 0.3, 1);

  --max-width: 1280px;
  --gutter: 1.5rem;
}

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

html {
  font-family: var(--font-family-primary);
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--brand-white);
  color: var(--text-primary-dark);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  background-color: var(--brand-white);
  overflow-x: hidden;
}

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

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

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

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

ul, ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   3. Utility & Layout Container
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.section-subtle {
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-dark {
  background-color: var(--canvas-dark);
  color: var(--brand-white);
  position: relative;
  overflow: hidden;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: 0.85rem;
  background: rgba(209, 37, 37, 0.08);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(209, 37, 37, 0.2);
}

.section-dark .section-tag {
  background: rgba(209, 37, 37, 0.18);
  border-color: rgba(209, 37, 37, 0.4);
}

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--brand-navy);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-dark .section-title {
  color: var(--brand-white);
}

.section-description {
  font-size: 1.05rem;
  color: var(--text-secondary-dark);
  line-height: 1.65;
}

.section-dark .section-description {
  color: var(--text-secondary-light);
}

/* --------------------------------------------------------------------------
   4. Buttons & Badges (Executive Sentinel Spec)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.65rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--brand-red);
  color: var(--brand-white);
  box-shadow: 0 4px 12px rgba(209, 37, 37, 0.25);
}

.btn-primary:hover, .btn-primary:focus-visible {
  background-color: var(--brand-red-hover);
  box-shadow: var(--shadow-red);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--brand-navy);
  color: var(--brand-white);
  border: 1px solid var(--border-dark);
}

.btn-secondary:hover, .btn-secondary:focus-visible {
  background-color: #1a386b;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--brand-navy);
  border: 1.5px solid var(--brand-navy);
}

.btn-outline:hover, .btn-outline:focus-visible {
  background-color: var(--brand-navy);
  color: var(--brand-white);
  transform: translateY(-1px);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--brand-white);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover, .btn-outline-white:focus-visible {
  background-color: var(--brand-white);
  color: var(--brand-navy);
  border-color: var(--brand-white);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.btn-lg {
  padding: 1.05rem 2.2rem;
  font-size: 0.95rem;
}

.btn-block {
  width: 100%;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  background-color: #152c55;
  color: var(--brand-white);
  border: 1px solid var(--border-dark);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #00ff88;
}

.status-dot.red {
  background-color: var(--brand-red);
  box-shadow: 0 0 8px var(--brand-red);
}

/* --------------------------------------------------------------------------
   5. Top Utility Bar
   -------------------------------------------------------------------------- */
.utility-bar {
  background-color: var(--brand-navy);
  color: var(--brand-white);
  font-size: 0.775rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 500;
}

.utility-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.utility-left, .utility-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.utility-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #c9d5e8;
}

.utility-item a:hover {
  color: var(--brand-white);
  text-decoration: underline;
}

.utility-item svg {
  width: 14px;
  height: 14px;
  stroke: var(--brand-red);
}

.emergency-pill {
  background: rgba(209, 37, 37, 0.25);
  border: 1px solid var(--brand-red);
  color: #ffffff;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   6. Main Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--brand-white);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-base);
}

.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(21, 44, 85, 0.08);
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  transition: height var(--transition-fast);
}

.site-header.is-scrolled .header-inner {
  height: 72px;
}

/* Brand Logo Area */
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-logo-img {
  width: auto;
  height: 58px;
  max-width: 250px;
  object-fit: contain;
  transition: height var(--transition-fast);
}

.site-header.is-scrolled .brand-logo-img {
  height: 48px;
}

/* Nav Menu Desktop */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand-navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--brand-red);
  transition: width var(--transition-base);
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-red);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Hamburger Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background-color: var(--brand-navy);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.mobile-nav-toggle.is-open .hamburger-line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
  background-color: var(--brand-red);
}

.mobile-nav-toggle.is-open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.is-open .hamburger-line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
  background-color: var(--brand-red);
}

/* Mobile Nav Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 82%;
  max-width: 360px;
  height: 100vh;
  background-color: var(--brand-white);
  box-shadow: -8px 0 30px rgba(9, 19, 38, 0.25);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  padding: 5.5rem 2rem 2.5rem 2rem;
  transition: right var(--transition-slow);
  overflow-y: auto;
}

.mobile-drawer.is-open {
  right: 0;
}

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(9, 19, 38, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.mobile-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.mobile-nav-link {
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-navy);
  letter-spacing: 0.05em;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  color: var(--brand-red);
  padding-left: 0.5rem;
}

/* --------------------------------------------------------------------------
   7. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  background-color: var(--brand-white);
  padding-top: 3.5rem;
  padding-bottom: 4.5rem;
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-badge-wrap {
  margin-bottom: 1.25rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: rgba(21, 44, 85, 0.06);
  border: 1px solid rgba(21, 44, 85, 0.15);
  border-left: 3px solid var(--brand-red);
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-xs);
  font-size: 0.775rem;
  font-weight: 800;
  color: var(--brand-navy);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-headline {
  font-size: 3.25rem;
  font-weight: 900;
  line-height: 1.15;
  color: var(--brand-navy);
  letter-spacing: -0.025em;
  margin-bottom: 1.4rem;
}

.hero-headline span.highlight-red {
  color: var(--brand-red);
}

.hero-lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text-secondary-dark);
  margin-bottom: 2.25rem;
  max-width: 600px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

/* Hero Key Pillars / Mini Stats */
.hero-trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-light);
}

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

.trust-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.trust-value span {
  color: var(--brand-red);
}

.trust-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero Visual Card */
.hero-visual-container {
  position: relative;
}

.hero-card-frame {
  position: relative;
  background-color: var(--canvas-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-tactical);
  border: 1px solid var(--border-dark);
}

.hero-card-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}

.hero-card-footer {
  background-color: var(--canvas-dark);
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-card-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-card-tagline {
  font-size: 0.75rem;
  color: var(--brand-red);
  font-weight: 800;
  letter-spacing: 0.08em;
}

/* Floating telemetry badge */
.hero-float-badge {
  position: absolute;
  bottom: -15px;
  left: -20px;
  background: var(--brand-white);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--brand-red);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  z-index: 10;
}

.badge-icon-box {
  width: 40px;
  height: 40px;
  background-color: rgba(209, 37, 37, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-red);
}

.badge-text-title {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--brand-navy);
}

.badge-text-sub {
  font-size: 0.75rem;
  color: var(--text-muted-dark);
}

/* --------------------------------------------------------------------------
   8. Trust & Capabilities Strip
   -------------------------------------------------------------------------- */
.capabilities-strip {
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
  padding: 2.5rem 0;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.capability-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--brand-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.capability-card:hover {
  border-color: var(--brand-navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.capability-icon-wrap {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: rgba(21, 44, 85, 0.06);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-navy);
}

.capability-card:hover .capability-icon-wrap {
  background: var(--brand-red);
  color: var(--brand-white);
}

.capability-heading {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 0.2rem;
}

.capability-desc {
  font-size: 0.8rem;
  color: var(--text-secondary-dark);
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   9. Core Services Section (9 Complete Services)
   -------------------------------------------------------------------------- */
.services-section {
  background-color: var(--brand-white);
}

.services-filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 3rem;
}

.filter-tab-btn {
  padding: 0.55rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  color: var(--brand-navy);
  background-color: var(--bg-card-light);
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.filter-tab-btn:hover {
  background-color: rgba(21, 44, 85, 0.08);
  border-color: var(--brand-navy);
}

.filter-tab-btn.active {
  background-color: var(--brand-navy);
  color: var(--brand-white);
  border-color: var(--brand-navy);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background-color: var(--brand-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

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

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

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.service-badge-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(9, 19, 38, 0.85);
  backdrop-filter: blur(4px);
  color: var(--brand-white);
  border: 1px solid var(--border-dark);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-xs);
}

.service-badge-pill.priority {
  border-color: var(--brand-red);
  color: #ff8585;
}

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

.service-index {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--brand-red);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.service-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.service-brief {
  font-size: 0.9rem;
  color: var(--text-secondary-dark);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.service-points {
  margin-bottom: 1.75rem;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-point-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: var(--brand-navy);
  font-weight: 600;
}

.service-point-item svg {
  width: 16px;
  height: 16px;
  color: var(--brand-red);
  flex-shrink: 0;
  margin-top: 2px;
}

.service-card-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

/* --------------------------------------------------------------------------
   10. Interactive Service Modal / Scope Drawer
   -------------------------------------------------------------------------- */
.service-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.service-modal.is-active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 19, 38, 0.75);
  backdrop-filter: blur(6px);
}

.modal-dialog {
  position: relative;
  background: var(--brand-white);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  border-radius: var(--radius-md);
  overflow-y: auto;
  border: 1.5px solid var(--border-dark);
  box-shadow: 0 20px 50px rgba(9, 19, 38, 0.4);
  z-index: 10;
  animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 1.5rem 2rem;
  background-color: var(--brand-navy);
  color: var(--brand-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.modal-close-btn {
  color: var(--brand-white);
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.3rem;
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.modal-close-btn:hover {
  opacity: 1;
  color: var(--brand-red);
}

.modal-body {
  padding: 2rem;
}

.modal-subtitle {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: 0.4rem;
}

.modal-description {
  font-size: 1rem;
  color: var(--text-secondary-dark);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.modal-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.75rem;
  background: var(--bg-card-light);
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.spec-item {
  font-size: 0.825rem;
}

.spec-label {
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 0.2rem;
}

.spec-val {
  color: var(--text-muted-dark);
}

.modal-protocols-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.protocol-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--brand-navy);
  font-weight: 500;
}

.protocol-item svg {
  color: var(--brand-red);
  flex-shrink: 0;
  margin-top: 3px;
}



/* --------------------------------------------------------------------------
   12. Operational Standards (4-Step Deployment)
   -------------------------------------------------------------------------- */
.process-section {
  background-color: var(--brand-white);
}

.process-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.process-step-card {
  background: var(--bg-card-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  position: relative;
  transition: all var(--transition-base);
}

.process-step-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-navy);
  box-shadow: var(--shadow-md);
}

.step-num-badge {
  font-size: 2.25rem;
  font-weight: 900;
  color: rgba(21, 44, 85, 0.15);
  line-height: 1;
  margin-bottom: 1rem;
  transition: color var(--transition-fast);
}

.process-step-card:hover .step-num-badge {
  color: var(--brand-red);
}

.step-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 0.65rem;
}

.step-desc {
  font-size: 0.875rem;
  color: var(--text-secondary-dark);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   13. Industries We Protect
   -------------------------------------------------------------------------- */
.industries-section {
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.industry-box {
  background: var(--brand-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.industry-box:hover {
  border-color: var(--brand-red);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.industry-icon {
  width: 36px;
  height: 36px;
  background: rgba(21, 44, 85, 0.05);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-red);
}

.industry-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--brand-navy);
}

.industry-detail {
  font-size: 0.8rem;
  color: var(--text-secondary-dark);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   14. Client Logo Section (Infinite Horizontal Marquee)
   -------------------------------------------------------------------------- */
.clients-section {
  background-color: var(--brand-white);
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

.marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 2.5rem;
  animation: marqueeScroll 32s linear infinite;
}

.marquee-container:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 1.25rem)); }
}

.client-logo-item {
  width: 220px;
  height: 68px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.client-logo-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.client-logo-item:hover {
  transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   15. FAQ Section (GEO / AI Search Optimized Accordion)
   -------------------------------------------------------------------------- */
.faq-section {
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: var(--brand-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.is-open {
  border-color: var(--brand-navy);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-navy);
  gap: 1rem;
  background: transparent;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq-trigger:hover {
  color: var(--brand-red);
}

.faq-icon-arrow {
  width: 20px;
  height: 20px;
  stroke: var(--brand-navy);
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

.faq-item.is-open .faq-icon-arrow {
  transform: rotate(180deg);
  stroke: var(--brand-red);
}

.faq-content {
  display: none;
  padding: 0 1.5rem 1.5rem 1.5rem;
  font-size: 0.925rem;
  color: var(--text-secondary-dark);
  line-height: 1.65;
  border-top: 1px solid var(--border-light);
  padding-top: 1.2rem;
}

.faq-item.is-open .faq-content {
  display: block;
}

/* --------------------------------------------------------------------------
   16. Contact & Enquiry Section
   -------------------------------------------------------------------------- */
.contact-section {
  background-color: var(--brand-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: flex-start;
}

/* Left Contact Info Card */
.contact-info-panel {
  background-color: var(--brand-navy);
  color: var(--brand-white);
  border-radius: var(--radius-md);
  padding: 2.75rem 2.25rem;
  border: 1px solid var(--border-dark);
  box-shadow: var(--shadow-tactical);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-header-tag {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-red);
}

.info-headline {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.25;
}

.info-lead {
  font-size: 0.95rem;
  color: var(--text-secondary-light);
  line-height: 1.6;
}

.info-contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.info-icon-box {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--brand-red);
}

.info-contact-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a4b3ca;
}

.info-contact-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-white);
}

.info-contact-val a:hover {
  color: var(--brand-red);
  text-decoration: underline;
}

/* Right Form Wrapper */
.contact-form-card {
  background: var(--bg-card-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

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

.form-full {
  grid-column: span 2;
}

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

.form-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-navy);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-label span.req {
  color: var(--brand-red);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 0.925rem;
  background: var(--brand-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--brand-navy);
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--brand-navy);
  box-shadow: 0 0 0 2px rgba(21, 44, 85, 0.15);
}

.form-input.is-invalid, .form-select.is-invalid, .form-textarea.is-invalid {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 2px rgba(209, 37, 37, 0.15);
}

.field-error-msg {
  font-size: 0.75rem;
  color: var(--brand-red);
  font-weight: 600;
  display: none;
}

.form-field.has-error .field-error-msg {
  display: block;
}

/* Form Notification Messages */
.form-status-alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: none;
}

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

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

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--brand-navy);
  color: var(--brand-white);
  border-top: 3px solid var(--brand-red);
  padding-top: 4.5rem;
  padding-bottom: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand-crest {
  width: 220px;
  height: auto;
  margin-bottom: 1.25rem;
}

.footer-about-text {
  font-size: 0.875rem;
  color: #a4b3ca;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-white);
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--brand-red);
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-link-item a {
  font-size: 0.85rem;
  color: #c9d5e8;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-link-item a:hover {
  color: var(--brand-white);
  transform: translateX(4px);
}

.footer-bottom-bar {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: #8795b5;
}

.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Floating Back-to-Top Button */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background-color: var(--brand-red);
  color: var(--brand-white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(209, 37, 37, 0.4);
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--brand-red-hover);
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   18. Responsive Media Queries
   Comprehensive coverage for Desktop, Tablet (1024px, 768px) and Mobile (640px, 480px, 320px)
   -------------------------------------------------------------------------- */

/* Tablet Landscape & Medium Devices (<= 1024px) */
@media (max-width: 1024px) {
  :root {
    --gutter: 1.25rem;
  }

  /* Header & Navigation: switch to mobile drawer for clean tablet layout */
  .nav-menu {
    display: none;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .header-inner {
    height: 74px;
  }

  .site-header.is-scrolled .header-inner {
    height: 64px;
  }

  .brand-logo-img {
    height: 48px;
    max-width: 190px;
  }

  /* Utility Bar */
  .utility-bar-inner {
    font-size: 0.74rem;
  }

  .utility-left {
    gap: 1rem;
  }

  .utility-right {
    gap: 1.15rem;
  }

  /* Hero Section */
  .hero-section {
    padding-top: 3rem;
    padding-bottom: 3.75rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .hero-headline {
    font-size: 2.65rem;
  }

  .hero-lead {
    font-size: 1.05rem;
    max-width: 100%;
  }

  .hero-float-badge {
    position: static;
    margin-top: 1rem;
    width: 100%;
    box-sizing: border-box;
  }

  /* Services Grid */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }

  /* Capabilities Grid */
  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }



  /* Process & Industries */
  .process-steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  /* Contact Section */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

/* Tablet Portrait & Large Handhelds (<= 768px) */
@media (max-width: 768px) {
  :root {
    --gutter: 1rem;
  }

  /* Utility Bar: Keep vital contact numbers visible as a compact top bar */
  .utility-bar {
    padding: 0.35rem 0;
    font-size: 0.72rem;
  }

  .utility-left {
    display: none;
  }

  .utility-right {
    width: 100%;
    justify-content: center;
    gap: 1.15rem;
    flex-wrap: wrap;
  }

  .utility-item {
    font-size: 0.72rem;
    gap: 0.35rem;
  }

  /* Header */
  .header-inner {
    height: 68px;
  }

  .site-header.is-scrolled .header-inner {
    height: 60px;
  }

  .brand-logo-img {
    height: 44px;
    max-width: 170px;
  }

  .header-actions {
    gap: 0.75rem;
  }

  .header-actions .btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
  }

  /* General Section Spacing */
  .section {
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .section-title {
    font-size: 1.85rem;
    line-height: 1.22;
  }

  .section-description {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* Hero Section */
  .hero-section {
    padding-top: 2.25rem;
    padding-bottom: 3rem;
  }

  .hero-headline {
    font-size: 2.15rem;
    line-height: 1.2;
    margin-bottom: 1.15rem;
  }

  .hero-lead {
    font-size: 0.975rem;
    line-height: 1.6;
    margin-bottom: 1.65rem;
  }

  .hero-cta-group {
    gap: 0.75rem;
    margin-bottom: 2rem;
  }

  .hero-trust-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding-top: 1.5rem;
    text-align: center;
  }

  .trust-value {
    font-size: 1.3rem;
  }

  .trust-label {
    font-size: 0.68rem;
  }

  .hero-card-footer {
    padding: 0.85rem 1rem;
    font-size: 0.75rem;
  }

  .hero-card-status {
    font-size: 0.72rem;
  }

  .hero-card-tagline {
    font-size: 0.7rem;
  }

  /* Core Services */
  .services-filter-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 0.75rem;
    margin-bottom: 2rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.5rem;
  }

  .services-filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .filter-tab-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.55rem 1.05rem;
    font-size: 0.78rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-card-body {
    padding: 1.35rem;
  }

  .service-title {
    font-size: 1.25rem;
  }

  .service-card-actions {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .service-card-actions .btn {
    flex: 1 1 130px;
    text-align: center;
  }



  /* Process & Industries */
  .process-steps-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .process-step-card {
    padding: 1.5rem 1.25rem;
  }

  .industries-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .industry-box {
    padding: 1.25rem;
  }

  /* Marquee */
  .clients-section {
    padding: 3.25rem 0;
  }

  .client-logo-item {
    width: 175px;
    height: 56px;
  }

  .marquee-track {
    gap: 1.5rem;
  }

  /* FAQ */
  .faq-trigger {
    padding: 1.15rem 1.25rem;
    font-size: 0.95rem;
  }

  .faq-content {
    padding: 0 1.25rem 1.25rem 1.25rem;
    font-size: 0.875rem;
  }

  /* Contact Section */
  .contact-info-panel {
    padding: 2rem 1.35rem;
  }

  .info-headline {
    font-size: 1.6rem;
  }

  .contact-form-card {
    padding: 2rem 1.35rem;
  }

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

  .form-full {
    grid-column: span 1;
  }

  /* Ensure inputs have at least 16px font-size to prevent iOS Safari auto-zoom */
  .form-input, .form-select, .form-textarea, .calc-select, .calc-input {
    font-size: 16px;
    min-height: 44px;
  }

  /* Service Detail Modal */
  .modal-dialog {
    width: 95%;
    max-width: 520px;
    max-height: 88vh;
  }

  .modal-header {
    padding: 1.15rem 1.25rem;
  }

  .modal-title {
    font-size: 1.15rem;
  }

  .modal-body {
    padding: 1.25rem;
  }

  .modal-specs-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand-crest {
    max-width: 190px;
  }

  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  /* Mobile Drawer */
  .mobile-drawer {
    width: 86%;
    max-width: 320px;
    height: 100dvh;
    height: 100vh;
    padding: 4.5rem 1.5rem 2rem 1.5rem;
  }
}

/* Compact Mobile Devices (<= 480px) */
@media (max-width: 480px) {
  :root {
    --gutter: 0.85rem;
  }

  .section {
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
  }

  .section-title {
    font-size: 1.65rem;
  }

  /* Brand Logo & Header */
  .brand-logo-img {
    height: 38px;
    max-width: 140px;
  }

  .header-actions .btn {
    padding: 0.4rem 0.65rem;
    font-size: 0.68rem;
  }

  /* Hero Section */
  .hero-section {
    padding-top: 1.75rem;
    padding-bottom: 2.5rem;
  }

  .hero-headline {
    font-size: 1.8rem;
    line-height: 1.22;
  }

  .hero-badge {
    font-size: 0.68rem;
    padding: 0.35rem 0.65rem;
    letter-spacing: 0.05em;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.65rem;
  }

  .hero-cta-group .btn {
    width: 100%;
    padding: 0.9rem 1.25rem;
  }

  .hero-trust-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
  }

  .trust-value {
    font-size: 1.15rem;
  }

  .trust-label {
    font-size: 0.6rem;
    letter-spacing: 0.02em;
  }

  .capabilities-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .capability-card {
    padding: 0.95rem;
  }



  /* Contact Cards */
  .contact-info-panel,
  .contact-form-card {
    padding: 1.5rem 1rem;
  }

  .info-headline {
    font-size: 1.4rem;
  }

  /* Modal */
  .modal-dialog {
    width: 96%;
  }

  .modal-header,
  .modal-body {
    padding: 1rem;
  }

  .back-to-top {
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
}

/* Small Screens & iPhone SE (<= 360px) */
@media (max-width: 360px) {
  :root {
    --gutter: 0.75rem;
  }

  .brand-logo-img {
    height: 34px;
    max-width: 125px;
  }

  .header-actions .btn {
    display: none; /* Hide top button on 320px screens to leave full space for logo & hamburger */
  }

  .hero-headline {
    font-size: 1.55rem;
  }

  .hero-trust-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .section-title {
    font-size: 1.45rem;
  }

  .service-card-actions {
    flex-direction: column;
  }

  .service-card-actions .btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   19. Accessibility & Reduced Motion Support
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .marquee-track {
    animation: none;
    transform: none;
    overflow-x: auto;
  }
}

:focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 2px;
}
