@charset "UTF-8";
/* ============================================================
   UTILITIES — Scroll reveal, SVG defs clip paths,
                single-use helpers
   Source: All 6 HTML prototypes
   DO NOT add anything not present in the HTML source.
============================================================ */

/* ----------------------------------------------------------
   SCROLL REVEAL
---------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Staggering handled by JS IntersectionObserver batching */

/* .reveal--short-d3  { transition-delay: 240ms; } */

/* ----------------------------------------------------------
   SVG DEFS (home page clip path)
---------------------------------------------------------- */
/* .svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
} */

/* ----------------------------------------------------------
   REDUCED MOTION — override reveal
   (also set in base.css on *, but reveal needs its own)
---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ----------------------------------------------------------
   SECTION UTILITIES — Standard layout rhythm
---------------------------------------------------------- */
.section {
  padding: var(--section-v) 0;
  position: relative;
}

.section--bg {
  background: var(--color-bg-base);
}

.section--tight-top {
  padding-top: var(--space-xl);
}

/* .section--no-pad {
  padding: 0;
} */

/* ----------------------------------------------------------
   GRID UTILITIES
---------------------------------------------------------- */
.grid-2col,
.grid-3col,
.grid-4col {
  display: grid;
  gap: var(--space-lg);
}

.grid-2col {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3col {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4col {
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

/* Helper for single centered column */
.justify-center {
  display: flex;
  justify-content: center;
}

.single-col-center > * {
  width: 100%;
}

@media (min-width: 769px) {
  .single-col-center > * {
    max-width: 600px;
  }
}

/* Feature Variant for Places Section */
.grid-feature-left {
  display: grid;
  grid-template-columns: 1.5fr repeat(2, 1fr);
  gap: var(--space-lg);
  align-items: stretch;
}

/* Responsive Grids */
@media (max-width: 1024px) {
  .grid-3col,
  .grid-feature-left {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4col {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2col,
  .grid-feature-left,
  .grid-3col {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  .grid-4col {
    grid-template-columns: 1fr;
  }
}
