/* ========================================
   Bereans Bible Study — Styles
   White + Warm Brown + Teal
   ======================================== */

:root {
  --white: #FFFFFF;
  --warm-white: #FDF8F2;
  --brown-dark: #3B2316;
  --brown: #5C3D2E;
  --accent: #5F8F8F;
  --accent-hover: #4D7A7A;
  --brown-muted: #7A6552;
  --accent-light: #D4E4E4;
  --text-dark: #2A2118;
  --text-muted: #8B7D6B;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Lora', serif;
  line-height: 1.3;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; }

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

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- Navigation ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  background: var(--brown-dark);
  backdrop-filter: blur(8px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0,0,0,0.15);
  transition: box-shadow 0.3s;
}

.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.15); }

.nav-container {
  max-width: 960px; margin: 0 auto;
  padding: 0 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: 'Lora', serif;
  font-weight: 700; font-size: 1.35rem;
  color: var(--white); letter-spacing: -0.01em;
}
.nav-logo:hover { color: var(--white); }

.nav-menu {
  display: flex; list-style: none; gap: 2rem;
}

.nav-link {
  font-size: 0.9rem; font-weight: 500;
  color: rgba(255,255,255,0.85); transition: color 0.2s;
  position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--accent);
  transition: width 0.3s;
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { width: 100%; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.hamburger, .hamburger::before, .hamburger::after {
  display: block; width: 22px; height: 2px;
  background: var(--white); transition: all 0.3s;
  position: relative;
}
.hamburger::before, .hamburger::after { content: ''; position: absolute; left: 0; }
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle.active .hamburger { background: transparent; }
.nav-toggle.active .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-toggle.active .hamburger::after { top: 0; transform: rotate(-45deg); }

/* ---- Hero ---- */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background-image: url('images/hero.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: var(--brown-dark);
  text-align: center; padding: 6rem 1.25rem 4rem;
  position: relative; overflow: hidden;
}

.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.40) 50%,
    rgba(0, 0, 0, 0.50) 100%
  );
}

.hero-content { position: relative; z-index: 1; }

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--white); margin-bottom: 0.75rem;
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: rgba(255,255,255,0.92); margin-bottom: 2rem;
  font-family: 'Lora', serif; font-style: italic;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

.hero-cta {
  display: inline-block; padding: 0.85rem 2.25rem;
  background: var(--accent); color: var(--white);
  border-radius: 6px; font-weight: 600; font-size: 0.95rem;
  transition: background 0.2s, transform 0.2s;
}
.hero-cta:hover { background: var(--accent-hover); color: var(--white); transform: translateY(-1px); }

/* ---- Sections ---- */
.section { padding: 5rem 0; background: var(--white); }
.section-alt { background: var(--warm-white); }

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--brown); text-align: center;
  margin-bottom: 0.5rem;
}
.section-title::after {
  content: ''; display: block; width: 48px; height: 3px;
  background: var(--accent); margin: 0.75rem auto 0;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center; color: var(--text-muted);
  margin-bottom: 2.5rem; font-size: 1.05rem;
}

/* ---- About ---- */
.about-content { max-width: 680px; margin: 2rem auto 0; }
.about-content p { margin-bottom: 1.25rem; font-size: 1.05rem; }

/* ---- Schedule ---- */
.schedule-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem; max-width: 720px; margin: 0 auto 1.5rem;
}

.schedule-card {
  background: var(--white); border: 1px solid rgba(92,61,46,0.12);
  border-radius: 10px; padding: 1.5rem; text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.schedule-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.schedule-card.next {
  border-color: var(--accent-light);
  border-left: 4px solid var(--accent);
  box-shadow: 0 0 0 1px rgba(95,143,143,0.15);
}
.schedule-card.next .schedule-label { display: inline-block; }

.schedule-label {
  display: none; background: var(--accent); color: var(--white);
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  padding: 0.2rem 0.6rem; border-radius: 3px; margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}
.schedule-day {
  font-family: 'Lora', serif; font-size: 1.15rem;
  color: var(--brown); font-weight: 600;
}
.schedule-date {
  font-size: 0.9rem; color: var(--text-muted); margin-top: 0.25rem;
}
.schedule-time {
  font-size: 0.95rem; color: var(--text-dark); font-weight: 500;
  margin-top: 0.6rem; padding-top: 0.6rem;
  border-top: 1px solid rgba(92,61,46,0.1);
}
.schedule-fellowship {
  font-size: 0.8rem; color: var(--text-muted); font-style: italic;
  margin-top: 0.25rem;
}

.schedule-note {
  text-align: center; font-size: 1rem;
  color: var(--brown); font-weight: 500;
}

/* ---- Location ---- */
.location-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 2rem; margin-top: 2rem;
}

.location-info h3 {
  font-size: 1.35rem; color: var(--brown); margin-bottom: 0.5rem;
}
.location-info address {
  font-style: normal; font-size: 1.05rem;
  color: var(--brown-muted); margin-bottom: 1.25rem; line-height: 1.6;
}

