/* =============================================
   JAM Mission – Holistic Off-Grid Experiences
   Color scheme: Green, Navy Blue, Gold, Brown
   ============================================= */

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

:root {
  --green-dark: #2d5016;
  --green-mid: #4a7c28;
  --green-light: #7cb342;
  --navy: #1a3a5c;
  --navy-light: #2d5f8a;
  --gold: #c49b2d;
  --gold-light: #d4b44a;
  --brown-dark: #3d2f1e;
  --brown: #8d6e4a;
  --brown-light: #c4a97d;
  --cream: #faf8f4;
  --glass-bg: rgba(255,255,255,0.5);
  --glass-border: rgba(255,255,255,0.6);
  --glass-shadow: rgba(0,0,0,0.08);
  --text: #2c2c2c;
  --text-light: #5a5a5a;
  --white: #ffffff;
  --radius: 16px;
  --transition: 0.3s ease;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }

/* ---- Top Bar ---- */
.top-bar {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 8px 20px;
  font-size: 0.85rem;
}
.top-bar a { color: var(--gold-light); }
.top-bar a:hover { color: var(--white); }

/* ---- Navigation ---- */
nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 14px 20px;
  background: var(--white);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
  flex-wrap: wrap;
}
.nav-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
  margin-right: 20px;
  letter-spacing: 1px;
}
.nav-logo img { height: 44px; }
nav a {
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  transition: background var(--transition), color var(--transition);
}
nav a:hover, nav a.active {
  background: rgba(26,58,92,0.08);
  color: var(--navy);
}

/* ---- Hero ---- */
.hero {
  text-align: center;
  padding: 80px 24px 40px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--green-dark) 100%);
  color: var(--white);
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: var(--gold-light);
}
.hero .tagline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  max-width: 680px;
  margin: 0 auto 24px;
  opacity: 0.9;
}
.hero .verse {
  max-width: 600px;
  margin: 0 auto;
  font-style: italic;
  font-size: 0.95rem;
  opacity: 0.8;
  line-height: 1.7;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 20px;
}
.hero .verse cite { display: block; margin-top: 8px; font-style: normal; color: var(--gold-light); font-weight: 600; }
.hero .cta-row { margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- Section ---- */
section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px;
}
section > h2, .section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Biblical Foundation ---- */
.biblical {
  background: var(--brown-dark);
  color: var(--cream);
  padding: 60px 24px;
}
.biblical h2 { color: var(--gold); margin-bottom: 36px; text-align: center; font-size: 2rem; }
.biblical-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.biblical-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 28px;
}
.biblical-card h3 { color: var(--gold-light); font-size: 1.1rem; margin-bottom: 12px; }
.biblical-card blockquote {
  font-style: italic;
  line-height: 1.7;
  font-size: 0.92rem;
  opacity: 0.9;
  margin-bottom: 12px;
}
.biblical-card cite { font-style: normal; color: var(--gold); font-size: 0.85rem; font-weight: 600; }

/* ---- Cards Grid ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  justify-items: center;
}
.card {
  width: 100%;
  max-width: 360px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 16px var(--glass-shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(0,0,0,0.06);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card-body {
  padding: 20px;
}
.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.card p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.6;
}
.card .badge {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 11px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.btn-primary { background: var(--green-mid); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-light); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-light); color: var(--white); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline-white {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-outline-white:hover { background: var(--white); color: var(--navy); }

/* ---- Service Detail ---- */
.service-detail {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px;
}
.service-detail img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 28px;
}
.service-detail h2 { font-size: 2rem; color: var(--navy); margin-bottom: 16px; }
.service-detail .about {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px var(--glass-shadow);
}
.service-detail .about h3 { color: var(--navy); margin-bottom: 12px; }
.service-detail .about p { color: var(--text-light); line-height: 1.7; }
.service-detail ul { list-style: none; padding: 0; }
.service-detail ul li {
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  color: var(--text-light);
  position: relative;
}
.service-detail ul li::before { content: "\2714"; position: absolute; left: 0; color: var(--green-light); font-weight: bold; }

/* ---- Forms ---- */
.form-container {
  max-width: 520px;
  margin: 60px auto;
  padding: 36px;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px var(--glass-shadow);
}
.form-container h2 { text-align: center; color: var(--navy); margin-bottom: 24px; }
.form-container label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--text); margin-bottom: 6px; margin-top: 16px; }
.form-container input,
.form-container textarea,
.form-container select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 10px;
  background: var(--cream);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-container input:focus,
.form-container textarea:focus,
.form-container select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,58,92,0.12);
}
.form-container textarea { resize: vertical; min-height: 120px; }
.form-container .btn { width: 100%; margin-top: 24px; padding: 14px; font-size: 1rem; }
.form-message { text-align: center; padding: 12px; border-radius: 10px; margin-top: 16px; font-weight: 600; display: none; }
.form-message.success { display: block; background: rgba(76,175,80,0.15); color: var(--green-dark); }
.form-message.error { display: block; background: rgba(244,67,54,0.1); color: #c62828; }

/* ---- Cart ---- */
.cart-container { max-width: 700px; margin: 40px auto; padding: 0 24px; }
.cart-container h2 { text-align: center; color: var(--navy); margin-bottom: 28px; }
.cart-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 24px; margin-bottom: 12px;
  background: var(--white); border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px; box-shadow: 0 1px 8px var(--glass-shadow);
}
.cart-item .item-info h4 { font-size: 1.05rem; color: var(--text); }
.cart-item .item-price { font-weight: 700; color: var(--navy); font-size: 1.1rem; }
.cart-item .remove-btn { background: none; border: none; color: #c62828; cursor: pointer; font-size: 1.2rem; padding: 4px 8px; border-radius: 8px; }
.cart-total { text-align: right; padding: 20px 24px; margin-top: 16px; font-size: 1.3rem; font-weight: 700; color: var(--navy); border-top: 2px solid rgba(0,0,0,0.08); }
.cart-actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--text-light); }

