/* ==========================================================================
   FiveNine Optics - Main Stylesheet
   v1.0.1 - Navigation dropdowns, skip-link fix, scroll-padding
   ========================================================================== */

/* CSS Variables
   ========================================================================== */
:root {
  /* Fonts - Proxima Nova from Adobe Fonts */
  --font-primary: 'proxima-nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Font Weights */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Colors */
  --color-primary: #000000;
  --color-secondary: #1a1a1a;
  --color-gray: #2a2a2a;
  --color-gray-light: #3a3a3a;
  --color-accent: #4B80EA;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-text-white: #ffffff;
  --color-text-white-muted: rgba(255, 255, 255, 0.8);
  --color-bg: #ffffff;
  --color-bg-light: #f5f5f5;
  --color-bg-dark: #000000;
  --color-bg-gray: #2a2a2a;
  --color-border: #e0e0e0;
  --color-border-dark: #333333;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  --spacing-xxl: 6rem;

  /* Container */
  --container-max-width: 1200px;
  --container-padding: 1.5rem;

  /* Transitions */
  --transition-base: 0.3s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 180px; /* Offset for sticky header */
}

body {
  font-family: var(--font-primary);
  font-weight: var(--font-regular);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-accent);
}

/* Skip Link - Accessibility
   ========================================================================== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: #000000;
  color: #ffffff;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 10000;
  font-size: 1rem;
  font-weight: var(--font-semibold);
}

.skip-link:focus {
  top: 0;
  outline: 3px solid #eff923;
  outline-offset: 2px;
}

/* Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-semibold);
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: clamp(1.8rem, 5vw, 3.15rem);
  font-weight: var(--font-light);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

h2 {
  font-size: 1.3125rem; /* 21px (30px × 0.70) */
  font-weight: var(--font-medium);
  line-height: 1.2; /* 36px leading in AI */
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: 1.3125rem; /* 21px (30px × 0.70) */
  font-weight: var(--font-semibold);
  line-height: 1.2; /* 36px leading in AI */
}

p {
  font-size: 1.4rem; /* 22.4px (32px × 0.70) */
  line-height: 1.28125; /* 41px leading in AI */
  margin-bottom: var(--spacing-sm);
}

/* Section Paragraph Content - Large */
.section-paragraph-large {
  font-size: 1.8375rem; /* 29.4px (42px × 0.70) */
  font-weight: var(--font-light);
  line-height: 1.714; /* 50.4px leading (50.4 ÷ 29.4) */
}

/* Container
   ========================================================================== */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 calc(var(--container-padding) * 2.5);
}

/* Header
   ========================================================================== */
.site-header {
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.1875rem 0; /* 35px (50px × 0.70) */
}

.logo a {
  display: block;
}

.logo img {
  height: 80px;
  width: auto;
  display: block;
}

.logo-text {
  font-size: 1.35rem;
  font-weight: var(--font-bold);
  letter-spacing: 0.05em;
  color: var(--color-primary);
}

.logo-subtext {
  font-size: 0.7875rem;
  font-weight: var(--font-light);
  letter-spacing: 0.15em;
  color: var(--color-text-light);
}

/* Navigation
   ========================================================================== */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: var(--spacing-md);
}

.main-nav a {
  font-size: 0.8922rem; /* 14.28px (20.3928px × 0.70) */
  font-weight: var(--font-semibold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.5rem 0;
  position: relative;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-caret {
  margin-top: 2px;
  transition: transform var(--transition-base);
}

.nav-item-with-dropdown:hover .nav-caret {
  transform: rotate(180deg);
}

.main-nav a::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background-color: #51F4EF;
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.main-nav a:hover::before,
.main-nav a.active::before {
  opacity: 1;
}

/* Page-specific navigation dot colors */
.main-nav a.nav-link-about::before {
  background-color: #51F4EF !important; /* Cyan - Home/About page */
}

.main-nav a.nav-link-products::before {
  background-color: #4B80EA !important; /* Blue - Products page */
}

.main-nav a.nav-link-markets::before {
  background-color: #A105E2 !important; /* Purple - Markets page */
}

.main-nav a.nav-link-resources::before {
  background-color: #F88015 !important; /* Orange - Resources page */
}

.main-nav a.nav-link-contact::before {
  background-color: #eff923 !important; /* Gold/Yellow - Contact page */
}

/* Navigation Dropdown */
.nav-item-with-dropdown {
  position: relative;
}

.nav-dropdown {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 0;
  padding: 0.625rem 0; /* 10px top and bottom padding */
  min-width: 160px;
  list-style: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Create an invisible bridge between the link and dropdown */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -0.5rem;
  left: 0;
  right: 0;
  height: 0.5rem;
  background: transparent;
}

.nav-item-with-dropdown:hover .nav-dropdown {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.2s ease, visibility 0s linear 0s;
  pointer-events: auto;
}

.nav-dropdown li {
  padding: 0;
  margin: 0;
  text-align: left;
}

.nav-dropdown a {
  display: block;
  padding: 0.125rem 1.25rem; /* 2px top/bottom, 20px left/right */
  font-size: 0.8922rem; /* 14.28px (20.3928px × 0.70) - matches main nav */
  font-weight: var(--font-semibold); /* matches main nav */
  letter-spacing: 0.05em; /* matches main nav */
  text-transform: uppercase; /* matches main nav */
  line-height: 1;
  color: var(--color-text); /* Dark text color */
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition-base);
}

.nav-dropdown a::before {
  display: none;
}

.nav-dropdown a:hover {
  text-decoration-color: #51F4EF; /* Cyan underline on hover */
}

/* Mobile Navigation Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background-color: var(--color-primary);
  transition: all var(--transition-base);
}

/* Hero Section - Video Only
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 500px;
  background-color: var(--color-primary);
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero Content Section
   ========================================================================== */
.hero-content-section {
  background-color: var(--color-bg-dark);
  color: var(--color-text-white);
  padding: var(--spacing-xxl) 0 calc(var(--spacing-xxl) / 2);
  text-align: center;
}

.hero-main-text {
  margin-bottom: 2rem; /* Half of spacing-xl (4rem / 2 = 2rem) */
}

.hero-main-text h1 {
  font-size: 2.4063rem; /* 38.5px (55px × 0.70) */
  font-weight: var(--font-medium);
  line-height: 1.2; /* 66px leading in AI */
  margin-bottom: var(--spacing-md);
  color: var(--color-text-white);
}

.hero-main-text p {
  font-size: 2.4063rem; /* 38.5px (55px × 0.70) */
  font-weight: var(--font-medium);
  line-height: 1.2; /* 66px leading in AI */
  margin-bottom: 0;
  color: var(--color-text-white);
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-xl);
  max-width: 100%;
  margin: 0 0 var(--spacing-xl);
  justify-items: center;
}

.hero-feature {
  text-align: center;
  padding: 0;
}

.hero-feature h3 {
  font-size: clamp(0.7875rem, 2vw, 1.1813rem); /* 18.9px (27px × 0.70) */
  font-weight: var(--font-bold);
  line-height: 1.333; /* 36px leading in AI */
  color: #51F4EF;
  margin-bottom: 0.5rem; /* Reduced from var(--spacing-sm) which is 1rem */
  letter-spacing: 0.05em;
  text-align: center;
}

.hero-feature p {
  font-size: clamp(0.7088rem, 1.5vw, 1.26rem); /* 20.16px (28.8px × 0.70) */
  font-weight: var(--font-medium);
  line-height: 1.28125; /* Same as paragraph text */
  color: var(--color-text-white-muted);
  text-align: center;
  margin-bottom: 0;
}

.hero-compliance {
  font-size: 1.05rem; /* 16.8px (24px × 0.70) */
  font-weight: var(--font-medium);
  line-height: 1.3; /* Assumed standard */
  color: var(--color-text-white-muted);
  margin-top: var(--spacing-xl);
}

/* Spotlight Section
   ========================================================================== */
.spotlight {
  background-color: #4D4D4D;
  padding: calc(62px * 0.70) 0; /* 62px top and bottom padding with 70% scaling */
}

.spotlight-heading {
  font-size: 1.3rem;
  font-weight: var(--font-bold);
  line-height: 1.333; /* 36px leading in AI */
  color: #4B80EA;
  margin-bottom: calc(37px * 0.70); /* 37px spacing between elements with 70% scaling */
  letter-spacing: 0.05em;
  position: relative;
  padding-left: 2rem;
}

.spotlight-heading::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-color: #4B80EA;
  border-radius: 50%;
}

.spotlight-text {
  font-size: clamp(0.7088rem, 1.5vw, 1.26rem); /* 20.16px (28.8px × 0.70) */
  font-weight: var(--font-medium);
  line-height: 1.28125; /* Same as paragraph text */
  max-width: 1000px;
  margin-bottom: calc(37px * 0.70); /* 37px spacing between elements with 70% scaling */
  color: var(--color-text-white);
}

.spotlight-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(0.7088rem, 1.5vw, 1.1813rem); /* 18.9px (27px × 0.70) */
  font-weight: var(--font-medium);
  color: var(--color-text-white);
  text-decoration: none;
  transition: color var(--transition-base);
}

.spotlight-cta:hover {
  color: #4B80EA;
}

