/* ==========================================================================
   Uni Hill PTA — site stylesheet
   Theme: "Midnight" (deep navy) based on the Uni Hill Elementary brand deck.

   Everything color-related lives in the :root design tokens below, so the
   whole site can be re-themed by editing this one block.
   ========================================================================== */

/* ---- Fonts (self-hosted, see /fonts) ------------------------------------ */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 200; font-display: swap; src: url(../fonts/Poppins-200.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/Poppins-300.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/Poppins-400.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/Poppins-500.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/Poppins-600.woff2) format('woff2'); }

/* ---- Design tokens ------------------------------------------------------- */
:root {
  /* backgrounds, darkest to lightest */
  --ink:        #16263e;   /* page background */
  --ink-raised: #1d3050;   /* alternating sections, cards */
  --ink-accent: #26395c;   /* list rows, highlights */

  /* text */
  --cream: #f4f2e3;        /* primary text */
  --soft:  #c3cddd;        /* secondary text */
  --white: #ffffff;        /* emphasized text */

  /* hairline edge on dark-filled surfaces (quiet hero CTA) */
  --hairline: rgba(244, 242, 227, .28);

  /* brand accents (from the Uni Hill brand deck) */
  --powder: #a8c6e8;       /* headlines, primary buttons */
  --coral:  #f4694c;       /* section labels, donate buttons */
  --yellow: #fedc00;
  --pink:   #fe87e5;
  --green:  #4cd964;
  --orange: #fe9c00;
  --purple: #ab63fe;

  /* layout */
  --page-width: 1180px;
  --radius: 16px;

  /* the alebrije logo, tintable anywhere via `background-color` + this mask */
  --logo-mask: url(../img/logo-white.png);
}

/* ---- Reset & base -------------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  background: var(--ink);
  color: var(--cream);
}

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

.wrap { max-width: var(--page-width); margin: 0 auto; padding: 0 32px; }

/* Tinted alebrije mark. Give any element this class plus a background-color. */
.logo-mark {
  display: inline-block;
  aspect-ratio: 840 / 868;   /* intrinsic ratio of the logo artwork */
  background-color: var(--cream);
  -webkit-mask: var(--logo-mask) center / contain no-repeat;
  mask: var(--logo-mask) center / contain no-repeat;
}

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .03em;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--powder); color: var(--ink); }
.btn-donate  { background: var(--coral);  color: var(--white); }
.btn-ghost   { border: 1px solid rgba(244, 242, 227, .5); color: var(--cream); }
/* Third peer in the hero trio: filled like the other two (so it carries the
   same visual mass) but in the quiet navy, so colour alone ranks the three.
   The edge is an inset shadow, not a border, so its box stays pixel-identical
   to .btn-donate / .btn-primary. */
.btn-invite  { background: var(--ink-accent); color: var(--cream);
               box-shadow: inset 0 0 0 1px var(--hairline); }
.btn:hover   { filter: brightness(1.08); }

/* ---- Header & navigation ------------------------------------------------- */
.site-header {
  padding: 20px 0;
  border-bottom: 1px solid rgba(244, 242, 227, .14);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.brand .logo-mark { width: 62px; }
.brand-name  { display: block; font-weight: 500; font-size: 1.15rem; color: var(--white); line-height: 1.3; }
.brand-school { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--powder); }

.site-nav { display: flex; gap: 34px; align-items: center; font-weight: 400; font-size: .92rem; letter-spacing: .04em; }
.site-nav a { text-decoration: none; color: var(--soft); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--white); }
.site-nav .btn { color: var(--white); }

/* Above the mobile breakpoint the brand and the full nav share one row, so
   keep the school name on one line and close the gap up a little to fit. */
@media (min-width: 961px) {
  .brand-school { white-space: nowrap; }
}
@media (min-width: 961px) and (max-width: 1120px) {
  .site-nav { gap: 24px; }
}

/* Mobile navigation toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(244, 242, 227, .4);
  border-radius: 8px;
  color: var(--cream);
  font-size: 1.4rem;
  line-height: 1;
  padding: 6px 12px;
  cursor: pointer;
}

/* ---- Papel picado divider (SVG element in the HTML) ----------------------- */
.picado { display: block; width: 100%; height: 34px; }

/* ---- Sections ------------------------------------------------------------ */
.section { padding: 92px 0; }
.section-raised { background: var(--ink-raised); }

.section-label {
  display: inline-block;
  color: var(--coral);
  font-weight: 500;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(244, 242, 227, .4);
  padding-bottom: 8px;
  margin-bottom: 24px;
}

h1, h2 { font-weight: 200; color: var(--powder); letter-spacing: -.01em; }
h1 { font-size: 3.9rem; line-height: 1.12; margin-bottom: 26px; }
h2 { font-size: 2.9rem; line-height: 1.15; margin-bottom: 18px; }
h1 strong, h2 strong { font-weight: 400; color: var(--white); }

