/* ============ Design tokens ============ */
:root {
  --color-bg: #ffffff;
  --color-alt: #f5f2ec;
  --color-text: #2b2b2b;
  --color-muted: #6b6b6b;
  --color-primary: #7c4d2a;   /* warm brown */
  --color-primary-dark: #5f3a1f;
  --color-accent: #c9a227;    /* gold */
  --radius: 10px;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  --max-width: 1080px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

/* ============ Base ============ */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-text);
  line-height: 1.6;
  background: var(--color-bg);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

h1, h2, h3 { line-height: 1.2; color: var(--color-primary-dark); }
h2 { font-size: 1.9rem; margin-bottom: 1.5rem; text-align: center; }
h3 { font-size: 1.2rem; margin: 0 0 0.5rem; }

a { color: var(--color-primary); }

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

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #eee;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--color-primary-dark);
}
.brand-logo { width: 44px; height: 44px; display: block; }

.nav-list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.nav-list a:hover { color: var(--color-primary); border-color: var(--color-accent); }

.lang-toggle {
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  background: var(--color-primary);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  line-height: 1;
  transition: background 0.2s;
}
.lang-toggle:hover { background: var(--color-primary-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-primary-dark);
  display: block;
}

/* ============ Hero ============ */
.hero {
  /* Dark overlay keeps text readable over the photo.
     Swap images/hero.svg with your own photo (same filename) to change it. */
  background:
    linear-gradient(rgba(60, 35, 15, 0.55), rgba(60, 35, 15, 0.65)),
    url("images/hero.jpg") center / cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 6rem 0;
}
.hero h1 { color: #fff; font-size: 2.6rem; margin: 0 0 1rem; }
.hero-tagline { font-size: 1.25rem; margin: 0 0 0.5rem; opacity: 0.95; }
.hero-times { font-size: 1rem; opacity: 0.85; margin: 0 0 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, background 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--color-accent); color: #2b2b2b; }
.btn-outline { border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--color-primary-dark); }

/* ============ Sections ============ */
.section { padding: 4rem 0; }
.section-alt { background: var(--color-alt); }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); align-items: start; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.about-photo {
  width: 100%;
  height: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.believe-card { margin-top: 1.5rem; }

.time { font-weight: 700; color: var(--color-primary); margin: 0.25rem 0; }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding-left: 1.75rem; position: relative; margin-bottom: 0.5rem; }
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

/* ============ Events ============ */
.events { list-style: none; padding: 0; margin: 0; max-width: 720px; margin: 0 auto; }
.event {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
.event-date {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  background: var(--color-primary);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.event-date .day { font-size: 1.5rem; font-weight: 700; line-height: 1; }
.event-date .mon { font-size: 0.75rem; letter-spacing: 1px; }
.event-body h3 { margin-bottom: 0.25rem; }
.event-body p { margin: 0; color: var(--color-muted); }

/* ============ Footer ============ */
.site-footer {
  background: var(--color-primary-dark);
  color: #f5f2ec;
  text-align: center;
  padding: 2rem 0;
}
.site-footer a { color: var(--color-accent); text-decoration: none; }
.site-footer p { margin: 0.25rem 0; }

/* ============ Active nav link ============ */
.nav-list a.active { color: var(--color-primary); border-color: var(--color-accent); }

/* ============ Page header (sub-pages) ============ */
.page-header {
  /* Bible photo background with a dark overlay for readable text.
     Swap images/bible-header.jpg (same filename) to change it. */
  background:
    linear-gradient(rgba(50, 30, 12, 0.62), rgba(50, 30, 12, 0.74)),
    url("images/bible-header.jpg") center / cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 4.5rem 0;
}
.page-header h1 { color: #fff; font-size: 2.2rem; margin: 0 0 0.75rem; }
.page-header p { margin: 0; opacity: 0.95; }

/* ============ Bible page ============ */
.bible-intro { text-align: center; max-width: 640px; margin: 0 auto 1.5rem; color: var(--color-muted); }

/* Reader controls */
.reader-controls {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.reader-controls label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--color-muted);
  text-transform: uppercase;
}
.reader-controls select {
  font: inherit;
  padding: 0.55rem 0.75rem;
  border: 1px solid #d9d2c4;
  border-radius: 8px;
  background: #fff;
  color: var(--color-text);
  min-width: 150px;
  cursor: pointer;
}

.reader-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 760px;
  margin: 0 auto 1.25rem;
}
.reader-title { margin: 0; text-align: center; flex: 1; font-size: 1.5rem; }
.btn-nav {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: #fff;
  padding: 0.5rem 1rem;
  white-space: nowrap;
}
.btn-nav:hover { background: var(--color-primary); color: #fff; }

.reader-output {
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.9;
  font-size: 1.05rem;
}
.reader-output .bverse { margin: 0.35rem 0; }
.reader-output .vn {
  color: var(--color-accent);
  font-weight: 700;
  margin-right: 0.15rem;
}
.reader-status { text-align: center; color: var(--color-muted); margin-top: 1rem; }

.app-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============ Verse banner (Bible photo) ============ */
.verse-banner {
  background:
    linear-gradient(rgba(50, 30, 12, 0.55), rgba(50, 30, 12, 0.65)),
    url("images/bible-verse.jpg") center / cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 4rem 1.25rem;
}
.verse-banner-text {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.5;
}
.verse-banner-ref {
  margin: 1rem 0 0;
  font-weight: 600;
  letter-spacing: 1px;
  opacity: 0.9;
}

/* ============ Weekly teaching list ============ */
.teachings-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
}
.teaching { padding: 1.5rem 1.75rem; }
.teaching .date {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-muted);
}
.teaching h3 { margin: 0.35rem 0 0.15rem; font-size: 1.25rem; }
.teaching .verse {
  margin: 0 0 0.6rem;
  color: var(--color-primary);
  font-style: italic;
  font-weight: 600;
}
.teaching .teaching-text { margin: 0; color: #444; }

/* ============ Responsive ============ */
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }

  .nav-toggle { display: flex; }
  .nav-list {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid #eee;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-list.open { max-height: 320px; }
  .nav-list li { border-top: 1px solid #f0f0f0; }
  .nav-list a { display: block; padding: 0.9rem 1.25rem; border: 0; }
  .nav-list .lang-toggle { margin: 0.75rem 1.25rem; }
}
