/* ============================================================
   OptiGrid Energy — Shared Stylesheet
   Design System: Satoshi font, CSS custom properties, light/dark
   ============================================================ */

/* ----- CSS Custom Properties (Light Mode) ----- */
:root {
  --black: #0f232a;
  --white: #ffffff;
  --paragraph: #79898f;
  --stock: #e8e8e8;
  --bg: #f5f5f3;
  --accent: #0f232a;
}

/* ----- Dark Mode ----- */
[data-theme="dark"] {
  --black: #e8e8e8;
  --white: #0f232a;
  --paragraph: #9aabb2;
  --bg: #0a1a20;
  --stock: #1a2e36;
  --accent: #e8e8e8;
}

/* ----- Reset & Base ----- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Satoshi", sans-serif;
  background-color: var(--bg);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  transition: color 0.3s;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
}

/* ============================================================
   UTILITIES
   ============================================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.text-muted {
  color: var(--paragraph);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.3s;
}

.link-arrow:hover {
  transform: translateX(4px);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    background-color 0.3s,
    color 0.3s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.btn--primary {
  background-color: var(--black);
  color: var(--white);
}

.btn--white {
  background-color: var(--white);
  color: var(--black);
}

/* Reveal Animations — motion.js owns initial and animated state via
   gsap.set() / gsap.from(). Nothing hidden by CSS so if the script
   fails to load, content renders normally (graceful degradation). */

/* Hero bg and parallaxed elements get a compositing hint */
.hero__bg,
.page-hero__bg {
  will-change: transform;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.4s;
}

.nav.is-scrolled {
  background: rgba(245, 245, 243, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  padding: 12px 40px;
}

[data-theme="dark"] .nav.is-scrolled {
  background: rgba(10, 26, 32, 0.9);
}

.nav__brand {
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 2px;
  color: var(--black);
  text-decoration: none;
}

.nav__links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav__links a {
  text-decoration: none;
  color: var(--paragraph);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.3s;
}

.nav__links a:hover {
  color: var(--black);
}

.nav__links a.is-active {
  color: var(--black);
  font-weight: 600;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--stock);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  transition:
    background-color 0.3s,
    border-color 0.3s,
    color 0.3s;
}

.theme-toggle:hover {
  background-color: var(--stock);
}

.nav__cta {
  padding: 10px 24px;
  background: var(--black);
  color: var(--white);
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.nav__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.nav__mobile {
  display: none;
  background: transparent;
  border: none;
  color: var(--black);
  cursor: pointer;
}

/* ============================================================
   MOBILE OVERLAY
   ============================================================ */

.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.mobile-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-overlay__inner {
  text-align: center;
}

.mobile-overlay__close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: none;
  color: var(--black);
  cursor: pointer;
}

.mobile-overlay__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.mobile-overlay__links a {
  text-decoration: none;
  color: var(--black);
  font-size: 28px;
  font-weight: 600;
}

.mobile-overlay__cta {
  padding: 14px 32px;
  background: var(--black);
  color: var(--white);
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  display: inline-block;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.mobile-overlay__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* ============================================================
   HERO SECTION (index.html)
   ============================================================ */

.hero {
  min-height: 100vh;
  position: relative;
  padding: 90px 0 0;
}

.hero__rounded {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  color: white;
}

.hero__label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
  opacity: 0.8;
}

.hero__title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  color: white;
}

.hero__subtitle {
  font-size: 17px;
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 32px;
  opacity: 0.85;
  color: white;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: white;
  color: #0f232a;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.hero__features {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.hero__feature-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.hero__feature-card:hover {
  transform: translateY(-4px);
}

.hero__feature-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.hero__feature-body {
  padding: 20px;
}

.hero__feature-title {
  font-size: 16px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.hero__feature-text {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

/* ============================================================
   PAGE HERO (about, services, products, contact)
   ============================================================ */

.page-hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
  background: var(--black);
  text-align: center;
  color: var(--white);
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 35, 42, 0.7) 0%,
    rgba(15, 35, 42, 0.95) 100%
  );
}

