/* =========================================================
   House of Antiques — GLOBAL styles.css (CLEAN)
   - One theme only (NO dark/light switching)
   - Background black / Cards white
   - Keeps your HTML class names (hoaTopbar / siteFooter / hero / gateTickets)
   - Page-specific colors should be in each page css (about.css etc)
========================================================= */

/* ========== 0) Root + Theme Lock ========== */
:root{
  /* Fixed theme */
  --bg: #000;             /* site background */
  --fg: #fff;             /* default text on dark */
  --muted: rgba(255,255,255,.68);
  --line: rgba(255,255,255,.12);

  /* Card system (white cards) */
  --card: #ffffff;
  --cardText: #121212;
  --cardMuted: rgba(18,18,18,.70);
  --cardLine: rgba(18,18,18,.12);

  /* Accent */
  --accent: #6b0f14;      /* wine */
  --accent2:#2a070a;

  /* Layout */
  --max: 1180px;
  --r12: 12px;
  --r16: 16px;
  --r18: 18px;
  --r22: 22px;
  --shadow: 0 18px 55px rgba(0,0,0,.45);

  /* Typography */
  --serif: "Cormorant Garamond", serif;
  --sans: "Cairo", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Kill any “auto color scheme” behavior */
html{ color-scheme: dark; }
@media (prefers-color-scheme: light){
  html{ color-scheme: dark; } /* still dark */
}

/* ========== 1) Base Reset ========== */
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  overflow-x:hidden;
}
a{ color:inherit; text-decoration:none; }
img{ display:block; max-width:100%; }
button{ font-family: inherit; }

/* Containers */
.wrap{
  width: min(var(--max), calc(100% - 32px));
  margin-inline:auto;
}
.section{ padding: 56px 0; }
@media (max-width: 720px){
  .section{ padding: 34px 0; }
  .wrap{ width: calc(100% - 24px); }
}

/* Headings block */
.head{ margin-bottom: 16px; }
.h2{
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 34px;
  letter-spacing:.2px;
}
.p{
  margin:0;
  color: var(--muted);
  line-height:1.85;
}
@media (max-width: 720px){
  .h2{ font-size: 28px; }
  .p{ font-size: 14px; }
}

/* Utility */
.bleed{
  width:100%;
  margin:0;
  padding:0;
}

