:root{
  --bg:#050505;
  --fg:#ffffff;
  --brand:#D4AF37;
  --brand-2:#b8932d;
  --muted:#9CA3AF;

  --card: rgba(255,255,255,.06);
  --card-border: rgba(255,255,255,.12);

  --shadow: 0 16px 50px rgba(0,0,0,.45);
  --radius: 18px;
  --header-h: 76px;

  --container: 1120px;
  --pad: 18px;

  --focus: 0 0 0 3px rgba(212,175,55,.28);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--fg);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height:1.6;
  overflow-x:hidden;
}
html[dir="rtl"] body{
  font-family: Cairo, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

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

.sr-only{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}

.container{
  width:min(var(--container), calc(100% - (var(--pad)*2)));
  margin-inline:auto;
}

main{
  padding-top: var(--header-h);
}

.anchor{ position:relative; top: calc(-1 * var(--header-h)); height:1px; }

/* Skip Link */
.skip-link{
  position:absolute;
  inset-inline-start: 12px;
  top: 10px;
  z-index: 1000;
  background: #111;
  color: #fff;
  padding: 10px 12px;
  border-radius: 12px;
  transform: translateY(-140%);
  transition: transform .2s ease;
}
.skip-link:focus{ transform: translateY(0); outline:none; box-shadow: var(--focus); }

/* Header */
.site-header{
  height: var(--header-h);
  display:flex;
  align-items:center;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner{
  height: var(--header-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}

/* Desktop nav */
.nav{
  display:flex;
  align-items:center;
  gap: 14px;
  font-weight:800;
  letter-spacing:.02em;
}
.nav a{
  opacity:.9;
  padding: 10px 10px;
  border-radius: 12px;
  transition: background .15s ease, opacity .15s ease;
}
.nav a:hover{ background: rgba(255,255,255,.06); opacity:1; }

.logo{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width: 140px;
}
.logo-img{
  width: 120px;
  height: 44px;
  object-fit: contain;
}

.lang{
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--fg);
  border-radius: 999px;
  padding: 10px 14px;
  cursor:pointer;
  font-weight:900;
}
.lang:focus{ outline:none; box-shadow: var(--focus); }

/* Burger + drawer */
.nav-toggle{ display:none; }

.burger{
  display:none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  cursor:pointer;
  position:relative;
}
.burger span[aria-hidden="true"]{
  position:absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  opacity:.9;
}
.burger span[aria-hidden="true"]:nth-of-type(2){ top: 16px; }
.burger span[aria-hidden="true"]:nth-of-type(3){ top: 26px; }

.mobile-drawer{
  display:none;
  position:absolute;
  top: calc(var(--header-h) - 6px);
  inset-inline-end: var(--pad);
  width: min(320px, calc(100vw - 24px));
  background: rgba(10,10,10,.92);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 10px;
  z-index: 90;
}
.mobile-drawer a, .mobile-drawer button{
  display:flex;
  width:100%;
  align-items:center;
  justify-content:space-between;
  padding: 12px 12px;
  border-radius: 12px;
  font-weight: 900;
  letter-spacing:.01em;
}
.mobile-drawer a:hover{ background: rgba(255,255,255,.06); }
.mobile-drawer hr{
  border:0;
  border-top:1px solid rgba(255,255,255,.12);
  margin: 8px 6px;
}
.mobile-drawer button.lang{ justify-content:center; }

.nav-toggle:checked ~ .mobile-drawer{ display:block; }

@media (max-width: 980px){
  .nav.nav-left, .nav.nav-right{ display:none; }
  .burger{ display:block; }
}

/* Sections */
.section{
  padding: 64px 0;
}
.section-head{
  margin-bottom: 18px;
}
.section-kicker{
  color: var(--brand);
  font-weight: 900;
  letter-spacing:.12em;
  text-transform: uppercase;
  margin: 0 0 10px;
  opacity:.95;
}
.section-title{
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing:-.02em;
}
.section-subtitle{
  margin: 12px 0 0;
  color: rgba(255,255,255,.78);
}

/* Card */
.card{
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(0,0,0,.28);
}

/* Hero */
.hero{
  min-height: calc(92vh - var(--header-h));
  position:relative;
  display:flex;
  align-items:center;
  overflow:hidden;
}
.hero-bg{
  position:absolute;
  inset:0;
  background: radial-gradient(1200px 900px at 20% 10%, rgba(212,175,55,.16), transparent 55%),
              radial-gradient(900px 700px at 80% 40%, rgba(255,255,255,.08), transparent 55%);
  pointer-events:none;
}
.hero-media{
  position:absolute;
  inset:0;
  z-index:0;
}
.hero-video{
  width:100%;
  height:100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.03);
  opacity:.55;
}
.hero-poster{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;
  opacity:.9;
}
.hero-overlay{
  position:absolute;
  inset:0;
  z-index:1;
  background: linear-gradient(to bottom, rgba(5,5,5,.25), rgba(5,5,5,.82));
}

.hero-content{
  position:relative;
  z-index:2;
  padding: 32px 0 46px;
}

.warning{
  width: min(560px, 100%);
  margin-bottom: 18px;
  padding: 16px 16px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.28);
  backdrop-filter: blur(10px);
}
.warning-top{
  display:flex;
  align-items:center;
  gap: 12px;
  margin-bottom: 6px;
}
.warning-label{
  color: var(--brand);
  font-weight: 1000;
  letter-spacing:.08em;
}
.warning-line{
  flex:1;
  height:1px;
  background: rgba(212,175,55,.4);
}
.warning-text{
  margin:0;
  font-weight: 900;
  letter-spacing:.02em;
  opacity:.92;
}
.hero-title{
  margin: 10px 0 18px;
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: 1.02;
  letter-spacing:-.03em;
  text-wrap: balance;
}
.hero-actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.hero-controls{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-top: 18px;
  color: rgba(255,255,255,.72);
  font-weight: 800;
}
.hero-controls .dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 5px rgba(212,175,55,.18);
}

