/* ═══════════════════════════════════════════════════
   FORT KLAMATH MEMORIAL CEMETERY — Stylesheet
   Palette:
     --honeydew:    #d5f2e3
     --muted-teal:  #73ba9b
     --deep-forest: #003e1f
     --onyx:        #01110a
     --brick-ember: #ba2d0b
═══════════════════════════════════════════════════ */

:root {
  --honeydew:    #d5f2e3;
  --muted-teal:  #73ba9b;
  --deep-forest: #003e1f;
  --onyx:        #01110a;
  --brick-ember: #ba2d0b;

  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-sans:  'Segoe UI', Arial, sans-serif;
  --nav-width: 130px;
  --transition: 0.3s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background-color: var(--onyx);
  color: var(--onyx);
  margin-right: var(--nav-width);
  line-height: 1.7;
}

/* ════════════════════════════════════════════════
   SIDE NAVIGATION
════════════════════════════════════════════════ */
#side-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: var(--nav-width);
  height: 100vh;
  background: linear-gradient(180deg, #a67c5b 0%, #6b4f3a 50%, #2e1f12 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  border-left: 3px solid var(--muted-teal);
}

#side-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  padding: 0 0.5rem;
  text-align: center;
}

#side-nav ul li::before {
  content: '✝';
  display: block;
  color: var(--muted-teal);
  font-size: 0.65rem;
  margin-bottom: 0.25rem;
  opacity: 0.6;
}

.nav-link {
  font-family: var(--font-serif);
  color: var(--honeydew);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  writing-mode: horizontal-tb;
  transition: color var(--transition);
  line-height: 1.3;
}

.nav-link:hover,
.nav-link.active {
  color: var(--muted-teal);
}

.nav-link.active {
  font-weight: bold;
  border-bottom: 1px solid var(--muted-teal);
  padding-bottom: 2px;
}

/* ════════════════════════════════════════════════
   UTILITY
════════════════════════════════════════════════ */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hidden { display: none !important; }

.fkc-logo {
  display: block;
  margin: 0 auto 0.75rem;
}

.fkc-logo--large svg {
  width: 96px;
  height: 80px;
}

.fkc-logo--small svg {
  width: 54px;
  height: 45px;
  margin-bottom: 0.4rem;
}

.section-subtitle {
  color: var(--muted-teal);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
  font-style: italic;
}

