/* ============================================================
   SECTIONS.CSS — Sticky-stacking sections, hero, sobre, features
   (horizontal scroll), stats (different sizes), testimonials,
   CTA + waitlist, dark gray footer.
   ============================================================ */

/* ============================================================
   STICKY STACKING WRAPPER
   Each section is wrapped in .pin-wrap (relative, 100vh tall)
   and the section itself is sticky inside it. Z-index increases
   per section so later sections slide visually OVER earlier ones.
   ============================================================ */

.pin-wrap {
  position: relative;
  min-height: 100vh;
}

.pin-section {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-white);
}

/* z-index ladder so later sections cover earlier ones */
.pin-wrap[data-section-index="1"] .pin-section { z-index: 1; }
.pin-wrap[data-section-index="2"] .pin-section { z-index: 2; }
.pin-wrap[data-section-index="3"] .pin-section { z-index: 3; }
.pin-wrap[data-section-index="4"] .pin-section { z-index: 4; }
.pin-wrap[data-section-index="5"] .pin-section { z-index: 5; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--color-primary);
  color: var(--color-white);
  align-items: stretch; /* override pin-section center so columns fill full height */
  height: 100vh;
}

.hero-grid {
  width: 100%;
  height: 100%;
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); /* 0 min prevents word-size blowout */
  align-items: stretch;
  position: relative;
  z-index: 2;
}

.hero-text {
  min-width: 0; /* prevent grid column from expanding beyond 50% due to word size */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--navbar-height) + 60px) 60px 80px
           clamp(32px, calc((100vw - var(--max-width)) / 2 + 60px), 120px);
}

.hero-icon-sep {
  width: auto;
  height: clamp(18px, 2.4vw, 31px);
  margin: 22px 0 6px;
  opacity: 0.88;
  flex-shrink: 0;
  align-self: flex-start;
}

.hero-text h1 {
  color: var(--color-white);
  font-size: clamp(36px, 4.8vw, 62px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.035em;
  max-width: 640px;
  overflow-wrap: break-word;
}

.hero-sub {
  margin-top: 28px;
  font-size: 19px;
  color: rgba(255, 255, 255, 0.92);
  max-width: 500px;
  line-height: 1.55;
}

.hero-ctas {
  margin-top: 38px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  top: var(--navbar-height); /* image starts exactly below the navbar */
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: calc(100% - var(--navbar-height));
  object-fit: cover;
  object-position: left center;
  display: block;
}

.image-placeholder--hero {
  position: absolute;
  top: var(--navbar-height);
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px dashed rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}
.image-placeholder--hero small {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  opacity: .75;
  text-transform: none;
  letter-spacing: 0;
}

/* Decorative arcs */
.hero-arc {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.55);
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}
.hero-arc--top {
  right: -60px;
  top: 80px;
  width: 480px;
  height: 480px;
  border-radius: 240px 0 0 0;
  opacity: 0.55;
}
.hero-arc--bottom {
  left: -40px;
  bottom: -80px;
  width: 220px;
  height: 220px;
  border-radius: 0 110px 0 0;
  opacity: 0.4;
}

.scroll-indicator {
  position: absolute;
  left: 50vw;    /* always at exact viewport midpoint */
  bottom: 36px;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  z-index: 3;
  animation: scrollBounce 2.2s ease-in-out infinite;
}
.scroll-indicator svg { width: 20px; height: 20px; }

@keyframes scrollBounce {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 8px); }
}

/* ============================================================
   SOBRE  (text left, image right, airy spacing)
   ============================================================ */
.sobre {
  background: var(--color-white);
  align-items: stretch;
  height: 100vh;
}

.sobre-grid {
  width: 100%;
  height: 100%;
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
}

.sobre-text {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--navbar-height) + 60px) 60px 80px
           clamp(32px, calc((100vw - var(--max-width)) / 2 + 60px), 120px);
}

.sobre-text .eyebrow {
  font-size: 13px;
  margin-bottom: 28px;
}

