/* ==========================================================================
   Furrman University (a parody) — site styles
   Palette: Royal Purrple, Retriever Gold, Kibble Cream
   ========================================================================== */

:root {
  --purrple: #5b2d8e;
  --purrple-deep: #3d1c63;
  --purrple-soft: #ede4f7;
  --gold: #e8b84a;
  --gold-deep: #c9962a;
  --cream: #fbf7f0;
  --cream-deep: #f1e9db;
  --ink: #241c33;
  --ink-soft: #5a5266;
  --line: #e2d9cc;
  --hero-overlay: rgba(40, 18, 70, 0.88);
  --hero-overlay-end: rgba(40, 18, 70, 0.15);
  --white: #ffffff;
  --green: #4f7d5a;
  --danger: #b23a3a;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(36, 28, 51, 0.10);
  --shadow-sm: 0 3px 10px rgba(36, 28, 51, 0.08);
  --container: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--purrple-deep);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

a { color: var(--purrple); }
a:hover { color: var(--purrple-deep); }

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 0.5rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Announcement strip (theme-controlled) ------------------------------------- */

.announce {
  background: var(--purrple-soft);
  color: var(--ink);
  font-size: 0.95rem;
  padding: 0.55rem 0;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.announce a { color: var(--purrple-deep); font-weight: 700; }

/* Buttons ----------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-purrple { background: var(--purrple); color: var(--white); }
.btn-purrple:hover { background: var(--purrple-deep); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-deep); color: var(--ink); }
.btn-outline { border-color: var(--purrple); color: var(--purrple); background: transparent; }
.btn-outline:hover { background: var(--purrple-soft); }
.btn-outline-light { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.15); color: var(--white); }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.95rem; }

/* Parody bar & header ------------------------------------------------------ */

.parody-bar {
  background: var(--gold);
  color: var(--ink);
  font-size: 0.9rem;
  padding: 0.45rem 0;
  text-align: center;
  border-bottom: 2px solid var(--gold-deep);
}
.parody-bar a { color: var(--purrple-deep); font-weight: 700; }

.site-header {
  background: var(--purrple);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--white);
}
.brand-crest { width: 46px; height: 46px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; }
.brand-tag { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.8rem;
  font: inherit;
  cursor: pointer;
}
.nav-toggle-bars {
  width: 18px; height: 2px; background: currentColor; position: relative; display: inline-block;
}
.nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem 1.1rem;
  flex-wrap: wrap;
}
.primary-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.primary-nav a:not(.btn):hover,
.primary-nav a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--white); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { width: 100%; padding: 0.55rem 0; }
  .primary-nav .btn { width: auto; margin-top: 0.5rem; }
}

/* Hero --------------------------------------------------------------------- */

.hero {
  position: relative;
  color: var(--white);
  background: var(--purrple-deep);
  overflow: hidden;
  isolation: isolate;
}
.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--hero-overlay) 0%, var(--hero-overlay-end) 100%);
}
.hero-inner {
  padding: clamp(3.5rem, 9vw, 7rem) 0;
  max-width: 640px;
}
.hero h1 { color: var(--white); margin-bottom: 0.4em; }
.hero .eyebrow { color: var(--gold); }
.hero p.lead { font-size: 1.25rem; margin-bottom: 1.6rem; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-deep);
  margin-bottom: 0.6rem;
}

.page-hero {
  background: linear-gradient(135deg, var(--purrple-deep), var(--purrple));
  color: var(--white);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.page-hero h1 { color: var(--white); }
.page-hero p { max-width: 720px; font-size: 1.15rem; margin: 0; }
.page-hero .eyebrow { color: var(--gold); }

/* Sections ----------------------------------------------------------------- */

.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-alt { background: var(--cream-deep); }
.section-purrple { background: var(--purrple); color: var(--white); }
.section-purrple h2, .section-purrple h3 { color: var(--white); }
.section-purrple .eyebrow { color: var(--gold); }
.section-purrple a:not(.btn) { color: var(--gold); }

.section-head { max-width: 720px; margin-bottom: 2rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.12rem; color: var(--ink-soft); }
.section-purrple .section-head p { color: rgba(255, 255, 255, 0.85); }

.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.card h3 { margin-top: 0.2rem; }
.card p:last-child { margin-bottom: 0; }
.card .card-icon { font-size: 2rem; line-height: 1; margin-bottom: 0.5rem; }
.card-link { margin-top: auto; padding-top: 0.8rem; font-weight: 700; text-decoration: none; }
.card-link::after { content: " →"; }

.callout {
  border-left: 6px solid var(--gold);
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow-sm);
  margin: 1.5rem 0;
}
.callout.warn { border-left-color: var(--danger); }
.callout p:last-child { margin-bottom: 0; }

