/* ============================================================
   Canadian Hearth Society — Stylesheet
   Palette: forest green #334D3D · hearth copper #A85D38
            parchment #F4EFE4 · charcoal #252B29
   ============================================================ */

:root {
  --green: #334D3D;
  --green-deep: #27392E;
  --copper: #A85D38;
  --copper-dark: #8A4A2B;   /* darker copper for AA contrast on parchment */
  --parchment: #F4EFE4;
  --parchment-soft: #FAF7F0;
  --charcoal: #252B29;
  --gold: #D9B36A;
  --line: rgba(37, 43, 41, 0.14);

  --font-serif: "Lora", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 10px;
  --shadow: 0 2px 14px rgba(37, 43, 41, 0.08);
  --container: 72rem;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--parchment-soft);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--green);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; }
a { color: var(--copper-dark); }
a:hover { color: var(--copper); }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 2px;
  border-radius: 2px;
}

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
  color: #fff;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--green);
  color: var(--parchment);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.6rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--parchment);
}
.brand-logo { flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.brand-tagline {
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--parchment);
  border-radius: 6px;
  padding: 0.45rem 0.8rem;
  font: inherit;
  cursor: pointer;
  align-items: center;
  gap: 0.5rem;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
  content: "";
}
.nav-toggle-bar::before { position: absolute; top: -6px; }
.nav-toggle-bar::after { position: absolute; top: 6px; }

.site-nav ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.site-nav a {
  display: block;
  color: var(--parchment);
  text-decoration: none;
  padding: 0.55rem 0.85rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.98rem;
}
.site-nav a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.site-nav .nav-cta {
  background: var(--copper);
  color: #fff;
}
.site-nav .nav-cta:hover { background: var(--copper-dark); }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    width: 100%;
  }
  .site-nav.open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding-block: 0.5rem;
    gap: 0.15rem;
  }
  .site-nav a { padding: 0.75rem 0.5rem; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background:
    radial-gradient(ellipse at 70% 20%, rgba(217, 179, 106, 0.12), transparent 55%),
    linear-gradient(170deg, var(--green) 0%, var(--green-deep) 100%);
  color: var(--parchment);
  padding-block: clamp(3rem, 8vw, 6rem);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: 2.5rem;
}
.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 1rem;
}
.hero h1 { color: var(--parchment); }
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 34em;
  color: rgba(244, 239, 228, 0.92);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}
.hero-emblem { text-align: center; }
.hero-emblem img {
  width: min(100%, 340px);
  filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.35));
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-emblem { order: -1; }
  .hero-emblem img { width: min(60%, 240px); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn-primary {
  background: var(--copper);
  color: #fff;
}
.btn-primary:hover { background: var(--copper-dark); color: #fff; }
.btn-secondary {
  background: transparent;
  color: var(--parchment);
  border-color: var(--gold);
}
.btn-secondary:hover { background: rgba(217, 179, 106, 0.15); color: #fff; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding-block: clamp(3rem, 7vw, 5rem); }
.section-parchment { background: var(--parchment); }
.section-green {
  background: var(--green);
  color: var(--parchment);
}
.section-green h2, .section-green h3 { color: var(--parchment); }
.section-green .section-lede { color: rgba(244, 239, 228, 0.92); }

.section-lede {
  font-size: 1.15rem;
  max-width: 46em;
  margin-bottom: 2rem;
}

/* ---------- Philosophy pillars ---------- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.pillar {
  background: #fff;
  border-top: 4px solid var(--copper);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.pillar h3 { margin-bottom: 0.4em; }
.pillar p { margin: 0; }

/* ---------- Tenets accordion ---------- */
.tenets {
  display: grid;
  gap: 0.75rem;
  max-width: 54rem;
}
.tenet {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.tenet summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--green);
}
.tenet summary::-webkit-details-marker { display: none; }
.tenet summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--copper-dark);
  flex-shrink: 0;
  transition: transform 180ms ease;
}
.tenet[open] summary::after { content: "−"; }
.tenet summary:hover { background: var(--parchment-soft); }
.tenet-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green);
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 1rem;
}
.tenet-body {
  padding: 0 1.25rem 1.25rem 4.35rem;
}
.tenet-body p { margin: 0; }
@media (max-width: 560px) {
  .tenet-body { padding-left: 1.25rem; }
}

