/* ==========================================================================
   VR Celebrations — Layout
   File: assets/css/layout.css
   Containers, sections, grids used across all pages.
   ========================================================================== */

/* Offset for fixed header — robust CSS rule beats inline style */
#main-content {
  padding-top: var(--header-height, 76px);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-gutter);
}

.container--wide   { max-width: var(--container-wide); }
.container--narrow { max-width: var(--container-narrow); }

.section {
  padding-block: var(--section-padding-y);
}

/* Slim section — strips that sit close to their neighbours (stats bar) */
.section--compact {
  padding-block: clamp(0.5rem, 0.4rem + 0.4vw, 0.75rem);
}

.section--tint {
  background: var(--color-surface-tint);
}

.section--blush {
  background: var(--gradient-blush);
}

/* Page content sits below the fixed header */
.page-main {
  padding-top: var(--header-height);
}

/* --------------------------------------------------------------------
   Grids
   -------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: var(--space-md);
}

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

/* Auto-fit grid for card collections */
.grid--cards {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* --------------------------------------------------------------------
   Flex helpers
   -------------------------------------------------------------------- */

.flex          { display: flex; }
.flex-center   { display: flex; align-items: center; justify-content: center; }
.flex-between  { display: flex; align-items: center; justify-content: space-between; }
.flex-column   { display: flex; flex-direction: column; }
.flex-wrap     { flex-wrap: wrap; }

.gap-2xs { gap: var(--space-2xs); }
.gap-xs  { gap: var(--space-xs); }
.gap-sm  { gap: var(--space-sm); }
.gap-md  { gap: var(--space-md); }
.gap-lg  { gap: var(--space-lg); }

/* --------------------------------------------------------------------
   Hero layout (two-column: copy + media)
   -------------------------------------------------------------------- */

.hero-section {
  position: relative;
  /* tighter bottom padding pulls the next section up to the hero */
  padding-block: clamp(1.5rem, 1rem + 2vw, 3rem) clamp(0.75rem, 0.6rem + 0.6vw, 1rem);
  overflow: hidden;
}

.hero-section__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(2rem, 1rem + 3vw, 4rem);
}

.hero-section__copy {
  max-width: 34rem;
}

.hero-section__title {
  margin-bottom: var(--space-sm);
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  line-height: var(--lh-tight);
}

.hero-section__title .display-script {
  display: block;
  font-size: var(--fs-hero-script);
}

.hero-section__lead {
  margin-bottom: var(--space-md);
  color: var(--color-text-secondary);
  font-size: var(--fs-md);
  max-width: 30rem;
}

.hero-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.hero-section__media {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 10;
}

/* Soft decorative glow behind the hero */
.hero-section::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 46rem;
  height: 46rem;
  background: radial-gradient(circle, rgba(233, 30, 140, 0.10) 0%, rgba(233, 30, 140, 0) 65%);
  pointer-events: none;
}

/* --------------------------------------------------------------------
   Stats strip
   -------------------------------------------------------------------- */

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  justify-content: center;
}

.stat-item__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
}

.stat-item__value {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--color-text);
}

.stat-item__label {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------
   Occasion grid ("What are you celebrating?")
   -------------------------------------------------------------------- */

.occasion-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: var(--space-sm);
}

/* Grid alignment helper */
.grid--align-center {
  align-items: center;
}

/* Stats strip 3-column variant (About page) */
.stats-strip--3 {
  grid-template-columns: repeat(3, 1fr);
}

/* About page portrait media */
.about-media {
  aspect-ratio: 4 / 5;
  max-height: 560px;
}

/* Lead subtitle under page titles */
.section-subtitle {
  font-size: var(--fs-base);
}

/* --------------------------------------------------------------------
   CTA banner (gradient strip with button)
   -------------------------------------------------------------------- */

.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--gradient-blush);
  border-radius: var(--radius-lg);
}

.cta-banner__title {
  margin-bottom: var(--space-3xs);
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
}

.cta-banner__text {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}
