/* ============================================================
   First Love Community Fellowship — styles.css
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:       #FAF7F2;
  --warm-white:  #FDF9F4;
  --parchment:   #EDE5D8;
  --gold:        #B8934A;
  --gold-light:  #D4A85A;
  --deep:        #1C1612;
  --brown:       #2a1f16;
  --muted:       #7A6558;
  --rule:        rgba(184,147,74,0.3);
  --serif:       'Cormorant Garamond', Georgia, serif;
  --sans:        'Jost', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--deep);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3rem;
  height: 76px;
  background: #FAF7F2;
  border-bottom: 2px solid var(--rule);
  box-shadow: 0 2px 20px rgba(28,22,18,0.10);
}

.navbar-logo {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none; flex-shrink: 0;
}
.navbar-logo img {
  height: 46px; width: auto; display: block;
}
.navbar-logo-text {
  display: flex; flex-direction: column; line-height: 1.25;
}
.navbar-logo-text strong {
  font-family: var(--serif);
  font-size: 1rem; font-weight: 600;
  color: #1C1612; letter-spacing: 0.02em;
}
.navbar-logo-text span {
  font-size: 0.6rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
}

.navbar-links {
  display: flex; align-items: center; gap: 2rem;
  list-style: none;
}
.navbar-links li a {
  font-family: var(--sans);
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #1C1612 !important;
  text-decoration: none !important;
  transition: color 0.2s;
  opacity: 1 !important;
}
.navbar-links li a:hover { color: var(--gold) !important; }

.navbar-links li a.btn-donate {
  background: var(--gold) !important;
  color: #ffffff !important;
  padding: 0.5rem 1.4rem;
  border-radius: 2px;
  font-weight: 600 !important;
  transition: background 0.2s;
}
.navbar-links li a.btn-donate:hover {
  background: #9a7a3a !important;
  color: #ffffff !important;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid; place-items: center;
  text-align: center;
  padding: 8rem 2rem 6rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(184,147,74,0.08) 0%, transparent 70%),
    var(--cream);
  position: relative;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23b8934a' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-logo {
  height: 80px; width: auto;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 2px 8px rgba(28,22,18,0.12));
}
.hero-overline {
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.8rem;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--deep);
  margin-bottom: 0.2em;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-sub {
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 300; font-style: italic;
  color: var(--muted);
  max-width: 520px;
  margin: 1.4rem auto 2.8rem;
  line-height: 1.6;
}
.hero-sub2 {
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 300; font-style: italic;
  color: var(--muted);
  max-width: 720px;
  margin: 1.4rem auto 2.8rem;
  line-height: 1.6;
}

.hero-cta {
  display: inline-flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--deep); color: var(--cream);
  padding: 0.85rem 2.4rem;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.15em;
  text-transform: uppercase; text-decoration: none;
  border-radius: 2px; transition: background 0.2s;
}
.btn-primary:hover { background: var(--brown); }
.btn-outline {
  display: inline-block;
  border: 1px solid var(--gold); color: var(--gold);
  padding: 0.85rem 2.4rem;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.15em;
  text-transform: uppercase; text-decoration: none;
  border-radius: 2px; transition: all 0.2s;
}
.btn-outline:hover { background: var(--gold); color: #fff; }

/* ── SECTIONS ── */
section { padding: 7rem 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 0.65rem; font-weight: 500; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 300; line-height: 1.15;
  color: var(--deep); margin-bottom: 1.2rem;
}
.section-title em { font-style: italic; color: var(--gold); }
.section-desc {
  font-family: var(--serif);
  font-size: 1.1rem; font-weight: 300; font-style: italic;
  color: var(--muted); max-width: 540px;
  margin-bottom: 4rem; line-height: 1.6;
}

/* ── WHY HOME CHURCH ── */
#why { background: var(--warm-white); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 3rem;
}
.why-card { padding-top: 1.2rem; }
.why-card::before {
  content: ''; display: block;
  width: 32px; height: 1px;
  background: var(--gold); margin-bottom: 1.4rem;
}
.why-card h3 {
  font-family: var(--serif);
  font-size: 1.35rem; font-weight: 600;
  color: var(--deep); margin-bottom: 0.7rem;
}
.why-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.75; }

