/* ============================================
   SUMMER CAMP FOR YOUR TEAM (/summer-camp)
   Borrows The Reunion's "Stripes" look (thereunion.camp): burnt orange,
   marigold, avocado and lake blue on cream, Caprasimo headings, the
   highlight reel in a tilted polaroid, a rotating photo mosaic, and fans
   of polaroids.
   The stripes palette has its own names so the Refresh brand variables
   (--cream, --gold, ...) stay intact for the shared contact modal.
   ============================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Stripes */
  --sand: #FBF1DC;
  --paper: #FFF9EC;
  --orange: #C4551F;
  --marigold: #E6A41C;
  --avocado: #5B6B2D;
  --avocado-deep: #3D4A1F;
  --lake: #2E6B7B;
  --bark: #3A2314;
  --band: linear-gradient(to bottom, var(--orange) 0 25%, var(--marigold) 25% 50%, var(--avocado) 50% 75%, var(--lake) 75%);
  --ring: 13px;
  --nav-h: 76px;

  /* Refresh brand, for the contact modal */
  --dark-teal: #1A4146;
  --teal: #297272;
  --cream: #E8E0C8;
  --off-white: #F5F1E8;
  --light-cream: #FAF8F2;
  --gold: #D3A446;
  --amber: #B66D2F;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  overflow-x: clip;
  background: var(--sand);
  color: var(--bark);
  font-family: 'Karla', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.sc-title,
.hero-name,
.section-title,
.forward-group h3,
.step h3 {
  font-family: 'Caprasimo', Georgia, serif;
  font-weight: 400;
}

.section-title {
  font-size: clamp(2rem, min(9.6vw, 1.6rem + 3.6vw), 4.5rem);
  line-height: 1.02;
  color: var(--orange);
  margin-bottom: 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: 99px;
  background: var(--orange);
  color: var(--paper);
  font-weight: 800;
  font-size: 1.125rem;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--bark);
}

/* --- Nav --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--sand);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1180px;
  min-height: var(--nav-h);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--bark);
  text-decoration: none;
  font-family: 'Caprasimo', Georgia, serif;
  font-size: 1.25rem;
  line-height: 1;
  white-space: nowrap;
}

.nav-logo img {
  width: 40px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 800;
  font-size: 0.95rem;
}

.nav-links a {
  color: inherit;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--orange);
}

.nav-cta a {
  display: block;
  padding: 8px 18px;
  border-radius: 99px;
  background: var(--orange);
  color: var(--paper);
  white-space: nowrap;
}

.nav-cta a:hover {
  background: var(--bark);
  color: var(--paper);
}

/* --- Hero: the highlight reel in a tilted polaroid, above the river --- */
.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: end;
  gap: 0 64px;
  padding: 48px max(24px, calc((100% - 1180px) / 2)) 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  padding-bottom: 72px;
}

.hero-eyebrow {
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lake);
  margin-bottom: 14px;
}

.hero-name {
  font-size: clamp(2.75rem, 1rem + 5.4vw, 6rem);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--orange);
  text-shadow:
    3px 3px 0 var(--sand),
    6px 6px 0 var(--marigold);
  margin-bottom: 28px;
}

.hero-name span {
  display: block;
}

.hero-tag {
  font-family: 'Caprasimo', Georgia, serif;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  line-height: 1.2;
  color: var(--avocado);
  margin-bottom: 14px;
}

.hero-lead {
  max-width: 34em;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.2rem);
  font-weight: 600;
  margin-bottom: 28px;
}

.hero-media {
  /* Frame width; the video window inside is 4:3, captioned in the deeper bottom border. */
  --pw: clamp(340px, 40vw, 520px);
  --pad: calc(var(--pw) * 0.045);
  --chin: calc(var(--pw) * 0.2);
  position: relative;
  z-index: 2;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: center;
  width: var(--pw);
  margin: 8px 0 72px;
  padding: var(--pad) var(--pad) 0;
  background: #FFFDF8;
  transform: rotate(2.5deg);
  box-shadow:
    0 2px 6px rgba(58, 35, 20, 0.18),
    0 14px 34px rgba(58, 35, 20, 0.26);
}

