/* ============================================================
   Northwest Ballet School & Company — shared stylesheet
   ============================================================ */

:root {
  --ink: #1d2333;
  --ink-soft: #3a4256;
  --rose: #c08497;
  --rose-deep: #9c5d70;
  --gold: #b08d57;
  --cream: #faf6f1;
  --card: #ffffff;
  --line: #e7ded4;
  --muted: #6b6b76;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1100px;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(29, 35, 51, 0.08);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

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

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  padding: 0.7em 1.4em;
  border-radius: 6px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--rose);
  color: #fff;
  border-color: var(--rose);
}
.btn-primary:hover { background: var(--rose-deep); border-color: var(--rose-deep); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--rose); color: var(--rose-deep); }

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.22); color: #fff; }

/* ------------------------------------------------------------
   Header / Nav
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 241, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding-block: 0.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }

.brand .pointe-motif { flex: 0 0 auto; color: var(--rose); }

.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.55rem;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.3em 0;
  position: relative;
}
.nav-links a:hover { color: var(--rose-deep); text-decoration: none; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--rose);
  transition: width 0.2s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--ink); }

.nav-cta { white-space: nowrap; }

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  padding: 0.45rem 0.55rem;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ------------------------------------------------------------
   Generic sections
   ------------------------------------------------------------ */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--cream { background: var(--cream); }
.section--white { background: var(--card); }
.section--ink {
  background: var(--ink);
  color: #d8dce6;
}
.section--ink h1,
.section--ink h2,
.section--ink h3 { color: #fff; }
.section--ink a { color: #e7c4cf; }

.section-head { max-width: 720px; margin-bottom: 2rem; }
.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.lead { font-size: 1.1rem; color: var(--ink-soft); }

.divider {
  border: 0;
  height: 1px;
  background: var(--line);
  margin-block: 2.5rem;
}
.flourish {
  text-align: center;
  color: var(--gold);
  margin: 1.5rem 0;
  font-size: 1.5rem;
  letter-spacing: 0.5rem;
}

/* ------------------------------------------------------------
   Hero (home)
   ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  color: #fff;
  background-image: linear-gradient(rgba(29, 35, 51, 0.45), rgba(29, 35, 51, 0.72)), url("../assets/hero.jpg");
  background-size: cover;
  background-position: center;
}
.hero .container { padding-block: 4rem; }
.hero h1 { color: #fff; max-width: 14ch; }
.hero-tagline {
  font-size: 1.2rem;
  max-width: 46ch;
  color: #f1ece6;
  margin-bottom: 1.75rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ------------------------------------------------------------
   Announcement banner
   ------------------------------------------------------------ */
.announce {
  background: var(--rose);
  color: #fff;
}
.announce .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 0.75rem;
  padding-block: 0.85rem;
  text-align: center;
  font-weight: 500;
}
.announce a { color: #fff; text-decoration: underline; font-weight: 600; }
.announce .announce-icon { font-size: 1.1rem; }

/* ------------------------------------------------------------
   Disciplines strip
   ------------------------------------------------------------ */
.disciplines {
  background: var(--ink);
  color: #d8dce6;
  text-align: center;
}
.disciplines .container { padding-block: 1.5rem; }
.disciplines-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.6rem 1.25rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #fff;
}
.disciplines-list .dot { color: var(--rose); }

/* ------------------------------------------------------------
   Two-column / media blocks
   ------------------------------------------------------------ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
}

/* ------------------------------------------------------------
   Cards & grids
   ------------------------------------------------------------ */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}

.program-card h3 { margin-bottom: 0.3rem; }
.program-card p { color: var(--muted); margin-bottom: 0; }

.callout {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--rose);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.75rem;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* Staff blocks */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.staff-card ul { list-style: none; margin: 0; padding: 0; }
.staff-card li { padding: 0.15rem 0; }
.staff-card .role { color: var(--muted); font-size: 0.9rem; }

/* ------------------------------------------------------------
   Page header band
   ------------------------------------------------------------ */
