/**
 * Synergy Polymers — Main Design System
 */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--text-brand); text-decoration: none; transition: color var(--duration-fast); }
a:hover { color: var(--accent-primary-hover); }
button { font-family: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
address { font-style: normal; }

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

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 9999;
  padding: var(--space-2) var(--space-4);
  background: var(--accent-primary);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: var(--weight-semibold);
}
.skip-link:focus { top: var(--space-4); }

.container {
  width: min(var(--container-max), 100% - var(--space-8));
  margin-inline: auto;
}

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--accent-primary);
  margin-bottom: var(--space-3);
}

.section-header {
  text-align: center;
  max-width: var(--container-narrow);
  margin: 0 auto var(--space-12);
}
.section-header__title {
  font-size: var(--text-h1);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}
.section-header__desc {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none !important;
  transition: transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out),
    background var(--duration-normal);
}
.btn--primary {
  background: var(--gradient-brand);
  color: #fff !important;
  box-shadow: var(--shadow-sm), 0 4px 14px rgba(14, 165, 233, 0.3);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), 0 8px 24px rgba(14, 165, 233, 0.4);
  color: #fff !important;
}
.btn--secondary {
  background: var(--bg-elevated);
  color: var(--text-primary) !important;
  border: 1px solid var(--border-default);
}
.btn--secondary:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.btn--outline {
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}
.btn--outline:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  color: #fff !important;
}
.btn--sm { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }
.btn--lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }

/* —— Cards —— */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out);
}
.card--interactive:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card--glass {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* —— Forms —— */
.form-group { margin-bottom: var(--space-5); }
.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}
.input, .textarea, .select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}
.textarea { min-height: 140px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
  background: var(--bg-secondary);
}
.input::placeholder, .textarea::placeholder { color: var(--text-tertiary); }
.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}
@media (max-width: 767px) { .form-row { grid-template-columns: 1fr; } }

.form-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-6), 4vw, var(--space-10));
  box-shadow: var(--shadow-md);
}

/* —— Site Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  border-bottom: 1px solid var(--border-default);
  transition: box-shadow var(--duration-normal);
}
/* Glass on ::before so mobile menu (position:fixed) is not clipped by backdrop-filter */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--bg-glass);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }
.site-nav {
  background: transparent;
  border-bottom: none;
}

.site-nav__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  height: var(--nav-height);
}
.site-nav__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.site-nav__logo img {
  width: min(180px, 40vw);
  height: auto;
  object-fit: contain;
}
/* White outline that follows PNG alpha — drop-shadow technique
   https://stackoverflow.com/questions/12690444/css-border-on-png-image-with-transparent-parts */
html[data-theme="dark"] .site-nav__logo img,
html[data-theme="dark"] .site-footer__brand img {
  --logo-stroke-pos: 1px;
  --logo-stroke-neg: -1px;
  --logo-stroke-color: rgba(255, 255, 255, 0.55);
  -webkit-filter:
    drop-shadow(var(--logo-stroke-pos) 0 0 var(--logo-stroke-color))
    drop-shadow(var(--logo-stroke-neg) 0 0 var(--logo-stroke-color))
    drop-shadow(0 var(--logo-stroke-pos) 0 var(--logo-stroke-color))
    drop-shadow(0 var(--logo-stroke-neg) 0 var(--logo-stroke-color))
    drop-shadow(var(--logo-stroke-pos) var(--logo-stroke-pos) 0 var(--logo-stroke-color))
    drop-shadow(var(--logo-stroke-pos) var(--logo-stroke-neg) 0 var(--logo-stroke-color))
    drop-shadow(var(--logo-stroke-neg) var(--logo-stroke-pos) 0 var(--logo-stroke-color))
    drop-shadow(var(--logo-stroke-neg) var(--logo-stroke-neg) 0 var(--logo-stroke-color));
  filter:
    drop-shadow(var(--logo-stroke-pos) 0 0 var(--logo-stroke-color))
    drop-shadow(var(--logo-stroke-neg) 0 0 var(--logo-stroke-color))
    drop-shadow(0 var(--logo-stroke-pos) 0 var(--logo-stroke-color))
    drop-shadow(0 var(--logo-stroke-neg) 0 var(--logo-stroke-color))
    drop-shadow(var(--logo-stroke-pos) var(--logo-stroke-pos) 0 var(--logo-stroke-color))
    drop-shadow(var(--logo-stroke-pos) var(--logo-stroke-neg) 0 var(--logo-stroke-color))
    drop-shadow(var(--logo-stroke-neg) var(--logo-stroke-pos) 0 var(--logo-stroke-color))
    drop-shadow(var(--logo-stroke-neg) var(--logo-stroke-neg) 0 var(--logo-stroke-color));
}
.site-nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: var(--space-2);
  background: transparent;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  margin-left: auto;
}
.site-nav__toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--duration-normal), opacity var(--duration-normal);
}
.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bar:nth-child(2) { opacity: 0; }
.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav__menu {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex: 1;
  justify-content: flex-end;
}