.page-hero__content {
  position: relative;
  z-index: 2;
}

.page-hero__label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
  color: var(--stock);
}

.page-hero__title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  margin-bottom: 16px;
  color: white;
}

.page-hero__text {
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

/* ============================================================
   PARTNERS / BRANDS MARQUEE
   ============================================================ */

.partners {
  padding: 40px 0;
  overflow: hidden;
}

.partners__label {
  display: block;
  text-align: center;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--paragraph);
  font-weight: 600;
  margin-bottom: 30px;
}

.partners__marquee {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
}

.partners__track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.partners__item span {
  font-size: 22px;
  font-weight: 800;
  color: var(--stock);
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  transition: color 0.3s;
}

.partners__item:hover span {
  color: var(--black);
}

/* ============================================================
   ABOUT PREVIEW (index.html)
   ============================================================ */

.about-preview {
  padding: 80px 0;
}

.about-preview__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}

.about-preview__label {
  display: inline-block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--paragraph);
  font-weight: 600;
  margin-bottom: 12px;
}

.about-preview__title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--black);
}

.about-preview__text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--paragraph);
}

.about-preview__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.about-preview__image img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  height: 100%;
  min-height: 400px;
}

.about-preview__cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-preview__card {
  background: var(--white);
  border: 1px solid var(--stock);
  border-radius: 16px;
  padding: 28px;
  cursor: pointer;
  transition:
    transform 0.4s cubic-bezier(0.19, 1, 0.22, 1),
    box-shadow 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.about-preview__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.about-preview__card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--black);
}

.about-preview__card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--black);
}

.about-preview__card-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--paragraph);
}

.about-preview__footer {
  text-align: center;
  margin-top: 40px;
}

/* ============================================================
   SERVICES PREVIEW (index.html)
   ============================================================ */

.services-preview {
  padding: 80px 0;
  background: var(--white);
}

.services-preview__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
}

.services-preview__label {
  display: inline-block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--paragraph);
  font-weight: 600;
  margin-bottom: 12px;
}

.services-preview__title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--black);
}

.services-preview__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.services-preview__card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg);
  border: 1px solid var(--stock);
  border-radius: 16px;
  padding: 36px;
  cursor: pointer;
  transition:
    transform 0.4s cubic-bezier(0.19, 1, 0.22, 1),
    box-shadow 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.services-preview__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.services-preview__card-number {
  font-size: 48px;
  font-weight: 900;
  color: var(--stock);
  margin-bottom: 20px;
}

.services-preview__card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--black);
}

.services-preview__card-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--paragraph);
  margin-bottom: 20px;
}

.services-preview__card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--black);
  transition: transform 0.3s;
}

.services-preview__card-link:hover {
  transform: translateX(4px);
}

/* ============================================================
   PAY-AS-YOU-GO SECTION
   ============================================================ */

.payg {
  padding: 80px 0;
}

.payg__inner {
  background: var(--black);
  border-radius: 24px;
  padding: 60px 48px;
  text-align: center;
  color: var(--white);
}

/* Ensure payg__inner stays dark even in dark mode */
[data-theme="dark"] .payg__inner {
  background: #0f232a;
}

.payg__header {
  max-width: 700px;
  margin: 0 auto 40px;
}

.payg__label {
  display: inline-block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--stock);
  font-weight: 600;
  margin-bottom: 12px;
}

[data-theme="dark"] .payg__label {
  color: #1a2e36;
}

.payg__title {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  color: white;
}

