/*
Theme Name: Columbia Engineering Group
Theme URI: https://cegiusa.com
Author: Columbia Engineering Group
Author URI: https://cegiusa.com
Description: Custom WordPress theme for Columbia Engineering Group (CEGI) — a professional, SEO-optimized, conversion-focused engineering firm website. Features distinct service pages, mega-menu navigation, Pipedrive-ready contact forms, and full brand compliance with the CEG Brand Guidelines 2025.
Version: 1.0.0
License: Private
Text Domain: cegi
Tags: engineering, professional, custom-menu, featured-images, full-width-template

============================================================
CEGI DESIGN SYSTEM — Brand Guidelines 2025
Typography: Barlow (headlines) + Source Sans 3 (body)
Primary:   CEG Navy  #213D5A  |  CEG Cyan  #00ADEE  |  White #FFFFFF
Secondary: CEG Orange #F5A623  |  Dark Charcoal #333333  |  Light Gray #F5F5F5
============================================================
*/

/* ─────────────────────────────────────────────
   1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
───────────────────────────────────────────── */
:root {
  --cegi-navy: #213D5A;
  --cegi-navy-light: #2d5278;
  --cegi-cyan: #00ADEE;
  --cegi-cyan-dark: #0092cc;
  --cegi-orange: #F5A623;
  --cegi-orange-light: #f7b84a;
  --cegi-charcoal: #333333;
  --cegi-gray: #F5F5F5;
  --cegi-white: #FFFFFF;
  --cegi-border: #e5e7eb;
  --cegi-text-muted: #6b7280;

  --font-heading: 'Barlow', 'Arial Black', sans-serif;
  --font-body: 'Source Sans 3', 'Source Sans Pro', 'Arial', sans-serif;

  --section-py: 5rem;
  --section-py-sm: 3rem;
  --container-max: 1300px;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;

  --shadow-card: 0 2px 12px rgba(33, 61, 90, 0.08);
  --shadow-hover: 0 8px 30px rgba(33, 61, 90, 0.15);
}


@media (min-width: 1024px) {
  #mobile-menu {
    display: none !important;
  }
}

/* ─────────────────────────────────────────────
   2. RESET & BASE
───────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--cegi-charcoal);
  background: var(--cegi-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--cegi-cyan);
  text-decoration: none;
  transition: color 0.25s;
}

.footer-links .view-all-link {
  color: #F5A31A;
  /* replace with your actual orange hex */
  font-weight: 700;
}

#view-all-industries:hover {
  color: #F5A31A;
}

a:hover {
  color: var(--cegi-cyan-dark);
}

/* Override link color inside buttons */
.btn-amber,
.btn-amber:link,
.btn-amber:visited {
  color: var(--cegi-navy) !important;
}

.btn-amber:hover,
.btn-amber:focus,
.btn-amber:active {
  color: var(--cegi-navy) !important;
}

/* ─────────────────────────────────────────────
   3. TYPOGRAPHY
───────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--cegi-navy);
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
}

h2 {
  font-size: 28px;
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.1rem;
}

h6 {
  font-size: 1rem;
}

p {
  font-family: var(--font-body);
  line-height: 1.7;
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.text-lead {
  font-size: 1.125rem;
  color: #555;
  line-height: 1.75;
}

/* ─────────────────────────────────────────────
   4. LAYOUT UTILITIES
───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  /* .container { padding-left: 2rem; padding-right: 2rem; } */
}

.section-py {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}

.section-py-sm {
  padding-top: var(--section-py-sm);
  padding-bottom: var(--section-py-sm);
}

.bg-navy {
  background-color: var(--cegi-navy);
}

.bg-cyan {
  background-color: var(--cegi-cyan);
}

.bg-gray {
  background-color: var(--cegi-gray);
}

.bg-white {
  background-color: var(--cegi-white);
}

.bg-charcoal {
  background-color: var(--cegi-charcoal);
}

.text-white {
  color: var(--cegi-white) !important;
}

.text-navy {
  color: var(--cegi-navy) !important;
}

.text-cyan {
  color: var(--cegi-cyan) !important;
}

.text-orange {
  color: var(--cegi-orange) !important;
}