.tenets-note {
  margin-top: 1.75rem;
  max-width: 54rem;
  color: #4b534f;
}

/* ---------- Hearths ---------- */
.hearth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.hearth-card {
  background: rgba(244, 239, 228, 0.07);
  border: 1px solid rgba(217, 179, 106, 0.35);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.hearth-card h3 { color: var(--gold); margin-bottom: 0.4em; }
.hearth-card p { margin: 0; color: rgba(244, 239, 228, 0.92); }

.notice {
  background: rgba(217, 179, 106, 0.12);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.4rem;
  max-width: 54rem;
}
.notice p { margin: 0; }

/* ---------- Get involved ---------- */
.involve-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}
.involve-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--green);
}
.involve-card h3 { margin-bottom: 0.4em; }
.involve-card p { margin: 0; }

/* ============================================================
   FORM
   ============================================================ */
.form-wrap {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 50rem;
}
.form-wrap h3 { font-size: 1.5rem; }

.interest-form { margin-top: 1.5rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-field { margin-bottom: 1.1rem; }
.form-field label, .form-field legend {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--charcoal);
}
.req { color: var(--copper-dark); }
.optional { font-weight: 400; color: #5a615d; font-size: 0.9em; }

.form-field input[type="text"],
.form-field input[type="email"],
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: var(--charcoal);
  background: var(--parchment-soft);
  border: 1.5px solid #9aa39e;
  border-radius: 8px;
}
.form-field textarea { resize: vertical; }

fieldset.form-field {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.9rem 1.1rem 1rem;
  margin: 0 0 1.1rem;
}
fieldset.form-field legend { padding-inline: 0.4rem; margin-bottom: 0; }

.radio-group { display: grid; gap: 0.45rem; margin-top: 0.4rem; }
label.radio, label.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 400;
  margin-bottom: 0;
  cursor: pointer;
}
.radio input, .checkbox input {
  margin-top: 0.3rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--green);
  flex-shrink: 0;
}

/* Honeypot — visually hidden from humans, present for bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.privacy-note {
  font-size: 0.92rem;
  color: #4b534f;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.form-status {
  margin-bottom: 1rem;
  border-radius: 8px;
  font-weight: 600;
}
.form-status:not(:empty) { padding: 0.9rem 1.1rem; }
.form-status.success {
  background: #e8f2ea;
  color: #25502f;
  border: 1px solid #a9c9b1;
}
.form-status.error {
  background: #f7e9e4;
  color: #7c3012;
  border: 1px solid #d9b3a0;
}

.btn-submit { min-width: 16rem; }
.btn-submit[disabled] { opacity: 0.6; cursor: not-allowed; }
@media (max-width: 560px) {
  .btn-submit { width: 100%; min-width: 0; }
}

input:invalid:not(:placeholder-shown):not(:focus) { border-color: #a04123; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.contact-email a {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
}
@media (max-width: 640px) {
  .contact-inner { flex-direction: column; text-align: center; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--charcoal);
  color: rgba(244, 239, 228, 0.85);
  padding-block: 2.5rem;
  font-size: 0.95rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: start;
}
.footer-brand {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}
.footer-brand p { margin: 0; line-height: 1.4; }
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}
.footer-nav a { color: var(--gold); text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-note { max-width: 24rem; }
.footer-note p { margin-bottom: 0.5em; }
@media (max-width: 820px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-note { max-width: none; }
}

/* ============================================================
   Privacy page
   ============================================================ */
.prose {
  max-width: 46rem;
}
.prose h2 { margin-top: 2rem; font-size: 1.4rem; }
.prose ul { padding-left: 1.4rem; }
.draft-banner {
  background: #f7efdc;
  border: 1.5px solid var(--gold);
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
  margin-bottom: 2rem;
  font-weight: 600;
  color: #6b5210;
}