.payg__text {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

.payg__steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.payg__step {
  flex: 0 0 200px;
  text-align: center;
}

.payg__step-number {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: white;
  margin-bottom: 16px;
}

.payg__step-icon {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 12px;
}

.payg__step-title {
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.payg__step-text {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

.payg__step-divider {
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.payg__benefits {
  margin-bottom: 40px;
}

.payg__benefits-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 32px;
}

.payg__benefits-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.payg__benefits-list svg {
  color: #4ade80;
  flex-shrink: 0;
}

.payg__action {
  text-align: center;
}

/* ============================================================
   STATS
   ============================================================ */

.stats {
  padding: 60px 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stats__item {
  padding: 32px;
}

.stats__number {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 900;
  color: var(--black);
  display: inline;
}

.stats__suffix {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  color: var(--paragraph);
}

.stats__label {
  font-size: 14px;
  color: var(--paragraph);
  margin-top: 8px;
  font-weight: 500;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */

.testimonials {
  padding: 80px 0;
  background: var(--white);
}

.testimonials__header {
  text-align: center;
  margin-bottom: 40px;
}

.testimonials__label {
  display: inline-block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--paragraph);
  font-weight: 600;
  margin-bottom: 12px;
}

.testimonials__title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--black);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonials__card {
  background: var(--bg);
  border: 1px solid var(--stock);
  border-radius: 16px;
  padding: 36px;
  transition:
    transform 0.4s cubic-bezier(0.19, 1, 0.22, 1),
    box-shadow 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.testimonials__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.testimonials__stars {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  color: #f59e0b;
}

.testimonials__quote {
  font-size: 15px;
  line-height: 1.7;
  color: var(--paragraph);
  margin-bottom: 24px;
  font-style: italic;
}

.testimonials__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonials__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.testimonials__name {
  font-weight: 600;
  font-size: 15px;
  color: var(--black);
}

.testimonials__location {
  font-size: 13px;
  color: var(--paragraph);
}

/* ============================================================
   GALLERY PREVIEW (index.html)
   ============================================================ */

.gallery-preview {
  padding: 80px 0;
}

.gallery-preview__header {
  text-align: center;
  margin-bottom: 40px;
}

.gallery-preview__label {
  display: inline-block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--paragraph);
  font-weight: 600;
  margin-bottom: 12px;
}

.gallery-preview__title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--black);
}

.gallery-preview__text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--paragraph);
}

.gallery-preview__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-preview__item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.gallery-preview__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  /* GSAP (motion.js) overrides this transition via inline style on each item */
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.gallery-preview__item:hover img {
  transform: scale(1.05);
}

.gallery-preview__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 35, 42, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  color: white;
  font-weight: 600;
  font-size: 15px;
}

.gallery-preview__item:hover .gallery-preview__overlay {
  opacity: 1;
}

/* ============================================================
   FINAL CTA
   ============================================================ */

.final-cta {
  padding: 80px 0;
}

.final-cta__inner {
  background: var(--black);
  border-radius: 24px;
  padding: 60px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .final-cta__inner {
  background: #0f232a;
}

.final-cta__watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(80px, 10vw, 160px);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
  pointer-events: none;
  text-transform: uppercase;
  letter-spacing: 8px;
}

.final-cta__content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.final-cta__title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  color: white;
  line-height: 1.2;
  margin-bottom: 16px;
}

.final-cta__text {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
}

.final-cta__image {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.final-cta__image img {
  width: 200px;
  height: 200px;
  border-radius: 16px;
  object-fit: cover;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: #0f232a;
  color: var(--white);
  padding: 60px 0 0;
}

[data-theme="dark"] .footer {
  background: #060e12;
}

.footer__top {
  display: flex;
  gap: 40px;
  margin-bottom: 32px;
}

.footer__brand {
  flex: 0 0 280px;
}

.footer__logo {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 2px;
  color: white;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 16px;
}

.footer__tagline {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
}

.footer__socials {
  display: flex;
  gap: 12px;
}

.footer__social {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition:
    background-color 0.3s,
    color 0.3s;
}

.footer__social:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.footer__columns {
  display: flex;
  flex: 1;
  gap: 40px;
  justify-content: space-between;
}

.footer__column-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
}

.footer__column-list {
  list-style: none;
}

.footer__column-list li {
  margin-bottom: 10px;
}