/* ── HOW WE GATHER ── */
#gather { background: var(--deep); }
#gather .section-title { color: var(--cream); }
#gather .section-desc { color: rgba(250,247,242,0.5); }
#gather .section-label { color: var(--gold-light); }
.gather-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
}
.gather-card { border-top: 1px solid rgba(184,147,74,0.3); padding-top: 1.8rem; }
.gather-num {
  font-family: var(--serif); font-size: 2.8rem; font-weight: 300;
  color: rgba(184,147,74,0.25); line-height: 1; margin-bottom: 0.8rem;
}
.gather-card h3 {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 600;
  color: var(--cream); margin-bottom: 0.6rem;
}
.gather-card p { font-size: 0.88rem; color: rgba(250,247,242,0.55); line-height: 1.75; }

/* ── PHOTO STRIP ── */
.photo-strip {
  position: relative; height: 50vh; overflow: hidden;
  width: 60%; margin: 4rem auto;
}
.photo-strip .slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.7s ease;
}
.photo-strip .slide.active { opacity: 1; }
.photo-strip .slide img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  filter: grayscale(20%) sepia(10%);
}
.slide-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(28,22,18,0.45); border: none; color: var(--cream);
  font-size: 2.2rem; line-height: 1; width: 48px; height: 48px;
  display: grid; place-items: center; cursor: pointer;
  transition: background 0.2s; z-index: 2; border-radius: 2px;
}
.slide-btn:hover { background: rgba(28,22,18,0.75); }
.slide-prev { left: 1.2rem; }
.slide-next { right: 1.2rem; }
.slide-dots {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.5rem; z-index: 2;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(250,247,242,0.45); cursor: pointer; transition: background 0.2s;
}
.dot.active { background: var(--gold); }

/* ── FIVE-FOLD MINISTRY ── */
#ministry { background: var(--cream); }
.ministry-intro {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: start; margin-bottom: 4rem;
}
.ministry-verse {
  font-family: var(--serif);
  font-size: 1.2rem; font-weight: 300; font-style: italic;
  color: var(--muted);
  border-left: 2px solid var(--gold);
  padding-left: 2rem; line-height: 1.8;
}
.ministry-verse cite {
  display: block; margin-top: 0.8rem;
  font-size: 0.75rem; font-style: normal;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); font-family: var(--sans); font-weight: 500;
}
.ministry-body { font-size: 0.92rem; color: var(--muted); line-height: 1.8; }
.fivefold-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--rule);
}
.fold-item {
  padding: 2.5rem 1.8rem;
  border-right: 1px solid var(--rule);
  transition: background 0.25s;
}
.fold-item:last-child { border-right: none; }
.fold-item:hover { background: var(--parchment); }
.fold-icon {
  font-family: var(--serif); font-size: 2.4rem; font-weight: 300;
  color: var(--gold); margin-bottom: 1rem; line-height: 1;
}
.fold-item h3 {
  font-family: var(--serif); font-size: 1.1rem; font-weight: 600;
  color: var(--deep); margin-bottom: 0.6rem;
}
.fold-item p { font-size: 0.82rem; color: var(--muted); line-height: 1.7; }

/* ── RESOURCES ── */
#resources { background: var(--parchment); }
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.resource-card {
  background: var(--warm-white);
  padding: 2rem; border-radius: 2px;
  display: flex; align-items: flex-start; gap: 1.2rem;
  transition: box-shadow 0.2s, transform 0.2s; cursor: pointer;
}
.resource-card:hover { box-shadow: 0 8px 32px rgba(74,55,40,0.12); transform: translateY(-2px); }
.resource-icon {
  flex-shrink: 0; width: 40px; height: 40px;
  background: var(--gold); border-radius: 2px;
  display: grid; place-items: center;
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.08em;
  color: #fff; text-transform: uppercase;
}
.resource-card h4 {
  font-family: var(--serif); font-size: 1.05rem; font-weight: 600;
  color: var(--deep); margin-bottom: 0.3rem;
}
.resource-card p { font-size: 0.82rem; color: var(--muted); }

