/* ==========================================================================
   Why Somerset County — "Set for Fun" landing page
   Loaded after css/styles.css, css/components/page-chrome.css and
   css/components/experience-tiles.css.
   Design reference: WhySomerset_Website_2026_Fun.pdf, page 1
   ========================================================================== */

:root {
  /* What page-chrome.css paints the hero rule, hero title and current
     breadcrumb with. Fun is amber; Life sets green in css/life.css. */
  --ws-section-accent: var(--ws-amber);
  --ws-section-nav: var(--ws-amber);   /* current nav item, on the dark header */
  --ws-cream: #fff8e9;                 /* Set for Fun band */
  --ws-fun-btn: linear-gradient(90deg, #f9ae12 0%, #fff7ea 100%);
}

/* --------------------------------------------------------------------------
   1. Intro
   -------------------------------------------------------------------------- */
.fun-intro { padding: clamp(6px, .76vw, 11px) 0 clamp(30px, 3.61vw, 52px); }
.fun-intro__body {
  margin: clamp(16px, 1.94vw, 28px) 0 0;
  font-size: 1.125rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   2. Cream band — closed at the bottom by the footer's own wave
   -------------------------------------------------------------------------- */
.band--cream .band__inner {
  background: var(--ws-cream);
  /* Bottom padding carries the tiles clear of the footer wave, which pulls
     itself up over the cream by its own height (103px at 1440). */
  padding: clamp(56px, 7.29vw, 105px) 0 clamp(120px, 15.38vw, 221px);
}

/* Mid-page the band closes with its own bottom wave instead of the footer's,
   so there is no overlap to clear and the two ends simply match. */
.band--cream.band--mid .band__inner { padding-bottom: clamp(56px, 7.29vw, 105px); }

/* --------------------------------------------------------------------------
   3. Tile grid — 2 x 2, alternating narrow / wide
   Cards themselves come from components/experience-tiles.css
   -------------------------------------------------------------------------- */
/* Layout lives in components/experience-tiles.css; these are Fun's own
   measurements off its comp — 332 : 687 of the 1019 left after the gap. */
.fun-tiles {
  --tile-gap-x: clamp(14px, 1.56vw, 22px);
  --tile-gap-y: clamp(12px, 1.31vw, 19px);
  --tile-sm: 332;
  --tile-lg: 687;
  --tile-span: 1019;
}

.fun-tiles .exp-card {
  min-height: 0;
  height: clamp(180px, 23.83vw, 343px);
  border-radius: 14px;
}

.fun-tiles .exp-card {
  --card-title-size: clamp(1.125rem, 2.083vw, 1.875rem);
  --card-pill-size:  clamp(.875rem, 1.25vw, 1.125rem);
}
.fun-tiles .exp-card__title { letter-spacing: .01em; }

/* Fun uses an amber pill with dark type instead of the site's teal gradient */
.btn-pill--fun {
  background: var(--ws-fun-btn);
  color: var(--ws-ink);
  padding: .42em 1.5em;
}
a:hover .btn-pill--fun,
a:focus-visible .btn-pill--fun { background: var(--ws-fun-btn); color: var(--ws-ink); }

/* --------------------------------------------------------------------------
   4. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  .fun-tiles .exp-card { height: clamp(190px, 52vw, 260px); }

  .page-hero { min-height: 300px; }
}
