/* ================================================
   PACKTECH — SHARED INNER PAGES CSS
   Covers: solutions, why-packtech, gallery, contact
   ================================================ */

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

body {
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  background: #f3e8d9;
}

/* ── CSS Variables ── */
:root {
  --brown: #6A3520;
  --brown-mid: #8B4513;
  --cream: #F8EDDE;
  --cream-dk: #f0e0c8;
  --dark: #1a0d05;
  --muted: #7a5c44;
  --white: #ffffff;
  --accent: #D4621A;
}

/* ── Shared Page Hero ── */
.page-hero {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 80px;
  color: #fff;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center bottom;
  transform: scale(1.06);
  animation: pageHeroPan 18s infinite alternate ease-in-out;
  will-change: transform;
}

@keyframes pageHeroPan {
  0% {
    transform: scale(1.06) translate(0, 0);
  }

  100% {
    transform: scale(1.12) translate(-1%, -1.5%);
  }
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(26, 13, 5, 0.55) 0%,
      rgba(26, 13, 5, 0.25) 55%,
      rgba(26, 13, 5, 0.50) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 5;
  max-width: 700px;
  padding: 0 30px;
}

.page-eyebrow {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp .7s .2s forwards;
}

.page-hero-title {
  font-family: 'Paytone One', sans-serif;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  line-height: 1;
  color: #1a0d05;
  /* dark brown — readable on white torn paper */
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp .7s .35s forwards;
  padding: 4px 16px;
}

.page-hero-torn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110%;
  /* tighter — just wide enough to frame the title */
  z-index: -1;
  pointer-events: none;
  opacity: 0.96;
}

.page-hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 18px;
  line-height: 1.65;
  opacity: 0;
  animation: fadeUp .7s .5s forwards;
}

/* Divider */
.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 22px auto 0;
  max-width: 400px;
  opacity: 0;
  animation: fadeUp .7s .65s forwards;
}

.hero-divider .dl {
  height: 1px;
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.5);
}

.hero-divider .di {
  color: rgba(255, 255, 255, 0.7);
  font-size: .95rem;
}

/* Smooth bottom edge — simple cream fill, no broken mask */
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--cream);
  clip-path: ellipse(55% 100% at 50% 100%);
  z-index: 6;
}

/* ── Section Shell ── */
.pt-section {
  background: var(--cream);
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}

.pt-section.dark-bg {
  background: var(--brown);
  color: #fff;
}

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

/* ── Section Header ── */
.section-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 12px;
  display: block;
}

.dark-bg .section-eyebrow {
  color: rgba(255, 255, 255, 0.6);
}

.section-title {
  font-family: 'Paytone One', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--dark);
  line-height: 1.05;
  text-transform: uppercase;
}

.dark-bg .section-title {
  color: #fff;
}

.section-lead {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
  margin-top: 14px;
}

.dark-bg .section-lead {
  color: rgba(255, 255, 255, 0.72);
}

/* ── Animations ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.anim-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .8s cubic-bezier(.22, 1, .36, 1), transform .8s cubic-bezier(.22, 1, .36, 1);
}

.anim-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.anim-left {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .9s cubic-bezier(.22, 1, .36, 1), transform .9s cubic-bezier(.22, 1, .36, 1);
}

.anim-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.anim-right {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .9s cubic-bezier(.22, 1, .36, 1), transform .9s cubic-bezier(.22, 1, .36, 1);
}

.anim-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.d1 {
  transition-delay: .1s;
}

.d2 {
  transition-delay: .2s;
}

.d3 {
  transition-delay: .3s;
}

.d4 {
  transition-delay: .4s;
}

.d5 {
  transition-delay: .5s;
}

.d6 {
  transition-delay: .6s;
}

/* ── Scroll-reveal JS helper ── */
/* (Shared JS observer in pages.js handles .anim-up/.anim-left/.anim-right) */

/* ── Responsive ── */
@media (max-width: 900px) {
  .pt-container {
    padding: 0 24px;
  }

  .pt-section {
    padding: 70px 0;
  }

  .page-hero {
    height: 55vh;
  }
}

@media (max-width: 600px) {
  .page-hero {
    height: 50vh;
  }

  .pt-section {
    padding: 55px 0;
  }

  .pt-container {
    padding: 0 18px;
  }

  .page-hero::after {
    height: 38px;
  }
}