/* --- Forms --- */
.form-container {
  max-width: 900px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

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

.form-group.full-width {
  grid-column: 1 / -1;
}

label {
  font-size: 0.75rem;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

input, textarea {
  width: 100%;
  padding: 1rem;
  background-color: #C5CDD3; /* Slightly darker grey for inputs */
  border: none;
  border-radius: 0;
  font-family: var(--font-family);
  font-size: 1rem;
  color: var(--text-dark);
  transition: background-color 0.3s ease;
}

input:focus, textarea:focus {
  outline: 1px solid var(--primary-color);
  background-color: #B8C2C9;
}

textarea {
  min-height: 200px;
  resize: vertical;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

/* File Upload block */
.file-upload {
  border: 1px dashed var(--primary-color);
  padding: var(--spacing-lg) var(--spacing-md);
  text-align: center;
  background-color: #C5CDD3;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.file-upload:hover {
  background-color: #B8C2C9;
}

.file-upload i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.file-upload span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-dark);
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
}

/* --- Hero Texts --- */
.page-intro {
  max-width: 800px;
  margin: 0 0 var(--spacing-xl) 0;
}

.page-intro h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 300;
  color: var(--primary-color);
  line-height: 1.4;
}

.section-title {
  font-size: 2.5rem;
  font-weight: normal;
  margin-bottom: var(--spacing-lg);
  color: var(--text-dark);
}

/* Icons */
.action-link {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 400 !important;
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  gap: 2.5rem !important;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.action-link:hover {
  opacity: 0.8;
}

.action-link svg {
  width: 42px;
  height: 15px;
  color: var(--text-dark);
  margin-left: 1rem !important;
  transition: color 0.3s ease, transform 0.3s ease;
}

.action-link:hover svg {
  color: #FF870F;
  transform: translateX(8px);
}

.action-link.risk-prev svg {
  transform: scaleX(-1);
}

.action-link.risk-prev:hover svg {
  color: #FF870F;
  transform: scaleX(-1) translateX(8px);
}

.product-arrow {
  width: 24px;
  height: 24px;
  stroke: var(--text-light); /* Or blue depending on container */
  transition: stroke 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.product-arrow:hover {
  stroke: #FFFFFF;
}

/* --- About & Strategy Specifics --- */

/* Split Section (Image Left / Text Right) */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.split-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.split-content h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.split-content h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--text-dark);
}

.split-content p {
  font-size: 1.1rem;
  margin-top: 1.5rem;
}

/* Risk Framework Interactive Slider */
.risk-framework-slider {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  width: 100%;
}

