/* ========================= VARIABLES ========================= */
:root {
  --color-text: #2f2b23;
  --color-bg: #f1e4c8;
  --color-accent: #5b3e1e;
  --color-accent-hover: #7a5328;
  --color-dark-bg: #1e1b17;
  --color-dark-text: #f0e6d8;
  --color-nav-bg: rgba(241,228,200,0.94);
  --color-dark-nav-bg: rgba(40,35,30,0.95);
  --transition-speed: 0.3s;
  --max-section-width: 1000px;
}

/* ========================= GLOBAL RESET ========================= */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Merriweather', serif;
  color: var(--color-text);
  background: url('../images/wood.jpg') no-repeat center center fixed;
  background-size: cover;
  transition: background 0.4s, color 0.4s;
}
body.dark-mode {
  background: var(--color-dark-bg);
  color: var(--color-dark-text);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.38);
  z-index: -1;
}

/* ========================= NAVIGATION ========================= */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--color-nav-bg);
  backdrop-filter: blur(6px);
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  border-bottom: 2px solid rgba(0,0,0,0.15);
  transition: 0.4s;
}
body.dark-mode nav { background: var(--color-dark-nav-bg); }

.nav-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #3a2f1f;
}
body.dark-mode .nav-title { color: var(--color-dark-text); }

.nav-links {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
}
.nav-links a {
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #3a2f1f;
  transition: var(--transition-speed);
}
.nav-links a:hover { opacity: 0.6; }
body.dark-mode .nav-links a { color: var(--color-dark-text); }

/* Hamburger & Mobile Menu */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger div { width: 25px; height: 3px; background: #3a2f1f; transition: var(--transition-speed); }
body.dark-mode .hamburger div { background: var(--color-dark-text); }

.mobile-menu {
  display: flex;
  flex-direction: column;
  background: rgba(241,228,200,0.96);
  border-bottom: 2px solid rgba(0,0,0,0.2);
  padding: 20px;
  position: fixed;
  top: 64px;
  height: calc(100vh - 64px);
  transform: translateY(-120%);
  transition: var(--transition-speed);
}
body.dark-mode .mobile-menu { background: rgba(40,35,30,0.96); }
.mobile-menu a {
  color: #3a2f1f;
  padding: 10px 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-decoration: none;
}
body.dark-mode .mobile-menu a { color: var(--color-dark-text); }
.mobile-menu.active { transform: translateY(0); }

@media(max-width: 820px) { .nav-links { display: none; } .hamburger { display: flex; } }

/* Dark Mode Toggle */
.dark-mode-toggle { cursor: pointer; font-size: 1.4rem; margin-left: 20px; user-select: none; transition: var(--transition-speed); }
.dark-mode-toggle:hover { opacity: 0.7; }

/* ========================= HERO ========================= */
.hero {
  padding: 140px 20px 80px;
  text-align: center;
}

.hero-content {
  max-width: 850px;
  margin: auto;
  background: rgba(241,228,200,0.9);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
  transition: var(--transition-speed);
}
body.dark-mode .hero-content { background: rgba(50,45,40,0.9); }

.hero img {
  width: 280px;
  max-width: 80%;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.85);
  box-shadow: 0 6px 14px rgba(0,0,0,0.5);
  margin-bottom: 20px;
}

.hero h1 { font-size: 2.6rem; margin-bottom: 12px; }

/* Hero Subtitle */
.hero-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 12px;
  opacity: 0.9;
}

/* Hero Description (who it's for & mission statement) */
.hero-description {
  font-size: 1.1rem;
  font-weight: 500;
  opacity: 0.85;
  margin-top: 12px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.hero p { font-size: 1.15rem; font-family: 'Montserrat', margin-bottom: 20px; }


/* CTA BUTTONS */
.cta-button {
  display: inline-block;
  padding: 14px 28px;
  background: var(--color-accent);
  color: var(--color-bg);
  border-radius: 10px;
  font-size: 1.1rem;
  text-decoration: none;
  transition: var(--transition-speed);
  margin: 10px auto;
}
.cta-button:hover { background: var(--color-accent-hover); }

.cta-section, .pricing-summary, .hero-content, section p { text-align: center; }
@media(max-width: 600px) { .cta-button { width: 90%; max-width: 300px; } }

/* ========================= SECTIONS ========================= */
section {
  max-width: var(--max-section-width);
  margin: 50px auto;
  padding: 50px;
  background: rgba(241,228,200,0.92);
  border-radius: 16px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.28);
  transition: var(--transition-speed);
}
body.dark-mode section { background: rgba(45,40,35,0.9); }
h2 { text-align: center; font-size: 2rem; margin-bottom: 25px; }

