/* ================================================================
   TROOPAC — sections.css
   Section-specific layout styles — no media queries (see responsive.css)
   Includes:
     6   Section Layout Wrapper
     8   Hero
     9   Carousel
     10  Trust Bar
     11  Product Grid
     12  Feature Grid & Brand CTA
     13  Process Grid
     14  Benefit Grid
     15  CTA Band
     17  Footer
================================================================ */


/* ================================================================
   6. SECTION LAYOUT
================================================================ */

.section {
  padding: 6.2rem 1.8rem;
}

/* Spacing increased by ~24% */
.section__inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Background variants */
.section--white {
  background: var(--color-surface);
}

.section--alt {
  background: var(--color-bg-alt);
}

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

/* Branding section — Deep forest green + dot grid */
.section--branding {
  background: linear-gradient(140deg, var(--color-dark) 0%, #0B2A1C 50%, var(--color-primary) 100%);
  position: relative;
  overflow: hidden;
}

.section--branding::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(250, 246, 238, .045) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
}

.section--branding .section__inner {
  position: relative;
  z-index: 1;
}

/* Section header typography */
.section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3.5vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -.028em;
  line-height: 1.14;
  color: var(--color-text);
  margin-bottom: .65rem;
  /* Increased spacing */
}

.section__title--light {
  color: #fff;
}

/* Light typography for dark background */

.section__subtitle {
  color: var(--color-muted);
  font-size: .98rem;
  max-width: 520px;
  line-height: 1.72;
  margin-bottom: 3.3rem;
  /* Increased spacing by 20% */
}

.section__subtitle--light {
  color: rgba(250, 246, 238, .65);
}

/* Light description for dark background */

.section--branding .eyebrow--light {
  background: rgba(250, 246, 238, .12);
  color: rgba(250, 246, 238, .88);
}


/* ================================================================
   8. HERO  (Light premium B2B catalog — Phase 5)
================================================================ */

.hero {
  min-height: 100vh;
  background: radial-gradient(circle at 80% 20%, #F3ECE0 0%, #FAF6EE 50%, #F7F3E9 100%);
  /* Soft oatmeal & cream gradient */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8.5rem 1.8rem 6rem;
  /* Increased padding by ~20% */
  position: relative;
  overflow: hidden;
}

/* Subtle dot texture on warm off-white */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(26, 51, 38, .04) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* Two-column inner grid (mobile: 1-col; desktop: 2-col via responsive.css) */
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4.2rem;
  /* Increased gap by 20% */
  align-items: center;
}

/* Hero badge pill */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--color-primary-light);
  border: 1px solid var(--color-border);
  padding: .35rem 1rem;
  border-radius: 40px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--color-primary-mid);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  /* Increased margin */
  opacity: 0;
  animation: fade-up .6s ease .3s forwards;
}

/* H1 headline */
.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.09;
  letter-spacing: -.035em;
  color: var(--color-text);
  margin-bottom: 1.7rem;
  /* Increased spacing */
  opacity: 0;
  animation: fade-up .6s ease .55s forwards;
  max-width: 580px;
  text-wrap: balance;
  /* prevent awkward breaks */
}

.hero__title em {
  font-style: normal;
  color: var(--color-primary);
  background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-primary-mid) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Description paragraph */
.hero__description {
  font-size: clamp(.95rem, 1.4vw, 1.08rem);
  color: var(--color-muted);
  max-width: 480px;
  margin-bottom: 2.1rem;
  /* Increased spacing */
  line-height: 1.8;
  opacity: 0;
  animation: fade-up .6s ease .7s forwards;
}

/* Hero CTAs */
.hero__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0;
  opacity: 0;
  animation: fade-up .6s ease .85s forwards;
}

.hero__actions .btn {
  flex: 1;
  justify-content: center;
  padding: 0.75rem 0.5rem;
  font-size: 0.82rem;
}

.btn--outline-dark {
  background: transparent;
  border-color: var(--color-primary-mid);
  color: var(--color-primary-mid);
}

@media (min-width: 480px) {
  .hero__actions {
    gap: 1.2rem;
  }

  .hero__actions .btn {
    flex: none;
    padding: 0.8rem 1.6rem;
    font-size: 0.92rem;
  }
}