.hero-media video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--bark);
}

.hero-media figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--chin);
}

.hero-media figcaption img {
  width: 62%;
  height: auto;
}

/* Sound toggle in the bottom corner of the video window (above the chin). */
.hero-sound {
  position: absolute;
  right: calc(var(--pad) + 10px);
  bottom: calc(var(--chin) + 10px);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px 9px 12px;
  border: 0;
  border-radius: 99px;
  background: rgba(58, 35, 20, 0.62);
  color: var(--paper);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero-sound:hover {
  background: rgba(58, 35, 20, 0.82);
}

.hero-sound:active {
  transform: scale(0.95);
}

.hero-sound:focus-visible {
  outline: 2px solid var(--marigold);
  outline-offset: 2px;
}

.hero-sound svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.hero-sound .icon-on,
.hero-sound.is-on .icon-off,
.hero-sound.is-on .hero-sound-label {
  display: none;
}

.hero-sound.is-on .icon-on {
  display: block;
}

.hero-sound.is-on {
  padding: 9px;
}

/* The river: pines on the far bank of a blue bar edged in gold. */
.hero-river {
  --river-h: 55px;
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  grid-row: 2;
  height: calc(var(--river-h) + var(--ring));
  margin: 0 calc(-1 * max(24px, (100vw - 1180px) / 2));
}

.hero-river::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--lake);
  border-bottom: var(--ring) solid var(--marigold);
}

.pines {
  position: absolute;
  bottom: calc(var(--river-h) + var(--ring) - 6px);
  width: auto;
}

.pines-left {
  left: 0;
  height: clamp(110px, 16vw - 50px, 200px);
}

.pines-right {
  right: 0;
  translate: 0 3%;
  height: clamp(190px, 29vw, 420px);
}

.wave {
  height: 52px;
  background: var(--band);
}

/* --- About + mosaic --- */
.about {
  padding: 88px 0 96px;
}

.about-intro {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.about-lead {
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem);
  font-weight: 600;
  line-height: 1.42;
}

/* Photo mosaic around the "Your Journey Starts Here" sign. Wide: 4 x 4 cells,
   the sign over the middle four. Phones: two columns. mosaic.js fades tiles
   to new photos. */
.mosaic {
  --gap: 8px;
  container-type: inline-size;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  aspect-ratio: 16 / 9;
  margin-top: 48px;
  border-radius: 22px;
  overflow: hidden;
}

.mosaic-tile {
  position: relative;
  overflow: hidden;
  background: rgba(58, 35, 20, 0.12);
}

.mosaic-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  transition: opacity 1.2s ease;
}

/* A photo mosaic.js has just added starts clear and fades in over the old one. */
.mosaic-tile img:not(:first-child):not(.is-in) {
  opacity: 0;
}

.mosaic-tile:nth-child(1) { grid-area: 1 / 1 / span 2; }
.mosaic-tile:nth-child(2) { grid-area: 1 / 2 / span 2 / span 2; }
.mosaic-tile:nth-child(3) { grid-area: 1 / 4; }
.mosaic-tile:nth-child(4) { grid-area: 2 / 4; }
.mosaic-tile:nth-child(5) { grid-area: 3 / 1; }
.mosaic-tile:nth-child(6) { grid-area: 3 / 2 / span 2; }
.mosaic-tile:nth-child(7) { grid-area: 3 / 3 / span 2; }
.mosaic-tile:nth-child(8) { grid-area: 3 / 4 / span 2; }
.mosaic-tile:nth-child(9) { grid-area: 4 / 1; }

.mosaic-sign {
  grid-area: 2 / 2 / span 2 / span 2;
  place-self: center;
  z-index: 1;
  width: 22cqi;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: var(--gap) solid var(--sand);
  border-radius: 50%;
}

/* --- What camp looks like: fans of polaroids --- */
.forward {
  background: var(--paper);
  /* The fans may run past the screen edge; never let them widen the page. */
  overflow-x: clip;
}

.forward > .container {
  max-width: 1320px;
  padding-top: 88px;
  padding-bottom: 96px;
}