.scroll-indicator{
  position:absolute;
  left: 50%;
  bottom: 18px;
  width: 40px;
  height: 40px;
  transform: translateX(-50%);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.25);
  z-index:2;
  opacity:.35;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  font-weight: 1000;
  letter-spacing:.01em;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, opacity .12s ease;
  user-select:none;
}
.btn:focus{ outline:none; box-shadow: var(--focus); }
.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #111;
  border-color: rgba(0,0,0,.18);
}
.btn-primary:hover{ opacity:.96; }

.btn-ghost{
  background: rgba(255,255,255,.06);
  color: #fff;
}
.btn-ghost:hover{ background: rgba(255,255,255,.10); }

/* Story */
.story-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items:stretch;
}
.story-text{ padding: 18px; }
.story-quote{
  margin: 0 0 12px;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(212,175,55,.20);
  background: rgba(212,175,55,.07);
}
.story-paragraph{
  margin: 10px 0;
  color: rgba(255,255,255,.85);
}
.story-media{ padding: 14px; display:flex; }
.story-photo{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  aspect-ratio: 3/4;
}

@media (max-width: 980px){
  .story-grid{ grid-template-columns: 1fr; }
}

/* Owner */
.owner-card{
  display:grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 18px;
  padding: 14px;
  align-items:stretch;
}
.owner-media{ display:flex; }
.owner-photo{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  aspect-ratio: 3/4;
}
.owner-content{ padding: 6px 8px; }
.owner-name{
  margin: 8px 0 0;
  font-size: 26px;
  line-height: 1.1;
}
.owner-role{
  margin: 8px 0 12px;
  color: rgba(255,255,255,.72);
  font-weight: 900;
}
.owner-text{ margin: 10px 0; color: rgba(255,255,255,.85); }
.owner-quote{
  margin: 14px 0 0;
  padding: 14px;
  border-radius: 16px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.12);
}
@media (max-width: 980px){
  .owner-card{ grid-template-columns: 1fr; }
}

