/*
Theme Name: Shannonhouse
Theme URI: https://shannonhouse.org
Author: The Shannonhouse Initiative
Description: A custom faith-based nonprofit theme for The Shannonhouse Initiative.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: shannonhouse
*/

:root {
  --ink: #17211d;
  --muted: #5b665f;
  --paper: #fbfaf7;
  --soft: #f0eee7;
  --gold: #c4913f;
  --green: #21463b;
  --teal: #2f6d70;
  --rose: #9b4f5f;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(23, 33, 29, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: var(--green);
}

a:hover,
a:focus {
  color: var(--teal);
}

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

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 250, 247, 0.96);
  border-bottom: 1px solid rgba(23, 33, 29, 0.08);
  backdrop-filter: blur(14px);
}

.header-inner,
.section-inner,
.footer-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  width: auto;
  height: 86px;
  max-width: 360px;
  object-fit: contain;
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 11px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
}

.primary-menu a:hover,
.primary-menu a:focus {
  background: var(--soft);
}

.primary-menu .give-link a {
  color: var(--white);
  background: var(--green);
}

.hero {
  min-height: 720px;
  display: grid;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(14, 22, 19, 0.86) 0%, rgba(14, 22, 19, 0.70) 38%, rgba(14, 22, 19, 0.14) 74%),
    url("assets/img/hero-healing-room.png") center right / cover no-repeat;
  color: var(--white);
}

.hero-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 116px 0 72px;
}

.eyebrow {
  margin: 0 0 16px;
  color: #f1d69e;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.section-title {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.04;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.9rem);
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.90);
  font-size: 1.18rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 2px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  color: var(--ink);
  background: #f0c86c;
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
}

.button-dark {
  color: var(--white);
  background: var(--green);
}

.section {
  padding: 84px 0;
}

.section-soft {
  background: var(--soft);
}

.section-dark {
  color: var(--white);
  background: var(--green);
}

.section-title {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.8rem);
}

.section-lede {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.section-dark .section-lede,
.section-dark .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.value-grid,
.program-grid,
.help-grid {
  display: grid;
  gap: 18px;
  margin-top: 36px;
}

.value-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.program-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.help-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  min-height: 100%;
  padding: 24px;
  border: 1px solid rgba(23, 33, 29, 0.09);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  line-height: 1.22;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.icon-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 50%;
  color: var(--white);
  background: var(--teal);
  font-weight: 900;
}

.statement {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.quote-panel {
  padding: 34px;
  border-left: 6px solid var(--gold);
  background: var(--white);
  box-shadow: var(--shadow);
}

.quote-panel p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  line-height: 1.25;
}

.help-callout {
  padding: 30px;
  border-radius: 8px;
  color: var(--white);
  background: var(--rose);
}

.help-callout p,
.help-card p {
  margin: 0;
}

.help-card {
  padding: 22px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
}

.help-card a {
  color: var(--white);
  font-weight: 800;
}

.site-footer {
  padding: 44px 0;
  color: rgba(255, 255, 255, 0.76);
  background: #121a17;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}

.footer-inner a {
  color: var(--white);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.content-page {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.content-page h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.05;
}

@media (max-width: 980px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .brand-logo {
    height: 72px;
    max-width: min(340px, 86vw);
  }

  .primary-menu {
    flex-wrap: wrap;
  }

  .hero {
    min-height: 660px;
    background:
      linear-gradient(180deg, rgba(14, 22, 19, 0.90) 0%, rgba(14, 22, 19, 0.72) 54%, rgba(14, 22, 19, 0.18) 100%),
      url("assets/img/hero-healing-room.png") center / cover no-repeat;
  }

  .value-grid,
  .program-grid,
  .help-grid,
  .statement,
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .hero {
    min-height: 620px;
  }

  .hero-inner {
    padding: 96px 0 48px;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .section {
    padding: 58px 0;
  }

  .card,
  .quote-panel,
  .help-callout {
    padding: 22px;
  }
}
