/* ===================================================================
   شاليه جريل بلاص — Grill Plus Chalet
   Luxury desert-night aesthetic · warm charcoal, travertine, gold
   =================================================================== */

:root {
  --night:    #16110b;   /* warm near-black */
  --night-2:  #1f1810;   /* card base */
  --night-3:  #2a2117;   /* raised */
  --sand:     #e9ddc8;   /* travertine cream (text) */
  --sand-dim: #b7a98f;   /* muted */
  --gold:     #c9a35a;   /* brass accent */
  --gold-2:   #e3c179;   /* light gold */
  --ember:    #c66a3a;   /* warm ember */
  --line:     rgba(201,163,90,.18);
  --shadow:   0 24px 60px -20px rgba(0,0,0,.7);
  --wa:       #1faa52;

  --display: "El Messiri", "Cairo", serif;
  --kufi:    "Cairo", sans-serif;
  --body:    "Tajawal", "Cairo", sans-serif;

  --maxw: 1180px;
  --r: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--body);
  background: var(--night);
  color: var(--sand);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* clear keyboard-focus ring for accessibility */
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 4px; }

/* atmospheric base gradient */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(1100px 700px at 85% -5%, rgba(198,106,58,.16), transparent 60%),
    radial-gradient(900px 600px at 0% 100%, rgba(201,163,90,.10), transparent 55%),
    var(--night);
}

/* grain overlay */
.grain {
  position: fixed; inset: 0; z-index: 9990; pointer-events: none;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Shared ===== */
.section { padding: clamp(64px, 9vw, 120px) clamp(20px, 5vw, 40px); }
.section > *, .book__grid, .about__grid, .features__grid, .gallery__grid { max-width: var(--maxw); margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-family: var(--kufi);
  font-size: .82rem; letter-spacing: .18em;
  color: var(--gold-2);
  padding-bottom: .5rem;
  position: relative;
}
.eyebrow::after {
  content: ""; position: absolute; bottom: 0; right: 0;
  width: 34px; height: 2px; background: var(--gold);
}

.h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  line-height: 1.25;
  margin: .35rem 0 1rem;
  color: var(--sand);
}
.accent { color: var(--gold-2); }

.section__head { text-align: center; margin-bottom: clamp(36px, 5vw, 60px); }
.section__head .eyebrow::after { right: 50%; transform: translateX(50%); }
.section__sub { color: var(--sand-dim); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--kufi); font-weight: 600; font-size: 1.02rem;
  padding: .85rem 1.7rem; border-radius: 999px;
  border: 1px solid transparent; transition: transform .25s, box-shadow .25s, background .25s;
}
.btn--gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #221a0e;
  box-shadow: 0 12px 30px -10px rgba(201,163,90,.6);
}
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -12px rgba(201,163,90,.75); }
.btn--ghost {
  border-color: var(--line); color: var(--sand);
  backdrop-filter: blur(6px); background: rgba(255,255,255,.03);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-2); transform: translateY(-3px); }
.btn--block { width: 100%; padding-block: 1.05rem; font-size: 1.1rem; }
.btn__wa { width: 22px; height: 22px; fill: currentColor; }

