/* ==========================================================================
   Party with Me 4 i.d. — one page site
   Colours, type and proportions ported from the Adobe XD artboard.
   ========================================================================== */

:root {
  /* Sampled straight out of the XD artboard */
  --teal:        #45b199;
  --teal-deep:   #559b90;   /* "Community Outings" card */
  --mint:        #acd5cd;   /* "Seasonal & Holidays" card */
  --gold:        #fcc14b;   /* photo frames + "Social Events" card */
  --orange:      #f49442;   /* "Games & Crafts" card */
  --coral:       #eb6349;   /* logo red, small accents */
  --cream:       #fcfaf2;
  --white:       #ffffff;
  --ink:         #393737;   /* card + nav text */
  --gray:        #757575;   /* body copy and headings on light backgrounds */

  /* Confetti (decorative only) */
  --c-cyan:   #a9dce9;
  --c-lemon:  #fae6a8;
  --c-blush:  #f8c3ae;
  --c-lilac:  #c9b3e6;
  --c-plum:   #c9a5de;

  /* ---------------------------------------------------------------------
     ACCESSIBILITY NOTE — the artboard's two white-on-colour combinations
     both fall short of the WCAG AA minimum of 4.5:1:

       white on --teal   (#45b199)  2.6:1  — teal band, DONATE, Join Us
       white on --orange (#f49442)  2.3:1  — the "for parents" band

     Two one-line fixes, neither of which touches the flat shapes elsewhere:
       teal   — set --teal-text below to #2a7a66            (5.1:1)
       orange — set .band-orange's colour to var(--ink)     (5.2:1)
                i.e. dark text on the same orange, rather than a darker
                orange, which would drift much further from the design.
     --------------------------------------------------------------------- */
  --teal-text: var(--teal);   /* accessible swap: #2a7a66 */

  --font-sans:   'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-script: 'Kaushan Script', 'Segoe Script', cursive;

  --container: 1320px;
  --radius-card: 28px;
  --radius-photo: 22px;
  --frame: 10px;
}

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 6.5rem; }