.spotlight-cta .arrow-icon {
  width: 24px;
  height: 24px;
  transition: transform var(--transition-base);
}

.spotlight-cta:hover .arrow-icon {
  transform: translateX(5px);
}

/* Our Story Section
   ========================================================================== */
.our-story {
  padding: calc(110px * 0.70) 0; /* 110px with 70% scaling = 77px */
  background-color: var(--color-bg);
}

.our-story-heading {
  font-size: 1.3rem;
  font-weight: var(--font-bold);
  line-height: 1.333; /* 36px leading in AI */
  color: #F88015;
  margin-bottom: calc(37px * 0.70); /* 37px with 70% scaling = 25.9px */
  letter-spacing: 0.05em;
  position: relative;
  padding-left: 2rem;
}

.our-story-heading::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-color: #F88015;
  border-radius: 50%;
}

.our-story-intro {
  font-size: clamp(0.7088rem, 1.5vw, 1.26rem); /* 20.16px (28.8px × 0.70) */
  font-weight: var(--font-medium);
  line-height: 1.28125; /* Same as paragraph text */
  margin-bottom: calc(112px * 0.70); /* 112px with 70% scaling = 78.4px */
  color: var(--color-text);
  max-width: 1200px;
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--spacing-lg);
  margin: calc(37px * 0.70) 0; /* 37px with 70% scaling = 25.9px */
  padding: var(--spacing-lg) 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.industry {
  text-align: center;
}

.industry img {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-sm);
  display: block;
}

.industry h3 {
  font-size: 1.47rem; /* 23.52px (33.6px × 0.70) */
  font-weight: var(--font-bold);
  color: var(--color-text);
  line-height: 1.2; /* 40.32px leading in AI */
}

.our-story-content {
  max-width: 1200px;
  margin: calc(37px * 0.70) auto 0; /* 37px with 70% scaling = 25.9px */
}

.our-story-content p {
  font-size: clamp(0.7088rem, 1.5vw, 1.26rem); /* 20.16px (28.8px × 0.70) */
  font-weight: var(--font-medium);
  line-height: 1.28125; /* Same as paragraph text */
  margin-bottom: calc(37px * 0.70); /* 37px with 70% scaling = 25.9px */
  color: var(--color-text);
}

/* Our Facility Section
   ========================================================================== */
.our-facility {
  padding: calc(116px * 0.70) 0 calc(160px * 0.70); /* 116px top (81.2px), 160px bottom (112px) with 70% scaling */
  background-color: var(--color-bg);
}

.our-facility-heading {
  font-size: 1.3rem;
  font-weight: var(--font-bold);
  line-height: 1.333; /* 36px leading in AI */
  color: #A105E2;
  margin-bottom: calc(36px * 0.70); /* 36px with 70% scaling = 25.2px */
  letter-spacing: 0.05em;
  position: relative;
  padding-left: 2rem;
}

.our-facility-heading::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-color: #A105E2;
  border-radius: 50%;
}

.our-facility-content {
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: calc(113px * 0.70); /* 113px with 70% scaling = 79.1px */
}

.our-facility-content p {
  font-size: clamp(0.7088rem, 1.5vw, 1.26rem); /* 20.16px (28.8px × 0.70) */
  font-weight: var(--font-medium);
  line-height: 1.28125; /* Same as paragraph text */
  margin-bottom: calc(37px * 0.70); /* 37px with 70% scaling = 25.9px */
  color: var(--color-text);
}

.our-facility-content p:last-child {
  margin-bottom: 0;
}

/* Facility Carousel */
.facility-carousel-wrapper {
  width: 100%;
  margin-top: 0;
  position: relative;
}

.facilitySwiper {
  width: 100%;
  height: auto;
}

.facilitySwiper .swiper-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: auto !important;
}

.facilitySwiper .swiper-slide img {
  width: auto;
  max-width: 100%;
  height: 600px;
  display: block;
  object-fit: contain;
  margin: 0 auto;
}

/* Responsive image heights */
@media (max-width: 900px) {
  .facilitySwiper .swiper-slide img {
    height: 400px;
  }
}

@media (max-width: 480px) {
  .facilitySwiper .swiper-slide img {
    height: 300px;
  }
}

.facilitySwiper .slide-caption {
  font-family: var(--font-primary);
  font-size: 0.945rem; /* 15.12px (21.6px × 0.70) */
  font-style: italic;
  font-weight: var(--font-regular);
  line-height: 1.4; /* Assumed standard for captions */
  color: var(--color-text);
  padding: var(--spacing-md) 0;
  text-align: left;
  width: 100%;
  background-color: var(--color-bg);
}

/* Carousel Navigation Arrows - Custom SVG icons */
.facilitySwiper .swiper-button-prev,
.facilitySwiper .swiper-button-next {
  width: 60px !important;
  height: 60px !important;
  background-color: transparent !important;
  transition: all var(--transition-base);
  margin-top: -30px; /* Center vertically */
  color: transparent !important; /* Hide any text/icon color */
}

/* Hide Swiper default arrow icons - multiple selectors for specificity */
.facilitySwiper .swiper-button-prev::after,
.facilitySwiper .swiper-button-next::after,
.facilitySwiper .swiper-button-prev:after,
.facilitySwiper .swiper-button-next:after {
  content: none !important;
  display: none !important;
  font-size: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.facilitySwiper .swiper-button-prev {
  left: 20px;
  background-image: var(--arrow-left) !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

.facilitySwiper .swiper-button-next {
  right: 20px;
  background-image: var(--arrow-right) !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

.facilitySwiper .swiper-button-prev:hover,
.facilitySwiper .swiper-button-next:hover {
  opacity: 0.8;
}

.facilitySwiper .swiper-button-disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Content Section Block
   ========================================================================== */
.content-section {
  padding: calc(116px * 0.70) 0 0; /* Top padding only - bottom handled by content margin */
  background-color: var(--color-bg);
}

.content-section-heading {
  font-size: 1.3rem;
  font-weight: var(--font-bold);
  line-height: 1.333;
  color: #A105E2; /* Purple - same as static site */
  margin-bottom: calc(36px * 0.70);
  letter-spacing: 0.05em;
  position: relative;
  padding-left: 2rem;
}

.content-section-heading::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-color: #A105E2; /* Purple dot - same as static site */
  border-radius: 50%;
}

/* Allow custom heading colors to override default purple */
.content-section-heading[style*="color"]::before {
  background-color: currentColor;
}

.content-section-content {
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: calc(113px * 0.70); /* Space after content, same as static site */
}

.content-section-content p {
  font-size: clamp(0.7088rem, 1.5vw, 1.26rem);
  font-weight: var(--font-medium);
  line-height: 1.28125;
  margin-bottom: calc(37px * 0.70);
  color: var(--color-text);
}

.content-section-content p:last-child {
  margin-bottom: 0;
}

/* Image Carousel Block
   ========================================================================== */
.image-carousel-wrapper {
  width: 100%;
  position: relative;
  padding: 0;
  padding-bottom: calc(160px * 0.70); /* Bottom padding same as static site section */
  background-color: var(--color-bg);
}

.image-carousel-wrapper .swiper {
  width: 100%;
  height: auto;
}

.image-carousel-wrapper .swiper-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: auto !important;
}

.image-carousel-wrapper .swiper-slide img {
  width: auto;
  max-width: 100%;
  height: 600px;
  display: block;
  object-fit: contain;
  margin: 0 auto;
}

/* Responsive image heights for Image Carousel */
@media (max-width: 900px) {
  .image-carousel-wrapper .swiper-slide img {
    height: 400px;
  }
}

@media (max-width: 480px) {
  .image-carousel-wrapper .swiper-slide img {
    height: 300px;
  }
}

/* Image Carousel Navigation Arrows */
.image-carousel-wrapper .swiper-button-prev,
.image-carousel-wrapper .swiper-button-next {
  width: 60px !important;
  height: 60px !important;
  background-color: transparent !important;
  transition: all var(--transition-base);
  margin-top: -30px; /* Center vertically */
  color: transparent !important; /* Hide any text/icon color */
}

/* Hide Swiper default arrow icons - multiple selectors for specificity */
.image-carousel-wrapper .swiper-button-prev::after,
.image-carousel-wrapper .swiper-button-next::after,
.image-carousel-wrapper .swiper-button-prev:after,
.image-carousel-wrapper .swiper-button-next:after {
  content: none !important;
  display: none !important;
  font-size: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.image-carousel-wrapper .swiper-button-prev {
  left: 20px;
  background-image: var(--arrow-left) !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

.image-carousel-wrapper .swiper-button-next {
  right: 20px;
  background-image: var(--arrow-right) !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

.image-carousel-wrapper .swiper-button-prev:hover,
.image-carousel-wrapper .swiper-button-next:hover {
  opacity: 0.8;
}

.image-carousel-wrapper .swiper-button-disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Image Carousel Pagination */
.image-carousel-wrapper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: var(--color-gray-light);
  opacity: 0.5;
}

.image-carousel-wrapper .swiper-pagination-bullet-active {
  background-color: var(--color-text);
  opacity: 1;
}

/* Product Showcase
   ========================================================================== */
.product-showcase {
  padding: var(--spacing-xxl) 0;
  background-color: var(--color-bg-dark);
}

.product-showcase h2 {
  text-align: center;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-white);
}

.product-showcase .section-subtitle {
  color: var(--color-text-white-muted);
}

.section-subtitle {
  text-align: center;
  font-size: 1.0125rem;
  font-weight: var(--font-light);
  color: var(--color-text-light);
  margin-bottom: var(--spacing-xl);
}

.product-hero {
  max-width: 100%;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  margin: 0 auto;
}

.product-hero img {
  width: 100%;
  height: auto;
  display: block;
}

/* Legacy grid styles (kept for other pages if needed) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.product-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Team Section
   ========================================================================== */
.team {
  padding: calc(110px * 0.70) 0; /* Same as other sections */
  background-color: #000000;
  position: relative;
  overflow: hidden;
}

.team .container {
  position: relative;
}

.team-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--spacing-xl);
  margin-top: 30px;
  position: relative;
}