.forward .section-title {
  text-align: center;
  color: var(--avocado);
  margin-bottom: 64px;
}

.forward-groups {
  --forward-gap: 72px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 64px var(--forward-gap);
}

.forward-group {
  width: calc((100% - 2 * var(--forward-gap)) / 3);
  text-align: center;
}

.polaroids {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 10px 0 30px;
  margin-bottom: 4px;
}

.polaroid {
  position: relative;
  flex: 0 0 auto;
  /* 3 x 42% - 6 x 7% = 84% of the column, so tilted corners clear the next fan. */
  width: 42%;
  min-width: 0;
  margin: 0 -7%;
  padding: 6px 6px 22px;
  background: #FFFDF8;
  box-shadow: 0 3px 12px rgba(58, 35, 20, 0.28);
  transition: transform 0.25s ease;
}

.polaroid:nth-child(1) { z-index: 1; transform: rotate(-6deg); }
.polaroid:nth-child(2) { z-index: 2; transform: translateY(14px) rotate(3deg); }
.polaroid:nth-child(3) { z-index: 1; transform: rotate(7deg); }

.polaroid:hover {
  z-index: 3;
  transform: scale(1.06) rotate(0deg);
}

.polaroid img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  filter: saturate(1.08) sepia(0.12);
}

.forward-group h3 {
  font-size: 1.35rem;
  line-height: 1.15;
  color: var(--orange);
}

.forward-group:nth-child(4n + 2) h3 { color: var(--avocado); }
.forward-group:nth-child(4n + 3) h3 { color: var(--lake); }
.forward-group:nth-child(4n + 4) h3 { color: var(--bark); }

.forward-items {
  margin-top: 8px;
  font-size: 0.975rem;
  line-height: 1.4;
}

.forward-items li {
  display: inline;
}

.forward-items li:not(:last-child)::after {
  content: ' \00B7  ';
  color: var(--orange);
  font-weight: 800;
}

/* --- Playshops: the /activities tiles, in stripes --- */
.playshops > .container {
  padding-top: 88px;
  padding-bottom: 96px;
}

.playshops .section-title {
  text-align: center;
  color: var(--lake);
}

.playshops-intro {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  font-weight: 600;
  line-height: 1.45;
}

/* Flex, not grid, so a short last row (17 tiles = 4 rows of 4 + 1) sits centered. */
.playshops-list {
  --cols: 4;
  --gap: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap);
}

.playshop-item {
  --c: var(--orange);
  width: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 3px 12px rgba(58, 35, 20, 0.12);
  transition: transform 0.25s ease;
}

.playshop-item:nth-child(4n + 2) { --c: var(--marigold); }
.playshop-item:nth-child(4n + 3) { --c: var(--avocado); }
.playshop-item:nth-child(4n + 4) { --c: var(--lake); }

.playshop-item:hover {
  transform: translateY(-6px);
}

.playshop-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 7px solid var(--c);
  filter: saturate(1.08) sepia(0.12);
}

.playshop-item-body {
  padding: 18px 20px 22px;
}

.playshop-item h3 {
  font-family: 'Caprasimo', Georgia, serif;
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.15;
  color: var(--bark);
  margin-bottom: 6px;
}

.playshop-item p {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* --- Bespoke: how it works --- */
.bespoke {
  background: var(--avocado);
  color: var(--paper);
}

.bespoke > .container {
  padding-top: 88px;
  padding-bottom: 96px;
}

.bespoke .section-title {
  color: var(--paper);
  text-align: center;
}

.bespoke-intro {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  font-weight: 600;
  line-height: 1.45;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  counter-reset: step;
}

.step {
  padding: 36px;
  border-radius: 28px;
  background: var(--orange);
  color: var(--paper);
  counter-increment: step;
}

.step:nth-child(2) { background: var(--lake); }
.step:nth-child(3) { background: var(--bark); }

.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--marigold);
  color: var(--bark);
  font-family: 'Caprasimo', Georgia, serif;
  font-size: 1.375rem;
  line-height: 1;
}

.step h3 {
  font-size: 1.75rem;
  line-height: 1.1;
  margin-bottom: 12px;
}