/* =========================================================
   2) TOPBAR — keep your structure (hoaTopbar)
========================================================= */
.hoaTopbar{
  position: sticky;
  top:0;
  z-index: 1000;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.hoaTopbar__inner{
  width: min(var(--max), calc(100% - 32px));
  margin-inline:auto;
  height: 70px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

/* Left (mobile only) */
.hoaTopbar__left{ display:flex; align-items:center; gap:10px; }
@media (min-width: 980px){
  .hoaTopbar__left{ display:none; }
}

/* Icon button */
.iconBtn{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.hamburger{
  width: 18px;
  height: 2px;
  background: rgba(255,255,255,.88);
  border-radius: 999px;
  position: relative;
}
.hamburger::before,
.hamburger::after{
  content:"";
  position:absolute;
  left:0;
  width: 18px;
  height: 2px;
  background: rgba(255,255,255,.88);
  border-radius:999px;
}
.hamburger::before{ top:-6px; }
.hamburger::after{ top:6px; }

/* Brand */
.hoaBrand{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 220px;
}
.hoaBrand__logo{
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  border: 1px solid rgba(255,255,255,.18);
  background: radial-gradient(circle at top, rgba(255,255,255,.14), rgba(255,255,255,.04));
  box-shadow: 0 10px 22px rgba(0,0,0,.45);
  overflow:hidden;
  flex: 0 0 auto;
}
.hoaBrand__logo img{
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.hoaBrand__text{
  display:flex;
  flex-direction:column;
  line-height:1.05;
}
.hoaBrand__title{ font-weight: 900; letter-spacing:.2px; }
.hoaBrand__sub{ font-size: 12px; opacity: .70; }

/* Desktop nav */
.hoaNav{
  display:none;
  align-items:center;
  justify-content:center;
  gap: 14px;
  flex: 1;
  min-width:0;
}
.hoaNav__link{
  padding: 10px 10px;
  border-radius: 12px;
  color: rgba(255,255,255,.86);
  font-weight: 800;
  font-size: 13px;
  transition: background .18s ease;
}
.hoaNav__link:hover{ background: rgba(255,255,255,.07); }
.hoaNav__link--cta{
  border: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(135deg, rgba(107,15,20,.70), rgba(255,255,255,.03));
}
@media (min-width: 980px){
  .hoaNav{ display:flex; }
}

/* Right */
.hoaTopbar__right{ display:flex; align-items:center; gap: 10px; }
.langToggle{
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: #fff;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  letter-spacing:.6px;
}
.langToggle:hover{
  background: rgba(255,255,255,.10);
}

/* Small screens: keep topbar clean */
@media (max-width: 520px){
  .hoaTopbar__inner{
    width: calc(100% - 24px);
    height: 66px;
    gap: 10px;
  }
  .hoaBrand{ min-width: auto; }
  .hoaBrand__sub{ display:none; }
}

/* =========================================================
   3) MOBILE MENU (your HTML: .mobileMenu)
========================================================= */
.mobileMenu{
  position: fixed;
  inset: 0;
  z-index: 1200;
  pointer-events:none;
  opacity: 0;
  transition: opacity .18s ease;
}
.mobileMenu[aria-hidden="false"]{
  pointer-events:auto;
  opacity: 1;
}

.mobileMenu__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.55);
}

.mobileMenu__panel{
  position:absolute;
  top: 78px;
  left: 12px;
  right: 12px;
  background: rgba(12,12,12,.96);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow);
}

.mobileMenu__close{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color:#fff;
  cursor:pointer;
  font-size: 22px;
}

.mobileMenu__nav{
  display:grid;
  gap: 10px;
  margin-top: 10px;
}
.mobileMenu__nav a{
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  font-weight: 850;
}

/* =========================================================
   4) HERO (your HTML: .hero / hero__bg / heroLead / heroBtn)
========================================================= */
.hero{
  position: relative;
  width: 100%;
  min-height: 320px;
  overflow:hidden;
  display:grid;
  align-items:center;
}
.hero__bg{
  position:absolute;
  inset:0;
}
.hero__bgImg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;
  object-position:center 35%;
  opacity:0;
  transition: opacity .55s ease;
}
.hero__bgImg.is-active{ opacity:1; }
.hero__overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 600px at 70% 25%, rgba(0,0,0,0), transparent 55%),
    linear-gradient(to right, rgba(0,0,0,.78), rgba(0,0,0,.25));
}
.hero__content{
  position:relative;
  z-index: 2;
  padding: 52px 0 42px;
}
.heroBox{ max-width: 760px; }

.heroTopline{
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(255,255,255,.74);
  margin-bottom: 14px;
}

.heroLead{
  margin: 0 0 18px;
  max-width: 58ch;
  color: rgba(255,255,255,.78);
  line-height: 1.9;
  font-size: 15px;
}

.heroActions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.heroBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  font-weight: 900;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.heroBtn--primary{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.22);
}
.heroBtn--primary:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.14);
}
.heroBtn--ghost{
  background: transparent;
  color: rgba(255,255,255,.86);
}
.heroBtn--ghost:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.08);
}

.heroInfoRow{
  display:flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.heroInfo{
  display:flex;
  gap: 10px;
  align-items:center;
  min-width: 190px;
}
.heroInfoDot{
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: rgba(255,255,255,.32);
  border: 1px solid rgba(255,255,255,.18);
}
.heroInfoK{
  font-size: 11px;
  color: rgba(255,255,255,.60);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.heroInfoV{
  font-size: 13px;
  color: rgba(255,255,255,.86);
  margin-top: 2px;
}

.hero__controls{
  margin-top: 16px;
  display:flex;
  align-items:center;
  gap: 12px;
}
.hero__controls .icon{
  width: 44px; height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.35);
  color: #fff;
  cursor:pointer;
  font-size: 22px;
}
.hero__controls .dots{
  display:flex;
  gap: 8px;
}
.hero__controls .dot{
  width: 8px; height: 8px;
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.12);
  cursor:pointer;
}
.hero__controls .dot.is-active{
  background: rgba(107,15,20,.85);
  border-color: rgba(107,15,20,.65);
}

@media (max-width: 560px){
  .hero__content{ padding: 36px 0 28px; }
  .heroLead{ font-size: 14px; line-height: 1.85; }
  .heroInfo{ min-width:auto; flex: 1 1 140px; }
}

/* =========================================================
   5) GATE CARDS (NEW) — this is your MAIN requested change
   - looks like the reference: image + caption line + button
   - Desktop: 3 columns
   - Mobile: 2 columns
========================================================= */
.gateTickets{
  position: relative;
}
.gateTickets__bg,
.gateBg{
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(900px 600px at 50% 10%, rgba(107,15,20,.18), transparent 60%),
    radial-gradient(900px 600px at 90% 120%, rgba(107,15,20,.10), transparent 60%);
  opacity: .9;
}

