/* ==========================================================================
   COSTA PRO SERIES - Main Stylesheet
   Migrated to Mar4 Design System
   Design baseline: 1920px
   Breakpoints: 1440 / 1024 / 900 (stack) / 600 / 480
   ========================================================================== */

/* =========================
   FONTS
   ========================= */
@font-face {
  font-family: "ProximaNova";
  src: url("../fonts/proximanova-regular.woff2") format("woff2"),
    url("../fonts/proximanova-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Stratum2";
  src: url("../fonts/Stratum2-Regular.woff2") format("woff2"),
    url("../fonts/Stratum2-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Stratum2";
  src: url("../fonts/Stratum2-Medium.woff2") format("woff2"),
    url("../fonts/Stratum2-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Stratum2";
  src: url("../fonts/Stratum2-Black.woff2") format("woff2"),
    url("../fonts/Stratum2-Black.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* =========================
   CSS CUSTOM PROPERTIES (Mar4 System)
   ========================= */
:root {
  /* Colors */
  --color-white: #ffffff;
  --color-blue-primary: #0260a1;
  --color-blue-accent: #0081c6;
  --color-blue-hover: #006ba3;
  --color-navy-dark: #182a46;
  --color-green: #a5c76f;

  /* Font Families */
  --font-body: "ProximaNova", sans-serif;
   
  --font-heading: "Stratum2", Arial, sans-serif;

  /* Spacing Scale (px values at 1920px baseline) */
  --space-xs: 5px;
  --space-sm: 10px;
  --space-md: 20px;
  --space-lg: 30px;
  --space-xl: 40px;
  --space-2xl: 60px;
  --space-3xl: 80px;
  --space-4xl: 100px;
  --space-5xl: 110px;

  /* Max Widths */
  --max-width-text: 800px;
  --max-width-text-lg: 900px;
  --max-width-content: 1200px;
  --max-width-products: 1400px;

  /* Typography Scale - fluid with clamp() */
  --font-size-display: clamp(40px, 4.0625vw, 78px);
  --font-size-hero: clamp(28px, 3.6458vw, 70px);
  --font-size-section: clamp(40px, 4.6875vw, 90px);
  --font-size-section-md: clamp(24px, 2.0833vw, 40px);
  --font-size-section-sm: clamp(20px, 1.875vw, 36px);
  --font-size-subtitle: clamp(18px, 1.5625vw, 30px);
  --font-size-body-lg: clamp(16px, 1.25vw, 24px);
  --font-size-body: clamp(14px, 1.0417vw, 20px);
  --font-size-body-sm: clamp(14px, 0.9375vw, 18px);
  --font-size-product: clamp(20px, 1.5625vw, 30px);
  --font-size-tag: clamp(14px, 1vw, 18px);
  --font-size-feature-title: clamp(18px, 1.5625vw, 30px);
  --font-size-feature-body: clamp(14px, 0.9375vw, 18px);

  /* Section Padding - fluid */
  --section-padding-y: clamp(50px, 4.1667vw, 80px);
  --section-padding-x: clamp(20px, 6.25vw, 120px);

  /* Feature Card Dimensions */
  --feature-card-icon-area-height: 210px;
  --feature-card-heading-height: 110px;
  --feature-card-expanded-height: 325px;
  --feature-card-btn-size: 35px;
  --feature-card-btn-top: 201px;
}

/* =========================
   GLOBAL STYLES
   ========================= */
* {
  font-family: var(--font-body);
}

sup {
  font-family: Arial, Helvetica, sans-serif;
}

a:hover {
  text-decoration: none;
}

/* Body full width (moved from inline style) */
.body--full-width {
  width: 100vw;
}

/* Screen reader only - visually hidden but accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================
   SECTION 1: LOGO BAR
   ========================= */
.logo-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  height: clamp(80px, 6.25vw, 120px);
  background-color: var(--color-white);
  padding: 0 var(--section-padding-x);
  position: relative;
}

.logo-bar__logo {
  width: 100%;
  max-width: clamp(330px, 27.57vw, 648px); /* scaled for 1751px wide logo */
  height: auto;
}

/* =========================
   SECTION 2: HERO VIDEO
   ========================= */
.hero-video {
  position: relative;
  width: 100vw;
  left: 0;
}

.hero-video__image {
  display: block;
  width: 100vw;
  height: 66.6vw;
}

.hero-video__btn {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 20%;
  width: 150px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-white);
  border: 2px solid var(--color-navy-dark);
  color: var(--color-navy-dark);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.2rem;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.hero-video__btn:hover {
  background-color: var(--color-navy-dark);
  border-color: var(--color-navy-dark);
  color: var(--color-white);
}

/* =========================
   VIDEO MODAL
   ========================= */
.modal-body {
  overflow: hidden;
}

.modal-body video {
  width: 100%;
  height: auto;
}

/* =========================
   SECTION 3: PRODUCT HEADER IMAGE
   ========================= */
.product-header {
  display: flex;
  position: relative;
  width: 100vw;
  left: 0;
}

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

/* =========================
   SECTION TITLE
   ========================= */
.section-title {
  width: 100%;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-top: 32px;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
    margin-top: 64px;
  }
}

/* =========================
   SECTION 4: FEATURES INTRO (Key Product Features)
   ========================= */
.features-intro {
  color: var(--color-navy-dark);
  margin-bottom: var(--space-xl);
}

.features-intro__image img {
  max-width: 100%;
  height: auto;
}

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

.features-intro__item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
}

.features-intro__bullet {
  color: var(--color-blue-accent);
  font-size: 0.45rem;
  margin-top: 0.55rem;
  margin-right: 0.6rem;
  flex-shrink: 0;
}

.features-intro__bullet--sub {
  font-size: 0.55rem;
  margin-top: 0.45rem;
  margin-right: 0.5rem;
}

.features-intro__text {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.5rem;
  text-transform: uppercase;
  line-height: 1.8rem;
}

.features-intro__text--sub {
  font-size: 1.2rem;
  line-height: 1.4rem;
}

.features-intro__sublist {
  list-style: none;
  margin-top: 8px;
  padding-left: 18px;
}

.features-intro__sublist .features-intro__item {
  margin-bottom: 6px;
}

/* Mobile adjustments for features text */
@media (max-width: 767px) {
  .features-intro__text {
    font-size: 1.15rem;
    line-height: 1.4rem;
  }

  .features-intro__text--sub {
    font-size: 1rem;
    line-height: 1.2rem;
  }
}

/* =========================
   SECTION 5: TAGLINE
   ========================= */
.tagline {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: center;
}

.tagline__lead {
  font-family: var(--font-body);
  font-size: 1rem;
  margin-top: 12px;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .tagline__lead {
    font-size: 1.125rem;
    margin-top: 48px;
  }
}

.tagline__headline {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.5rem;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .tagline__headline {
    font-size: 2.25rem;
  }
}

/* =========================
   SECTION 6: FEATURE CARDS
   ========================= */
.feature-cards {
  color: var(--color-navy-dark);
}

.feature-card {
  min-width: 200px;
  max-width: 340px;
  margin: auto;
  cursor: pointer;
}

.feature-card__inner {
  position: relative;
  border: 1px solid var(--color-blue-accent);
  overflow: hidden;
  block-size: fit-content;
  height: 100%;
}

.feature-card__icon-area {
  min-height: var(--feature-card-icon-area-height);
  padding-left: 10%;
  padding-right: 10%;
  background-color: var(--color-white);
  z-index: 1;
  position: relative;
}

.feature-card__icon {
  margin-left: auto;
  margin-right: auto;
}

.feature-card__heading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--feature-card-heading-height);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--color-navy-dark);
  margin: 0;
  text-align: center;
  line-height: 1.3;
}