.btn--outline-dark:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(26, 51, 38, .06);
}



/* ================================================================
   9. HERO PRODUCT SHOWCASE  (Right column — dynamic carousel)
================================================================ */

.hero__showcase {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  opacity: 0;
  animation: slide-in-right .65s ease .85s forwards;
  width: 100%;
}

.hero__carousel {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  /* Match the square 1024x1024 source images perfectly */
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  border: none;
  overflow: visible;
  margin: 0 auto;
}

/* Background Highlight — Morphing & Shifting Color Blob on Parent */
.hero__carousel::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
  width: 90%;
  height: 90%;
  border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(242, 235, 224, 0.85) 50%, rgba(26, 51, 38, 0.08) 100%);
  z-index: 0;
  pointer-events: none;
  animation: morph-blob 15s linear infinite;
}

@keyframes morph-blob {
  0% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
  }

  50% {
    border-radius: 60% 40% 40% 60% / 60% 60% 40% 40%;
  }

  100% {
    transform: translate(-50%, -50%) scale(1) rotate(360deg);
    border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
  }
}

/* Technical Design Blueprint Ring (Slowly Rotating Concentric Ring) on Parent */
.hero__carousel::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85) rotate(0deg);
  width: 82%;
  height: 82%;
  border-radius: 50%;
  border: 1.5px dashed rgba(26, 51, 38, 0.2);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.5), 0 0 0 7px rgba(26, 51, 38, 0.06);
  z-index: 0;
  pointer-events: none;
  animation: rotate-blueprint 40s linear infinite;
}

@keyframes rotate-blueprint {
  0% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) scale(1) rotate(360deg);
  }
}

.hero__carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
  /* Keep track above parent pseudo-elements */
}

.hero__carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.8s ease-in-out;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__carousel-slide.active {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}

.hero__carousel-slide img {
  max-width: 85%;
  max-height: 85%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 15px 35px rgba(11, 61, 46, 0.14));
  z-index: 1;
  transform: scale(0.96);
  transition: transform 6s ease-out;
}

.hero__carousel-slide.active img {
  transform: scale(1.02);
}

/* Carousel Navigation Arrows */
.hero__carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(242, 235, 224, 0.45);
  /* Soft semi-transparent oatmeal */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(11, 61, 46, 0.08);
  /* Very subtle forest green border */
  color: var(--color-primary-mid);
  /* Theme matching green */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(11, 61, 46, 0.03);
  /* Extremely soft shadow */
  outline: none;
  padding: 0;
}

.hero__carousel-arrow--prev {
  left: -30px;
}

.hero__carousel-arrow--next {
  right: -30px;
}

.hero__carousel-arrow:hover {
  background: var(--color-primary-light);
  /* Mint tint */
  color: var(--color-primary);
  /* Forest green */
  border-color: rgba(11, 61, 46, 0.18);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 8px 24px rgba(11, 61, 46, 0.08);
}

.hero__carousel-arrow:active {
  transform: translateY(-50%) scale(0.96);
}

.hero__carousel-arrow svg {
  transition: transform 0.3s ease;
}

.hero__carousel-arrow--prev:hover svg {
  transform: translateX(-2.5px);
}

.hero__carousel-arrow--next:hover svg {
  transform: translateX(2.5px);
}

/* Adjust arrows positioning for smaller screens so they don't clip off the screen */
@media (max-width: 576px) {
  .hero__carousel-arrow {
    width: 38px;
    height: 38px;
    background: rgba(242, 235, 224, 0.7);
    /* Slightly higher visibility on mobile overlay */
  }

  .hero__carousel-arrow--prev {
    left: 8px;
  }

  .hero__carousel-arrow--next {
    right: 8px;
  }
}


/* ================================================================
   10. TRUST BAR
================================================================ */

.trust-bar {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
  position: relative;
}

.trust-bar::before,
.trust-bar::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.trust-bar::before {
  left: 0;
  background: linear-gradient(to right, var(--color-surface), transparent);
}

.trust-bar::after {
  right: 0;
  background: linear-gradient(to left, var(--color-surface), transparent);
}

.trust-bar__track {
  display: flex;
  align-items: center;
  min-width: max-content;
  padding: .85rem 0;
  animation: marquee 32s linear infinite;
}