/* ─────────────────────────────────────────────
   5. SECTION LABELS
───────────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cegi-cyan);
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.section-label-dark {
  color: var(--cegi-cyan);
}

/* ─────────────────────────────────────────────
   6. BUTTONS
───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--cegi-navy);
  color: var(--cegi-white);
  border-color: var(--cegi-navy);
}

.btn-primary:link,
.btn-primary:visited {
  color: var(--cegi-white);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background: var(--cegi-navy-light);
  border-color: var(--cegi-navy-light);
  color: var(--cegi-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(33, 61, 90, 0.28);
}

.btn-amber {
  background: var(--cegi-orange);
  color: var(--cegi-navy);
  border-color: var(--cegi-orange);
}

.btn-amber:hover {
  background: var(--cegi-orange-light);
  border-color: var(--cegi-orange-light);
  color: var(--cegi-navy);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245, 166, 35, 0.4);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.12);
  color: var(--cegi-white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.22);
  color: var(--cegi-white);
}

.cta-band .btn-outline-white,
.cta-band .btn-outline-white:link,
.cta-band .btn-outline-white:visited,
.cta-band .btn-outline-white:hover,
.cta-band .btn-outline-white:focus,
.cta-band .btn-outline-white:active {
  color: var(--cegi-cyan) !important;
}

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

.btn-outline-navy:hover {
  background: var(--cegi-navy);
  color: var(--cegi-white);
}

.btn-full {
  width: 100%;
  display: flex;
  justify-content: center;
}

.mobile-menu-cta {
  margin-top: 2rem;
}

.mobile-menu-logo {
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.mobile-menu-close {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* ─────────────────────────────────────────────
   7. NAVIGATION
───────────────────────────────────────────── */
#site-header .header-topbar,
#site-header .header-topbar *,
#site-header .header-topbar a,
#site-header .header-topbar a:link,
#site-header .header-topbar a:visited,
#site-header .header-topbar a:hover,
#site-header .header-topbar a:focus,
#site-header .header-topbar a:active {
  /* color: var(--cegi-white) !important; */
  /* color: var(--cegi-white); */
  stroke: currentColor;
}

.topbar-inner span {
  color: #e2dfdfb3 !important;
  letter-spacing: 1px;
  font-weight: 400;
}

.topbar-contact a {
  color: #e2dfdfb3 !important;
  font-size: 14px;

}

.topbar-contact svg {
  color: #e2dfdfb3 !important;
}

.mega-menu-header {
  padding: 0 0 10px 0;
  border-bottom: 0.5px solid #dfdfdf;
  margin-bottom: 1rem;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.mega-menu-header span {
  color: var(--cegi-cyan)
}

.mega-menu-footer {
  background: #f5f5f5;
  border-top: 1px solid #dfdfdf;
  padding: 0.5rem 0 0.5rem 1rem;
  margin-top: 0.5rem;
  font-size: 14px;
  font-weight: 700;
}

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

.primary-nav>li {
  position: relative;
}

.primary-nav>li>a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.875rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  white-space: nowrap;
}

.primary-nav>li>a:hover,
.primary-nav>li.current-menu-item>a {
  color: var(--cegi-cyan);
  background: rgba(255, 255, 255, 0.08);
}

.mega-menu {
  display: none;
  position: absolute;
  top: calc(100%);
  left: 50%;
  transform: translateX(-50%);
  background: var(--cegi-white);
  border-radius: var(--radius-lg);
  box-shadow: none;
  padding: 1rem;
  min-width: 680px;
  border-top: none;
  z-index: 999;
}

.primary-nav>li:hover .mega-menu {
  display: block;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.mega-menu-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0rem;
  border-radius: var(--radius-md);
  transition: background 0.2s;
  color: var(--cegi-charcoal);
}

.mega-menu-item:hover {
  background: var(--cegi-gray);
  color: var(--cegi-navy);
}

.mega-menu-item .icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.mega-menu-item .label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--cegi-navy);
  display: block;
  margin-bottom: 0.2rem;
}

.mega-menu-item .desc {
  font-size: 0.75rem;
  color: var(--cegi-text-muted);
  line-height: 1.4;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: white;
}

.nav-toggle svg {
  display: block;
}

#site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: var(--cegi-navy);
  box-shadow: 0 2px 12px rgba(33, 61, 90, 0.25);
}

body.admin-bar #site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar #site-header {
    top: 46px;
  }
}

