/* =========================================================
   Path to Somewhere Foundation - style.css (HTML static)
   Header + Footer match your exact includes
   ========================================================= */

/* ---------- DESIGN TOKENS ---------- */
:root {
  --maple-gold: #DCA55B;
  --amberwood: #A9744F;
  --warm-sage: #C8D5C1;
  --cream: #FFF9F3;
  --deep-plum: #3A2534;
  --text-main: #3A2534;

  --max-width: 1080px;
  --radius-lg: 18px;
  --shadow-soft: 0 14px 40px rgba(0,0,0,0.08);

  --font-heading: "Playfair Display", serif;
  --font-body: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-quote: "Crimson Text", "Times New Roman", serif;
}

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

html, body { margin: 0; padding: 0; }
html {
  font-size: 18px;
}


body {
  font-family: var(--font-body);
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(220,165,91,0.12), transparent 60%),
    radial-gradient(circle at top right, rgba(200,213,193,0.18), transparent 55%),
    var(--cream);
  min-height: 100vh;
  line-height: 1.7;
}

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

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--deep-plum);
  color: #fff;
  z-index: 2000;
}
.skip-link:focus { left: 0.5rem; }

/* High contrast mode */
html.high-contrast body { background: #ffffff; color: #000000; }
html.high-contrast a { color: #003366; }
html.high-contrast .btn.primary { background: #000000; color: #ffffff; }
html.high-contrast .site-header { background: #000000; color: #ffffff; }

/* ---------- HEADER + NAV (DESKTOP) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0.6rem 1.25rem;
  background: rgba(255,249,243,0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(58,37,52,0.06);

  /* IMPORTANT: anchors the mobile dropdown to the header */
  position: sticky;
}

/* Brand */
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-link { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: inherit; }

.logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: contain;
}

.brand-text { display: flex; flex-direction: column; }
.brand-name { font-weight: 600; font-size: 1.05rem; letter-spacing: 0.04em; text-transform: uppercase; }
.brand-tagline { font-size: 0.75rem; color: var(--amberwood); }

/* Nav */
.nav { margin-left: auto; }
.nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.75rem;
}

.nav a {
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  color: var(--deep-plum);
  transition: background 0.18s ease, color 0.18s ease;
}
.nav a:hover,
.nav a:focus-visible { background: var(--maple-gold); color: #fff; }

/* Hamburger button (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 0.25rem;
  margin-left: 0.5rem;
  cursor: pointer;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--deep-plum); display: block; }

/* Contrast toggle */
.contrast-toggle {
  margin-left: 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--amberwood);
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  background: transparent;
  cursor: pointer;
  color: var(--deep-plum);
}

/* ---------- LAYOUT ---------- */
main {
  max-width: var(--max-width);
  margin: 1.4rem auto 2.5rem;
  padding: 0 1.25rem;
}

/* ---------- HERO ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 2.2fr);
  gap: 1.8rem;
  align-items: center;

  padding: 1.6rem 1.4rem;
  background: linear-gradient(135deg, rgba(220,165,91,0.12), rgba(58,37,52,0.04));
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amberwood);
  margin: 0 0 0.3rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  margin: 0 0 0.6rem;
  color: var(--deep-plum);
}

.hero-subtitle { margin: 0 0 1rem; font-size: 0.98rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }

.hero-banner {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}



/* ---------- SECTIONS / CARDS ---------- */
.page-header h1 { font-family: var(--font-heading); font-size: 1.8rem; margin-bottom: 0.25rem; }
.page-header p { margin-top: 0.1rem; max-width: 720px; }

.intro { margin-top: 1.6rem; max-width: 780px; }
.intro h2 { font-family: var(--font-heading); font-size: 1.4rem; }

.home-grid,
.card-grid {
  margin-top: 1.8rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}


/* ---------- LETTER FINDER (SENIOR-FRIENDLY) ---------- */

.letter-finder-grid{
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.letter-pick{
  appearance: none;
  width: 100%;
  padding: 1.2rem 1.3rem;
  font-size: 1.05rem;          /* bigger text */
  line-height: 1.4;
  border-radius: var(--radius-lg);
  border: 2px solid rgba(58,37,52,0.15);
  background: rgba(255,249,243,0.95);
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

/* Clear hover + keyboard focus */
.letter-pick:hover,
.letter-pick:focus-visible{
  outline: none;
  border-color: rgba(201,169,110,0.9);
  box-shadow: 0 0 0 4px rgba(201,169,110,0.25);
}




.home-grid article,
.card-grid .card {
  background: rgba(255,249,243,0.9);
  border-radius: var(--radius-lg);
  padding: 1rem 1rem 0.95rem;
  box-shadow: 0 8px 22px rgba(0,0,0,0.05);
  border: 1px solid rgba(58,37,52,0.06);
}

.resource-card{
  display: block;
  text-decoration: none;
  color: inherit;
}

.card h2 { font-size: 1.15rem; margin-top: 0; font-family: var(--font-heading); }

.text-link { color: var(--amberwood); text-decoration: none; font-weight: 500; }
.text-link:hover,
.text-link:focus-visible { text-decoration: underline; }

/* Lists & utility */
.list { padding-left: 1.2rem; }
.list li { margin-bottom: 0.35rem; }

.pill-grid { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.pill-grid span {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--warm-sage);
  font-size: 0.78rem;
}

.cta-panel {
  margin-top: 1.8rem;
  padding: 1.1rem;
  border-radius: 20px;
  background: linear-gradient(to right, rgba(200,213,193,0.9), rgba(220,165,91,0.14));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}
.cta-panel h2 { margin: 0; font-family: var(--font-heading); }
.cta-panel p { margin: 0; flex: 1 1 220px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}
.btn.primary { background: var(--deep-plum); color: #fff; }
.btn.primary:hover,
.btn.primary:focus-visible { background: #241521; }
.btn.outline { border: 1px solid var(--deep-plum); color: var(--deep-plum); background: transparent; }
.btn.outline:hover,
.btn.outline:focus-visible { background: var(--deep-plum); color: #fff; }

/* Notes / placeholders */
.note {
  margin-top: 1.4rem;
  padding: 0.9rem 1rem;
  background: rgba(200,213,193,0.25);
  border-radius: 14px;
  font-size: 0.9rem;
}
.note blockquote {
  margin: 0;
  font-family: var(--font-quote);
  font-style: italic;
  color: var(--amberwood);
}

.placeholder-box {
  margin-top: 0.6rem;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  border: 1px dashed rgba(58,37,52,0.4);
  background: rgba(255,249,243,0.9);
  font-size: 0.85rem;
}

.placeholder-link { font-family: monospace; font-size: 0.8rem; color: var(--deep-plum); }

/* Leadership */
.leadership-grid { display: grid; gap: 1rem; margin-top: 1.2rem; }
.leadership-grid article {
  padding: 1rem 1rem 0.9rem;
  border-radius: var(--radius-lg);
  background: var(--warm-sage);
  border-left: 4px solid var(--maple-gold);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 1.7fr);
  gap: 1.3rem;
  margin-top: 1.2rem;
}

.contact-form { display: grid; gap: 0.45rem; }
.contact-form label { font-size: 0.8rem; font-weight: 500; }
.contact-form input,
.contact-form textarea {
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  border: 1px solid rgba(58,37,52,0.18);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: rgba(255,249,243,0.95);
}

/* ---------- FOOTER (matches your footer.html) ---------- */
footer[role="contentinfo"] {
  margin-top: 2.5rem;
  padding: 1.5rem 1.25rem 1.4rem;
  background: var(--deep-plum);
  color: #f9f3ea;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-column h4 {
  margin-top: 0;
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
}
.footer-column p {
  margin: 0.35rem 0 0;
  opacity: 0.92;
  max-width: 34ch;
  line-height: 1.5;
  font-size: 0.92rem;
}

.footer-column ul {
  margin: 0.4rem 0 0;
  padding-left: 0;
  list-style: none;
}

.footer-column li { margin: 0.25rem 0; }
.footer-column a {
  line-height: 1.4;
}

.footer-column a {
  color: #f5d6a8;
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-column a:hover,
.footer-column a:focus-visible { text-decoration: underline; }


/* Footer bottom line */
.footer-bottom {
  margin: 1.25rem auto 0;
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.85;
  max-width: var(--max-width);
}
.advocacy-details {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255,249,243,0.9);
  border: 1px solid rgba(58,37,52,0.10);
}

.advocacy-details summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
}

.details-body {
  margin-top: 0.9rem;
}



/* =========================================================
   TEMPLATE GENERATOR – SENIOR-FRIENDLY (DESKTOP, HARD OVERRIDE)
   ========================================================= */

.template-generator {
  max-width: 100%;
  margin-top: 1.75rem;
  font-size: 1.05rem;
}

/* Labels and helper text */
.template-generator label,
.template-generator .small {
  font-size: 1rem;
  font-weight: 600;
}

/* Dropdown */
.template-generator select {
  font-size: 1.1rem;
  padding: 0.6rem 0.75rem;
}

/* Buttons */
.template-generator button,
.template-generator a.button {
  font-size: 1.05rem;
  padding: 0.65rem 1.3rem;
}

/* THE BOX THAT MATTERS */
.template-generator #templateText {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 520px;          /* BIG on desktop */
  font-size: 1.15rem;         /* readable without zoom */
  line-height: 1.7;
  letter-spacing: 0.02em;
  padding: 18px 20px;
  resize: vertical;
  font-family: var(--font-body);
  background: #ffffff;
}

/* Focus = obvious */
.template-generator #templateText:focus {
  outline: 3px solid var(--maple-gold);
  outline-offset: 3px;
}

/* Controls layout */
.template-generator .tg-controls,
.template-generator .tg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* =========================================================
   PRINT PAGE – Path to Somewhere look, high-contrast, senior-friendly
   Applies only when printing OR on print-letter.html if you add class="print-page" to body
   ========================================================= */

/* Optional: add <body class="print-page"> on print-letter.html for on-screen preview */
.print-page main {
  max-width: 900px;
  margin: 0 auto;
}

/* On-screen preview of the print page */
.print-page .print-sheet {
  background: #fff;
  border: 2px solid rgba(58,37,52,0.2);
  border-radius: 18px;
  padding: 24px;
}

/* Big, readable type */
.print-page .print-sheet,
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 14pt !important;
    line-height: 1.35 !important;
  }
}