.sobre-text h2 {
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-dark);
}

.sobre-text .lead {
  margin-top: 28px;
  font-size: 17px;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 420px;
}

.sobre-image {
  position: relative;
  overflow: hidden;
}

.sobre-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.image-placeholder--sobre {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--color-cream-2);
}
.image-placeholder--sobre small {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  opacity: .65;
  text-transform: none;
  letter-spacing: 0;
}

/* ============================================================
   FEATURES — full-bleed photo background + white panel slides
   in from the right on scroll (pinned via GSAP in scroll.js).
   ============================================================ */
.features {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: var(--color-dark);
}

/* Background photo (stays fixed; gets covered by panel) */
.features-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.features-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-placeholder--features {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border-radius: 0;
  background: #2A2A2A;
  color: rgba(255, 255, 255, 0.65);
  border: 0;
  text-align: center;
  font-size: 14px;
}
.image-placeholder--features small {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  opacity: .65;
  text-transform: none;
  letter-spacing: 0;
}

/* White panel — slides in from right covering image (animated by GSAP) */
.features-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background: var(--color-white);
  will-change: transform;
  z-index: 2;
  display: flex;
  align-items: flex-start; /* padding controls spacing; no double vertical centering */
  overflow: hidden;
}

.features-panel-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: calc(var(--navbar-height) + 40px) clamp(40px, 6vw, 100px) 60px;
}

.features-header {
  margin-bottom: 24px;
  max-width: 720px;
}

.features-header .eyebrow {
  margin-bottom: 18px;
}

.features-header h2 {
  font-size: clamp(32px, 3.6vw, 52px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--color-dark);
  letter-spacing: -0.02em;
}

.features-header .lead {
  margin-top: 20px;
  font-size: 16px;
  max-width: 560px;
  color: var(--color-text-muted);
}

/* 2x3 grid of numbered items */
.features-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 48px;
}

.feature-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.feature-item .num {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 700;
  line-height: 0.85;
  color: var(--color-primary);
  letter-spacing: -0.04em;
  min-width: 36px;
}

.feature-item .feature-body {
  flex: 1;
  padding-top: 8px;
}

.feature-item h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
  font-family: var(--font-display);
}

.feature-item p {
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.55;
}

/* ============================================================
   STATS — different card sizes
   ============================================================ */
.stats {
  background: var(--color-cream);
  padding: 80px 0;
}

.stats .container {
  padding-top: var(--navbar-height);
  width: 100%;
}

.stats h2 {
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 700;
  color: var(--color-dark);
  max-width: 720px;
}

.stats .lead {
  margin-top: 16px;
  margin-bottom: 56px;
}

/* asymmetric grid: largest left → smallest right */
.stats-grid {
  display: grid;
  grid-template-columns: 1.7fr 1.3fr 1fr 0.8fr;
  gap: 18px;
  align-items: stretch;
}

.stat-card {
  position: relative;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: background 1s ease, color 1s ease;
}

.stat-card--xl { min-height: 460px; padding: 48px 40px; }
.stat-card--lg { min-height: 400px; padding: 42px 32px; }
.stat-card--md { min-height: 340px; padding: 36px 28px; }
.stat-card--sm { min-height: 280px; padding: 30px 22px; }

.stat-big {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  font-size: clamp(48px, 5vw, 80px); /* uniform across all card sizes */
}

.stat-label {
  font-size: 15px;
  font-weight: 500;
  margin-top: 14px;
  max-width: 180px;
  color: rgba(255, 255, 255, 0.92);
}

.stat-arc {
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 60%;
  max-width: 220px;
  height: auto;
  pointer-events: none;
}
.stat-arc path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.45);
  stroke-width: 2;
}