/* ════════════════════════════════════════════════
   SECTION HEADER BLOCK (shared)
════════════════════════════════════════════════ */
.section-header {
  background: linear-gradient(135deg, #00873f 0%, #003e1f 55%, #000d06 100%);
  color: var(--honeydew);
  text-align: center;
  padding: 3.5rem 2rem 2.5rem;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  letter-spacing: 0.04em;
  color: var(--honeydew);
  margin-bottom: 0.6rem;
}

.section-header.light {
  background: linear-gradient(135deg, #1e4a30 0%, #01110a 55%, #000000 100%);
}

.section-header.light h2 {
  color: var(--honeydew);
}

.section-header.light .section-subtitle {
  color: var(--muted-teal);
}

/* ════════════════════════════════════════════════
   SECTION 1 — HOME / HERO
════════════════════════════════════════════════ */
#home {
  background: linear-gradient(135deg, #ffffff 0%, #d5f2e3 40%, #4a9e7a 100%);
}

.hero-overlay {
  background:
    linear-gradient(
      to bottom,
      rgba(107, 79, 58, 0.25) 0%,
      rgba(107, 79, 58, 0.10) 55%,
      rgba(107, 79, 58, 0.30) 100%
    ),
    url('Images/FkcHomePageBackground.jpg')
    center center / cover no-repeat;
  text-align: center;
  padding: 7rem 2rem 6rem;
  color: var(--honeydew);
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero-content h1 {
  font-family: var(--font-serif);
  font-size: 3.48rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  white-space: nowrap;
}

.hero-content .tagline {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.90);
  opacity: 1;
  font-style: italic;
  max-width: 560px;
  margin: 0 auto;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* ── Home Body ── */
.home-body {
  padding: 3.5rem 2rem 4rem;
}

.about-card {
  background-color: #fff;
  border-left: 5px solid var(--deep-forest);
  border-radius: 4px;
  padding: 2rem 2.5rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 2px 10px rgba(0,62,31,0.08);
}

.about-card h2 {
  font-family: var(--font-serif);
  color: var(--deep-forest);
  font-size: 1.7rem;
  margin-bottom: 1rem;
}

.about-card p {
  color: #2a2a2a;
  margin-bottom: 0.75rem;
}

/* ── Values Row ── */
.values-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.value-card {
  background-color: var(--deep-forest);
  color: var(--honeydew);
  border-radius: 6px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: 0 3px 12px rgba(0,0,0,0.15);
  transition: transform var(--transition);
}

.value-card:hover {
  transform: translateY(-4px);
}

.value-card.serene-bg,
.value-card.volunteer-bg,
.value-card.historic-bg {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.value-card.serene-bg h3,
.value-card.volunteer-bg h3,
.value-card.historic-bg h3 {
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.8);
}

.value-card.serene-bg .value-icon,
.value-card.volunteer-bg .value-icon,
.value-card.historic-bg .value-icon {
  align-self: flex-start;
  margin-top: -10%;
  margin-bottom: 0.75rem;
}

.value-card.serene-bg {
  background:
    linear-gradient(
      rgba(107, 79, 58, 0.45),
      rgba(107, 79, 58, 0.45)
    ),
    url('Images/FkcSereneSetting.jpg') center center / cover no-repeat;
}

.value-card.volunteer-bg {
  background:
    linear-gradient(
      rgba(107, 79, 58, 0.45),
      rgba(107, 79, 58, 0.45)
    ),
    url('Images/Volunteer-Led.jpg') center center / cover no-repeat;
}

.value-card.historic-bg {
  background:
    linear-gradient(
      rgba(107, 79, 58, 0.45),
      rgba(107, 79, 58, 0.45)
    ),
    url('Images/HistoricLegacy.jpg') center center / cover no-repeat;
}

.value-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.value-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--muted-teal);
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.9rem;
  color: var(--honeydew);
  opacity: 0.85;
}

/* ── Gallery ── */
.gallery-section {
  text-align: center;
}

.gallery-section h2 {
  font-family: var(--font-serif);
  color: var(--deep-forest);
  font-size: 1.9rem;
  margin-bottom: 0.4rem;
}

.gallery-section > .section-subtitle {
  color: #555;
  margin-bottom: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.gallery-item {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0,62,31,0.12);
}

.gallery-img {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  position: relative;
  cursor: pointer;
  transition: transform var(--transition);
  overflow: hidden;
}

.gallery-img:hover {
  transform: scale(1.03);
}

.gallery-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 55%);
  pointer-events: none;
}

.gallery-caption {
  position: absolute;
  bottom: 0.6rem;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-size: 0.82rem;
  font-style: italic;
  letter-spacing: 0.03em;
  z-index: 1;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
  padding: 0 0.5rem;
}

/* ════════════════════════════════════════════════
   SECTION 2 — REQUEST A PLOT
════════════════════════════════════════════════ */
#request-plot {
  background: linear-gradient(135deg, #ffffff 0%, #c2ecd5 40%, #3a8a66 100%);
}

#request-plot .section-header {
  background: linear-gradient(180deg, #a67c5b 0%, #6b4f3a 50%, #2e1f12 100%);
}

.form-container {
  padding: 3rem 2rem 4rem;
}

.form-intro {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  text-align: center;
  color: #333;
  font-size: 1rem;
}

