/* Utah Guns & Hoses Charity Inc. — green, black, white theme */
@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Source+Sans+3:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

:root {
  --green-900: #0a3d22;
  --green-700: #0d5c2e;
  --green-600: #1a7a3e;
  --green-500: #22a055;
  --green-100: #e8f5ec;
  --black: #0a0a0a;
  --gray-800: #1f1f1f;
  --gray-600: #5c5c5c;
  --gray-400: #888;
  --gray-200: #e8e8e8;
  --white: #ffffff;
  --max-width: 1120px;
  --radius: 10px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  --font-sans: "Source Sans 3", system-ui, -apple-system, sans-serif;
  --font-serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  color: var(--black);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4,
.page-hero h1,
.section-title,
.footer-org-name,
.footer-heading,
.event-card h3,
.donate-card h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--green-600);
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  border-bottom: 3px solid var(--green-600);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  text-decoration: none;
}

.brand-logo {
  display: block;
  height: 56px;
  width: auto;
  max-width: 54px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-600), var(--green-900));
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand-text strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.2;
}

.brand-text span {
  font-size: 0.72rem;
  color: #b8dfc8;
  font-weight: 500;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--green-500);
  color: var(--white);
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--white);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--green-700);
  color: var(--white);
}

.nav-donate {
  background: var(--green-600) !important;
  font-weight: 700 !important;
}

.nav-donate:hover {
  background: var(--green-500) !important;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 55%, var(--black) 100%);
  color: var(--white);
  padding: 4.5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero-lead {
  font-size: 1.125rem;
  font-weight: 400;
  color: #d4f0de;
  margin-bottom: 1.75rem;
  max-width: 42ch;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--white);
  color: var(--green-900);
}

.btn-primary:hover {
  background: var(--green-100);
  color: var(--green-900);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  border-color: var(--white);
  color: var(--white);
}

.btn-green {
  background: var(--green-600);
  color: var(--white);
}

.btn-green:hover {
  background: var(--green-500);
  color: var(--white);
}

.hero-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(6px);
}

.hero-card h2 {
  margin: 0 0 1rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9fd4b0;
}

.fact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fact-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.fact-list li:last-child {
  border-bottom: none;
}

.fact-list strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9fd4b0;
  margin-bottom: 0.15rem;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--green-100);
}

.section-dark {
  background: var(--black);
  color: var(--white);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section-header h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.section-header p {
  margin: 0;
  color: var(--gray-600);
}

.section-dark .section-header p {
  color: #b0b0b0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.card-body {
  padding: 1.35rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.95rem;
}

.card-img {
  aspect-ratio: 16 / 9;
  background: var(--gray-800);
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow);
}

.hero-photo img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.about-logo-wrap {
  text-align: center;
  margin-bottom: 1.25rem;
  padding: 1.5rem 1rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

.about-logo {
  display: block;
  height: auto;
  max-height: 240px;
  width: auto;
  max-width: min(100%, 200px);
  margin: 0 auto;
  object-fit: contain;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.photo-gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.photo-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.event-card-image {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
  max-height: 220px;
}

.event-card-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.event-status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.event-status--upcoming {
  background: var(--green-100);
  color: var(--green-900);
}

.event-status--past {
  background: #eee;
  color: #555;
}

.card-meta {
  font-size: 0.8rem;
  color: var(--green-700);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

/* Page header */
.page-hero {
  background: var(--black);
  color: var(--white);
  padding: 3rem 0;
  border-bottom: 4px solid var(--green-600);
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.page-hero p {
  margin: 0;
  color: #b8dfc8;
  max-width: 60ch;
}

/* Content */
.prose {
  max-width: 72ch;
}

.prose h2 {
  margin-top: 2rem;
  color: var(--green-900);
}

.prose ul {
  padding-left: 1.25rem;
}

.info-box {
  background: var(--green-100);
  border-left: 4px solid var(--green-600);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}

.info-box p:last-child {
  margin-bottom: 0;
}

.section-title {
  color: var(--green-900);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  margin: 0 0 1.25rem;
}

.text-link {
  font-weight: 600;
  text-decoration: none;
  color: var(--green-700);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.text-link:hover {
  color: var(--green-600);
  text-decoration: underline;
}

.link-arrow {
  font-size: 1.1em;
  line-height: 1;
}

/* Donate options */
.donate-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.donate-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.donate-card:hover {
  border-color: var(--green-600);
  box-shadow: 0 12px 36px rgba(13, 92, 46, 0.1);
}

.donate-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  color: var(--green-900);
}

.donate-card p {
  color: var(--gray-600);
  font-size: 0.98rem;
  line-height: 1.6;
  flex-grow: 1;
}

.donate-card-address {
  margin: 0.75rem 0 1rem;
  padding: 1rem;
  background: var(--green-100);
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--black);
}

.donate-card-note {
  font-size: 0.88rem !important;
  color: var(--gray-600) !important;
  margin-top: 0.5rem !important;
}

.donate-card--accent {
  background: linear-gradient(160deg, var(--green-900) 0%, var(--green-700) 100%);
  border-color: var(--green-700);
}

.donate-card--accent h3,
.donate-card--accent p,
.donate-card--accent .donate-card-address {
  color: var(--white);
}

.donate-card--accent .donate-card-address {
  background: rgba(255, 255, 255, 0.12);
}

.donate-card--accent .donate-card-note {
  color: #c5e6d0 !important;
}

.donate-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  padding: 0.7rem 1.2rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  align-self: flex-start;
}

.donate-card-btn--primary {
  background: var(--green-600);
  color: var(--white);
}

.donate-card-btn--primary:hover {
  background: var(--green-500);
  color: var(--white);
}

.donate-card-btn--outline {
  background: transparent;
  color: var(--green-700);
  border-color: var(--green-600);
}

.donate-card-btn--outline:hover {
  background: var(--green-100);
  color: var(--green-900);
}

.donate-card--accent .donate-card-btn--outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
}

.donate-card--accent .donate-card-btn--outline:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.donate-card-btn--light {
  background: var(--white);
  color: var(--green-900);
}

.donate-card-btn--light:hover {
  background: var(--green-100);
  color: var(--green-900);
}

.donate-placeholder {
  font-style: italic;
  color: var(--gray-600);
  font-size: 0.95rem;
  margin: 0;
}

/* Map */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--gray-200);
  min-height: 360px;
}