.lead { color: var(--soft); max-width: 40em; font-size: 1.04rem; }

/* ---- Hero ---------------------------------------------------------------- */
.hero { padding: 88px 0 84px; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 70px;
  align-items: center;
}
.kicker {
  color: var(--coral);
  font-weight: 500;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero p { max-width: 32em; color: var(--soft); margin-bottom: 36px; font-size: 1.06rem; }
/* Hero CTA trio ­— three peers on one line.
   Every button shares the same shape, height, padding and type; only the fill
   colour ranks them. The two knobs below (horizontal padding + type size) are
   what keeps all three on a single row as the text column narrows, so tune
   those rather than letting the row wrap. */
.cta-row {
  --cta-px: 22px;          /* horizontal padding inside each pill */
  --cta-fs: .9rem;         /* label size */
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: stretch;
}
.cta-row .btn {
  flex: 0 0 auto;
  padding: 14px var(--cta-px);
  font-size: var(--cta-fs);
  letter-spacing: .02em;
  white-space: nowrap;
  text-align: center;
}
.hero-logo { display: flex; justify-content: center; }
.hero-logo .logo-mark { width: min(420px, 100%); }

/* Smaller hero used on inner pages */
.page-hero { padding: 72px 0 56px; }
.page-hero p { max-width: 38em; color: var(--soft); font-size: 1.06rem; }

/* ---- Arched photo band --------------------------------------------------- */
.photo-arcade { padding: 70px 0 0; }
.photo-arcade .row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: end;
}
.photo-arcade img {
  width: 100%;
  aspect-ratio: .78;
  object-fit: cover;
  border-radius: 999px 999px 14px 14px;  /* the arch */
}
.photo-arcade figcaption {
  text-align: center;
  color: var(--soft);
  font-size: .85rem;
  letter-spacing: .04em;
  margin-top: 26px;
  padding-bottom: 40px;
}

/* ---- Volunteer section --------------------------------------------------- */
.volunteer .wrap {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 70px;
  align-items: start;
}

.stats { display: flex; gap: 54px; margin-top: 42px; flex-wrap: wrap; }
.stat-number { font-weight: 200; font-size: 3rem; color: var(--white); line-height: 1.1; }
.stat-number em { font-style: normal; color: var(--coral); }
.stat-caption { font-size: .85rem; color: var(--soft); max-width: 12em; }

.opportunity-list { display: grid; gap: 2px; margin-top: 10px; }
.opportunity {
  display: flex;
  gap: 22px;
  align-items: center;
  padding: 24px 26px;
  background: var(--ink-accent);
  text-decoration: none;
}
.opportunity:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.opportunity:last-child  { border-radius: 0 0 var(--radius) var(--radius); }
.opportunity:hover { background: #2d4368; }
.opportunity .logo-mark { width: 56px; flex: none; }
.opportunity h3 { font-weight: 500; color: var(--white); font-size: 1.08rem; }
.opportunity p { font-size: .9rem; color: var(--soft); }
.opportunity .arrow { margin-left: auto; color: var(--powder); font-size: 1.4rem; }

/* ---- Donate section ------------------------------------------------------ */
.donate .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 76px;
  align-items: center;
}
.donate-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: end;
}
.donate-photos img {
  width: 100%;
  aspect-ratio: .8;
  object-fit: cover;
  border-radius: 999px 999px 14px 14px;  /* arch */
}
/* One landscape photo spanning both columns, to open the group up. A 999px
   radius on a wide box clamps into a full dome that swallows the corners of
   the photo, so this one gets a shallower arch with shoulders. */
.donate-photos .wide {
  grid-column: 1 / -1;
  aspect-ratio: 1.5;
  border-radius: 180px 180px 14px 14px;
}

.pill {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 600;
  font-size: .85rem;
  padding: 10px 20px;
  border-radius: 999px;
  margin-bottom: 26px;
}

/* Live fundraising thermometer (Zeffy embed). Same wrapper pattern as the
   calendar embed on the meetings page — see .calendar-embed. The iframe is
   cross-origin, so nothing inside it can be styled from here; the panel
   around it is what makes it look like part of the page. */