.patron-form {
  max-width: 580px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  padding: 2.5rem 2.5rem 2rem;
  box-shadow: 0 4px 20px rgba(0,62,31,0.12);
  border-top: 5px solid var(--deep-forest);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--deep-forest);
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.required { color: var(--brick-ember); }
.optional { color: #888; font-weight: 400; font-size: 0.85rem; }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 2px solid #c8ddd2;
  border-radius: 5px;
  font-family: var(--font-sans);
  font-size: 0.97rem;
  color: var(--onyx);
  background-color: #f9fdfb;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--muted-teal);
  box-shadow: 0 0 0 3px rgba(115,186,155,0.2);
  background-color: #fff;
}

.form-group input.invalid,
.form-group textarea.invalid {
  border-color: var(--brick-ember);
  box-shadow: 0 0 0 3px rgba(186,45,11,0.12);
}

.field-error {
  display: block;
  color: var(--brick-ember);
  font-size: 0.82rem;
  margin-top: 0.3rem;
  min-height: 1rem;
}

.form-actions {
  margin-top: 1.75rem;
  text-align: center;
}

.btn-primary {
  background-color: var(--deep-forest);
  color: var(--honeydew);
  border: none;
  border-radius: 5px;
  padding: 0.85rem 2.5rem;
  font-size: 1rem;
  font-family: var(--font-serif);
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
}

.btn-primary:hover {
  background-color: #005a2c;
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

.form-success {
  background-color: #e8f7ef;
  border: 2px solid var(--muted-teal);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
  color: var(--deep-forest);
}

.form-success span {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
  color: var(--muted-teal);
}

.form-success p {
  font-size: 0.97rem;
  line-height: 1.6;
}

/* ════════════════════════════════════════════════
   SECTION 3 — EVENTS
════════════════════════════════════════════════ */
#events {
  background: linear-gradient(135deg, #1a3d28 0%, #01110a 50%, #000000 100%);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  padding: 3rem 2rem 4rem;
}

.event-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition);
}

.event-card:hover {
  transform: translateY(-5px);
}

.event-badge {
  padding: 0.6rem 1rem;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
}

.event-badge.memorial {
  background-color: var(--deep-forest);
  color: var(--honeydew);
}

.event-badge.july {
  background-color: var(--brick-ember);
  color: #fff;
}

.event-badge.cleanup {
  background-color: var(--muted-teal);
  color: var(--onyx);
}

.event-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-date-display {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
  font-family: var(--font-serif);
  color: var(--deep-forest);
}

.event-month {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.event-day {
  font-size: 2rem;
  font-weight: bold;
  line-height: 1;
  color: var(--brick-ember);
}

.event-year {
  font-size: 0.9rem;
  color: #777;
}

.event-body h3 {
  font-family: var(--font-serif);
  color: var(--deep-forest);
  font-size: 1.15rem;
  margin-bottom: 0.7rem;
}

.event-body p {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.event-details {
  list-style: none;
  border-top: 1px solid #e0ede6;
  padding-top: 0.9rem;
  margin-top: auto;
}

.event-details li {
  font-size: 0.85rem;
  color: #555;
  padding: 0.2rem 0;
}

.event-details li strong {
  color: var(--deep-forest);
}

/* ════════════════════════════════════════════════
   SECTION 4 — INSPIRATION
════════════════════════════════════════════════ */
#inspiration {
  background: linear-gradient(180deg, #b8e8d0 0%, #73ba9b 50%, #2e7a58 100%);
}

#inspiration .section-header {
  background: linear-gradient(135deg, #d5f2e3 0%, #73ba9b 50%, #2e7a58 100%);
}

#inspiration .section-header h2,
#inspiration .section-header .cross-icon {
  color: var(--deep-forest);
}

#inspiration .section-header .section-subtitle {
  color: var(--onyx);
}

.inspiration-body {
  padding: 1rem 2rem 4rem;
}

.inspiration-quote {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
  padding: 2rem;
  border-top: 2px solid var(--muted-teal);
  border-bottom: 2px solid var(--muted-teal);
}