.feature-card__expanded {
  height: var(--feature-card-expanded-height);
  display: none;
}

.feature-card__description {
  position: relative;
  width: 90%;
  margin-left: 5%;
  z-index: 1;
  font-family: var(--font-body);
  line-height: 1.4;
}

.feature-card__feature-image {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: -1;
}

.feature-card__expand-btn {
  position: absolute;
  top: var(--feature-card-btn-top);
  left: 0;
  right: 0;
  margin: auto;
  width: var(--feature-card-btn-size);
  height: var(--feature-card-btn-size);
  padding: 0;
  border: none;
  background-color: var(--color-blue-accent);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.5s linear, opacity 0.5s linear, top 0.5s linear;
  z-index: 1;
}

.feature-card__expand-btn span {
  color: var(--color-white);
  font-size: 20px;
  line-height: var(--feature-card-btn-size);
  display: block;
  text-align: center;
}

.feature-card__expand-btn.is-opened {
  transform: rotate(1turn) scale(0.8);
  top: 95%;
  opacity: 0;
}

/* =========================
   SECTION 7: FRAME DIAGRAM
   ========================= */
.frame-diagram {
  text-align: center;
}

.frame-diagram__image {
  width: 75%;
  margin: 0 auto;
}

@media (min-width: 1280px) {
  .frame-diagram__image {
    width: 50%;
  }
}

