/* ================================================================
   TROOPAC — components.css
   Reusable UI components — no media queries (see responsive.css)
   Includes:
     5.1  Button
     5.2  Eyebrow Label
     5.3  Chip
     5.4  Pulse Dot
     5.5  Logo Accent
     7    Navigation
     11   Product Card
     12   Feature Card
     13   Process Step
     14   Benefit Card
     16   WhatsApp FAB
================================================================ */


/* ================================================================
   5.1 BUTTON
================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .95rem 1.95rem; /* Spacing increased by ~20% */
  border-radius: var(--radius-full);
  font-size: .92rem;
  font-weight: 700;
  font-family: var(--font-heading);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background .2s, border-color .2s, box-shadow .2s, transform .2s;
}

.btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Modifier — WhatsApp */
.btn--wa {
  background: var(--color-wa);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(26, 51, 38, .15);
}

.btn--wa:hover {
  background: var(--color-primary-mid);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(26, 51, 38, .25);
}

/* Modifier — Ghost (for dark backgrounds) */
.btn--ghost {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 255, 255, .22);
  color: #fff;
  font-weight: 600;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .42);
}

/* Modifier — Outline (for dark backgrounds) */
.btn--outline {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
  font-weight: 600;
}

.btn--outline:hover {
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .5);
}

/* Modifier — Primary filled (for light backgrounds) */
.btn--primary {
  background: var(--color-primary);
  color: #fff;
  border-color: transparent;
}

.btn--primary:hover {
  background: var(--color-primary-mid);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(26, 51, 38, .25);
}


/* ================================================================
   5.2 EYEBROW LABEL
================================================================ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-primary-mid);
  background: var(--color-primary-light);
  padding: .28rem .85rem;
  border-radius: 40px;
  margin-bottom: .9rem;
}

/* Modifier — on dark backgrounds */
.eyebrow--light {
  background: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .88);
}


/* ================================================================
   5.3 CHIP
================================================================ */

.chip {
  font-size: .67rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .55);
  border: 1px solid rgba(255, 255, 255, .1);
}


/* ================================================================
   5.4 PULSE DOT
================================================================ */

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
  animation: anim-pulse 2s ease-in-out infinite;
}




/* ================================================================
   7. NAVIGATION
================================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px; /* Increased by ~15-20% for breathing room */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.4rem; /* Increased padding */
  background: rgba(250, 246, 238, 0.9); /* Oatmeal/cream glassmorphism */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  transition: background-color .3s, box-shadow .3s, border-color .3s;
}

.nav.is-scrolled {
  box-shadow: 0 4px 20px rgba(28, 32, 29, .06);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
}

.nav__logo-img {
  height: 38px;
  width: auto;
  display: block;
}

.nav__logo-img--drawer {
  height: 32px;
}

.nav__logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--color-text); /* Muted charcoal */
  letter-spacing: -.03em;
}

.nav__links {
  display: none;
  list-style: none;
  gap: 2.4rem; /* Increased gap */
}

.nav__link {
  color: var(--color-text-mid); /* Legible charcoal */
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .01em;
  transition: color .2s;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}

.nav__link:hover {
  color: var(--color-primary);
}

.nav__link:hover::after {
  transform: scaleX(1);
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: .45rem;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  padding: .5rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: .85rem;
  font-weight: 700;
  font-family: var(--font-heading);
  white-space: nowrap;
  transition: all .2s;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 14px rgba(11, 61, 46, .28);
}

.nav__cta:hover {
  background: var(--color-primary-mid);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(11, 61, 46, .35);
}

.nav__cta svg {
  width: 15px;
  height: 15px;
  fill: #fff;
  flex-shrink: 0;
}

/* ── Nav right cluster (CTA + hamburger) ── */

.nav__right {
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* ── Hamburger button (mobile only — shown via responsive.css) ── */

.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: .4rem;
  border-radius: var(--radius-sm);
  transition: background .2s;
}

.nav__hamburger:hover {
  background: var(--color-primary-light);
}

.nav__hamburger-bar {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform .3s cubic-bezier(.4, 0, .2, 1), opacity .3s;
  transform-origin: center;
}

/* Morphs into ✕ when open */
.nav.is-open .nav__hamburger-bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav.is-open .nav__hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav.is-open .nav__hamburger-bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Mobile nav drawer ── */

.nav__drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  width: min(320px, 85vw);
  background: var(--color-bg);
  border-left: 1px solid var(--color-border);
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  flex-direction: column;
  padding-bottom: 2.4rem; /* Increased padding */
}

.nav__drawer.is-open {
  transform: translateX(0);
}

