/* Mike Henry Presentations - Styles */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,700;1,400&family=Open+Sans:wght@400;600&display=swap');

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

/* Variables */
:root {
  --bg-dark: #0a1628;
  --bg-card: #0f1f3a;
  --gold: #c5973e;
  --gold-light: #e0b45a;
  --cream: #e8dcc8;
  --border: #3a3020;
  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

/* Base */
html {
  font-size: 20px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--cream);
  line-height: 1.7;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--gold);
  line-height: 1.3;
}

a {
  color: var(--gold);
  text-decoration: underline;
}

a:hover {
  color: var(--gold-light);
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--gold);
  color: var(--bg-dark);
  padding: 0.5rem 1rem;
  border-radius: 0 0 4px 4px;
  font-weight: 600;
  z-index: 1000;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* Focus indicators */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* Navigation */
nav {
  position: sticky;
  top: 0;
  background: var(--bg-dark);
  border-bottom: 2px solid var(--gold);
  padding: 0.75rem 1.5rem;
  z-index: 100;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

nav a:hover {
  text-decoration: underline;
}

/* Hero / Header */
.hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
  border-bottom: 2px solid var(--gold);
}

.hero-title-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.hero-title-row img {
  width: 180px;
  height: auto;
  border-radius: 6px;
  border: 2px solid var(--gold);
}

.hero-title-row h1 {
  font-size: 2.4rem;
  white-space: nowrap;
}

.bio {
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 1.5rem 2rem;
}

.bio p {
  margin-bottom: 1rem;
}

.bio p:last-child {
  margin-bottom: 0;
}

.bio strong {
  color: var(--gold-light);
}

/* Contact heading & buttons */
.contact-heading {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  color: var(--cream);
  border: 2px solid var(--gold);
  border-radius: 6px;
  padding: 0.8rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.btn:hover {
  background: var(--gold);
  color: var(--bg-dark);
}

.btn-icon {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  color: var(--gold);
}

.btn:hover .btn-icon {
  color: var(--bg-dark);
}

/* Main / Programs */
main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

main > h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 2rem;
}

.program-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.program-card:hover,
.program-card:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(197, 151, 62, 0.3);
}

.program-card picture img {
  width: 100%;
  height: auto;
  display: block;
}

.program-card h3 {
  padding: 0.75rem 1rem 0.25rem;
  font-size: 1rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.program-desc {
  padding: 0 1rem 0.75rem;
  text-align: center;
}

.program-desc summary {
  cursor: pointer;
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-style: italic;
  list-style: none;
}

.program-desc summary::before {
  content: "\25B6\00a0";
  font-size: 0.65rem;
  font-style: normal;
}

.program-desc[open] summary::before {
  content: "\25BC\00a0";
}

.program-desc summary::-webkit-details-marker {
  display: none;
}

.program-desc p {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: left;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-img {
  max-width: 95%;
  max-height: 95vh;
  border-radius: 6px;
  border: 2px solid var(--gold);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 2rem;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: var(--gold);
  color: var(--bg-dark);
}

/* Footer */
footer {
  background: var(--bg-card);
  border-top: 2px solid var(--gold);
  padding: 2rem 1.5rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 899px) {
  .program-grid {
    grid-template-columns: 1fr;
  }

  .hero-title-row {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-title-row h1 {
    font-size: 1.8rem;
    order: -1;
  }

  .hero-title-row picture {
    display: inline-block;
  }

  .bio {
    padding: 1rem 1.2rem;
  }
}

@media (max-width: 600px) {
  html {
    font-size: 18px;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .hero-title-row img {
    width: 140px;
  }

  .hero-title-row h1 {
    font-size: 1.6rem;
  }

  main {
    padding: 1.5rem 1rem 3rem;
  }

  nav {
    gap: 1rem;
    padding: 0.6rem 1rem;
  }

  .btn {
    font-size: 0.8rem;
    padding: 0.6rem 1rem;
  }
}