@media (min-width: 992px) {
  .site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
    width: 100%;
    /* Full-width bar; center nav content to match .container */
    padding-inline: max(var(--space-4), calc((100% - var(--container-max)) / 2));
    box-sizing: border-box;
  }
  .site-nav { flex-shrink: 0; }
  .site-nav__inner.container {
    max-width: none;
    margin: 0;
    padding: 0;
    width: auto;
  }
  .site-nav__menu {
    flex: 1;
    min-width: 0;
  }
}
.site-nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.site-nav__links > li { position: relative; }
.site-nav__links a,
.site-nav__links .nav-dropdown__trigger {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  background: none;
  border: none;
  transition: color var(--duration-fast), background var(--duration-fast);
}
.site-nav__links a:hover,
.site-nav__links a.is-active,
.site-nav__links .nav-dropdown__trigger:hover,
.site-nav__links .nav-dropdown.is-open .nav-dropdown__trigger {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}
.site-nav__links a.is-active { color: var(--accent-primary); }

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 0;
  min-width: 220px;
  padding: var(--space-2);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--duration-normal), transform var(--duration-normal), visibility var(--duration-normal);
  z-index: var(--z-dropdown);
}
.nav-dropdown.is-open .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
@media (min-width: 992px) {
  .nav-dropdown:hover .nav-dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}
.nav-dropdown__trigger i {
  font-size: 0.7em;
  transition: transform var(--duration-normal) var(--ease-out);
}
.nav-dropdown.is-open .nav-dropdown__trigger i {
  transform: rotate(180deg);
}
.nav-dropdown__menu a {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
}
.nav-dropdown__menu a:hover,
.nav-dropdown__menu a.is-active {
  background: var(--gradient-brand);
  color: #fff !important;
}

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-switch {
  display: flex;
  align-items: center;
  padding: 3px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  gap: 2px;
}
.theme-switch button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-tertiary);
  font-size: 12px;
  transition: background var(--duration-fast), color var(--duration-fast);
}
.theme-switch button:hover { color: var(--text-primary); }
.theme-switch button.is-active {
  background: var(--bg-elevated);
  color: var(--accent-primary);
  box-shadow: var(--shadow-xs);
}

@media (max-width: 1200px) and (min-width: 992px) {
  .site-nav__links a,
  .site-nav__links .nav-dropdown__trigger {
    padding: var(--space-2);
    font-size: var(--text-xs);
  }
  .site-nav__actions .btn--sm {
    padding: var(--space-2) var(--space-3);
    font-size: 0.7rem;
  }
}