.footer__column-list a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  transition: color 0.3s;
}

.footer__column-list a:hover {
  color: white;
}

.footer__info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__info-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.6);
}

.footer__info-item svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.footer__info-item strong {
  display: block;
  color: white;
  font-size: 14px;
  margin-bottom: 4px;
}

.footer__info-item span,
.footer__info-item a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  display: block;
}

.footer__info-item a:hover {
  color: white;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
}

.footer__copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.footer__watermark {
  font-size: clamp(60px, 8vw, 100px);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  letter-spacing: 6px;
  text-transform: uppercase;
}

.footer__back-to-top {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition:
    background-color 0.3s,
    color 0.3s;
}

.footer__back-to-top:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

/* ============================================================
   SERVICE CARDS (services.html)
   ============================================================ */

.services-full {
  padding: 80px 0;
}

.services-full__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--stock);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.service-card__image {
  height: 200px;
  overflow: hidden;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.service-card:hover .service-card__image img {
  transform: scale(1.05);
}

.service-card__body {
  padding: 28px;
}

.service-card__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--black);
}

.service-card__text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--paragraph);
}

/* ============================================================
   PAYG PLANS (services.html)
   ============================================================ */

.payg-plans {
  padding: 80px 0;
}

.payg-plans__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.payg-plan {
  background: var(--white);
  border: 1px solid var(--stock);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  position: relative;
}

.payg-plan:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.payg-plan.is-featured {
  border-color: var(--black);
  transform: scale(1.05);
}

.payg-plan.is-featured:hover {
  transform: scale(1.05) translateY(-4px);
}

.payg-plan__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--black);
  color: var(--white);
  padding: 6px 20px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.payg-plan__name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--black);
}

.payg-plan__price {
  font-size: 36px;
  font-weight: 900;
  color: var(--black);
  margin-bottom: 4px;
}

.payg-plan__price span {
  font-size: 14px;
  font-weight: 500;
  color: var(--paragraph);
}

.payg-plan__description {
  font-size: 14px;
  color: var(--paragraph);
  margin-bottom: 24px;
}

.payg-plan__features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}

.payg-plan__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--paragraph);
  padding: 8px 0;
  border-bottom: 1px solid var(--stock);
}

.payg-plan__features li svg {
  color: #4ade80;
  flex-shrink: 0;
}

/* ============================================================
   BRAND SHOWCASE (products.html)
   ============================================================ */

.brand-showcase {
  padding: 80px 0;
}

.brand-showcase__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.brand-card {
  background: var(--white);
  border: 1px solid var(--stock);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.brand-card__name {
  font-size: 20px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.brand-card__category {
  font-size: 13px;
  color: var(--paragraph);
  font-weight: 500;
}

/* ============================================================
   PRODUCT CATEGORIES (products.html)
   ============================================================ */

.product-categories {
  padding: 80px 0;
  background: var(--white);
}

.product-categories__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--bg);
  border: 1px solid var(--stock);
  border-radius: 16px;
  overflow: hidden;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.product-card__image {
  height: 220px;
  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.product-card:hover .product-card__image img {
  transform: scale(1.05);
}

.product-card__body {
  padding: 28px;
}

.product-card__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--black);
}

.product-card__text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--paragraph);
}

/* ============================================================
   GALLERY (products.html)
   ============================================================ */

.gallery {
  padding: 80px 0;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  grid-auto-rows: 250px;
}

.gallery__grid > *:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery__item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery__item:hover img {
  transform: scale(1.05);
}

/* ============================================================
   CONTACT FORM (contact.html)
   ============================================================ */

.contact-section {
  padding: 80px 0;
}

.contact-section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--stock);
  border-radius: 16px;
  padding: 48px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--stock);
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  color: var(--black);
  background: var(--bg);
  outline: none;
  transition: border-color 0.3s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--black);
}

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

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--stock);
  border-radius: 16px;
  padding: 24px;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.contact-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  flex-shrink: 0;
}

