/* ============================================================
   Dar Soltane — Salle des fêtes, Es Senia (Oran)
   Palette: bleu nuit + or champagne + crème ivoire
   ============================================================ */

:root {
  --navy:        #0E2A47;
  --navy-deep:   #0A1E38;
  --navy-soft:   #13325A;
  --gold:        #C7A24B;
  --gold-light:  #E7C977;
  --gold-deep:   #B8923C;
  --cream:       #F7F1E3;
  --cream-soft:  #FBF6EA;
  --ivory:       #FCFAF4;
  --ink:         #1B2531;
  --muted:       #5C6B7A;
  --white:       #ffffff;
  --wa-green:    #25D366;

  --maxw: 1180px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 4px 16px rgba(14,42,71,.08);
  --shadow-md: 0 14px 40px rgba(14,42,71,.14);
  --shadow-gold: 0 10px 30px rgba(199,162,75,.30);

  --font-head: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px;
}

/* ---------- RTL / Arabic font swap ---------- */
html[lang="ar"] {
  --font-head: 'Amiri', 'Cairo', Georgia, serif;
  --font-body: 'Cairo', system-ui, sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  font-weight: 300;
  font-size: 16px;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; color: var(--navy); }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { font-weight: 700; line-height: 1.4; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--s3); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 500; font-size: .95rem;
  letter-spacing: .02em; padding: 13px 26px; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer; transition: all .25s ease;
  text-align: center; line-height: 1.2; white-space: nowrap;
}
.btn.full { width: 100%; }
.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold-deep)); color: var(--navy-deep); box-shadow: var(--shadow-gold); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(199,162,75,.42); }
.btn-navy { background: var(--navy); color: var(--cream); }
.btn-navy:hover { background: var(--navy-deep); transform: translateY(-2px); }
.btn-outline-light { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-outline-navy { border-color: var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--cream); }
.btn-ghost { border-color: var(--gold); color: var(--navy); padding: 9px 18px; font-size: .85rem; }
.btn-ghost:hover { background: var(--gold); color: var(--navy-deep); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100;
  background: rgba(252,250,244,.0); padding-block: 14px;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.site-header.scrolled { background: rgba(252,250,244,.96); box-shadow: 0 2px 20px rgba(14,42,71,.10); backdrop-filter: blur(8px); padding-block: 8px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.brand-logo { height: 46px; width: auto; }
.brand-logo--dark { display: none; }
.brand-logo--light { display: block; }
.site-header.scrolled .brand-logo--dark { display: block; }
.site-header.scrolled .brand-logo--light { display: none; }

.main-nav { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 4px; background: transparent;
  border: 1.5px solid var(--gold); color: #fff; border-radius: 999px;
  padding: 6px 12px; cursor: pointer; font-family: var(--font-body); font-size: .82rem; font-weight: 500;
  transition: all .2s ease;
}
.site-header.scrolled .lang-toggle { color: var(--navy); }
.lang-opt { opacity: .5; transition: opacity .2s; }
.lang-opt.active { opacity: 1; color: var(--gold); font-weight: 600; }
.lang-sep { opacity: .4; }
.btn-call { display: none; }

.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px; background: none; border: none;
  cursor: pointer; padding: 8px; margin-inline-start: 2px;
}
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: all .3s ease; }
.site-header.scrolled .nav-toggle span { background: var(--navy); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.main-nav.open {
  display: flex; flex-direction: column; position: fixed; inset-block-start: 0; inset-inline-end: 0;
  inset-block-end: 0; width: min(80vw, 320px); background: var(--navy); padding: 90px var(--s4) var(--s4);
  gap: 6px; box-shadow: -10px 0 40px rgba(0,0,0,.3); z-index: 99;
}
.main-nav.open a { color: var(--cream); font-size: 1.15rem; font-family: var(--font-head); padding-block: 12px; border-block-end: 1px solid rgba(255,255,255,.08); }
.main-nav.open a:hover { color: var(--gold-light); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,30,56,.55) 0%, rgba(10,30,56,.35) 45%, rgba(10,30,56,.78) 100%); }
.hero-content { position: relative; z-index: 2; padding-block: 120px var(--s6); text-align: center; max-width: 760px; }
.hero-kicker { font-family: var(--font-body); letter-spacing: .28em; text-transform: uppercase; font-size: .74rem; color: var(--gold-light); margin-block-end: var(--s2); }
.hero-title { font-size: clamp(3.2rem, 12vw, 6rem); color: var(--cream); font-weight: 700; letter-spacing: .01em; line-height: 1; }
.hero-sub { font-size: clamp(1rem, 3vw, 1.22rem); color: rgba(255,255,255,.92); margin-block: var(--s3) var(--s4); font-weight: 300; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; margin-block-start: var(--s5); }
.hero-badges li { position: relative; font-size: .82rem; letter-spacing: .04em; color: rgba(255,255,255,.9); padding-inline-start: 18px; }
.hero-badges li::before { content: "✦"; color: var(--gold-light); position: absolute; inset-inline-start: 0; }

