@import url('https://fonts.googleapis.com/css2?family=Lalezar&family=Cairo:wght@400;600;700;800&family=Tajawal:wght@400;500;700&display=swap');

/* ============ Design tokens ============ */
:root{
  --bg: #120f0c;
  --bg-soft: #1b1611;
  --charcoal: #211b15;
  --gold: #f2b705;
  --gold-dim: #a8790a;
  --red: #d7263d;
  --cream: #f8ecd9;
  --cream-dim: #cbbfa9;
  --line: rgba(242,183,5,0.18);

  --font-display: 'Lalezar', 'Tajawal', sans-serif;
  --font-body: 'Cairo', 'Tajawal', sans-serif;
  --font-utility: 'Tajawal', sans-serif;

  --radius: 16px;
  --shadow-deep: 0 20px 50px rgba(0,0,0,0.55);
}

*{ box-sizing: border-box; }
html{
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body{
  margin:0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  direction: rtl;
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img{ max-width:100%; display:block; }

a{ color: inherit; text-decoration:none; }

button{ font-family: inherit; cursor:pointer; border:none; }

.visually-hidden{
  position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0);
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; transition-duration:0.001ms !important; }
  html{ scroll-behavior:auto; }
}

/* ============ Hero ============ */
.hero{
  position: relative;

  min-height: 42vh;
  max-height: 520px;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-end;

  padding:40px 20px;

  background-image:
    linear-gradient(180deg, rgba(10,8,6,.15) 0%, rgba(10,8,6,.55) 55%, var(--bg) 100%),
    url("background.jpg");

  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;

  text-align:center;
}

.hero--about{
  min-height: 46vh;
    justify-content:center;
  padding-bottom: 28px;
}

.hero__profile-wrap{
  width: 140px; height:140px;
  border-radius:50%;
  padding:5px;
  background: linear-gradient(135deg, var(--gold), var(--red));
  box-shadow: var(--shadow-deep);
  margin-bottom: 18px;
}
.hero__profile{
  width:100%; height:100%;
  border-radius:50%;
  object-fit:cover;
  border: 3px solid var(--bg);
  background: var(--charcoal);
}

.hero__title{
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: 1px;
  margin: 0 0 6px;
  color: var(--gold);
  text-shadow: 0 4px 18px rgba(0,0,0,0.6);
}
.hero__title span{ color: var(--cream); }

.hero__tagline{
  font-family: var(--font-utility);
  font-weight:700;
  font-size: clamp(0.95rem, 2.4vw, 1.25rem);
  color: var(--cream);
  background: rgba(18,15,12,0.55);
  border: 1px solid var(--line);
  padding: 10px 22px;
  border-radius: 999px;
  display:inline-flex;
  gap: 10px;
  backdrop-filter: blur(4px);
}
.hero__tagline i{ color: var(--gold); font-style:normal; }
.hero__tagline i:not(:last-child)::after{ content:'•'; margin-inline-start:10px; color: var(--red); }

/* ============ Edge tabs (signature element) ============ */
.edge-tabs{
  position: relative;
  width: 100%;
  min-height: 360px;
  margin: 28px 0 40px;
  pointer-events:none;
  z-index: 5;
}

.edge-tab{
  position:absolute;
  right:0;
  pointer-events:auto;
  display:flex;
  align-items:center;
  gap:10px;
  background: linear-gradient(135deg, var(--gold), #c98f04);
  color: #1a1408;
  font-family: var(--font-utility);
  font-weight:700;
  font-size: 0.98rem;
  padding: 13px 20px;
  border-radius: var(--radius) 0 0 var(--radius);
  box-shadow: 0 10px 24px rgba(0,0,0,0.45);
  transition: transform .28s cubic-bezier(.2,.9,.3,1.2), filter .2s;
  transform: translateX(calc(100% - 46px));
}
.edge-tab.left{
  right:auto; left:0;
  border-radius: 0 var(--radius) var(--radius) 0;
  transform: translateX(calc(-100% + 46px));
}
.edge-tab:hover, .edge-tab:focus-visible, .edge-tab.is-revealed{
  transform: translateX(0);
  filter: brightness(1.05);
}
.edge-tab .edge-tab__icon{ font-size:1.15rem; }

/* Positioned by nth-child (not nth-of-type) so each of the 5 tabs gets
   its own slot regardless of whether it's an <a> or a <button> — this
   was the bug that made the job-initiative tab hide behind another tab. */
.edge-tab:nth-child(1){ top: 0; }
.edge-tab:nth-child(2){ top: 72px; }
.edge-tab:nth-child(3){ top: 144px; }
.edge-tab:nth-child(4){ top: 216px; }
.edge-tab:nth-child(5){ top: 288px; }

/* Gallery and about icons sit on the opposite side of their button */
a.edge-tab[href="gallery.html"],
a.edge-tab[href="about.html"]{
  flex-direction: row-reverse;
}
.edge-tab.reverse{
    flex-direction: row-reverse;
}
/* ============ Section shell ============ */
.section{
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 22px 20px;
}
.section__eyebrow{
  font-family: var(--font-utility);
  color: var(--red);
  font-weight:700;
  letter-spacing:1px;
  font-size:0.85rem;
  margin:0 0 6px;
}
.section__title{
  font-family: var(--font-display);
  color: var(--gold);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 28px;
}

/* ============ Gallery ============ */
.gallery-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}
.gallery-card{
  position:relative;
  border-radius: var(--radius);
  overflow:hidden;
  aspect-ratio: 1/1;
  background: var(--charcoal);
  border: 1px solid var(--line);
  cursor:pointer;
  padding:0;
  margin:0;
  width:100%;
}
.gallery-card img{
  width:100%; height:100%; object-fit:cover;
  transition: transform .35s ease;
}
.gallery-card:hover img{ transform: scale(1.08); }
.gallery-card::after{
  content:'';
  position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.55));
}
.gallery-empty{
  font-family: var(--font-utility);
  color: var(--cream-dim);
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align:center;
}