.team-text {
  flex: 1;
  max-width: 600px;
  position: relative;
  z-index: 2;
}

.team-heading {
  font-family: var(--font-primary);
  font-weight: var(--font-bold);
  font-size: 1.3rem;
  line-height: 1.333; /* 36px leading in AI */
  color: #4B80EA;
  margin-bottom: calc(37px * 0.70); /* Match other sections */
  text-align: left;
  position: relative;
  padding-left: 3rem;
}

.team-heading::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-color: #4B80EA;
  border-radius: 50%;
}

.team-description {
  font-family: var(--font-primary);
  font-weight: var(--font-medium);
  font-size: 2.3188rem; /* 37.1px (53px × 0.70) */
  color: #ffffff;
  line-height: 1.264; /* 67px leading in AI */
  margin-bottom: 0;
}

.team-image-desktop {
  position: absolute;
  right: 0;
  top: 0;
  width: 31.875%; /* Reduced by 15% from 37.5% */
  height: auto;
  z-index: 0;
  overflow: visible;
}

.team-image-desktop img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  object-fit: cover;
}

.team-grid-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  margin-top: 220px;
  margin-left: -20px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  margin-top: 0;
  position: relative;
  z-index: 2;
}

/* Team grid variations for different members per row */
.team-grid.team-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

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

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

.team-member {
  text-align: center;
  position: relative;
  padding: 10px;
}

.team-member-photo {
  position: relative;
  width: 250px;
  height: 250px;
  margin: 0 auto;
  cursor: pointer;
  border-radius: 50%;
  outline: 0px solid transparent;
  outline-offset: 0px;
  transition: outline-color var(--transition-base), outline-width 0s;
}

.team-member-photo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.39);
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: 1;
  pointer-events: none;
}

.team-member-photo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  position: relative;
  overflow: hidden;
}

/* Hover state: add thicker blue outline to hovered photo */
.team-member-photo:hover {
  outline-width: 10px;
  outline-color: #4B80EA;
}

/* Hover state: add white overlay to other photos when one is hovered */
.team-grid-wrapper:has(.team-member-photo:hover) .team-member-photo::before {
  opacity: 1;
}

.team-grid-wrapper:has(.team-member-photo:hover) .team-member-photo:hover::before {
  opacity: 0;
}

/* Desktop info section - appears between rows */
.team-member-info-desktop {
  text-align: center;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity var(--transition-base);
  order: 2;
}

.team-member-info-desktop.visible {
  opacity: 1;
}

.team-grid:first-of-type {
  order: 1;
}

.team-grid:last-of-type {
  order: 3;
  margin-top: 0;
}

.team-member-info-desktop h3 {
  font-family: var(--font-primary);
  font-weight: var(--font-bold);
  font-size: 1.8375rem; /* 29.4px (42px × 0.70) */
  line-height: 1.2; /* 50.4px leading in AI */
  color: #4B80EA;
  margin-bottom: 0.5rem;
  text-align: center;
}

.team-member-info-desktop p {
  font-family: var(--font-primary);
  font-weight: var(--font-light);
  font-size: 1.8375rem; /* 29.4px (42px × 0.70) */
  line-height: 1.2; /* 50.4px leading in AI */
  color: #4B80EA;
  text-align: center;
  letter-spacing: 0.05em;
}

.team-member-info-mobile {
  display: none;
  margin-top: var(--spacing-sm);
}

.team-member-info-mobile h3 {
  font-family: var(--font-primary);
  font-weight: var(--font-bold);
  font-size: 1.62rem; /* 1.35rem × 1.20 = increased by 20% */
  color: #4B80EA;
  margin-bottom: 0.25rem;
}

.team-member-info-mobile p {
  font-family: var(--font-primary);
  font-weight: var(--font-regular);
  font-size: 0.9rem;
  color: #4B80EA;
  letter-spacing: 0.05em;
}

/* Team Modal
   ========================================================================== */
.team-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.team-modal.active {
  display: flex;
}

.team-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  cursor: pointer;
}

.team-modal-content {
  position: relative;
  background-color: #333333;
  width: calc(100% - 10px);
  max-width: 650px;
  margin: 0 5px;
  height: auto;
  max-height: 95vh;
  overflow: hidden;
  z-index: 10000;
  display: flex;
  flex-direction: column;
}

/* Desktop modal layout - only above 900px */

.team-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #ACA18F;
  font-size: 4.5rem;
  font-weight: 100;
  cursor: pointer;
  z-index: 10001;
  padding: 0;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.team-modal-close span {
  font-weight: 100;
}

.team-modal-close:hover {
  opacity: 0.7;
}

.team-modal-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 95vh;
  overflow: hidden;
}

.team-modal-image {
  flex: 0 0 auto;
  width: 100%;
  height: 400px;
  max-height: 400px;
  background-color: #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  order: 1;
}

.team-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-modal-info {
  flex: 1 1 auto;
  padding: 20px 15px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  order: 2;
}

.team-modal-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.team-modal-dot {
  width: 1.575rem;
  height: 1.575rem;
  background-color: #4B80EA;
  border-radius: 50%;
  flex-shrink: 0;
  position: absolute;
  left: 50%;
  top: 400px;
  transform: translateX(-50%) translateY(-50%);
  z-index: 10;
}

/* Desktop modal layout - only above 900px */
@media (min-width: 901px) {
  .team-modal-content {
    width: 90vw;
    max-width: 1200px;
    margin: 0;
    display: inline-flex;
    flex-direction: row;
    max-height: 85vh;
  }

  .team-modal-inner {
    flex-direction: row;
    width: 100%;
    display: flex;
    max-height: 85vh;
  }

  .team-modal-image {
    flex: 0 0 480px;
    width: 480px;
    height: 100%;
    max-height: 85vh;
    order: 0;
    display: flex;
    align-items: flex-start;
  }

  .team-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top center;
    display: block;
  }

  .team-modal-info {
    flex: 1;
    padding: 50px 60px;
    order: 0;
    overflow-y: auto;
    min-width: 0;
    height: 100%;
  }

  .team-modal-dot {
    left: 480px;
    top: 50px;
    transform: translateX(-50%) translateY(0.6rem);
  }
}

.team-modal-header h2 {
  font-family: var(--font-primary);
  font-weight: var(--font-bold);
  font-size: 1.8375rem; /* 29.4px (42px × 0.70) */
  color: #4B80EA;
  margin: 0 0 5px 0;
  line-height: 1.2; /* 50.4px leading in AI */
}

.team-modal-header p {
  font-family: var(--font-primary);
  font-weight: var(--font-light);
  font-size: 1.8375rem; /* 29.4px (42px × 0.70) */
  color: #4B80EA;
  margin: 0;
  line-height: 1.2; /* 50.4px leading in AI */
}

.team-modal-bio {
  font-family: var(--font-primary);
  font-weight: var(--font-medium);
  font-size: 1.3125rem; /* 21px (30px × 0.70) */
  color: #ffffff;
  line-height: 1.233; /* 37px leading in AI */
}

/* Products Page
   ========================================================================== */
/* Products Hero Section */
.products-hero {
  padding: 0 0 calc(110px * 0.70); /* 0 top padding, 77px bottom */
  background-color: var(--color-bg-dark);
  color: var(--color-text-white);
}

.products-hero-content {
  display: flex;
  gap: calc(var(--spacing-xl) + 2rem); /* 4rem + 2rem = 6rem total gap */
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

.products-hero-text {
  flex: 1 1 0%;
  min-width: 0;
  padding-top: calc(((110px * 0.70) + 80px) / 2); /* 78.5px top padding for text column (half of original 157px) */
}

.products-heading {
  font-size: 1.3rem;
  font-weight: var(--font-bold);
  line-height: 1.333; /* 36px leading in AI */
  color: #4B80EA;
  margin-bottom: calc(37px * 0.70); /* 37px with 70% scaling = 25.9px */
  letter-spacing: 0.05em;
  position: relative;
  padding-left: 2rem;
}

.products-heading::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-color: #4B80EA;
  border-radius: 50%;
}

.products-intro {
  color: var(--color-text-white);
  margin-bottom: 0;
}

.products-hero-image {
  flex: 1 1 0%;
  min-width: 0;
}

.products-hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

/* Products Summary Section */
.products-summary {
  padding: 0 0 var(--spacing-xl);
  background-color: #000000;
  color: #ffffff;
}