/* =========================
   INFO SECTION (Reusable: Pro Series Info, Care & Repair, etc.)
   ========================= */
.info-section {
  text-align: center;
  color: var(--color-navy-dark);
  padding-bottom: var(--space-3xl);
}

.info-section__title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-top: 32px;
  margin-bottom: 8px;
}

.info-section__copy {
  font-family: var(--font-body);
  margin-top: 8px;
  margin-bottom: 8px;
  line-height: 1.5;
}

.info-section__copy--with-padding {
  padding-bottom: 48px;
}

.info-section__link {
  color: var(--color-blue-accent);
}

.info-section__link:hover {
  color: var(--color-blue-hover);
}

/* =========================
   SECTION 9: FRAMES SHOWCASE (Swiper Carousel)
   ========================= */
.frames-showcase {
  width: 100%;
  margin-top: 32px;
}

.frames-showcase__wrapper {
  position: relative;
}

.frames-showcase__image-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.frames-showcase__image-col img {
  max-width: 100%;
  height: auto;
}

.frames-showcase__text-col {
  padding: var(--space-sm) var(--space-sm) 35px var(--space-sm);
}

.frames-showcase__heading {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--color-navy-dark);
  line-height: 1;
}

.frames-showcase__description {
  font-family: var(--font-body);
  color: var(--color-navy-dark);
  line-height: 1.5;
}

/* Swiper overrides */
.swiper-container {
  overflow: hidden;
}

div.swiper-button-prev,
div.swiper-button-next {
  color: var(--color-blue-accent);
}

.swiper-button-prev {
  left: -35px;
}

.swiper-button-next {
  right: -35px;
}

.swiper-pagination-bullet {
  margin-left: 2px;
  margin-right: 2px;
}

span.swiper-pagination-bullet {
  background-color: var(--color-blue-accent);
}

@media (min-width: 768px) {
  .swiper-button-prev,
  .swiper-button-next {
    display: none;
  }

  #frames-showcase-hover:hover .swiper-button-prev,
  #frames-showcase-hover:hover .swiper-button-next {
    display: block;
  }
}

/* Vertical center for desktop carousel images */
.vertical-center {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 767px) {
  .vertical-center {
    position: relative;
  }
}

/* ==========================================================================
   COMPONENT STYLES FROM Mar4 (ready to use for future sections)
   ========================================================================== */

/* Section Banner (for adding sections like "580 LENS TECH", "BIO RESIN", etc.) */
.section-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(30px, 4.1667vw, 80px) var(--section-padding-x);
}

.section-banner--blue {
  background-color: var(--color-blue-accent);
}

