/* Sandbek Concert Ministries — Hand-written CSS */

/* === Font === */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/lora-v35-latin-700.woff2') format('woff2');
}

/* === Custom Properties === */
:root {
  --brown: #483600;
  --brown-light: #6b5a2f;
  --gold: #BDA66B;
  --gold-light: #d4c48f;
  --cream: #FAF6EF;
  --cream-dark: #E3CFB6;
  --blue: #473FAD;
  --blue-light: #5c54c4;
  --text: #3a3a3a;
  --white: #ffffff;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --max-width: 1100px;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-light); text-decoration: underline; }

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

h1, h2, h3 {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  color: var(--brown);
  line-height: 1.3;
}

h1 { font-size: 2rem; margin-bottom: 1rem; }
h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

/* === Skip Link === */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--brown);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 1000;
}
.skip-link:focus { top: 0; }

/* === Container === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === Navigation === */
.site-header {
  background: var(--brown);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}

.nav-brand {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.25rem;
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}
.nav-brand:hover { color: var(--gold-light); text-decoration: none; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
}

.nav-links a {
  color: var(--cream);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  transition: background 0.2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.15);
  text-decoration: none;
  color: var(--gold-light);
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { cursor: pointer; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--brown);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 180px;
  padding: 0.5rem 0;
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  border-radius: 0;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--brown);
    padding: 1rem;
    gap: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 1rem; }
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    padding-left: 1rem;
  }
  .nav-dropdown:hover .nav-dropdown-menu { display: none; }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
}

/* === Hero Section === */
.hero {
  background: linear-gradient(135deg, var(--brown) 0%, var(--brown-light) 100%);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}
.hero h1 { color: var(--gold); font-size: 2.5rem; }
.hero p { color: var(--cream); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* === Page Header === */
.page-header {
  background: linear-gradient(135deg, var(--brown) 0%, var(--brown-light) 100%);
  color: var(--white);
  padding: 2rem 0;
  text-align: center;
  margin-bottom: 2rem;
}
.page-header h1 { color: var(--gold); margin-bottom: 0.25rem; }
.page-header p { color: var(--cream-dark); margin: 0; }

/* === Main Content === */
main {
  padding: 2rem 0;
  min-height: 60vh;
}

.content-section {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 2rem;
}

/* === Card Grid === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.card-body { padding: 1.5rem; }
.card-body h3 { color: var(--brown); }

/* === Product Card === */
.product-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.product-card img {
  width: 180px;
  flex-shrink: 0;
  border-radius: var(--radius);
}
.product-info { flex: 1; }
.product-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.track-list {
  list-style: none;
  columns: 2;
  gap: 0.25rem;
  margin: 0.75rem 0;
  font-size: 0.9rem;
}
.track-list li { padding: 0.15rem 0; }
.track-list li.demo { color: var(--blue); font-weight: 600; }

.price-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--brown);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-right: 0.5rem;
}

@media (max-width: 600px) {
  .product-card { flex-direction: column; align-items: center; text-align: center; }
  .product-card img { width: 200px; }
  .track-list { columns: 1; }
}

/* === Audio Player === */
audio {
  width: 100%;
  margin: 0.5rem 0;
  border-radius: var(--radius);
}

/* === Episode Controls === */
.episode-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--cream);
  border-radius: var(--radius);
}
.episode-search-wrap { flex: 1; min-width: 200px; }
.episode-search-wrap input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
}
.episode-search-wrap input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(71,63,173,0.15);
}
.episode-filter-wrap select {
  padding: 0.6rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
}
.episode-count-wrap {
  font-size: 0.85rem;
  color: var(--brown-light);
  white-space: nowrap;
}

/* === Series Header === */
.series-header {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue);
  padding: 0.75rem 0 0.25rem;
  margin-top: 1rem;
  border-bottom: 2px solid var(--gold);
}
.series-header:first-child { margin-top: 0; }

/* === Episode List === */
.episode {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}
.episode:last-child { border-bottom: none; }
.episode-info { flex: 1; min-width: 0; }
.episode-info h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.episode-info audio { max-width: 100%; }
.episode-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.episode-code {
  display: inline-block;
  background: var(--cream-dark);
  color: var(--brown);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: monospace;
  margin-right: 0.25rem;
  vertical-align: middle;
}

.episode-current {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  margin: -0.5rem -1rem;
}

@media (max-width: 600px) {
  .episode { flex-direction: column; align-items: flex-start; }
  .episode-actions { align-self: flex-end; }
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.1s;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }

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

.btn-gold {
  background: var(--gold);
  color: var(--brown);
}
.btn-gold:hover { background: var(--gold-light); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--brown);
  color: var(--brown);
}
.btn-outline:hover { background: var(--brown); color: var(--white); }

.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; }

/* === Form === */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 0.35rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(71,63,173,0.15);
}
textarea { resize: vertical; min-height: 120px; }

/* Honeypot */
.hp-field { position: absolute; left: -9999px; }

/* === Blockquote / Testimonials === */
.testimonial {
  border-left: 4px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 1rem 0;
  background: var(--cream);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.testimonial p { margin-bottom: 0.5rem; font-style: italic; }
.testimonial cite { font-size: 0.85rem; color: var(--brown-light); font-style: normal; }

/* === Scripture / Highlight Box === */
.scripture-box {
  text-align: center;
  padding: 1.5rem;
  background: var(--cream);
  border-radius: var(--radius);
  margin: 1.5rem 0;
  color: var(--blue);
  font-weight: 600;
  font-style: italic;
}

/* === Themes / Topics Grid === */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.topic-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}
.topic-card h3 {
  color: var(--blue);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.topic-card ul { list-style: none; font-size: 0.9rem; }
.topic-card li { padding: 0.15rem 0; }

/* === Workshop Table === */
.workshop-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
.workshop-table th {
  background: var(--gold);
  color: var(--brown);
  padding: 0.75rem;
  text-align: left;
  font-size: 0.95rem;
}
.workshop-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}
.workshop-table td:first-child {
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
  width: 180px;
}
.workshop-table ul { margin: 0; padding-left: 1.25rem; }
.workshop-table li { margin-bottom: 0.25rem; }

/* === Station List === */
.station-list {
  list-style: none;
  margin: 1rem 0;
}
.station-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}
.station-list li:last-child { border-bottom: none; }

/* === Donate Box === */
.donate-box {
  text-align: center;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

/* === Two-Column Layout === */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 700px) {
  .two-col { grid-template-columns: 1fr; }
}

/* === Bio Image Float === */
.bio-img {
  float: right;
  margin: 0 0 1rem 1.5rem;
  max-width: 250px;
  border-radius: var(--radius);
}
@media (max-width: 600px) {
  .bio-img { float: none; margin: 0 auto 1rem; display: block; }
}

/* === Footer === */
.site-footer {
  background: var(--brown);
  color: var(--cream-dark);
  padding: 2rem 0;
  margin-top: 3rem;
  font-size: 0.85rem;
}
.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}
.footer-section h3 {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.footer-section a { color: var(--cream-dark); }
.footer-section a:hover { color: var(--gold); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 1.5rem auto 0;
  padding: 1rem 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  font-size: 0.8rem;
}

/* === 404 Page === */
.error-page {
  text-align: center;
  padding: 4rem 1rem;
}
.error-page h1 { font-size: 4rem; color: var(--gold); }
.error-page p { font-size: 1.1rem; margin-bottom: 2rem; }

/* === Utility === */
.text-center { text-align: center; }
.text-blue { color: var(--blue); }
.text-brown { color: var(--brown); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
