/* =========================================================================
   Mac Graham for Regional Council — stylesheet
   Palette: deep navy + warm gold accent on a soft off-white.
   Edit design here; content authors never touch this file.
   ========================================================================= */

:root {
  --navy: #1e3a8a;        /* royal blue (primary) */
  --navy-deep: #142a66;   /* deep royal for gradient ends / footer */
  --navy-soft: #2b50c8;   /* brighter royal for links & accents */
  --gold: #c8a24b;
  --gold-dark: #a9852f;
  --ink: #1c2434;
  --body: #33404f;
  --muted: #6b7688;
  --paper: #ffffff;
  --cream: #f6f4ee;
  --mist: #eef1f6;
  --line: #dfe3ea;
  --max: 1080px;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(20, 39, 78, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--body);
  background: var(--paper);
  line-height: 1.65;
  font-size: 18px;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; }

a { color: var(--navy-soft); text-decoration: none; }
a:hover { color: var(--gold-dark); text-decoration: underline; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.12s ease, background 0.2s ease, color 0.2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-accent { background: var(--gold); color: var(--navy-deep); }
.btn-accent:hover { background: var(--gold-dark); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(150%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.brand { display: flex; flex-direction: column; line-height: 1.1; text-decoration: none; }
.brand-name { font-family: "Fraunces", serif; font-weight: 700; font-size: 1.4rem; color: var(--navy); }
.brand-tag { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a { color: var(--ink); font-weight: 600; font-size: 1rem; }
.site-nav a:hover { color: var(--gold-dark); text-decoration: none; }
.site-nav a.active { color: var(--navy); border-bottom: 2px solid var(--gold); }
.nav-cta { color: var(--navy-deep) !important; }
.nav-cta:hover { color: #fff !important; }

.nav-toggle, .nav-toggle-label { display: none; }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: 5rem 0 5.5rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; right: -80px; top: -80px;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,162,75,0.22), transparent 70%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lead { font-size: 1.3rem; max-width: 44ch; color: #dfe6f2; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.8rem; font-weight: 700; color: var(--gold);
  margin-bottom: 1rem;
}
.hero-actions { margin-top: 2rem; display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* hero with a photo alongside the text */
.hero-photo .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.hero-photo .hero-text { min-width: 0; }
.hero-photo .hero-img {
  justify-self: end;
  max-width: 340px; width: 100%;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
  border: 4px solid rgba(255,255,255,0.12);
}

/* figures / captioned photos in prose */
figure { margin: 1.8rem 0; }
figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
figure figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.6rem; text-align: center; }
.figure-float {
  float: right; width: 300px; max-width: 42%;
  margin: 0.3rem 0 1.2rem 1.8rem;
}

/* small gallery of community photos */
.media-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin: 1.8rem 0; }
.media-grid figure { margin: 0; }
.media-grid img { aspect-ratio: 4 / 3; object-fit: cover; }

@media (max-width: 820px) {
  .hero-photo .wrap { grid-template-columns: 1fr; gap: 2rem; }
  .hero-photo .hero-img { justify-self: center; max-width: 260px; order: -1; }
  .figure-float { float: none; width: 100%; max-width: 100%; margin: 1.2rem 0; }
  .media-grid { grid-template-columns: 1fr; }
}

/* ---------- sections ---------- */
section { padding: 4rem 0; }
section.tight { padding: 2.75rem 0; }
section.alt { background: var(--cream); }
section.navy { background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%); color: #e8edf6; }
section.navy h2, section.navy h3 { color: #fff; }
.section-head { max-width: 60ch; margin-bottom: 2.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* generic content column for prose pages */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; color: var(--navy); }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }

/* ---------- pillar / card grid ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.card h3 { color: var(--navy); margin-bottom: 0.4rem; }
.card .icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--mist); color: var(--navy);
  display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 0.9rem;
  border: 1px solid var(--line);
}

.pillars { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.pillars li {
  display: flex; align-items: flex-start; gap: 0.75rem;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  padding: 1rem 1.2rem; border-radius: var(--radius);
}
.pillars .check { color: var(--gold); font-weight: 800; font-size: 1.15rem; line-height: 1.4; }

/* ---------- stats / awards ---------- */
.stats { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.stat .num { font-family: "Fraunces", serif; font-size: 2.4rem; font-weight: 700; color: var(--gold); display: block; }
.stat .label { color: var(--muted); font-size: 0.95rem; }

.awards { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.awards li { display: flex; gap: 1rem; align-items: baseline; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.awards .yr { font-family: "Fraunces", serif; font-weight: 700; color: var(--navy); min-width: 4ch; }

/* ---------- callout / CTA band ---------- */
.cta-band { background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: #d7deec; max-width: 52ch; margin-left: auto; margin-right: auto; }

/* ---------- contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 0.35rem; }
.field input, .field textarea {
  width: 100%; padding: 0.75rem 0.9rem; font: inherit; color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { margin-bottom: 0.9rem; }
.contact-list strong { display: block; color: var(--navy); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- reels grid (tile links out to Instagram) ---------- */
.reels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}
.reel-tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--ink);
}
.reel-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s ease; }
.reel-tile:hover img { transform: scale(1.05); }
.reel-tile .play-badge {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(20,36,52,0) 45%, rgba(20,36,52,0.65) 100%);
}
.reel-tile .play-badge::after {
  content: ""; width: 0; height: 0;
  border-style: solid; border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.45));
}
.reel-tile .reel-date {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 0.6rem 0.75rem;
  color: #fff; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.55);
}

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: #c3cddf; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-top: 2.5rem; padding-bottom: 1.5rem; }
.site-footer a { color: #e7ecf6; }
.site-footer .footer-brand strong { color: #fff; font-family: "Fraunces", serif; font-size: 1.2rem; }
.footer-legal { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.2rem; padding-bottom: 2rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.footer-legal p { margin: 0; }
.site-footer .muted { color: #8a97ad; }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }

  .nav-toggle-label { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
  .nav-toggle-label span { width: 26px; height: 3px; background: var(--navy); border-radius: 2px; transition: 0.2s; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
  }
  .site-nav a { width: 100%; padding: 0.9rem 1.5rem; border-bottom: 1px solid var(--mist); }
  .site-nav a.active { border-bottom: 1px solid var(--mist); background: var(--cream); }
  .nav-cta { margin: 0.8rem 1.5rem; text-align: center; }
  .nav-toggle:checked ~ .site-nav { max-height: 420px; }
}

@media (max-width: 560px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  body { font-size: 17px; }
  .hero { padding: 3.5rem 0 4rem; }
}