@media (max-width: 991px) {
  .site-header { z-index: 300; }

  .site-nav {
    position: relative;
  }

  .site-nav__inner {
    position: relative;
    z-index: 302;
  }

  .site-nav__toggle {
    display: flex;
    z-index: 303;
  }

  /* Backdrop when menu is open */
  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 298;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: navBackdropIn 0.25s var(--ease-out);
  }

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

  /* Menu is outside .site-nav so position:fixed is not clipped by backdrop-filter */
  .site-nav__menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 301;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    padding: var(--space-2) var(--space-5) var(--space-8);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-default);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .site-nav__menu.is-open {
    display: flex;
    animation: navSlideIn 0.28s var(--ease-out);
  }

  @keyframes navSlideIn {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .site-nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .site-nav__links > li {
    width: 100%;
    border-bottom: 1px solid var(--border-default);
  }

  .site-nav__links > li:last-child {
    border-bottom: none;
  }

  .site-nav__links a,
  .site-nav__links .nav-dropdown__trigger {
    width: 100%;
    justify-content: space-between;
    padding: var(--space-4) var(--space-1);
    min-height: 52px;
    font-size: var(--text-base);
    font-weight: var(--weight-medium);
    color: var(--text-primary);
    border-radius: 0;
    background: transparent;
  }

  .site-nav__links a.is-active {
    color: var(--accent-primary);
    background: transparent;
    font-weight: var(--weight-semibold);
  }

  .nav-dropdown__trigger {
    color: var(--text-primary);
  }

  .nav-dropdown__menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: var(--space-1) 0 var(--space-3);
    margin: 0 0 var(--space-2);
    display: none;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
  }

  .nav-dropdown.is-open .nav-dropdown__menu {
    display: block;
  }

  .nav-dropdown__menu a {
    padding: var(--space-3) var(--space-4);
    min-height: 44px;
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
    background: transparent;
  }

  .nav-dropdown__menu a:hover,
  .nav-dropdown__menu a.is-active {
    background: var(--bg-elevated);
    color: var(--accent-primary) !important;
  }

  .nav-dropdown__menu a:last-child {
    border-bottom: none;
  }

  .site-nav__actions {
    margin-top: auto;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
    padding-top: var(--space-6);
    margin-top: var(--space-4);
    border-top: 1px solid var(--border-default);
    width: 100%;
  }

  .site-nav__actions .theme-switch {
    justify-content: center;
    align-self: center;
  }

  .site-nav__actions .btn {
    width: 100%;
    justify-content: center;
    padding: var(--space-4);
  }
}

/* —— Page Hero (inner pages) —— */
.page-hero {
  position: relative;
  padding: var(--space-16) 0 var(--space-12);
  overflow: hidden;
  background: var(--bg-secondary);
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  pointer-events: none;
}
.page-hero__content { position: relative; z-index: 1; }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-bottom: var(--space-6);
}
.breadcrumbs a { color: var(--text-secondary); }
.breadcrumbs a:hover { color: var(--accent-primary); }
.breadcrumbs__sep { opacity: 0.5; }
.breadcrumbs__current { color: var(--text-primary); font-weight: var(--weight-medium); }
.page-hero h1 {
  font-size: var(--text-display);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}
.page-hero__lead {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 40rem;
  line-height: var(--leading-normal);
}

/* —— Product Showcase —— */
.product-showcase { padding: var(--section-y) 0; }
.product-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  padding: var(--space-10) 0;
}
.product-feature + .product-feature { border-top: 1px solid var(--border-subtle); }
.product-feature--reverse .product-feature__content { order: 1; }
.product-feature--reverse .product-feature__media { order: 2; }
.product-feature__media {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.product-feature__media > img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.product-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-tertiary);
}
.product-carousel__track {
  position: relative;
  width: 100%;
  height: 100%;
}
.product-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
  pointer-events: none;
}
.product-carousel__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.product-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  color: var(--text-primary);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background var(--duration-fast), color var(--duration-fast), transform var(--duration-fast);
}
.product-carousel__btn:hover {
  background: var(--accent-primary);
  color: #fff;
}
.product-carousel__btn--prev { left: var(--space-3); }
.product-carousel__btn--next { right: var(--space-3); }
.product-carousel__dots {
  position: absolute;
  left: 50%;
  bottom: var(--space-3);
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: var(--space-2);
}
.product-carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.45);
  transition: transform var(--duration-fast), background var(--duration-fast);
}
.product-carousel__dot.is-active {
  background: var(--accent-primary);
  transform: scale(1.2);
}
.spec-chip {
  display: inline-flex;
  padding: var(--space-1) var(--space-3);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-brand);
  margin-bottom: var(--space-4);
}
.product-feature h2 {
  font-size: var(--text-h2);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}
.product-feature p {
  color: var(--text-secondary);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-6);
}
.product-feature__list {
  color: var(--text-secondary);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-6);
  padding-left: var(--space-6);
  list-style: disc;
}
.product-feature__list li + li { margin-top: var(--space-2); }
@media (max-width: 991px) {
  .product-feature { grid-template-columns: 1fr; gap: var(--space-8); }
  .product-feature--reverse .product-feature__content,
  .product-feature--reverse .product-feature__media { order: 0; }
}

/* —— About / Content pages —— */
.content-section { padding: var(--section-y) 0; }
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}
.content-grid__media img {
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
}
.content-grid__body p {
  color: var(--text-secondary);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-4);
}
.content-grid__body p:last-child { margin-bottom: 0; }
.value-list { margin-top: var(--space-4); }
.value-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}
.value-list li i { color: var(--accent-primary); margin-top: 4px; flex-shrink: 0; }
.value-list li b { color: var(--text-primary); }