/* Gallery */
.gallery-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-item{
  position:relative;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  min-height: 220px;
}
.gallery-item img{
  width:100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  transform: scale(1.02);
}
.gallery-overlay{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding: 14px;
  background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,0));
}
.gallery-overlay h3{
  margin:0;
  font-size: 20px;
  font-weight: 1000;
}
.gallery-price{
  margin: 6px 0 0;
  color: rgba(255,255,255,.85);
  font-weight: 900;
}
.gallery-add{
  position:absolute;
  top: 12px;
  inset-inline-end: 12px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: var(--brand);
  color:#111;
  font-weight: 1000;
  font-size: 22px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
  opacity: 1 !important;         /* important to prevent the “transparent +” bug */
  visibility: visible !important; /* same */
}
.gallery-add:focus{ outline:none; box-shadow: var(--focus); }

.gallery-actions{
  margin-top: 16px;
  display:flex;
  justify-content:center;
}

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

/* Testimonials */
.testimonials-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.testimonial-card{ padding: 16px; }
.stars{ color: var(--brand); letter-spacing:.08em; font-weight: 1000; }
.testimonial-text{ margin: 10px 0 0; color: rgba(255,255,255,.86); }
.testimonial-author{ margin-top: 12px; color: rgba(255,255,255,.78); display:flex; gap:10px; align-items:baseline; }
@media (max-width: 980px){
  .testimonials-grid{ grid-template-columns: 1fr; }
}

/* Menu */
.menu-card{
  padding: 16px;
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.menu-note{
  width:100%;
  margin: 6px 0 0;
  color: rgba(255,255,255,.75);
  font-weight: 900;
}

/* FAQ */
.faq-list{ display:grid; gap: 12px; }
.faq-item{ padding: 0; overflow:hidden; }
.faq-question{
  list-style:none;
  cursor:pointer;
  padding: 16px 16px;
  font-weight: 1000;
}
.faq-question::-webkit-details-marker{ display:none; }
.faq-answer{
  margin:0;
  padding: 0 16px 16px;
  color: rgba(255,255,255,.82);
}

/* Contact */
.active-branch{ padding: 16px; }
.active-branch-head{ display:flex; justify-content:space-between; align-items:flex-end; gap: 10px; flex-wrap: wrap; }
.active-branch-kicker{ margin:0; color: var(--brand); font-weight: 1000; letter-spacing:.06em; }
.active-branch-title{ margin: 6px 0 0; font-size: 22px; font-weight: 1000; }
.active-branch-actions{ margin-top: 12px; display:flex; gap: 10px; flex-wrap:wrap; align-items:center; }
.active-chip{
  display:inline-flex;
  gap: 8px;
  align-items:center;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
}
.active-chip-label{ color: rgba(255,255,255,.72); font-weight: 900; }
.active-chip-value{ font-weight: 1000; }

.active-map{
  margin-top: 14px;
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
}
.map-load-btn{
  width:100%;
  padding: 12px 14px;
  background: rgba(255,255,255,.06);
  color: #fff;
  border: 0;
  cursor:pointer;
  font-weight: 1000;
}
.active-map-frame{
  width: 100%;
  height: 260px;
  border: 0;
}

.active-branch-hint{
  margin: 12px 0 0;
  color: rgba(255,255,255,.72);
  font-weight: 900;
}

.branch-grid{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.branch-card{ padding: 16px; }
.branch-head{ display:flex; gap: 10px; align-items:center; margin-bottom: 10px; }
.branch-title{ margin:0; font-size: 18px; font-weight: 1000; }
.branch-row{ display:flex; justify-content:space-between; gap: 10px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.10); }
.branch-row:first-of-type{ border-top: 0; }
.branch-label{ color: rgba(255,255,255,.72); font-weight: 900; }
.phone-link, .map-btn{
  color: var(--brand);
  font-weight: 1000;
}
.branch-select{
  margin-top: 10px;
  width:100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:#fff;
  cursor:pointer;
  font-weight: 1000;
}
.branch-select:hover{ background: rgba(255,255,255,.10); }

@media (max-width: 980px){
  .branch-grid{ grid-template-columns: 1fr; }
}

/* Contact footer */
.contact-footer{
  margin-top: 14px;
  padding: 14px;
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}
.contact-chip{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
}
.chip-label{ font-weight: 1000; }
.chip-value{ color: rgba(255,255,255,.75); font-weight: 900; }

/* Page Loader */
.page-loader{
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,.82);
  display:flex;
  align-items:center;
  justify-content:center;
  transition: opacity .2s ease, visibility .2s ease;
}
.loader-spinner{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 3px solid rgba(255,255,255,.18);
  border-top-color: var(--brand);
  animation: spin 1s linear infinite;
}
@keyframes spin{ to{ transform: rotate(360deg);} }