.progress-embed {
  background: var(--ink-accent);
  border-radius: var(--radius);
  padding: 24px 26px 18px;
  margin-top: 34px;
}
.progress-label {
  color: var(--coral);
  font-weight: 500;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
/* Zeffy renders the thermometer with dark text on a transparent background,
   which is invisible on our navy. We can't restyle inside a cross-origin
   frame, so flip its lightness and put the hues back: dark text becomes
   light, and the violet progress bar stays violet. */
.progress-embed iframe {
  display: block;
  width: 100%;
  /* Just taller than the widget's content, with slack so it can't clip if
     Zeffy adds a line. Raise this, don't lower it. */
  height: 60px;
  border: 0;
  filter: invert(1) hue-rotate(180deg);
}

/* The request: the one number we want families to remember. */
.request {
  background: var(--ink-accent);
  border-radius: var(--radius);
  padding: 30px 32px 32px;
  margin-top: 34px;
}
.request-label {
  color: var(--coral);
  font-weight: 500;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.request-figure {
  font-weight: 200;
  font-size: 3.2rem;
  line-height: 1.1;
  color: var(--white);
}
.request-figure em { font-style: normal; font-size: 1.05rem; color: var(--soft); }
.request-alt { color: var(--powder); font-size: 1rem; margin-bottom: 26px; }
.request-fine { font-size: .85rem; color: var(--soft); margin-top: 20px; max-width: 34em; }

/* Second row of the donate section: the spending breakdown. */
.donate .wrap.donate-ledger { display: block; margin-top: 84px; }
.ledger-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 34px;
}
.ledger-head h3 { font-weight: 200; font-size: 2.1rem; color: var(--powder); letter-spacing: -.01em; }
.ledger-head h3 strong { font-weight: 400; color: var(--white); }
.ledger-head .pill { margin-bottom: 0; }
.ledger-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 60px; align-items: start; }
.ledger-notes p { font-size: .92rem; color: var(--soft); }
.ledger-notes em { font-style: normal; font-weight: 500; color: var(--white); }
.ledger-notes .fine { font-size: .82rem; opacity: .8; margin-top: 16px; }

.funding-rows { display: grid; gap: 18px; }
.funding-row {
  display: grid;
  grid-template-columns: 13em 1fr 3.5em;
  gap: 18px;
  align-items: center;
  font-size: .92rem;
}
.funding-name small { display: block; color: var(--soft); font-size: .82rem; }
.funding-row .track {
  height: 8px;
  background: rgba(244, 242, 227, .12);
  border-radius: 99px;
  overflow: hidden;
}
.funding-row .fill { display: block; height: 100%; min-width: 6px; border-radius: 99px; }
.funding-row .amount { color: var(--soft); text-align: right; font-style: normal; }
/* set each bar's width inline in the HTML: <span class="fill" style="width:61%"> */
.fill-para       { background: var(--powder); }
.fill-classrooms { background: var(--coral); }
.fill-trips      { background: var(--yellow); }
.fill-programs   { background: var(--green); }
.fill-events     { background: var(--pink); }

/* ---- Teaser cards (home page WhatsApp / Meetings) ------------------------- */
.teaser-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.teaser {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(244, 242, 227, .16);
  border-radius: 20px;
  padding: 44px;
  background: var(--ink-raised);
}
.teaser h2 { font-size: 1.8rem; margin-bottom: 10px; }
.teaser p { color: var(--soft); margin-bottom: 26px; font-size: .98rem; }
.teaser .watermark {
  position: absolute;
  right: -34px;
  bottom: -44px;
  width: 190px;
  opacity: .16;
}

/* ---- WhatsApp page ------------------------------------------------------- */
.whatsapp-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 70px;
  align-items: start;
}

.group-list { display: grid; gap: 14px; }
.group-link {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  background: var(--ink-raised);
  border: 1px solid rgba(244, 242, 227, .14);
  border-radius: var(--radius);
  text-decoration: none;
}
.group-link:hover { background: var(--ink-accent); }
.group-link .logo-mark { width: 40px; flex: none; }
.group-link h3 { font-weight: 500; font-size: 1rem; color: var(--white); }
.group-link p { font-size: .85rem; color: var(--soft); }
.group-link .arrow { margin-left: auto; color: var(--powder); font-size: 1.3rem; }

/* WhatsApp-style chat preview (pure HTML, easy to edit) */
.chat-preview {
  background: var(--ink-raised);
  border: 1px solid rgba(244, 242, 227, .16);
  border-radius: 20px;
  padding: 26px;
}
.chat-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--white);
  font-size: .95rem;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(244, 242, 227, .14);
}
.chat-title .logo-mark { width: 34px; background-color: var(--green); }
.chat-title small { display: block; font-weight: 300; color: var(--soft); font-size: .78rem; }
.bubble {
  max-width: 85%;
  padding: 10px 16px;
  border-radius: 14px;
  font-size: .88rem;
  margin-bottom: 10px;
  line-height: 1.55;
}
.bubble strong { display: block; font-weight: 600; font-size: .78rem; }
.bubble time { display: block; text-align: right; font-size: .68rem; opacity: .6; }
.bubble-them { background: var(--ink-accent); border-top-left-radius: 4px; }
.bubble-them strong { color: var(--pink); }
.bubble-them:nth-of-type(odd) strong { color: var(--yellow); }
.bubble-me {
  background: #235c3f;
  color: #eaf6ec;
  margin-left: auto;
  border-top-right-radius: 4px;
}

