/* ============================================
   Sydney Chamber Music Institute
   Global Stylesheet
   ============================================ */

:root {
  --bg-primary: #111111;
  --bg-card: #1a1a1a;
  --bg-card-warm: #1e1a16;
  --bg-light: #f5f2ec;
  --gold: #c9a84c;
  --gold-dim: #a08235;
  --gold-glow: rgba(201, 168, 76, 0.08);
  --text-primary: #f0ece4;
  --text-secondary: #a8a298;
  --text-muted: #6b6560;
  --text-dark: #1a1a1a;
  --border: #2a2725;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Raleway', 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  height: 48px;
  width: auto;
}

.nav-logo-text {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.4;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
  transition: color 0.25s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--gold);
}

.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 10px 28px;
  border-radius: 2px;
  transition: all 0.25s ease;
}

.nav-cta:hover {
  background: var(--gold);
  color: var(--bg-primary);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: all 0.3s;
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
  padding: 80px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-full {
  padding: 80px 48px;
}

.section-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.18;
}

.section-title-sm {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.25;
}

.section-body {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.85;
  max-width: 680px;
}

.section-body p + p {
  margin-top: 16px;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 48px;
  max-width: 1104px;
}

/* ============================================
   LAYOUT: TWO COLUMNS
   ============================================ */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.col-image {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 6px;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--bg-primary);
  background: var(--gold);
  padding: 15px 44px;
  border-radius: 2px;
  transition: all 0.25s ease;
}

.btn-primary:hover {
  background: var(--gold-dim);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  background: transparent;
  padding: 15px 44px;
  border-radius: 2px;
  transition: all 0.25s ease;
}

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

/* ============================================
   HERO (Home)
   ============================================ */

.hero {
  padding: 80px 48px 100px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero .section-title {
  font-size: clamp(38px, 5vw, 58px);
  max-width: 560px;
  margin-bottom: 28px;
}

.hero .section-body {
  margin-bottom: 36px;
}

/* ============================================
   VALUE CARDS
   ============================================ */

.value-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.value-card {
  background: var(--bg-card-warm);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.value-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-3px);
}

.value-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.value-card-image-placeholder {
  width: 100%;
  height: 200px;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
  font-style: italic;
}

.value-card-content {
  padding: 28px 24px;
}

.value-card-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.value-card-text {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   CTA BANNER
   ============================================ */

.cta-banner {
  text-align: center;
  padding: 80px 48px;
  border-top: 1px solid var(--border);
}

.cta-banner .section-title {
  margin-bottom: 12px;
}

.cta-banner .section-body {
  max-width: 600px;
  margin: 0 auto 32px;
  text-align: center;
}

.cta-deadline {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
}

/* ============================================
   STYLED LIST
   ============================================ */

.styled-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.styled-list li {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 300;
  padding-left: 24px;
  position: relative;
  line-height: 1.65;
}

.styled-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 1px;
  background: var(--gold);
}

.note-gold {
  margin-top: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gold);
  font-style: italic;
}

/* ============================================
   ENSEMBLE GRID
   ============================================ */

.ensemble-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.ensemble-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px 16px;
  text-align: center;
  transition: border-color 0.3s ease;
}

.ensemble-card:hover {
  border-color: var(--gold-dim);
}

.ensemble-icon {
  font-size: 24px;
  color: var(--gold);
  margin-bottom: 14px;
}

.ensemble-name {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.35;
}

.ensemble-note {
  margin-top: 28px;
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.8;
}

/* ============================================
   PROGRAM STATS
   ============================================ */

.program-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.program-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 32px 20px;
  text-align: center;
  transition: border-color 0.3s ease;
}

.program-stat:hover {
  border-color: var(--gold-dim);
}

.program-stat-number {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 300;
  color: var(--gold);
  margin-bottom: 8px;
}

.program-stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.5;
}

/* ============================================
   DIRECTOR CARD
   ============================================ */

.director-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 40px;
  transition: border-color 0.3s ease;
}

.director-card:hover {
  border-color: var(--gold-dim);
}

.director-photo {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
}

.director-photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: #2a2520;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
  font-style: italic;
}