.section-banner--green {
  background-color: var(--color-green);
}

.section-banner--navy-dark {
  background-color: var(--color-navy-dark);
}

.section-banner__title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(40px, 4.6875vw, 90px);
  color: var(--color-white);
  text-align: center;
  margin: 0;
  line-height: 1;
}

/* Product Grid (for adding product showcase sections) */
.product-grid {
  background-color: var(--color-white);
  padding: var(--space-4xl) var(--section-padding-x);
}

.product-grid__container {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  max-width: var(--max-width-products);
  margin: 0 auto;
}

.product-grid__item {
  text-align: center;
  flex: 1;
  max-width: 400px;
}

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

.product-grid__name {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: var(--font-size-product);
  color: var(--color-navy-dark);
  margin: var(--space-lg) 0 0;
  line-height: 1.2;
}

.product-grid__tag {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: var(--font-size-tag);
  color: var(--color-blue-accent);
  margin: var(--space-xs) 0 0;
  line-height: 1.2;
}


/* Beyond Polarized section styling */
.beyond-polarized {
  background-color: var(--color-navy-dark);
  padding: var(--section-padding-y) var(--section-padding-x);
  text-align: center;
}

.beyond-polarized__title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: var(--font-size-section-md);
  color: var(--color-white);
  margin: 0 0 var(--space-md);
  line-height: 1;
}

.beyond-polarized__subcopy {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: var(--font-size-body-lg);
  color: var(--color-white);
  margin: 0 auto var(--space-xl);
  max-width: var(--max-width-text);
  line-height: 1.4;
}

.beyond-polarized__images {
  display: flex;
  justify-content: center;
  gap: 0;
}

.beyond-polarized__image {
  height: clamp(200px, 20.8333vw, 400px);
  width: auto;
  display: block;
}

/* Lens Options Section */
.lens-options {
  background-color: var(--color-white);
  padding: var(--section-padding-y) var(--section-padding-x);
}

.lens-options__container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
  margin: 0 auto;
}

.lens-options__image {
  width: 100%;
  max-width: 650px;
  height: auto;
}

/* How It Works Section */
.how-it-works {
  background-color: var(--color-white);
  padding: var(--section-padding-y) var(--section-padding-x);
  text-align: center;
}

.how-it-works__title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: var(--font-size-section);
  text-transform: uppercase;
  color: var(--color-blue-accent);
  margin: 0 0 clamp(30px, 3.125vw, 60px);
  line-height: 1;
}

.how-it-works__subtitle {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: var(--font-size-subtitle);
  text-transform: uppercase;
  color: var(--color-navy-dark);
  margin: 0 auto clamp(30px, 3.125vw, 60px);
  max-width: var(--max-width-text);
  line-height: 1.3;
}

.how-it-works__content {
  display: inline-block;
  text-align: left;
}

.how-it-works__intro {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: var(--font-size-body-lg);
  color: var(--color-navy-dark);
  text-transform: uppercase;
  margin: 0 0 var(--space-sm);
}

.how-it-works__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.how-it-works__list li {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: var(--font-size-body-lg);
  color: var(--color-navy-dark);
  text-transform: uppercase;
  padding-left: var(--space-lg);
  position: relative;
  margin-bottom: var(--space-sm);
  line-height: 1;
}

.how-it-works__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background-color: var(--color-blue-accent);
  border-radius: 50%;
}

/* Costa 580 Image Section */
.costa-580 {
  background-color: var(--color-white);
  padding: 0 var(--section-padding-x) var(--section-padding-y);
  text-align: center;
}

.costa-580__image {
  display: inline-block;
  max-width: 60%;
  height: auto;
}

/* =========================
   LENS TOGGLE SECTION
   ========================= */
.lens-toggle-section {
  width: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-white);
}

.lens-toggle-section__controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(20px, 3vw, 60px);
  padding: clamp(16px, 2vw, 32px) var(--section-padding-x);
  flex-wrap: wrap;
  flex-shrink: 0;
}

