/* ==========================================================================
   THE CLOUD GEEKS - MODERN DESIGN SYSTEM & PRODUCTION STYLESHEET
   Headquarters: Dover, Delaware
   "Designing the future of business"
   ========================================================================== */

/* --- CSS Reset & Base Variables --- */
:root {
  /* Brand Colors */
  --primary: #002664;
  --primary-rgb: 0, 38, 100;
  --primary-dark: #001740;
  --primary-light: #0d3b8e;
  --primary-gradient: linear-gradient(135deg, #001740 0%, #002664 55%, #0a3578 100%);
  
  /* High-Contrast Accessible Gold/Amber Accent (WCAG AA Compliant >= 4.5:1 on white) */
  --accent: #b47500;
  --accent-rgb: 180, 117, 0;
  --accent-hover: #8f5d00;
  --accent-light: #fffbeb;
  --accent-border: #fcd34d;
  --accent-glow: #f59e0b; /* For dark backgrounds */
  --accent-gradient: linear-gradient(135deg, #b47500 0%, #d97706 100%);

  /* Neutrals & Surfaces */
  --bg-main: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-muted: #f1f5f9;
  --bg-card: #ffffff;
  --bg-dark: #06152b;
  --bg-dark-card: #0c2344;
  
  /* Typography Colors */
  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #ffffff;
  --text-light-muted: #cbd5e1;

  /* Borders & Shadows */
  --border-color: #e2e8f0;
  --border-focus: #002664;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 20px 30px -10px rgba(0, 38, 100, 0.18);

  /* Geometry & Tokens */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --container-max: 1240px;
  --header-height: 84px;
}

/* Box Sizing & Fluid Overflow Rules */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip; /* Eliminates horizontal scroll while keeping position:sticky functional */
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  color: var(--text-body);
  background-color: var(--bg-main);
  overflow-x: clip; /* Required for sticky header support */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Responsive Media & Flex/Grid Child Safety */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

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

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

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* Accessible Focus States */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Skip to Main Content Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 1rem;
}

/* Container Utility */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section-padding {
  padding-block: clamp(3rem, 5vw, 5.5rem);
}

/* Typography Scale */
h1, h2, h3, h4 {
  color: var(--primary);
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2rem, 1.6rem + 2vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.35rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.6rem);
}

.lead-text {
  font-size: clamp(1.1rem, 1.02rem + 0.3vw, 1.28rem);
  color: var(--text-body);
  line-height: 1.7;
}

/* Section Header Utility */
.section-header {
  text-align: center;
  max-width: 800px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.85rem;
}

.badge-dark {
  background-color: rgba(245, 158, 11, 0.15);
  color: var(--accent-glow);
  border-color: rgba(245, 158, 11, 0.3);
}

.section-header h2 {
  margin-bottom: 0.85rem;
}

.section-header p {
  color: var(--text-muted);
}

/* Buttons & CTAs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.75rem 1.6rem;
  font-weight: 700;
  font-size: 0.98rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  text-align: center;
}

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

.btn-primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 38, 100, 0.25);
}

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

.btn-accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(180, 117, 0, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.85);
}

.btn-outline-white:hover {
  background: #ffffff;
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-sm {
  min-height: 38px;
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
}

/* ==========================================================================
   HEADER & NAVIGATION
   Direct child of <body>, strict position: sticky; top: 0;
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: box-shadow var(--transition-normal);
}

.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(0, 38, 100, 0.1);
}

/* Top Notification / Utility Bar */
.top-bar {
  background: var(--primary-dark);
  color: var(--text-light-muted);
  font-size: 0.85rem;
  padding-block: 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.top-bar-contact {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-light-muted);
}

.top-bar-item a {
  color: #ffffff;
  font-weight: 600;
}

.top-bar-item a:hover {
  color: var(--accent-glow);
  text-decoration: underline;
}

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

.top-bar-link {
  color: var(--text-light-muted);
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--transition-fast);
}

.top-bar-link:hover {
  color: #ffffff;
}

/* Main Navigation Bar */
.main-header {
  padding-block: 0.75rem;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  min-width: 0;
}

.brand-logo-img {
  width: 52px;
  height: 54px;
  object-fit: contain;
  flex-shrink: 0;
}

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

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.brand-tagline {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* Desktop Navigation Menu */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.25rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-item:focus-within > .nav-link {
  color: var(--accent);
  background-color: var(--accent-light);
}

.nav-link.active {
  color: var(--accent);
  background-color: var(--accent-light);
  border-bottom: 2px solid var(--accent);
}

.nav-chevron {
  width: 12px;
  height: 12px;
  transition: transform var(--transition-fast);
}

.nav-item:hover .nav-chevron,
.nav-item:focus-within .nav-chevron {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 0.5rem;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-fast);
  z-index: 100;
}