.arc-draw {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  transition: stroke-dashoffset 1.6s ease;
}
.arc-draw--2 {
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
  transition: stroke-dashoffset 1.6s ease 0.3s;
}
.stat-card.is-in .arc-draw,
.stat-card.is-in .arc-draw--2 {
  stroke-dashoffset: 0;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  background: var(--color-cream);
  padding: 80px 0;
}
.testimonials .container { padding-top: var(--navbar-height); }

.testimonials-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
  gap: 20px;
}
.testimonials h2 {
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 700;
  color: var(--color-dark);
}

.smile {
  font-size: 40px;
  color: var(--color-primary);
  line-height: 1;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.testimonial {
  background: var(--color-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.testimonial .quote {
  font-size: 18px;
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: 24px;
}

.testimonial .author {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 15px;
}

.testimonial .author .role {
  color: var(--color-text-muted);
  font-weight: 500;
}

.testimonial--highlight {
  background: var(--color-dark);
}

.testimonial--highlight .quote--highlight {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.3;
  margin-bottom: 0;
}

/* ============================================================
   CTA + WAITLIST
   ============================================================ */
.cta {
  background: var(--color-white);
  padding: 80px 0;
}

.cta .container { padding-top: var(--navbar-height); }

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.cta-text h2 {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 700;
  color: var(--color-dark);
  letter-spacing: -0.025em;
  line-height: 1.02;
}

.cta-text p {
  margin-top: 22px;
  font-size: 18px;
  color: var(--color-text-muted);
}

.waitlist-form {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
  max-width: 480px;
}
.waitlist-form input {
  flex: 1;
  min-width: 220px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text);
  font-size: 15px;
}
.waitlist-form input:focus {
  outline: 3px solid rgba(212, 101, 9, 0.25);
  border-color: var(--color-primary);
}
.waitlist-form button { padding: 14px 28px; }

.waitlist-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.cta-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.cta-card {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.cta-card h4 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: inherit;
}
.cta-card p { color: rgba(255, 255, 255, 0.9); font-size: 15px; }

.cta-card--alt {
  background: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-cream-2);
  text-align: center;
  justify-content: center;
  align-items: center;
}
.cta-card--alt p { color: var(--color-text-muted); }

/* ============================================================
   FOOTER  (dark gray, not navy)
   ============================================================ */
.footer {
  position: relative;
  background: var(--color-dark);
  color: var(--color-white);
  padding: 80px 0 30px;
  overflow: hidden;
}

.footer-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(212, 101, 9, 0.10), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(212, 101, 9, 0.06), transparent 50%),
    linear-gradient(180deg, var(--color-dark-2) 0%, var(--color-dark) 100%);
  will-change: transform;
}

.footer-inner {
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer-logo {
  height: 36px;
  width: auto;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 16px;
  font-size: 14px;
  white-space: nowrap;
}

.footer h5 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 10px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
}
.footer-col ul li a:hover { color: var(--color-primary-soft); }

.socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.socials a span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  transition: background .2s ease;
}
.socials a:hover span { background: var(--color-primary); }

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 50px;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

/* ============================================================
   RESPONSIVE — basic mobile (polish later)
   ============================================================ */
@media (max-width: 900px) {
  .pin-wrap { min-height: auto; }
  .pin-section {
    position: relative;
    min-height: auto;
    padding: 100px 0 60px;
  }

  .hero-grid,
  .sobre-grid,
  .cta-grid,
  .cta-cards { grid-template-columns: 1fr; gap: 40px; }
  .hero-image, .sobre-image { height: 50vh; max-height: 420px; }
  .scroll-indicator { display: none; }

  .features { height: auto; }
  .features-bg { position: relative; height: 40vh; }
  .features-panel {
    position: relative;
    transform: none !important;
    padding: 40px 0;
  }
  .features-items { grid-template-columns: 1fr; gap: 32px; }
  .features-header { margin-bottom: 40px; }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-card--xl, .stat-card--lg, .stat-card--md, .stat-card--sm {
    min-height: 240px;
    padding: 28px 22px;
  }

  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .stats-grid,
  .footer-grid { grid-template-columns: 1fr; }
}