.contact-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 4px;
}

.contact-card__text {
  font-size: 14px;
  color: var(--paragraph);
  line-height: 1.5;
}

.contact-card__text a {
  color: var(--paragraph);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-card__text a:hover {
  color: var(--black);
}

/* ============================================================
   FAQ SECTION (services & contact pages)
   ============================================================ */

.faq {
  padding: 80px 0;
  background: var(--white);
}

.faq__header {
  text-align: center;
  margin-bottom: 40px;
}

.faq__list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--stock);
  border-radius: 12px;
  padding: 20px 24px;
  cursor: pointer;
  transition: border-color 0.3s;
}

.faq-item:hover {
  border-color: var(--paragraph);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 16px;
  color: var(--black);
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  padding: 0;
  gap: 16px;
}

.faq-item__icon {
  width: 24px;
  height: 24px;
  transition: transform 0.35s;
  flex-shrink: 0;
  color: var(--paragraph);
}

.faq-item.is-open .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  height: 0;
  overflow: hidden;
  transition: height 0.35s;
}

.faq-item__answer p {
  padding-top: 16px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--paragraph);
}

/* ============================================================
   ABOUT PAGE — Story Section
   ============================================================ */

.story {
  padding: 80px 0;
}

.story__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.story__image img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}

.story__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.story__label {
  display: inline-block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--paragraph);
  font-weight: 600;
  margin-bottom: 12px;
}

.story__title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--black);
}

.story__text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--paragraph);
}

/* ============================================================
   ABOUT PAGE — Mission & Vision
   ============================================================ */

.mission-vision {
  padding: 80px 0;
  background: var(--white);
}

.mission-vision__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.mission-vision__card {
  background: var(--bg);
  border-radius: 16px;
  padding: 48px;
}

.mission-vision__card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--black);
}

.mission-vision__card p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--paragraph);
}

/* ============================================================
   ABOUT PAGE — Timeline
   ============================================================ */

.timeline {
  padding: 80px 0;
}

.timeline__list {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline__list::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--stock);
}

.timeline__item {
  position: relative;
  padding-bottom: 40px;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--black);
  border: 3px solid var(--bg);
}

.timeline__year {
  font-size: 14px;
  font-weight: 700;
  color: var(--paragraph);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.timeline__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
}

.timeline__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--paragraph);
}

/* ----- Mission-Vision Icon ----- */
.mission-vision__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--white);
  color: var(--black);
  margin-bottom: 20px;
}

/* ----- Timeline Header ----- */
.timeline__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
}

.timeline__label {
  display: inline-block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--paragraph);
  font-weight: 600;
  margin-bottom: 12px;
}

.timeline__heading {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 900;
  line-height: 1.2;
  color: var(--black);
}

/* ----- Display utility for year ----- */
.timeline__year {
  display: block;
}

/* ============================================================
   RESPONSIVE — 1024px
   ============================================================ */

