:root {
  /* Core brand backgrounds */
  --color-bg-white: #FFFFFF;
  --color-bg-pale-blue: #EEF2FA;
  --color-bg-deep-blue: #1E3A73;

  /* Brand blues */
  --color-blue-primary: #2C4FA3;
  --color-blue-secondary: #3E7BC4;

  /* Neutral */
  --color-steel-gray: #5B6670;

  /* CTA accent */
  --color-amber: #E8912D;

  /* Text */
  --color-text-primary: #1A1F26;
  --color-text-on-blue: #FFFFFF;

  /* Fonts */
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text-primary);
  background-color: var(--color-bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .wordmark {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--color-text-primary);
}

h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 24px;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
  margin-bottom: 12px;
}

p {
  margin-bottom: 16px;
  color: var(--color-steel-gray);
}

a {
  color: var(--color-blue-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-blue-secondary);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section Structural Rhythm */
.section {
  padding: 80px 0;
  position: relative;
}

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

.bg-pale-blue {
  background-color: var(--color-bg-pale-blue);
}

.bg-deep-blue {
  background-color: var(--color-bg-deep-blue);
}

.text-on-blue {
  color: var(--color-text-on-blue);
}

.text-on-blue h1,
.text-on-blue h2,
.text-on-blue h3,
.text-on-blue p {
  color: var(--color-text-on-blue);
}

/* Hard seam 1px divider */
.section-divider {
  height: 1px;
  background-color: var(--color-blue-primary);
  width: 100%;
  border: none;
}

/* Seamless Wave Divider Component */
.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 2;
  pointer-events: none;
}

.wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

/* Wave color targets next section background */
.wave-divider.to-pale-blue .shape-fill {
  fill: var(--color-bg-pale-blue);
}

.wave-divider.to-white .shape-fill {
  fill: var(--color-bg-white);
}

.wave-divider.to-deep-blue .shape-fill {
  fill: var(--color-bg-deep-blue);
}

.center-text {
  text-align: center;
}

.lead-text {
  font-size: 1.15rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--color-blue-primary);
  margin-bottom: 8px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

/* Amber Contrast Rule: Dark Charcoal text on Amber background for WCAG AA compliance */
.btn-amber {
  background-color: var(--color-amber);
  color: var(--color-text-primary);
  border-color: var(--color-amber);
}

.btn-amber:hover {
  background-color: #d67f1e;
  border-color: #d67f1e;
  color: var(--color-text-primary);
}

.btn-secondary {
  background-color: var(--color-blue-primary);
  color: var(--color-text-on-blue);
  border-color: var(--color-blue-primary);
}

.btn-secondary:hover {
  background-color: var(--color-blue-secondary);
  border-color: var(--color-blue-secondary);
  color: var(--color-text-on-blue);
}

/* Navigation Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-bg-white);
  border-bottom: 1px solid var(--color-bg-pale-blue);
  transition: padding 0.3s ease, box-shadow 0.3s ease;
  padding: 16px 0;
}

.site-header.compact {
  padding: 10px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

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

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  height: 36px;
  width: auto;
}

.wordmark {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-blue-primary);
}

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-weight: 600;
  color: var(--color-text-primary);
  padding: 4px 0;
  position: relative;
}

.nav-link.active,
.nav-link:hover {
  color: var(--color-blue-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-blue-primary);
}

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text-primary);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Floating FAB */
.floating-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--color-blue-primary);
  color: var(--color-text-on-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  z-index: 999;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.floating-fab:hover {
  background-color: var(--color-blue-secondary);
  color: var(--color-text-on-blue);
  transform: scale(1.05);
}

/* Hero Elements */
.hero-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-bg-deep-blue);
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-bg-deep-blue);
  opacity: 0.18;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #FFFFFF;
  padding: 60px 20px;
}

.hero-content h1 {
  color: #FFFFFF;
  max-width: 800px;
  margin-bottom: 24px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.page-hero {
  position: relative;
  padding: 100px 0 60px;
  background-color: var(--color-bg-deep-blue);
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  color: #FFFFFF;
}

.page-hero-content h1 {
  color: #FFFFFF;
}

.breadcrumb {
  margin-top: 12px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
}

.breadcrumb a {
  color: #FFFFFF;
}

/* Stats Counter Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: center;
}

.stat-card {
  padding: 24px;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-blue-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-weight: 600;
  color: var(--color-steel-gray);
}

/* Cards Layouts */
.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.card {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-bg-pale-blue);
  border-radius: 12px;
  padding: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.card-link {
  display: inline-block;
  margin-top: 16px;
  font-weight: 600;
}

/* Why LCC Block */
.why-lcc-content {
  max-width: 900px;
  font-size: 1.15rem;
  line-height: 1.8;
}

/* Carousel Architecture */
.carousel-container {
  position: relative;
  padding: 0 48px;
}

.carousel-track-wrapper {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
  gap: 24px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-bg-pale-blue);
  color: var(--color-blue-primary);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
}