.director-info {
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.director-role {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.director-name {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 6px;
}

.director-instrument {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.director-summary {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 20px;
}

.credentials {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.credential {
  font-size: 14px;
  color: var(--text-secondary);
  padding-left: 18px;
  position: relative;
  font-weight: 400;
}

.credential::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 1px;
  background: var(--gold);
}

/* Expand/collapse bio */
.expand-btn {
  background: none;
  border: none;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
  align-self: flex-start;
}

.expand-btn:hover { color: var(--text-primary); }

.expand-btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.expand-btn.expanded svg { transform: rotate(180deg); }

.full-bio {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.4s ease;
  opacity: 0;
}

.full-bio.open {
  max-height: 600px;
  opacity: 1;
}

.full-bio-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  font-weight: 300;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

/* ============================================
   FACULTY GRID
   ============================================ */

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 22px;
  margin-top: 40px;
}

.faculty-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.25s ease;
}

.faculty-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-2px);
}

.faculty-card-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: grayscale(15%);
  transition: filter 0.3s ease;
}

.faculty-card:hover .faculty-card-photo {
  filter: grayscale(0%);
}

.faculty-card-photo-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #2a2520;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 12px;
  font-style: italic;
}

.faculty-card-info {
  padding: 18px 16px;
}

.faculty-card-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 4px;
}

.faculty-card-role {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.faculty-card-snippet {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 14px;
}

/* Faculty expanded bio */
.faculty-expanded {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.4s ease;
  opacity: 0;
}

.faculty-expanded.open {
  max-height: 800px;
  opacity: 1;
}

.faculty-expanded-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.75;
  font-weight: 300;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ============================================
   APPLY PAGE
   ============================================ */

.apply-hero {
  text-align: center;
  padding: 80px 48px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.apply-hero .section-body {
  max-width: 640px;
  margin: 0 auto 36px;
  text-align: center;
}

.apply-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.apply-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 36px 24px;
  text-align: center;
  transition: border-color 0.3s ease;
}

.apply-step:hover {
  border-color: var(--gold-dim);
}

.step-number {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 300;
  color: var(--gold);
  margin-bottom: 12px;
}

.step-title {
  font-family: var(--serif);
  font-size: 21px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.step-text {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.7;
}

/* ============================================
   CONTACT
   ============================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 40px;
}

.contact-item {
  margin-bottom: 24px;
}

.contact-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.contact-value {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.6;
}

.contact-value a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

.contact-value a:hover {
  color: var(--gold);
}

/* ============================================
   PHOTO GALLERY
   ============================================ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 40px;
}

.gallery-item {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  filter: grayscale(10%);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover {
  filter: grayscale(0%);
  transform: scale(1.02);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  border-top: 1px solid var(--border);
  padding: 32px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  height: 32px;
  width: auto;
  opacity: 0.6;
}

.footer-text {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-contact {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.footer-contact a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: var(--gold);
}

.footer-socials {
  display: flex;
  gap: 20px;
}

.footer-social {
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-social:hover {
  color: var(--gold);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.animate-in:nth-child(1) { animation-delay: 0.1s; }
.animate-in:nth-child(2) { animation-delay: 0.2s; }
.animate-in:nth-child(3) { animation-delay: 0.3s; }
.animate-in:nth-child(4) { animation-delay: 0.4s; }
.animate-in:nth-child(5) { animation-delay: 0.5s; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 960px) {
  .nav { padding: 16px 24px; }
  .nav-links { gap: 24px; }
  .section { padding: 60px 24px; }
  .hero { padding: 60px 24px 80px; }
  .divider { margin: 0 24px; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .value-cards { grid-template-columns: 1fr; }
  .ensemble-grid { grid-template-columns: repeat(3, 1fr); }
  .program-grid { grid-template-columns: repeat(2, 1fr); }
  .faculty-grid { grid-template-columns: repeat(3, 1fr); }
  .apply-steps { grid-template-columns: 1fr; }
  .director-card { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    gap: 20px;
  }
  .ensemble-grid { grid-template-columns: repeat(2, 1fr); }
  .faculty-grid { grid-template-columns: repeat(2, 1fr); }
  .col-image { height: 280px; }
  .hero .section-title { font-size: 32px; }
}
