/* =========================================
   HERO SECTION - Modern 2025 Style with WebGL Gradient
   ========================================= */

/* Prevent horizontal scroll on entire page */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Hero section styling - extends to top of viewport behind navbar */
.hero-section {
  position: relative;
  overflow: hidden;
  background: transparent; /* Transparent to show gradient canvas */
  margin-top: 0 !important;
  padding-top: 0 !important;
  /* Responsive horizontal padding */
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Tablet: moderate padding */
@media (min-width: 768px) {
  .hero-section {
    padding-left: 5%;
    padding-right: 5%;
  }
}

/* Desktop: larger padding */
@media (min-width: 1200px) {
  .hero-section {
    padding-left: 12%;
    padding-right: 12%;
  }
}

/* Hero inner column padding - responsive */
.hero-inner-column {
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .hero-inner-column {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1200px) {
  .hero-inner-column {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

/* Ensure main content starts at absolute top of viewport - no gap for navbar */
main#content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Body should have no top padding/margin when navbar is fixed overlay */
body {
  margin: 0 !important;
  padding-top: 0 !important;
}

/* WebGL Gradient Canvas - full coverage hero background */
#gradient-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  /* Gradient colors defined via inline style in hero.html */
}

/* Ensure content is above the canvas */
.hero-section > * {
  position: relative;
  z-index: 2;
}

/* Keep canvas behind content and navbar */
.hero-section canvas {
  z-index: 0 !important;
}

/* Hero content - horizontal text, above gradient */
.hero-content-angled {
  position: relative;
  z-index: 10;
}

/* Hero title - white text on full gradient background */
.hero-section .hero-title {
  color: var(--text-inverse);
  font-size: clamp(3rem, 10vw, 8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-section h1 {
  color: var(--text-inverse);
}

.hero-section .display-1 {
  color: var(--text-inverse);
}

.hero-section .hero-subtitle {
  color: var(--text-inverse);
  font-weight: var(--font-weight-normal);
  line-height: 1.6;
}

.hero-section p {
  color: var(--text-inverse);
}

/* Hero CTA Buttons - Same size, side-by-side on mobile */
.hero-cta-buttons {
  max-width: 600px;
  margin: 0 auto;
}

.btn-hero {
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
  padding: 0.75rem 1.25rem !important;
  font-size: 0.95rem !important;
}

/* Primary button - yellow for maximum impact */
.hero-section .btn-primary {
  background-color: var(--color-yellow);
  border-color: var(--color-yellow);
  color: var(--color-navy-deep);
  font-weight: var(--font-weight-semibold);
}

.hero-section .btn-primary:hover {
  background-color: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-navy-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hero-btn);
}

/* Outline button - white outline on gradient background */
.hero-section .btn-outline-primary {
  border-color: var(--text-inverse);
  color: var(--text-inverse);
  background-color: transparent;
}

.hero-section .btn-outline-primary:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--text-inverse);
  color: var(--text-inverse);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* Mobile adjustments - smaller buttons to fit side-by-side */
@media (max-width: 576px) {
  .btn-hero {
    padding: 0.625rem 0.875rem !important;
    font-size: 0.85rem !important;
  }

  .hero-cta-buttons {
    max-width: 100%;
  }
}

/* Tablet and up - slightly larger */
@media (min-width: 768px) {
  .btn-hero {
    padding: 0.875rem 1.75rem !important;
    font-size: 1rem !important;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section {
    min-height: 50vh !important;
    padding: 3rem 0 !important;
  }

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

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .hero-section,
  .hero-section::before {
    animation: none !important;
  }

  .hero-section {
    background: #001D3D;
  }

  .hero-section * {
    transition: none !important;
  }
}

/* =========================================
   SERVICE PAGE VIDEO HERO
   ========================================= */

.service-hero {
  background-color: var(--color-navy-deep);
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.service-hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.service-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 29, 61, 0.85) 0%,
    rgba(0, 53, 102, 0.75) 100%
  );
  z-index: 1;
}

.min-vh-50 {
  min-height: 50vh;
}

.breadcrumb-light .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
  .service-hero {
    min-height: 50vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-hero-video {
    display: none;
  }
}

/* =========================================
   CLIENT LOGOS GRID
   ========================================= */

.client-logos-section {
  background-color: #ffffff;
}

.client-logo-placeholder {
  height: 60px;
  background-color: transparent;
  border: none;
  transition: all var(--transition-smooth);
}

.client-logo-placeholder span {
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
}

/* Client logos — greyscale by default, colour on hover */
.client-logo-placeholder img {
  max-width: 100%;
  max-height: 40px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all var(--transition-smooth);
}

.client-logo-placeholder:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .client-logo-placeholder {
    height: 50px;
  }
}