.location-links { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.7rem 1.35rem; border-radius: 6px;
  font-weight: 600; font-size: 0.9rem;
  transition: all 0.2s; cursor: pointer; border: none;
}
.btn-outline {
  border: 2px solid var(--brown); color: var(--brown); background: transparent;
}
.btn-outline:hover { background: var(--brown); color: var(--white); }

.btn-primary {
  background: var(--accent); color: var(--white);
}
.btn-primary:hover { background: var(--accent-hover); color: var(--white); }

.location-map {
  border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
}
.location-map iframe { display: block; }

/* ---- Accordion (What We Believe) ---- */
.accordion { max-width: 720px; margin: 0 auto; }

.accordion-item {
  background: var(--white); border: 1px solid rgba(92,61,46,0.10);
  border-radius: 8px; margin-bottom: 0.75rem;
  overflow: hidden; transition: box-shadow 0.2s;
}
.accordion-item:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.05); }

.accordion-header {
  width: 100%; display: flex; align-items: center;
  justify-content: space-between; padding: 1.15rem 1.35rem;
  background: var(--brown-dark); border: none; cursor: pointer;
  font-family: 'Lora', serif; font-size: 1.1rem;
  color: var(--white); font-weight: 600;
  transition: background 0.2s;
  border-radius: 7px 7px 0 0;
}
.accordion-header:hover { background: var(--brown); }
.accordion-header:focus-visible {
  outline: 2px solid var(--accent); outline-offset: -2px;
}

.accordion-item.open .accordion-header {
  background: var(--white); color: var(--brown);
  border-bottom: 2px solid var(--accent-light);
}

.accordion-icon {
  font-size: 1.4rem; font-weight: 300; color: rgba(255,255,255,0.7);
  transition: transform 0.3s, color 0.3s;
}
.accordion-item.open .accordion-icon { transform: rotate(45deg); color: var(--brown-muted); }

.accordion-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  padding: 0 1.35rem;
}
.accordion-item.open .accordion-body {
  max-height: 600px; padding: 0 1.35rem 1.35rem;
}

.accordion-body p {
  font-size: 1rem; margin-bottom: 1rem; color: var(--text-dark);
}
.accordion-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1rem; margin: 0.75rem 0;
  background: rgba(95,143,143,0.06); border-radius: 0 6px 6px 0;
  font-style: italic; font-size: 0.95rem; color: var(--text-dark);
}
.accordion-body cite {
  display: block; font-style: normal;
  font-size: 0.85rem; color: var(--accent);
  margin-top: 0.35rem; font-weight: 500;
}

.believe-note {
  text-align: center; font-size: 0.85rem;
  color: var(--text-muted); margin-top: 1.5rem; font-style: italic;
}

/* ---- Join Us ---- */
.join-text {
  text-align: center; font-size: 1.15rem;
  max-width: 480px; margin: 0 auto 2rem;
  color: var(--brown-muted);
}

.join-form { max-width: 440px; margin: 0 auto; }

.join-input-group {
  display: flex; gap: 0.5rem;
}

.join-input {
  flex: 1; padding: 0.85rem 1rem;
  border: 2px solid rgba(92,61,46,0.25);
  border-radius: 6px; font-size: 1rem;
  font-family: 'Inter', sans-serif;
  background: var(--white); color: var(--text-dark);
  transition: border-color 0.2s;
}
.join-input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(95,143,143,0.15);
}
.join-input::placeholder { color: #b5a99a; }

.join-disclaimer {
  text-align: center; font-size: 0.8rem;
  color: var(--text-muted); margin-top: 0.75rem;
}

/* ---- Footer ---- */
.footer {
  background: var(--brown-dark); color: rgba(255,255,255,0.8);
  padding: 2.5rem 0; text-align: center;
}

.footer-nav {
  display: flex; justify-content: center; gap: 1.5rem;
  flex-wrap: wrap; margin-bottom: 1rem;
}
.footer-nav a {
  color: var(--accent); font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--accent-light); }

.footer-copy { font-size: 0.85rem; }

/* ---- Scroll Animations ---- */
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1; transform: translateY(0);
}

/* ---- Focus Styles ---- */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---- Responsive ---- */
@media (min-width: 768px) {
  .location-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

@media (max-width: 767px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed; top: 64px; left: 0; right: 0;
    background: var(--brown-dark); flex-direction: column;
    padding: 1.5rem 1.25rem; gap: 0;
    transform: translateY(-100%); opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
    border-bottom: 1px solid rgba(0,0,0,0.15);
  }
  .nav-menu.open {
    transform: translateY(0); opacity: 1; pointer-events: all;
  }
  .nav-link {
    display: block; padding: 0.75rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .nav-link::after { display: none; }

  .join-input-group { flex-direction: column; }

  .section { padding: 3.5rem 0; }
}
