/* ==========================================================================
   AI Arabic Music Studio — main stylesheet
   Palette: deep near-black green background, emerald accent, warm gold
   for pricing/highlights. Typography: Amiri (display) + Cairo (body/UI,
   supports Arabic script so the /ar version shares the same font stack).
   ========================================================================== */

:root {
  --bg:          #0a1310;
  --bg-alt:      #101c17;
  --bg-card:     #14231d;
  --border:      rgba(212, 229, 219, 0.10);
  --text:        #ece7d8;
  --text-muted:  #9fb3a8;
  --green:       #1e9e5a;
  --green-bright:#2bc478;
  --green-dark:  #0d5c34;
  --gold:        #cda158;
  --gold-bright: #e0b96f;
  --danger:      #c65b4a;
  --radius:      14px;
  --radius-sm:   8px;
  --shadow:      0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --font-display: 'Montserrat', 'Cairo', sans-serif;
  --font-body:    'Montserrat', 'Cairo', sans-serif;
  --header-h:     76px;
}

* { 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.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--green-bright); text-decoration: none; }
a:hover { color: var(--gold-bright); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.5em;
  color: #fff;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
p { margin: 0 0 1em; color: var(--text-muted); }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-bright);
  font-weight: 600;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--green-bright);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { flex-shrink: 0; width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(135deg, var(--green-bright), var(--green-dark));
  color: #06170f;
}
.btn-primary:hover { color: #06170f; box-shadow: 0 12px 30px -10px rgba(43, 196, 120, 0.55); }
.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--green-bright); color: var(--green-bright); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 19, 16, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}
.brand:hover { color: var(--gold-bright); }
.brand .dot { color: var(--green-bright); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--green-bright);
  transition: width 0.2s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--green-bright); }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-flag {
  font-size: 1.35rem;
  line-height: 1;
  opacity: 0.55;
  filter: grayscale(40%);
  transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}
.lang-flag.active {
  opacity: 1;
  filter: grayscale(0%);
}
.lang-flag:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(-2px) scale(1.08);
}
.nav-links .lang-item {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 600px; }
  .nav-links li { border-top: 1px solid var(--border); }
  .nav-links a { display: block; padding: 16px 24px; }
  .nav-links a::after { display: none; }
  .nav-links .lang-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
  }
  .nav-links .lang-item .lang-flag {
    font-size: 1.6rem;
  }
  .lang-switch { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 76vh;
  display: flex;
  align-items: center;
  background: var(--bg-alt) center/cover no-repeat;
  overflow: hidden;
}
.hero-bg-photo {
  position: absolute;
  inset: 0;
  background-image: var(--hero-image, none);
  background-size: cover;
  background-position: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,19,16,0.55) 0%, rgba(10,19,16,0.75) 55%, var(--bg) 100%),
    radial-gradient(ellipse at 20% 20%, rgba(30,158,90,0.25), transparent 55%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.hero p.lead {
  font-size: 1.15rem;
  color: #d7e3da;
  max-width: 560px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* Signature divider: geometric arabesque line */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 50px;
  max-width: 260px;
  color: var(--green-bright);
  opacity: 0.85;
}
.divider .line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, currentColor, transparent); }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-head p { margin: 0 auto; }

/* ---------- Intro text ---------- */
.intro-text {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.08rem;
}

/* ---------- Pricing card ---------- */
.pricing-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 46px 40px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
}
.pricing-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, rgba(43,196,120,0.4), transparent 40%, rgba(205,161,88,0.35));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  margin: 18px 0 8px;
}
.price-old {
  font-size: 1.4rem;
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: var(--danger);
}
.price-new {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--gold-bright);
}
.price-currency { font-size: 1.4rem; color: var(--gold-bright); font-weight: 600; }
.price-note { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 26px; }

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  text-align: left;
  display: inline-block;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 0.96rem;
}
.feature-list li svg { flex-shrink: 0; margin-top: 3px; color: var(--green-bright); }

.secure-payment {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.secure-payment .label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.card-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.card-icons .badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  background: rgba(255,255,255,0.02);
}