.nav__drawer-header {
  height: 72px; /* Matched nav height */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.8rem;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.nav__drawer-brand {
  display: flex;
  align-items: center;
}

.nav__drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-text-mid);
  padding: .35rem;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
}

.nav__drawer-close:hover {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.nav__drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  padding: .5rem 0;
  flex: 1;
  overflow-y: auto;
}

.nav__drawer-link {
  display: block;
  color: var(--color-text-mid);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-heading);
  padding: 1.1rem 1.8rem; /* Increased padding by ~20% */
  border-bottom: 1px solid var(--color-border);
  transition: color .2s, background .2s, padding-left .2s;
}

.nav__drawer-link:hover {
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding-left: 2.2rem;
}

.nav__drawer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  font-size: .875rem;
  font-weight: 700;
  font-family: var(--font-heading);
  padding: 1rem 1.8rem; /* Increased padding by ~20% */
  margin: 1.5rem 1.8rem 0;
  border-radius: var(--radius-full);
  transition: background .2s, transform .2s;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(26, 51, 38, .15);
}

.nav__drawer-cta:hover {
  background: var(--color-primary-mid);
  transform: translateY(-1px);
}

/* ── Nav overlay (page dimmer) ── */

.nav__overlay {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(28, 32, 29, .4); /* Muted overlay */
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s;
}

.nav__overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ── Light variant (for product pages) ── */

.nav--light {
  position: sticky;
  background: rgba(250, 246, 238, 0.95);
  box-shadow: none;
  border-bottom: 1px solid var(--color-border);
}

.nav--light .nav__logo-text {
  color: var(--color-text);
}

.nav--light .nav__link {
  color: var(--color-text-mid);
}

.nav--light .nav__link:hover {
  color: var(--color-primary);
}

.nav--light .nav__link::after {
  background: var(--color-primary);
}

.nav--light .nav__hamburger-bar {
  background: var(--color-text);
}

.nav--light .nav__hamburger:hover {
  background: var(--color-primary-light);
}

.nav--light .nav__drawer {
  background: var(--color-bg);
  border-left: 1px solid var(--color-border);
}

.nav--light .nav__drawer-header {
  border-bottom: 1px solid var(--color-border);
}

.nav--light .nav__drawer-link {
  color: var(--color-text-mid);
  border-bottom: 1px solid var(--color-border);
}

.nav--light .nav__drawer-link:hover {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.nav--light .nav__drawer-close {
  color: var(--color-text-mid);
}

.nav--light .nav__drawer-close:hover {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.nav--light .nav__overlay {
  background: rgba(28, 32, 29, .3);
}


/* ================================================================
   11. PRODUCT CARD
================================================================ */

.product-card {
  position: relative;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .25s, box-shadow .25s, transform .25s;
  cursor: pointer;
}

.product-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--color-primary-mid);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 5;
}

.product-card:hover::before {
  transform: scaleY(1);
  transform-origin: top;
}

.product-card:hover {
  border-color: var(--color-primary-mid);
  box-shadow: var(--shadow-sm);
  transform: translateY(-4px); /* Slightly increased lift for premium feel */
}

/* ── Thumbnail area ── */

.product-card__thumbnail {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background .25s;
}