.header-topbar {
  font-weight: 400;
  height: 40px;
  overflow: hidden;
  background: transparent;
  border-bottom: none;
  font-size: 13px;
  color: rgba(226, 223, 223, 0.7);
  transition:
    height 0.24s ease,
    opacity 0.2s ease,
    border-color 0.2s ease;
  opacity: 1;
}

.header-topbar .container {
  height: 100%;
}

.header-topbar .topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  height: 100%;
}

.header-topbar .topbar-contact {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

#site-header.is-scrolled .header-topbar {
  height: 0;
  opacity: 0;
  border-bottom-width: 0;
}

.header-main {
  position: relative;
  z-index: 2;
  height: 72px;
  background: var(--cegi-navy);
}

.header-main .container {
  height: 100%;
  overflow: visible;
  max-width: var(--container-max);
}

.header-main .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 100%;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo img,
.site-logo .custom-logo {
  height: 46px;
  width: auto;
  max-width: 100%;
  display: block;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.nav-cta {
  flex-shrink: 0;
}

.nav-cta .btn {
  min-height: 42px;
  padding: 0.75rem 1.4rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

.mobile-menu .btn {
  white-space: nowrap;
  margin-bottom: 0rem;
}

@media (max-width: 1023px) {
  .header-topbar {
    display: none !important;
  }

  .primary-nav,
  .nav-cta {
    display: none;
  }

  .header-main {
    height: 72px;
  }

  .header-main .container {
    height: 100%;
  }

  .header-main .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    height: 100%;
  }

  .site-logo {
    display: inline-flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 64px);
  }

  .site-logo img,
  .site-logo .custom-logo {
    height: 40px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0 0 0 0.25rem;
  }

  .mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--cegi-navy);
    z-index: 10000;
    overflow-y: auto;
    padding: 0 1rem 1rem 1rem;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-menu.open {
    display: block !important;
  }

  .mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    /* position: sticky;
    top: env(safe-area-inset-top, 0); */
    /* z-index: 10001; */
    /* background: var(--cegi-navy); */
    /* padding-top: 0.25rem; */
    padding-bottom: 1rem;
  }

  #mobile-menu-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    padding: 0;
    margin-left: 0.25rem;
  }

  .mobile-menu-logo-link {
    display: inline-flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 56px);
  }

  .mobile-menu-logo-link img,
  .mobile-menu-logo-link .custom-logo,
  .mobile-menu-logo {
    /* height: 40px !important; */
    width: auto;
    max-width: 260px;
    object-fit: contain;
    background: transparent;
    padding: 0;
    border-radius: 0;
  }

  #mobile-menu-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    padding: 0;
    margin-left: auto;
  }

  .mobile-nav,
  .mobile-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .mobile-nav li a {
    display: block;
    padding: 0.875rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
  }

  .mobile-nav li a:hover {
    color: var(--cegi-cyan);
  }

  .mobile-submenu {
    padding-left: 1rem;
  }

  .mobile-submenu li a {
    font-size: 0.9375rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
  }
}

/* ─────────────────────────────────────────────
   8. HERO SECTION
───────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://ceginewwebsite2026.kinsta.cloud/wp-content/uploads/2026/04/group-shot-2-scaled.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1);
  transform-origin: center center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(33, 61, 90, 0.92) 0%, rgba(33, 61, 90, 0.68) 55%, rgba(33, 61, 90, 0.30) 100%);
  z-index: 1;
}

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

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cegi-cyan);
  margin-bottom: 1rem;
}

.hero-title {
  color: var(--cegi-white);
  margin-bottom: 1.25rem;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
}

.hero-title span {
  color: var(--cegi-cyan);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2rem;
}

.hero-tag {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
}

.hero-tag svg {
  color: var(--cegi-cyan);
}

@media (max-width: 1024px) {
  .hero-bg {
    background-position: center center;
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .hero-bg {
    background-position: 58% center;
    transform: scale(1);
  }
}
/* ─────────────────────────────────────────────
   9. STATS BAR
───────────────────────────────────────────── */
.stats-bar {
  background: var(--cegi-navy);
  padding: 2.5rem 0;
}

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

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

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--cegi-cyan);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