/* Stats -------------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 1.2rem;
  text-align: center;
}
.stat {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem 1rem;
  border-top: 5px solid var(--gold);
  box-shadow: var(--shadow-sm);
}
.stat-number { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; color: var(--purrple); line-height: 1; }
.stat-label { color: var(--ink-soft); margin-top: 0.4rem; font-size: 0.98rem; }

/* Media / figure ------------------------------------------------------------ */

.feature {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 2.2rem;
  align-items: center;
}
.feature.reverse > figure { order: -1; }
@media (min-width: 760px) { .feature.reverse > figure { order: 1; } }

figure.photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--purrple-soft);
}
figure.photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
figure.photo figcaption { font-size: 0.88rem; color: var(--ink-soft); padding: 0.6rem 0.9rem; background: var(--white); }

/* Testimonials -------------------------------------------------------------- */

.quote-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  position: relative;
  display: flex;
  flex-direction: column;
}
.quote-card::before {
  content: "\201C";
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--gold);
  position: absolute;
  top: 0.4rem;
  left: 1rem;
}
.quote-card blockquote { margin: 1.4rem 0 1rem; font-size: 1.08rem; font-style: italic; }
.quote-card .who { margin-top: auto; display: flex; align-items: center; gap: 0.8rem; }
.quote-card .avatar {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--purrple-soft); font-size: 1.6rem; flex: none;
}
.quote-card .who strong { display: block; color: var(--purrple-deep); }
.quote-card .who span { font-size: 0.9rem; color: var(--ink-soft); }
.quote-card .stars { color: var(--gold-deep); letter-spacing: 0.1em; font-size: 0.95rem; margin-top: 0.4rem; }

/* Lists -------------------------------------------------------------------- */

.checklist { list-style: none; padding: 0; margin: 0 0 1rem; }
.checklist li { padding-left: 1.8rem; position: relative; margin-bottom: 0.5rem; }
.checklist li::before { content: "🐾"; position: absolute; left: 0; top: 0.05rem; font-size: 0.95rem; }

.timeline { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--gold); }
.timeline li { padding: 0 0 1.6rem 1.6rem; position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: -0.6rem; top: 0.35rem; width: 0.95rem; height: 0.95rem;
  background: var(--purrple); border-radius: 50%; border: 3px solid var(--cream);
}
.timeline .year { font-family: var(--font-display); font-weight: 800; color: var(--purrple); font-size: 1.15rem; display: block; }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1.2rem; margin: 0; }
dl.facts dt { font-weight: 700; color: var(--purrple-deep); }
dl.facts dd { margin: 0; }
@media (max-width: 520px) { dl.facts { grid-template-columns: 1fr; } dl.facts dd { margin-bottom: 0.6rem; } }

/* Tables -------------------------------------------------------------------- */

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-sm); overflow: hidden; }
th, td { padding: 0.75rem 0.9rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--purrple); color: var(--white); font-weight: 700; }
tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) td { background: #faf6ee; }

/* Accordion / details -------------------------------------------------------- */

details.faq {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.2rem 1.1rem;
  margin-bottom: 0.7rem;
}
details.faq summary { cursor: pointer; font-weight: 700; padding: 0.7rem 0; color: var(--purrple-deep); }
details.faq[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 0.6rem; }
details.faq p:last-child { margin-bottom: 0.8rem; }

/* Course catalog -------------------------------------------------------------- */

.catalog-controls {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  align-items: end;
  margin-bottom: 1.2rem;
}
.catalog-controls label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.3rem; color: var(--purrple-deep); }
.catalog-controls input, .catalog-controls select,
.form-field input:not([type="radio"]):not([type="checkbox"]), .form-field select, .form-field textarea {
  width: 100%;
  font: inherit;
  padding: 0.6rem 0.75rem;
  border: 1px solid #cfc4b4;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
}
.catalog-controls input:focus, .catalog-controls select:focus,
.form-field input:not([type="radio"]):not([type="checkbox"]):focus, .form-field select:focus, .form-field textarea:focus {
  outline: 3px solid rgba(232, 184, 74, 0.55);
  border-color: var(--purrple);
}
.catalog-meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; color: var(--ink-soft); }