.risk-col {
  position: absolute;
  top: 0;
  height: 100%;
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.risk-text-1 {
  left: 0;
  width: 55%;
  padding-right: 4rem;
  display: flex;
  flex-direction: column;
}

.risk-text-1 h1 {
  font-size: clamp(3rem, 6vw, 4.5rem);
}

.risk-image-container {
  left: 55%;
  width: 45%;
}

.risk-text-2 {
  left: 100%;
  width: 55%;
  padding-left: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.risk-framework-slider.slid .risk-text-1 {
  left: -55%;
  opacity: 0;
  pointer-events: none;
}

.risk-framework-slider.slid .risk-image-container {
  left: 0;
  padding-right: 4rem;
}

.risk-framework-slider.slid .risk-text-2 {
  left: 45%;
}

.risk-img-wrapper {
  position: relative;
  width: 100%;
  height: 400px;
  margin-top: 3rem;
  overflow: hidden;
}

.risk-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.risk-img-2 {
  opacity: 0;
}

.risk-framework-slider.slid .risk-img-1 {
  opacity: 0;
}

.risk-framework-slider.slid .risk-img-2 {
  opacity: 1;
}

.risk-prev {
  opacity: 0;
  pointer-events: none;
}

.risk-framework-slider.slid .risk-prev {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 900px) {
  .risk-framework-slider {
    min-height: auto;
    display: flex;
    flex-direction: column;
  }
  .risk-col {
    position: relative;
    width: 100% !important;
    left: 0 !important;
    padding: 0 !important;
    margin-bottom: 0.5rem;
  }
  .risk-img-wrapper {
    height: 300px;
    margin-top: 1.5rem;
  }
  .risk-framework-slider.slid .risk-text-1 {
    display: none;
  }
  .risk-text-2 {
    display: none;
    margin-top: 2rem;
  }
  .risk-framework-slider.slid .risk-text-2 {
    display: flex;
  }
}


/* Core Values Section */
.values-header {
  max-width: 800px;
  margin-bottom: var(--spacing-lg);
}

.values-header h2 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.values-header p {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 18pt;
  font-weight: 400;
  line-height: 1.6;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 300px;
}

.value-card {
  padding: var(--spacing-lg) var(--spacing-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--text-light); /* Default white */
  height: 325px; /* Exact height of product tab buttons */
  transition: background-color 0.4s ease, color 0.4s ease;
  cursor: pointer;
}

.value-card.highlight {
  background-color: var(--accent-color);
  color: var(--text-light);
}

.value-icon {
  width: 80px;
  height: 90px;
  background-image: url('../assets/Icons/rectangle%20circle.svg');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.value-icon img {
  width: 40px;
  height: 40px;
}

.value-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.value-card p {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 0;
}

/* CTA Overlay Section */
.cta-overlay-section {
  position: relative;
  height: 60vh;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-overlay-box {
  background-color: rgba(255, 255, 255, 0.5); /* Semi-transparent white */
  backdrop-filter: blur(10px);
  padding: var(--spacing-md) var(--spacing-xl);
  text-align: center;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.cta-overlay-box:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

/* --- Home Page Specifics --- */

/* Home Hero Text */
.home-hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 600px;
}

.home-hero-text h1 {
  font-size: clamp(4rem, 8vw, 5.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text-dark);
}

.home-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: flex-start;
}

.home-hero-image {
  position: relative;
  z-index: 10;
}

.home-hero-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Products Section */
.products-wrapper {
  display: grid;
  grid-template-columns: 1fr 2fr;
  height: 480px !important;
}

.products-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.products-content {
  background-color: var(--accent-color);
  padding: 2.5rem 2rem !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.products-splide {
  margin-top: 1rem;
  padding-bottom: 1rem;
  margin-right: -2rem; /* Extend to edge */
  padding-right: 2rem;
}

.products-splide .splide__slide {
  width: 280px;
}

.products-splide .splide__slide.mobile-only {
  width: auto;
}

.product-card {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 1.5rem;
}

.product-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  margin-top: 2rem;
  color: var(--text-light);
}

.product-card p {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 0;
  color: var(--text-light);
}

.product-icon {
  width: 40px;
  height: 40px;
  filter: brightness(0) invert(1) !important;
}

/* Presence Section */
.presence-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: center;
  gap: var(--spacing-xl);
}

.presence-map {
  width: 100%;
}

.presence-legend {
  font-size: 0.9rem;
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.legend-color {
  width: 20px;
  height: 20px;
  margin-right: 1rem;
}

.legend-color.blue {
  background-color: var(--primary-color);
}

.legend-color.orange {
  background-color: var(--accent-color);
}

/* Careers Teaser Grid */
.careers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-sm);
  position: relative;
}

.careers-grid img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.careers-overlay {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 1rem 2rem;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
}

.careers-overlay:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

/* Who We Are Slider */
.wwa-slider-container {
  position: relative;
  overflow: hidden;
}

.wwa-slide {
  display: none;
  animation: fadeEffect 0.5s;
}

.wwa-slide.active {
  display: block;
}

.wwa-slide-title {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: var(--spacing-lg);
}

.wwa-slide-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: start;
}

.wwa-slide-image-col {
  width: 100%;
}

.wwa-slide-image-col img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.wwa-slide-content {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
}

.wwa-slide-content p {
  max-width: 70%;
}

.wwa-slider-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  margin-top: 1rem;
}

.wwa-dots {
  display: flex;
  gap: 0.5rem;
}

.wwa-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.wwa-dot.active {
  background-color: var(--accent-color);
}