/* ---- Meetings page ------------------------------------------------------- */
.calendar-embed {
  border: 1px solid rgba(244, 242, 227, .16);
  border-radius: 20px;
  overflow: hidden;
  background: var(--ink-raised);
}
.calendar-embed iframe { display: block; width: 100%; height: 500px; border: 0; }

.subscribe-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 26px; }

/* Suggest-a-topic: text on the left, example topics card on the right */
.suggest .wrap {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 70px;
  align-items: center;
}
.idea-card {
  background: var(--ink-raised);
  border: 1px solid rgba(244, 242, 227, .16);
  border-radius: 20px;
  padding: 34px 36px;
}
.idea-card h3 {
  font-weight: 500;
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 22px;
}
.idea-card ul { list-style: none; display: grid; gap: 20px; }
.idea-card li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: .95rem;
  color: var(--soft);
}
.idea-card .logo-mark { width: 38px; flex: none; }

/* ---- Mission page -------------------------------------------------------- */
.mission-statement {
  font-weight: 200;
  font-size: 2.2rem;
  line-height: 1.4;
  color: var(--cream);
  max-width: 26em;
}
.mission-statement strong { font-weight: 400; color: var(--powder); }

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-top: 50px;
}
.pillar { background: var(--ink-raised); border: 1px solid rgba(244,242,227,.14); border-radius: 20px; padding: 30px 26px; }
.pillar .logo-mark { width: 52px; margin-bottom: 18px; }
.pillar h3 { font-weight: 500; color: var(--white); font-size: 1.1rem; margin-bottom: 8px; }
.pillar p { font-size: .9rem; color: var(--soft); }

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.photo-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
}
.photo-grid img.arch { border-radius: 999px 999px 14px 14px; }

/* ---- Footer -------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid rgba(244, 242, 227, .14);
  padding: 56px 0;
  margin-top: 40px;
}
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 30px; }
.footer-brand { display: flex; align-items: center; gap: 26px; }
.footer-brand .logo-mark { width: 96px; }
.footer-brand b { font-weight: 500; color: var(--white); }
.footer-brand small { display: block; color: var(--soft); opacity: .8; font-size: .85rem; margin-top: 8px; }

/* ---- Responsive ---------------------------------------------------------- */

/* Between 960px and the 1180px page width the hero text column shrinks but the
   CTA labels don't, so the trio is squeezed hardest here. Borrow a little room
   from the column gap and trim the pills rather than let one drop to line two. */
@media (max-width: 1180px) and (min-width: 961px) {
  .hero .wrap { grid-template-columns: 1.2fr .8fr; gap: 48px; }
  .cta-row { --cta-px: 16px; --cta-fs: .84rem; gap: 10px; }
}

@media (max-width: 960px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2.2rem; }

  .hero .wrap,
  .volunteer .wrap,
  .donate .wrap,
  .suggest .wrap,
  .whatsapp-layout { grid-template-columns: 1fr; gap: 44px; }

  /* Stacked, the photo group is tall enough to push the pitch below the
     fold, so let the message lead and the photos follow. */
  .donate-photos { order: 2; }

  .ledger-grid { grid-template-columns: 1fr; gap: 36px; }
  .donate .wrap.donate-ledger { margin-top: 56px; }

  .hero-logo .logo-mark { width: min(300px, 70%); }

  /* Single-column hero: the row has the full page width again. */
  .cta-row { --cta-px: 22px; --cta-fs: .88rem; flex-wrap: wrap; }
  .photo-arcade .row { grid-template-columns: repeat(2, 1fr); }
  .teaser-grid { grid-template-columns: 1fr; }
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }

  /* collapse nav behind the toggle button */
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 90px;
    left: 0;
    right: 0;
    z-index: 10;
    flex-direction: column;
    gap: 22px;
    background: var(--ink-raised);
    border-bottom: 1px solid rgba(244, 242, 227, .14);
    padding: 30px 32px;
  }
  .site-nav.open { display: flex; }
  .site-header { position: relative; }
}

/* Narrower than three-across can sit comfortably. Stack the trio full width
   rather than let it break 2 + 1, which is what made the third CTA read as an
   afterthought in the first place. (Its own breakpoint: this is the width the
   three labels stop fitting, not one of the site's layout breakpoints.) */
@media (max-width: 640px) {
  .cta-row { display: grid; grid-template-columns: 1fr; gap: 12px; max-width: 420px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .wrap { padding: 0 22px; }
  .funding-row { grid-template-columns: 1fr 3.5em; }
  .funding-row .track { grid-column: 1 / -1; order: 2; }
  .request { padding: 26px 24px 28px; }
  .request-figure { font-size: 2.6rem; }
  .stats { gap: 34px; }
}