/* Floating Buttons (WhatsApp + Cart)
   IMPORTANT: force visibility even if some RTL/JS toggles attempt to hide them */
.whatsapp-fab,
.cart-fab{
  position: fixed;
  z-index: 1200;
  display:flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.whatsapp-fab{
  bottom: 18px;
  inset-inline-start: 18px;
  align-items:center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(17,17,17,.86);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.whatsapp-fab:hover{ background: rgba(17,17,17,.92); }
.whatsapp-fab-text{ font-weight: 1000; }

.cart-fab{
  bottom: 18px;
  inset-inline-end: 18px;
  align-items:center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(212,175,55,.96), rgba(184,147,45,.96));
  color: #111;
  border: 0;
  box-shadow: var(--shadow);
  cursor:pointer;
}
.cart-fab-label{ font-weight: 1000; }
.cart-count{
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,.22);
  color: #111;
  font-weight: 1000;
}

/* Extra hard override if your old code uses body.is-ar or similar */
body.is-ar .whatsapp-fab,
body.is-ar .cart-fab,
html[dir="rtl"] .whatsapp-fab,
html[dir="rtl"] .cart-fab{
  display:flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Cart Modal */
.cart-modal{
  position: fixed;
  inset: 0;
  z-index: 1500;
  display:none;
}
.cart-modal[aria-hidden="false"]{ display:block; }

.cart-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.72);
}

.cart-panel{
  position:absolute;
  top: 0;
  inset-inline-end: 0;
  height: 100%;
  width: min(420px, 100%);
  background: rgba(10,10,10,.98);
  border-inline-start: 1px solid rgba(255,255,255,.12);
  padding: 14px;
  display:flex;
  flex-direction:column;
  gap: 12px;
}
.cart-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
}
.cart-title{ margin:0; font-size: 20px; font-weight: 1000; }
.cart-close{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color:#fff;
  cursor:pointer;
}
.cart-close:hover{ background: rgba(255,255,255,.10); }

.cart-empty{ margin:0; color: rgba(255,255,255,.75); font-weight: 900; }
.cart-items{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap: 10px;
  overflow:auto;
  flex:1;
}

.cart-note, .cart-customer, .cart-summary{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  padding: 12px;
}
.cart-note-label, .cart-field-label{
  display:block;
  margin-bottom: 8px;
  color: rgba(255,255,255,.78);
  font-weight: 1000;
}
.cart-note-text, .cart-field-input, .cart-field-textarea{
  width:100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.35);
  color:#fff;
  padding: 10px 12px;
  outline:none;
}
.cart-note-text:focus, .cart-field-input:focus, .cart-field-textarea:focus{ box-shadow: var(--focus); border-color: rgba(212,175,55,.5); }

.cart-summary{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
}
.cart-summary-label{ color: rgba(255,255,255,.78); font-weight: 1000; }
.cart-summary-value{ font-weight: 1000; }

.cart-actions{
  display:flex;
  gap: 10px;
}
.cart-actions .btn{ flex:1; }

.cart-hint{
  margin:0;
  color: rgba(255,255,255,.70);
  font-weight: 900;
}

/* Toast */
.toast-container{
  position: fixed;
  top: calc(var(--header-h) + 12px);
  inset-inline-end: 12px;
  z-index: 1700;
  display:flex;
  flex-direction:column;
  gap: 10px;
}

/* RTL tweaks */
html[dir="rtl"] .nav a{ letter-spacing: 0; }
html[dir="rtl"] .section-kicker{ text-transform:none; }

/* Prevent accidental opacity changes on important UI */
#whatsappFab, #cartFab, .gallery-add{
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
}