/* ---------- Social squares ---------- */
.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 780px;
  margin: 0 auto;
}
.social-card {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.social-card svg { width: 34px; height: 34px; }
.social-card span { font-weight: 600; font-size: 0.95rem; }
.social-card:hover { transform: translateY(-6px); color: #fff; }
.social-card.youtube:hover { border-color: #ff3b3b; background: linear-gradient(160deg, rgba(255,59,59,0.16), var(--bg-card)); }
.social-card.instagram:hover { border-color: #e17a4e; background: linear-gradient(160deg, rgba(225,122,78,0.16), var(--bg-card)); }
.social-card.tiktok:hover { border-color: var(--green-bright); background: linear-gradient(160deg, rgba(43,196,120,0.18), var(--bg-card)); }

@media (max-width: 620px) {
  .social-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .social-card span { font-size: 0.78rem; }
  .social-card svg { width: 26px; height: 26px; }
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 920px;
  margin: 0 auto;
}
.step { text-align: center; }
.step .num {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--green-bright);
  color: var(--green-bright);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0 auto 16px;
}
.step h3 { font-size: 1.05rem; }
.step p { font-size: 0.92rem; }

@media (max-width: 780px) {
  .steps { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Coming soon page ---------- */
.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(43,196,120,0.12);
  border: 1px solid rgba(43,196,120,0.35);
  color: var(--green-bright);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.coming-soon-badge .pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 0 0 rgba(43,196,120,0.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(43,196,120,0.55); }
  70% { box-shadow: 0 0 0 10px rgba(43,196,120,0); }
  100% { box-shadow: 0 0 0 0 rgba(43,196,120,0); }
}

/* Full-width "this page is not functional yet" banner */
.preview-banner {
  background: linear-gradient(90deg, #4a3410, #5c4114, #4a3410);
  border-bottom: 1px solid rgba(224,185,111,0.35);
  padding: 14px 20px;
  text-align: center;
}
.preview-banner strong {
  color: var(--gold-bright);
}
.preview-banner p {
  margin: 0;
  color: #f0dcb0;
  font-size: 0.92rem;
  font-weight: 600;
}

.dialect-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 30px 0;
}
.dialect-chip {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  font-size: 0.9rem;
  text-align: center;
}
.dialect-chip .flag { font-size: 1.3rem; display: block; margin-bottom: 6px; }

@media (max-width: 780px) {
  .dialect-grid { grid-template-columns: repeat(2, 1fr); }
}

.policy-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  gap: 14px;
}
.policy-list li {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text);
}
.policy-list li svg { flex-shrink: 0; color: var(--green-bright); margin-top: 2px; }

/* ---------- Occasions ---------- */
.occasion-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 26px 0;
}
.occasion-tags span {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Contact form ---------- */
.contact-wrap {
  max-width: 620px;
  margin: 0 auto;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.form-group label .req { color: var(--danger); }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.96rem;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-bright);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-check { display: flex; }
.check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-muted);
  cursor: pointer;
}
.check-label input[type="checkbox"] {
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--green-bright);
  cursor: pointer;
}
.check-label a { color: var(--green-bright); }
.form-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 30px; text-align: center; }

.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-size: 0.92rem;
}
.alert-success { background: rgba(43,196,120,0.12); border: 1px solid rgba(43,196,120,0.4); color: var(--green-bright); }
.alert-error { background: rgba(198,91,74,0.12); border: 1px solid rgba(198,91,74,0.4); color: #e08d7e; }

/* Hide the reCAPTCHA v3 floating badge (legally you must keep the text disclaimer somewhere, see contact.php) */
.grecaptcha-badge { visibility: hidden !important; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 56px 0 28px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.footer-brand {
  max-width: 320px;
}
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { font-size: 0.88rem; }
.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-muted); font-size: 0.92rem; }
.footer-col a:hover { color: var(--green-bright); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 620px) {
  section { padding: 60px 0; }
  .pricing-card { padding: 36px 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ---------- Legal pages ---------- */
.legal-content { max-width: 780px; margin: 0 auto; }
.legal-content h2 { margin-top: 2em; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content ul { color: var(--text-muted); }
.legal-content strong { color: var(--text); }
.legal-updated { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 40px; }

/* ---------- Bio (linktree-style) page ---------- */
.bio-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}
.bio-card { width: 100%; max-width: 420px; text-align: center; }
.bio-avatar {
  width: 128px; height: 128px;
  border-radius: 50%;
  border: 3px solid var(--green-bright);
  object-fit: cover;
  margin: 0 auto 20px;
  box-shadow: 0 0 0 6px rgba(30,158,90,0.12);
}
.bio-card h1 { font-size: 1.5rem; margin-bottom: 6px; }
.bio-card .tagline { color: var(--green-bright); font-size: 0.9rem; margin-bottom: 34px; }
.bio-links { display: grid; gap: 14px; }
.bio-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-weight: 600;
  transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease;
}
.bio-link:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: var(--green-bright);
  background: linear-gradient(135deg, rgba(30,158,90,0.14), var(--bg-card));
  color: #fff;
}
.bio-link svg { flex-shrink: 0; }
.bio-link.primary {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(205,161,88,0.16), var(--bg-card));
}
.bio-link.primary:hover { border-color: var(--gold-bright); }

.bio-link.youtube {
  border-color: rgba(255,0,0,0.35);
  background: linear-gradient(135deg, rgba(255,0,0,0.14), var(--bg-card));
}
.bio-link.youtube svg { color: #ff3b3b; }
.bio-link.youtube:hover { border-color: #ff3b3b; background: linear-gradient(135deg, rgba(255,0,0,0.22), var(--bg-card)); }

.bio-link.instagram {
  border-color: rgba(225,48,108,0.4);
  background: linear-gradient(135deg, rgba(131,58,180,0.16), rgba(225,48,108,0.14), rgba(247,119,55,0.12));
}
.bio-link.instagram svg { color: #e1306c; }
.bio-link.instagram:hover { border-color: #e1306c; }

.bio-link.tiktok {
  border-color: rgba(255,255,255,0.14);
  background: #000;
  box-shadow: inset 2px 0 0 #25f4ee, inset -2px 0 0 #fe2c55;
}
.bio-link.tiktok svg { color: #fff; }
.bio-link.tiktok:hover { border-color: #25f4ee; }
.bio-footer { margin-top: 36px; font-size: 0.78rem; color: var(--text-muted); }
