:root {
  --red: #8F1F17; --red-deep: #6E1510; --paper: #FDFBF7;
  --ink: #2A241F; --leather: #7A5A33; --tan: #C9B18C; --frame: #D8CCB8;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: 'Lora', Georgia, serif;
  font-size: 17px; line-height: 1.75; overflow-x: hidden; }
h1, h2, h3 { font-family: 'Marcellus', Georgia, serif; font-weight: 400; line-height: 1.2; }
a { color: var(--red); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

header { background: var(--paper); border-bottom: 1px solid var(--frame); position: relative; z-index: 5; }
.topline { background: var(--red); color: #F3E7D3; font-size: 0.85rem; text-align: center; padding: 6px 16px; }
.topline a { color: #fff; text-decoration: none; }
nav.main { display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px 0; flex-wrap: wrap; }
.logotype { display: flex; align-items: center; gap: 14px; font-family: 'Marcellus', serif;
  font-size: 1.35rem; color: var(--red); text-decoration: none; line-height: 1.15; }
.logotype img { height: 52px; width: auto; }
.logotype small { display: block; font-family: 'Lora', serif; font-style: italic;
  font-size: 0.78rem; color: var(--leather); }
.navlinks { display: flex; gap: 26px; flex-wrap: wrap; }
.navlinks a { font-family: 'Marcellus', serif; font-size: 1rem; color: var(--ink);
  text-decoration: none; padding-bottom: 3px; position: relative; }
.navlinks a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease; }
.navlinks a:hover::after, .navlinks a:focus::after, .navlinks a.current::after { transform: scaleX(1); }
.navlinks a.current { color: var(--red); }

.photo { border: 1px solid var(--frame); outline: 1px solid var(--frame); outline-offset: 5px;
  position: relative; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

.hero { position: relative; }
.hero-stage { position: relative; aspect-ratio: 16 / 5; max-height: 76vh; min-height: 260px;
  overflow: hidden; border-bottom: 1px solid var(--frame); }
.hero-stage img.drift { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  animation: drift 30s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.06); } }
@media (max-width: 700px) {
  .hero-stage { aspect-ratio: 4 / 3; }
}
.hero-stage::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 10%, rgba(42,36,31,0) 55%, rgba(42,36,31,0.28) 100%),
              linear-gradient(to top, rgba(42,36,31,0.38), rgba(42,36,31,0) 45%);
  pointer-events: none; }
.hero-panel { position: relative; z-index: 2; margin: -70px auto 0; max-width: 780px;
  background: linear-gradient(160deg, var(--red) 0%, var(--red-deep) 100%); color: #FBF3E4;
  padding: 42px 48px 38px; text-align: center;
  box-shadow: 0 30px 60px -30px rgba(42, 36, 31, 0.55);
  opacity: 0; transform: translateY(26px); animation: rise 0.9s ease-out 0.25s forwards; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
.hero-panel h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); color: #fff;
  opacity: 0; animation: fadein 0.9s ease-out 0.55s forwards; }
.hero-panel .rule { width: 0; height: 1px; background: var(--tan); margin: 20px auto;
  animation: draw 0.8s ease-out 1.1s forwards; }
@keyframes draw { to { width: 64px; } }
.hero-panel p { font-size: 1.05rem; opacity: 0; animation: fadein 0.9s ease-out 1.3s forwards; }
@keyframes fadein { to { opacity: 1; } }
.hero-intro { max-width: 700px; margin: 48px auto 0; text-align: center; font-size: 1.15rem; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }
.doorways .door:nth-child(2).reveal { transition-delay: 0.12s; }
.doorways .door:nth-child(3).reveal { transition-delay: 0.24s; }

.doorways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 72px; }
.door .photo { aspect-ratio: 4 / 3; transition: outline-offset 0.3s ease; }
.door:hover .photo { outline-offset: 9px; }
.door h2 { font-size: 1.5rem; margin: 22px 0 10px; }
.door h2 a { color: var(--ink); text-decoration: none; transition: color 0.3s; }
.door h2 a:hover { color: var(--red); }
.door p { font-size: 0.98rem; }
.door .more { display: inline-block; margin-top: 12px; font-family: 'Marcellus', serif;
  text-decoration: none; border-bottom: 1px solid var(--tan); padding-bottom: 2px; }