.carousel-btn:hover {
  background-color: var(--color-blue-primary);
  color: #FFFFFF;
}

.carousel-btn:focus-visible {
  outline: 2px solid var(--color-blue-primary);
  outline-offset: 2px;
}

.prev-btn { left: 0; }
.next-btn { right: 0; }

/* Testimonials System */
.testimonial-card {
  flex: 0 0 100%;
  background-color: var(--color-bg-white);
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 32px;
  border-top: 3px solid var(--color-blue-primary);
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.profile-photo-slot {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--color-bg-pale-blue);
  overflow: hidden;
  flex-shrink: 0;
}

.profile-photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-meta h4 {
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.profile-meta span {
  font-size: 0.85rem;
  color: var(--color-steel-gray);
}

.quote-glyph {
  font-family: Georgia, serif;
  font-size: 2rem;
  color: var(--color-blue-secondary);
  opacity: 0.3;
  line-height: 1;
  display: block;
  margin-bottom: 4px;
}

.quote-text {
  font-size: 0.95rem;
  color: var(--color-text-primary);
  font-style: italic;
}

/* Capped Service Cards */
.carousel-card {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
}

.card-cap {
  background-color: var(--color-bg-pale-blue);
  border: 1px solid #E2E8F0;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  padding: 16px 24px;
  color: var(--color-blue-primary);
  display: flex;
  align-items: center;
  width: fit-content;
  margin-left: 24px;
  transform: translateY(1px);
}

.card-body {
  background-color: var(--color-bg-white);
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 32px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.card-num {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-blue-primary);
  margin-bottom: 8px;
}

.card-body p {
  flex-grow: 1;
  margin-bottom: 24px;
}

/* Portfolio Layered Masonry Grid System */
.portfolio-masonry {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.portfolio-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--color-bg-pale-blue);
  aspect-ratio: 4/3;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-item.blended-placeholder {
  background-color: var(--color-bg-pale-blue);
}

/* Asymmetrical Masonry Slots Mapping */
.portfolio-item:nth-child(1) { grid-column: span 8; grid-row: span 2; aspect-ratio: 16/9; }
.portfolio-item:nth-child(2) { grid-column: span 4; aspect-ratio: 1/1; }
.portfolio-item:nth-child(3) { grid-column: span 4; aspect-ratio: 1/1; }
.portfolio-item:nth-child(4) { grid-column: span 6; aspect-ratio: 16/10; }
.portfolio-item:nth-child(5) { grid-column: span 6; aspect-ratio: 16/10; }
.portfolio-item:nth-child(n+6) { grid-column: span 4; aspect-ratio: 4/3; }

/* Featured Gold/Amber Glow for Positions 1-5 */
.portfolio-item.featured {
  border: 1px solid var(--color-amber);
  box-shadow: 0 0 12px rgba(232, 145, 45, 0.25);
}

/* About / Team System */
.header-padding {
  padding-top: 60px;
}

.mission-vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.mv-block {
  background-color: var(--color-bg-pale-blue);
  border-radius: 12px;
  padding: 32px;
}

.team-cluster {
  margin-bottom: 48px;
}

.cluster-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-blue-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--color-blue-primary);
  padding-bottom: 4px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.team-card {
  background-color: var(--color-bg-white);
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.team-card.card-span-2 {
  grid-column: span 2;
}

.team-photo-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--color-bg-pale-blue);
  margin-bottom: 16px;
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-photo.blended-fallback {
  opacity: 0;
}

.badge-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: var(--color-blue-primary);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.team-info h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.team-role {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-blue-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.team-qual {
  font-size: 0.85rem;
  color: var(--color-steel-gray);
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.4;
}

.team-desc {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.eq-item {
  background-color: var(--color-bg-pale-blue);
  padding: 16px;
  border-radius: 8px;
  font-weight: 600;
  color: var(--color-text-primary);
  text-align: center;
}

/* Footer System */
.site-footer {
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: #FFFFFF;
}

.footer-col p {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

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

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  color: #FFFFFF;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.social-links a:hover {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* Responsive Overrides */
@media (min-width: 768px) {
  .testimonial-card,
  .carousel-card {
    flex: 0 0 calc(50% - 12px);
  }
}

@media (min-width: 1024px) {
  .testimonial-card,
  .carousel-card {
    flex: 0 0 calc(33.333% - 16px);
  }
}

@media (max-width: 767px) {
  .hamburger-btn {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-bg-white);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--color-bg-pale-blue);
    box-shadow: 0 8px 16px rgba(0,0,0,0.05);
    display: none;
  }

  .nav-menu.open {
    display: flex;
  }

  .portfolio-masonry {
    display: flex;
    flex-direction: column;
  }

  .portfolio-item,
  .portfolio-item:nth-child(n) {
    width: 100%;
    aspect-ratio: 16/10;
  }

  .team-card.card-span-2 {
    grid-column: span 1;
  }

  .carousel-container {
    padding: 0 36px;
  }

  .wave-divider svg {
    height: 40px;
  }
}