/* ---- Booking Calendar ---- */
.booking-section { max-width: 800px; margin: 0 auto; padding: 48px 24px; }
.booking-section h2 { text-align: center; color: var(--navy); margin-bottom: 8px; font-size: 1.8rem; }
.booking-section .subtitle { text-align: center; color: var(--text-light); margin-bottom: 32px; }
.calendar-wrapper { background: var(--white); border: 1px solid rgba(0,0,0,0.06); border-radius: var(--radius); padding: 28px; margin-bottom: 28px; box-shadow: 0 2px 16px var(--glass-shadow); }
.cal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.cal-header h3 { color: var(--navy); font-size: 1.2rem; }
.cal-header button { background: none; border: 2px solid var(--navy); color: var(--navy); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; font-weight: bold; transition: all var(--transition); display: flex; align-items: center; justify-content: center; }
.cal-header button:hover { background: var(--navy); color: var(--white); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-grid .day-label { font-weight: 700; font-size: 0.8rem; color: var(--text-light); padding: 8px 0; }
.cal-grid .day { padding: 10px 4px; border-radius: 10px; cursor: pointer; font-size: 0.9rem; transition: all var(--transition); border: 2px solid transparent; }
.cal-grid .day:hover { background: rgba(26,58,92,0.08); }
.cal-grid .day.today { font-weight: 700; color: var(--navy); }
.cal-grid .day.selected { background: var(--navy); color: var(--white); border-color: var(--navy); }
.cal-grid .day.past { color: #ccc; pointer-events: none; }
.cal-grid .day.empty { pointer-events: none; }
.booking-form { margin-top: 24px; }
.booking-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.booking-form label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--text); margin-bottom: 6px; margin-top: 16px; }
.booking-form input, .booking-form select, .booking-form textarea { width: 100%; padding: 12px 16px; border: 1px solid rgba(0,0,0,0.12); border-radius: 10px; background: var(--cream); font-size: 0.95rem; font-family: inherit; color: var(--text); outline: none; transition: border-color var(--transition); }
.booking-form input:focus, .booking-form select:focus, .booking-form textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26,58,92,0.12); }
.booking-form textarea { resize: vertical; min-height: 80px; }
.selected-date-display { text-align: center; padding: 12px; background: rgba(26,58,92,0.06); border-radius: 10px; color: var(--navy); font-weight: 600; margin-top: 16px; }

/* ---- Blog ---- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 28px; }
.blog-card { background: var(--white); border: 1px solid rgba(0,0,0,0.06); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 16px var(--glass-shadow); transition: transform var(--transition), box-shadow var(--transition); }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.1); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-body { padding: 20px 24px; }
.blog-card .date { font-size: 0.8rem; color: var(--gold); font-weight: 600; margin-bottom: 8px; }
.blog-card h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: 8px; }
.blog-card p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 16px; }
.blog-post { max-width: 760px; margin: 0 auto; padding: 48px 24px; }
.blog-post img.hero-img { width: 100%; height: 380px; object-fit: cover; border-radius: var(--radius); margin-bottom: 32px; }
.blog-post .meta { font-size: 0.85rem; color: var(--gold); font-weight: 600; margin-bottom: 16px; }
.blog-post h1 { font-size: 2rem; color: var(--navy); margin-bottom: 24px; }
.blog-post .content { color: var(--text); line-height: 1.8; font-size: 1.05rem; }
.blog-post .content p { margin-bottom: 20px; }
.blog-post .content h2 { color: var(--navy); font-size: 1.4rem; margin: 32px 0 12px; }
.blog-post .back-link { display: inline-block; margin-top: 32px; }

/* ---- About / Mission Page ---- */
.page-header {
  background: linear-gradient(160deg, var(--navy) 0%, var(--green-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 60px 24px 48px;
}
.page-header h1 { font-size: 2.4rem; color: var(--gold-light); margin-bottom: 12px; }
.page-header p { max-width: 600px; margin: 0 auto; opacity: 0.9; }
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px;
}
.page-content h2 { color: var(--navy); font-size: 1.5rem; margin: 32px 0 12px; }
.page-content p { color: var(--text); line-height: 1.8; margin-bottom: 20px; }

/* ---- Footer ---- */
footer {
  background: var(--navy);
  color: var(--white);
  padding: 48px 24px 24px;
}
.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}
.footer-col h4 { color: var(--gold-light); margin-bottom: 16px; font-size: 1rem; }
.footer-col a { display: block; color: rgba(255,255,255,0.75); padding: 4px 0; font-size: 0.9rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--gold-light); }
.footer-col p { font-size: 0.9rem; color: rgba(255,255,255,0.75); line-height: 1.6; }
.footer-social { display: flex; gap: 16px; margin-top: 12px; }
.footer-social a { color: var(--white); font-size: 1rem; padding: 8px 12px; background: rgba(255,255,255,0.1); border-radius: 8px; }
.footer-social a:hover { background: var(--gold); color: var(--white); }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.82rem; color: rgba(255,255,255,0.5); }

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .hero { padding: 50px 20px 30px; }
  nav { gap: 2px; padding: 10px 12px; }
  nav a { padding: 6px 8px; font-size: 0.8rem; }
  .nav-logo { margin-right: 10px; font-size: 1.1rem; }
  .cards { grid-template-columns: 1fr; }
  .card img { height: 180px; }
  .service-detail img { height: 220px; }
  .biblical-grid { grid-template-columns: 1fr; }
  .booking-form .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
}
