/* Layout — grid, containers, sections */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.container--narrow {
  max-width: 800px;
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

section {
  position: relative;
  overflow: hidden;
}

.section-pad {
  padding-block: clamp(5rem, 10vw, 9rem);
}

.section-pad--sm {
  padding-block: clamp(3rem, 6vw, 5rem);
}

/* ========== HERO ========== */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 100px clamp(1.25rem, 6vw, 4rem) 6rem;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('/assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
  will-change: transform;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(250, 250, 247, 0.55) 0%,
    rgba(250, 250, 247, 0.3) 60%,
    rgba(250, 250, 247, 0.85) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero__ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ========== SERVICES PREVIEW ========== */
.services-preview {
  padding-block: clamp(5rem, 10vw, 9rem);
  background: var(--bg);
}

.services-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 780px;
  margin: 0 auto;
}

/* Desktop: cards get progressively lower z-index / top offset for stacking */
@media (min-width: 1024px) {
  .service-stack-card:nth-child(1) { position: sticky; top: 100px; }
  .service-stack-card:nth-child(2) { position: sticky; top: 116px; }
  .service-stack-card:nth-child(3) { position: sticky; top: 132px; }
  .service-stack-card:nth-child(4) { position: sticky; top: 148px; }
  .service-stack-card:nth-child(5) { position: sticky; top: 164px; }
  .service-stack-card:nth-child(6) { position: sticky; top: 180px; }
}

/* ========== PROCESS SECTION ========== */
.process-section {
  padding-block: clamp(5rem, 10vw, 9rem);
  background: var(--bg-tinted);
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  position: relative;
}

@media (min-width: 768px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .process-grid { grid-template-columns: repeat(4, 1fr); }

  /* Gold connector line between process steps */
  .process-grid::before {
    content: '';
    position: absolute;
    top: 2.5rem;
    left: calc(25% + 1rem);
    right: calc(25% + 1rem);
    height: 1px;
    background: var(--gradient-gold);
    opacity: 0.5;
    z-index: 0;
  }
}

/* ========== SERVICES PAGE ========== */
.service-block {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.service-block + .service-block {
  border-top: 1px solid var(--border);
}

.service-block__inner {
  max-width: 760px;
  margin: 0 auto;
}

.service-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
  padding-left: 0;
}

.service-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.service-bullets li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient-gold);
  margin-top: 0.55rem;
  flex-shrink: 0;
}

/* ========== 404 ========== */
.not-found {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.not-found__number {
  font-family: 'Satoshi', sans-serif;
  font-weight: 900;
  font-size: clamp(6rem, 20vw, 14rem);
  line-height: 0.9;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  letter-spacing: -0.04em;
}