/* ─────────────────────────────────────────────
   10. SERVICE CARDS
───────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.25rem;
}

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

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

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

.service-card {
  background: var(--cegi-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--cegi-border);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  text-decoration: none;
  color: inherit;
}

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

.service-card .card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.service-card .card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--cegi-navy);
  margin-bottom: 0.5rem;
}

.service-card .card-desc {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: #555;
  line-height: 1.6;
  flex: 1;
}

.service-card .card-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--cegi-cyan);
}

.hover-card {
  background: var(--cegi-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--cegi-border);
  transition: all 0.25s ease;
  color: inherit;
}

.hover-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--cegi-cyan);
  color: inherit;
}

/* ─────────────────────────────────────────────
   11. SECTION HEADINGS
───────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  color: var(--cegi-navy);
  margin-bottom: 1rem;
}

.section-header p {
  color: #555;
  max-width: 640px;
  margin: 0 auto;
}

/* ─────────────────────────────────────────────
   12. INDUSTRY CARDS
───────────────────────────────────────────── */
.industries-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

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

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

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

.industry-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  text-decoration: none;
}

.industry-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.industry-card:hover img {
  transform: scale(1.05);
}

.industry-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(33, 61, 90, 0.9) 0%, rgba(33, 61, 90, 0.3) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}

.industry-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--cegi-white);
}

/* ─────────────────────────────────────────────
   13. TESTIMONIALS
───────────────────────────────────────────── */
.testimonial-card {
  background: var(--cegi-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  border-left: 4px solid var(--cegi-cyan);
}

.testimonial-quote {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #444;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.25rem;
}

.testimonial-author {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--cegi-navy);
}

.testimonial-role {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--cegi-text-muted);
}

/* ─────────────────────────────────────────────
   14. PAGE HERO
───────────────────────────────────────────── */
.page-hero {
  background: var(--cegi-navy);
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  right: -4rem;
  top: -4rem;
  width: 400px;
  height: 400px;
  background: url('https://d2xsxph8kpxj0f.cloudfront.net/310519663305870009/HH85opw2XvSA9fdzHMshQL/ceg-sigma_d9c3cf03.png') center/contain no-repeat;
  opacity: 0.05;
}

.page-hero h1 {
  color: var(--cegi-white);
  margin-bottom: 0.75rem;
}

.page-hero .breadcrumb {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
}

.page-hero .breadcrumb a {
  color: var(--cegi-cyan);
}

.page-hero .lead {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
}

/* ─────────────────────────────────────────────
   15. CONTACT FORM
───────────────────────────────────────────── */
.contact-form-wrap {
  background: var(--cegi-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--cegi-border);
}

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

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

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

.form-group label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--cegi-navy);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--cegi-border);
  border-radius: var(--radius-md);
  background: var(--cegi-white);
  color: var(--cegi-charcoal);
  transition: border-color 0.2s;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cegi-cyan);
  box-shadow: 0 0 0 3px rgba(0, 173, 238, 0.12);
}

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

/* ─────────────────────────────────────────────
   16. FOOTER
───────────────────────────────────────────── */
#site-footer {
  background: var(--cegi-navy);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 0;
}

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

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

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

.footer-logo {
  margin-bottom: 1.25rem;
}

.footer-logo img {
  height: 100px;
  width: auto;
  background: white;
  padding: 6px 10px;
  border-radius: 6px;
}

.footer-about {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.footer-contact-item span,
.footer-contact-item a {
  line-height: 1.4;
}

#site-footer .footer-contact-item,
#site-footer .footer-contact-item svg,
#site-footer .footer-contact-item span,
#site-footer .footer-contact-item a,
#site-footer .footer-contact-item a:link,
#site-footer .footer-contact-item a:visited,
#site-footer .footer-contact-item a:hover,
#site-footer .footer-contact-item a:focus,
#site-footer .footer-contact-item a:active {
  color: var(--cegi-cyan) !important;
  stroke: currentColor;
}


.footer-cta-btn {
  min-height: 48px;
  padding: 0.875rem 1.75rem;
  white-space: nowrap;
}

.footer-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cegi-white);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links li a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s;
}

.footer-links li a:hover {
  color: var(--cegi-cyan);
}

#site-footer .footer-links li a.footer-proposal-link,
#site-footer .footer-links li a.footer-proposal-link:link,
#site-footer .footer-links li a.footer-proposal-link:visited {
  color: var(--cegi-orange) !important;
}