.inspiration-quote blockquote {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--onyx);
  font-style: italic;
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.inspiration-quote cite {
  color: var(--onyx);
  font-size: 0.9rem;
  font-style: normal;
}

.inspiration-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-bottom: 3rem;
}

.insp-card {
  background: linear-gradient(180deg, #a67c5b 0%, #6b4f3a 50%, #2e1f12 100%);
  border: 1px solid rgba(166,124,91,0.5);
  border-radius: 8px;
  padding: 2rem 1.75rem;
  text-align: center;
  transition: filter var(--transition), transform var(--transition);
}

.insp-card:hover {
  filter: brightness(1.12);
  transform: translateY(-3px);
}

.insp-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.insp-card h3 {
  font-family: var(--font-serif);
  color: var(--honeydew);
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
}

.insp-card p {
  color: rgba(213,242,227,0.8);
  font-size: 0.93rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.insp-card p strong {
  color: var(--honeydew);
}

.btn-inspiration {
  display: inline-block;
  background-color: var(--brick-ember);
  color: #fff;
  text-decoration: none;
  padding: 0.65rem 1.6rem;
  border-radius: 5px;
  font-size: 0.92rem;
  font-family: var(--font-serif);
  letter-spacing: 0.04em;
  transition: background-color var(--transition), transform var(--transition);
}

.btn-inspiration:hover {
  background-color: #94230a;
  transform: translateY(-2px);
}

.inspiration-footer-verse {
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
  padding: 2rem;
  background: linear-gradient(180deg, #a67c5b 0%, #6b4f3a 50%, #2e1f12 100%);
  border-radius: 8px;
  border-left: 4px solid var(--brick-ember);
}

.inspiration-footer-verse p {
  font-family: var(--font-serif);
  color: var(--honeydew);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 0.5rem;
}

.inspiration-footer-verse span {
  color: var(--muted-teal);
  font-size: 0.85rem;
}

/* ════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════ */
#site-footer {
  background: linear-gradient(135deg, #1e4a30 0%, #01110a 55%, #000000 100%);
  color: var(--honeydew);
  text-align: center;
  padding: 2.5rem 2rem;
  border-top: 3px solid var(--muted-teal);
}

.fkc-logo--footer svg {
  width: 72px;
  height: 60px;
  margin-bottom: 0.5rem;
}

.footer-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
  color: #fff;
}

.footer-sub {
  font-size: 0.87rem;
  color: var(--muted-teal);
  margin-bottom: 0.4rem;
}

.footer-copy {
  font-size: 0.78rem;
  color: #5a7a68;
}

/* ════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════ */
@media (max-width: 900px) {
  :root { --nav-width: 110px; }

  .values-row,
  .events-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .inspiration-cards {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 2.64rem;
    white-space: normal;
  }
}

@media (max-width: 600px) {
  :root { --nav-width: 90px; }

  .hero-content h1 { font-size: 2.04rem; white-space: normal; }
  .hero-overlay { padding: 5rem 1.5rem 4rem; }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .patron-form {
    padding: 1.75rem 1.25rem 1.5rem;
  }

  #side-nav ul { gap: 1.8rem; }
  .nav-link { font-size: 0.7rem; }

  .section-header h2 { font-size: 1.7rem; }
}

/* ════════════════════════════════════════════════
   LIGHTBOX
════════════════════════════════════════════════ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: min(90vw, calc(100vw - var(--nav-width) - 4rem));
  max-height: 80vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.7);
}

.lightbox-caption {
  color: var(--honeydew);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  text-align: center;
  opacity: 0.9;
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: calc(var(--nav-width) + 1rem);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 2001;
  opacity: 0.85;
  transition: opacity var(--transition), transform var(--transition);
}

.lightbox-close svg {
  width: 54px;
  height: 45px;
  display: block;
}

.lightbox-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

[data-lightbox-src] {
  cursor: zoom-in;
}