.mv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}
.mv-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-normal), box-shadow var(--duration-normal);
}
.mv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.mv-card__img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.mv-card__body { padding: var(--space-6); }
.mv-card__label {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--gradient-brand);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}
.mv-card p { color: var(--text-secondary); line-height: var(--leading-normal); }

@media (max-width: 991px) {
  .content-grid, .mv-grid { grid-template-columns: 1fr; }
}

/* —— Contact —— */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--section-y);
}
.contact-card {
  text-align: center;
  padding: var(--space-8) var(--space-6);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-normal), box-shadow var(--duration-normal);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-card__icon {
  width: 56px; height: 56px;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-brand);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: var(--text-xl);
}
.contact-card h3 {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-3);
}
.contact-card p, .contact-card a { color: var(--text-secondary); font-size: var(--text-sm); }
@media (max-width: 767px) { .contact-cards { grid-template-columns: 1fr; } }

/* —— Footer —— */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-default);
  margin-top: var(--space-16);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--space-10);
  padding: var(--space-16) 0 var(--space-10);
}
.site-footer__brand img { width: 160px; margin-bottom: var(--space-4); }
.site-footer__brand p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-6);
}
.site-footer__col h3 {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}
.site-footer__col ul li { margin-bottom: var(--space-2); }
.site-footer__col a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.site-footer__col a:hover { color: var(--accent-primary); }
.site-footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}
.site-footer__contact i { color: var(--accent-primary); margin-top: 3px; flex-shrink: 0; }

.social-links { display: flex; gap: var(--space-3); }
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  transition: transform var(--duration-fast), background var(--duration-fast), color var(--duration-fast);
}
.social-links a:hover {
  background: var(--accent-primary);
  color: #fff;
  transform: translateY(-2px);
}

.site-footer__map {
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-8) 0;
}
.site-footer__map iframe {
  width: 100%;
  height: 280px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
}
.site-footer__bar {
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-6) 0;
}
.site-footer__bar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.site-footer__bar p {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}
.site-footer__bar a { color: var(--text-secondary); }

.subscribe-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
  align-items: stretch;
}
.subscribe-form .input {
  flex: 1 1 auto;
  min-width: 160px;
}

@media (max-width: 991px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* —— Home Hero / Slider —— */
.home-hero {
  position: relative;
  min-height: clamp(480px, 75vh, 640px);
  overflow: hidden;
}
.home-hero .slider {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-hero .slider li {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1s var(--ease-in-out);
}
.home-hero .slider li.active { opacity: 1; z-index: 1; }
.home-hero .slider li > div {
  width: 100%;
  height: 100%;
  min-height: clamp(480px, 75vh, 640px);
  background-size: cover;
  background-position: center;
}
.home-hero .banner-w3ls-1 { background-image: url(../images/latest-banner-1.png); }
.home-hero .banner-w3ls-2 { background-image: url(../images/latest-banner-2.png); }
.home-hero .banner-w3ls-3 { background-image: url(../images/latest-banner-3.jpeg); }

.home-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: var(--gradient-hero-scrim);
}
.home-hero__content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(6rem, 18vh, 10rem);
  pointer-events: none;
}
.home-hero__content .container { pointer-events: auto; }
.home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-brand-400);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
  backdrop-filter: blur(8px);
}
.home-hero h1 {
  color: #fff;
  font-size: var(--text-display);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  max-width: 16ch;
  margin-bottom: var(--space-4);
}
.home-hero h1 span {
  display: block;
  background: linear-gradient(90deg, var(--color-brand-400), var(--color-accent-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.home-hero__lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--text-lg);
  max-width: 36rem;
  line-height: var(--leading-normal);
  margin-bottom: var(--space-8);
}
.home-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.home-hero .pager {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}
.home-hero .pager li {
  width: 10px; height: 10px;
  border-radius: var(--radius-full);
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  transition: transform var(--duration-fast), background var(--duration-fast);
}
.home-hero .pager li.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: scale(1.2);
}

/* Home: header stays in document flow (no overlay on hero) */
body.page-home .home-hero {
  margin-top: 0;
}

