/*
Theme Name: Majlis
Theme URI: https://majliscom.com
Author: Majlis
Description: Bilingual (Arabic / English) theme for Majlis — a premium meeting room booked by the hour, half-day or full day. Built for Bookly PRO + WooCommerce checkout (Moyasar / Tap / HyperPay). Includes booking page, client account page, branded admin dashboard and login.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: majlis
Tags: rtl-language-support, custom-menu, featured-images, translation-ready, one-column
*/

/* ---------- Design tokens (sampled from the Majlis interior) ---------- */
:root {
  --olive-900: #26261b;
  --olive-800: #33331f;
  --olive-700: #43432c;   /* the wall */
  --olive-500: #6b6a4a;
  --espresso: #1d1813;    /* ceiling / screen */
  --walnut: #5a3a24;      /* sideboards */
  --walnut-2: #7a5236;
  --gold: #c9a46a;        /* brass letters + LED glow */
  --gold-soft: #e2c793;
  --linen: #e7dcc7;       /* chairs + rug */
  --cream: #f5efe4;
  --ink: #1c1a16;
  --muted: #8d8676;
  --line: rgba(201, 164, 106, .22);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .35);
  --max: 1200px;
  --font-display: "Cormorant Garamond", "El Messiri", Georgia, serif;
  --font-body: "Jost", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-caps: "Jost", "IBM Plex Sans Arabic", system-ui, sans-serif;
}
html[lang^="ar"] {
  --font-display: "El Messiri", "Cormorant Garamond", serif;
  --font-body: "IBM Plex Sans Arabic", "Jost", system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--espresso);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-soft); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; color: var(--cream); }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { clip: auto; width: auto; height: auto; z-index: 1000; top: 8px; inset-inline-start: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--olive { background: var(--olive-700); }
.section--deep { background: var(--olive-900); }
.section--cream { background: var(--cream); color: var(--ink); }
.section--cream h2, .section--cream h3 { color: var(--ink); }
.eyebrow {
  font-family: var(--font-caps); text-transform: uppercase; letter-spacing: .32em;
  font-size: .75rem; color: var(--gold); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 12px;
}
html[lang^="ar"] .eyebrow { letter-spacing: 0; font-size: .9rem; }
.eyebrow::after { content: ""; width: 36px; height: 1px; background: var(--gold); }
.lead { font-size: 1.15rem; color: var(--linen); max-width: 60ch; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head--center .eyebrow { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid var(--gold);
  font-family: var(--font-caps); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase;
  cursor: pointer; transition: background .2s, color .2s, transform .2s; min-height: 48px; text-align: center;
}
html[lang^="ar"] .btn { letter-spacing: 0; font-size: 1rem; }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-soft); color: var(--ink); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--gold); }
.btn--ghost:hover { background: rgba(201,164,106,.12); color: var(--gold-soft); }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(29, 24, 19, .82); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; color: var(--gold); }
.brand__ar { font-family: "El Messiri", serif; font-size: 1.9rem; font-weight: 500; }
.brand__en { font-family: var(--font-caps); letter-spacing: .42em; font-size: .62rem; margin-top: 4px; padding-inline-start: .42em; }
.brand:hover { color: var(--gold-soft); }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.primary-nav a { color: var(--linen); font-size: .92rem; letter-spacing: .04em; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.lang-switch a, .lang-switch span { display: inline-block; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; color: var(--linen); }
.lang-switch .current-lang a, .lang-switch .is-current { border-color: var(--gold); color: var(--gold); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--gold); border-radius: 10px; width: 46px; height: 46px; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; margin: 4px auto; }
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .primary-nav { position: fixed; inset: 76px 0 auto 0; background: var(--espresso); border-bottom: 1px solid var(--line); display: none; padding: 16px 16px 28px; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .header-actions .btn { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(29,24,19,.25) 0%, rgba(29,24,19,.35) 45%, rgba(29,24,19,.94) 100%);
}
.hero__content { position: relative; padding: 140px 0 64px; }
.hero h1 { max-width: 14ch; }
.hero .lead { margin-bottom: 30px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 56px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.hero__facts div { padding: 20px 18px; border-inline-end: 1px solid var(--line); }
.hero__facts div:last-child { border-inline-end: 0; }
.hero__facts strong { display: block; font-family: var(--font-display); font-size: 1.8rem; color: var(--gold); font-weight: 500; }
.hero__facts span { font-size: .85rem; color: var(--linen); }
@media (max-width: 720px) {
  .hero__facts { grid-template-columns: repeat(2, 1fr); }
  .hero__facts div:nth-child(2) { border-inline-end: 0; }
  .hero__facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Amenities ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--3, .grid--4 { grid-template-columns: 1fr; } }
.feature { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(0,0,0,.12); }
.feature__icon { width: 44px; height: 44px; color: var(--gold); margin-bottom: 18px; }
.feature h3 { font-size: 1.3rem; margin-bottom: 8px; }
.feature p { color: var(--linen); font-size: .95rem; margin: 0; }

/* ---------- Pricing ---------- */
.price-card {
  position: relative; display: flex; flex-direction: column; padding: 36px 30px; border-radius: var(--radius);
  background: var(--olive-800); border: 1px solid var(--line);
}
.price-card--featured { background: linear-gradient(180deg, #4a3a27, var(--olive-800)); border-color: var(--gold); box-shadow: var(--shadow); }
.price-card__badge { position: absolute; top: -13px; inset-inline-start: 30px; background: var(--gold); color: var(--ink); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.price-card h3 { margin-bottom: 4px; }
.price-card__duration { color: var(--muted); font-size: .9rem; margin-bottom: 22px; }
.price { font-family: var(--font-display); font-size: 3rem; color: var(--gold); line-height: 1; }
.price small { font-family: var(--font-body); font-size: .9rem; color: var(--linen); margin-inline-start: 6px; }
.price-card ul { list-style: none; padding: 0; margin: 26px 0 30px; flex: 1; }
.price-card li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--linen); display: flex; gap: 10px; }
.price-card li::before { content: "—"; color: var(--gold); }
.price-note { margin-top: 26px; color: var(--muted); font-size: .88rem; text-align: center; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.gallery figure:first-child { aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.gallery figure:hover img { transform: scale(1.04); }
@media (max-width: 800px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery figure:first-child { grid-column: 1 / -1; aspect-ratio: 16/10; } }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 22px; border-top: 1px solid var(--gold); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-display); color: var(--gold); font-size: 2.2rem; display: block; margin-bottom: 10px; }
.step p { color: var(--linen); }
.pay-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pay-badges span { border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px; font-size: .78rem; color: var(--linen); letter-spacing: .06em; }

/* ---------- Quote band ---------- */
.quote-band { text-align: center; }
.quote-band blockquote { margin: 0 auto; max-width: 20ch; font-family: var(--font-display); font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.12; color: var(--gold); }

/* ---------- Policies / FAQ ---------- */
.faq details { border-bottom: 1px solid rgba(28,26,22,.15); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 500; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--walnut-2); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: #4a453b; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: stretch; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 28px; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.contact-list li span:first-child { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; }
html[lang^="ar"] .contact-list li span:first-child { letter-spacing: 0; }
.map-frame { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 340px; border: 1px solid var(--line); background: var(--olive-800); }
.map-frame > img { position: absolute; inset: 0; }
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; filter: grayscale(.4) sepia(.25) brightness(.85); }

/* ---------- Page shell (booking, account, generic) ---------- */
.page-hero { padding: 72px 0 40px; background: linear-gradient(180deg, var(--olive-900), var(--espresso)); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.page-body { padding: 48px 0 96px; }
.entry-content > * { max-width: 760px; }
.entry-content > .alignwide, .entry-content > .bookly-wrap { max-width: none; }
.booking-layout { display: grid; grid-template-columns: 340px 1fr; gap: 32px; align-items: start; }
@media (max-width: 960px) { .booking-layout { grid-template-columns: 1fr; } .booking-aside { order: 2; } }
.booking-aside { position: sticky; top: 110px; padding: 28px; border-radius: var(--radius); background: var(--olive-800); border: 1px solid var(--line); }
.booking-aside h3 { font-size: 1.25rem; }
.booking-aside dl { margin: 0 0 20px; }
.booking-aside dt { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-top: 14px; }
.booking-aside dd { margin: 2px 0 0; color: var(--cream); }
.panel { background: var(--cream); color: var(--ink); border-radius: var(--radius); padding: clamp(18px, 3vw, 36px); box-shadow: var(--shadow); }
.panel h2, .panel h3 { color: var(--ink); }
.notice { padding: 16px 20px; border-radius: var(--radius-sm); background: rgba(201,164,106,.12); border: 1px solid var(--line); color: var(--linen); }
.panel .notice { color: #4a453b; background: #efe5d2; }
.account-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.account-tabs a { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--linen); }
.account-tabs a.is-active { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { background: #15110d; border-top: 1px solid var(--line); padding: 64px 0 28px; color: var(--linen); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--font-caps); font-size: .78rem; text-transform: uppercase; letter-spacing: .24em; color: var(--gold); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; }
.site-footer a { color: var(--linen); }
.site-footer a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: .85rem; }

/* WhatsApp floating button */
.wa-float { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow); }
.wa-float:hover { background: var(--gold-soft); color: var(--ink); }
.wa-float svg { width: 26px; height: 26px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* WordPress core alignment helpers */
.alignleft { float: inline-start; margin-inline-end: 1.5em; }
.alignright { float: inline-end; margin-inline-start: 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text { color: var(--muted); font-size: .85rem; }
.wa-float svg.feature__icon { margin: 0; width: 26px; height: 26px; color: var(--ink); }
section[id] { scroll-margin-top: 84px; }

/* Plain WordPress login form inside panels (when WooCommerce isn't active) */
.panel #loginform p { margin: 0 0 16px; }
.panel #loginform label { display: block; font-weight: 500; color: #4a453b; margin-bottom: 6px; }
.panel #loginform input[type="text"], .panel #loginform input[type="password"] {
	width: 100%; min-height: 46px; padding: 8px 12px; border: 1px solid #d8ccb6; border-radius: 10px; background: #fffdf8; font-size: 16px;
}
.panel #loginform .login-remember label { display: inline-flex; gap: 8px; align-items: center; font-weight: 400; }
.panel #loginform input[type="submit"] {
	background: var(--gold); color: var(--ink); border: 0; border-radius: 999px; min-height: 48px; padding: 0 30px; cursor: pointer;
	font-family: var(--font-caps); letter-spacing: .12em; text-transform: uppercase; font-size: .85rem;
}
.entry-content ul { padding-inline-start: 1.2em; }
.entry-content li { margin-bottom: .4em; }