.plaque { margin-top: 88px; border-top: 1px solid var(--leather); border-bottom: 1px solid var(--leather);
  padding: 34px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  text-align: center; position: relative; }
.plaque::before, .plaque::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--tan); }
.plaque::before { top: 4px; } .plaque::after { bottom: 4px; }
.plaque .num { font-family: 'Marcellus', serif; font-size: 2.4rem; color: var(--red); }
.plaque .lbl { font-size: 0.92rem; color: var(--leather); }

.gates { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; margin-top: 88px; }
.gates h2 { font-size: 1.9rem; margin-bottom: 16px; }
.gates .photo { aspect-ratio: 5 / 4; }

.cta { margin-top: 96px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--red) 0%, var(--red-deep) 100%);
  color: #FBF3E4; text-align: center; padding: 64px 24px; }
.cta img.motif { position: absolute; right: -50px; top: 50%; width: 380px; height: auto;
  transform: translateY(-50%); opacity: 0.1; pointer-events: none; }
.cta h2 { color: #fff; font-size: 1.8rem; margin-bottom: 10px; position: relative; }
.cta .phone { font-family: 'Marcellus', serif; font-size: 1.9rem; color: #fff;
  text-decoration: none; border-bottom: 1px solid var(--tan); position: relative; }
.cta p.note { margin-top: 14px; font-size: 0.95rem; position: relative; }

/* Inner pages */
.page-hero { position: relative; min-height: 44vh; overflow: hidden; border-bottom: 1px solid var(--frame); }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(42,36,31,0.45), rgba(42,36,31,0.05) 55%); }
.page-hero .titleblock { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 0 24px 40px; text-align: center; color: #fff; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: #fff; text-shadow: 0 2px 18px rgba(42,36,31,0.6);
  opacity: 0; transform: translateY(18px); animation: rise 0.9s ease-out 0.2s forwards; }
section.block { margin-top: 72px; }
section.block:first-of-type { margin-top: 56px; }
.block h2 { font-size: 1.8rem; margin-bottom: 16px; color: var(--ink); }
.block p + p { margin-top: 14px; }
.lede { font-size: 1.15rem; max-width: 740px; }
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 52px; align-items: center; }
.split.rev { grid-template-columns: 0.95fr 1.05fr; }
.split .photo { aspect-ratio: 4 / 3; }
.levels { margin-top: 22px; border-top: 1px solid var(--frame); }
.levels > div { padding: 20px 4px; border-bottom: 1px solid var(--frame);
  display: grid; grid-template-columns: 200px 1fr; gap: 18px; }