.products-summary-text {
  font-size: 1.4rem;
  font-weight: var(--font-regular);
  line-height: 1.5;
  color: #ffffff;
  max-width: 1200px;
  margin: 0 auto;
}

/* Products Details Section */
.products-details {
  padding: calc(110px * 0.70) 0; /* 110px with 70% scaling = 77px */
  padding-top: 0;
  background-color: var(--color-bg-dark);
  color: var(--color-text-white);
}

.products-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  max-width: 1200px;
  margin: 0 auto;
}

.products-column-heading {
  font-size: 1.3rem;
  font-weight: var(--font-bold);
  line-height: 1.333;
  color: #4B80EA;
  margin-bottom: var(--spacing-sm);
  letter-spacing: 0.05em;
}

.products-column-tagline {
  font-size: 1.2rem;
  font-style: italic;
  font-weight: var(--font-regular);
  color: var(--color-text-white-muted);
  margin-bottom: var(--spacing-sm);
}

.products-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.products-list li {
  font-size: 1.4rem; /* 22.4px (32px × 0.70) - Paragraph Text */
  font-weight: var(--font-regular);
  line-height: 1.28125; /* 41px leading */
  color: var(--color-text-white);
  margin-bottom: var(--spacing-sm);
  padding-left: 1.5rem;
  position: relative;
}

.products-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-text-white);
}

.products-list a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.products-list a:hover {
  color: #6a9cf0;
}

/* Sub-bullet list */
.products-list .products-sublist {
  list-style: none !important;
  list-style-type: none !important;
  padding: 0;
  margin: var(--spacing-sm) 0 0 0;
}

.products-list .products-sublist li {
  font-size: 1.3rem;
  padding-left: 1.5rem;
  margin-bottom: var(--spacing-xs);
  list-style: none !important;
  list-style-type: none !important;
}

.products-list .products-sublist li::before {
  content: '•';
}

/* Products Page Responsive */
@media (max-width: 900px) {
  .products-hero-content {
    flex-direction: column;
    gap: var(--spacing-md); /* Reduce gap between image and text on mobile */
  }

  .products-hero-text {
    max-width: 100%;
    padding-top: 0; /* Remove desktop padding-top on mobile */
  }

  .products-hero-image {
    max-width: 100%;
    order: -1;
  }

  .products-hero-image img {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
  }

  .products-columns {
    grid-template-columns: 1fr;
    gap: var(--spacing-md); /* Reduce gap between columns on mobile */
  }

  /* Match home page section heading sizes */
  .products-column-heading {
    font-size: 1.3rem !important; /* Match homepage section heading size */
  }

  /* Hero heading */
  .products-heading {
    font-size: 1.3rem !important;
  }

  /* Adjust hero spacing to match home page */
  .products-hero {
    padding-top: 43.4px;
    padding-bottom: var(--spacing-md); /* Reduce bottom padding on mobile */
  }

  /* Swap paragraph font sizes on mobile - first paragraph larger, second normal */
  .products-intro.section-paragraph-large {
    font-size: 1.8375rem !important; /* Large paragraph size - override global mobile reduction */
    font-weight: var(--font-light);
    line-height: 1.714;
  }

  .products-summary-text {
    font-size: 1.4rem; /* Normal paragraph size */
    font-weight: var(--font-regular);
    line-height: 1.28125;
  }
}

/* About Section
   ========================================================================== */
.about {
  padding: var(--spacing-xxl) 0;
  background-color: var(--color-bg-light);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.about-text h2 {
  margin-bottom: var(--spacing-md);
}

.about-text p {
  font-size: 1.0625rem;
  font-weight: var(--font-light);
  line-height: 1.8;
  margin-bottom: var(--spacing-md);
}

.about-images {
  display: grid;
  gap: var(--spacing-md);
}

.about-images img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Footer
   ========================================================================== */
.site-footer {
  background-color: #000000;
  color: #ffffff;
  padding: var(--spacing-md) 0;
}

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

.footer-copyright {
  font-size: 0.875rem;
  font-weight: var(--font-regular);
  color: #ffffff;
  margin: 0;
}

/* Responsive Design
   ========================================================================== */
@media (max-width: 900px) {
  /* Mobile Navigation */
  .nav-toggle {
    display: flex;
  }

  .main-nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-bg);
    flex-direction: column;
    gap: 0;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--color-border);
  }

  .main-nav ul.is-active {
    display: flex;
  }

  .main-nav li {
    padding: 0 var(--container-padding);
  }

  .main-nav a {
    display: block;
    padding: var(--spacing-sm) 0;
  }

  /* Mobile dropdown styles */
  .nav-dropdown {
    position: static;
    display: none;
    transform: none;
    border: none;
    box-shadow: none;
    margin-top: 0;
    padding: 0;
    background-color: var(--color-bg-light);
  }

  .nav-item-with-dropdown.dropdown-open .nav-dropdown {
    display: block;
  }

  .nav-dropdown a {
    padding: 0.75rem var(--container-padding);
    padding-left: calc(var(--container-padding) + 1rem);
    font-size: 0.75rem;
  }

  /* Hero */
  .hero {
    height: 50vh;
    min-height: 400px;
  }

  /* Hero Content Section */
  .hero-features {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .hero-main-text h1 {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
  }

  .hero-main-text h1 br,
  .hero-main-text p br {
    display: none;
  }

  .hero-main-text p {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
  }

  .section-paragraph-large {
    font-size: 1.125rem;
    line-height: 1.5;
  }

  .hero-feature h3 {
    font-size: 1.25rem;
  }

  .hero-feature p {
    font-size: 1.125rem;
  }

  .hero-compliance {
    font-size: 1rem;
  }

  /* Industries Grid */
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }

  .industry img {
    width: 60px;
    height: 60px;
  }

  .industry h3 {
    font-size: 1.125rem;
  }

  /* Product Grid */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
  }

  /* Team Section Responsive */
  .team-image-desktop {
    display: none;
  }

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

  .team-text {
    max-width: 100%;
  }

  .team-description {
    font-size: 2rem;
  }

  .team-grid-wrapper {
    gap: var(--spacing-md);
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-top: 0;
  }

  .team-grid:first-of-type {
    order: unset;
  }

  .team-grid:last-of-type {
    order: unset;
  }

  .team-member-photo {
    width: 200px;
    height: 200px;
    border: 4px solid #4B80EA !important;
    pointer-events: auto !important;
  }

  .team-member-photo::before {
    display: none !important;
    opacity: 0 !important;
  }

  /* Disable hover effects on mobile */
  .team-member-photo:hover {
    outline-width: 0 !important;
    outline-color: transparent !important;
  }

  .team-grid-wrapper:has(.team-member-photo:hover) .team-member-photo::before {
    opacity: 0 !important;
  }

  .team-member-info-desktop {
    display: none;
  }

  .team-member-info-mobile {
    display: block;
  }

  /* Typography improvements for readability */
  h2 {
    font-size: 1.2rem;
  }

  h3 {
    font-size: 1.75rem;
  }

  p {
    font-size: 1.125rem;
    line-height: 1.5;
  }

  /* Section Headings - Uniform size */
  .spotlight-heading,
  .our-story-heading,
  .team-heading,
  .our-facility-heading,
  .resources-section-heading,
  .careers-subheading,
  .terms-heading {
    font-size: 1.3rem !important;
  }

  /* Section paragraph text - Consistent styling */
  .spotlight-text,
  .our-story-intro,
  .our-story-content p,
  .our-facility-content p {
    font-size: 1.125rem !important;
    line-height: 1.5 !important;
  }

  /* Our Story Section - Spacing adjustments */
  .our-story {
    padding-top: calc(62px * 0.70);
  }

  .our-story-heading {
    margin-bottom: calc(37px * 0.70);
  }

  .our-story-intro {
    margin-bottom: calc(112px * 0.70 * 0.25);
  }

  .industries-grid {
    margin-top: calc(37px * 0.70 * 0.25);
    margin-bottom: calc(37px * 0.70 * 0.25);
  }

  .our-story-content {
    margin-top: calc(37px * 0.70 * 0.25);
  }

  /* Our Team Section - Spacing adjustments */
  .team {
    padding-top: calc(62px * 0.70);
  }

  .team-content {
    margin-top: 0;
    margin-bottom: calc(var(--spacing-xl) * 0.25);
  }

  .team-grid-wrapper {
    margin-top: calc(220px * 0.25);
  }

  /* Override all grid variations to single column on mobile */
  .team-grid.team-grid-2,
  .team-grid.team-grid-3,
  .team-grid.team-grid-4 {
    grid-template-columns: 1fr;
  }

  /* Our Facility Section - Spacing adjustments */
  .our-facility {
    padding-top: calc(62px * 0.70);
  }

  /* About Section */
  .about-content {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

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

@media (max-width: 480px) {
  :root {
    --container-padding: 1rem;
    --spacing-xl: 2.5rem;
    --spacing-xxl: 3rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  /* Reduce logo and header by 20% */
  .logo img {
    height: 64px; /* 80px * 0.8 = 64px */
  }

  .header-content {
    padding: 1.75rem 0; /* 2.1875rem * 0.8 = 1.75rem (35px * 0.8 = 28px) */
  }

  /* Remove colored dots from mobile hamburger menu */
  .main-nav a::before {
    display: none !important;
  }

  /* Increase mobile typography for readability */
  h2 {
    font-size: 1.2rem;
  }

  h3 {
    font-size: 1.75rem; /* Increased from 1.3125rem for mobile */
  }

  p {
    font-size: 1.125rem; /* Increased from 1.4rem (which was too large) for mobile readability */
    line-height: 1.5;
  }

  /* Section Headings - All uniform size (half of previous Our Team heading) */
  .spotlight-heading,
  .our-story-heading,
  .team-heading,
  .our-facility-heading,
  .resources-section-heading,
  .careers-subheading,
  .terms-heading {
    font-size: 1.3rem !important;
  }

  /* Section paragraph text - Match Our Story style across all sections */
  .spotlight-text,
  .our-story-intro,
  .our-story-content p,
  .our-facility-content p {
    font-size: 1.125rem !important; /* Match Our Story section */
    line-height: 1.5 !important;
  }

  /* Our Story Section - Mobile specific spacing */
  .our-story {
    padding-top: calc(62px * 0.70); /* Match 5.9 Spotlight top padding */
  }

  .our-story-heading {
    margin-bottom: calc(37px * 0.70); /* Keep same as desktop */
  }

  .our-story-intro {
    margin-bottom: calc(112px * 0.70 * 0.25); /* Reduced by 75% */
  }

  .industries-grid {
    margin-top: calc(37px * 0.70 * 0.25); /* Reduced by 75% */
    margin-bottom: calc(37px * 0.70 * 0.25); /* Reduced by 75% */
  }

  .our-story-content {
    margin-top: calc(37px * 0.70 * 0.25); /* Reduced by 75% */
  }

  /* Our Team Section - Mobile specific spacing */
  .team {
    padding-top: calc(62px * 0.70); /* Match 5.9 Spotlight top padding */
  }

  .team-content {
    margin-top: 0; /* Remove extra top margin */
    margin-bottom: calc(var(--spacing-xl) * 0.25); /* Reduce by 75% */
  }

  .team-description {
    font-size: 1.5rem; /* Adjusted for mobile readability */
  }

  .team-grid-wrapper {
    margin-top: calc(220px * 0.25); /* Reduce by 75% */
  }

  /* Our Facility Section - Mobile specific spacing */
  .our-facility {
    padding-top: calc(62px * 0.70); /* Match other sections */
  }

  /* Remove carousel navigation arrows on mobile */
  .facilitySwiper .swiper-button-prev,
  .facilitySwiper .swiper-button-next {
    display: none !important;
  }

  /* Team Modal - Mobile Layout */
  .team-modal-content {
    width: calc(100% - 10px);
    height: auto;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 0 5px;
  }

  .team-modal-inner {
    flex-direction: column !important;
    height: 100%;
    max-height: 95vh;
    overflow: hidden;
    display: flex;
  }

  .team-modal-image {
    flex: 0 0 auto !important;
    width: 100% !important;
    height: 250px !important;
    max-height: 250px !important;
    min-height: 200px;
    order: 1 !important;
  }

  /* Remove any white overlay from modal image */
  .team-modal-image::before,
  .team-modal-image::after {
    display: none !important;
    opacity: 0 !important;
  }

  .team-modal-image img {
    opacity: 1 !important;
  }

  .team-modal-info {
    flex: 1 1 auto;
    order: 2;
    padding: 20px 15px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
  }

  .team-modal-dot {
    left: 15px;
    top: 250px;
    transform: translateX(0) translateY(-50%);
  }

  .team-modal-close {
    top: 10px;
    right: 10px;
    font-size: 3rem;
    width: 50px;
    height: 50px;
  }

  .team-modal-header h2 {
    font-size: 1.8rem; /* 1.5rem × 1.20 = increased by 20% */
  }

  .team-modal-header p {
    font-size: 0.9rem;
  }

  .team-modal-bio {
    font-size: 1rem;
    line-height: 1.5;
  }
}

/* Adjust dot position for larger mobile/tablet screens with 400px image */
@media (min-width: 481px) and (max-width: 900px) {
  .team-modal-dot {
    left: 15px;
    top: 400px;
    transform: translateX(0) translateY(-50%);
  }
}

/* Markets Page
   ========================================================================== */
.markets-hero {
  padding: 0 0 calc(110px * 0.70);
  background-color: var(--color-bg-dark);
  color: var(--color-text-white);
}

.markets-hero-content {
  display: flex;
  gap: calc(var(--spacing-xl) + 2rem);
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

.markets-hero-text {
  flex: 1 1 0%;
  min-width: 0;
  padding-top: calc(((110px * 0.70) + 80px) / 2); /* 78.5px top padding (half of original 157px) */
}

.markets-heading {
  font-size: 1.3rem;
  font-weight: var(--font-bold);
  line-height: 1.333;
  color: #A105E2;
  margin-bottom: calc(37px * 0.70);
  letter-spacing: 0.05em;
  position: relative;
  padding-left: 2rem;
}

.markets-heading::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-color: #A105E2;
  border-radius: 50%;
}

.markets-intro {
  color: var(--color-text-white);
  margin-bottom: 0;
}

.markets-hero-image {
  flex: 1 1 0%;
  min-width: 0;
}

.markets-hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

/* Markets Industries Section */
.markets-industries {
  padding: calc(110px * 0.70) 0;
  background-color: var(--color-bg-dark);
  color: var(--color-text-white);
}

.markets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-xl);
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}