/* ===== Nav ===== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s, box-shadow .3s, padding .3s;
  padding: 14px 0;
}
.nav.scrolled {
  background: rgba(22,17,11,.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: 0 clamp(20px, 5vw, 40px);
  display: flex; align-items: center; gap: 1.2rem;
}
.brand { display: flex; align-items: center; gap: .7rem; }
.brand__mark {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  font-family: var(--display); font-size: 1.5rem; font-weight: 700;
  color: #221a0e;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text strong { font-family: var(--kufi); font-size: 1.05rem; }
.brand__text em { font-style: normal; font-size: .72rem; color: var(--sand-dim); letter-spacing: .04em; }
.nav__links { display: flex; gap: 1.5rem; margin-inline-start: auto; }
.nav__links a { font-family: var(--kufi); font-size: .98rem; color: var(--sand-dim); transition: color .2s; }
.nav__links a:hover { color: var(--gold-2); }
.nav__cta { padding: .6rem 1.3rem; font-size: .95rem; }

/* ===== Hero ===== */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(to left, rgba(22,17,11,.45), rgba(22,17,11,.78) 70%, var(--night)),
    linear-gradient(to top, var(--night), transparent 45%);
}
.hero__content {
  max-width: var(--maxw); width: 100%;
  margin-inline: auto; padding: 120px clamp(20px, 5vw, 40px) 60px;
}
.hero__title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(3rem, 11vw, 7rem); line-height: .98;
  margin: .4rem 0 .6rem;
  color: var(--sand);
  text-shadow: 0 8px 40px rgba(0,0,0,.5);
}
.hero__tag {
  max-width: 30ch; font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  color: var(--sand); margin-bottom: 1.8rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.2rem; }
.hero__chips { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; }
.hero__chips li {
  font-family: var(--kufi); font-size: .9rem;
  padding: .45rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(0,0,0,.25);
  backdrop-filter: blur(4px); color: var(--sand);
}
.hero__chips li::before { content: "◈ "; color: var(--gold); }

.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); }
.hero__scroll span {
  display: block; width: 26px; height: 42px; border: 2px solid var(--line); border-radius: 14px; position: relative;
}
.hero__scroll span::after {
  content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 2px; background: var(--gold-2);
  animation: scrolldot 1.6s infinite;
}
@keyframes scrolldot { 0%{opacity:0;transform:translate(-50%,0)} 40%{opacity:1} 100%{opacity:0;transform:translate(-50%,14px)} }

/* reveal animation */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].in { opacity: 1; transform: none; }

/* ===== About ===== */
.about__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.about__text p { color: var(--sand-dim); margin-bottom: 1rem; }
.about__text strong { color: var(--sand); }
.about__stats { display: flex; gap: 1.5rem; margin-top: 1.6rem; flex-wrap: wrap; }
.about__stats div { display: flex; flex-direction: column; }
.about__stats strong { font-family: var(--display); font-size: 1.9rem; color: var(--gold-2); line-height: 1; }
.about__stats span { font-size: .85rem; color: var(--sand-dim); }
.about__photo { position: relative; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; transition: transform .8s; }
.about__photo:hover img { transform: scale(1.05); }
.about__photo figcaption {
  position: absolute; inset-block-end: 0; inset-inline: 0;
  padding: 1.4rem 1.2rem .9rem; font-family: var(--kufi); font-size: .95rem;
  background: linear-gradient(to top, rgba(22,17,11,.85), transparent);
}

/* site profile / identity chip on the about photo */
.about__photo .profile {
  position: absolute; inset-block-start: 14px; inset-inline-start: 14px; z-index: 2;
  display: flex; align-items: center; gap: .6rem;
  padding: .45rem; padding-inline-end: 1.1rem;
  background: rgba(22,17,11,.55); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 10px 24px -14px rgba(0,0,0,.8);
}
.profile__avatar {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 2px rgba(22,17,11,.7);
}
.profile__meta { display: flex; flex-direction: column; line-height: 1.25; }
.profile__meta strong { font-family: var(--kufi); font-size: .92rem; color: var(--sand); }
.profile__meta span { font-size: .72rem; color: var(--sand-dim); }

