/* ============================================================
   JOY FLUTE ENSEMBLE — Base & Reset
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--bg-page);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--text-dark);
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 600; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }

p { line-height: 1.75; color: var(--text-mid); }

a {
  color: var(--violet);
  text-decoration: none;
  transition: color var(--t);
}
a:hover { color: var(--lavender); }

ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Container ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}
.container-sm {
  max-width: var(--max-w-text);
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Section ── */
.section {
  padding: 96px 0;
}
.section-sm { padding: 64px 0; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--lavender);
  margin-bottom: 14px;
}
.section-tag::before {
  content: '';
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--lavender);
}

.section-title { margin-bottom: 18px; }
.section-intro {
  font-size: 1.1rem;
  max-width: 620px;
  color: var(--text-soft);
  margin-bottom: 48px;
}

/* ── Divider ── */
.divider {
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--violet), var(--lilac));
  border-radius: 2px;
  margin: 20px 0 36px;
}
.divider-center { margin-left: auto; margin-right: auto; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--violet);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(61,53,128,0.3);
}
.btn-primary:hover {
  background: var(--violet-mid);
  box-shadow: 0 8px 28px rgba(61,53,128,0.42);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--violet);
  border: 1.5px solid var(--violet);
}
.btn-outline:hover {
  background: var(--violet);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.25);
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(201,168,76,0.35);
}
.btn-gold:hover {
  background: #b89440;
  box-shadow: 0 8px 24px rgba(201,168,76,0.5);
  color: var(--white);
}

.btn-sm { padding: 9px 20px; font-size: 13px; }
.btn-lg { padding: 16px 40px; font-size: 15px; }

/* ── Cards ── */
.card {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.card-body { padding: 28px 28px 32px; }

/* ── Badge ── */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.badge-violet  { background: rgba(61,53,128,0.1);  color: var(--violet); }
.badge-lavender{ background: rgba(107,99,181,0.12); color: var(--lavender); }
.badge-gold    { background: rgba(201,168,76,0.15); color: #9a7820; }

/* ── Fade-in animations ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s var(--t-slow), transform 0.65s var(--t-slow);
}
.reveal.visible { opacity: 1; transform: none; }

/* ── Page header (inner pages) ── */
.page-header {
  background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 60%, var(--violet-mid) 100%);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
  color: var(--white);
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-header .section-tag { color: var(--lilac); }
.page-header .section-tag::before { background: var(--lilac); }
.page-header h1 { color: var(--white); margin-bottom: 12px; }
.page-header p  { color: rgba(255,255,255,0.75); font-size: 1.15rem; max-width: 560px; margin: 0 auto; }

/* ── Breadcrumb ── */
.breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { opacity: 0.4; }

/* ── Note musicali decorative ── */
.music-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.music-bg span {
  position: absolute;
  font-size: 2rem;
  opacity: 0.04;
  user-select: none;
  animation: floatNote 12s ease-in-out infinite;
}
@keyframes floatNote {
  0%,100% { transform: translateY(0) rotate(-10deg); }
  50%      { transform: translateY(-20px) rotate(10deg); }
}

/* ── Responsive utilities ── */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mt-56 { margin-top: 56px; }
.gap-2 { gap: 8px; }

@media (max-width: 768px) {
  .section  { padding: 64px 0; }
  .section-sm { padding: 44px 0; }
  .container  { padding: 0 20px; }
  .container-sm { padding: 0 20px; }
}
@media (max-width: 480px) {
  .section { padding: 48px 0; }
}