/* ---------- Sections ---------- */
.section { padding-block: var(--s6); }
.section--navy { background: var(--navy); color: var(--cream); position: relative; }
.section--navy h2, .section--navy h3 { color: var(--cream); }
.section--cream { background: var(--cream); }

.eyebrow { font-family: var(--font-body); text-transform: uppercase; letter-spacing: .25em; font-size: .72rem; color: var(--gold-deep); font-weight: 600; margin-block-end: 12px; }
.eyebrow--gold { color: var(--gold-light); }
.section-head { max-width: 720px; margin-block-end: var(--s5); }
.section-head.center { margin-inline: auto; text-align: center; }
.section h2 { font-size: clamp(1.8rem, 5vw, 2.7rem); }
.lead { color: var(--muted); font-size: 1.05rem; margin-block-start: var(--s2); }
.section--navy .lead { color: rgba(247,241,227,.78); }
.center { text-align: center; }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--s5); align-items: center; }
.section-text h2 { font-size: clamp(1.7rem, 5vw, 2.5rem); margin-block-end: var(--s2); }
.section-text p { color: var(--muted); margin-block-end: var(--s3); }
.section--navy .section-text p { color: rgba(247,241,227,.8); }

.media-frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.media-frame::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(199,162,75,.5); border-radius: 8px; pointer-events: none; }
.media-frame img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.check-list { list-style: none; margin-block: var(--s2) var(--s3); display: grid; gap: 10px; }
.check-list li { position: relative; padding-inline-start: 28px; font-size: .98rem; }
.check-list li::before { content: "✓"; position: absolute; inset-inline-start: 0; inset-block-start: 1px; width: 18px; height: 18px; background: var(--gold); color: var(--navy-deep); border-radius: 50%; font-size: .7rem; display: grid; place-items: center; font-weight: 700; }

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: 1fr; gap: var(--s2); }
.feature-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(199,162,75,.22); border-radius: var(--radius);
  padding: var(--s4) var(--s3); transition: all .3s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--gold); background: rgba(199,162,75,.08); }
