/* HCYAC.org — "Phoenix Rising" theme (CW #5326980)
   Palette pulled from the HCYAC phoenix logo / Phoenix Rising shirt. */
:root {
  --flame: #ef7d1a;
  --ember: #d9381e;
  --ember-dark: #a8261a;
  --gold: #f6b531;
  --ink: #2b2422;
  --muted: #6b605b;
  --paper: #fffbf6;
  --peach: #fff1e6;
  --line: #f0e2d6;
  --white: #fff;
  --grad: linear-gradient(120deg, var(--gold), var(--flame) 45%, var(--ember));
  --radius: 16px;
  --shadow: 0 10px 30px rgba(43, 36, 34, .10);
  --shadow-sm: 0 3px 12px rgba(43, 36, 34, .08);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito Sans", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.18; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin: 0 0 .35em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 0 0 .5em; }
h3 { font-size: 1.2rem; margin: 0 0 .4em; }
p { margin: 0 0 1em; }
a { color: var(--ember); text-underline-offset: 3px; }
a:hover { color: var(--flame); }
img { max-width: 100%; display: block; }
.fire { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 10px; top: 10px; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .16em; font-weight: 800; font-size: .78rem; color: var(--ember); margin-bottom: .8em; }

/* Header */
.site-header { background: rgba(255, 251, 246, .94); backdrop-filter: saturate(1.4) blur(8px); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); }
.site-header::after { content: ""; display: block; height: 3px; background: var(--grad); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { height: 58px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: "Fraunces", Georgia, serif; font-size: 1.12rem; }
.brand-text span { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--flame); font-weight: 800; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 700; font-size: .97rem; padding: 8px 14px; border-radius: 999px; }
.nav a:hover { background: var(--peach); color: var(--ember); }
.nav a[aria-current="page"] { color: var(--ember); background: var(--peach); }
.nav a.nav-cta { background: var(--ember); color: var(--white); }
.nav a.nav-cta:hover { background: var(--ember-dark); color: var(--white); }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font-weight: 800; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: var(--white); box-shadow: 0 8px 20px rgba(217, 56, 30, .28); }
.btn-primary:hover { color: var(--white); box-shadow: 0 12px 26px rgba(217, 56, 30, .34); }
.btn-outline { border: 2px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 64px 0 72px; background:
  radial-gradient(700px 420px at 100% 0%, rgba(246,181,49,.22), transparent 65%),
  radial-gradient(600px 400px at 0% 100%, rgba(239,125,26,.12), transparent 60%),
  var(--paper); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: 1.22rem; color: var(--muted); max-width: 560px; }
.hero-photos { position: relative; min-height: 520px; }
.hero-photos .ph-main { position: absolute; right: 0; top: 0; width: 74%; height: 92%; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow); }
.hero-photos .ph-sub { position: absolute; left: 0; bottom: 0; width: 46%; height: 52%; object-fit: cover; object-position: center 35%; border-radius: 18px; border: 6px solid var(--white); box-shadow: var(--shadow); transform: rotate(-3deg); }
.hero-photos .badge { position: absolute; right: 18px; bottom: 18px; background: var(--white); border-radius: 14px; padding: 10px 16px; box-shadow: var(--shadow-sm); font-weight: 800; font-size: .9rem; display: flex; align-items: center; gap: 10px; }
.hero-photos .badge img { height: 34px; width: auto; }

/* Highlight strip */
.strip { background: var(--ink); color: #f7ece4; }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.strip div { padding: 22px 18px; border-left: 1px solid rgba(255,255,255,.08); }
.strip div:first-child { border-left: 0; }
.strip strong { display: block; font-family: "Fraunces", Georgia, serif; font-size: 1.15rem; color: var(--gold); }
.strip span { font-size: .92rem; color: #d9c9be; }

/* Sections */
section { padding: 80px 0; }
section.tint { background: var(--peach); }
section.white { background: var(--white); }
.section-head { max-width: 720px; margin-bottom: 34px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img.feature { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.card .icon { width: 48px; height: 48px; border-radius: 14px; background: var(--grad); color: var(--white); display: grid; place-items: center; font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1.2rem; margin-bottom: 14px; }

.quote { position: relative; overflow: hidden; background: var(--white); border-radius: var(--radius); padding: 34px 30px 26px; box-shadow: var(--shadow-sm); }
.quote::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--grad); }
.quote img { height: 76px; width: auto; margin-bottom: 10px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; grid-auto-flow: dense; gap: 14px; }
.gallery figure { margin: 0; border-radius: 14px; overflow: hidden; background: var(--line); box-shadow: var(--shadow-sm); }
.gallery figure.tall { grid-row: span 2; }
.gallery figure.wide { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.04); }

/* Facebook */
.fb-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 500px; gap: 48px; align-items: start; }
.fb-frame { width: 100%; max-width: 500px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.fb-frame iframe { display: block; width: 100%; height: 640px; border: 0; }
.help-card { margin-top: 30px; background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); display: grid; grid-template-columns: 110px 1fr; gap: 18px; align-items: center; }
.help-card img { width: 110px; height: 110px; object-fit: cover; border-radius: 12px; }
.help-card p { margin: 0; }