/* ===== Features ===== */
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.feature {
  padding: 1.8rem 1.5rem; border-radius: var(--r);
  background: linear-gradient(160deg, var(--night-2), var(--night-3));
  border: 1px solid var(--line);
  transition: transform .3s, border-color .3s;
}
.feature:hover { transform: translateY(-6px); border-color: var(--gold); }
.feature__icon {
  width: 40px; height: 40px; margin-bottom: 1rem;
  fill: none; stroke: var(--gold-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.feature h3 { font-family: var(--kufi); font-size: 1.25rem; margin-bottom: .4rem; }
.feature p { color: var(--sand-dim); font-size: .98rem; }

/* ===== Gallery ===== */
.gallery__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px; gap: 14px;
}
.shot {
  position: relative; overflow: hidden; border-radius: 14px;
  border: 1px solid var(--line); padding: 0; background: var(--night-2);
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.shot:hover img { transform: scale(1.08); }
.shot--tall { grid-row: span 2; }
.shot--wide { grid-column: span 2; }
.shot__cap {
  position: absolute; inset-block-end: 0; inset-inline: 0;
  padding: 1.6rem .95rem .85rem; text-align: start;
  font-family: var(--kufi); color: var(--sand);
  background: linear-gradient(to top, rgba(22,17,11,.92) 12%, rgba(22,17,11,.5) 55%, transparent);
  display: flex; flex-direction: column; gap: .15rem;
}
.shot__cap strong { font-size: 1.06rem; font-weight: 600; line-height: 1.3; }
.shot__cap span {
  font-size: .85rem; color: var(--sand-dim); line-height: 1.5;
  max-height: 0; opacity: 0; transform: translateY(4px); overflow: hidden;
  transition: max-height .35s ease, opacity .3s ease, transform .35s ease;
}
.shot:hover .shot__cap span,
.shot:focus-visible .shot__cap span { max-height: 4rem; opacity: 1; transform: none; }
.shot::after {
  content: "＋"; position: absolute; inset-block-start: 12px; inset-inline-end: 12px;
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(22,17,11,.6); color: var(--gold-2);
  opacity: 0; transition: .3s; font-size: 1.1rem;
}
.shot:hover::after { opacity: 1; }

/* ===== Booking ===== */
.book { position: relative; }
.book::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(700px 400px at 100% 0%, rgba(198,106,58,.12), transparent 60%);
}
.book__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.book__intro p { color: var(--sand-dim); margin-bottom: 1.2rem; }
.book__intro strong { color: var(--gold-2); }
.book__points { list-style: none; display: grid; gap: .6rem; margin-bottom: 1.6rem; }
.book__points li { padding-inline-start: 1.6rem; position: relative; color: var(--sand); }
.book__points li::before {
  content: "✓"; position: absolute; inset-inline-start: 0; color: var(--gold-2); font-weight: 700;
}
.book__direct {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--kufi); color: var(--sand);
  padding: .75rem 1.3rem; border-radius: 999px;
  border: 1px solid var(--wa); transition: .25s;
}
.book__direct svg { width: 22px; height: 22px; fill: var(--wa); }
.book__direct:hover { background: var(--wa); color: #fff; }
.book__direct:hover svg { fill: #fff; }

.book__form {
  background: linear-gradient(160deg, var(--night-2), var(--night-3));
  border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; margin-bottom: 1.05rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-family: var(--kufi); font-size: .95rem; margin-bottom: .45rem; color: var(--sand); }
.field .opt { color: var(--sand-dim); font-size: .82rem; }
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: 1rem; color: var(--sand);
  background: rgba(0,0,0,.28); border: 1px solid var(--line);
  border-radius: 12px; padding: .8rem .9rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #7d7259; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,163,90,.15);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23c9a35a' stroke-width='2'%3E%3Cpath d='M2 4l5 6 5-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 1rem center; }
/* date inputs: lighten the native icon for dark bg */
.field input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.8) sepia(1) saturate(3) hue-rotate(5deg); cursor: pointer; }
.err { color: var(--ember); font-size: .82rem; min-height: 1rem; margin-top: .25rem; }
.field.invalid input, .field.invalid select { border-color: var(--ember); }
.book__note { font-size: .85rem; color: var(--sand-dim); text-align: center; margin-top: .9rem; }