.feature-icon { font-size: 2rem; display: block; margin-block-end: var(--s2); }
.feature-card h3 { font-size: 1.35rem; margin-block-end: 8px; }
.feature-card p { color: rgba(247,241,227,.72); font-size: .95rem; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s2); margin-block-end: var(--s4); }
.gallery-item { position: relative; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(14,42,71,.25)); opacity: 0; transition: opacity .3s; }
.gallery-item:hover::after { opacity: 1; }
.gallery-note { text-align: center; color: var(--muted); margin-block: var(--s3) var(--s2); font-size: .95rem; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: var(--s3); max-width: 880px; margin-inline: auto; }
.price-card {
  position: relative; background: var(--white); border: 1px solid rgba(14,42,71,.1); border-radius: var(--radius);
  padding: var(--s4); box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.price-card h3 { font-size: 1.5rem; margin-block-end: 6px; }
.price-card .check-list { flex: 1; }
.price-card--muted { background: var(--cream-soft); border-style: dashed; }
.price { font-family: var(--font-head); font-size: 2.4rem; color: var(--navy); font-weight: 700; margin-block: 8px var(--s2); }
.price-from { display: block; font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .15em; color: var(--gold-deep); font-weight: 500; }
.price-cur { font-size: 1.2rem; color: var(--gold-deep); }
.price--tbc { font-size: 1.5rem; color: var(--muted); font-style: italic; }
.badge-tbc { position: absolute; inset-block-start: -12px; inset-inline-end: 20px; background: var(--gold); color: var(--navy-deep); font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; }
.tbc-note { color: var(--muted); font-size: .88rem; max-width: 700px; margin-inline: auto; margin-block-start: var(--s4); font-style: italic; }

/* ---------- Reservation form ---------- */
.grid-2--form { align-items: start; }
.reservation-form { background: var(--white); border-radius: var(--radius); padding: var(--s4); box-shadow: var(--shadow-md); }
.field { margin-block-end: var(--s2); display: flex; flex-direction: column; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.field label { font-size: .82rem; font-weight: 500; color: var(--navy); margin-block-end: 6px; letter-spacing: .02em; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: .95rem; padding: 12px 14px; border: 1.5px solid #dfe3ea;
  border-radius: var(--radius-sm); background: var(--ivory); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(199,162,75,.18); }
.field textarea { resize: vertical; }
.btn-wa { margin-block-start: 6px; background: linear-gradient(135deg, #2bdc73, #128c4b); color: #fff; box-shadow: 0 10px 26px rgba(18,140,75,.3); }
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(18,140,75,.42); }
.wa-ico { background: rgba(255,255,255,.25); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; }
.form-hint { font-size: .8rem; color: var(--muted); margin-block-start: 12px; text-align: center; }

.contact-quick { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s3); margin-block-start: var(--s3); }
.contact-quick a { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-light); font-weight: 500; border-block-end: 1px solid transparent; transition: border-color .2s; }
.contact-quick a:hover { border-color: var(--gold-light); }

/* ---------- Map ---------- */
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid rgba(14,42,71,.08); }
.map-frame iframe { display: block; }
.map-cta { margin-block-start: var(--s3); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--cream); padding-block: var(--s6) var(--s3); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--s4); }
.footer-logo { height: 52px; margin-block-end: var(--s2); }
.footer-brand p { color: rgba(247,241,227,.65); font-size: .92rem; max-width: 320px; }
.footer-col h4 { font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .18em; color: var(--gold-light); margin-block-end: var(--s2); font-weight: 600; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a, .footer-col li { color: rgba(247,241,227,.78); font-size: .94rem; transition: color .2s; }
.footer-col a:hover { color: var(--gold-light); }
.hours li { display: flex; justify-content: space-between; gap: var(--s2); }
.footer-bottom { display: flex; flex-direction: column; gap: 8px; text-align: center; margin-block-start: var(--s5); padding-block-start: var(--s3); border-block-start: 1px solid rgba(247,241,227,.12); font-size: .82rem; color: rgba(247,241,227,.55); }
.footer-bottom a { color: var(--gold-light); }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; inset-block-end: 20px; inset-inline-end: 20px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa-green);
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.45);
  transition: transform .25s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-pulse { position: absolute; inset: 0; border-radius: 50%; background: var(--wa-green); opacity: .55; z-index: -1; animation: waPulse 2.4s infinite; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .5; } 70%,100% { transform: scale(1.7); opacity: 0; } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } .wa-pulse { animation: none; } }

/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: start; }
}

@media (min-width: 920px) {
  .main-nav {
    display: flex; gap: var(--s3); position: static; background: none; padding: 0; box-shadow: none; flex-direction: row; width: auto;
  }
  .main-nav a { font-family: var(--font-body); font-size: .88rem; font-weight: 400; color: #fff; letter-spacing: .02em; position: relative; padding-block: 4px; border: none; }
  .main-nav a::after { content: ""; position: absolute; inset-block-end: -2px; inset-inline-start: 0; width: 0; height: 1.5px; background: var(--gold); transition: width .25s ease; }
  .main-nav a:hover::after { width: 100%; }
  .site-header.scrolled .main-nav a { color: var(--navy); }
  .nav-toggle { display: none; }
  .btn-call { display: inline-flex; }
  .grid-2 { grid-template-columns: 1fr 1fr; gap: var(--s6); }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .section { padding-block: var(--s7); }
}

/* ---------- RTL specifics ---------- */
html[dir="rtl"] .hero-badges li::before { content: "✦"; }
html[dir="rtl"] .main-nav a::after { inset-inline-start: 0; }
html[dir="rtl"] .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(-45deg); }
html[dir="rtl"] .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(45deg); }
html[dir="rtl"] .field input, html[dir="rtl"] .field select, html[dir="rtl"] .field textarea { text-align: right; }