.dropdown-right {
  left: auto;
  right: 0;
}

.nav-item:hover > .dropdown-menu,
.nav-item:focus-within > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 0.6rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-body);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.dropdown-link:hover,
.dropdown-link:focus {
  color: var(--primary);
  background-color: var(--bg-muted);
  padding-left: 1.1rem;
}

/* Header CTAs */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-header-quote {
  background: var(--accent);
  color: #ffffff;
  border-radius: var(--radius-sm);
  padding: 0.55rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 700;
  border: none;
  box-shadow: var(--shadow-sm);
}

.btn-header-quote:hover {
  background: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-header-portal {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  border-radius: var(--radius-sm);
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-header-portal:hover {
  background: var(--primary);
  color: #ffffff;
}

/* Mobile Menu Toggle Button (Touch target >= 48px) */
.mobile-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--primary);
  flex-shrink: 0;
  transition: background-color var(--transition-fast);
}

.mobile-nav-toggle:hover {
  background: var(--bg-muted);
}

.hamburger-icon {
  width: 24px;
  height: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-icon span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: all var(--transition-fast);
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-xl);
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
  padding: 1.25rem 1.5rem 2rem;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-nav-item {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.35rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  min-height: 48px;
}

.mobile-nav-link.active {
  color: var(--accent);
}

.mobile-submenu-toggle {
  background: transparent;
  border: none;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary);
}

.mobile-submenu {
  display: none;
  list-style: none;
  padding-left: 1rem;
  padding-bottom: 0.5rem;
}

.mobile-submenu.is-open {
  display: block;
}

.mobile-sub-link {
  display: block;
  padding: 0.6rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-body);
  min-height: 44px;
}

.mobile-drawer-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ==========================================================================
   HERO CAROUSEL / SLIDESHOW
   Modern, zero CLS, fully visible text on all screen sizes
   ========================================================================== */
.hero-slider-section {
  position: relative;
  background: var(--bg-dark);
  color: #ffffff;
  overflow: hidden;
  min-height: clamp(480px, 60vh, 680px);
  display: flex;
  align-items: center;
}

.hero-slider-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: clamp(480px, 60vh, 680px);
  display: grid;
  grid-template-areas: "slide";
}

.hero-slide {
  grid-area: slide;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  height: 100%;
  padding-block: 4rem;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* Accessible Overlay Gradient to ensure contrast against background photography */
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(6, 21, 43, 0.94) 0%,
    rgba(6, 21, 43, 0.85) 50%,
    rgba(6, 21, 43, 0.65) 100%
  );
  z-index: 1;
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-glow);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.hero-title {
  color: #ffffff;
  font-size: clamp(2.2rem, 1.8rem + 2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-description {
  color: var(--text-light-muted);
  font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.25rem);
  line-height: 1.7;
  margin-bottom: 2rem;
}

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

/* Slider Controls */
.slider-controls {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.slider-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slider-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.08);
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.slider-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.slider-dot.is-active {
  background: var(--accent-glow);
  width: 32px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   METRICS & CREDIBILITY BAR
   ========================================================================== */
.metrics-bar {
  background: var(--primary);
  color: #ffffff;
  padding-block: 2.25rem;
  border-bottom: 4px solid var(--accent);
}

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

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
}

.metric-number {
  font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.6rem);
  font-weight: 800;
  color: var(--accent-glow);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.metric-label {
  font-size: 0.92rem;
  color: var(--text-light-muted);
  font-weight: 600;
}

/* ==========================================================================
   "WHO WE ARE" OVERVIEW SECTION
   ========================================================================== */
.overview-section {
  background: var(--bg-subtle);
}

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

.overview-content h2 {
  margin-bottom: 1.25rem;
}

.overview-content p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  color: var(--text-body);
}

.overview-feature-list {
  list-style: none;
  margin-block: 1.75rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.overview-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--primary);
}

.feature-check-icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.overview-card-wrapper {
  position: relative;
}

.overview-highlight-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

.overview-highlight-card::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  right: 12px;
  bottom: 12px;
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.35;
}

