/* =============================================
   responsive.css  –  mobile-first additions
   ============================================= */

/* ── Card grid (replaces old <table> layout) ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  padding: 16px;
}

.card-grid--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 800px;
  margin: 0 auto;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.card .round-window {
  flex-shrink: 0;
}

.card-text {
  width: 100%;
  text-align: center;
  color: #fff;
  font-family: Arial, sans-serif;
}

.card-text h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: #fff;
  line-height: 1.2;
}

.card-text p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.inline-link {
  color: #fff;
  font-weight: 700;
  font-size: 1.1em;
  text-decoration: none;
}
.inline-link:hover {
  text-decoration: underline;
}

/* ── Hero images ── */
.hero-inner img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 10px;
}

/* ── Mobile nav toggle button ── */
.nav-toggle {
  display: none;
  background: transparent;
  color: var(--text, #fff);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  z-index: 130;
}

/* ── Tablet: 2-column grid ── */
@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-grid--two {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Mobile: single column ── */
@media (max-width: 600px) {

  /* Header */
  .site-header {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    padding: 8px 12px;
    gap: 8px;
  }

  .logo img {
    max-height: 50px;
    width: auto;
  }

  /* Show burger, hide nav by default */
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: rgba(0, 60, 60, 0.97);
    border-radius: 8px;
    padding: 8px 0;
    margin-top: 4px;
    order: 3; /* pushes below logo + toggle */
  }

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

  .main-nav a {
    padding: 12px 16px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1rem;
    color: #fff;
  }

  .main-nav a:last-child {
    border-bottom: none;
  }

  /* Hero */
  .hero {
    min-height: 100svh;
    align-items: flex-end;
    padding-bottom: 24px;
  }

  .hero-inner {
    right: auto !important;
    top: auto !important;
    padding: 16px;
    text-align: center;
  }

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

  .hero-inner h2 {
    font-size: 1rem;
  }

  /* Cards */
  .card-grid,
  .card-grid--two {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 12px;
  }

  .card {
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
  }

  /* Keep image a reasonable size on mobile */
  .card .round-window {
    width: 100px !important;
    height: 100px !important;
    min-width: 100px;
  }

  .card-text h3 {
    font-size: 1rem;
  }

  .card-text p {
    font-size: 0.82rem;
  }

  /* Panel spacing */
  .panel {
    padding: 16px 12px;
  }

  .panel-inner {
    padding: 12px 8px;
  }

  /* Viewport top padding accounts for variable header height */
  .viewport {
    padding-top: 80px;
  }

  /* Footer */
  .site-footer {
    font-size: 0.85rem;
    padding: 18px 12px;
  }
}

/* ── Very small phones ── */
@media (max-width: 380px) {
  .card {
    flex-direction: column;
    align-items: center;
  }

  .card .round-window {
    width: 90px !important;
    height: 90px !important;
    min-width: 90px;
  }
}

/* =============================================
   SUB-PAGE SHARED STYLES
   ============================================= */

/* Short hero variant for sub-pages */
.hero--short {
  height: auto !important;
  min-height: 0 !important;
  align-items: center;
  padding-top: 148px;  /* 100px header + ~3 lines */
  padding-bottom: 32px;
}

.hero-inner--text {
  position: relative !important;
  right: auto !important;
  left: auto !important;
  top: auto !important;
  bottom: auto !important;
  width: 100%;
  max-width: 100% !important;
  padding: 0 !important;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-inner--text .panel-inner {
  width: 100%;
  max-width: 860px;
  text-align: center;
}

.hero-inner--center {
  right: auto !important;
  top: auto !important;
  width: 100%;
  max-width: 100% !important;
  padding: 16px !important;
  display: flex;
  justify-content: center;
}

.hero-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 0 10px;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.hero-bio {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.92);
  margin: 0;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* Cards that align image at top (for long text columns) */
.card--top {
  align-items: center;
}
.card--top .round-window {
  align-self: center;
}

/* ── Timeline (about page) ── */
.timeline {
  margin-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 14px;
  text-align: center;
}
.timeline h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
}
.timeline dl {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 4px 12px;
  margin: 0 auto;
  max-width: 500px;
  text-align: left;
}
.timeline dt {
  font-weight: 700;
  color: #ED2024;
  font-size: 0.85rem;
  padding-top: 2px;
}
.timeline dd {
  color: rgba(255,255,255,0.88);
  font-size: 0.82rem;
  margin: 0;
  line-height: 1.5;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ── Map / inline link ── */
.map-link {
  color: #ED2024;
  font-weight: 700;
  text-decoration: none;
}
.map-link:hover { text-decoration: underline; }

/* ── Schedule tables (classes page) ── */
.schedule-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 16px;
  align-items: center;
}

.schedule-block {
  width: 100%;
}

.schedule-venue {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid #ED2024;
  text-align: center;
}

.schedule-table-wrap {
  overflow-x: auto;            /* scroll on tiny screens */
  -webkit-overflow-scrolling: touch;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.92);
  min-width: 420px;            /* prevents columns squashing before scroll kicks in */
}

.schedule-table thead tr {
  background: rgba(237,32,36,0.75);
}

.schedule-table th {
  padding: 8px 10px;
  text-align: center;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.schedule-table td {
  padding: 7px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  vertical-align: middle;
  line-height: 1.4;
  text-align: center;
}

.schedule-table tbody tr:nth-child(even) {
  background: rgba(255,255,255,0.04);
}

.schedule-contact {
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(0,0,0,0.25);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  text-align: center;
}
.schedule-contact a { color: #ED2024; font-weight: 600; text-decoration: none; }
.schedule-contact a:hover { text-decoration: underline; }

/* ── Contact page ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 16px;
}

.contact-form-wrap h3,
.contact-details h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid #ED2024;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  padding: 10px 12px;
  color: #fff;
  font-size: 0.9rem;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.35);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ED2024;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  align-self: center;
  padding: 10px 24px;
  background: #ED2024;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.form-submit:hover { background: #c0181c; }

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ED2024;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-note {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}

.map-embed {
  margin-top: 12px;
  border-radius: 8px;
  overflow: hidden;
}

/* ── Virtual Tour page ── */
.tour-panel {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 24px !important;
}

.tour-title {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.tour-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  margin: 0 0 20px;
}

.video-responsive {
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}

.video-responsive video {
  width: 100%;
  height: auto;
  display: block;
  max-height: 55vh;
  object-fit: contain;
}

.tour-btn {
  margin-top: 16px;
  font-size: 1rem;
}

/* ── Sub-page responsive adjustments ── */
@media (max-width: 760px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .hero--short {
    min-height: 0 !important;
    padding-top: 128px;  /* 80px header + ~3 lines (48px) */
  }
  .hero-title {
    font-size: 1.4rem;
  }
  .hero-bio {
    font-size: 0.88rem;
  }
  .timeline dl {
    grid-template-columns: 68px 1fr;
  }
  .tour-title {
    font-size: 1.4rem;
  }
}

@media (max-width: 600px) {
  .schedule-wrapper {
    padding: 8px 4px;
    gap: 24px;
  }
  .schedule-venue {
    font-size: 0.95rem;
  }
  .schedule-table {
    font-size: 0.78rem;
  }
  .contact-layout {
    padding: 8px 4px;
  }
  .tour-panel {
    padding: 16px !important;
  }
  .tour-title {
    font-size: 1.2rem;
  }
}