.bespoke-cta {
  margin-top: 56px;
  text-align: center;
}

.bespoke-cta .btn {
  background: var(--marigold);
  color: var(--bark);
}

.bespoke-cta .btn:hover {
  background: var(--paper);
}

.bespoke-cta p {
  margin-top: 16px;
  font-weight: 600;
}

.bespoke-cta a:not(.btn) {
  color: inherit;
}

/* --- Footer --- */
.footer {
  background: var(--bark);
  color: var(--paper);
}

.footer > .container {
  padding-top: 48px;
  padding-bottom: 40px;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  font-weight: 600;
}

.footer-links a {
  color: inherit;
}

.footer-copy {
  margin-top: 16px;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* --- Responsive --- */
@media (max-width: 1100px) {
  .playshops-list {
    --cols: 3;
  }
}

@media (max-width: 1000px) {
  .forward-group {
    width: calc((100% - var(--forward-gap)) / 2);
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    max-width: 640px;
    margin: 0 auto;
  }
}

@media (max-width: 900px) {
  :root {
    --ring: 9px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-top: 32px;
  }

  .hero-content {
    padding-bottom: 32px;
  }

  .hero-media {
    --pw: min(calc(100vw - 48px), 480px);
    grid-column: 1;
    grid-row: 2;
    margin: 8px 0 48px;
  }

  .hero-river {
    --river-h: 36px;
    grid-row: 3;
  }

  .playshops-list {
    --cols: 2;
  }
}

@media (max-width: 640px) {
  :root {
    --nav-h: 60px;
  }

  .nav-inner {
    padding: 0 16px;
  }

  .nav-links {
    gap: 14px;
    font-size: 0.875rem;
  }

  .nav-links .nav-hide-sm {
    display: none;
  }

  .nav-logo span {
    display: none;
  }

  .container {
    padding: 0 16px;
  }

  .about {
    padding: 56px 0 64px;
  }

  .forward > .container,
  .playshops > .container,
  .bespoke > .container {
    padding-top: 56px;
    padding-bottom: 64px;
  }

  .forward-group {
    width: 100%;
  }

  .polaroids {
    max-width: 420px;
    margin: 0 auto 4px;
  }

  /* Bigger on phones: the fan (3 x 60% - 6 x 9% = 126%) runs past the screen
     edges; .forward clips it. */
  .polaroid {
    width: 60%;
    margin: 0 -9%;
  }

  /* The mosaic in two columns: a wide photo, a thin pair, a wide photo with
     the sign over its foot, a tall pair, then a thin and a tall beside a
     double-height photo. */
  .mosaic {
    --gap: 6px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, 7fr 4fr 7fr);
    aspect-ratio: 5 / 7;
    border-radius: 18px;
  }

  .mosaic-tile:nth-child(1) { grid-area: 1 / 1 / span 1 / span 2; }
  .mosaic-tile:nth-child(9) { grid-area: 2 / 1; }
  .mosaic-tile:nth-child(5) { grid-area: 2 / 2; }
  .mosaic-tile:nth-child(2) { grid-area: 3 / 1 / span 1 / span 2; }
  .mosaic-tile:nth-child(6) { grid-area: 4 / 1; }
  .mosaic-tile:nth-child(7) { grid-area: 4 / 2; }
  .mosaic-tile:nth-child(3) { grid-area: 5 / 1; }
  .mosaic-tile:nth-child(8) { grid-area: 5 / 2 / span 2; }
  .mosaic-tile:nth-child(4) { grid-area: 6 / 1; }

  .mosaic-sign {
    grid-area: 3 / 1 / span 2 / span 2;
    width: 44cqi;
  }

  .step {
    padding: 28px;
  }

  .playshops-list {
    --gap: 16px;
  }

  .playshop-item-body {
    padding: 14px 14px 18px;
  }

  .playshop-item h3 {
    font-size: 1.1rem;
  }

  .playshop-item p {
    font-size: 0.875rem;
  }
}

@media (max-width: 420px) {
  .playshops-list {
    --cols: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .polaroid,
  .playshop-item,
  .mosaic-tile img {
    transition: none;
  }
}