#site-footer .footer-links li a.footer-proposal-link:hover,
#site-footer .footer-links li a.footer-proposal-link:focus,
#site-footer .footer-links li a.footer-proposal-link:active {
  color: var(--cegi-orange-light) !important;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
}

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

.footer-badges {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-badge {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
  background: rgba(0, 173, 238, 0.15);
  color: var(--cegi-cyan);
  border: 1px solid rgba(0, 173, 238, 0.3);
}

.footer-social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--cegi-cyan);
  transition: border-color 0.2s, color 0.2s;
}

.social-icon:hover {
  border-color: var(--cegi-cyan);
}

.footer-bottom-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-bottom-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

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

.footer-cta-btn {
  min-height: 48px;
  padding: 0.875rem 1.75rem;
  white-space: nowrap;
}

.footer-call-btn,
.footer-call-btn:link,
.footer-call-btn:visited {
  color: var(--cegi-white) !important;
}

.footer-call-btn:hover,
.footer-call-btn:focus,
.footer-call-btn:active {
  color: var(--cegi-white) !important;
}

@media (max-width: 767px) {
  .footer-bottom-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .footer-bottom-cta,
  .footer-bottom-meta {
    width: 100%;
  }
}

/* Defensive: prevent href from being printed around footer links */
.footer-links a::before,
.footer-links a::after {
  content: none !important;
}

