/* ==========================================
   VELARIS ENGINEERING DESIGN FZ LLC
   Corporate Engineering Design System
   ========================================== */

:root {
  --navy-main: #192a57;
  --navy-dark: #0f1836;
  --navy-hero: #122146;
  --navy-hover: #22376e;
  --text-dark: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border-color: #e2e8f0;
  --border-subtle: #cbd5e1;
  --accent-blue: #2563eb;
  --container-max: 1280px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-dark);
  scroll-behavior: smooth;
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.75rem;
}

/* Typography & Section Eyebrows */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 0.5rem;
}

.eyebrow-light {
  color: #93c5fd;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 2px;
  background-color: currentColor;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.section-title-light {
  color: #ffffff;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 650px;
  line-height: 1.65;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 3px;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

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

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

.btn-white {
  background-color: #ffffff;
  color: var(--navy-main);
  border-color: #ffffff;
}

.btn-white:hover {
  background-color: #f1f5f9;
  color: var(--navy-dark);
  transform: translateY(-1px);
}

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

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

.btn-arrow {
  transition: transform 0.2s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* Header Navigation (Height: 96px Desktop, 76px Mobile) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--navy-main);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
}

.brand-logo {
  display: flex;
  align-items: center;
}

.brand-logo img {
  width: 225px;
  height: auto;
  object-fit: contain;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  padding: 0.5rem 0;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #ffffff;
}

.header-cta {
  display: flex;
  align-items: center;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.75rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--navy-dark);
  padding: 2rem 1.5rem;
  z-index: 999;
  flex-direction: column;
  gap: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.mobile-nav .nav-link {
  font-size: 1.125rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================
   HERO SLIDER (Reduced Height ~520px Desktop, ~420px Mobile)
   ========================================== */
.hero-slider-section {
  position: relative;
  width: 100%;
  height: 520px;
  min-height: 500px;
  background-color: var(--navy-hero);
  overflow: hidden;
}

.hero-slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 700ms cubic-bezier(0.4, 0, 0.2, 1), visibility 700ms cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

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

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

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(15, 24, 54, 0.94) 0%, rgba(15, 24, 54, 0.82) 48%, rgba(15, 24, 54, 0.3) 82%, transparent 100%);
  z-index: 2;
}

.hero-slide-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
  padding-top: 1rem;
  padding-bottom: 3.5rem;
}

.hero-text-wrapper {
  max-width: 640px;
}

.hero-slide-title {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.18;
  color: #ffffff;
  margin-bottom: 0.875rem;
  letter-spacing: -0.015em;
  word-wrap: break-word;
}

.hero-slide-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.75rem;
  line-height: 1.55;
}

/* Slider Navigation Arrows */
.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 24, 54, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.slider-nav-btn:hover {
  background: rgba(25, 42, 87, 0.9);
  border-color: #ffffff;
}

.slider-nav-prev {
  left: 1.75rem;
}

.slider-nav-next {
  right: 1.75rem;
}

/* Bottom Controls Bar (Slide Indicators & Keyboard-Accessible Pause) */
.slider-bottom-controls {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  z-index: 10;
}

.slider-controls-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

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

.slider-dot {
  width: 28px;
  height: 4px;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.slider-dot.active {
  background: #ffffff;
  width: 44px;
}

/* Visually Hidden Pause Button (Accessible on Keyboard Focus Only) */
.slider-pause-btn {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  transition: var(--transition);
}

.slider-pause-btn:focus,
.slider-pause-btn:focus-visible {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: rgba(15, 24, 54, 0.95);
  border: 1px solid #ffffff;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 20;
}

/* Discipline Strip */
.discipline-strip {
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 0;
}

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

.discipline-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  padding: 0.5rem 1rem;
  border-right: 1px solid var(--border-color);
}

.discipline-item:last-child {
  border-right: none;
}

.discipline-icon {
  width: 26px;
  height: 26px;
  color: var(--navy-main);
  flex-shrink: 0;
}