.market-card {
  background-color: #ffffff;
  padding: var(--spacing-lg);
  padding-top: calc(var(--spacing-lg) + 40px);
  border-radius: 0;
  text-align: left;
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.market-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #A105E2;
  border-radius: 50%;
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
}

.market-icon img {
  width: 55%;
  height: 55%;
  object-fit: contain;
}

.market-card h2 {
  font-size: 1.3rem;
  font-weight: var(--font-bold);
  line-height: 1.333;
  color: #A105E2;
  margin-bottom: var(--spacing-md);
  letter-spacing: 0.05em;
  text-align: center;
}

.market-card p {
  font-size: clamp(0.7088rem, 1.5vw, 1.26rem);
  font-weight: var(--font-medium);
  line-height: 1.28125;
  color: #000000;
  margin-bottom: 0;
}

/* Markets Page Responsive */
/* Tablet specific styles (768px - 900px) */
@media (max-width: 900px) and (min-width: 768px) {
  .markets-hero-content {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .markets-hero-text {
    max-width: 100%;
    padding-top: 0;
  }

  .markets-hero-image {
    max-width: 100%;
    order: -1;
  }

  .markets-hero-image img {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
  }

  .markets-grid {
    grid-template-columns: 1fr;
    gap: calc(var(--spacing-lg) + 40px); /* Increase gap to accommodate absolute positioned icons */
  }

  .market-card {
    padding: var(--spacing-md);
    padding-top: calc(var(--spacing-md) + 40px); /* Reduced padding */
  }

  .market-card h2 {
    font-size: 1.3rem !important; /* Match homepage section heading size */
    margin-bottom: var(--spacing-sm);
  }

  .market-card p {
    font-size: 1.125rem; /* 18px - larger for tablet readability */
    line-height: 1.4;
  }

  .market-icon {
    width: 70px;
    height: 70px;
    top: -35px; /* Adjusted to match reduced size */
  }

  .markets-heading {
    font-size: 1.3rem !important;
  }

  .markets-hero {
    padding-top: 43.4px;
    padding-bottom: var(--spacing-md);
  }
}

/* Contact Page Tablet Styles (768px to 900px) */
@media (max-width: 900px) and (min-width: 768px) {
  .contact-hero {
    padding-top: 43.4px;
    padding-bottom: var(--spacing-md);
  }

  .contact-hero-content {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .contact-hero-text {
    max-width: 100%;
    width: 100%;
  }

  .contact-form-container {
    width: 100%;
    max-width: 100%;
    margin-top: var(--spacing-md);
  }

  .contact-hero-image {
    max-width: 100%;
    order: -1;
  }

  .contact-hero-image img {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
  }

  .contact-heading {
    font-size: 1.3rem !important;
  }
}

/* Mobile specific styles (below 768px) */
@media (max-width: 767px) {
  .markets-hero-content {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .markets-hero-text {
    max-width: 100%;
    padding-top: 0;
  }

  .markets-hero-image {
    max-width: 100%;
    order: -1;
  }

  .markets-hero-image img {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
  }

  .markets-grid {
    grid-template-columns: 1fr;
    gap: calc(var(--spacing-md) + 40px); /* Increase gap to accommodate absolute positioned icons */
  }

  .market-card {
    padding: var(--spacing-sm);
    padding-top: calc(var(--spacing-sm) + 35px); /* Reduced padding */
  }

  .market-card h2 {
    font-size: 1.2rem !important; /* Match homepage section heading size */
    margin-bottom: var(--spacing-xs);
  }

  .market-card p {
    font-size: 0.9375rem; /* 15px - readable on mobile */
    line-height: 1.5;
  }

  .market-icon {
    width: 60px;
    height: 60px;
    top: -30px; /* Adjusted to match reduced size */
  }

  .markets-heading {
    font-size: 1.3rem !important;
  }

  .markets-hero {
    padding-top: 43.4px;
    padding-bottom: var(--spacing-md);
  }
}

/* Resources Page
   ========================================================================== */
.resources-hero {
  padding: 0 0 calc(110px * 0.70);
  background-color: var(--color-bg-dark);
  color: var(--color-text-white);
}

.resources-hero-content {
  display: flex;
  gap: calc(var(--spacing-xl) + 2rem);
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

.resources-hero-text {
  flex: 1 1 0%;
  min-width: 0;
  padding-top: calc(((110px * 0.70) + 80px) / 2); /* 78.5px top padding (half of original 157px) */
}

.resources-heading {
  font-size: 1.3rem;
  font-weight: var(--font-bold);
  line-height: 1.333;
  color: #F88015;
  margin-bottom: calc(37px * 0.70);
  letter-spacing: 0.05em;
  position: relative;
  padding-left: 2rem;
}

.resources-heading::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-color: #F88015;
  border-radius: 50%;
}

.resources-intro {
  color: var(--color-text-white);
  margin-bottom: 0;
}

.resources-hero-image {
  flex: 1 1 0%;
  min-width: 0;
  padding-top: 50px;
}

.resources-hero-image img {
  width: 110%;
  height: auto;
  display: block;
  border-radius: 0;
}

/* Resources News Section */
.resources-news {
  padding: calc(110px * 0.70) 0;
  background-color: var(--color-bg-dark);
  color: var(--color-text-white);
}

.resources-section-heading {
  font-size: 1.3rem;
  font-weight: var(--font-bold);
  line-height: 1.333;
  color: #F88015;
  margin-bottom: calc(37px * 0.70);
  letter-spacing: 0.05em;
  position: relative;
  padding-left: 2rem;
}

.resources-section-heading::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-color: #F88015;
  border-radius: 50%;
}

.careers-section-heading {
  color: #4B80EA;
}

.careers-section-heading::before {
  background-color: #4B80EA;
}

.terms-section-heading {
  color: #51F4EF;
}

.terms-section-heading::before {
  background-color: #51F4EF;
}

.news-header {
  margin-bottom: var(--spacing-xl);
  margin-left: 2rem;
}

.news-meta {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  font-size: 1.2rem;
  font-weight: var(--font-semibold);
  letter-spacing: 0.05em;
}

.news-date {
  color: var(--color-text-white);
  text-transform: uppercase;
}

.news-source {
  color: #F88015;
  text-transform: uppercase;
}

.news-title {
  font-size: 1.4rem;
  font-weight: var(--font-bold);
  line-height: 1.4;
  color: var(--color-text-white);
  margin-bottom: 0;
  letter-spacing: 0;
}

.news-article {
  display: flex;
  gap: var(--spacing-xl);
  align-items: flex-start;
  margin-bottom: var(--spacing-lg);
  margin-left: 2rem;
}

.news-image {
  flex: 0 0 240px;
}

.news-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

.news-content {
  flex: 1;
}

.news-text p {
  font-size: 1.4rem; /* 22.4px - Paragraph Text */
  font-weight: var(--font-regular); /* 400 (Regular) */
  line-height: 1.28125; /* 41px leading in AI */
  color: var(--color-text-white);
  margin-bottom: var(--spacing-md);
}

.news-footer {
  font-size: 1.4rem; /* 22.4px - Paragraph Text */
  font-weight: var(--font-regular); /* 400 (Regular) */
  line-height: 1.28125; /* 41px leading in AI */
  color: var(--color-text-white);
  margin-left: 2rem;
  margin-bottom: 0;
}

.news-text p.survey-intro {
  color: #F88015;
  margin-bottom: 0.5rem;
}

.news-text .survey-link {
  color: #F88015;
  text-decoration: underline;
}

.news-text .survey-link:hover {
  color: #F88015;
  opacity: 0.8;
}

/* Resources Careers Section */
.resources-careers {
  padding: calc(110px * 0.70) 0;
  background-color: var(--color-bg);
  color: var(--color-text);
}

.careers-intro {
  font-size: clamp(0.7088rem, 1.5vw, 1.26rem);
  font-weight: var(--font-medium);
  line-height: 1.28125;
  color: var(--color-text);
  margin-bottom: var(--spacing-xl);
  max-width: 1200px;
}

.careers-subheading {
  font-size: 1.3rem;
  font-weight: var(--font-bold);
  line-height: 1.333;
  color: #4B80EA;
  margin-bottom: var(--spacing-md);
  letter-spacing: 0.05em;
  margin-left: var(--spacing-md);
}

.job-positions {
  margin-bottom: var(--spacing-xl);
  margin-left: var(--spacing-md);
}

.job-position {
  margin-bottom: var(--spacing-sm);
}

.job-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0.375rem var(--spacing-md);
  background-color: #4B80EA;
  color: var(--color-text-white);
  border: none;
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: 1.3rem;
  font-weight: var(--font-semibold);
  text-align: left;
  transition: background-color var(--transition-base);
}

.job-toggle:hover {
  background-color: #3a70d9;
}

.job-title {
  flex: 1;
}

.job-icon {
  font-size: 1.5rem;
  font-weight: var(--font-light);
}

.job-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background-color: #ffffff;
}

