/* ============================================================
   Music Production Technology — base styles
   ============================================================ */

:root {
  --bg: #0b0c10;
  --bg-alt: #101218;
  --panel: #15171f;
  --panel-border: #23262f;
  --text: #f2f1ec;
  --text-dim: #a7a9b4;
  --accent: #e87722;
  --accent-2: #3b82f6;
  --accent-soft: rgba(232, 119, 34, 0.16);
  --radius: 14px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

p { margin: 0 0 1em; color: var(--text-dim); }
a { color: inherit; }
ul { padding-left: 1.1em; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #0b0c10;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }

.btn-primary {
  background: var(--accent);
  color: #120a08;
}
.btn-primary:hover { background: #ff6f54; }

.btn-outline {
  border-color: var(--panel-border);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover { border-color: var(--accent); }

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
}
.btn-ghost:hover { color: var(--text); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 12, 16, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--panel-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.brand-logo {
  width: 40px;
  height: auto;
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.brand-text em { color: var(--accent); font-style: normal; }

.nav {
  display: flex;
  gap: 26px;
  flex: 1;
  justify-content: center;
}
.nav a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  display: block;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 72px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
}
#waveform { width: 100%; height: 100%; display: block; }

.hero-inner { position: relative; z-index: 1; max-width: 760px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.1rem;
  max-width: 620px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 56px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  max-width: 640px;
}
.hero-stats dt {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
}
.hero-stats dd {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
.section-sub { font-size: 1.02rem; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 30px;
}
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 0.95rem; }

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  font-family: var(--font-display);
  margin-bottom: 18px;
}

/* ---------- Curriculum ---------- */
.curriculum {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.term {
  display: flex;
  gap: 18px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 28px;
}

.term-index {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-2);
  opacity: 0.8;
  flex-shrink: 0;
}

.term-body h3 { font-size: 1.1rem; margin-bottom: 2px; }
.term-meta {
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.term-body ul { margin: 0; padding-left: 1.1em; }
.term-body li { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 6px; }

.curriculum-cta { margin-top: 36px; }

/* ---------- Pill grid (elective courses) ---------- */
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  color: var(--text-dim);
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 999px;
}

/* ---------- Trojan Soundworks label section ---------- */
.label-visual {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
}
.label-logo {
  width: 200px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 32px;
  display: block;
}
.label-depts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  text-align: left;
}
.label-dept {
  border-top: 2px solid var(--accent);
  padding-top: 10px;
}
.label-dept h4 {
  font-family: var(--font-display);
  font-size: 0.92rem;
  margin: 0 0 4px;
  color: var(--text);
}
.label-dept p {
  font-size: 0.82rem;
  margin: 0;
  color: var(--text-dim);
}

.careers-grid .card { padding: 24px; }
.careers-grid .card h3 { font-size: 1rem; margin-bottom: 8px; }
.careers-grid .card p { font-size: 0.88rem; }

.faculty-card a { color: var(--accent-2); text-decoration: none; }
.faculty-card a:hover { text-decoration: underline; }

/* ---------- Instagram ---------- */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.instagram-grid > .instagram-media {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  border-radius: var(--radius);
  overflow: hidden;
}

@media (max-width: 900px) {
  .instagram-grid { grid-template-columns: 1fr; }
}

/* ---------- Two-col / studio ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.checklist { list-style: none; padding: 0; margin: 22px 0 0; }
.checklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--text-dim);
  font-size: 0.96rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
}

.studio-visual {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 40px 30px;
}
.mixer {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  height: 220px;
}
.mixer-strip {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  opacity: 0.85;
}

/* ---------- Faculty ---------- */
.faculty-card { text-align: left; }
.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: #0b0c10;
  margin-bottom: 18px;
}
.role {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}

/* ---------- Stats / testimonials ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0 0 48px;
  padding: 0;
}
.stat-row dt {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
}
.stat-row dd {
  margin: 6px 0 0;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.testimonial {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 26px;
}
.testimonial p {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 14px;
}
.testimonial cite {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footnote {
  font-size: 0.78rem;
  color: var(--text-dim);
  opacity: 0.7;
  margin-top: 18px;
}

/* ---------- Pricing ---------- */
.pricing { margin-top: 56px; }
.pricing-card {
  max-width: 560px;
  background: linear-gradient(160deg, var(--panel), var(--bg-alt));
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 40px;
}
.pricing-card h3 { font-size: 1.2rem; }
.price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}
.price span {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-dim);
}
.pricing-card .btn { margin-top: 26px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; }
.faq-item {
  border-bottom: 1px solid var(--panel-border);
  padding: 20px 0;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent);
  margin-left: 20px;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin-top: 14px; margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-details {
  list-style: none;
  padding: 0;
  margin-top: 24px;
}
.contact-details li {
  margin-bottom: 10px;
  color: var(--text-dim);
  font-size: 0.95rem;
}
.contact-details strong {
  display: inline-block;
  width: 70px;
  color: var(--text);
}

.contact-form {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 34px;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-dim);
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid var(--panel-border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.hidden-field { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--panel-border);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-nav { display: flex; gap: 20px; }
.footer-nav a { text-decoration: none; color: var(--text-dim); font-size: 0.9rem; }
.footer-nav a:hover { color: var(--text); }
.footer-copy { color: var(--text-dim); font-size: 0.82rem; margin: 0; width: 100%; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .two-col { grid-template-columns: 1fr; }
  .grid-3, .curriculum, .testimonials, .stat-row, .label-depts { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .site-header.nav-open .nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--panel-border);
    padding: 20px 24px;
    gap: 16px;
  }
}

@media (max-width: 560px) {
  .hero { padding: 72px 0 48px; }
  .header-actions .btn-ghost { display: none; }
  .footer-copy { text-align: left; }
}
