/* Hagouga website — warm folk palette from the menu and the cover (Brand_Kit/03_Colors) */
@font-face { font-family: "Rakkas"; src: url("fonts/Rakkas-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "FF Yaseer"; src: url("fonts/FFYaseer-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Aref Ruqaa"; src: url("fonts/ArefRuqaa-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --paper: #FBF3E3;
  --cream: #F4E6CB;
  --sand: #EAD3AA;
  --ink: #36272E;
  --ink-soft: #6B5148;
  --terracotta: #A84932;
  --terracotta-deep: #8E2B1B;
  --wine: #6E2B22;
  --burnt: #D8690C;
  --gold: #E9AA49;
  --gold-soft: #F3CF83;
  --forest: #23403A;
  --night: #2A1E1A;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(54, 39, 46, .14);
  --gutter: 16px;
  --font-title: "Rakkas", "Aref Ruqaa", serif;
  --font-body: "FF Yaseer", "Segoe UI", Tahoma, sans-serif;
  --font-script: "Aref Ruqaa", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 18px; line-height: 1.7; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.h2 { font-family: var(--font-title); font-weight: 400; font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.15; color: var(--terracotta-deep); margin: 0 0 .4em; text-align: center; }
.h2::after { content: ""; display: block; width: 86px; height: 10px; margin: .35em auto 0; background: radial-gradient(circle, var(--gold) 3px, transparent 3.5px) 0 50% / 14px 10px repeat-x; }
.h2--light { color: var(--gold-soft); }

/* ---------- top bar ---------- */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, box-shadow .3s; }
.topbar__in { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: block; height: 40px; }
.brand__logo { height: 40px; width: auto; }
.brand__logo--dark { display: none; }
.topbar.is-solid { background: rgba(251, 243, 227, .96); box-shadow: 0 2px 16px rgba(54, 39, 46, .12); backdrop-filter: blur(6px); }
.topbar.is-solid .brand__logo--light { display: none; }
.topbar.is-solid .brand__logo--dark { display: block; }
.nav { display: flex; gap: 6px; }
.nav a { text-decoration: none; color: #FFF4DE; font-size: 1.05rem; padding: 6px 14px; border-radius: 999px; transition: background .2s; }
.nav a:hover { background: rgba(255, 244, 222, .15); }
.topbar.is-solid .nav a { color: var(--ink); }
.topbar.is-solid .nav a:hover { background: var(--cream); }
.navbtn { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; cursor: pointer; }
.navbtn span { display: block; height: 2px; margin: 5px 0; background: #FFF4DE; border-radius: 2px; transition: transform .25s, opacity .25s; }
.topbar.is-solid .navbtn span { background: var(--ink); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--night); }
.hero picture, .hero__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__img { object-fit: cover; object-position: 60% 30%; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(30, 18, 12, .82) 0%, rgba(30, 18, 12, .35) 32%, rgba(30, 18, 12, 0) 55%), linear-gradient(to bottom, rgba(30, 18, 12, .45), rgba(30, 18, 12, 0) 18%); }
.hero__body { position: relative; width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; padding-bottom: clamp(36px, 7vh, 72px); color: #FFF4DE; text-align: center; }
.hero__logo { width: min(240px, 58vw); margin: 0 auto 6px; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .45)); }
.hero__tag { font-family: var(--font-script); font-weight: 700; font-size: clamp(1.7rem, 5vw, 2.6rem); margin: 0; color: var(--gold-soft); text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.hero__sub { margin: .3em auto 1.1em; max-width: 34em; font-size: 1.05rem; opacity: .95; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.hero__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 28px; border-radius: 999px; font-family: var(--font-title); font-size: 1.25rem; text-decoration: none; transition: transform .15s, background .2s, color .2s; }
.btn:active { transform: scale(.97); }
.btn--main { background: var(--terracotta); color: #FFF4DE; box-shadow: 0 6px 18px rgba(142, 43, 27, .35); }
.btn--main:hover { background: var(--terracotta-deep); }
.btn--ghost { border: 2px solid rgba(255, 244, 222, .85); color: #FFF4DE; }
.btn--ghost:hover { background: rgba(255, 244, 222, .14); }
.btn--sm { min-height: 42px; font-size: 1.05rem; padding: 6px 20px; }

/* ornament band (the container's woven border) */
.band { height: 46px; background: url("img/band.webp") center / auto 100% repeat-x; }

/* ---------- menu ---------- */
.menu { padding: 56px 0 64px; background: var(--paper); }
.menu__tax { text-align: center; color: var(--ink-soft); font-size: .95rem; margin: -6px auto 18px; max-width: 40em; }
.chips { position: sticky; top: 64px; z-index: 20; display: flex; gap: 8px; overflow-x: auto; padding: 10px var(--gutter); margin-bottom: 20px; background: rgba(251, 243, 227, .96); border-block: 1px solid var(--sand); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: none; text-decoration: none; padding: 6px 16px; border-radius: 999px; background: var(--cream); color: var(--ink); font-size: 1rem; white-space: nowrap; border: 1px solid transparent; transition: background .2s, color .2s; }
.chips a.is-on { background: var(--terracotta); color: #FFF4DE; }
@media (min-width: 1100px) { .chips { justify-content: center; flex-wrap: wrap; } }
.menu__grid { columns: 2 440px; column-gap: 26px; }
.mcard { break-inside: avoid; margin: 0 0 26px; background: #FFFBF2; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border: 1px solid #EFDDBB; }
.mcard__head { position: relative; min-height: 64px; display: flex; align-items: flex-end; }
.mcard__head img { width: 100%; height: 150px; object-fit: cover; }
.mcard__head--photo .mcard__title { position: absolute; inset: auto 0 0 0; padding: 26px 18px 8px; color: #FFF4DE; background: linear-gradient(to top, rgba(42, 30, 26, .85), rgba(42, 30, 26, 0)); }
.mcard__title { margin: 0; font-family: var(--font-title); font-weight: 400; font-size: 1.9rem; line-height: 1.2; color: var(--terracotta-deep); padding: 16px 18px 0; }
.mcard__title--ruqaa { font-family: var(--font-script); font-weight: 700; }
.mlist { list-style: none; margin: 0; padding: 10px 18px 16px; }
.mitem { padding: 9px 0; border-bottom: 1px dashed #E5CFA6; }
.mitem:last-child { border-bottom: 0; }
.mitem__row { display: flex; align-items: baseline; gap: 10px; }
.mitem__name { font-size: 1.12rem; color: var(--ink); }
.mitem__dots { flex: 1; border-bottom: 2px dotted #D9BC8C; transform: translateY(-5px); min-width: 16px; }
.mitem__price { font-family: var(--font-title); font-size: 1.3rem; color: var(--terracotta); white-space: nowrap; }
.mitem__note { display: block; color: var(--ink-soft); font-size: .92rem; line-height: 1.5; margin-top: 2px; }
.badge { display: inline-block; margin-inline-start: 8px; padding: 0 10px; border-radius: 999px; background: var(--gold); color: var(--wine); font-family: var(--font-title); font-size: .9rem; line-height: 1.7; vertical-align: 2px; }
.mbox { margin: 4px 14px 16px; padding: 4px 16px 8px; border-radius: 16px; background: var(--wine); color: #F6E9D2; box-shadow: inset 0 0 0 2px rgba(233, 170, 73, .55); }
.mbox .mitem { border-bottom-color: rgba(246, 233, 210, .25); }
.mbox .mitem__name { color: #FFF4DE; font-family: var(--font-title); font-size: 1.3rem; }
.mbox .mitem__note { color: #E7CDB0; }
.mbox .mitem__dots { border-bottom-color: rgba(233, 170, 73, .5); }
.mbox .mitem__price { color: var(--gold-soft); }
.mbox .badge { background: var(--gold-soft); }

/* ---------- story ---------- */
.story { padding: 64px 0; background: radial-gradient(120% 90% at 85% 10%, #F8E3BC 0%, var(--cream) 55%, #EFD9B2 100%); }
.story__in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.story__text .h2 { text-align: start; }
.story__text .h2::after { margin-inline: 0; }
.story__lead { font-size: 1.35rem; color: var(--terracotta-deep); }
.story__text p { margin: 0 0 1em; }
.story__sign { font-family: var(--font-script); font-weight: 700; font-size: 1.6rem; color: var(--wine); }
.story__art { margin: 0; }
.story__art img { border-radius: 24px; box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }

/* ---------- gallery ---------- */
.gallery { padding: 60px 0 70px; }
.gallery__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.gallery__grid button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.gallery__grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; }
.gallery__grid button:hover img { transform: scale(1.05); }
.gallery__grid .is-wide { grid-column: span 2; }
.gallery__grid .is-wide img { aspect-ratio: 8 / 3; }

/* ---------- visit ---------- */
.visit { position: relative; padding: 70px 0; color: #FFF4DE; background: var(--night); overflow: hidden; }
.visit__photo { position: absolute; inset: 0; background: url("img/place-night.webp") center / cover; opacity: .38; }
.visit__in { position: relative; }
.visit__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 10px; }
.vcard { background: rgba(42, 30, 26, .78); border: 1px solid rgba(233, 170, 73, .45); border-radius: var(--radius); padding: 18px 20px 20px; backdrop-filter: blur(4px); }
.vcard h3 { margin: 0 0 6px; font-family: var(--font-title); font-weight: 400; font-size: 1.5rem; color: var(--gold-soft); }
.vcard p { margin: 0 0 12px; }
.vcard__phone { font-family: var(--font-title); font-size: 1.5rem; text-decoration: none; letter-spacing: .5px; direction: ltr; unicode-bidi: isolate; }
.vcard__social a { display: inline-block; margin-inline-end: 12px; color: var(--gold-soft); }
.todo { display: inline-block; padding: 0 8px; border: 1px dashed var(--gold); border-radius: 8px; color: var(--gold-soft); font-size: .95rem; }
.visit__map { margin-top: 18px; border-radius: var(--radius); overflow: hidden; min-height: 0; }
.visit__map iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- footer ---------- */
.foot { background: #1E1512; color: #E7CDB0; padding: 36px 0 calc(28px + env(safe-area-inset-bottom)); text-align: center; }
.foot__logo { width: 150px; margin: 0 auto 4px; }
.foot__tag { font-family: var(--font-script); font-weight: 700; font-size: 1.3rem; color: var(--gold-soft); margin: 0; }
.foot__copy { margin: 8px 0 0; font-size: .9rem; opacity: .75; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(20, 12, 9, .92); display: flex; align-items: center; justify-content: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 88vh; border-radius: 12px; }
.lightbox__close { position: absolute; top: 12px; left: 12px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 244, 222, .15); color: #FFF4DE; font-size: 2rem; line-height: 1; cursor: pointer; }

/* ---------- phones ---------- */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .navbtn { display: block; }
  .langbtn { margin-inline-start: auto; }
  .nav { position: absolute; inset: 64px 0 auto 0; flex-direction: column; gap: 0; padding: 8px var(--gutter) 14px; background: rgba(251, 243, 227, .98); box-shadow: 0 10px 20px rgba(54, 39, 46, .15); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
  .nav a { color: var(--ink); font-size: 1.2rem; padding: 12px 8px; border-radius: 10px; }
  .topbar.is-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .topbar.is-open { background: rgba(251, 243, 227, .98); }
  .topbar.is-open .brand__logo--light { display: none; }
  .topbar.is-open .brand__logo--dark { display: block; }
  .topbar.is-open .navbtn span { background: var(--ink); }
  .topbar.is-open .navbtn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .topbar.is-open .navbtn span:nth-child(2) { opacity: 0; }
  .topbar.is-open .navbtn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero__img { object-position: 50% 20%; }
  .menu__grid { columns: 1; }
  .mcard__head img { height: 130px; }
  .story__in { grid-template-columns: 1fr; gap: 24px; }
  .story__text .h2 { text-align: center; }
  .story__text .h2::after { margin-inline: auto; }
  .story__text { text-align: center; }
  .visit__cards { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gallery__grid .is-wide { grid-column: span 2; }
  .band { height: 34px; }
}
@media (min-width: 761px) {
  .hero__body { padding-right: 56%; }   /* physical: the text block sits left of the Hajja in both languages */
  .hero__logo { display: none; }
  .hero__shade { background: linear-gradient(to left, rgba(30, 18, 12, 0) 40%, rgba(30, 18, 12, .55) 100%), linear-gradient(to top, rgba(30, 18, 12, .75) 0%, rgba(30, 18, 12, 0) 45%), linear-gradient(to bottom, rgba(30, 18, 12, .4), rgba(30, 18, 12, 0) 16%); }
}
/* ---------- language switch + English ---------- */
.langbtn { min-width: 44px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid rgba(255, 244, 222, .8); background: transparent; color: #FFF4DE; font: 600 .95rem/1 "Segoe UI", Tahoma, sans-serif; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.langbtn:lang(ar) { font-family: var(--font-body); font-size: 1.05rem; }
.langbtn:hover { background: rgba(255, 244, 222, .15); }
.topbar.is-solid .langbtn, .topbar.is-open .langbtn { color: var(--ink); border-color: var(--ink-soft); }
.topbar__in { gap: 12px; }
.nav { margin-inline-start: auto; }
.mitem__ar { display: block; color: var(--ink-soft); font-family: var(--font-body); font-size: .95rem; line-height: 1.4; text-align: left; }
html:lang(en) body { font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif; font-size: 17px; }
html:lang(en) .mitem__name { font-size: 1.05rem; }
html:lang(en) .mitem__price, html:lang(en) .mcard__title, html:lang(en) .h2, html:lang(en) .btn, html:lang(en) .vcard h3 { font-family: var(--font-title); }
html:lang(en) .hero__tag, html:lang(en) .story__sign, html:lang(en) .foot__tag { font-family: var(--font-title); font-weight: 400; }
html:lang(en) .statement__text { font-size: clamp(1.9rem, 5.6vw, 4.2rem); line-height: 1.25; max-width: 18em; }
html:lang(en) .mitem__dots { transform: translateY(-4px); }

/* ---------- statement (pinned, words light up while scrolling) ---------- */
.statement { position: relative; height: 240vh; background: radial-gradient(90% 70% at 50% 50%, #FFF8EA 0%, var(--paper) 60%, var(--cream) 100%); }
.statement__pin { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 0 var(--gutter); }
.statement__logo { width: clamp(90px, 14vw, 140px); opacity: .85; }
.statement__text { margin: 0; max-width: 15em; text-align: center; font-family: var(--font-title); font-size: clamp(2.1rem, 7vw, 5rem); line-height: 1.35; color: var(--terracotta-deep); }
.anim-on .statement__text .w { opacity: .14; transition: opacity .45s ease, color .45s ease; }
.anim-on .statement__text .w.on { opacity: 1; }

/* ---------- motion ---------- */
.anim-on .reveal { opacity: 0; transform: translate3d(0, 34px, 0) scale(.985); transition: opacity 1s cubic-bezier(.16, .84, .3, 1), transform 1.1s cubic-bezier(.16, .84, .3, 1); transition-delay: var(--d, 0s); will-change: opacity, transform; }
.anim-on .reveal.is-in { opacity: 1; transform: none; }
.anim-on .h2.reveal::after { transform: scaleX(0); transition: transform 1.2s .35s cubic-bezier(.16, .84, .3, 1); }
.anim-on .h2.reveal.is-in::after { transform: scaleX(1); }
.anim-on .mcard .mcard__head img { transform: scale(1.18); transition: transform 1.8s cubic-bezier(.16, .84, .3, 1); }
.anim-on .mcard.is-in .mcard__head img { transform: scale(1); }
.anim-on .reveal-lite { opacity: 0; transform: translate3d(-10px, 0, 0); transition: opacity .6s ease, transform .6s cubic-bezier(.16, .84, .3, 1); transition-delay: var(--d, 0s); }
.anim-on .mcard.is-in .reveal-lite { opacity: 1; transform: none; }
.anim-on .gallery__grid > button.reveal { transform: translate3d(0, 30px, 0) scale(.94); }
.anim-on .gallery__grid > button.reveal.is-in { transform: none; }
/* hero intro: the painting comes out of a soft blur, then the words rise one after another */
.anim-on .hero picture { will-change: transform; transform-origin: 50% 40%; }
.anim-on .hero__img { transform: scale(1.14); filter: blur(10px) brightness(.75); transition: transform 2.4s cubic-bezier(.16, .84, .3, 1), filter 1.6s ease; }
.anim-on.is-loaded .hero__img { transform: scale(1); filter: none; }
.anim-on .hero__body > * { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity 1s ease, transform 1.1s cubic-bezier(.16, .84, .3, 1); }
.anim-on.is-loaded .hero__body > * { opacity: 1; transform: none; }
.anim-on.is-loaded .hero__body > :nth-child(1) { transition-delay: .5s; }
.anim-on.is-loaded .hero__body > :nth-child(2) { transition-delay: .75s; }
.anim-on.is-loaded .hero__body > :nth-child(3) { transition-delay: .95s; }
.anim-on.is-loaded .hero__body > :nth-child(4) { transition-delay: 1.15s; }
.anim-on .hero__body { will-change: transform, opacity; }
.anim-on .story__art { overflow: hidden; border-radius: 24px; }
.anim-on .story__art img { will-change: transform; }
.anim-on .visit__photo { will-change: transform; }
.btn { transition: transform .25s cubic-bezier(.16, .84, .3, 1), background .2s, color .2s, box-shadow .25s; }
.btn:hover { transform: translateY(-2px); }
.mcard { transition: box-shadow .35s ease, transform .35s cubic-bezier(.16, .84, .3, 1); }
@media (hover: hover) { .mcard:hover { box-shadow: 0 18px 40px rgba(54, 39, 46, .18); } }

/* reduced motion: everything shows at once, the statement is a normal block */
.no-motion .statement { height: auto; }
.no-motion .statement__pin { position: static; height: auto; padding: 70px var(--gutter); }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