.job-content.active {
  max-height: 2000px;
  transition: max-height 0.5s ease-in;
}

.job-details {
  padding: var(--spacing-md);
  padding-left: calc(var(--spacing-md) * 2);
  color: #000000;
}

.job-details h4 {
  font-size: 1rem;
  font-weight: var(--font-bold);
  color: #000000;
  margin-bottom: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.job-details h4:first-child {
  margin-top: 0;
}

.job-details p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: var(--spacing-sm);
  color: #000000;
}

.job-details ul {
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-md);
}

.job-details li {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  color: #000000;
}

.job-apply {
  margin-top: var(--spacing-md);
  font-size: 0.95rem;
  font-weight: var(--font-bold);
}

.careers-apply {
  font-size: clamp(0.7088rem, 1.5vw, 1.26rem);
  font-weight: var(--font-medium);
  line-height: 1.28125;
  color: var(--color-text);
  margin-bottom: 0;
  max-width: 1200px;
  margin-left: var(--spacing-md);
}

/* Resources Terms Section */
.resources-terms {
  padding: calc(110px * 0.70) 0;
  background-color: var(--color-bg-dark);
  color: var(--color-text-white);
}

.terms-content {
  max-width: 1200px;
}

.terms-heading {
  font-size: 1.3rem;
  font-weight: var(--font-bold);
  line-height: 1.333;
  color: #51F4EF;
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  letter-spacing: 0.05em;
}

.terms-heading:first-of-type {
  margin-top: 0;
}

.terms-content p {
  font-size: clamp(0.7088rem, 1.5vw, 1.26rem);
  font-weight: var(--font-medium);
  line-height: 1.28125;
  color: var(--color-text-white);
  margin-bottom: var(--spacing-sm);
}