.lens-toggle-section__label {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(28px, 3vw, 58px);
  color: var(--color-navy-dark);
  line-height: 1;
  text-align: center;
}

.lens-toggle-section__switch {
  position: relative;
  width: clamp(90px, 6.5vw, 124px);
  height: clamp(36px, 2.5vw, 48px);
  background-color: #b0b0b0;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.lens-toggle-section__switch[aria-pressed="true"] {
  background-color: var(--color-blue-accent);
}

.lens-toggle-section__switch:focus-visible {
  outline: 3px solid var(--color-blue-accent);
  outline-offset: 2px;
}

.lens-toggle-section__switch-label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(11px, 0.75vw, 14px);
  color: var(--color-white);
  line-height: 1;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lens-toggle-section__switch-label--on {
  left: clamp(10px, 0.7vw, 14px);
  opacity: 0;
}

.lens-toggle-section__switch-label--off {
  right: clamp(10px, 0.7vw, 14px);
  opacity: 1;
}

.lens-toggle-section__switch[aria-pressed="true"]
  .lens-toggle-section__switch-label--on {
  opacity: 1;
}

.lens-toggle-section__switch[aria-pressed="true"]
  .lens-toggle-section__switch-label--off {
  opacity: 0;
}

.lens-toggle-section__switch-knob {
  position: absolute;
  top: 50%;
  left: 4px;
  transform: translateY(-50%);
  width: clamp(28px, 2vw, 40px);
  height: clamp(28px, 2vw, 40px);
  background-color: var(--color-white);
  border-radius: 50%;
  transition: left 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.lens-toggle-section__switch[aria-pressed="true"]
  .lens-toggle-section__switch-knob {
  left: calc(100% - clamp(28px, 2vw, 40px) - 4px);
}

/* Image container fills remaining space */
.lens-toggle-section__image-container {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.lens-toggle-section__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */

/* ----- LARGE DESKTOP: 1440px ----- */
@media (max-width: 1440px) {
  .costa-580__image {
    max-width: 80%;
  }

  .lens-options__container {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .lens-options__image {
    max-width: 60%;
  }
}

/* ----- STACK BREAKPOINT: 900px ----- */
@media (max-width: 900px) {
  .product-grid__container {
    flex-direction: column;
    align-items: center;
    gap: var(--space-2xl);
  }

  .product-grid__item {
    max-width: 350px;
  }

  .lens-options__image {
    max-width: 80%;
  }

  .beyond-polarized__images {
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
  }

  .beyond-polarized__image {
    width: 100%;
    max-width: 500px;
    height: auto;
  }
}

/* ----- MOBILE: 600px ----- */
@media (max-width: 600px) {
  .lens-options__image {
    max-width: 100%;
  }

  .costa-580__image {
    max-width: 95%;
  }

  .how-it-works__list li {
    padding-left: 24px;
  }

  .how-it-works__list li::before {
    width: 10px;
    height: 10px;
  }
}

/* ----- SMALL MOBILE: 480px ----- */
@media (max-width: 480px) {
  .beyond-polarized {
    padding-bottom: 0;
  }
}

/* ==========================================================================
   TIMELINE SECTION
   ========================================================================== */

/* Timeline CSS Variables - Adjust these to tweak marker positions */
.timeline {
  --timeline-marker-size: 50px;
  --timeline-line-width: 3px;
  --timeline-line-left: 50px;
  --timeline-item-gap: 50px;
  --timeline-content-left: 30px;

  /* Colors */
  --timeline-color: #182A46;

  /* Font sizes */
  --timeline-title-size: clamp(18px, 1.5vw, 22px);
  --timeline-sku-size: clamp(14px, 1.2vw, 18px);
  --timeline-marker-text-size: clamp(18px, 1.4vw, 24px);
  --timeline-footer-text-size: 36px;

  background-color: var(--color-white);
  padding: 0 var(--section-padding-x) calc(var(--section-padding-y) * 2);
}

.timeline__container {
  position: relative;
  max-width: clamp(320px, 60vw, 650px);
  margin: 0 auto;
  padding-left: calc(var(--timeline-line-left) + var(--timeline-marker-size) / 2 + var(--timeline-content-left));
}

/* Vertical timeline line */
.timeline__line {
  position: absolute;
  left: var(--timeline-line-left);
  top: 0;
  bottom: 0;
  width: var(--timeline-line-width);
  background-color: var(--timeline-color);
}

/* Dot caps at top and bottom of timeline */
.timeline__line::before,
.timeline__line::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background-color: var(--timeline-color);
  border-radius: 50%;
}

.timeline__line::before {
  top: 0;
}

.timeline__line::after {
  bottom: 0;
}

/* Timeline item (product row) */
.timeline__item {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: var(--timeline-item-gap);
  position: relative;
}

.timeline__item:last-child {
  margin-bottom: 0;
}

/* Image column */
.timeline__image-col {
  flex: 0 0 auto;
  width: clamp(150px, 25vw, 280px);
}

.timeline__image {
  width: 100%;
  height: auto;
  display: block;
}

/* Text column */
.timeline__text-col {
  flex: 0 1 auto;
  max-width: 200px;
}

.timeline__title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: var(--timeline-title-size);
  color: var(--timeline-color);
  text-transform: uppercase;
  margin: 0 0 4px;
  line-height: 1;
}

.timeline__sku {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--timeline-sku-size);
  color: var(--timeline-color);
  margin: 0;
}