/* this is the grid container */
.gateTickets__list{
  width: min(var(--max), calc(100% - 32px));
  margin-inline:auto;
  display:grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
  padding: 10px 0 0;
}
@media (max-width: 980px){
  .gateTickets__list{
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 420px){
  .gateTickets__list{
    grid-template-columns: 1fr; /* إذا شاشة ضيقة جداً */
  }
}

/* single card */
.gateCard{
  background: var(--card);
  color: var(--cardText);
  border-radius: var(--r18);
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
  min-width:0;
}

.gateCard__media{
  aspect-ratio: 16 / 10; /* قريب من شكل الريفرنس */
  background:#111;
  overflow:hidden;
}
.gateCard__media img{
  width:100%;
  height:100%;
  object-fit: cover;
  object-position:center 35%;
  transform: scale(1.02);
  transition: transform .35s ease;
}
.gateCard:hover .gateCard__media img{
  transform: scale(1.07);
}

.gateCard__body{
  padding: 12px 12px 14px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}

/* one line caption (title) */
.gateCard__title{
  margin:0;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing:.2px;
  line-height:1.15;

  /* keep it “clean line” like reference */
  display:-webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:hidden;
}

/* optional short line under */
.gateCard__sub{
  margin:0;
  font-size: 13px;
  color: var(--cardMuted);
  line-height: 1.6;

  display:-webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:hidden;
}

/* button */
.gateCard__btn{
  margin-top: 2px;
  width: fit-content;
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(18,18,18,.14);
  background: #111;
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.gateCard__btn:hover{
  transform: translateY(-1px);
  background: var(--accent);
  border-color: rgba(107,15,20,.60);
}
html[dir="rtl"] .gateCard__btn::after{ content:"←"; }
html[dir="ltr"] .gateCard__btn::after{ content:"→"; }

/* =========================================================
   6) ABOUT + STATS (your HTML: .stats .cards3)
========================================================= */
.stats{
  display:grid;
  gap: 12px;
  grid-template-columns: 1fr;
  margin-top: 16px;
}
@media (min-width: 900px){
  .stats{ grid-template-columns: repeat(4,1fr); }
}
.stat{
  border-radius: var(--r18);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  padding: 16px;
}
.num{
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 700;
}
.lbl{
  color: rgba(255,255,255,.70);
  font-size: 13px;
  margin-top: 6px;
}

.cards3{
  display:grid;
  gap: 12px;
  grid-template-columns: 1fr;
  margin-top: 14px;
}
@media (min-width: 980px){
  .cards3{ grid-template-columns: repeat(3,1fr); }
}
.card{
  border-radius: var(--r18);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  padding: 16px;
}
.card h3{ margin:0 0 8px; font-weight: 900; }
.card p{ margin:0; color: rgba(255,255,255,.74); line-height: 1.85; }

/* =========================================================
   7) FOOTER (shorter scroll, same structure)
========================================================= */
.footerCover{
  width: 100%;
  overflow:hidden;
  margin-top: 26px;
}
.footerCover img{
  width:100%;
  height: 240px;
  object-fit: cover;
  object-position:center 60%;
  opacity: .95;
}
@media (max-width: 720px){
  .footerCover img{ height: 180px; }
}

/* Footer wrapper */
.siteFooter{
  background: #050505;
  border-top: 1px solid rgba(255,255,255,.10);
}
.fWrap{
  width: min(var(--max), calc(100% - 32px));
  margin-inline:auto;
  padding: 18px 0 14px; /* أقل = سكرول أقل */
}

/* CTA row */
.fTop{ padding: 0 0 14px; border-bottom: 1px solid rgba(255,255,255,.10); }
.fCta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
.fCta__title{ font-weight: 900; font-size: 18px; }
.fCta__sub{ margin-top:4px; font-size: 13px; color: rgba(255,255,255,.70); }
.fCta__actions{ display:flex; gap: 10px; flex-wrap: wrap; }

/* Your footer buttons (keep .btn naming from your HTML) */
.btn{
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  font-weight: 900;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.btn--primary{
  background: linear-gradient(135deg, rgba(107,15,20,.78), rgba(255,255,255,.03));
}
.btn--ghost{
  background: rgba(255,255,255,.06);
}
.btn:hover{ filter: brightness(1.05); }

/* Grid */
.fGrid{
  display:grid;
  gap: 16px;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  padding: 14px 0 10px;
}
@media (max-width: 980px){
  .fGrid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .fGrid{ grid-template-columns: 1fr; }
}

.fTitle{
  font-weight: 900;
  font-size: 13px;
  margin: 2px 0 10px;
  color: rgba(255,255,255,.92);
}
.fNote{
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,.72);
}
.fLinks{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap: 8px;
}
.fLinks--2col{
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}
@media (max-width: 560px){
  .fLinks--2col{ grid-template-columns: 1fr; }
}

.fLinks a{
  color: rgba(255,255,255,.74);
  font-size: 13px;
  display:inline-flex;
  align-items:center;
  gap: 8px;
  transition: .18s ease;
}
.fLinks a:hover{
  color: rgba(255,255,255,.95);
  transform: translateX(-2px);
}

/* Address pill */
.addrPill{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}
.addrIco svg{
  width: 18px; height: 18px;
  fill: rgba(255,255,255,.86);
}

/* Social icons */
.fIcons{ display:flex; flex-wrap:wrap; gap: 10px; }
.ico{
  width: 40px; height: 40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  transition: .18s ease;
}
.ico:hover{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.16);
  transform: translateY(-2px);
}
.ico svg{ width: 18px; height: 18px; fill: rgba(255,255,255,.86); }

.fBottom{
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.10);
  display:flex;
  justify-content:center;
}
.fCopy{
  font-size: 12px;
  color: rgba(255,255,255,.58);
  text-align:center;
}

