/* ============================================================
   WORLD OF TRUMPET — Shared Stylesheet
   Brand: Manrope · #081E30 · #FFFEF1 · #D3BC59
   ============================================================ */

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', sans-serif;
  background: #081E30;
  color: #FFFEF1;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── CSS Custom Properties ── */
:root {
  --navy:      #081E30;
  --navy-mid:  #0D2847;
  --cream:     #FFFEF1;
  --gold:      #D3BC59;
  --gold-light:#E8D47A;
  --green:     #00B67A;
  --green-dark:#009966;
  --text-muted:#9DA2B3;
  --text-dim:  #6E7180;
  --border:    rgba(211,188,89,0.15);
  --radius:    12px;
  --radius-lg: 20px;
  --max-w:     1180px;
  --section-pad: 96px 24px;
}

/* ── Typography ── */
h1, h2, h3, h4, h5 { font-family: 'Manrope', sans-serif; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 900; letter-spacing: -1.5px; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem);   font-weight: 800; letter-spacing: -0.5px; }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }
p  { font-size: 1rem; line-height: 1.8; color: var(--text-muted); }

.text-cream  { color: var(--cream) !important; }
.text-gold   { color: var(--gold) !important; }
.text-white  { color: #fff !important; }
.text-muted  { color: var(--text-muted) !important; }
.text-center { text-align: center; }

.gold-text {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Layout Helpers ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section    { padding: var(--section-pad); }
.section-sm { padding: 60px 24px; }

.divider {
  width: 56px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 20px 0;
}
.divider-center { margin: 20px auto; }

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
}
.section-label-light { color: #6B5512 !important; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  padding: 17px 38px;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--green);
  color: #fff;
}
.btn-primary:hover {
  background: var(--green-dark);
  box-shadow: 0 8px 28px rgba(0,182,122,0.35);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
}
.btn-gold:hover {
  box-shadow: 0 8px 28px rgba(211,188,89,0.35);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-outline-gold:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  border-color: transparent;
}

.btn-outline-cream {
  background: transparent;
  color: var(--cream);
  border: 2px solid rgba(255,254,241,0.3);
}
.btn-outline-cream:hover {
  border-color: var(--cream);
  background: rgba(255,254,241,0.08);
}

.btn-sm { font-size: 0.875rem; padding: 12px 24px; }
.btn-lg { font-size: 1.1rem; padding: 20px 48px; }

/* ── Navigation ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8, 30, 48, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo svg { height: 34px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 7px 16px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--cream);
  background: rgba(255,254,241,0.06);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-cta {
  font-size: 0.8rem;
  padding: 8px 18px;
  border-width: 1.5px;
}

.nav-login {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-login:hover {
  color: var(--cream);
  background: rgba(255,254,241,0.06);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  z-index: 1001;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  top: 68px;
  background: var(--navy);
  z-index: 999;
  flex-direction: column;
  padding: 32px 24px;
  gap: 8px;
  border-top: 1px solid var(--border);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,254,241,0.06);
  transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--cream); }
.nav-mobile .btn { margin-top: 16px; text-align: center; justify-content: center; width: 100%; }

/* ── Footer ── */
.site-footer {
  background: #040F1A;
  border-top: 1px solid var(--border);
  padding: 64px 24px 32px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,254,241,0.06);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--cream); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 32px;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-dim);
}

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

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  font-size: 0.85rem;
}
.footer-social a:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(211,188,89,0.08);
}

/* ── Cards ── */
.card {
  background: rgba(255,254,241,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(211,188,89,0.35);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* ── Course Category Tags ── */
.course-cat {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 40px;
  margin-bottom: 10px;
  border: 1px solid currentColor;
}
.course-cat-jazz       { color: #D3BC59; }
.course-cat-classical  { color: #7BAEC8; }
.course-cat-commercial { color: #E08C5A; }
.course-cat-foundation { color: #9DA2B3; }

/* ── Course Card ── */
.course-card {
  display: flex;
  flex-direction: column;
}
.course-card .card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--navy-mid);
}
.course-card .card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.course-card:hover .card-thumb img { transform: scale(1.04); }

.course-card .card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.course-card .card-instructor {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.course-card .card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--cream);
  margin-bottom: 10px;
  line-height: 1.25;
}
.course-card .card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
  flex: 1;
}
.course-card .card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: auto;
  gap: 12px;
}
.course-card .card-meta-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}
.course-card .card-meta-item {
  font-size: 0.78rem;
  font-weight: 700;
  color: currentColor;
  text-align: right;
  white-space: nowrap;
}
.course-card .card-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--cream);
}

/* ── Blog Card ── */
.blog-card .card-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--navy-mid);
}
.blog-card .card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-card:hover .card-thumb img { transform: scale(1.04); }

.blog-card .card-body { padding: 24px; }
.blog-card .card-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.blog-card .card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 10px;
  line-height: 1.35;
}
.blog-card .card-excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
}
.blog-card .card-meta {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 600;
}

/* ── Testimonial Card ── */
.testimonial-card {
  background: rgba(255,254,241,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.testimonial-card .stars {
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.testimonial-card blockquote {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--cream);
  font-style: italic;
  margin-bottom: 24px;
  flex: 1;
}
.testimonial-card .reviewer {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-card .reviewer img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}
.testimonial-card .reviewer-info .name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--cream);
}
.testimonial-card .reviewer-info .role {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── Kit Email Form ── */
.kit-form-wrap {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 520px;
  margin: 0 auto;
}
.kit-form-wrap input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 16px 22px;
  border-radius: 40px;
  border: 1.5px solid var(--border);
  background: rgba(255,254,241,0.06);
  color: var(--cream);
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
.kit-form-wrap input[type="email"]::placeholder { color: var(--text-dim); }
.kit-form-wrap input[type="email"]:focus { border-color: var(--gold); }
.kit-form-wrap .btn { flex-shrink: 0; }

/* ── Grids ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── Stat strip ── */
.stat-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 40px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-item .stat-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--cream);
  letter-spacing: -1px;
  line-height: 1;
}
.stat-item .stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ── Light section variant ── */
.section-light {
  background: #F4F3EE;
  color: var(--navy);
}
.section-light p { color: #4A5568; }
.section-light h2, .section-light h3 { color: var(--navy); }

/* ── Checkout Modal ── */
#checkout-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(4, 15, 26, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
#checkout-modal.open { display: flex; }
#checkout-modal-inner {
  position: relative;
  background: var(--navy);
  border: 1px solid rgba(211,188,89,0.25);
  border-radius: 20px;
  padding: 48px 40px 40px;
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  overflow-y: auto;
}
#checkout-modal-close {
  position: absolute;
  top: 16px; right: 20px;
  background: none; border: none;
  color: var(--text-dim);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  transition: color 0.2s;
}
#checkout-modal-close:hover { color: var(--cream); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-pad: 64px 20px; }

  h1 { letter-spacing: -0.5px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }

  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .nav-hamburger { display: flex; }

  .stat-item { padding: 16px 24px; border-right: none; border-bottom: 1px solid var(--border); width: 50%; }
  .stat-item:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .nav-inner { padding: 0 20px; }
  .footer-top { grid-template-columns: 1fr; }
  .stat-item { width: 100%; border-right: none !important; }
  .kit-form-wrap { flex-direction: column; }
  .kit-form-wrap input, .kit-form-wrap .btn { width: 100%; }
  .btn-lg { font-size: 1rem; padding: 17px 32px; }
}