.highlight-card-title {
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.highlight-region-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.region-tag {
  background: var(--bg-muted);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

/* ==========================================================================
   CORE SERVICES GRID SECTION
   Full descriptions ALWAYS visible on mobile; no display:none!
   ========================================================================== */
.services-section {
  background: var(--bg-main);
}

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

.service-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.25rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
  transition: background var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 38, 100, 0.2);
}

.service-card:hover::before {
  background: var(--accent);
}

.service-icon-box {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all var(--transition-fast);
}

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

.service-icon-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  transition: filter var(--transition-fast);
}

.service-card:hover .service-icon-img {
  filter: brightness(0) invert(1);
}

.service-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.service-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  display: block !important; /* Overrides legacy bug where descriptions were hidden */
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: auto;
}

.service-card:hover .service-card-link {
  color: var(--accent-hover);
  gap: 0.65rem;
}

/* ==========================================================================
   SPLIT LEAD GENERATION & TESTIMONIAL SPOTLIGHT
   ========================================================================== */
.lead-testimonial-section {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.lead-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: stretch;
}

/* Quick Quote Form Card */
.quote-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 3vw, 2.75rem);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.quote-card-header {
  margin-bottom: 1.75rem;
}

.quote-card-header h3 {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.quote-card-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Modern Accessible Form Fields */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}

.form-label .required {
  color: #dc2626;
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--text-main);
  background-color: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  min-height: 48px;
}

.form-control:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 38, 100, 0.15);
}

.form-control.is-invalid {
  border-color: #dc2626;
}

.form-feedback {
  font-size: 0.82rem;
  margin-top: 0.35rem;
  color: #dc2626;
}

/* Testimonial Spotlight Card */
.testimonial-spotlight-card {
  background: var(--primary-gradient);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 3vw, 2.75rem);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.quote-decor-mark {
  font-size: 5rem;
  line-height: 0.8;
  font-family: Georgia, serif;
  color: rgba(245, 158, 11, 0.3);
  margin-bottom: 0.5rem;
  user-select: none;
}

.testimonial-text {
  font-size: clamp(1.05rem, 0.98rem + 0.25vw, 1.2rem);
  line-height: 1.7;
  color: #ffffff;
  font-style: italic;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.testimonial-author-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.25rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-glow);
  color: var(--primary-dark);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.author-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
}

.author-company {
  font-size: 0.88rem;
  color: var(--accent-glow);
}

.author-location {
  font-size: 0.82rem;
  color: var(--text-light-muted);
}

/* ==========================================================================
   PARTNERS & ACCREDITATION LOGOS SECTION
   ========================================================================== */
.partners-section {
  background: #ffffff;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  align-items: center;
}

.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 1.25rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--transition-fast);
  text-decoration: none;
  min-height: 180px;
}

.partner-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  background: #ffffff;
}

.partner-img-wrapper {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.partner-logo-img {
  max-height: 60px;
  max-width: 160px;
  object-fit: contain;
}

.partner-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.partner-tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   ABOUT PAGE COMPONENTS
   ========================================================================== */
.page-hero {
  background: var(--primary-gradient);
  color: #ffffff;
  padding-block: clamp(3rem, 5vw, 4.5rem);
  border-bottom: 4px solid var(--accent);
}

.page-hero-content {
  max-width: 800px;
}

.page-hero-title {
  color: #ffffff;
  margin-bottom: 1rem;
}

.page-hero-lead {
  font-size: clamp(1.1rem, 1.02rem + 0.3vw, 1.28rem);
  color: var(--text-light-muted);
  line-height: 1.65;
}

.about-leadership-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.leader-portrait-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.leader-photo {
  width: 100%;
  aspect-ratio: 500 / 636;
  object-fit: cover;
}

.leader-caption {
  padding: 1.5rem;
  background: #ffffff;
  text-align: center;
}

.leader-name {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.leader-role {
  font-size: 0.92rem;
  color: var(--accent);
  font-weight: 700;
}

.about-story-content h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.about-story-content p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

/* Detailed Testimonials Grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.testimonial-full-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 4px solid var(--accent);
}

/* ==========================================================================
   SERVICES PAGE DETAILED BREAKDOWN
   ========================================================================== */
.service-detail-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 3.5vw, 3rem);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.5rem;
  scroll-margin-top: 100px;
  transition: border-color var(--transition-fast);
}

.service-detail-card:hover {
  border-color: rgba(0, 38, 100, 0.3);
}

.service-detail-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.service-detail-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-detail-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.service-detail-title-group h2 {
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.service-detail-body p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.service-features-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.feature-pill {
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
}

.service-media-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.service-media-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ==========================================================================
   CONTACT PAGE & MAP
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

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

.info-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 1.25rem;
}

