/* ===================================================================
   SECTIONS.CSS — BPirex Section-Specific Styles
   All structural components for the 20-section landing page.
   =================================================================== */

/* ─── TRUST BAR ─── */
.bpx-trust-bar {
  background: var(--bpx-graphite);
  padding: 6px 0;
  font-size: 11px;
  color: var(--bpx-gray-steel);
  text-align: center;
  position: relative;
  z-index: calc(var(--z-sticky) + 1);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.bpx-trust-bar__inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
}

@media (min-width: 768px) {
  .bpx-trust-bar__inner {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-md);
  }
}

.bpx-trust-bar__primary {
  color: var(--bpx-gray-light);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.bpx-trust-bar__secondary {
  display: none;
}

@media (min-width: 768px) {
  .bpx-trust-bar__secondary {
    display: inline;
  }
}

/* ─── HEADER ─── */
.bpx-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  padding: var(--space-sm) 0;
  transition: all var(--transition-slow);
  background: var(--bpx-white-pure);
}

.bpx-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.bpx-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (min-width: 768px) {
  .bpx-header__inner {
    padding: 0 var(--space-2xl);
  }
}

.bpx-header__nav {
  display: none;
}

@media (min-width: 1024px) {
  .bpx-header__nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
  }
}

.bpx-nav__list {
  display: flex;
  gap: var(--space-xl);
}

.bpx-nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--bpx-text-main);
  transition: color var(--transition-fast);
  position: relative;
  padding: var(--space-xs) 0;
}

.bpx-nav__link:hover,
.bpx-nav__link.active {
  color: var(--bpx-navy-primary);
}

.bpx-nav__link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--bpx-navy-primary);
  border-radius: 1px;
}

.bpx-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.bpx-header__cta {
  display: none;
}

@media (min-width: 768px) {
  .bpx-header__cta {
    display: inline-flex;
  }
}

/* ─── MOBILE TOGGLE ─── */
.bpx-mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  padding: 8px 4px;
  cursor: pointer;
  z-index: calc(var(--z-overlay) + 1);
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1024px) {
  .bpx-mobile-toggle {
    display: none;
  }
}

.bpx-mobile-toggle__line {
  width: 20px;
  height: 2px;
  background: var(--bpx-navy-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.bpx-mobile-toggle.open .bpx-mobile-toggle__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.bpx-mobile-toggle.open .bpx-mobile-toggle__line:nth-child(2) {
  opacity: 0;
}

.bpx-mobile-toggle.open .bpx-mobile-toggle__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── MOBILE MENU ─── */
.bpx-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 85vw);
  background: var(--bpx-graphite);
  z-index: var(--z-overlay);
  transform: translateX(100%);
  transition: transform var(--transition-slow) cubic-bezier(0.4, 0, 0.2, 1);
  padding: 5rem var(--space-xl) var(--space-xl);
  display: flex;
  flex-direction: column;
}

.bpx-mobile-menu.open {
  transform: translateX(0);
}

.bpx-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: calc(var(--z-overlay) - 1);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.bpx-mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}

.bpx-nav__list--mobile {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.bpx-mobile-menu .bpx-nav__link {
  font-size: var(--text-lg);
  font-weight: 600;
  display: block;
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--bpx-gray-light);
}

.bpx-mobile-menu .bpx-nav__link:hover {
  color: var(--bpx-green-premium);
}

.bpx-mobile-menu__lang {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.bpx-mobile-menu .bpx-lang__option {
  width: auto;
  min-height: 44px;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--bpx-gray-steel);
  background: rgba(255,255,255,0.04);
  transition: all var(--transition-fast);
}

.bpx-mobile-menu .bpx-lang__option.active {
  color: var(--bpx-green-premium);
  background: rgba(77, 186, 99, 0.12);
}

.bpx-mobile-menu__cta {
  margin-top: auto;
}

/* ─── HERO ─── */
.bpx-hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--bpx-graphite);
  color: var(--bpx-text-light);
  position: relative;
  overflow: hidden;
  padding-top: 0;
}