.course-list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.course {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.course-code { font-family: var(--font-display); font-weight: 800; color: var(--gold-deep); font-size: 0.95rem; letter-spacing: 0.04em; }
.course h3 { font-size: 1.2rem; margin: 0; }
.course-desc { margin: 0.2rem 0 0.4rem; }
.course-meta { font-size: 0.86rem; color: var(--ink-soft); margin: 0; }
.course-meta strong { color: var(--purrple-deep); }
.tags { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-top: auto; padding-top: 0.5rem; }
.tag {
  display: inline-block; font-size: 0.75rem; padding: 0.15rem 0.6rem; border-radius: 999px;
  background: var(--purrple-soft); color: var(--purrple-deep); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.tag.gold { background: #fbecc5; color: #6f4d05; }
.tag.seasonal { background: var(--gold); color: var(--ink); }
.section-seasonal { background: var(--cream-deep); }
.section-seasonal .card { border-top: 4px solid var(--gold); }
.seasonal-courses-title { margin-top: 2.2rem; }
.catalog-controls .choice.check { font-weight: 600; font-size: 0.95rem; margin: 0; padding-bottom: 0.4rem; align-items: center; }
.catalog-controls .choice.check input { width: auto; margin: 0; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--ink-soft); font-size: 1.1rem; }

/* Forms -------------------------------------------------------------------- */

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 4vw, 2rem);
  box-shadow: var(--shadow);
}
.form-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.form-field { display: flex; flex-direction: column; gap: 0.3rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 700; color: var(--purrple-deep); font-size: 0.95rem; }
.form-field small { color: var(--ink-soft); font-size: 0.85rem; }
.form-field textarea { min-height: 110px; resize: vertical; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.8rem 1rem; margin: 0; }
legend { font-weight: 700; color: var(--purrple-deep); padding: 0 0.4rem; }
.choice { display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.4rem; }
.choice input { margin-top: 0.3rem; }
.form-actions { margin-top: 1.4rem; display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center; }

.decision {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--purrple-soft);
  border: 2px dashed var(--purrple);
}
.decision h3 { margin-top: 0; }
.decision[hidden] { display: none; }
.decision .seal {
  float: right; width: 84px; height: 84px; border-radius: 50%; background: var(--gold);
  display: grid; place-items: center; text-align: center; font-size: 0.65rem; font-weight: 800;
  line-height: 1.1; color: var(--purrple-deep); transform: rotate(-12deg); margin-left: 1rem;
  border: 3px double var(--purrple-deep);
}

/* Quiz --------------------------------------------------------------------- */

.quiz-q { margin-bottom: 1.4rem; }
.quiz-q p.q { font-weight: 700; color: var(--purrple-deep); margin-bottom: 0.5rem; }
.quiz-result { margin-top: 1.2rem; }

/* Badges & misc ---------------------------------------------------------------- */

.ribbon {
  display: inline-block; background: var(--purrple); color: var(--white); font-weight: 700;
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.25rem 0.8rem; border-radius: 4px;
}

.scoreboard { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1rem; }
.score {
  background: var(--white); border-radius: var(--radius); padding: 1.1rem 1.2rem; border: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.score .teams { font-weight: 700; color: var(--purrple-deep); }
.score .result { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--purrple); white-space: nowrap; }
.score small { display: block; color: var(--ink-soft); font-weight: 400; }

.fight-song {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem 2rem;
  border: 3px double var(--gold);
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 560px;
}
.fight-song p { margin-bottom: 1rem; }

.cta-band { text-align: center; }
.cta-band h2 { max-width: 700px; margin-inline: auto; }
.cta-band p { max-width: 620px; margin-inline: auto; }

.prose { max-width: 760px; }
.prose h2 { margin-top: 2rem; }
.prose ol, .prose ul { padding-left: 1.4rem; }

/* Footer --------------------------------------------------------------------- */

.site-footer {
  background: var(--purrple-deep);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}
.site-footer a { color: var(--gold); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.footer-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--white); margin-bottom: 0.3rem; }
.footer-motto { color: var(--gold); }
.footer-heading { font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; margin-bottom: 0.6rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.35rem; }
.footer-links a { text-decoration: none; color: rgba(255, 255, 255, 0.85); }
.footer-links a:hover { color: var(--gold); }
.footer-disclaimer { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.2); font-size: 0.88rem; }
.footer-copy { color: rgba(255, 255, 255, 0.6); margin-bottom: 0; }

/* 404 ------------------------------------------------------------------------ */

.notfound { text-align: center; padding: 5rem 0; }
.notfound .big { font-family: var(--font-display); font-size: clamp(4rem, 16vw, 9rem); font-weight: 800; color: var(--purrple); line-height: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

@media print {
  .parody-bar, .site-header, .site-footer .footer-grid { display: none; }
}