@media (max-width: 1024px) {
  .hero__features {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-preview__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-full__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-categories__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer__columns {
    flex-wrap: wrap;
  }

  .footer__info {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .nav {
    padding: 16px 20px;
  }

  .nav.is-scrolled {
    padding: 12px 20px;
  }

  .nav__links {
    display: none;
  }

  .nav__cta {
    display: none;
  }

  .nav__mobile {
    display: flex;
  }

  /* Section padding reduction */
  .about-preview,
  .services-preview,
  .payg,
  .testimonials,
  .gallery-preview,
  .final-cta,
  .services-full,
  .brand-showcase,
  .product-categories,
  .gallery,
  .contact-section,
  .faq,
  .story,
  .mission-vision,
  .timeline {
    padding: 60px 0;
  }

  /* Hero */
  .hero__rounded {
    padding: 40px 24px;
    min-height: 70vh;
  }

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

  /* Grids to single column */
  .about-preview__grid {
    grid-template-columns: 1fr;
  }

  .services-preview__grid {
    grid-template-columns: 1fr;
  }

  .services-full__grid {
    grid-template-columns: 1fr;
  }

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

  .gallery-preview__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .brand-showcase__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mission-vision__grid {
    grid-template-columns: 1fr;
  }

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

  .payg-plans__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .payg-plan.is-featured {
    transform: none;
  }

  .payg-plan.is-featured:hover {
    transform: translateY(-4px);
  }

  /* Stats */
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* PAYG steps */
  .payg__steps {
    flex-direction: column;
  }

  .payg__step {
    flex: 0 0 auto;
  }

  .payg__step-divider {
    transform: rotate(90deg);
  }

  .payg__inner {
    padding: 60px 32px;
  }

  /* Gallery */
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__grid > *:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
  }

  /* Contact */
  .contact-section__grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 32px 24px;
  }

  /* Footer */
  .footer__top {
    flex-direction: column;
  }

  .footer__brand {
    flex: 0 0 auto;
  }

  .footer__columns {
    flex-wrap: wrap;
    gap: 32px;
  }

  .footer__info {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Final CTA */
  .final-cta__inner {
    flex-direction: column;
    text-align: center;
    padding: 60px 32px;
    gap: 40px;
  }

  .final-cta__content {
    max-width: 100%;
  }

  /* Page hero */
  .page-hero {
    padding: 140px 0 60px;
  }
}

/* ============================================================
   RESPONSIVE — 480px
   ============================================================ */

@media (max-width: 480px) {
  .stats__grid {
    grid-template-columns: 1fr;
  }

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

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

  .gallery__grid > *:nth-child(1) {
    grid-column: span 1;
  }

  .gallery-preview__grid {
    grid-template-columns: 1fr;
  }

  .brand-showcase__grid {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ============================================================
   VICTRON CATALOG — Toolbar
   ============================================================ */

.vc-toolbar {
  padding: 40px 0 0;
}

.vc-toolbar__inner {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.vc-toolbar__search {
  flex: 1;
  min-width: 240px;
  position: relative;
}

.vc-toolbar__search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--paragraph);
  pointer-events: none;
}

.vc-toolbar__input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1px solid var(--stock);
  border-radius: 12px;
  background: var(--white);
  color: var(--black);
  font-family: inherit;
  font-size: 15px;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}

.vc-toolbar__input:focus {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(15, 35, 42, 0.08);
}

.vc-toolbar__filters {
  display: flex;
  gap: 12px;
}

.vc-toolbar__select {
  padding: 12px 36px 12px 16px;
  border: 1px solid var(--stock);
  border-radius: 12px;
  background: var(--white);
  color: var(--black);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2379898F' stroke-width='2' stroke-linecap='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.vc-toolbar__select:focus {
  outline: none;
  border-color: var(--black);
}

.vc-toolbar__meta {
  margin-top: 12px;
  font-size: 13px;
  color: var(--paragraph);
}

/* ============================================================
   VICTRON CATALOG — Product Grid
   ============================================================ */

.vc-products {
  padding: 32px 0 80px;
}

.vc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.vc-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--stock);
  border-radius: 16px;
  overflow: hidden;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.vc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.vc-card__img-wrap {
  height: 200px;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.vc-card__img-wrap img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.vc-card__body {
  padding: 20px;
}

.vc-card__category {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--paragraph);
  margin-bottom: 6px;
}

.vc-card__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--black);
}

.vc-card__desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--paragraph);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vc-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.vc-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: var(--bg);
  color: var(--paragraph);
  border: 1px solid var(--stock);
}