.trust-bar__track:hover {
  animation-play-state: paused;
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: 0 2.5rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--color-text-mid);
  white-space: nowrap;
  border-right: 1px solid var(--color-border);
}

.trust-bar__icon {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-bar__icon svg {
  width: 13px;
  height: 13px;
  fill: var(--color-primary-mid);
}


/* ================================================================
   11. PRODUCT GRID
================================================================ */

/* Default: 1-col; expands via responsive.css */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  /* Increased gap by 25% */
}


/* ================================================================
   12. FEATURE GRID & BRAND CTA  (Custom Branding section)
================================================================ */

/* Default: 1-col; expands via responsive.css */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  /* Increased gap by 25% */
  margin-bottom: 3.3rem;
  /* Increased margin by 20% */
}

.brand-cta {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  /* Increased gap */
  align-items: flex-start;
  padding-top: 1.8rem;
  /* Increased padding */
  border-top: 1px solid var(--color-border);
}

.brand-cta p {
  color: var(--color-primary-light);
  font-size: .88rem;
  max-width: 420px;
  line-height: 1.65;
}


/* ================================================================
   13. PROCESS GRID
================================================================ */

/* Default: 1-col; expands via responsive.css */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.4rem;
  /* Increased spacing by 20% */
}


/* ================================================================
   14. BENEFIT GRID
================================================================ */

/* Default: 1-col; expands via responsive.css */
.benefit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  /* Increased gap by 25% */
}


/* ================================================================
   15. CTA BAND
================================================================ */

.cta {
  background: var(--color-primary);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 22px 22px;
}

.cta__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 6rem 1.8rem;
  /* Increased padding by 20% */
  max-width: 680px;
  margin: 0 auto;
}

.cta__inner h2 {
  font-family: var(--font-serif);
  /* Serif header */
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -.028em;
  margin-bottom: .9rem;
  /* Increased spacing */
}

.cta__inner>p {
  color: rgba(255, 255, 255, .75);
  font-size: .98rem;
  margin-bottom: 2.7rem;
  /* Increased margin */
  line-height: 1.72;
}

/* Default: stacked; becomes row via responsive.css */
.cta__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
  /* Increased gap */
}


/* ================================================================
   17. FOOTER
================================================================ */

.footer {
  background: var(--color-dark);
  /* Muted charcoal */
  color: rgba(255, 255, 255, .65);
  padding: 4.8rem 1.8rem 2.4rem;
  /* Increased padding by 20% */
}

/* Default: 1-col; expands via responsive.css */
.footer__grid {
  max-width: 1200px;
  margin: 0 auto 3.3rem;
  /* Increased margin */
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  /* Increased gap */
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .8rem;
}

.footer__logo .nav__logo-img {
  height: 40px;
}

.footer__logo>span {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
  letter-spacing: -.025em;
}

.footer__description {
  font-size: .82rem;
  color: rgba(255, 255, 255, .45);
  max-width: 280px;
  line-height: 1.68;
  margin-bottom: 1.6rem;
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin-bottom: 1.8rem;
}

.footer__contacts a {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: rgba(255, 255, 255, .55);
  text-decoration: none;
  font-size: .81rem;
  transition: color .2s;
}

.footer__contacts a:hover {
  color: #fff;
}

.footer__contacts svg {
  width: 13px;
  height: 13px;
  fill: rgba(255, 255, 255, .35);
  flex-shrink: 0;
}

.footer__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .42rem;
}

.footer__nav h4 {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .28);
  margin-bottom: 1rem;
}

.footer__nav ul {
  list-style: none;
}

.footer__nav li {
  margin-bottom: .5rem;
}

.footer__nav a {
  color: rgba(255, 255, 255, .52);
  text-decoration: none;
  font-size: .81rem;
  transition: color .2s;
}

.footer__nav a:hover {
  color: #fff;
}

.footer__divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, .07);
  max-width: 1200px;
  margin: 0 auto 1.8rem;
}

/* Default: stacked; becomes row via responsive.css */
.footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: .42rem;
}

.footer__bottom p {
  font-size: .72rem;
  color: rgba(255, 255, 255, .28);
}