/* ─────────────────────────────────────────────
   17. CTA BAND
───────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--cegi-navy) 0%, var(--cegi-navy-light) 100%);
  padding: 4rem 0;
  text-align: center;
}

section.cta-band h2,
.cta-band .container h2,
.elementor .cta-band h2 {
  font-family: var(--font-heading) !important;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: var(--cegi-white) !important;
  margin-bottom: 1rem !important;
}

section.cta-band p,
.cta-band .container p,
.elementor .cta-band p {
  font-family: var(--font-body) !important;
  color: rgba(255, 255, 255, 0.75) !important;
  max-width: 560px;
  margin: 0 auto 2rem !important;
}


.cta-band p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.cta-band-proposal {
  min-height: auto;
  padding: 0.875rem 1.75rem;
}

.cta-band-call,
.cta-band-call:link,
.cta-band-call:visited,
.cta-band-call:hover,
.cta-band-call:focus,
.cta-band-call:active {
  color: var(--cegi-cyan) !important;
}

/* ─────────────────────────────────────────────
   18. PROJECT CARDS
───────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

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

.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--cegi-white);
  transition: all 0.25s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

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

.project-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.project-card-body {
  padding: 1.25rem;
}

.project-card-type {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cegi-cyan);
  margin-bottom: 0.5rem;
}

.project-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--cegi-navy);
  margin-bottom: 0.375rem;
}

.project-card-location {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--cegi-text-muted);
}

/* ─────────────────────────────────────────────
   19. VETERAN-OWNED CALLOUT
───────────────────────────────────────────── */
.veteran-callout {
  background: linear-gradient(135deg, rgba(0, 173, 238, 0.08) 0%, rgba(33, 61, 90, 0.05) 100%);
  border: 1px solid rgba(0, 173, 238, 0.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}

.veteran-callout .vet-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.veteran-callout h3 {
  color: var(--cegi-navy);
  margin-bottom: 0.5rem;
}

.veteran-callout p {
  color: #555;
  font-size: 0.9rem;
}

/* ─────────────────────────────────────────────
   20. RESPONSIVE UTILITIES
───────────────────────────────────────────── */
@media (max-width: 767px) {
  .hide-mobile {
    display: none !important;
  }

  .hero-section {
    min-height: 70vh;
  }

  .hero-title {
    font-size: 2rem;
  }

  /* Services grid — override inline style */
  .services-grid {
    grid-template-columns: 1fr !important;
  }

  /* Why CEGI — override inline styles */
  .why-cegi-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .why-cegi-cards {
    grid-template-columns: 1fr !important;
  }

  /* Industries — override inline style */
  .industries-home-grid {
    grid-template-columns: 1fr !important;
  }

  /* Featured Projects — override inline style */
  .projects-home-grid {
    grid-template-columns: 1fr !important;
  }

  /* Contact section — override inline style */
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Section padding reduction */
  .section-py {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  /* Container padding */
  .container {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr !important;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Tablet fixes (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .why-cegi-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .industries-home-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .projects-home-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

/* Hamburger / X icon swap */
.nav-toggle .icon-close {
  display: none;
}

.nav-toggle.is-open .icon-hamburger {
  display: none;
}

.nav-toggle.is-open .icon-close {
  display: block;
}

/* Mobile menu below header */
@media (max-width: 1023px) {
  .mobile-menu {
    top: 72px !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
  }

  body.admin-bar .mobile-menu {
    top: 118px !important;
  }
}

body.admin-bar .mobile-menu {
  top: 118px !important;
}

@media (min-width: 768px) {
  .hide-desktop {
    display: none !important;
  }
}

@media (max-width: 1023px) {

  #site-footer .footer-contact-item,
  #site-footer .footer-contact-item svg,
  #site-footer .footer-contact-item span,
  #site-footer .footer-contact-item a,
  #site-footer .footer-contact-item a:link,
  #site-footer .footer-contact-item a:visited,
  #site-footer .footer-contact-item a:hover,
  #site-footer .footer-contact-item a:focus,
  #site-footer .footer-contact-item a:active {
    color: var(--cegi-cyan) !important;
    stroke: currentColor;
  }

  #site-footer .footer-links li a.footer-proposal-link,
  #site-footer .footer-links li a.footer-proposal-link:link,
  #site-footer .footer-links li a.footer-proposal-link:visited,
  #site-footer .footer-links li a.footer-proposal-link:hover,
  #site-footer .footer-links li a.footer-proposal-link:focus,
  #site-footer .footer-links li a.footer-proposal-link:active {
    color: var(--cegi-orange) !important;
  }

  .cta-band .btn-outline-white,
  .cta-band .btn-outline-white:link,
  .cta-band .btn-outline-white:visited,
  .cta-band .btn-outline-white:hover,
  .cta-band .btn-outline-white:focus,
  .cta-band .btn-outline-white:active {
    color: var(--cegi-cyan) !important;
  }
}

/* ─────────────────────────────────────────────
   21. ELEMENTOR OVERRIDES
───────────────────────────────────────────── */
.elementor-widget-heading .elementor-heading-title {
  font-family: var(--font-heading) !important;
}

.elementor-widget-text-editor {
  font-family: var(--font-body) !important;
}

.elementor-button {
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
}

.e-con,
.elementor-section {
  font-family: var(--font-body);
}

/* Kill any rule that prints href values inside the footer */
#site-footer a::before,
#site-footer a::after {
  content: none !important;
}

/* Force Get a Proposal button to yellow accent */
.get-proposal-btn,
.btn-proposal {
  background: var(--cegi-orange) !important;
  color: var(--cegi-navy) !important;
  border-color: var(--cegi-orange) !important;
}

.get-proposal-btn:hover,
.btn-proposal:hover {
  background: var(--cegi-orange-light) !important;
  border-color: var(--cegi-orange-light) !important;
  color: var(--cegi-navy) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245, 166, 35, 0.4);
}

.nav-cta a.btn-amber,
.nav-cta a.btn-amber:link,
.nav-cta a.btn-amber:visited,
.nav-cta a.btn-amber:hover,
.mobile-menu a.btn-amber,
.mobile-menu a.btn-amber:link,
.mobile-menu a.btn-amber:visited,
.mobile-menu a.btn-amber:hover {
  color: var(--cegi-navy) !important;
}

#gform_submit_button_2 {
  background-color: var(--cegi-cyan);
}

@media (min-width: 1024px) {

  .elementor-section.elementor-section-boxed>.elementor-container,
  .e-con-boxed>.e-con-inner {
    max-width: 1317px !important;
  }
}

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

  .whyCEGImageGroup {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .veteran-callout {
    position: static;
  }
}

.gfield_required {
  display: none !important;
}

.gform_wrapper .gfield_label::after {
  content: " *";
  color: #f15a24;
  font-weight: 700;
}

/* See More styling */
.see-more-link {
    font-size: 12px;
    color: #727272;
    text-decoration: none;
    white-space: nowrap;
    display: inline;
}

.see-more-link:hover {
    color: #444444;
    text-decoration: underline;
}