/* ========================= GALLERY ========================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: var(--max-section-width);
  margin: 40px auto;
  padding: 0 20px;
}

.gallery-grid figure {
  background: rgba(241,228,200,0.9);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  transition: transform 0.3s, background 0.3s;
}
body.dark-mode .gallery-grid figure { background: rgba(45,40,35,0.9); }

.gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.gallery-grid figure:hover img { transform: scale(1.05); }

.gallery-grid figcaption {
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  padding: 10px 5px;
  font-size: 0.95rem;
  color: #3a2f1f;
}
body.dark-mode .gallery-grid figcaption { color: var(--color-dark-text); }

.gallery-desc {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 0 10px;
  text-align: center;
  color: #3a2f1f;
}
body.dark-mode .gallery-desc { color: var(--color-dark-text); }
.gallery-desc.open { max-height: 500px; margin-top: 8px; padding: 10px; }

/* ========================= FOOTER ========================= */
footer {
  background: #3c2e1e;
  color: white;
  text-align: center;
  padding: 25px;
  margin-top: 50px;
}
body.dark-mode footer { background: #1d1a17; }

/* ========================= CONTACT ========================= */
.contact-card {
  max-width: 550px;
  margin: auto;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  background: rgba(255,255,255,0.85);
}
body.dark-mode .contact-card { background: rgba(60,55,50,0.75); }

.contact-card input, .contact-card textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #8b7f6b;
  font-size: 1rem;
  background: #ffffff;
}
body.dark-mode .contact-card input,
body.dark-mode .contact-card textarea { background: #2d2925; color: var(--color-dark-text); border: 1px solid #b7a996; }

button {
  width: 100%;
  padding: 14px;
  font-size: 1.1rem;
  border-radius: 10px;
  background: var(--color-accent);
  color: var(--color-bg);
  border: 2px solid #8b7f6b;
  cursor: pointer;
}
button:hover { background: var(--color-accent-hover); }
.about-mission {
  max-width: 900px;
  margin: 4rem auto;
  padding: 0 1.5rem;
  text-align: center;
}

.about-mission h2 {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 1.5rem;
}

.about-mission p {
  font-family: 'Merriweather', serif;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

/* ========================= ABOUT / TEAM ========================= */
.about-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.instructor { max-width: 400px; text-align: center; }
.about-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  margin-bottom: 15px;
}

/* ========================= TRAINING PROGRAMS ========================= */
.training-programs { max-width: 900px; margin: auto; }
.training-item { margin-bottom: 40px; padding: 25px; border-left: 4px solid #c58b2b; }
.training-item p { line-height: 1.7; max-width: 700px; }
.scripture { font-style: italic; opacity: 0.8; margin-bottom: 15px; }

/* ========================= SPACING FIX ========================= */
.pricing-summary, .cta-section, .scripture {
  max-width: 900px;
  margin: 60px auto;
  padding: 40px 20px;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.pricing-summary p, .cta-section p, .scripture p { margin-bottom: 20px; font-size: 1.05rem; line-height: 1.6; }

/* ========================= RESPONSIVE FIXES ========================= */
@media(max-width: 600px) {
  .gallery-grid img { height: 150px; }
  .gallery-grid figcaption { font-size: 0.85rem; }
}
/* ========================= PRICING SECTION ========================= */
#pricing {
  max-width: 850px;        /* narrower for readability */
  margin: 50px auto;       /* spacing from other sections */
  padding: 40px 30px;      /* slightly less padding than generic sections */
  text-align: left;        /* left-align the text */
  line-height: 1.7;        /* more spacing between lines */
  border-radius: 16px;
  background: rgba(241,228,200,0.92);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
  transition: 0.4s;
}

body.dark-mode #pricing {
  background: rgba(45,40,35,0.9);
}

#pricing h3 {
  margin-top: 25px;
  font-size: 1.25rem;
}

#pricing p {
  margin-top: 12px;
}