/* Size markers (circles) - all absolutely positioned, centered on line */
.timeline__marker {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  width: var(--timeline-marker-size);
  height: var(--timeline-marker-size);
  background-color: var(--timeline-color);
  border-radius: 50%;
  left: calc(var(--timeline-line-width) / 2 - var(--timeline-marker-size) - var(--timeline-content-left));
  z-index: 2;
}

.timeline__marker-text {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: var(--timeline-marker-text-size);
  color: #FFFFFF;
  text-transform: uppercase;
  line-height: 1;
}

/* Marker positioned at bottom of item (between items) */
.timeline__marker--bottom {
  bottom: calc(-1 * var(--timeline-item-gap) / 2 - var(--timeline-marker-size) / 2);
}

/* Marker positioned at center of item */
.timeline__marker--center {
  top: 50%;
  transform: translateY(-50%);
}

.timeline__footer {
  text-align: center;
  padding-top: var(--space-4xl);
}

.timeline__footer-headline,
.timeline__footer-subline {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: var(--timeline-footer-text-size);
  color: var(--color-navy-dark);
  text-transform: uppercase;
  margin: 0;
  line-height: 1;
}

.timeline__footer-subline {
  margin-top: var(--space-sm);
}

/* ==========================================================================
   TIMELINE RESPONSIVE STYLES
   ========================================================================== */

@media (max-width: 768px) {
  .timeline {
    --timeline-marker-size: 44px;
    --timeline-line-left: 35px;
    --timeline-item-gap: 30px;
    --timeline-content-left: 20px;
    --timeline-footer-text-size: 24px;
  }

  .timeline__container {
    padding-left: calc(var(--timeline-line-left) + var(--timeline-marker-size) / 2 + var(--timeline-content-left));
  }

  .timeline__item {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .timeline__image-col {
    width: 100%;
    max-width: 250px;
  }

  .timeline__text-col {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .timeline {
    --timeline-marker-size: 38px;
    --timeline-line-left: 25px;
    --timeline-item-gap: 25px;
    --timeline-content-left: 15px;
  }

  .timeline__container {
    padding-left: calc(var(--timeline-line-left) + var(--timeline-marker-size) / 2 + var(--timeline-content-left));
  }

  .timeline__image-col {
    max-width: 200px;
  }
}
