@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500&family=DM+Serif+Display&display=swap');

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

:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #666;
  --border: #e0e0e0;
  --accent: #1a4fa0;
  --accent-light: #eef2fa;
  --max: 860px;
  --nav-h: 56px;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

/* Navigation */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  min-height: var(--nav-h);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  min-height: var(--nav-h);
}

.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
  margin-right: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  flex-wrap: wrap;
  margin-left: 2rem;
}

.nav-links a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--accent-light);
  color: var(--accent);
}

/* Page layout */
.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

/* Hero / page header */
.page-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.page-header p {
  color: var(--muted);
  font-size: 15px;
}

/* Sections */
section { margin-bottom: 2.5rem; }

section h2 {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

/* Link lists */
.link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.link-list li a {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  font-size: 15px;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

.link-list li a:hover {
  border-bottom-color: var(--accent);
}

/* Cards (home page) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
  display: block;
}

.card:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.card-label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.card h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.4rem;
  letter-spacing: normal;
  text-transform: none;
}

.card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* Prose blocks */
.prose p { margin-bottom: 1rem; color: var(--muted); font-size: 15px; }
.prose p:last-child { margin-bottom: 0; }

/* Placeholder banner */
.placeholder {
  border: 1.5px dashed var(--border);
  border-radius: 10px;
  padding: 2.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* Utility */
footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 1.5rem;
  font-size: 13px;
  color: var(--muted);
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color 0.15s;
}
.back-link:hover { color: var(--accent); }

/* Responsive video embed */
.video-wrap {
  position: relative;
  padding-top: 56.25%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}
.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* Location cards */
.location {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}
.location h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.05rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
}
.location address {
  font-style: normal;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}
.location .hours {
  font-size: 13px;
  color: var(--muted);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.1rem 1rem;
}

/* Quiz */
.quiz-wrap { max-width: 640px; }
.quiz-progress {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 1rem;
}
.quiz-question {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  color: var(--text);
}
.quiz-options {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.quiz-options button {
  width: 100%;
  text-align: left;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  cursor: pointer;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}
.quiz-options button:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent-light);
}
.quiz-options button.correct {
  border-color: #1a7a3a;
  background: #f0faf4;
  color: #1a7a3a;
}
.quiz-options button.incorrect {
  border-color: #b03030;
  background: #fdf2f2;
  color: #b03030;
}
.quiz-options button:disabled { cursor: default; }
.quiz-feedback {
  font-size: 14px;
  color: var(--muted);
  min-height: 1.4em;
  margin-bottom: 1rem;
}
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.25rem;
  cursor: pointer;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.15s;
}
.btn:hover { opacity: 0.85; }
.btn:disabled { opacity: 0.4; cursor: default; }
.btn-outline {
  background: none;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.quiz-result { text-align: center; padding: 2rem 0; }
.quiz-score {
  font-family: 'DM Serif Display', serif;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.quiz-result p { color: var(--muted); font-size: 15px; margin-bottom: 1.5rem; }

/* Mobile */
@media (max-width: 600px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    margin-left: 0;
    padding-bottom: 0.75rem;
    border-top: 1px solid var(--border);
    margin-top: 0.25rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 10px 4px;
    font-size: 15px;
    border-radius: 0;
  }

  .page {
    padding: 2rem 1rem 3rem;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .link-list li a {
    padding: 8px 0;
  }
  }