/* ── EVENTS ── */
#events { background: var(--warm-white); }
.events-list { display: flex; flex-direction: column; }
.event-row {
  display: grid; grid-template-columns: 160px 1fr auto;
  align-items: center; gap: 2rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--rule);
}
.event-row:first-child { border-top: 1px solid var(--rule); }
.event-time {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold); line-height: 1.5;
}
.event-time strong {
  display: block; font-family: var(--serif);
  font-size: 1.2rem; font-weight: 600; letter-spacing: 0;
  color: var(--deep); text-transform: none;
}
.event-info h4 {
  font-family: var(--serif); font-size: 1.2rem; font-weight: 600;
  color: var(--deep); margin-bottom: 0.25rem;
}
.event-info p { font-size: 0.85rem; color: var(--muted); }
.event-tag {
  font-size: 0.65rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 0.35rem 0.9rem;
  border: 1px solid var(--rule); color: var(--muted);
  border-radius: 2px; white-space: nowrap;
}
.event-tag.featured { background: var(--gold); color: #fff; border-color: var(--gold); }

/* ── BLOG ── */
#blog { background: var(--cream); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 3rem;
}
.blog-card { text-decoration: none; display: block; }
.blog-card-img {
  width: 100%; height: 220px;
  background: var(--parchment); overflow: hidden;
  margin-bottom: 1.4rem; border-radius: 2px;
}
.blog-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(15%) sepia(8%);
  transition: transform 0.5s ease;
}
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-date {
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem;
}
.blog-card h3 {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 600;
  color: var(--deep); margin-bottom: 0.5rem; line-height: 1.3;
}
.blog-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.7; }
.blog-read {
  display: inline-block; margin-top: 0.8rem;
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold); text-decoration: none;
}
.blog-read::after { content: ' →'; }

/* ── CONNECT ── */
#connect {
  background: var(--deep); text-align: center; padding: 7rem 2rem;
}
#connect .section-label { color: var(--gold-light); }
#connect .section-title { color: var(--cream); margin: 0 auto 1rem; max-width: 600px; }
#connect p {
  color: rgba(250,247,242,0.5); font-size: 0.95rem;
  max-width: 480px; margin: 0 auto 2.5rem;
}
#connect .btn-primary { background: var(--gold); color: #fff; }
#connect .btn-primary:hover { background: var(--gold-light); }

/* ── FOOTER ── */
.site-footer {
  background: #100D0A;
  color: rgba(250,247,242,0.35);
  padding: 2rem 4rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  font-size: 0.75rem; letter-spacing: 0.05em;
}
.footer-nav a {
  color: rgba(250,247,242,0.35) !important;
  text-decoration: none;
  margin-left: 1.5rem; transition: color 0.2s;
}
.footer-nav a:hover { color: var(--gold) !important; }

/* ── MODAL BASE (shared by blog modal) ── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(28,22,18,0.75);
  backdrop-filter: blur(6px);
  place-items: center;
}
.modal-overlay.open { display: grid; }
.modal {
  background: var(--warm-white);
  max-width: 480px; width: 90%;
  padding: 3rem 3rem 2.5rem;
  border-radius: 4px; position: relative;
  animation: fadeUp 0.3s ease;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.modal-close {
  position: absolute; top: 1.2rem; right: 1.5rem;
  background: none; border: none; font-size: 1.4rem;
  color: var(--muted); cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--deep); }
.modal h2 {
  font-family: var(--serif); font-size: 2rem; font-weight: 300;
  color: var(--deep); margin-bottom: 0.5rem;
}
.modal h2 em { font-style: italic; color: var(--gold); }
.modal p { font-size: 0.9rem; color: var(--muted); line-height: 1.7; margin-bottom: 2rem; }

/* ── BLOG MODAL ── */
.modal-blog {
  max-width: 680px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 0 0 2.5rem;
}
.blog-modal-img {
  width: 100%; height: 240px;
  object-fit: cover; border-radius: 4px 4px 0 0;
  display: block;
}
.modal-blog .blog-date,
.modal-blog h2,
.modal-blog .blog-modal-body {
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}
.modal-blog .blog-date { margin-top: 1.5rem; }
.modal-blog h2 { margin-top: 0.4rem; margin-bottom: 1.25rem; }
.blog-modal-body p {
  font-size: 0.92rem; color: var(--muted);
  line-height: 1.85; margin-bottom: 1.1rem;
}
.modal-blog .modal-close { top: 0.8rem; right: 1rem; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .navbar { padding: 0 1.5rem; }
  .navbar-links { gap: 1rem; }
  .navbar-links li:not(:last-child):not(:nth-last-child(2)) { display: none; }
  .ministry-intro { grid-template-columns: 1fr; gap: 2rem; }
  .fivefold-grid { grid-template-columns: 1fr 1fr; }
  .fivefold-grid .fold-item:nth-child(2n) { border-right: none; }
  .fivefold-grid .fold-item { border-bottom: 1px solid var(--rule); }
  .event-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .site-footer { flex-direction: column; padding: 1.5rem; }
}

a.resource-card {
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
a.resource-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
