/* ===== Music page - Lebanese cultural styling ===== */
.music-page {
  --arabic: "Amiri", "Traditional Arabic", serif;
  --calligraphy: "Aref Ruqaa", "Amiri", serif;
  --parchment: #f6ecd9;
  --gold-soft: rgba(227, 179, 65, .35);
  /* eight-pointed star (khatam) tile - traditional Levantine geometric pattern */
  --star-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23e3b341' stroke-opacity='.13' stroke-width='1.2'%3E%3Crect x='22' y='22' width='36' height='36'/%3E%3Crect x='22' y='22' width='36' height='36' transform='rotate(45 40 40)'/%3E%3Ccircle cx='40' cy='40' r='9'/%3E%3Cpath d='M0 0L14.5 14.5M80 0L65.5 14.5M0 80L14.5 65.5M80 80L65.5 65.5'/%3E%3C/g%3E%3C/svg%3E");
  --star-maroon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%235a1616' stroke-opacity='.07' stroke-width='1.2'%3E%3Crect x='22' y='22' width='36' height='36'/%3E%3Crect x='22' y='22' width='36' height='36' transform='rotate(45 40 40)'/%3E%3Ccircle cx='40' cy='40' r='9'/%3E%3Cpath d='M0 0L14.5 14.5M80 0L65.5 14.5M0 80L14.5 65.5M80 80L65.5 65.5'/%3E%3C/g%3E%3C/svg%3E");
}
[lang="ar"] { direction: rtl; }

/* Cedar ornament divider */
.ornament { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 6px auto 28px; color: var(--gold); }
.ornament span { width: 70px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament span:last-child { transform: scaleX(-1); }
.ornament svg { width: 44px; height: 44px; fill: currentColor; }

/* Hero */
.m-hero {
  position: relative; min-height: calc(100svh - var(--header-h, 106px)); display: grid; place-items: center; text-align: center; color: var(--white); overflow: hidden;
  background: linear-gradient(rgba(25, 8, 6, .62), rgba(25, 8, 6, .82)), url("../images/interior-1.jpg") center / cover;
}
.m-hero::before { content: ""; position: absolute; inset: 0; background: var(--star-gold); opacity: .55; }
.m-hero-content { position: relative; max-width: 760px; padding: 60px 16px; }
.m-arabic-title { font-family: var(--calligraphy); font-size: clamp(5rem, 16vw, 9.5rem); line-height: 1.25; color: var(--gold); margin: 0 0 .12em; text-shadow: 0 4px 24px rgba(0, 0, 0, .5); }
.m-arabic-title.small { font-size: clamp(3.5rem, 10vw, 6rem); }
.m-hero h1 { color: var(--white); font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: .02em; margin-bottom: .2em; }
.m-hero .lead { font-size: 1.2rem; color: #f1e3d3; margin-bottom: 1.8em; }

/* Section bases */
.m-section { padding: 100px 0; }
.m-parchment { background: var(--star-maroon), var(--parchment); }
.m-dark { background: radial-gradient(ellipse at top, #4a1a14 0%, var(--dark) 65%); color: #e9dfd6; }
.m-dark h2 { color: var(--gold); }
.m-dark .intro { color: #c9bcb2; }
.m-pattern { background: var(--star-gold), radial-gradient(ellipse at top, #4a1a14 0%, var(--dark) 65%); }
.music-page em { font-family: var(--serif); font-style: italic; }

/* Intro */
.m-intro { display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; align-items: center; }
.m-intro-word { font-family: var(--calligraphy); font-size: clamp(7rem, 18vw, 13rem); line-height: 1; color: var(--maroon); text-align: center; position: relative; }
.m-intro-word::after { content: ""; display: block; width: 140px; height: 3px; margin: 10px auto 0; background: var(--gold); }

/* Legends */
.legends { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px; text-align: center; }
.legend { display: flex; flex-direction: column; gap: 18px; }
.legend-arch {
  flex: 1; position: relative; padding: 70px 34px 34px; border-radius: 220px 220px 10px 10px;
  background: linear-gradient(rgba(58, 13, 13, .55), rgba(29, 21, 19, .85)); border: 1px solid var(--gold-soft);
}
.legend-arch::before { content: ""; position: absolute; inset: 8px; border-radius: 212px 212px 6px 6px; border: 1px solid rgba(227, 179, 65, .18); pointer-events: none; }
.legend-ar { font-family: var(--arabic); font-weight: 700; font-size: 2.6rem; line-height: 1.3; color: var(--gold); margin: 0; }
.legend h3 { color: var(--white); font-size: 1.6rem; margin: 2px 0 4px; }
.legend-title { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1rem; margin-bottom: 14px; }
.legend-arch p:last-child { color: #d8cbc0; font-size: .98rem; margin: 0; }

/* Spotify players */
.players { display: grid; gap: 12px; }
.players iframe { display: block; width: 100%; height: 152px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.players iframe.tall { height: 380px; }
.players-wide { max-width: 860px; margin: 0 auto; }

/* Instruments */
.instruments { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.instrument { position: relative; padding: 36px 22px 28px; background: #fffaf1; border: 1px solid #e6d5b8; border-radius: 6px; box-shadow: var(--shadow); }
.instrument::before { content: ""; position: absolute; inset: 6px; border: 1px solid #efe2c9; border-radius: 4px; pointer-events: none; }
.instrument-ar { display: block; font-family: var(--calligraphy); font-size: 3.6rem; line-height: 1.2; color: var(--maroon); }
.instrument h3 { color: var(--orange); font-family: var(--sans); font-weight: 500; text-transform: uppercase; letter-spacing: .18em; font-size: .9rem; margin: 6px 0 12px; }
.instrument p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Dabke CTA */
.m-dabke {
  position: relative; padding: 110px 0; color: var(--white);
  background: linear-gradient(rgba(25, 8, 6, .8), rgba(25, 8, 6, .85)), url("../images/outside.jpg") center / cover;
}
.m-dabke::before { content: ""; position: absolute; inset: 0; background: var(--star-gold); }
.m-dabke .container { position: relative; }
.m-dabke h2 { color: var(--gold); }
.m-dabke .intro { color: #eadccd; }
.m-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 1080px) {
  .instruments { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .m-section { padding: 72px 0; }
  .m-intro { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .legends { grid-template-columns: 1fr; }
  .legend-arch { padding: 60px 24px 28px; }
}
@media (max-width: 560px) {
  .m-hero { min-height: calc(100svh - var(--header-h, 106px) - 52px); }
  .instruments { grid-template-columns: 1fr; }
  .legend-ar { font-size: 2.2rem; }
}
