/* ============================================================
   Cleft of the Rock Ranch — Main Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Josefin+Slab:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=Open+Sans:wght@300;400;600;700&display=swap');

/* --- Variables -------------------------------------------- */
:root {
  --cream:     #f1ebdf;
  --cream-dk:  #e8dece;
  --gold:      #cdac69;
  --gold-dk:   #b8954f;
  --teal:      #5ce1b7;
  --teal-dk:   #3dc9a0;
  --dark:      #16222a;
  --dark-mid:  #2a3a45;
  --text:      #2e2e2e;
  --text-lt:   #5a5a5a;
  --white:     #ffffff;
  --font-head: 'Josefin Slab', Georgia, serif;
  --font-body: 'Open Sans', sans-serif;
  --nav-h:     80px;
  --radius:    4px;
  --shadow:    0 2px 12px rgba(0,0,0,0.12);
}

/* --- Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* --- Typography -------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.25;
  color: var(--dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-weight: 600; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.gold  { color: var(--gold); }
.teal  { color: var(--teal); }

/* --- Layout helpers --------------------------------------- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-lg { padding: 7rem 0; }
.text-center { text-align: center; }
.text-left   { text-align: left; }

/* --- Buttons ---------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-dk); border-color: var(--gold-dk); }
.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline-gold:hover { background: var(--gold); color: var(--dark); }
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); border-color: var(--white); }
.btn-teal {
  background: var(--teal);
  color: var(--dark);
  border-color: var(--teal);
}
.btn-teal:hover { background: var(--teal-dk); border-color: var(--teal-dk); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark);
  height: var(--nav-h);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.site-logo img {
  height: 52px;
  width: auto;
}
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
}
.site-nav a {
  display: block;
  padding: 0.5rem 1rem;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}
.site-nav a:hover,
.site-nav .active a {
  color: var(--gold);
  background: rgba(255,255,255,0.06);
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  opacity: 0.55;
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 5rem 1.5rem;
  max-width: 780px;
}
.hero-content h1 {
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  line-height: 1.3;
}
.hero-content h1 strong {
  color: var(--gold);
  display: block;
  font-size: 1.15em;
  letter-spacing: 0.04em;
}
.hero-verse {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
}

/* ============================================================
   MISSION BAND
   ============================================================ */
.mission-band {
  background: var(--white);
  padding: 4rem 0;
  text-align: center;
}
.mission-band h2 {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  color: var(--dark-mid);
  max-width: 700px;
  margin: 0 auto 1.5rem;
  font-weight: 400;
  font-style: italic;
}
.mission-band .mission-label {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.btn-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}

/* ============================================================
   GALLERY GRID
   ============================================================ */
.gallery-section {
  background: var(--cream);
  padding: 4rem 0;
}
.gallery-section h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}
.gallery-section .section-sub {
  text-align: center;
  color: var(--text-lt);
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}
.gallery-grid {
  columns: 3;
  column-gap: 12px;
}
.gallery-grid .gallery-item {
  break-inside: avoid;
  margin-bottom: 12px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gallery-grid .gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.35s ease, filter 0.35s;
}
.gallery-grid .gallery-item:hover img {
  transform: scale(1.03);
  filter: brightness(0.88);
}
.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: var(--white);
  font-size: 0.82rem;
  padding: 1.5rem 0.75rem 0.6rem;
  font-family: var(--font-head);
  font-style: italic;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-grid .gallery-item:hover .gallery-caption { opacity: 1; }

/* Lightbox */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 999;
  align-items: center;
  justify-content: center;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  line-height: 1;
}
.lightbox-close:hover { opacity: 1; }

/* ============================================================
   DARK CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(160deg, var(--dark) 10%, var(--dark-mid) 90%);
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}
.cta-banner h1, .cta-banner h2 {
  color: var(--white);
  margin-bottom: 1rem;
}
.cta-banner p { color: rgba(255,255,255,0.8); max-width: 540px; margin: 0 auto 1.5rem; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.page-intro {
  background: var(--white);
  padding: 4rem 0;
  text-align: center;
}
.page-intro p {
  max-width: 720px;
  margin: 1rem auto 0;
  color: var(--text-lt);
  font-size: 1.05rem;
}

.about-section {
  padding: 5rem 0;
}
.about-section:nth-child(even) { background: var(--white); }
.about-section:nth-child(odd)  { background: var(--cream); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about-text h2 { margin-bottom: 1.25rem; }
.about-text p { color: var(--text-lt); }
.about-text .signature {
  margin-top: 1.5rem;
  font-family: var(--font-head);
  font-style: italic;
  color: var(--gold-dk);
}

.about-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.about-photos img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
}
.about-photos img.wide {
  grid-column: 1 / -1;
  height: 260px;
}

/* Testimonials */
.testimonials {
  background: var(--cream-dk);
  padding: 5rem 0;
}
.testimonials h2 { text-align: center; margin-bottom: 3rem; }
.testimonial-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 820px;
  margin: 0 auto;
}
.testimonial {
  background: var(--white);
  padding: 2rem 2.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
}
.testimonial blockquote {
  font-style: italic;
  color: var(--text-lt);
  font-size: 0.97rem;
  margin-bottom: 1rem;
  line-height: 1.8;
}
.testimonial cite {
  font-family: var(--font-head);
  font-weight: 600;
  font-style: normal;
  font-size: 0.95rem;
  color: var(--dark);
}
.testimonial cite span {
  display: block;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--text-lt);
}

/* ============================================================
   DONATE PAGE
   ============================================================ */
.donate-options {
  background: var(--cream);
  padding: 5rem 0;
}
.donate-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.donate-card {
  background: var(--white);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s, transform 0.25s;
}
.donate-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
  transform: translateY(-3px);
}
.donate-card .donate-icon {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.donate-card h3 { margin-bottom: 0.75rem; }
.donate-card p { color: var(--text-lt); font-size: 0.95rem; }
.donate-card .btn { margin-top: 1.25rem; }
.donate-card address {
  font-style: normal;
  color: var(--text-lt);
  font-size: 0.92rem;
  margin-top: 0.5rem;
  line-height: 1.8;
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col h4 {
  color: var(--gold);
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col p, .footer-col address {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.65);
}
.footer-col a:hover { color: var(--gold); }
.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.25rem;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.social-links a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(205,172,105,0.1);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .gallery-grid { columns: 2; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .donate-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  .gallery-grid { columns: 1; }
  .about-photos { grid-template-columns: 1fr; }
  .about-photos img.wide { height: 220px; }
  .donate-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-grid .footer-col:last-child { grid-column: 1; }
  .hero { min-height: 360px; }
  .hero-content { padding: 3.5rem 1.25rem; }

  /* Mobile nav */
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--dark);
    border-top: 1px solid rgba(255,255,255,0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .site-nav.open { max-height: 240px; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 0.5rem 0.75rem 1rem; }
  .site-nav a { padding: 0.65rem 0.75rem; }
}