/* Inner page banner */
.banner { padding: 56px 0 46px; background:
  radial-gradient(600px 300px at 100% 0%, rgba(246,181,49,.28), transparent 65%), var(--peach); border-bottom: 1px solid var(--line); }
.banner h1 { margin: 0 0 .2em; }
.banner p { color: var(--muted); margin: 0; max-width: 760px; font-size: 1.1rem; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.jump a { background: var(--white); color: var(--ink); text-decoration: none; padding: 7px 15px; border-radius: 999px; font-size: .9rem; font-weight: 700; border: 1px solid var(--line); }
.jump a:hover { border-color: var(--flame); color: var(--ember); }

/* Resources table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
table.resources { width: 100%; border-collapse: collapse; background: var(--white); min-width: 560px; }
table.resources th, table.resources td { padding: 15px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
table.resources thead th { background: var(--ink); color: var(--white); text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; }
table.resources tbody th { width: 34%; font-weight: 800; color: var(--ink); }
table.resources tbody tr:nth-child(even) { background: #fffaf5; }
table.resources tbody tr:hover { background: var(--peach); }

.res-section { scroll-margin-top: 110px; }
.res-section + .res-section { margin-top: 44px; }
.res-section > h3 { font-size: 1.5rem; padding-left: 14px; border-left: 5px solid var(--flame); }
.res-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 16px; }
.res-list .card ul { margin: .2em 0 1em; padding-left: 1.2em; }
.res-list .card .meta { font-size: .95rem; color: var(--muted); margin-bottom: 0; }
.res-list .card .meta a { word-break: break-word; font-weight: 700; }

/* Footer */
.site-footer { background: var(--ink); color: #e6d8ce; padding: 54px 0 28px; font-size: .96rem; }
.site-footer a { color: var(--white); }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 34px; }
.site-footer h3 { color: var(--gold); font-family: "Nunito Sans", Arial, sans-serif; font-size: .85rem; text-transform: uppercase; letter-spacing: .14em; }
.site-footer .f-brand { display: flex; gap: 14px; align-items: flex-start; }
.site-footer .f-brand img { height: 74px; width: auto; background: var(--paper); border-radius: 12px; padding: 6px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .copy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 16px; font-size: .85rem; color: #b8a69a; }

/* Facebook feed (self-hosted, see feed.php) */
.feed { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.post { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.post:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.post img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.post .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post .meta { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.post .meta img { width: 22px; height: 22px; aspect-ratio: auto; object-fit: contain; }
.post p { margin: 0; font-size: .98rem; line-height: 1.55; }
.post .more { margin-top: auto; font-weight: 800; font-size: .9rem; color: var(--ember); }
.post.text-only { background: linear-gradient(160deg, var(--white), var(--peach)); }
.post.text-only p { font-family: "Fraunces", Georgia, serif; font-size: 1.15rem; line-height: 1.45; }
.feed-empty { grid-column: 1 / -1; color: var(--muted); }

/* Mobile menu toggle */
.nav-toggle { display: none; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font: inherit; font-weight: 800; font-size: .95rem; padding: 9px 14px; border-radius: 999px; cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; content: ""; }
.nav-toggle .bars::before { position: absolute; top: -6px; }
.nav-toggle .bars::after { position: absolute; top: 6px; }

@media (max-width: 960px) {
  .hero .wrap, .split, .fb-wrap { grid-template-columns: 1fr; }
  .hero .wrap { gap: 34px; }
  .hero-photos { min-height: 420px; max-width: 560px; }
  .split { gap: 32px; }
  .split img.feature { aspect-ratio: 4 / 3; max-height: 460px; }
  .strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .strip div:nth-child(3) { border-left: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .site-footer .cols > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body { font-size: 16.5px; line-height: 1.6; }
  h1 { font-size: 2.3rem; }
  h2 { font-size: 1.65rem; }
  section { padding: 52px 0; }
  .section-head { margin-bottom: 24px; }
  .section-head p { font-size: 1rem; }
  .eyebrow { font-size: .72rem; letter-spacing: .12em; }

  /* compact header + collapsible menu */
  .site-header .wrap { flex-wrap: nowrap; padding-top: 8px; padding-bottom: 8px; }
  .brand { gap: 10px; min-width: 0; }
  .brand img { height: 44px; }
  .brand-text strong { font-size: .95rem; line-height: 1.2; }
  .brand-text span { font-size: .66rem; }
  .nav-toggle { display: inline-flex; flex: none; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; background: var(--paper); padding: 10px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: 0 14px 24px rgba(43,36,34,.10); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: 12px; font-size: 1.02rem; }
  .nav a.nav-cta { text-align: center; margin-top: 6px; }

  /* hero */
  .hero { padding: 28px 0 40px; }
  .hero p.lead { font-size: 1.05rem; }
  .btns { margin-top: 20px; gap: 10px; }
  .btns .btn { flex: 1 1 0; justify-content: center; padding: 12px 14px; white-space: nowrap; }
  .hero-photos { min-height: 0; height: 330px; }
  .hero-photos .ph-main { width: 78%; height: 100%; }
  .hero-photos .ph-sub { width: 44%; height: 52%; border-width: 4px; left: 4px; bottom: 10px; }

  .strip div { padding: 16px 14px; }
  .strip strong { font-size: 1rem; }
  .strip span { font-size: .82rem; line-height: 1.4; display: block; }

  .split img.feature { aspect-ratio: 3 / 2; border-radius: 16px; }
  .quote { padding: 28px 22px 22px; }
  .quote img { height: 56px; }
  .card { padding: 22px; }
  .cards { gap: 14px; }

  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 10px; }
  .gallery figure.tall { grid-row: span 2; }
  .gallery figure.wide { grid-column: span 2; }

  .feed { grid-template-columns: 1fr; gap: 14px; }
  .help-card { grid-template-columns: 84px 1fr; gap: 14px; padding: 16px; }
  .help-card img { width: 84px; height: 84px; }
  .help-card p { font-size: .95rem; }

  .banner { padding: 36px 0 30px; }
  .banner p { font-size: 1rem; }
  .res-section > h3 { font-size: 1.3rem; }
  .res-list { grid-template-columns: 1fr; }
  table.resources { min-width: 0; }
  table.resources th, table.resources td { padding: 12px 14px; }
  table.resources tbody th { width: 40%; font-size: .92rem; }

  .site-footer { padding-top: 40px; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 400px) {
  .brand-text strong { font-size: .86rem; }
  .nav-toggle .label { display: none; }
  .btns .btn { font-size: .95rem; }
}

/* News header + help card placement */
.news-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.news-head h2 { margin: 0; }
#news .help-card { margin-top: 26px; }
@media (min-width: 961px) { .feed { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 760px) { .news-head .btn { width: 100%; justify-content: center; } }

/* Mobile polish (round 3) */
h1, h2, h3, .brand-text strong { text-wrap: balance; }
@media (max-width: 760px) {
  /* feed becomes a swipeable row */
  .feed { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; gap: 12px; margin: 0 -20px; padding: 4px 20px 14px; scrollbar-width: none; }
  .feed::-webkit-scrollbar { display: none; }
  .feed .post { flex: 0 0 82%; scroll-snap-align: start; }
  .feed .post img { aspect-ratio: 16 / 10; }
  .feed .post.text-only .body { justify-content: center; min-height: 100%; }
  .feed-hint { display: block; text-align: center; font-size: .8rem; color: var(--muted); margin-top: 2px; }

  /* compact program cards: icon beside the title */
  .cards .card { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; padding: 18px; }
  .cards .card .icon { width: 40px; height: 40px; border-radius: 12px; font-size: 1rem; margin: 0; grid-row: span 2; }
  .cards .card h3 { align-self: center; margin-bottom: 4px; font-size: 1.08rem; }
  .cards .card p { grid-column: 2; font-size: .96rem; }

  .gallery figure.tall { grid-row: span 2; }
  .site-footer .f-brand img { height: 58px; }
}
@media (min-width: 761px) { .feed-hint { display: none; } }