/* Lightbox */
.lightbox{
  position:fixed; inset:0; z-index:100;
  background: rgba(8,6,4,0.92);
  display:none;
  align-items:center; justify-content:center;
  padding: 30px;
}
.lightbox.is-open{ display:flex; }
.lightbox img{
  max-width: min(92vw, 780px);
  max-height: 86vh;
  border-radius: 10px;
  box-shadow: var(--shadow-deep);
}
.lightbox__close{
  position:absolute; top:20px; left:20px;
  background: var(--red);
  color:#fff; width:42px; height:42px;
  border-radius:50%;
  font-size:1.3rem;
  display:flex; align-items:center; justify-content:center;
}

/* ============ Modals ============ */
.modal-backdrop{
  position:fixed; inset:0; z-index:90;
  background: rgba(8,6,4,0.78);
  display:none;
  align-items:center; justify-content:center;
  padding: 18px;
}
.modal-backdrop.is-open{ display:flex; }
.modal{
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 460px;
  width:100%;
  padding: 28px 24px;
  box-shadow: var(--shadow-deep);
  position:relative;
  text-align:center;
}
.modal__close{
  position:absolute; top:14px; left:14px;
  background: transparent;
  color: var(--cream-dim);
  font-size:1.4rem;
  line-height:1;
  padding:4px;
}
.modal__close:hover{ color: var(--red); }
.modal__title{
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.5rem;
  margin: 0 0 14px;
}
.modal__text{
  font-family: var(--font-body);
  color: var(--cream);
  line-height:1.8;
  margin: 0 0 18px;
}
.modal__list{
  text-align: right;
  font-family: var(--font-body);
  color: var(--cream);
  line-height:2;
  margin: 0 0 18px;
  padding-inline-start: 20px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:100%;
  padding: 13px 18px;
  border-radius: 999px;
  font-family: var(--font-utility);
  font-weight:700;
  font-size: 1rem;
  margin-bottom: 10px;
  transition: transform .15s, filter .15s;
}
.btn:hover{ transform: translateY(-2px); filter: brightness(1.08); }
.btn--gold{ background: var(--gold); color:#1a1408; }
.btn--whatsapp{ background:#25D366; color:#07300f; }
.btn--outline{ background:transparent; border:1px solid var(--line); color:var(--cream); }

/* ============ Footer ============ */
.footer{
  text-align:center;
  padding: 40px 20px 60px;
  font-family: var(--font-display);
  letter-spacing: 2px;
  color: var(--gold-dim);
  font-size: 1.1rem;
  margin-top: auto;
}

/* ============ About page specifics ============ */
.about-block{
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  margin-bottom: 22px;
}
.about-block__title{
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.35rem;
  margin: 0 0 14px;
  display:flex; align-items:center; gap:8px;
}
.founder-line{
  font-family: var(--font-utility);
  font-weight:700;
  color: var(--cream);
  font-size: 1.05rem;
}
.founder-line b{ color: var(--gold); }

.feature-list{
  margin:0; padding-inline-start: 20px;
  line-height: 2.1;
}
.feature-list li::marker{ color: var(--red); }

.hours-row{
  display:flex; justify-content:space-between; gap:12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-family: var(--font-utility);
}
.hours-row:last-child{ border-bottom:none; }
.hours-row span:first-child{ color: var(--cream-dim); }
.hours-row span:last-child{ color: var(--gold); font-weight:700; }

.menu-groups{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 18px;
}
.menu-group__title{
  font-family: var(--font-display);
  color: var(--red);
  font-size: 1.15rem;
  margin: 0 0 10px;
  padding-bottom:8px;
  border-bottom: 2px solid var(--gold);
  display:inline-block;
}
.menu-item{
  display:flex; justify-content:space-between; align-items:center;
  padding: 8px 0;
  font-family: var(--font-body);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.menu-item span.price{
  background: var(--red);
  color:#fff;
  font-family: var(--font-utility);
  font-weight:700;
  font-size:0.82rem;
  padding: 3px 10px;
  border-radius: 999px;
  flex-shrink:0;
  margin-inline-start: 10px;
}
.price-note{
  text-align:center;
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.3rem;
  margin-top: 26px;
  padding: 16px;
  border: 1px dashed var(--gold-dim);
  border-radius: var(--radius);
}

.back-home{
  display:inline-flex; align-items:center; gap:6px;
  font-family: var(--font-utility);
  font-weight:700;
  color: var(--gold);
  margin-bottom: 18px;
}
.back-home:hover{ color: var(--red); }

/* ============ Responsive ============ */

@media (min-width: 641px){
  .edge-tabs-mobile-spacer{ display:none; }
}
.edge-tab__icon svg,
.modal__title svg,
.about-block__title svg{
    width:20px;
    height:20px;
    fill:currentColor;
    vertical-align:middle;
    flex-shrink:0;
}
  * {
    -webkit-tap-highlight-color: transparent;
  }