/* —— Home sections —— */
.about-section {
  padding: var(--section-y) 0;
  background: var(--bg-secondary);
  position: relative;
}
.about-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-brand);
}
.about-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-6), 3vw, var(--space-8));
}
.about-card p {
  color: var(--text-secondary);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-6);
}
.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.about-feature {
  text-align: center;
  padding: var(--space-4);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  transition: transform var(--duration-normal), box-shadow var(--duration-normal);
}
.about-feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.about-feature i { font-size: var(--text-2xl); color: var(--accent-primary); margin-bottom: var(--space-2); display: block; }
.about-feature span { font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--text-primary); }
.about-img img { border-radius: var(--radius-2xl); box-shadow: var(--shadow-lg); }

.stats-section { padding: var(--section-y) 0; }
.stats-panel {
  background: var(--gradient-brand);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 5vw, var(--space-12));
  box-shadow: var(--shadow-lg);
}
html[data-theme="dark"] .stats-panel {
  background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #1e3a5f 100%);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
.stat-item { text-align: center; padding: var(--space-4); }
.stat-item i { font-size: var(--text-2xl); color: var(--color-brand-400); margin-bottom: var(--space-3); display: block; }
.stat-item .stat-number {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-4xl));
  font-weight: var(--weight-bold);
  color: #fff;
  line-height: 1;
  margin-bottom: var(--space-3);
}
.stat-item p {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: rgba(255, 255, 255, 0.8);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
@media (max-width: 767px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

.products-section { padding: var(--section-y) 0; background: var(--bg-primary); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-10) var(--space-6);
}
.product-card-wrap { text-align: center; }
.product-card {
  position: relative;
  display: block;
  width: 200px; height: 200px;
  margin: 0 auto;
  border-radius: var(--radius-full);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--duration-slow) var(--ease-out), box-shadow var(--duration-slow);
}
.product-card:hover { transform: translateY(-8px) scale(1.03); box-shadow: var(--shadow-xl); }
.product-card__media { position: absolute; inset: 0; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s var(--ease-out); }
.product-card:hover .product-card__media img { transform: scale(1.1); }
.product-card__overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: var(--space-3);
  background: linear-gradient(160deg, rgba(14,165,233,0.9), rgba(15,23,42,0.85));
  opacity: 0; transform: scale(0.9);
  transition: opacity var(--duration-normal), transform var(--duration-slow) var(--ease-out);
}
.product-card:hover .product-card__overlay { opacity: 1; transform: scale(1); }
.product-card__overlay h3 { color: #fff; font-size: var(--text-lg); font-weight: var(--weight-semibold); }
.product-card__cta {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.product-card-wrap h4 {
  margin-top: var(--space-4);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
}
.product-card-wrap h4 a { color: var(--text-primary); }
.product-card-wrap h4 a:hover { color: var(--accent-primary); }
@media (max-width: 991px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .products-grid { grid-template-columns: 1fr; } }

.industries-section { padding: var(--section-y) 0; background: var(--bg-secondary); }
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-4);
}
.industry-chip {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-4);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  transition: transform var(--duration-normal), border-color var(--duration-normal), box-shadow var(--duration-normal);
}
.industry-chip:hover { transform: translateY(-3px); border-color: var(--accent-primary); box-shadow: var(--shadow-sm); }
.industry-chip i {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-brand);
  color: #fff;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}
.industry-chip span { font-weight: var(--weight-semibold); font-size: var(--text-sm); color: var(--text-primary); }