.page-hero {
  background: var(--ink);
  color: #d8dce6;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.page-hero h1 { color: #fff; margin-bottom: 0.3rem; }
.page-hero p { color: #c8cdda; max-width: 60ch; margin-bottom: 0; }

/* In-page anchor nav */
.anchor-nav {
  position: sticky;
  top: 72px;
  z-index: 50;
  background: rgba(250, 246, 241, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.anchor-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0.85rem 0;
}
.anchor-nav a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.9rem;
}

/* ------------------------------------------------------------
   Schedule (responsive table -> cards)
   ------------------------------------------------------------ */
.schedule-day { margin-bottom: 2.5rem; }
.schedule-day h3 {
  display: inline-block;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.2rem;
  margin-bottom: 1rem;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.schedule-table thead th {
  background: var(--ink);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  text-align: left;
  padding: 0.7rem 1rem;
  letter-spacing: 0.02em;
}
.schedule-table td {
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.schedule-table tbody tr:nth-child(even) { background: var(--cream); }
.schedule-table .cls { font-weight: 600; color: var(--ink); }
.schedule-table .time { white-space: nowrap; }

/* ------------------------------------------------------------
   Pricing tables (responsive -> cards)
   ------------------------------------------------------------ */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.price-table thead th {
  background: var(--ink);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  text-align: left;
  padding: 0.7rem 1rem;
}
.price-table td {
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.price-table tbody tr:nth-child(even) { background: var(--cream); }
.price-table .num { font-weight: 600; color: var(--ink); }

/* Definition-style fee/policy lists */
.fee-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.fee-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.fee-list li:last-child { border-bottom: 0; }
.fee-list .fee-name { color: var(--ink); font-weight: 500; }
.fee-list .fee-amount { color: var(--rose-deep); font-weight: 600; white-space: nowrap; }

.policy-list { margin: 0; padding: 0; list-style: none; }
.policy-list > li { margin-bottom: 1.25rem; }
.policy-list h4 { margin-bottom: 0.2rem; }
.policy-list p { margin-bottom: 0; color: var(--ink-soft); }

.date-list { list-style: none; margin: 0; padding: 0; }
.date-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}
.date-list li:last-child { border-bottom: 0; }
.date-list strong { color: var(--ink); }

/* ------------------------------------------------------------
   Faculty bios
   ------------------------------------------------------------ */
.bio {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}
.bio:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.bio.reverse { grid-template-columns: 1fr 220px; }
.bio.reverse .bio-photo { order: 2; }
.bio-photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}
.bio-body h3 { margin-bottom: 0.6rem; }
.bio-body p { text-align: justify; }

/* ------------------------------------------------------------
   Company
   ------------------------------------------------------------ */
.member-group { margin-bottom: 1.25rem; }
.member-group h4 {
  color: var(--rose-deep);
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-body);
  font-size: 0.85rem;
}
.member-group p { margin: 0; color: var(--ink); font-size: 1.05rem; }

.alumni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.5rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.alumni-grid li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}
.alumni-grid .alum-name { color: var(--ink); font-weight: 600; }
.alumni-grid .alum-where { color: var(--muted); display: block; font-size: 0.9rem; }

/* ------------------------------------------------------------
   News cards
   ------------------------------------------------------------ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}
.news-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.news-card .news-icon { color: var(--rose); font-size: 1.5rem; }
.news-card .news-meta { color: var(--muted); font-size: 0.85rem; }
.news-card.current { border-left: 4px solid var(--rose); }

/* ------------------------------------------------------------
   Captions
   ------------------------------------------------------------ */
figure { margin: 0; }
figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 0.4rem;
  text-align: center;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-footer {
  background: var(--ink);
  color: #c2c7d4;
  padding-block: 3rem 1.5rem;
}
.site-footer a { color: #e7c4cf; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-tagline {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 1rem;
  max-width: 30ch;
}
.footer-col h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.footer-col p { margin: 0 0 0.4rem; font-size: 0.95rem; }
.footer-col address { font-style: normal; }
.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #c2c7d4;
}
.footer-social a:hover { color: #fff; }
.footer-social svg { width: 20px; height: 20px; }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: #9aa0b0;
  text-align: center;
}

/* ------------------------------------------------------------
   Fade-in on scroll
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* Fallback: if JS doesn't run, never hide content. */
html:not(.js) .reveal {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-tagline-col { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    box-shadow: var(--shadow);
    transform: translateY(-150%);
    transition: transform 0.25s ease;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .nav.open { transform: translateY(0); }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links a { display: block; padding: 0.8rem 0; }
  .nav-links a::after { display: none; }
  .nav-cta { margin-top: 1rem; width: 100%; }

  .split,
  .two-col,
  .philosophy-grid { grid-template-columns: 1fr; }

  .bio,
  .bio.reverse { grid-template-columns: 1fr; gap: 1rem; }
  .bio.reverse .bio-photo { order: 0; }
  .bio-photo img { max-width: 220px; }

  /* Schedule -> stacked cards */
  .schedule-table { display: block; border: 0; box-shadow: none; background: transparent; }
  .schedule-table thead { display: none; }
  .schedule-table tbody { display: block; }
  .schedule-table tr {
    display: block;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 0.85rem;
    padding: 0.75rem 1rem;
  }
  .schedule-table tbody tr:nth-child(even) { background: var(--card); }
  .schedule-table td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.3rem 0;
    border: 0;
    text-align: right;
  }
  .schedule-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--muted);
    text-align: left;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .schedule-table td.cls {
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.5rem;
    margin-bottom: 0.3rem;
    font-size: 1.05rem;
  }
  .schedule-table td.cls::before { content: ""; }

  /* Pricing -> stacked cards */
  .price-table { display: block; border: 0; box-shadow: none; background: transparent; }
  .price-table thead { display: none; }
  .price-table tbody { display: block; }
  .price-table tr {
    display: block;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 0.85rem;
    padding: 0.75rem 1rem;
  }
  .price-table tbody tr:nth-child(even) { background: var(--card); }
  .price-table td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.3rem 0;
    border: 0;
    text-align: right;
  }
  .price-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--muted);
    text-align: left;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
}

@media (max-width: 480px) {
  .hero-cta .btn { width: 100%; }
  .disciplines-list { font-size: 1.1rem; }
}

/* ------------------------------------------------------------
   Print
   ------------------------------------------------------------ */
@media print {
  .site-header, .anchor-nav, .site-footer, .announce, .hero-cta { display: none; }
  body { background: #fff; color: #000; }
  .schedule-table, .price-table { box-shadow: none; }
  .card, .callout { box-shadow: none; border: 1px solid #ccc; }
}