/* Per-category thumbnail backgrounds */
.product-card__thumbnail--paper {
  background: linear-gradient(145deg, #EEF6F1 0%, #D9EDE0 100%);
}

.product-card__thumbnail--kraft {
  background: linear-gradient(145deg, #F8F0E4 0%, #EEE0C4 100%);
}

.product-card__thumbnail--eco {
  background: linear-gradient(145deg, #E8F4E8 0%, #C8E6C9 100%);
}

.product-card__thumbnail--neutral {
  background: linear-gradient(145deg, #F3F4F6 0%, #E5E7EB 100%);
}

.product-card:hover .product-card__thumbnail--paper {
  background: linear-gradient(145deg, #D9EDE0 0%, #C5E3CE 100%);
}

.product-card:hover .product-card__thumbnail--kraft {
  background: linear-gradient(145deg, #EEE0C4 0%, #E4D0AA 100%);
}

.product-card:hover .product-card__thumbnail--eco {
  background: linear-gradient(145deg, #C8E6C9 0%, #A5D6A7 100%);
}

.product-card:hover .product-card__thumbnail--neutral {
  background: linear-gradient(145deg, #E5E7EB 0%, #D1D5DB 100%);
}

.product-card__icon {
  font-size: 3rem;
  color: var(--color-primary-mid);
  opacity: .7;
  transition: opacity .25s, transform .25s;
}

.product-card:hover .product-card__icon {
  opacity: 1;
  transform: scale(1.08);
}

/* Image thumbnail styling for premium B2B catalog product cards */
.product-card__thumbnail-img-container {
  height: 200px;
  width: 100%;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}

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

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



/* ── Card body ── */

.product-card__body {
  padding: 1.35rem 1.2rem; /* Increased padding by ~20% */
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .42rem; /* Increased gap */
}

.product-card__title {
  font-family: var(--font-heading);
  font-size: .875rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

.product-card__desc {
  font-size: .72rem;
  color: var(--color-muted);
  line-height: 1.45;
  flex: 1;
}




/* ================================================================
   12. FEATURE CARD  (Custom Branding section)
================================================================ */

.feature-card {
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-md);
  padding: 1.7rem 1.5rem; /* Increased padding by ~20% */
  transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
}

.feature-card:hover {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 255, 255, .2);
  transform: translateY(-3px);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: .95rem; /* Spacing increased */
  border: 1px solid rgba(255, 255, 255, .12);
  transition: all .3s ease;
}

.feature-card:hover .feature-card__icon {
  background: var(--color-primary-light);
  color: var(--color-primary);
  transform: scale(1.08);
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: .88rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .35rem;
}

.feature-card p {
  font-size: .78rem;
  color: rgba(255, 255, 255, .65);
  line-height: 1.55;
}


/* ================================================================
   13. PROCESS STEP
================================================================ */

.process-step {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.5rem;
  position: relative;
}

.process-step__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.process-step__number {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(11, 61, 46, .35);
  z-index: 2;
}

.process-step__connector {
  display: block;
  position: absolute;
  top: 30px; /* Runs behind the current step's number */
  bottom: calc(-2.4rem - 12px); /* Extends behind the next step's number */
  width: 2px;
  background: var(--color-border);
  left: 21px; /* Horizontally centered with the 42px number circle */
  transform: translateX(-50%);
  z-index: 1;
}

.process-step:last-child .process-step__connector {
  display: none;
}

.process-step__content {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding-top: 9px;
}

.process-step h3 {
  font-family: var(--font-heading);
  font-size: .92rem;
  font-weight: 700;
  color: var(--color-text);
}

.process-step p {
  font-size: .81rem;
  color: var(--color-muted);
  line-height: 1.62;
}


/* ================================================================
   14. BENEFIT CARD
================================================================ */

.benefit-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.7rem 1.5rem; /* Increased padding by ~20% */
  display: flex;
  align-items: flex-start;
  gap: 1.2rem; /* Increased gap */
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.benefit-card:hover {
  border-color: var(--color-primary-mid);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.benefit-card__icon {
  width: 48px; /* Increased from 44px */
  height: 48px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: all .3s ease;
}

.benefit-card:hover .benefit-card__icon {
  background: var(--color-primary);
  color: #fff;
  transform: scale(1.08);
}

.benefit-card__body {
  flex: 1;
}

.benefit-card__body h3 {
  font-family: var(--font-heading);
  font-size: .875rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: .35rem; /* Increased spacing */
}

.benefit-card__body p {
  font-size: .79rem;
  color: var(--color-muted);
  line-height: 1.6;
}


/* ================================================================
   16. WHATSAPP FAB  (Floating Action Button)
================================================================ */

.fab-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--color-wa);
  color: #fff;
  text-decoration: none;
  padding: .72rem 1.2rem;
  border-radius: 40px;
  font-size: .875rem;
  font-weight: 700;
  font-family: var(--font-heading);
  box-shadow: 0 6px 28px rgba(26, 51, 38, .15);
  transition: all .2s;
  animation: pop-up .55s cubic-bezier(.34, 1.56, .64, 1) 2s both;
}

.fab-whatsapp:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 36px rgba(26, 51, 38, .25);
}

.fab-whatsapp svg {
  width: 19px;
  height: 19px;
  fill: #fff;
}


/* ================================================================
   17. MOBILE CTA BAR  (bottom fixed bar — mobile only)
================================================================ */

.mobile-cta-bar {
  display: none;
  /* shown via responsive.css on mobile */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: .35rem 1rem;
  gap: .625rem;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, .1);
}

.mobile-cta-bar__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  padding: .45rem .9rem;
  border-radius: var(--radius-full);
  font-size: .8rem;
  font-weight: 700;
  font-family: var(--font-heading);
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
  line-height: 1.2;
}

.mobile-cta-bar__btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.mobile-cta-bar__btn--secondary {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border: 1.5px solid var(--color-border);
}

.mobile-cta-bar__btn--secondary:hover {
  background: var(--color-bg-alt);
}

.mobile-cta-bar__btn--primary {
  background: var(--color-wa);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 211, 102, .35);
}

.mobile-cta-bar__btn--primary:hover {
  background: #1db954;
  transform: translateY(-1px);
}