.vc-badge--datasheet {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  border-color: rgba(37, 99, 235, 0.2);
}
.vc-badge--manual {
  background: rgba(5, 150, 105, 0.08);
  color: #059669;
  border-color: rgba(5, 150, 105, 0.2);
}
.vc-badge--schematic {
  background: rgba(168, 85, 247, 0.08);
  color: #a855f7;
  border-color: rgba(168, 85, 247, 0.2);
}
.vc-badge--3d {
  background: rgba(234, 88, 12, 0.08);
  color: #ea580c;
  border-color: rgba(234, 88, 12, 0.2);
}
.vc-badge--enclosure {
  background: rgba(107, 114, 128, 0.08);
  color: #6b7280;
  border-color: rgba(107, 114, 128, 0.2);
}
.vc-badge--brochure {
  background: rgba(14, 165, 233, 0.08);
  color: #0ea5e9;
  border-color: rgba(14, 165, 233, 0.2);
}
.vc-badge--certificate {
  background: rgba(245, 158, 11, 0.08);
  color: #d97706;
  border-color: rgba(245, 158, 11, 0.2);
}
.vc-badge--video {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.2);
}

[data-theme="dark"] .vc-badge--datasheet {
  background: rgba(37, 99, 235, 0.15);
}
[data-theme="dark"] .vc-badge--manual {
  background: rgba(5, 150, 105, 0.15);
}
[data-theme="dark"] .vc-badge--schematic {
  background: rgba(168, 85, 247, 0.15);
}
[data-theme="dark"] .vc-badge--3d {
  background: rgba(234, 88, 12, 0.15);
}
[data-theme="dark"] .vc-badge--enclosure {
  background: rgba(107, 114, 128, 0.15);
}
[data-theme="dark"] .vc-badge--brochure {
  background: rgba(14, 165, 233, 0.15);
}
[data-theme="dark"] .vc-badge--certificate {
  background: rgba(245, 158, 11, 0.15);
}
[data-theme="dark"] .vc-badge--video {
  background: rgba(239, 68, 68, 0.15);
}

/* Skeleton loaders */
.vc-card--skeleton {
  pointer-events: none;
}
.skeleton-box {
  background: linear-gradient(
    90deg,
    var(--stock) 25%,
    var(--bg) 50%,
    var(--stock) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Empty & error states */
.vc-empty,
.vc-error {
  text-align: center;
  padding: 80px 20px;
  color: var(--paragraph);
}

.vc-empty svg,
.vc-error svg {
  margin-bottom: 16px;
  opacity: 0.4;
}

.vc-empty h3,
.vc-error h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
}

.vc-empty p,
.vc-error p {
  margin-bottom: 20px;
}

/* Pagination */
.vc-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.vc-page-btn {
  padding: 8px 16px;
  border: 1px solid var(--stock);
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 0.3s,
    border-color 0.3s;
}

.vc-page-btn:hover {
  background: var(--bg);
  border-color: var(--black);
}

.vc-page-btn--active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* ============================================================
   VICTRON PRODUCT — Detail Page
   ============================================================ */

.vp-breadcrumb {
  padding: 112px 0 24px;
  font-size: 14px;
}

.vp-breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--paragraph);
}

.vp-breadcrumb a {
  color: var(--paragraph);
  text-decoration: none;
  transition: color 0.3s;
}

.vp-breadcrumb a:hover {
  color: var(--black);
}

.vp-detail {
  padding: 0 0 60px;
}

.vp-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.vp-detail__image-wrap {
  background: var(--white);
  border: 1px solid var(--stock);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}

.vp-detail__image-wrap img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
}

.vp-detail__category {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--paragraph);
  margin-bottom: 8px;
}

.vp-detail__title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
  line-height: 1.2;
  color: var(--black);
  margin-bottom: 8px;
}

.vp-detail__model {
  font-size: 14px;
  color: var(--paragraph);
  margin-bottom: 20px;
}

.vp-detail__description {
  font-size: 15px;
  line-height: 1.7;
  color: var(--paragraph);
  margin-bottom: 28px;
}

.vp-detail__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================================
   VICTRON PRODUCT — Assets Section
   ============================================================ */

.vp-assets {
  padding: 60px 0 80px;
  background: var(--white);
}

.vp-assets__heading {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 900;
  margin-bottom: 32px;
  color: var(--black);
}