.cta-section { padding: var(--space-12) 0 var(--section-y); background: var(--bg-primary); }
.cta-panel {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: var(--space-6);
  padding: clamp(var(--space-8), 4vw, var(--space-10));
  background: var(--gradient-brand);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.cta-panel h2 { color: #fff; font-size: var(--text-h2); font-weight: var(--weight-bold); margin-bottom: var(--space-2); }
.cta-panel p { color: rgba(255,255,255,0.9); }
.cta-panel__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.cta-panel .btn--primary { background: #fff; color: var(--color-brand-700) !important; box-shadow: var(--shadow-sm); }
.cta-panel .btn--primary:hover { color: var(--color-brand-700) !important; }

/* —— Scroll to top —— */
#toTop {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 100;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--duration-normal), transform var(--duration-normal), visibility var(--duration-normal);
  cursor: pointer;
}
#toTop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
#toTop:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* —— Toast —— */
#toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.toast {
  padding: var(--space-4) var(--space-6);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  font-size: var(--text-sm);
  color: var(--text-primary);
  transform: translateY(16px);
  opacity: 0;
  transition: transform var(--duration-normal) var(--ease-out), opacity var(--duration-normal);
}
.toast.is-visible { transform: translateY(0); opacity: 1; }
.toast--success { border-left: 3px solid var(--color-success); }
.toast--error { border-left: 3px solid var(--color-error); }

/* —— Reveal animations —— */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
.home-hero__content > .container > * {
  animation: heroFadeUp 0.75s var(--ease-out) backwards;
}
.home-hero__eyebrow { animation-delay: 0.1s; }
.home-hero h1 { animation-delay: 0.25s; }
.home-hero__lead { animation-delay: 0.4s; }
.home-hero__actions { animation-delay: 0.55s; }

/* —— Responsive (mobile-first fixes) —— */
@media (max-width: 991px) {
  .section-header { margin-bottom: var(--space-8); }
  .section-header__desc { font-size: var(--text-base); }
  .page-hero { padding: var(--space-12) 0 var(--space-8); }
  .product-feature { padding: var(--space-8) 0; }
  .cta-panel { text-align: center; justify-content: center; }
  .cta-panel__actions { width: 100%; justify-content: center; }
  .site-footer__grid { padding: var(--space-12) 0 var(--space-8); gap: var(--space-8); }
  .site-footer { margin-top: var(--space-12); }
}

@media (max-width: 767px) {
  .container {
    width: min(var(--container-max), 100% - var(--space-6));
  }

  .site-nav__inner { gap: var(--space-3); }
  .site-nav__logo img { width: min(140px, 42vw); }
  .site-nav__links a,
  .site-nav__links .nav-dropdown__trigger {
    padding: var(--space-4);
    min-height: 44px;
  }

  .home-hero,
  .home-hero .slider li > div {
    min-height: clamp(360px, 62vh, 500px);
  }
  .home-hero__content {
    padding-bottom: clamp(3.5rem, 10vh, 5rem);
  }
  .home-hero h1 { max-width: none; }
  .home-hero__lead { font-size: var(--text-base); }
  .home-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .home-hero__actions .btn { justify-content: center; }
  .home-hero .pager { bottom: var(--space-4); }

  .page-hero h1 { font-size: var(--text-h1); }
  .page-hero__lead { font-size: var(--text-base); }

  .content-section,
  .product-showcase,
  .about-section,
  .stats-section,
  .products-section,
  .industries-section {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
  }

  .content-grid { gap: var(--space-8); }
  .about-features { grid-template-columns: repeat(2, 1fr); }
  .stats-panel { padding: var(--space-6) var(--space-4); }
  .stat-item { padding: var(--space-2); }
  .stat-item p { font-size: 0.65rem; }

  .product-card { width: min(200px, 70vw); height: min(200px, 70vw); }
  .products-grid { gap: var(--space-8); }

  .industries-grid { grid-template-columns: 1fr; }
  .cta-section { padding: var(--space-8) 0 var(--space-12); }
  .cta-panel__actions { flex-direction: column; }
  .cta-panel__actions .btn { width: 100%; justify-content: center; }

  .form-card { padding: var(--space-6); }
  .contact-card { padding: var(--space-6); }

  .site-footer__map { padding: var(--space-6) 0; }
  .site-footer__map iframe { height: 220px; }
  .site-footer__bar .container { justify-content: center; text-align: center; }
  .subscribe-form {
    flex-direction: column;
    gap: var(--space-3);
    margin-top: var(--space-3);
  }
  .subscribe-form .input {
    flex: none;
    width: 100%;
    min-width: 0;
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
  }
  .subscribe-form .btn {
    width: 100%;
    flex: none;
    padding: var(--space-2) var(--space-4);
  }

  #toTop {
    bottom: var(--space-4);
    right: var(--space-4);
    width: 40px;
    height: 40px;
  }
  #toast-container {
    left: var(--space-4);
    right: var(--space-4);
    bottom: var(--space-4);
  }
  .toast { text-align: center; }
}

@media (max-width: 575px) {
  .container {
    width: min(var(--container-max), 100% - var(--space-4));
  }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: var(--space-3); }
  .about-features { grid-template-columns: 1fr 1fr; }
  .product-feature h2 { font-size: var(--text-h3); }
  .section-header__title { font-size: var(--text-h2); }

  .btn--lg {
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-sm);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .home-hero__content > .container > * { animation: none; }
  .site-nav__menu.is-open { animation: none; }
  body.nav-open::before { animation: none; }
}