/* Resources Page Responsive */
/* Tablet and Mobile styles (below 900px) */
@media (max-width: 900px) {
  .resources-hero-content {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .resources-hero-text {
    max-width: 100%;
    padding-top: 0;
  }

  .resources-hero-image {
    max-width: 100%;
    order: -1;
  }

  .resources-hero-image img {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
  }

  .resources-heading {
    font-size: 1.3rem !important;
  }

  .resources-hero {
    padding-top: 43.4px;
    padding-bottom: var(--spacing-md);
  }

  .news-article {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .news-image {
    flex: 0 0 auto;
    width: 100%;
  }

  .news-header {
    margin-left: 0;
  }

  .news-title {
    font-size: 1.125rem; /* Smaller for tablet/mobile */
  }

  .news-content {
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  .news-text {
    width: 100%;
    max-width: 100%;
  }

  .news-text p {
    font-size: 1.125rem; /* 18px - More readable on mobile */
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  .news-footer {
    font-size: 1.125rem; /* 18px - More readable on mobile */
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  .news-text .survey-link {
    word-break: break-all; /* Break long URLs */
    overflow-wrap: break-word;
  }
}

/* Mobile specific styles (below 768px) */
@media (max-width: 767px) {
  .news-title {
    font-size: 1rem; /* Even smaller for mobile */
  }

  .news-text p,
  .news-footer {
    font-size: 0.9375rem; /* 15px - Better for small screens */
  }

  .news-meta {
    flex-direction: column;
    gap: 0.25rem;
  }

  /* Section titles - reduce spacing to content below by half on mobile */
  .spotlight-heading,
  .our-story-heading,
  .our-facility-heading,
  .team-heading,
  .products-heading,
  .products-column-heading,
  .markets-heading,
  .resources-heading,
  .resources-section-heading,
  .careers-section-heading,
  .terms-heading,
  .contact-heading {
    margin-bottom: calc((37px * 0.70) / 2) !important; /* Half of desktop: ~13px */
  }

  .careers-intro {
    margin-bottom: calc(var(--spacing-xl) / 2); /* Half of desktop spacing */
  }

  /* Careers section mobile styles */
  .careers-subheading {
    margin-left: 0;
    margin-bottom: calc(var(--spacing-md) / 2); /* Half of desktop: 1rem instead of 2rem */
  }

  .job-positions {
    margin-left: 0;
  }

  .job-toggle {
    padding: 0.5rem 0.75rem;
    font-size: 1.1rem;
  }

  .job-details {
    padding: var(--spacing-sm);
    padding-left: var(--spacing-sm);
  }

  .careers-apply {
    margin-left: 0;
  }
}

/* Contact Page
   ========================================================================== */
.contact-hero {
  padding: 0 0 calc(110px * 0.70);
  background-color: var(--color-bg-dark);
  color: var(--color-text-white);
}

.contact-hero-content {
  display: flex;
  gap: calc(var(--spacing-xl) + 2rem);
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.contact-hero-text {
  flex: 1 1 0%;
  min-width: 0;
  padding-top: calc(((110px * 0.70) + 80px) / 2); /* 78.5px top padding (half of original 157px) */
  position: relative;
  z-index: 3;
  overflow: visible;
}

.contact-info-box {
  padding: 0;
  max-width: 500px;
  margin-bottom: var(--spacing-lg);
}

/* Style all text inside contact-info-box as address text */
.contact-info-box,
.contact-info-box p {
  font-size: 1.8375rem;
  font-weight: var(--font-medium);
  line-height: 1.3;
  color: var(--color-text-white);
  margin-bottom: 0;
}

.contact-info-box br {
  line-height: 1.5;
}

.contact-heading {
  font-size: 1.3rem;
  font-weight: var(--font-bold);
  line-height: 1.333;
  color: #eff923;
  margin-bottom: calc(37px * 0.70);
  letter-spacing: 0.05em;
  position: relative;
  padding-left: 2rem;
}

.contact-heading::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-color: #eff923;
  border-radius: 50%;
}

.contact-address {
  margin-bottom: 0;
}

.contact-street,
.contact-city,
.contact-email {
  font-size: 1.8375rem;
  font-weight: var(--font-medium);
  line-height: 1.2;
  color: var(--color-text-white);
  margin-bottom: 0.25rem;
}

.contact-email a {
  color: var(--color-text-white);
  text-decoration: none;
}

.contact-email a:hover {
  text-decoration: underline;
}

.contact-hero-image {
  flex: 1 1 0%;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.contact-hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

/* Contact Form */
.contact-form-container {
  background-color: var(--color-bg);
  padding: var(--spacing-lg);
  border-radius: 0;
  width: 750px;
  max-width: none;
  margin-top: 50px;
  z-index: 10;
  position: relative;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

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

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

.form-group label {
  font-size: 0.875rem;
  font-weight: var(--font-semibold);
  color: var(--color-text);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  padding: var(--spacing-sm);
  border: 1px solid var(--color-border);
  border-radius: 0;
  font-family: var(--font-primary);
  font-size: 1rem;
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: border-color var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #eff923;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-submit {
  align-self: flex-start;
  padding: var(--spacing-sm) var(--spacing-lg);
  background-color: #eff923;
  color: var(--color-primary);
  border: none;
  border-radius: 0;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: var(--font-semibold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--transition-base);
}

.contact-submit:hover {
  background-color: #d4aa20;
}

/* Contact Page Responsive */
@media (max-width: 900px) {
  .contact-hero {
    padding-top: 43.4px;
    padding-bottom: var(--spacing-md);
  }

  .contact-hero-content {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .contact-hero-text {
    max-width: 100%;
    padding-top: 0;
    position: static;
  }

  .contact-info-box {
    max-width: 100%;
    margin-bottom: var(--spacing-md);
  }

  .contact-hero-image {
    max-width: 100%;
    order: -1;
  }

  .contact-hero-image img {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
  }

  .contact-heading {
    font-size: 1.3rem !important;
  }

  .contact-form-container {
    width: 100%;
    max-width: 100%;
    margin-top: var(--spacing-md);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-street,
  .contact-city,
  .contact-email {
    font-size: 1.5rem;
  }
}

/* ========================================
   Contact Form Section Block
   ======================================== */
.contact-form-section {
  position: relative;
  z-index: 10;
}

.contact-form-section.contact-form-overlap {
  margin-top: -200px;
  padding-bottom: var(--spacing-2xl);
}

.contact-form-section.contact-form-below {
  padding: var(--spacing-2xl) 0;
}

.contact-form-wrapper {
  background-color: var(--color-bg);
  padding: var(--spacing-xl);
  max-width: 800px;
  position: relative;
}

/* Plugin-agnostic form styling - targets any form plugin output */
.contact-form-wrapper form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.contact-form-wrapper .form-row,
.contact-form-wrapper .wpcf7-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
}

.contact-form-wrapper .form-group,
.contact-form-wrapper p:has(label) {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: var(--spacing-md);
}

/* Labels - works with CF7, Gravity, WPForms */
.contact-form-wrapper label,
.contact-form-wrapper .gfield_label,
.contact-form-wrapper .wpforms-field-label {
  font-size: 0.875rem;
  font-weight: var(--font-semibold);
  color: var(--color-text);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}

/* Inputs and textareas - universal selector */
.contact-form-wrapper input[type="text"],
.contact-form-wrapper input[type="email"],
.contact-form-wrapper input[type="tel"],
.contact-form-wrapper input[type="url"],
.contact-form-wrapper input[type="number"],
.contact-form-wrapper textarea,
.contact-form-wrapper select {
  width: 100%;
  padding: var(--spacing-sm);
  border: 1px solid var(--color-border);
  border-radius: 0;
  font-family: var(--font-primary);
  font-size: 1rem;
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: border-color var(--transition-base);
  box-sizing: border-box;
}

.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus,
.contact-form-wrapper select:focus {
  outline: none;
  border-color: #eff923;
}

.contact-form-wrapper textarea {
  resize: vertical;
  min-height: 150px;
}

/* Submit buttons - universal styling */
.contact-form-wrapper input[type="submit"],
.contact-form-wrapper button[type="submit"],
.contact-form-wrapper .btn-submit,
.contact-form-wrapper .wpcf7-submit,
.contact-form-wrapper .gform_button,
.contact-form-wrapper .wpforms-submit {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-xl);
  background-color: #eff923;
  color: var(--color-primary);
  border: none;
  border-radius: 0;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: var(--font-semibold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--transition-base), transform var(--transition-base);
  margin-top: var(--spacing-sm);
}

.contact-form-wrapper input[type="submit"]:hover,
.contact-form-wrapper button[type="submit"]:hover,
.contact-form-wrapper .btn-submit:hover,
.contact-form-wrapper .wpcf7-submit:hover,
.contact-form-wrapper .gform_button:hover,
.contact-form-wrapper .wpforms-submit:hover {
  background-color: #d4dd1f;
  transform: translateY(-2px);
}

/* Hide plugin-specific elements that break styling */
.contact-form-wrapper .wpcf7-response-output {
  margin: var(--spacing-md) 0 0;
  padding: var(--spacing-sm);
  border: none;
}

.contact-form-wrapper .wpcf7-spinner {
  display: none;
}

/* Gravity Forms specific resets and styling */
.contact-form-wrapper .gform_wrapper {
  margin: 0 !important;
  padding: 0 !important;
}

.contact-form-wrapper .gform_wrapper.gravity-theme {
  --gf-ctrl-border-color: var(--color-border);
  --gf-ctrl-border-radius: 0;
  --gf-ctrl-bg-color: var(--color-bg);
  --gf-ctrl-font-family: var(--font-primary);
}

.contact-form-wrapper .gform_wrapper .gform_body {
  margin: 0;
  padding: 0;
}

.contact-form-wrapper .gform_wrapper .gform_fields {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  grid-gap: var(--spacing-md) !important;
}

.contact-form-wrapper .gform_wrapper .gfield {
  margin-bottom: 0 !important;
  padding: 0 !important;
}

/* Gravity Forms two-column layout */
.contact-form-wrapper .gform_wrapper .gfield.gfield--width-half {
  width: calc(50% - 10px) !important;
}

.contact-form-wrapper .gform_wrapper .gform_fields {
  flex-wrap: wrap;
  flex-direction: row;
}

.contact-form-wrapper .gform_wrapper .gfield.gfield--width-full {
  width: 100% !important;
}

/* Gravity Forms Labels */
.contact-form-wrapper .gform_wrapper .gfield_label,
.contact-form-wrapper .gform_wrapper.gravity-theme .gfield_label,
.contact-form-wrapper .gform_wrapper .gfield .gfield_label {
  font-size: 0.875rem !important;
  font-weight: var(--font-semibold) !important;
  color: var(--color-text) !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  font-family: var(--font-primary) !important;
  margin-bottom: 0.5rem !important;
  padding: 0 !important;
}

/* Gravity Forms Input Fields */
.contact-form-wrapper .gform_wrapper input[type="text"],
.contact-form-wrapper .gform_wrapper input[type="email"],
.contact-form-wrapper .gform_wrapper input[type="tel"],
.contact-form-wrapper .gform_wrapper input[type="url"],
.contact-form-wrapper .gform_wrapper input[type="number"],
.contact-form-wrapper .gform_wrapper textarea,
.contact-form-wrapper .gform_wrapper select,
.contact-form-wrapper .gform_wrapper.gravity-theme .gfield input,
.contact-form-wrapper .gform_wrapper.gravity-theme .gfield textarea,
.contact-form-wrapper .gform_wrapper.gravity-theme .gfield select {
  width: 100% !important;
  padding: var(--spacing-sm) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 0 !important;
  font-family: var(--font-primary) !important;
  font-size: 1rem !important;
  color: var(--color-text) !important;
  background-color: var(--color-bg) !important;
  transition: border-color var(--transition-base) !important;
  box-sizing: border-box !important;
  height: auto !important;
  line-height: 1.5 !important;
}

.contact-form-wrapper .gform_wrapper input:focus,
.contact-form-wrapper .gform_wrapper textarea:focus,
.contact-form-wrapper .gform_wrapper select:focus {
  outline: none !important;
  border-color: #eff923 !important;
  box-shadow: none !important;
}

.contact-form-wrapper .gform_wrapper textarea {
  resize: vertical !important;
  min-height: 150px !important;
}

/* Gravity Forms Submit Button - Yellow styling */
.contact-form-wrapper .gform_wrapper .gform_footer,
.contact-form-wrapper .gform_wrapper .gform_page_footer {
  margin: var(--spacing-md) 0 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

.contact-form-wrapper .gform_wrapper input[type="submit"],
.contact-form-wrapper .gform_wrapper button[type="submit"],
.contact-form-wrapper .gform_wrapper .gform_button,
.contact-form-wrapper .gform_wrapper.gravity-theme .gform_button,
.contact-form-wrapper .gform_wrapper.gravity-theme input[type="submit"],
.contact-form-wrapper .gform_wrapper.gravity-theme button.gform_button {
  display: inline-block !important;
  padding: 15px 40px !important;
  background-color: #eff923 !important;
  color: #1a1a2e !important;
  border: none !important;
  border-radius: 0 !important;
  font-family: var(--font-primary) !important;
  font-size: 1rem !important;
  font-weight: var(--font-semibold) !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: background-color var(--transition-base), transform var(--transition-base) !important;
  width: auto !important;
  min-width: 180px !important;
  text-align: center !important;
}

.contact-form-wrapper .gform_wrapper input[type="submit"]:hover,
.contact-form-wrapper .gform_wrapper button[type="submit"]:hover,
.contact-form-wrapper .gform_wrapper .gform_button:hover,
.contact-form-wrapper .gform_wrapper.gravity-theme .gform_button:hover,
.contact-form-wrapper .gform_wrapper.gravity-theme input[type="submit"]:hover,
.contact-form-wrapper .gform_wrapper.gravity-theme button.gform_button:hover {
  background-color: #d4dd1f !important;
  transform: translateY(-2px) !important;
}

/* Hide Gravity Forms unnecessary elements */
.contact-form-wrapper .gform_wrapper .gform_required_legend,
.contact-form-wrapper .gform_wrapper .gfield_required,
.contact-form-wrapper .gform_wrapper .gf_clear,
.contact-form-wrapper .gform_wrapper .gfield_description {
  display: none !important;
}

/* Gravity Forms validation messages */
.contact-form-wrapper .gform_wrapper .validation_message,
.contact-form-wrapper .gform_wrapper .gfield_validation_message {
  color: #dc3545 !important;
  font-size: 0.875rem !important;
  margin-top: 0.25rem !important;
}

.contact-form-wrapper .gform_wrapper .gfield_error input,
.contact-form-wrapper .gform_wrapper .gfield_error textarea {
  border-color: #dc3545 !important;
}

/* Gravity Forms confirmation message */
.contact-form-wrapper .gform_confirmation_message {
  padding: var(--spacing-md) !important;
  background-color: rgba(239, 249, 35, 0.1) !important;
  border: 1px solid #eff923 !important;
  color: var(--color-text) !important;
  font-family: var(--font-primary) !important;
}

/* WPForms specific resets */
.contact-form-wrapper .wpforms-container {
  margin: 0;
  padding: 0;
}

/* Default form two-column layout */
.contact-form-default .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
}

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

/* Form placeholder styling */
.form-placeholder {
  border-radius: 0;
}

/* Position variations */
.contact-form-position-left .container {
  display: flex;
  justify-content: flex-start;
}

.contact-form-position-center .container {
  display: flex;
  justify-content: center;
}

.contact-form-position-right .container {
  display: flex;
  justify-content: flex-end;
}

.contact-form-position-full .contact-form-wrapper {
  max-width: 100%;
  width: 100%;
}

/* Width variations */
.contact-form-width-narrow .contact-form-wrapper {
  max-width: 600px;
}

.contact-form-width-default .contact-form-wrapper {
  max-width: 800px;
}

.contact-form-width-wide .contact-form-wrapper {
  max-width: 1000px;
}

.contact-form-width-full .contact-form-wrapper {
  max-width: 100%;
  width: 100%;
}

/* Background variations */
.contact-form-bg-white .contact-form-wrapper {
  background-color: var(--color-bg);
}

.contact-form-bg-light .contact-form-wrapper {
  background-color: #f5f5f5;
}

.contact-form-bg-dark .contact-form-wrapper {
  background-color: var(--color-bg-dark);
}

.contact-form-bg-dark .contact-form-wrapper label,
.contact-form-bg-dark .contact-form-wrapper .gfield_label,
.contact-form-bg-dark .contact-form-wrapper .wpforms-field-label {
  color: var(--color-text-white);
}

.contact-form-bg-dark .contact-form-wrapper input,
.contact-form-bg-dark .contact-form-wrapper textarea,
.contact-form-bg-dark .contact-form-wrapper select {
  background-color: var(--color-bg);
  color: var(--color-text);
}

.contact-form-bg-transparent .contact-form-wrapper {
  background-color: transparent;
  padding: 0;
}

/* Tablet - 4 column grid becomes 2 columns */
@media (max-width: 1024px) and (min-width: 769px) {
  .team-grid.team-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .contact-form-section.contact-form-overlap {
    margin-top: -100px;
  }

  .contact-form-wrapper {
    padding: var(--spacing-lg);
    max-width: 100%;
  }

  .contact-form-wrapper .form-row,
  .contact-form-default .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-position-left .container,
  .contact-form-position-center .container,
  .contact-form-position-right .container {
    justify-content: center;
  }

  .contact-form-width-narrow .contact-form-wrapper,
  .contact-form-width-default .contact-form-wrapper,
  .contact-form-width-wide .contact-form-wrapper {
    max-width: 100%;
  }

  /* Gravity Forms mobile responsive */
  .contact-form-wrapper .gform_wrapper .gform_fields {
    flex-direction: column !important;
  }

  .contact-form-wrapper .gform_wrapper .gfield.gfield--width-half {
    width: 100% !important;
  }

  .contact-form-wrapper .gform_wrapper input[type="submit"],
  .contact-form-wrapper .gform_wrapper button[type="submit"],
  .contact-form-wrapper .gform_wrapper .gform_button {
    width: 100% !important;
    min-width: auto !important;
  }
}

/* ========================================
   Global Gravity Forms Overrides
   These ensure styling applies regardless of wrapper
   ======================================== */

/* Global button styling for any Gravity Form on the site */
body .gform_wrapper.gravity-theme .gform_footer input[type="submit"],
body .gform_wrapper.gravity-theme .gform_footer button[type="submit"],
body .gform_wrapper.gravity-theme .gform_page_footer input[type="submit"],
body .gform_wrapper.gravity-theme .gform_page_footer button[type="submit"],
body .gform_wrapper .gform_button.button,
body .gform_wrapper input.gform_button {
  background-color: #eff923 !important;
  color: #1a1a2e !important;
  border: none !important;
  border-radius: 0 !important;
  font-family: var(--font-primary) !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  padding: 15px 40px !important;
  cursor: pointer !important;
  transition: background-color 0.3s ease, transform 0.3s ease !important;
}

body .gform_wrapper.gravity-theme .gform_footer input[type="submit"]:hover,
body .gform_wrapper.gravity-theme .gform_footer button[type="submit"]:hover,
body .gform_wrapper.gravity-theme .gform_page_footer input[type="submit"]:hover,
body .gform_wrapper.gravity-theme .gform_page_footer button[type="submit"]:hover,
body .gform_wrapper .gform_button.button:hover,
body .gform_wrapper input.gform_button:hover {
  background-color: #d4dd1f !important;
  transform: translateY(-2px) !important;
}

/* Global label styling */
body .gform_wrapper.gravity-theme .gfield_label {
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: #333 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  font-family: var(--font-primary) !important;
}

/* Global input styling */
body .gform_wrapper.gravity-theme .gfield input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="file"]),
body .gform_wrapper.gravity-theme .gfield textarea,
body .gform_wrapper.gravity-theme .gfield select {
  border: 1px solid #ccc !important;
  border-radius: 0 !important;
  font-family: var(--font-primary) !important;
  font-size: 1rem !important;
  padding: 12px !important;
}

body .gform_wrapper.gravity-theme .gfield input:focus,
body .gform_wrapper.gravity-theme .gfield textarea:focus,
body .gform_wrapper.gravity-theme .gfield select:focus {
  border-color: #eff923 !important;
  box-shadow: none !important;
  outline: none !important;
}