.map-wrap iframe {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-list strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-700);
  margin-bottom: 0.35rem;
}

.contact-list a {
  font-weight: 500;
}

.find-us-block h2 {
  color: var(--green-900);
  margin-bottom: 0.5rem;
}

.find-us-block > p {
  color: var(--gray-600);
  max-width: 42ch;
}

/* Blog */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}

.blog-sidebar {
  position: sticky;
  top: 5.5rem;
  background: var(--green-100);
  padding: 1.25rem;
  border-radius: var(--radius);
}

.blog-sidebar h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.tag-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag-list a {
  background: var(--white);
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  text-decoration: none;
  border: 1px solid var(--gray-200);
}

.post-full .post-date {
  color: var(--green-700);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Events */
.event-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}

.event-card > div:last-child p {
  color: var(--gray-600);
  line-height: 1.65;
}

.event-date-box {
  background: var(--green-700);
  color: var(--white);
  border-radius: var(--radius);
  text-align: center;
  padding: 0.75rem 0.5rem;
}

.event-date-box .month {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.event-date-box .day {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

.event-card h3 {
  margin: 0 0 0.35rem;
}

.event-card .location {
  color: var(--green-700);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Footer — premium green gradient layout */
.site-footer {
  background: radial-gradient(ellipse at 50% 0%, #0f5c34 0%, #062818 45%, #031a0f 100%);
  color: #e8f5ec;
  padding: 2.5rem 0 0;
  margin-top: 3rem;
  border-top: 3px solid var(--green-600);
}

.footer-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  padding-top: 0.5rem;
}

.footer-logo {
  display: block;
  text-decoration: none;
  line-height: 0;
}

.footer-logo-img {
  display: block;
  height: 132px;
  width: auto;
  max-width: 128px;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.45));
}

.footer-logo-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--green-500), var(--green-900));
  border: 2px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: -0.02em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 0.9fr 1.2fr;
  gap: 2rem 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-org-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

.footer-tagline {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: #c5e6d0;
}

.footer-ein {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  color: #b8dfc8;
}

.footer-ein-num {
  color: #5eea8a;
  font-weight: 700;
}

.footer-status {
  margin: 0 0 1.25rem;
  font-size: 0.78rem;
  color: #9fd4b0;
  line-height: 1.45;
}

.footer-social {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: var(--white);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: background 0.2s, transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}

.footer-social-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

.footer-social-btn:hover {
  background: var(--green-600);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.footer-heading {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5eea8a;
  margin: 0 0 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.9;
}

.footer-links a:hover {
  color: #5eea8a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-contact-list {
  margin: 0 0 1.25rem;
}

.footer-contact-list dt {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5eea8a;
  margin-top: 0.65rem;
}

.footer-contact-list dt:first-child {
  margin-top: 0;
}

.footer-contact-list dd {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
  color: var(--white);
  line-height: 1.45;
}

.footer-contact-list a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-contact-list a:hover {
  color: #5eea8a;
}

.footer-donate-btn {
  display: inline-block;
  background: #5eea8a;
  color: var(--black);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem 1.35rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.footer-donate-btn:hover {
  background: #7af0a4;
  color: var(--black);
  transform: translateY(-1px);
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.25rem 1rem 1.5rem;
  text-align: center;
}

.footer-bottom-bar p {
  margin: 0;
  font-size: 0.8rem;
  color: #b0d4bc;
}

.pdf-viewer-wrap {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.5rem 0 2rem;
  min-height: 70vh;
  background: #f5f5f5;
}

.pdf-viewer-wrap iframe {
  width: 100%;
  height: 75vh;
  min-height: 520px;
  border: 0;
  display: block;
}

.ein-badge {
  display: inline-block;
  background: var(--green-900);
  color: #9fd4b0;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.78rem;
  margin-top: 0.5rem;
}

/* Image placeholder note */
.img-placeholder {
  background: repeating-linear-gradient(
    -45deg,
    var(--green-100),
    var(--green-100) 10px,
    #d4eadc 10px,
    #d4eadc 20px
  );
  border: 2px dashed var(--green-600);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  color: var(--green-900);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .grid-3,
  .footer-main,
  .contact-grid,
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .grid-2,
  .donate-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--black);
    padding: 0.5rem 1rem 1rem;
    border-bottom: 3px solid var(--green-600);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .header-inner {
    position: relative;
    flex-wrap: wrap;
  }

  .blog-sidebar {
    position: static;
  }

  .brand-logo {
    height: 48px;
    max-width: 46px;
  }

  .footer-logo-img {
    height: 112px;
    max-width: 110px;
  }
}