.discipline-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.02em;
}

/* About Intro Section */
.about-teaser-section {
  padding: 5.5rem 0;
  background-color: var(--bg-white);
}

.about-teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}

.about-teaser-img-wrapper {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.about-teaser-img-wrapper img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.about-teaser-content p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.about-teaser-content p:last-of-type {
  margin-bottom: 2rem;
}

/* Engineering Capabilities Section */
.capabilities-section {
  padding: 5.5rem 0;
  background-color: var(--bg-light);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
  gap: 2rem;
}

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

.capability-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.capability-card:hover {
  border-color: var(--border-subtle);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
}

.capability-img {
  height: 220px;
  width: 100%;
  object-fit: cover;
}

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

.capability-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.capability-text {
  font-size: 0.96875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  line-height: 1.6;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy-main);
  transition: var(--transition);
}

.card-link:hover {
  color: var(--accent-blue);
}

/* Coordinated Approach Section */
.approach-section {
  padding: 5.5rem 0;
  background-color: var(--bg-white);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3.5rem;
}

.approach-card {
  padding: 2rem;
  border-top: 3px solid var(--navy-main);
  background-color: var(--bg-light);
  border-radius: 2px;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.approach-icon-box {
  width: 44px;
  height: 44px;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-main);
  margin-bottom: 1.25rem;
}

.approach-card h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.approach-card p {
  font-size: 0.96875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Sectors / Project Types Section */
.sectors-section {
  padding: 5.5rem 0;
  background-color: var(--bg-light);
  border-top: 1px solid var(--border-color);
}

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

.sector-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.sector-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
  border-color: var(--border-subtle);
}

.sector-img {
  height: 210px;
  width: 100%;
  object-fit: cover;
}

.sector-footer {
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
}

.sector-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* Section CTA Banner */
.cta-banner-section {
  position: relative;
  background-color: var(--navy-main);
  color: #ffffff;
  padding: 5rem 0;
}

.cta-flex {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-text h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.cta-text p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 620px;
}

/* Shared Corporate Footer */
.site-footer {
  background-color: var(--navy-dark);
  color: #ffffff;
  padding-top: 4.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand img {
  width: 245px;
  height: auto;
  object-fit: contain;
  margin-bottom: 1.25rem;
  display: block;
}

.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.footer-discipline-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #93c5fd;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

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

.footer-links a {
  font-size: 0.90625rem;
  color: rgba(255, 255, 255, 0.78);
  transition: var(--transition);
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 3px;
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.82);
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: #60a5fa;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.9);
  transition: var(--transition);
}

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

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Page Shell Component Placeholders */
.shell-banner {
  background-color: var(--navy-hero);
  color: #ffffff;
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}

.shell-content {
  padding: 5rem 0;
  min-height: 400px;
}

.badge-notice {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background-color: #eff6ff;
  color: var(--navy-main);
  border: 1px solid #bfdbfe;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .header-inner {
    height: 84px;
  }

  .brand-logo img {
    width: 195px;
  }

  .hero-slider-section {
    height: 480px;
    min-height: 460px;
  }

  .hero-slide-title {
    font-size: 2.375rem;
  }

  .about-teaser-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

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

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

@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }

  .header-inner {
    height: 76px;
  }

  .brand-logo img {
    width: 165px;
  }

  .main-nav,
  .header-cta {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero-slider-section {
    height: 420px;
    min-height: 380px;
  }

  .hero-slide-content {
    padding-bottom: 2.75rem;
  }

  .hero-slide-title {
    font-size: 1.75rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
  }

  .hero-slide-subtitle {
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
  }

  .slider-nav-btn {
    display: none;
  }

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

  .section-header-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2.5rem;
  }

  .capabilities-grid,
  .approach-grid,
  .sectors-grid,
  .discipline-grid {
    grid-template-columns: 1fr;
  }

  .discipline-item {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .discipline-item:last-child {
    border-bottom: none;
  }

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

  .footer-brand img {
    width: 210px;
  }

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

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