/* Layout Containers */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--space-md);
  padding-left: var(--space-md);
  max-width: 1280px;
}

/* Sections */
section {
  position: relative;
  padding-top: clamp(2.8rem, 4vw, 4.2rem);
  padding-bottom: clamp(2.8rem, 4vw, 4.2rem);
}

.section-full {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Grids & Flex */
.grid {
  display: grid;
  gap: var(--space-md);
}

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

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

.grid-3 {
  grid-template-columns: repeat(1, 1fr);
}

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

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

.grid-4 {
  grid-template-columns: repeat(1, 1fr);
}

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

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

.flex {
  display: flex;
  gap: var(--space-md);
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-column {
  flex-direction: column;
}

/* Skip Navigation Link for Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-orange);
  color: var(--text-primary);
  padding: var(--space-sm) var(--space-md);
  z-index: 9999;
  border-radius: var(--border-radius-sm);
  font-weight: 700;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 10px;
}

/* =============================================================
   LIGHT MODE PAGE HEROS & GLOBAL LAYOUT REFINEMENTS
   ============================================================= */
[data-theme="light"] .contact-hero,
[data-theme="light"] .projects-hero,
[data-theme="light"] .services-hero,
[data-theme="light"] .faq-hero,
[data-theme="light"] .resources-hero,
[data-theme="light"] .safety-hero,
[data-theme="light"] .technology-hero {
  background: linear-gradient(
    180deg,
    rgba(9, 9, 9, 0.8) 0%,
    rgba(9, 9, 9, 1) 100%
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .contact-hero .section-subtitle,
[data-theme="light"] .projects-hero .section-subtitle,
[data-theme="light"] .services-hero .section-subtitle,
[data-theme="light"] .faq-hero .section-subtitle,
[data-theme="light"] .resources-hero .section-subtitle,
[data-theme="light"] .safety-hero .section-subtitle,
[data-theme="light"] .technology-hero .section-subtitle,
[data-theme="light"] .contact-hero .display-title,
[data-theme="light"] .projects-hero .display-title,
[data-theme="light"] .services-hero .display-title,
[data-theme="light"] .faq-hero .display-title,
[data-theme="light"] .resources-hero .display-title,
[data-theme="light"] .safety-hero .display-title,
[data-theme="light"] .technology-hero .display-title {
  color: #ffffff;
}

[data-theme="light"] .services-nav-sticky {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .services-nav-item,
[data-theme="light"] .filter-btn {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.14);
  color: var(--text-secondary);
}

[data-theme="light"] .services-nav-item:hover,
[data-theme="light"] .services-nav-item.active,
[data-theme="light"] .filter-btn:hover,
[data-theme="light"] .filter-btn.active {
  background: rgba(234, 88, 12, 0.08);
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

[data-theme="light"] .service-section {
  border-bottom-color: rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .about-hero-video-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) 25%,
    rgba(0, 0, 0, 0.2) 45%,
    rgba(0, 0, 0, 0.6) 70%,
    rgba(0, 0, 0, 0.95) 100%
  );
}

[data-theme="light"] .about-image-wrapper,
[data-theme="light"] .map-container {
  background-color: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .project-spec-item,
[data-theme="light"] .hours-item {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}
