/* ==========================================================================
   FiveNine Optics - Main Stylesheet
   v1.0.1 - Updated dropdown spacing
   ========================================================================== */

/* 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;
}

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;
}

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);
}

/* 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: #E9BF39 !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: 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: #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: 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: #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: 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: #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;
  height: 60px;
  background-color: transparent;
  transition: all var(--transition-base);
}

.facilitySwiper .swiper-button-prev::after,
.facilitySwiper .swiper-button-next::after {
  content: '';
  display: none;
}

.facilitySwiper .swiper-button-prev {
  left: 20px;
  background-image: url('/assets/images/Arrow_Left.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.facilitySwiper .swiper-button-next {
  right: 20px;
  background-image: url('/assets/images/Arrow_Right.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

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

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

/* 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.1813rem; /* 18.9px (27px × 0.70) */
  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: 1.5rem;
  height: 1.5rem;
  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-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.35rem;
  color: #4B80EA;
  margin-bottom: 0.25rem;
}

.team-member-info-mobile p {
  font-family: var(--font-primary);
  font-weight: var(--font-regular);
  font-size: 0.675rem;
  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); /* 77px + 80px = 157px top padding for text column */
}

.products-heading {
  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: #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 Details Section */
.products-details {
  padding: calc(110px * 0.70) 0; /* 110px with 70% scaling = 77px */
  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: clamp(0.7875rem, 2vw, 1.1813rem); /* 18.9px (27px × 0.70) */
  font-weight: var(--font-bold);
  line-height: 1.333;
  color: #4B80EA;
  margin-bottom: var(--spacing-md);
  letter-spacing: 0.05em;
}

.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 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-heading,
  .products-column-heading {
    font-size: 0.875rem !important; /* 14px - match home page */
  }

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

/* 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 {
  display: none; /* Hidden for now */
  background-color: var(--color-secondary);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.footer-tagline {
  font-size: 1.125rem;
  font-weight: var(--font-medium);
  color: var(--color-bg);
  margin-bottom: 0.5rem;
}

.footer-copyright {
  font-size: 0.875rem;
  font-weight: var(--font-light);
}

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

.footer-contact p {
  font-size: 0.9375rem;
  font-weight: var(--font-light);
  margin-bottom: 0.25rem;
}

.footer-contact a {
  color: var(--color-bg);
  text-decoration: underline;
}

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

/* 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 p {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .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.75rem;
  }

  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 {
    font-size: 0.875rem !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);
  }

  /* 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.75rem; /* Increased from 1.3125rem for mobile */
  }

  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 {
    font-size: 0.875rem !important; /* Half of 1.75rem */
  }

  /* 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.5rem;
  }

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

  .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%);
  }
}