.vp-assets__groups {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.vp-asset-group {
  background: var(--bg);
  border: 1px solid var(--stock);
  border-radius: 16px;
  padding: 24px;
}

.vp-asset-group__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--black);
}

.vp-asset-group__header h3 {
  font-size: 16px;
  font-weight: 700;
}

.vp-asset-group__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--stock);
  font-size: 12px;
  font-weight: 600;
  color: var(--paragraph);
}

.vp-asset-group__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vp-asset-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--stock);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}

.vp-asset-item:hover {
  border-color: var(--black);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.vp-asset-item__info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.vp-asset-item__title {
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vp-asset-item__format {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--stock);
  color: var(--paragraph);
  flex-shrink: 0;
}

.vp-asset-item__action {
  flex-shrink: 0;
  color: var(--paragraph);
  transition: color 0.3s;
}

.vp-asset-item:hover .vp-asset-item__action {
  color: var(--black);
}

.vp-asset-group__more {
  font-size: 13px;
  color: var(--paragraph);
  padding-top: 8px;
}

/* ============================================================
   VICTRON PRODUCT — Related Products
   ============================================================ */

.vp-related {
  padding: 60px 0 80px;
}

.vp-related__heading {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 900;
  margin-bottom: 32px;
  color: var(--black);
}

/* ============================================================
   VICTRON — Responsive Overrides
   ============================================================ */

@media (max-width: 1024px) {
  .vc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .vc-grid--small {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .vc-toolbar__inner {
    flex-direction: column;
    align-items: stretch;
  }
  .vc-toolbar__filters {
    flex-direction: column;
  }
  .vc-toolbar__select {
    width: 100%;
  }
  .vp-detail__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .vc-grid--small {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .vc-grid {
    grid-template-columns: 1fr;
  }
  .vp-detail__actions {
    flex-direction: column;
  }
  .vp-detail__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   WHATSAPP FLOATING ACTION BUTTON
   ============================================================ */

.wa-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #25d366;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 999;
  transition:
    transform 0.3s cubic-bezier(0.19, 1, 0.22, 1),
    box-shadow 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.wa-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}

.wa-fab svg {
  width: 28px;
  height: 28px;
  fill: #ffffff;
  display: block;
}

/* ============================================================
   LEGAL PAGES (privacy.html, terms.html)
   ============================================================ */

.legal-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 112px 40px 80px;
}

.legal-page h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  color: var(--black);
  margin-bottom: 8px;
}

.legal-page .legal-page__meta {
  font-size: 14px;
  color: var(--paragraph);
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
  margin-top: 48px;
  margin-bottom: 16px;
}

.legal-page h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  margin-top: 28px;
  margin-bottom: 10px;
}

.legal-page p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--paragraph);
  margin-bottom: 16px;
}

.legal-page ul,
.legal-page ol {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-page li {
  font-size: 16px;
  line-height: 1.8;
  color: var(--paragraph);
  margin-bottom: 6px;
}

.legal-page a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page a:hover {
  color: var(--paragraph);
}

@media (max-width: 768px) {
  .legal-page {
    padding: 96px 24px 60px;
  }
}

/* ============================================================
   CONTACT FORM — UPGRADED STATES
   ============================================================ */

.form-field-error {
  font-size: 13px;
  color: #c0392b;
  margin-top: 4px;
  display: block;
}

.form-input.is-error,
.form-select.is-error,
.form-textarea.is-error {
  border-color: #c0392b;
  outline-color: #c0392b;
}

.contact-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.contact-form__success {
  display: none;
  padding: 32px;
  background: #f0faf4;
  border: 1px solid #25d366;
  border-radius: 16px;
  text-align: center;
  margin-top: 24px;
}

.contact-form__success.is-visible {
  display: block;
}

.contact-form__success-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f232a;
  margin-bottom: 8px;
}

.contact-form__success-text {
  font-size: 15px;
  color: #79898f;
  line-height: 1.7;
}

.btn--loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}