/* Scroll padding for anchor links (topbar) */
html{ scroll-behavior: smooth; scroll-padding-top: 90px; }
.mobileMenu__panel{
  max-height: 82vh;
  overflow: hidden; /* يمنع سكرول */
  padding: 18px;
  border-radius: 20px;
}

.mobileMenu__nav{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* grouping */
.mobileMenu__group{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* grid for sections */
.mobileMenu__group--grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}

/* legal smaller */
.mobileMenu__group--legal a{
  font-size: 12px;
  opacity: .75;
}

/* links style */
.mobileMenu__nav a{
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);

  font-weight: 600;        /* أنعم */
  font-size: 14px;         /* أصغر شوي */
  letter-spacing: .3px;
  transition: .18s ease;
}

.mobileMenu__nav a:hover{
  background: rgba(255,255,255,.10);
  transform: translateY(-1px);
}
/* =========================
   HOME CARDS – MOBILE GRID FIX
========================= */
@media (max-width: 560px){

  /* الحاوية الرئيسية للكاردات */
  .sectionsGrid,
  .cardsGrid,
  .homeSections{
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  /* تنعيم الكارد */
  .sectionCard,
  .card,
  .homeCard{
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.03);
    backdrop-filter: blur(6px);
    transition: transform .2s ease, box-shadow .2s ease;
  }

  .sectionCard:hover,
  .card:hover,
  .homeCard:hover{
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
  }

  /* الصورة داخل الكارد */
  .sectionCard img,
  .card img,
  .homeCard img{
    width: 100%;
    height: 150px;
    object-fit: cover;
  }

  /* عنوان الكارد */
  .sectionCard h3,
  .card h3,
  .homeCard h3{
    font-size: 14px;
    padding: 12px;
    margin: 0;
    text-align: center;
    font-weight: 600;
  }

  /* الكارد السابع يكون بالمنتصف */
  .sectionsGrid > :nth-child(7),
  .cardsGrid > :nth-child(7),
  .homeSections > :nth-child(7){
    grid-column: 1 / -1;
    max-width: 60%;
    margin: 0 auto;
  }

}
/* =========================================
   HOME GATE CARDS — MOBILE REFINEMENT
   2 per row + 7th centered
========================================= */
@media (max-width: 560px){

  /* خليها دائماً 2 جنب بعض */
  .gateTickets__list{
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px;
  }

  /* تنعيم الكارد */
  .gateCard{
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.06);
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
    transition: transform .25s ease, box-shadow .25s ease;
  }

  .gateCard:hover{
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0,0,0,.45);
  }

  /* تنعيم الصورة */
  .gateCard__media{
    aspect-ratio: 1 / 1;
  }

  .gateCard__media img{
    object-position: center;
  }

  /* تصغير النص */
  .gateCard__title{
    font-size: 15px;
  }

  .gateCard__sub{
    font-size: 12px;
  }

  .gateCard__btn{
    font-size: 12px;
    padding: 8px 12px;
  }

  /* الكارد السابع بالوسط */
  .gateTickets__list > :nth-child(7){
    grid-column: 1 / -1;
    max-width: 65%;
    margin: 0 auto;
  }

}