.info-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-card-content h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.map-wrapper {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 11;
  min-height: 380px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   REQUEST A QUOTE DETAILED FORM
   ========================================================================== */
.full-quote-container {
  max-width: 860px;
  margin-inline: auto;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.5rem);
  box-shadow: var(--shadow-lg);
}

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

.radio-group-wrapper {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  min-height: 48px;
}

.radio-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
}

.radio-label input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

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

/* Status Alert Message Boxes */
.alert-box {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.95rem;
}

.alert-success {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.alert-info {
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

/* ==========================================================================
   ACCESSIBLE MODAL (CLIENT & EMPLOYEE LOGIN)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 21, 43, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: all var(--transition-normal);
  position: relative;
}

.modal-backdrop.is-open .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-subtle);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-title {
  font-size: 1.25rem;
  color: var(--primary);
}

.modal-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--bg-muted);
  color: var(--text-main);
}

.modal-body {
  padding: 1.75rem;
}

.modal-tabs {
  display: flex;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.modal-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.75rem 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: -2px;
}

.modal-tab-btn.is-active {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

/* ==========================================================================
   GLOBAL FOOTER
   Comprehensive multi-column footer with WCAG AA compliance
   ========================================================================== */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-light-muted);
  margin-top: auto;
  border-top: 4px solid var(--accent);
}

.footer-top {
  padding-block: clamp(3rem, 5vw, 5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(2rem, 3.5vw, 3.5rem);
}

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

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  text-decoration: none;
}

.footer-logo-img {
  width: 52px;
  height: 54px;
  object-fit: contain;
}

.footer-brand-title {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
}

.footer-brand-tagline {
  color: var(--accent-glow);
  font-size: 0.8rem;
  font-weight: 600;
}

.footer-address-block {
  font-style: normal;
  line-height: 1.7;
  font-size: 0.92rem;
  color: var(--text-light-muted);
  margin-bottom: 1.25rem;
}

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

.footer-contact-link:hover {
  color: var(--accent-glow);
}

.footer-col-title {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-nav-link {
  color: var(--text-light-muted);
  font-size: 0.92rem;
  transition: all var(--transition-fast);
  display: inline-block;
}

.footer-nav-link:hover {
  color: var(--accent-glow);
  transform: translateX(3px);
}

.footer-bottom {
  background: #030c18;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-slogan {
  color: var(--accent-glow);
  font-weight: 700;
  font-style: italic;
  font-size: 0.95rem;
}

.footer-copyright {
  color: #94a3b8; /* High contrast WCAG AA compliant >= 4.5:1 against #030c18 */
}

.footer-copyright a {
  color: #cbd5e1;
  text-decoration: underline;
}

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

/* ==========================================================================
   BACK TO TOP BUTTON
   Fixed bottom right, >= 48px, translated aria-label
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  inset-inline-end: 2rem;
  z-index: 999;
  width: 50px;
  height: 50px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all var(--transition-normal);
}

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

.back-to-top:hover {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 38, 100, 0.3);
}

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

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Mobile-First Architecture)
   Strictly no overflow-x; graceful scaling from 320px to 1920px+
   ========================================================================== */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
  
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .about-leadership-grid {
    grid-template-columns: 300px 1fr;
    gap: 2rem;
  }
}

/* Mobile & Small Tablet (max-width: 860px) */
@media (max-width: 860px) {
  .top-bar {
    display: none; /* Conserve vertical height on mobile; key items moved to mobile drawer */
  }

  .desktop-nav,
  .header-actions {
    display: none;
  }

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

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .lead-split-grid {
    grid-template-columns: 1fr;
  }

  .about-leadership-grid {
    grid-template-columns: 1fr;
  }

  .leader-portrait-card {
    max-width: 400px;
    margin-inline: auto;
  }

  .service-detail-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

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

/* Small Mobile (max-width: 580px) */
@media (max-width: 580px) {
  .container {
    padding-inline: 1rem;
  }

  .brand-title {
    font-size: 1.18rem;
  }

  .brand-tagline {
    font-size: 0.72rem;
  }

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

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

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

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .slider-controls {
    bottom: 1.25rem;
    right: 1.25rem;
  }

  .slider-btn {
    width: 42px;
    height: 42px;
  }

  .back-to-top {
    bottom: 1.25rem;
    inset-inline-end: 1.25rem;
  }
}