/* Print-specific rules */
@media print {
  /* remove site chrome */
  .site-header,
  #site-header,
  #site-footer,
  .nav,
  .nav-toggle,
  .contrast-toggle,
  .quick-actions {
    display: none !important;
  }

  main {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  a:link, a:visited { color: #000 !important; text-decoration: none !important; }

  /* Keep blocks together */
  .print-sheet,
  .print-block {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  /* Senior-friendly headings */
  h1 { font-size: 22pt !important; margin: 0 0 10pt !important; }
  h2 { font-size: 16pt !important; margin: 14pt 0 8pt !important; }

  /* Make form areas obvious */
  .write-box {
    border: 2px solid #000 !important;
    border-radius: 10px !important;
    padding: 10pt !important;
    min-height: 56pt !important;
    margin: 8pt 0 12pt !important;
  }

  /* Check/circle options */
  .choice-row { display: flex; gap: 14pt; flex-wrap: wrap; margin: 8pt 0 12pt; }
  .choice {
    display: flex;
    align-items: center;
    gap: 8pt;
    font-weight: 700;
  }
  .circle {
    width: 14pt;
    height: 14pt;
    border: 2px solid #000;
    border-radius: 50%;
    display: inline-block;
  }

  /* Signature line */
  .signature-line {
    border-bottom: 2px solid #000;
    height: 18pt;
    margin-top: 8pt;
  }

  /* Don’t print URLs everywhere */
  a[href]:after { content: "" !important; }
}


/* ---------- RESPONSIVE (MOBILE) ---------- */
/* Hamburger menu approach */
@media (max-width: 800px) {

  /* Header stays sticky AND becomes the anchor for the dropdown */
  .site-header {
    position: sticky;
    top: 0;
  }

  /* Anchor the dropdown to the header */
  .site-header {
    /* sticky stays, and sticky can still be an anchor */
    /* if your browser is weird, this helps dropdown align */
    z-index: 1000;
  }

  /* Make nav area predictable */
  .nav { position: relative; }

  /* Hide desktop row menu; show hamburger button */
  .nav ul {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    flex-direction: column;
    padding: 0.6rem;
    background: var(--cream);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    min-width: 200px;
    gap: 0.3rem;
  }

  /* Show menu when JS toggles nav-open */
  .nav.nav-open ul { display: flex; }
  .nav-toggle { display: inline-flex; }

  /* Make hero single column */
  .hero { grid-template-columns: 1fr; }

  /* Contact grid single column */
  .contact-grid { grid-template-columns: 1fr; }

  /* Prevent text wrapping beside images on mobile */
  main img:not(.logo) {
    float: none !important;
    clear: both !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 12px 0 !important;
  }
}

@media (max-width: 600px) {
  main { padding-left: 16px; padding-right: 16px; }

  h1 { font-size: clamp(32px, 7vw, 48px); }
  h2 { font-size: clamp(22px, 5.5vw, 34px); }

  .hero, .hero-card, .panel, .card {
    padding: 18px !important;
    border-radius: 18px;
  }
}

/* ---------- ACCESSIBILITY: LARGER TEXT ON SMALL SCREENS ---------- */
@media (max-width: 800px) {
  html {
    font-size: 19px;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

.quick-actions-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 10px;
}

/* Gentle reassurance callout */
.gentle-callout {
  background: #f6efe7;
  border-left: 4px solid #c9a96e;
  padding: 1rem 1.25rem;
  margin: 2rem 0;
  border-radius: 8px;
}

.gentle-callout a {
  font-weight: 600;
}


/* Advocacy Hub callouts */
.advocacy-callout {
  background: #f7f4ef;
  border-left: 4px solid #5a6b5c;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.advocacy-callout p {
  margin: 0.5rem 0;
}

.advocacy-callout .emphasis {
  font-weight: 600;
}

/* Sticky only on wider screens */
@media (min-width: 900px) {
  .advocacy-callout {
    position: sticky;
    top: 1.5rem;
  }
}

