:root {
  --bg-gray: #e8e8e8;
  --text-dark: #111111;
  --brand-red: #ba231c;
  --brand-red-hover: #9a1d17;
}

body {
  background-color: var(--bg-gray);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--text-dark);
  scroll-behavior: smooth;
}

/* Sticky nav that appears AFTER hero scroll */
#mainNav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    background-color 0.3s ease;
  transform: translateY(-100%);
  background-color: #ffffff;
}

#mainNav.nav-visible {
  transform: translateY(0);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Hero with background image */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url('assets/copacking-bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  color: #ffffff;
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

#hero .container {
  position: relative;
  z-index: 2;
}

.hero-card {
  background-color: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.hero-eyebrow {
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 600;
}

.hero-title {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.hero-lede {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.hero-subtext {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.section-eyebrow {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.process-step-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.process-step-copy {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #333;
}

.badge-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.divider-light {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin: 2.5rem 0;
}

.quote-card {
  background-color: #ffffff;
  border-radius: 24px;
  padding: 2.5rem 2.75rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.10);
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
}

.thank-you {
  text-align: center;
  padding: 3rem 1rem;
}

.thank-you h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.logo-placeholder {
  width: 120px;
  height: 40px;
  background-color: #ccc;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 0.7rem;
}


.navbar-nav .nav-link {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.btn-quote {
  background-color: var(--brand-red);
  color: #ffffff !important;
  border: 1px solid var(--brand-red);
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-quote:hover {
  background-color: var(--brand-red-hover);
  border-color: var(--brand-red-hover);
  color: #ffffff !important;
}

.btn-quote:focus {
  background-color: var(--brand-red-hover);
  border-color: var(--brand-red-hover);
  color: #ffffff !important;
  box-shadow: 0 0 0 0.2rem rgba(186, 35, 28, 0.25);
}

.lg-logo {
  height: 100px;
  width: auto;
  max-width: 360px;
}

.crispy-logo {
  height: 48px;
  width: auto;
  max-width: 150px;
}


@media (min-width: 992px) {
  .navbar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3.5rem;
  }
}



video {
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.10);
}



.footer-mini {
  font-size: 0.8rem;
  color: #666;
  padding: 1.5rem 0;
  text-align: center;
}

@media (max-width: 991.98px) {
  .hero-card {
    padding: 2.25rem 2rem;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .section-padding {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

/* Hero Logo */
.hero-logo {
  position: absolute;
  top: 2rem;
  left: 2rem;
  height: 80px;
  width: auto;
  z-index: 10;
}

@media (max-width: 991.98px) {
  .hero-logo {
    height: 60px;
    top: 1rem;
    left: 1rem;
  }
}

/* Hero Eyebrow */
.hero-eyebrow {
  color: var(--brand-red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: block;
}

/* Hero Buttons */
.btn-hero-primary {
  background-color: #ffffff;
  color: #111111;
  border: none;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.8rem 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-hero-primary:hover {
  background-color: #f0f0f0;
  color: #111111;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-hero-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  font-weight: 600;
  border-radius: 8px;
  padding: 0.8rem 2rem;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-hero-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  color: #ffffff;
}

/* Hero Link with Arrow */
.btn-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: opacity 0.2s ease;
  margin-top: 0.5rem;
  /* Added spacing */
}

.btn-link-arrow:hover {
  color: #ffffff;
  opacity: 0.9;
}

.btn-link-arrow svg {
  fill: var(--brand-red);
  /* Red arrow */
  transition: transform 0.2s ease;
}

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

/* Process Cards */
.process-card {
  background: #ffffff;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.process-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.process-number {
  font-size: 4rem;
  font-weight: 800;
  color: #f0f0f0;
  line-height: 1;
  margin-bottom: 1rem;
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  z-index: 0;
}

.process-image {
  width: 100%;
  height: auto;
  margin-top: 1rem;
  border-radius: 8px;
  position: relative;
  z-index: 1;
}

.process-step-title,
.process-step-copy {
  position: relative;
  z-index: 1;
}

/* Capabilities Section */
.capability-media-wrapper {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.capability-image,
.capability-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Capabilities Section - Bento Layout */
.bento-card {
  background-color: #ffffff;
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.cap-video-vertical {
  width: 100%;
  aspect-ratio: 9/16;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.cap-card-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.section-subtitle {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 1.75rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: #111;
}

.cap-feature-image {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.cap-feature-image:hover {
  transform: scale(1.02);
}

.cap-tall-image {
  min-height: 400px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

@media (max-width: 991.98px) {
  .capability-row {
    flex-direction: column !important;
    text-align: center;
    gap: 2rem;
  }

  .ps-lg-5,
  .pe-lg-5 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .capability-media-wrapper {
    margin-bottom: 1rem;
  }

  .bento-card {
    padding: 2rem;
  }

  .video-grid {
    grid-template-columns: 1fr 1fr;
    /* Keep side-by-side on tablet */
    gap: 1rem;
  }
}

@media (max-width: 576px) {
  .video-grid {
    grid-template-columns: 1fr;
    /* Stack on mobile */
  }

  .cap-card-img {
    height: 240px;
  }
}

/* Stats & Tags */
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--brand-red);
  /* Brand Red */
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #666;
  margin-top: 0.25rem;
}

.feature-tag {
  display: inline-block;
  background-color: #f4f4f4;
  color: #333;
  padding: 0.5rem 1rem;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Repeat & Scale Banner */
.scale-banner {
  background-color: #f8f9fa;
  border-radius: 24px;
  padding: 3rem 2rem;
  border: 1px dashed #ccc;
  position: relative;
  overflow: hidden;
}

.scale-icon {
  font-size: 3rem;
  color: var(--brand-red);
  line-height: 1;
  opacity: 0.2;
}

/* CTA Section */
.cta-section {
  background-color: #111111;
  color: #ffffff;
  position: relative;
}

.btn-cta-glow {
  background-color: var(--brand-red);
  color: #ffffff !important;
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 50px;
  box-shadow: 0 0 20px rgba(186, 35, 28, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cta-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(186, 35, 28, 0.8);
  background-color: #d32f2f;
}