.bpx-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(47, 158, 68, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.bpx-hero__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  position: relative;
  z-index: 2;
  width: 100%;
}

@media (min-width: 1024px) {
  .bpx-hero__inner {
    flex-direction: row;
    align-items: center;
  }
}

.bpx-hero__content {
  flex: 1;
  max-width: 640px;
  position: relative;
  z-index: 2;
}

.bpx-hero__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--bpx-green-premium);
  margin-bottom: var(--space-md);
}

.bpx-hero__headline {
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-lg);
  color: var(--bpx-white-pure);
}

.bpx-hero__copy {
  font-size: var(--text-base);
  color: var(--bpx-gray-light);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-xl);
  max-width: 540px;
}

.bpx-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.bpx-hero__lang-note {
  font-size: 11px;
  color: var(--bpx-gray-steel);
  margin-top: var(--space-md);
}

.bpx-hero__visual {
  flex: 1;
  position: relative;
  min-height: 300px;
  width: 100%;
}

@media (min-width: 1024px) {
  .bpx-hero__visual {
    min-height: 500px;
  }
}

.bpx-hero__canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.bpx-hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: var(--bpx-gray-steel);
  font-size: 11px;
  animation: bpx-scroll-bounce 2s ease-in-out infinite;
}

@media (max-width: 767px) {
  .bpx-hero__scroll-indicator {
    display: none;
  }
}

@keyframes bpx-scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ─── CREDIBILITY BAR ─── */
.bpx-credibility {
  background: var(--bpx-graphite);
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: var(--space-xl) 0;
}

.bpx-credibility__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

@media (min-width: 1024px) {
  .bpx-credibility__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
  }
}

.bpx-credibility__item {
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02);
}

.bpx-credibility__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-lg);
  color: var(--bpx-green-premium);
  margin-bottom: 4px;
}

.bpx-credibility__desc {
  font-size: 13px;
  color: var(--bpx-gray-steel);
  line-height: 1.5;
}

/* ─── OVERVIEW SECTION ─── */
.bpx-overview__highlight {
  text-align: center;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  font-style: italic;
  color: var(--bpx-green-deep);
  padding: var(--space-xl) var(--space-2xl);
  margin-top: var(--space-2xl);
  border-left: 3px solid var(--bpx-green-primary);
  background: rgba(47, 158, 68, 0.04);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* ─── MATERIAL CARDS ─── */
.bpx-materials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 480px) {
  .bpx-materials__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .bpx-materials__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bpx-material-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: all var(--transition-base);
}

.bpx-material-card:hover {
  border-color: var(--bpx-green-primary);
  background: rgba(255,255,255,0.06);
}

.bpx-material-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--bpx-white-pure);
  margin-bottom: var(--space-sm);
}

.bpx-material-card__examples {
  font-size: 13px;
  color: var(--bpx-gray-steel);
  line-height: 1.6;
}

.bpx-materials__cta {
  text-align: center;
  margin-top: var(--space-2xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  color: var(--bpx-gray-light);
}

/* ─── INTRODUCTION / ABOUT ─── */
.bpx-intro__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

@media (min-width: 1024px) {
  .bpx-intro__content {
    flex-direction: row;
    align-items: flex-start;
  }
}

.bpx-intro__text {
  flex: 1.2;
}

.bpx-intro__visual {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

.bpx-intro__word {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--bpx-green-primary);
  padding: var(--space-xs) var(--space-md);
  border: 1px solid rgba(47,158,68,0.2);
  border-radius: var(--radius-full);
  background: rgba(47,158,68,0.04);
  transition: all var(--transition-base);
}

.bpx-intro__word:hover {
  background: rgba(47,158,68,0.1);
  border-color: var(--bpx-green-primary);
}

/* ─── GLOBAL SECTION ─── */
.bpx-global__visual {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .bpx-global__visual {
    flex-direction: row;
    justify-content: center;
  }
}

.bpx-global__language {
  flex: 1;
  max-width: 320px;
  padding: var(--space-xl);
  border: 1px solid var(--bpx-border-dark);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition-slow);
}

