/* ============================================================
   Savannah Voiceover Academy — Shared Stylesheet
   Tokens: bg #FFFFFF · ink #161616 · red #B31B24 · red-deep #7E1119
   panel #F4F4F4 · border #E3E3E3
   Display: Bebas Neue · Body: Inter
   ============================================================ */

:root {
  --bg: #FFFFFF;
  --ink: #161616;
  --ink-soft: #4A4A4A;
  --red: #B31B24;
  --red-deep: #7E1119;
  --panel: #F4F4F4;
  --border: #E3E3E3;
  --white: #FFFFFF;

  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --maxw: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--red);
  text-decoration: none;
}
a:hover { color: var(--red-deep); }

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0 0 0.5em 0;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
h4 { font-size: 1.15rem; letter-spacing: 0.04em; }

p { margin: 0 0 1em 0; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.6em;
}

/* ---------- Quadrant mark: the signature element,
   pulled directly from the logo's four-square motif.
   Used as a bullet / divider / section marker throughout. ---------- */
.quad {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  width: 14px;
  height: 14px;
  flex: none;
  border-radius: 2px;
  overflow: hidden;
}
.quad span:nth-child(1) { background: var(--red); }
.quad span:nth-child(2) { background: var(--ink); }
.quad span:nth-child(3) { background: var(--ink); }
.quad span:nth-child(4) { background: var(--red); }

.quad-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 3.2rem 0 2rem 0;
}
.quad-divider .line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--red);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}
.nav-logo img { height: 42px; width: auto; }
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  color: var(--white);
  line-height: 1;
}
.nav-logo-text span { color: var(--ink); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--white);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover {
  color: var(--white);
  border-bottom-color: var(--ink);
}
.nav-links a.current {
  border-bottom-color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 12px 26px;
  border-radius: 3px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn-enroll {
  background: var(--ink);
  color: var(--white);
}
.btn-enroll:hover {
  background: #000;
  color: var(--white);
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover { background: var(--red-deep); color: var(--white); }

.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  padding: 5.5rem 0 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(rgba(255,255,255,0.35), rgba(255,255,255,0.55)), url('../images/mainbanner.jpg');
  background-size: cover;
  background-position: center;
}
.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 300px;
  height: 300px;
  background:
    linear-gradient(135deg, var(--red) 0 50%, transparent 50%),
    linear-gradient(315deg, var(--ink) 0 50%, transparent 50%);
  opacity: 0.06;
  transform: rotate(8deg);
  pointer-events: none;
}
.hero-sub {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero h1 {
  max-width: 900px;
  margin: 0 auto 1.6rem auto;
}

.blurb-banner {
  max-width: 820px;
  margin: 0 auto 2.6rem auto;
  background: var(--panel);
  border-left: 5px solid var(--red);
  border-radius: 4px;
  padding: 1.8rem 2.2rem;
  text-align: left;
  font-size: 1.08rem;
  color: var(--ink);
}
.blurb-banner p { margin: 0; }

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Icon link row (FAQ / Classes / Teachers) ---------- */
.icon-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 780px;
  margin: 3rem auto 0 auto;
}
.icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 1.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--ink);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  transition: border-color 0.15s ease, transform 0.12s ease, background 0.15s ease;
}
.icon-link:hover {
  border-color: var(--red);
  background: var(--panel);
  color: var(--ink);
  transform: translateY(-2px);
}
.icon-link svg { width: 30px; height: 30px; stroke: var(--red); }

/* ---------- Sections ---------- */
.section {
  padding: 4.2rem 0;
}
.section-alt {
  background: var(--panel);
}
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.8rem auto;
}
.section-header.left {
  text-align: left;
  margin: 0 0 2.4rem 0;
}

/* ---------- Course cards ---------- */
.course-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.course-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  background: var(--white);
}
.course-card:hover {
  border-color: var(--red);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}
