:root {
  color-scheme: light;
}

body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
}

/* ----- LIGHT THEME ----- */
html.light {
  background: url("cederberg_waterfall.jpeg") no-repeat center center fixed;
  background-size: cover;
  color: #333;
}

html.light .content-wrapper,
html.light .section {
  background-color: rgba(201, 187, 162, 0.8);
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

html.light nav {
  background-color: rgba(186, 166, 124, 0.6);
  color: #333;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

html.light nav a,
html.light h1, html.light h2, html.light h3,
html.light h4, html.light h5, html.light h6,
html.light p, html.light a {
  color: #333;
}

html.light a:hover {
  color: #ab5b38;
}

html.light .coach-card img {
  border: none;
}

/* ----- DARK THEME ----- */
html.dark {
  background: url("chalky_gym.jpeg") no-repeat center center fixed;
  background-size: cover;
  background-color: #1c1b18;
  color: #eee;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

html.dark .content-wrapper,
html.dark .section,
html.dark footer {
  background-color: rgba(50, 50, 50, 0.55);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  color: #eee;
}

html.dark nav {
  background-color: rgba(50, 50, 50, 0.8);
  color: #eee;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

html.dark nav a,
html.dark h1, html.dark h2, html.dark h3,
html.dark h4, html.dark h5, html.dark h6,
html.dark p, html.dark a {
  color: #eee;
}

html.dark a:hover {
  color: #e49d6b;
}

html.dark .testimonial {
  background: #5c3d2e;
  color: #f5f5f5;
}

html.dark .coach-card img {
  border: 2px solid #f5e1c0;
}

/* ----- SHARED STYLES ----- */
.content-wrapper {
  max-width: 900px;
  margin: auto;
  padding: 2rem;
}

nav {
  padding: 1rem;
  text-align: center;
  margin: 1rem auto;
  max-width: 900px;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

nav a {
  text-decoration: none;
  font-weight: bold;
}

nav a:hover,
nav ul li a:hover {
  text-decoration: underline;
}

.theme-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: auto;
  padding: 0.5em;
  color: inherit;
}

.theme-toggle:hover {
  opacity: 0.7;
}

h1, h2, h3 {
  margin-bottom: 1rem;
}
h4 {
  text-align: center;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  font-weight: 500;
}

.section {
  padding: 2rem;
  margin-bottom: 2rem;
}

p {
  text-align: left;
  line-height: 1.6;
  margin-bottom: 1.2em;
}

/* ----- COACH CARDS ----- */
.coach-card {
  text-align: center;
  max-width: 320px;
  margin: 2rem auto;
  border-radius: 18px;
  overflow: hidden;
  background-color: var(--card-bg, rgba(50, 50, 50, 0.55));
  transition: box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  cursor: pointer;
}

.coach-info {
  padding: 1rem;
  text-align: left;
  display: block;
}

.coach-header {
  cursor: pointer;
  padding: 1rem;
}

.coach-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}
.coach-card h3 {
  margin-top: 0.5rem;
}

.coach-toggle {
  background: none;
  border: none;
  color: #e49d6b;
  font-weight: bold;
  cursor: pointer;
  margin-top: 0.5rem;
}

.hidden {
  display: none;
}

.hide-btn {
  margin-top: 1rem;
  padding: 0.5rem;
  background-color: #e49d6b;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.hide-btn:hover {
  background-color: #e49d6b;
}
/* ----- FAQ TOGGLE ----- */
.faq-item {
  margin-bottom: 1.5rem;
}

.toggle-answer {
  background-color: #ab5b38;
  color: white;
  border: none;
  padding: 0.5em 1em;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 0.5em;
}

.toggle-answer:hover {
  opacity: 0.9;
}

.faq-answer {
  margin-top: 1em;
}

/* ----- RESPONSIVE STYLES ----- */
@media (max-width: 600px) {
  p {
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
  }

  .content-wrapper {
    padding: 1rem;
  }

  .section {
    padding: 1.5rem;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }
}