.bpx-global__language:hover {
  border-color: var(--bpx-green-primary);
  box-shadow: var(--shadow-glow-green);
}

.bpx-global__lang-name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--bpx-white-pure);
  margin-bottom: var(--space-sm);
}

.bpx-global__sample {
  font-size: var(--text-sm);
  color: var(--bpx-gray-light);
  font-style: italic;
}

.bpx-global__features {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 480px) {
  .bpx-global__features {
    grid-template-columns: repeat(2, 1fr);
  }
}

.bpx-global__feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--bpx-gray-light);
}

.bpx-global__feature::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--bpx-green-premium);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ─── ABOUT ─── */
.bpx-about__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

@media (min-width: 1024px) {
  .bpx-about__content {
    flex-direction: row;
    align-items: center;
  }
}

.bpx-about__text {
  flex: 1;
}

.bpx-about__visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bpx-about__monogram {
  font-family: var(--font-heading);
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--bpx-green-primary);
  opacity: 0.2;
  user-select: none;
  line-height: 1;
}

/* ─── CONTACT SECTION ─── */
.bpx-contact {
  background: var(--bpx-bg-dark);
  position: relative;
}

.bpx-contact::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(47, 158, 68, 0.06), transparent 60%);
  pointer-events: none;
}

.bpx-contact__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  position: relative;
  z-index: 2;
}

@media (min-width: 1024px) {
  .bpx-contact__content {
    flex-direction: row;
    gap: var(--space-3xl);
  }
}

.bpx-contact__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.bpx-contact__info .bpx-section__eyebrow {
  color: var(--bpx-green-premium);
}

.bpx-contact__info .bpx-section__headline {
  color: var(--bpx-white-pure);
}

.bpx-contact__info .bpx-section__copy {
  color: var(--bpx-gray-light);
  margin-left: 0;
}

.bpx-contact__methods {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.bpx-contact__method {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  transition: background var(--transition-base);
}

.bpx-contact__method:hover {
  background: rgba(255,255,255,0.03);
}

.bpx-contact__method-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(77, 186, 99, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bpx-green-premium);
  flex-shrink: 0;
}

.bpx-contact__method-label {
  display: block;
  font-size: 11px;
  color: var(--bpx-gray-steel);
  margin-bottom: 2px;
}

.bpx-contact__method-value {
  display: block;
  font-size: var(--text-sm);
  color: var(--bpx-text-light);
  font-weight: 500;
}

.bpx-contact__form-wrapper {
  flex: 1.2;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

/* ─── FOOTER ─── */
.bpx-footer {
  background: var(--bpx-graphite);
  color: var(--bpx-text-light);
  padding: var(--space-2xl) 0 var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.04);
}

.bpx-footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .bpx-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.bpx-footer__brand {
  max-width: 320px;
}

.bpx-footer__description {
  font-size: 13px;
  color: var(--bpx-gray-steel);
  margin-top: var(--space-sm);
  line-height: 1.6;
}

.bpx-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.bpx-footer__link {
  font-size: var(--text-sm);
  color: var(--bpx-gray-light);
  transition: color var(--transition-fast);
}

.bpx-footer__link:hover {
  color: var(--bpx-green-premium);
}

.bpx-footer__lang {
  display: flex;
  gap: var(--space-sm);
}

.bpx-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.04);
  margin-top: var(--space-lg);
}

@media (min-width: 768px) {
  .bpx-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.bpx-footer__copyright,
.bpx-footer__legal {
  font-size: 11px;
  color: var(--bpx-gray-steel);
}

.bpx-footer__legal {
  display: flex;
  gap: var(--space-lg);
}

.bpx-footer__credit {
  font-size: 11px;
  color: var(--bpx-gray-steel);
}

.bpx-footer__credit a {
  color: var(--bpx-gray-steel);
  text-decoration: underline;
  transition: color var(--transition-fast);
}

.bpx-footer__credit a:hover {
  color: var(--bpx-gray-light);
}
