/* Marketing site, checkout and host dashboard.
   Brand: deep plum + champagne gold on ivory. Uses logical properties
   (inline-start/end) so the same CSS works for Arabic (RTL) and English (LTR). */
:root {
  --plum: #2b2340; --plum-2: #3d3259; --gold: #c9a46a; --gold-2: #e7c98f;
  --ivory: #faf7f2; --paper: #ffffff; --ink: #221d2b; --muted: #6f6878; --line: #e8e1d6;
  --ok: #2f7d4f; --bad: #b3261e; --wa: #1f9d55;
  --radius: 18px; --shadow: 0 10px 30px rgba(43, 35, 64, .08);
  --font-ui: 'Tajawal', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Cormorant Garamond', Georgia, serif;
}
html[lang="ar"] { --font-display: 'Amiri', 'Tajawal', serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.site { margin: 0; font-family: var(--font-ui); color: var(--ink); background: var(--ivory); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--plum-2); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 2.5rem); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 10; }
[hidden] { display: none !important; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(250, 247, 242, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--plum); font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.logo-mark { width: 34px; height: 34px; }
.nav { display: flex; gap: 1.2rem; margin-inline-start: auto; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--gold); }
.lang-switch { border: 1px solid var(--line); border-radius: 999px; padding: .3rem .9rem; text-decoration: none; color: var(--plum); font-weight: 700; background: #fff; }
@media (max-width: 860px) { .nav { display: none; } .lang-switch { margin-inline-start: auto; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 0; border-radius: 999px; padding: .8rem 1.5rem; background: var(--plum); color: #fff; font: 700 1rem var(--font-ui); text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(43, 35, 64, .2); }
.btn.ghost { background: transparent; color: var(--plum); box-shadow: inset 0 0 0 1.5px var(--plum); }
.btn.small { padding: .45rem 1rem; font-size: .875rem; }
.btn.wide { width: 100%; }
.btn.wa { background: var(--wa); }
.btn:disabled { opacity: .6; cursor: wait; }
.link { background: none; border: 0; color: var(--plum-2); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #efe3cc 0, transparent 60%), radial-gradient(900px 500px at 0% 110%, #ece6f3 0, transparent 60%); padding: 4rem 0 3rem; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.kicker { color: var(--gold); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .8rem; margin-bottom: .6rem; }
html[lang="ar"] .kicker { letter-spacing: 0; font-size: .95rem; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); color: var(--plum); }
.lead { font-size: 1.15rem; color: #4b4456; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.5rem 0; }
.trust { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: .95rem; }
.trust li::before { content: '✦'; color: var(--gold); margin-inline-end: .4rem; }
.phone { width: min(320px, 80vw); aspect-ratio: 9 / 18.5; margin-inline: auto; border-radius: 42px; padding: 12px; background: #1d1826; box-shadow: 0 30px 60px rgba(43, 35, 64, .35), inset 0 0 0 2px #3a3348; }
.phone iframe { width: 100%; height: 100%; border: 0; border-radius: 32px; background: #fff; pointer-events: auto; }
.hero .phone iframe { pointer-events: none; }
@media (max-width: 860px) { .hero-in { grid-template-columns: 1fr; } .hero { padding-top: 2.5rem; } }

/* Sections */
.section { padding: 4.5rem 0; }
.section.alt { background: #f3eee6; }
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--plum); text-align: center; }
.section-sub { text-align: center; color: var(--muted); max-width: 40em; margin: 0 auto 2rem; }
.page-title { font-size: clamp(1.8rem, 3.4vw, 2.4rem); color: var(--plum); }
.grid { display: grid; gap: 1.5rem; }

.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .45rem 1.1rem; font: 600 .95rem var(--font-ui); cursor: pointer; color: var(--ink); }
.chip.active { background: var(--plum); color: #fff; border-color: var(--plum); }

.tgrid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tcard { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s; }
.tcard:hover { transform: translateY(-4px); }
.tcard-img { display: block; aspect-ratio: 9 / 12; overflow: hidden; background: #eee; }
.tcard-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s; }
.tcard:hover .tcard-img img { transform: scale(1.03); }
/* "3D · Interactive" badge + play button on template thumbnails */
.tcard-img { position: relative; }
.badge-3d { position: absolute; top: 10px; inset-inline-start: 10px; background: rgba(29, 24, 38, .82); color: #fff; font-size: .75rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; letter-spacing: .02em; backdrop-filter: blur(4px); }
.play-badge { position: absolute; top: 50%; left: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: #2b2340; display: grid; place-items: center; font-size: 1.3rem; padding-inline-start: 4px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); animation: play-pulse 2.4s ease-in-out infinite; transition: transform .3s; }
.tcard:hover .play-badge { transform: scale(1.12); }
@keyframes play-pulse { 0%, 100% { box-shadow: 0 8px 24px rgba(0, 0, 0, .25), 0 0 0 0 rgba(255, 255, 255, .7); } 50% { box-shadow: 0 8px 24px rgba(0, 0, 0, .25), 0 0 0 12px rgba(255, 255, 255, 0); } }
/* Customise page: replay button and gallery thumbnails */
.play-3d { display: block; margin: 0 auto .8rem; }
.gal-thumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
/* Customise page: "Our story" photos and programme rows */
.story-photo-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; }
.sched-rows { display: grid; gap: .5rem; margin: .4rem 0; }
.sched-row { display: grid; grid-template-columns: 6.5rem 1fr 1fr 2rem; gap: .4rem; align-items: center; }
.sched-row input { min-width: 0; }
.s-rm { width: 2rem; height: 2rem; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .08); cursor: pointer; font-size: 1.1rem; line-height: 1; }
@media (max-width: 520px) { .sched-row { grid-template-columns: 6rem 1fr 2rem; } .sched-row .s-note { grid-column: 2 / 3; } }
.gal-thumb { position: relative; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gal-thumb button { position: absolute; top: 2px; inset-inline-end: 2px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; font-size: .95rem; line-height: 1; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .play-badge { animation: none; } }
.tcard-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.tcard-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.tcard h3 { font-size: 1.5rem; margin: 0; }
.tcard .muted { font-size: .92rem; flex: 1; }
.tag { font-size: .75rem; background: #f3eee6; color: var(--plum); border-radius: 999px; padding: .15rem .6rem; font-weight: 700; }
.swatches { display: flex; gap: .35rem; margin: .2rem 0 .6rem; }
.swatches span { width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); }
.tcard-foot { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.price { font-weight: 800; color: var(--plum); margin-inline-end: auto; font-size: 1.1rem; }

.grad-band { background: linear-gradient(135deg, #163328, #0f2a3a); color: #f4efe4; }
.grad-band .section-title, .grad-band .section-sub { color: #f4efe4; text-align: start; margin-inline: 0; }
.grad-band .kicker { color: var(--gold-2); }
.grad-band .btn { background: var(--gold-2); color: #1b2a22; }
.grad-in { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.grad-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grad-thumbs img { border-radius: 14px; aspect-ratio: 9 / 13; object-fit: cover; object-position: top; box-shadow: 0 15px 35px rgba(0, 0, 0, .35); }
@media (max-width: 860px) { .grad-in { grid-template-columns: 1fr; } }

.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.steps li { background: #fff; border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold-2); color: var(--plum); font-weight: 800; margin-bottom: .8rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.features { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-top: 2rem; }
.feature { background: #fff; border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--line); }
.feature h3 { font-size: 1.35rem; color: var(--plum); }
.feature p { margin: 0; color: #4b4456; }

.pricing { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.plan { background: #fff; border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); border-top: 4px solid var(--gold); }
.plan-price b { font-size: 1.8rem; color: var(--plum); }
.includes { margin-top: 2rem; text-align: center; }
.includes ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; list-style: none; padding: 0; }
.includes li::before { content: '✓ '; color: var(--ok); font-weight: 800; }

.faq { background: #fff; border-radius: 14px; margin-bottom: .8rem; border: 1px solid var(--line); }
.faq summary { padding: 1rem 1.2rem; cursor: pointer; font-weight: 700; }
.faq p { padding: 0 1.2rem 1rem; margin: 0; color: #4b4456; }

/* Footer */
.footer { background: var(--plum); color: #d9d2e6; padding: 3rem 0 2rem; }
.footer .logo { color: #fff; }
.footer .muted { color: #b6acc8; }
.footer-in { display: grid; gap: 1.2rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-links a { color: var(--gold-2); text-decoration: none; }

/* Forms & customise */
.cust-grid { display: grid; grid-template-columns: 1fr 360px; gap: 2.5rem; align-items: start; }
.preview-col { position: sticky; top: 84px; }
.preview-col .phone { width: 100%; max-width: 340px; }
@media (max-width: 960px) { .cust-grid { grid-template-columns: 1fr; } .preview-col { position: static; order: -1; } .preview-col .phone { max-width: 300px; } }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 1.2rem 1.3rem .6rem; margin: 0 0 1.3rem; }
legend { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--plum); padding: 0 .5rem; }
.field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: 1rem; font-weight: 600; font-size: .95rem; }
.field.req > span::after { content: ' *'; color: var(--bad); }
.field.invalid input, .field.invalid textarea { border-color: var(--bad); background: #fff6f5; }
input, select, textarea { font: 400 1rem var(--font-ui); padding: .7rem .85rem; border: 1px solid #d9d1c4; border-radius: 12px; background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold-2); border-color: var(--gold); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--plum); }
input[type=color] { width: 56px; height: 40px; padding: 2px; }
input[type=file] { padding: .5rem; }
.seg { display: flex; gap: 1rem; font-weight: 400; }
.palettes { display: flex; gap: .7rem; }
.pal input { position: absolute; opacity: 0; }
.pal span { display: block; width: 42px; height: 42px; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); cursor: pointer; }
.pal input:checked + span { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--plum); }
.pal input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 4px; }
.accent-row { display: flex; align-items: center; gap: .8rem; font-weight: 400; }
.check { display: flex; align-items: center; gap: .6rem; margin-bottom: .9rem; }
.check b { margin-inline-start: auto; color: var(--plum); }
.slug-row { display: flex; align-items: center; gap: .3rem; }
.slug-row input { flex: 1; }
.summary { background: #fff; border-radius: var(--radius); padding: 1.2rem 1.3rem; border: 1px solid var(--line); margin-bottom: 1rem; }
.summary p, .panel .row { display: flex; justify-content: space-between; margin: .3rem 0; }
.summary .total, .panel .total { border-top: 1px dashed var(--line); padding-top: .6rem; font-size: 1.15rem; }
.form-msg { color: var(--bad); font-weight: 600; min-height: 1.4em; }

.panel { background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); margin-bottom: 1.4rem; }
.panel.success { border-top: 5px solid var(--ok); }
.pay-options { display: grid; gap: 1.2rem; }
.pay h2 { font-size: 1.5rem; }
.cliq-steps { padding-inline-start: 1.2rem; }
.cliq-steps li { margin-bottom: .4rem; }
.copyable { background: #f3eee6; padding: .1rem .5rem; border-radius: 6px; user-select: all; }
.alert { background: #fff4e5; border: 1px solid #f2c98a; color: #6a4500; padding: .8rem 1rem; border-radius: 12px; }
.linkbox { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; background: #faf7f2; border: 1px solid var(--line); border-radius: 12px; padding: .8rem; }
.linkbox span { width: 100%; font-weight: 700; font-size: .9rem; }
.linkbox code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: .9rem; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 1.5rem 0; }
.stats div { background: #fff; border-radius: 16px; padding: 1.1rem; text-align: center; box-shadow: var(--shadow); }
.stats b { display: block; font-size: 2rem; color: var(--plum); }
.stats span { color: var(--muted); font-size: .9rem; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.table-wrap { overflow-x: auto; background: #fff; border-radius: 14px; box-shadow: var(--shadow); margin-bottom: 1.5rem; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: .7rem .8rem; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.table th { background: #f7f3ec; }
.guest-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.guest-list li { display: flex; align-items: center; gap: .5rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.guest-list li span { flex: 1; }
.prose h1 { margin-bottom: 1rem; }