.course-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tier-chip {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  padding: 4px 11px;
  border-radius: 3px;
  color: var(--white);
  flex: none;
}
.tier-chip.tier-1 { background: var(--red); }
.tier-chip.tier-2 { background: var(--ink); }
.tier-chip.tier-3 {
  background: linear-gradient(135deg, var(--red) 0 50%, var(--ink) 50% 100%);
}
.course-card h3 {
  margin: 0;
  font-size: 1.3rem;
}
.course-meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.course-card p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.course-card .learn-more {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}
.coming-soon {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 20px;
  margin-left: auto;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #cfcfcf;
  padding: 3rem 0 2rem 0;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.8rem;
}
.footer-logo img { height: 34px; }
.footer-logo-text {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.15rem;
}
.site-footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: #cfcfcf; }
.site-footer a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 1.4rem;
  font-size: 0.85rem;
  color: #888;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Generic content page (About / Teachers / FAQ / Course detail) ---------- */
.page-hero {
  padding: 3.4rem 0 1rem 0;
  text-align: center;
}
.page-hero p.lead {
  max-width: 680px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.prose { max-width: 760px; margin: 0 auto; }
.prose p { color: var(--ink-soft); }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li {
  display: flex;
  gap: 12px;
  margin-bottom: 1rem;
  align-items: flex-start;
}
.prose ul li .quad { margin-top: 6px; }
.prose ul li strong { color: var(--ink); }
.prose ul li .li-text { color: var(--ink-soft); }

/* ---------- Teacher cards ---------- */
.teacher-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.2rem;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.teacher-card:last-of-type { border-bottom: none; }
.teacher-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.teacher-photo .quad {
  width: 60px;
  height: 60px;
  border-radius: 8px;
}
.teacher-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.teacher-name { margin-bottom: 0.2rem; }
.teacher-role {
  color: var(--red);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.teacher-card p { color: var(--ink-soft); }

/* ---------- Schedule table ---------- */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2.4rem;
}
.schedule-table th, .schedule-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.schedule-table th {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.03em;
  color: var(--ink);
  background: var(--panel);
}
.schedule-table td { color: var(--ink-soft); font-size: 0.96rem; }
.schedule-table td a.enroll-link {
  font-weight: 700;
  color: var(--red);
}

/* ---------- Payment page ---------- */
.pay-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.8rem 2rem;
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.pay-card-info h3 { margin-bottom: 0.3rem; }
.pay-card-info .course-meta { margin-bottom: 0.2rem; display: block; }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.4rem 0;
}
.faq-item h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.faq-item p { color: var(--ink-soft); margin: 0; padding-left: 26px; }

/* ---------- News ---------- */
.news-item {
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--border);
}
.news-date {
  font-weight: 700;
  color: var(--red);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  display: block;
}

/* ---------- Calendar embed ---------- */
.calendar-embed-wrap {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.calendar-embed-wrap iframe {
  width: 100%;
  height: 650px;
  border: none;
  display: block;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: var(--white);
  text-align: center;
  padding: 3.6rem 0;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.6rem; }
.cta-band p { color: #cccccc; margin-bottom: 1.8rem; }

/* ---------- Course detail page ---------- */
.course-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.course-detail-header .course-meta { font-size: 0.9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .course-grid { grid-template-columns: 1fr; }
  .icon-links { grid-template-columns: 1fr; }
  .teacher-card { grid-template-columns: 120px 1fr; gap: 1.2rem; }
}

@media (max-width: 480px) {
  .nav-inner { height: 64px; }
  .nav-logo-text { font-size: 0.95rem; letter-spacing: 0.01em; }
  .nav-logo img { height: 34px; }
  .btn-enroll { padding: 9px 14px; font-size: 0.82rem; }
  .nav-toggle { font-size: 1.5rem; }
}

/* Mobile nav drawer */
.nav-links.open {
  display: flex;
  position: absolute;
  top: 76px;
  left: 0;
  right: 0;
  background: var(--red);
  flex-direction: column;
  padding: 1rem 24px 1.6rem 24px;
  gap: 14px;
}