/* ===== License ===== */
.license__card {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 44px);
  align-items: center;
  background: linear-gradient(160deg, var(--night-2), var(--night-3));
  border: 1px solid var(--line); border-radius: calc(var(--r) + 6px);
  padding: clamp(28px, 5vw, 52px); box-shadow: var(--shadow);
}
.license__badge {
  width: 96px; height: 96px; border-radius: 24px; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, rgba(201,163,90,.3), transparent 70%);
  border: 1px solid var(--gold);
}
.license__badge svg { width: 52px; height: 52px; fill: none; stroke: var(--gold-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.license__body p { color: var(--sand-dim); margin-bottom: 1.3rem; }
.license__rows { display: grid; gap: .8rem; }
.license__rows > div { display: flex; align-items: baseline; gap: 1rem; border-top: 1px dashed var(--line); padding-top: .8rem; }
.license__rows dt { font-family: var(--kufi); color: var(--sand-dim); min-width: 120px; }
.license__rows dd { font-family: var(--kufi); font-size: 1.15rem; color: var(--gold-2); font-weight: 600; letter-spacing: .03em; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--line); padding: clamp(40px, 6vw, 64px) clamp(20px, 5vw, 40px) 28px; background: rgba(0,0,0,.25); }
.footer__inner { max-width: var(--maxw); margin-inline: auto; display: flex; flex-wrap: wrap; gap: 1.6rem; align-items: center; justify-content: space-between; }
.footer__brand { display: flex; align-items: center; gap: .8rem; }
.footer__brand strong { font-family: var(--kufi); font-size: 1.1rem; }
.footer__brand p { font-size: .85rem; color: var(--sand-dim); }
.footer__links { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.footer__links a { font-family: var(--kufi); color: var(--sand-dim); transition: color .2s; }
.footer__links a:hover { color: var(--gold-2); }
.footer__wa { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--kufi); padding: .7rem 1.3rem; border-radius: 999px; background: var(--wa); color: #fff; }
.footer__wa svg { width: 20px; height: 20px; fill: #fff; }
.footer__bar { max-width: var(--maxw); margin: 2rem auto 0; padding-top: 1.2rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between; font-size: .82rem; color: var(--sand-dim); }

/* ===== Floating WhatsApp ===== */
.fab {
  position: fixed; inset-block-end: 22px; inset-inline-start: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wa);
  box-shadow: 0 12px 30px -8px rgba(31,170,82,.7);
  animation: fabpulse 2.6s infinite;
}
.fab svg { width: 30px; height: 30px; fill: #fff; }
@keyframes fabpulse { 0%,100%{box-shadow:0 12px 30px -8px rgba(31,170,82,.7)} 50%{box-shadow:0 12px 38px -6px rgba(31,170,82,.95)} }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(10,7,4,.92); backdrop-filter: blur(8px);
  align-items: center; justify-content: center; padding: 5vw;
}
.lightbox.open { display: flex; }
.lightbox__fig { max-width: 92vw; max-height: 88vh; text-align: center; }
.lightbox__fig img { max-width: 100%; max-height: 80vh; border-radius: 14px; box-shadow: var(--shadow); }
.lightbox__fig figcaption { font-family: var(--kufi); margin-top: 1rem; color: var(--sand); font-size: 1.2rem; font-weight: 600; }
.lightbox__desc { font-family: var(--body); margin-top: .45rem; color: var(--sand-dim); font-size: .98rem; line-height: 1.7; max-width: 56ch; margin-inline: auto; }
.lightbox__close { position: absolute; top: 20px; inset-inline-start: 24px; font-size: 2.4rem; color: var(--sand); background: none; border: none; line-height: 1; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .about__grid, .book__grid { grid-template-columns: 1fr; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .shot--wide { grid-column: span 2; }
  .shot--tall { grid-row: span 1; }
  .license__card { grid-template-columns: 1fr; text-align: center; }
  .license__badge { margin-inline: auto; }
  .license__rows > div { justify-content: center; flex-wrap: wrap; }
  .eyebrow::after { right: 50%; transform: translateX(50%); }
  .about__text .eyebrow::after, .book__intro .eyebrow::after, .license__body .eyebrow::after { right: 0; transform: none; }
}
@media (max-width: 560px) {
  .features__grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .nav__cta { display: none; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}