.levels .lname { font-family: 'Marcellus', serif; font-size: 1.15rem; color: var(--red); }
.tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 26px; }
.tri h3 { font-size: 1.2rem; margin-bottom: 8px; }
.steps { counter-reset: s; margin-top: 20px; max-width: 640px; }
.steps li { list-style: none; counter-increment: s; position: relative;
  padding: 0 0 18px 58px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px;
  font-family: 'Marcellus', serif; font-size: 1.3rem; color: var(--red);
  width: 40px; height: 40px; border: 1px solid var(--tan); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: #fff; }
.faclist { margin-top: 22px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 36px;
  list-style: none; max-width: 760px; }
.faclist li { padding: 10px 4px 10px 0; border-bottom: 1px dotted var(--frame); }
.quiet { font-style: italic; color: var(--leather); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
.contact-card { border: 1px solid var(--frame); outline: 1px solid var(--frame); outline-offset: 5px;
  padding: 34px 36px; background: #fff; }
.contact-card h2 { font-size: 1.5rem; margin-bottom: 14px; }
.contact-card p { margin-bottom: 10px; }
.hours { list-style: none; margin-top: 8px; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0;
  border-bottom: 1px dotted var(--frame); }
.hours .day { font-family: 'Marcellus', serif; }
.hours li.closed .time { color: var(--leather); font-style: italic; }
.wa { display: inline-block; margin-top: 16px; font-family: 'Marcellus', serif;
  background: var(--red); color: #fff; text-decoration: none; padding: 12px 22px; }
.wa:hover { background: var(--red-deep); }
.mapframe { border: 1px solid var(--frame); outline: 1px solid var(--frame); outline-offset: 5px; }
.mapframe iframe { display: block; width: 100%; height: 420px; border: 0; }

footer { background: var(--ink); color: #D9CFC2; padding: 56px 0 40px; font-size: 0.95rem; margin-top: 96px; }
.cta + footer { margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
footer h3 { color: #fff; font-size: 1.15rem; margin-bottom: 14px; }
.foot-logo { height: 64px; width: auto; margin-bottom: 16px; }
footer a { color: #F0E6D6; text-decoration: none; border-bottom: 1px solid rgba(201,177,140,0.4); }
footer a:hover { border-bottom-color: var(--tan); }
.ar { direction: rtl; font-family: Tahoma, 'Segoe UI', Arial, sans-serif; }
footer .hours { max-width: 300px; }
footer .hours li { border-bottom-color: rgba(201,177,140,0.3); }
footer .hours .day { color: #fff; font-family: 'Lora', serif; }
footer .hours li.closed .time { color: #A79A88; }
.foot-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(201,177,140,0.25);
  text-align: center; font-size: 0.82rem; color: #A79A88; }
footer ul.plain { list-style: none; }
footer ul.plain li { margin-bottom: 6px; }

@media (max-width: 900px) {
  .doorways, .gates, .split, .split.rev, .tri, .contact-grid, .foot-grid { grid-template-columns: 1fr; }
  .plaque { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .hero-panel { margin: -46px 16px 0; padding: 30px 24px; }
  .levels > div { grid-template-columns: 1fr; gap: 4px; }
  .split .photo { order: -1; }
}
/* ---------- Language switcher ---------- */
.navlinks a.lang { font-family: Tahoma, 'Segoe UI', sans-serif; color: var(--red);
  border: 1px solid var(--tan); padding: 3px 12px 5px; }
.navlinks a.lang::after { display: none; }
.navlinks a.lang:hover { background: var(--red); color: #fff; }

/* ---------- RTL (Arabic) ---------- */
html[dir="rtl"] body { font-family: 'Tajawal', Tahoma, sans-serif; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3,
html[dir="rtl"] .logotype span, html[dir="rtl"] .hero-panel h1,
html[dir="rtl"] .plaque .num, html[dir="rtl"] .cta h2 { font-family: 'Amiri', serif; }
html[dir="rtl"] .navlinks a, html[dir="rtl"] .door .more,
html[dir="rtl"] .hours .day, html[dir="rtl"] .lname, html[dir="rtl"] .wa,
html[dir="rtl"] .cta .phone { font-family: 'Tajawal', Tahoma, sans-serif; }
html[dir="rtl"] .navlinks a.lang, html[dir="rtl"] .logotype small { font-family: Georgia, serif; }
html[dir="rtl"] .steps li { padding: 0 58px 18px 0; }
html[dir="rtl"] .steps li::before { left: auto; right: 0; }
html[dir="rtl"] .levels > div { grid-template-columns: 220px 1fr; }
html[dir="rtl"] .faclist li { padding: 10px 0 10px 4px; }
html[dir="rtl"] body, html[dir="rtl"] .lede, html[dir="rtl"] p { line-height: 1.9; }

@media (prefers-reduced-motion: reduce) {
  .hero-stage img.drift { animation: none; }
  .hero-panel, .hero-panel h1, .hero-panel p, .page-hero h1 { animation: none; opacity: 1; transform: none; }
  .hero-panel .rule { animation: none; width: 64px; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