body {
  margin: 0;
  background: var(--white);
  color: var(--gray);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.15; color: var(--gray); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

.container {
  width: min(100% - 3rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: .75rem 1.25rem;
  border-radius: 0 0 8px 0;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Shared script "eyebrow" lettering ------------------------------------- */
.script {
  font-family: var(--font-script);
  font-weight: 400;
  line-height: 1.2;
}

.eyebrow {
  font-size: clamp(1.25rem, 2.1vw, 1.6rem);
  color: var(--gray);
  margin: 0 0 .3em;
}
.eyebrow-light { color: var(--white); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .04em;
  text-decoration: none;
  padding: .95em 2.2em;
  border-radius: 999px;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-donate,
.btn-solid {
  background: var(--teal-text);
  color: var(--white);
}
.btn-donate:hover,
.btn-solid:hover { background: #2a7a66; }

.btn-outline {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 2px var(--white);
}
.btn-outline:hover { background: var(--white); color: #2a7a66; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 6.5rem;
  padding-block: .75rem;
}

.brand { flex: 0 0 auto; line-height: 0; }
.brand img { width: 84px; height: auto; }

.primary-nav { margin-inline: auto; }

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav li + li::before {
  content: "|";
  color: var(--ink);
  opacity: .55;
  margin-inline: .85rem;
}

.primary-nav li { display: flex; align-items: center; }

.primary-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: .01em;
  padding: .35rem .1rem;
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover { border-bottom-color: var(--teal); }
.primary-nav a.nav-current { border-bottom-color: var(--gold); }

.nav-toggle {
  display: none;
  margin-inline-start: auto;
  align-items: center;
  gap: .55rem;
  background: none;
  border: 0;
  padding: .6rem .2rem;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bar { position: relative; }
.nav-toggle-bar::before,
.nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after  { top:  7px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after  { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
}

.hero-photo {
  width: 100%;
  height: clamp(24rem, 46vw, 40rem);
  object-fit: cover;
  /* Source is 4:3 and the hero box is ~2.17:1, so about 61% of the frame's
     height shows. Biased low to drop the ceiling and keep the group's faces
     in the clear band above the card. */
  object-position: center 82%;
}

.hero-card {
  position: absolute;
  left: 21%;
  right: 27.7%;   /* box ~10% narrower than the artboard, anchored left */
  bottom: 3%;
  padding: clamp(1.35rem, 2.7vw, 2.5rem) clamp(1.35rem, 3.06vw, 2.7rem) clamp(1.6rem, 3.06vw, 2.7rem);
  /* 75% teal, so the photo reads through — the artboard's see-through card. */
  background: linear-gradient(120deg, rgba(76,182,159,.75), rgba(63,170,146,.75));
  color: var(--white);
}

.hero-script {
  font-size: clamp(2.15rem, 4.5vw, 3.8rem);
  margin: 0 0 -.1em;
  color: var(--white);
}
.hero-script .dots { letter-spacing: .1em; margin-inline-start: .35em; }

.hero h1 {
  font-size: clamp(1.8rem, 3.87vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin: 0 0 .55em;
}

.hero-lede {
  font-size: clamp(.95rem, 1.35vw, 1.15rem);
  max-width: 34ch;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Dot fields (the printed-confetti texture behind two sections)
   -------------------------------------------------------------------------- */
.dots-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.dots-teal {
  opacity: .5;
  background-image: radial-gradient(var(--teal) 1.7px, transparent 1.8px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(100deg, rgba(0,0,0,1) 0%, rgba(0,0,0,.30) 34%, transparent 55%);
          mask-image: linear-gradient(100deg, rgba(0,0,0,1) 0%, rgba(0,0,0,.30) 34%, transparent 55%);
}

.dots-gold {
  opacity: .7;
  background-image: radial-gradient(var(--gold) 3px, transparent 3.2px);
  background-size: 54px 54px;
  -webkit-mask-image: linear-gradient(205deg, rgba(0,0,0,1) 0%, rgba(0,0,0,.28) 38%, rgba(0,0,0,.10) 72%);
          mask-image: linear-gradient(205deg, rgba(0,0,0,1) 0%, rgba(0,0,0,.28) 38%, rgba(0,0,0,.10) 72%);
}

/* --------------------------------------------------------------------------
   Framed photos (gold border, slight tilt)
   -------------------------------------------------------------------------- */
.framed {
  margin: 0;
  border: var(--frame) solid var(--gold);
  border-radius: var(--radius-photo);
  overflow: hidden;
  background: var(--gold);
  box-shadow: 0 18px 40px rgba(57,55,55,.12);
}
.framed img { width: 100%; }

.framed-left  { transform: rotate(-2.5deg); }
.framed-right { transform: rotate(3.5deg); }
.framed-wide  { margin: clamp(2.5rem, 5vw, 4.5rem) auto 0; max-width: 1050px; }
.framed-wide img { width: 100%; max-height: 34rem; object-fit: cover; }

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
.about {
  position: relative;
  background: var(--white);
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
  overflow: hidden;
}

.about-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .62fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.about-copy h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  margin-bottom: .8em;
}
.about-copy p { font-size: clamp(1rem, 1.35vw, 1.15rem); }

.about-media { position: relative; }
.about-media .framed { max-width: 24rem; margin-inline: auto; }

/* Confetti artwork — images/decorations.png (288x281, transparent) --------- */
.decor {
  position: absolute;
  /* Bleeds past the photo so the shapes frame it. Asymmetric on purpose:
     there's a wide column gap on the left to spill into, but only the page
     gutter on the right, and .about clips its overflow. */
  inset: -14% -5% -14% -14%;
  z-index: 0;
  opacity: .25;
  background: url("images/decorations.png") center / contain no-repeat;
}

.about-media .framed { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   Teal band
   -------------------------------------------------------------------------- */
.band {
  background: var(--teal-text);
  color: var(--white);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.band-inner { max-width: 56rem; margin-inline: auto; }

.band h2 {
  color: var(--white);
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  margin-bottom: .6em;
}

.band-copy { font-size: clamp(1.05rem, 1.5vw, 1.25rem); margin-bottom: 0; }
.band-copy + .band-copy { margin-top: 1.55em; }   /* the artboard's blank line */

/* "for parents" band — same shape, the artboard's orange */
.band-orange { background: var(--orange); }

/* --------------------------------------------------------------------------
   Activity cards
   -------------------------------------------------------------------------- */
.activities { padding-block: clamp(3rem, 6vw, 5.5rem); }

.card-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1040px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-items: center;
  gap: clamp(1.5rem, 3.5vw, 3.5rem) clamp(1.5rem, 6vw, 8rem);
}

.card {
  /* the artboard's card footprint — held as a ratio so the shape survives
     narrower screens, capped at its true size. Height still grows if the
     copy ever needs more room than the ratio allows. */
  width: 100%;
  max-width: 522px;
  aspect-ratio: 522 / 577;
  margin-inline: auto;

  display: flex;
  flex-direction: column;
  justify-content: center;

  border-radius: var(--radius-card);
  padding: clamp(1.75rem, 3vw, 2.75rem) clamp(1.5rem, 3vw, 2.5rem) clamp(2rem, 3.5vw, 3rem);
  text-align: center;
  color: var(--ink);
}

/* Each icon PNG carries its own card colour, so it sits flush on the card.
   Do not add a blend mode or radius here — it would tint the artwork. */
.card img {
  width: min(48%, 14rem);
  margin: 0 auto clamp(1rem, 2vw, 1.75rem);
}

.card h3 {
  color: var(--ink);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  margin-bottom: .55em;
}

.card p {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  max-width: 22ch;
  margin-inline: auto;
}

.card-gold   { background: var(--gold); }
.card-orange { background: var(--orange); }
.card-teal   { background: var(--teal-deep); }
.card-mint   { background: var(--mint); }

/* --------------------------------------------------------------------------
   "A Place to Be Yourself"
   -------------------------------------------------------------------------- */
.belong {
  position: relative;
  background: var(--cream);
  padding-block: clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
}

.blob {
  position: absolute;
  left: -13%;
  top: 6%;
  width: 42%;
  aspect-ratio: 1.35 / 1;
  background: var(--teal);
  border-radius: 62% 38% 46% 54% / 55% 45% 58% 42%;
  z-index: 0;
}

.belong-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .62fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.belong-media .framed { max-width: 23rem; margin-inline: auto; }

.belong-copy h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  margin-bottom: .8em;
}
.belong-copy p { font-size: clamp(1rem, 1.35vw, 1.15rem); }

.tick-list {
  list-style: none;
  margin: 0 0 1.4em;
  padding: 0;
  font-size: clamp(1rem, 1.35vw, 1.15rem);
}
.tick-list li { position: relative; padding-left: 1.4em; margin-bottom: .35em; }
.tick-list li::before {
  content: "";
  position: absolute;
  left: .25em;
  top: .62em;
  width: .42em;
  height: .42em;
  border-radius: 50%;
  background: var(--gold);
}

.belong-closer { font-weight: 600; color: var(--ink); }

/* --------------------------------------------------------------------------
   Events
   -------------------------------------------------------------------------- */
.events {
  background: var(--white);
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.section-head {
  max-width: 46rem;
  margin: 0 auto clamp(2.5rem, 5vw, 3.75rem);
  text-align: center;
}
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.35rem); margin-bottom: .55em; }
.section-lede { font-size: clamp(1rem, 1.4vw, 1.15rem); }

.event-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.event {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--cream);
  border: 2px solid rgba(252,193,75,.55);
  border-radius: var(--radius-card);
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
}

.event-date {
  flex: 0 0 auto;
  margin: 0;
  width: 4.25rem;
  text-align: center;
  background: var(--gold);
  border-radius: 16px;
  padding: .5rem .25rem .6rem;
  color: var(--ink);
}
.event-month { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; }
.event-day   { display: block; font-size: 1.65rem; font-weight: 800; line-height: 1.1; }

.event-body h3 { color: var(--ink); font-size: 1.2rem; margin-bottom: .3em; }
.event-meta { font-size: .95rem; font-weight: 600; color: var(--teal-text); margin-bottom: .5em; }
.event-body p:last-child { font-size: 1rem; }

.events-note {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  text-align: center;
  font-size: 1.05rem;
}
.events-note a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 4px; }

/* --------------------------------------------------------------------------
   Join us
   -------------------------------------------------------------------------- */
.join {
  background: var(--teal-text);
  color: var(--white);
  padding-block: clamp(3.5rem, 7vw, 6rem);
  text-align: center;
}

.join-inner { max-width: 68rem; margin-inline: auto; }
.join h2 { color: var(--white); font-size: clamp(1.7rem, 3.2vw, 2.35rem); margin-bottom: .55em; }
.join-lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 46rem; margin-inline: auto; }

.join-grid {
  list-style: none;
  margin: clamp(2.25rem, 4vw, 3.25rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
  text-align: left;
}

.join-card {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  background: rgba(255,255,255,.14);
  border: 2px solid rgba(255,255,255,.35);
  border-radius: var(--radius-card);
  padding: clamp(1.5rem, 2.6vw, 2rem);
}
.join-card h3 { color: var(--white); font-size: 1.25rem; }
.join-card p { flex: 1; margin: 0; }
.join-card .btn { align-self: flex-start; font-size: .95rem; padding: .8em 1.7em; }
.join-card .btn-solid { background: var(--white); color: #2a7a66; }
.join-card .btn-solid:hover { background: var(--gold); color: var(--ink); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--cream);
  color: var(--gray);
  padding-block: clamp(3rem, 5vw, 4.5rem) 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}

.footer-brand img { width: 92px; margin-bottom: 1rem; }
.footer-brand p { max-width: 30ch; }

.site-footer h2 {
  font-size: 1rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1rem;
}

.footer-nav ul,
.social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .5rem;
}
.social { margin-top: 1rem; }

.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }

.footer-legal {
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(57,55,55,.14);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  justify-content: space-between;
  font-size: .9rem;
}
.footer-legal p { margin: 0; }

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .hero-card { left: 6%; right: 16%; }   /* same ~10% narrowing as the wide layout */
}

@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; min-height: 0; }

  .nav-toggle { display: inline-flex; }

  .primary-nav {
    order: 4;          /* after DONATE + the toggle, so it wraps onto its own row */
    flex-basis: 100%;
    margin: 0;
    display: none;
  }
  .primary-nav.is-open { display: block; }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-block: .5rem 1rem;
  }
  .primary-nav li + li::before { content: none; }
  .primary-nav li { border-top: 1px solid rgba(57,55,55,.12); }
  .primary-nav a { display: block; padding: .9rem .25rem; border-bottom: 0; }
  .primary-nav a.nav-current { color: var(--teal-text); font-weight: 700; }

  .btn-donate { order: 2; margin-inline-start: auto; padding: .75em 1.6em; font-size: .95rem; }
  .nav-toggle { order: 3; margin-inline-start: 1rem; }

  .about-inner,
  .belong-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .about-media { order: -1; }
  .belong-media { order: -1; }

  .about-media .framed,
  .belong-media .framed { max-width: 22rem; }

  .blob { width: 70%; left: -22%; top: 4%; }

  .footer-inner { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
}

@media (max-width: 760px) {
  /* Keep the card over the photo — stacking it underneath would read as a
     second, duplicated headline. */
  /* Taller here: at phone widths the 4:3 photo crops sideways rather than
     vertically, so the card needs room to sit clear of the faces. */
  .hero-photo { height: 34rem; object-position: center; }

  .hero-card { left: 1.5rem; right: 1.5rem; bottom: 1.5rem; }

  .hero-lede { max-width: none; }

  .card-grid { grid-template-columns: minmax(0, 1fr); }
  .card img { width: min(56%, 12rem); }

  .framed-left, .framed-right { transform: none; }

  /* No gutters left for the confetti to live in at this width */
  .decor { display: none; }
}

@media (max-width: 480px) {
  .container { width: min(100% - 2rem, var(--container)); }
  .event { flex-direction: column; }
  .event-date { display: flex; gap: .5rem; align-items: baseline; width: auto; padding: .35rem .9rem .45rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}