@keyframes fadeEffect {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes subtleWobble {
  0%, 80%, 100% { transform: translateX(0); }
  85% { transform: translateX(5px); }
  90% { transform: translateX(-3px); }
  95% { transform: translateX(3px); }
}

.wwa-next-arrow {
  animation: subtleWobble 3s infinite;
}

@keyframes subtleWobbleLeft {
  0%, 80%, 100% { transform: scaleX(-1) translateX(0); }
  85% { transform: scaleX(-1) translateX(5px); }
  90% { transform: scaleX(-1) translateX(-3px); }
  95% { transform: scaleX(-1) translateX(3px); }
}

.wwa-next-arrow path {
  transition: stroke 0.3s ease;
}

.wwa-next-arrow:hover path {
  stroke: var(--accent-color) !important;
}

.action-link svg {
  animation: subtleWobble 3s infinite;
}

.action-link.risk-prev svg {
  animation: subtleWobbleLeft 3s infinite;
  transform: scaleX(-1);
}

/* --- Mobile Responsive Updates --- */
.desktop-only {
  display: block;
}

.mobile-only, .mobile-flex {
  display: none !important;
}

.ipad-only {
  display: none !important;
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero-desktop-vid {
    display: none !important;
  }
  .ipad-only {
    display: block !important;
  }
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
  
  .ipad-only {
    display: none !important;
  }
  
  .mobile-only {
    display: block !important;
  }

  .mobile-flex {
    display: flex !important;
  }

  /* Home Hero Text & Image Layout */
  .home-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .home-hero-text {
    display: flex;
    flex-direction: column-reverse;
  }
  /* Mobile Typography */
  .home-hero-text h1, .wwa-slide-title {
    font-size: 40px !important;
    margin-bottom: 1.5rem;
    line-height: 1.1;
  }
  h2, .section-title {
    font-size: 28px !important;
  }
  .products-splide .splide__slide:not(.mobile-only) {
    width: 200px !important;
  }
  .product-card h3 {
    font-size: 16px !important;
    font-weight: 400 !important;
    letter-spacing: 0.5px;
  }
  p, .split-content p {
    font-size: 16px !important;
    line-height: 1.5 !important;
  }
  .product-card p {
    font-size: 10px !important;
    font-family: 'IBM Plex Mono', monospace !important;
    line-height: 1.5 !important;
  }
  .action-link {
    font-size: 14px !important;
  }
  .home-hero-text .action-link {
    margin-bottom: 0 !important;
    margin-top: 1rem;
  }

  /* Split Sections (Leadership & Globe) */
  .split-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .split-content {
    padding: 0 !important;
  }

  /* Products Horizontal Scroll */
  .products-wrapper {
    grid-template-columns: 1fr;
    height: auto !important;
  }
  .products-content {
    padding: 2rem 0 2rem var(--spacing-md) !important; /* Allow scroll to bleed edge */
  }
  .products-splide {
    margin-right: -1.5rem !important;
    padding-right: 1.5rem !important;
  }
  .products-splide img.mobile-only {
    object-fit: cover;
    height: auto;
  }
  
  /* Careers / Opportunities */
  .careers-grid {
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 0.5rem;
  }
  .careers-grid .btn {
    font-size: 12px !important;
    padding: 0.5rem 1rem;
  }
  .careers-img {
    height: 190px !important;
    object-position: center;
  }
  .careers-overlay, .btn {
    font-size: 12px !important;
    white-space: nowrap;
    padding: 0.75rem 1rem !important;
  }
  
  /* Presence Section Mobile */
  .presence-grid {
    display: flex !important;
    flex-direction: column-reverse;
    align-items: flex-start !important;
    gap: 1rem !important;
  }
  .presence-legend {
    flex-direction: row !important;
    justify-content: flex-start !important;
    gap: 2rem !important;
  }
  .legend-group h4 {
    font-size: 0.75rem !important;
  }
  .legend-group span {
    font-size: 0.75rem !important;
  }
  .presence-map {
    width: 100% !important;
    max-width: 400px;
    margin: 0 auto !important;
  }
  
  /* Who We Are Slider Mobile */
  .wwa-slide-split {
    display: flex !important;
    flex-direction: column-reverse;
    gap: 1.5rem;
  }
  .wwa-slide-content p {
    max-width: 70% !important;
  }

  .cta-overlay-section {
    height: 36vh !important;
    min-height: 240px !important;
    background-position: center 75% !important; /* adjust slightly to see more of the truck/bridge */
  }

  .values-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    gap: 0 !important;
    padding-bottom: 0;
    -webkit-overflow-scrolling: touch;
    grid-template-columns: none !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-left: calc(var(--spacing-md) * -1) !important;
    margin-right: calc(var(--spacing-md) * -1) !important;
  }
  .values-grid::-webkit-scrollbar {
    display: none;
  }

  .value-card {
    flex: 0 0 240px !important;
    height: auto !important;
    min-height: 280px;
    scroll-snap-align: center;
  }

  .value-card h3 {
    font-size: 16px !important;
    font-weight: 400 !important;
    letter-spacing: 0.5px;
  }

  .value-card p {
    font-size: 10px !important;
    font-family: 'IBM Plex Mono', monospace !important;
    line-height: 1.5 !important;
  }
}

/* Slider Arrows */
.slider-arrow {
    background-color: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: none !important;
    border-radius: 50px !important;
    width: 60px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: var(--primary-color) !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
}
.slider-arrow:hover {
    background-color: rgba(255, 255, 255, 0.8) !important;
    color: var(--primary-color) !important;
}
