:root {
  --espresso: #2a1d16;
  --brown: #5a3d2b;
  --caramel: #9c7656;
  --sand: #d9c6ae;
  --cream: #f4ede3;
  --white: #fbf8f3;
  --ink: #2a1d16;
  --muted: #7a6657;
  --line: rgba(90, 61, 43, 0.18);
  --font-display: 'Cormorant Garamond', 'Amiri', serif;
  --font-body: 'Jost', 'Tajawal', system-ui, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1280px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 76px;
}
:root[lang='ar'] {
  --font-display: 'Amiri', 'Cormorant Garamond', serif;
  --font-body: 'Tajawal', 'Jost', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; margin: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--caramel); outline-offset: 3px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  color: var(--cream);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.scrolled, .site-header.menu-open, body:not([data-page='home']):not([data-page='package']) .site-header {
  background: rgba(251, 248, 243, 0.94);
  backdrop-filter: blur(10px);
  color: var(--espresso);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  max-width: var(--max); height: 100%; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand { font-family: var(--font-display); font-size: 1.55rem; letter-spacing: 0.04em; white-space: nowrap; }
.nav { display: flex; gap: clamp(1rem, 2.6vw, 2.4rem); font-size: 0.95rem; letter-spacing: 0.06em; }
.nav a { position: relative; padding: 0.3rem 0; opacity: 0.85; transition: opacity 0.3s; }
.nav a::after {
  content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transition: transform 0.4s var(--ease);
}
.nav a:hover, .nav a[aria-current] { opacity: 1; }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.lang-btn { font-size: 0.9rem; border: 1px solid currentColor; padding: 0.2rem 0.9rem; border-radius: 999px; opacity: 0.85; transition: opacity 0.3s, background 0.3s, color 0.3s; }
.lang-btn:hover { opacity: 1; }
.menu-btn { display: none; width: 40px; height: 40px; position: relative; }
.menu-btn span { position: absolute; inset-inline: 8px; height: 1.5px; background: currentColor; transition: transform 0.35s var(--ease), top 0.35s var(--ease); }
.menu-btn span:first-child { top: 15px; }
.menu-btn span:last-child { top: 24px; }
.menu-open .menu-btn span:first-child { top: 20px; transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { top: 20px; transform: rotate(-45deg); }

@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0;
    background: var(--white); color: var(--espresso); padding: 0.5rem var(--gutter) 1.5rem;
    box-shadow: 0 20px 30px -20px rgba(42, 29, 22, 0.4);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 0.9rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a::after { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; background: var(--espresso); color: var(--cream); overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 8s linear; }
.slide.active img { transform: scale(1); }
.slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42, 29, 22, 0.35), rgba(42, 29, 22, 0.05) 40%, rgba(42, 29, 22, 0.55)); }
.hero-brand {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; z-index: 2; pointer-events: none; padding: 0 var(--gutter);
}
.hero-brand h1 { font-size: clamp(2.8rem, 9vw, 7rem); font-weight: 300; letter-spacing: 0.08em; text-shadow: 0 2px 40px rgba(0, 0, 0, 0.25); }
:root[lang='ar'] .hero-brand h1 { letter-spacing: 0; font-weight: 400; }
.slide-text { position: absolute; z-index: 2; inset-inline-start: var(--gutter); bottom: 22vh; max-width: 30rem; }
.slide-sub { font-size: 0.85rem; letter-spacing: 0.25em; text-transform: uppercase; opacity: 0.85; margin-bottom: 0.4rem; }
:root[lang='ar'] .slide-sub { letter-spacing: 0.05em; font-size: 1rem; text-transform: none; }
.slide-title { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.2rem); margin: 0; }
.slide-text, .slide.active .slide-text { opacity: 0; transform: translateY(14px); transition: opacity 1s 0.6s, transform 1s 0.6s var(--ease); }
.slide.active .slide-text { opacity: 1; transform: none; }
.hero-arrow {
  position: absolute; top: 50%; z-index: 3; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%;
  border: 1px solid rgba(244, 237, 227, 0.5); display: grid; place-items: center; transition: background 0.3s, border-color 0.3s;
}
.hero-arrow:hover { background: rgba(244, 237, 227, 0.15); border-color: var(--cream); }
.hero-arrow svg, .lb-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.hero-arrow.left { left: var(--gutter); }
.hero-arrow.right { right: var(--gutter); }
.hero-dots { position: absolute; z-index: 3; bottom: 2.2rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.7rem; }
.hero-dots button { width: 26px; height: 2px; background: rgba(244, 237, 227, 0.4); transition: background 0.3s, width 0.3s; }
.hero-dots button.active { background: var(--cream); width: 44px; }
.hero-scroll { position: absolute; z-index: 3; bottom: 4rem; left: 50%; transform: translateX(-50%); font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.7; }
:root[lang='ar'] .hero-scroll { letter-spacing: 0.05em; font-size: 0.9rem; text-transform: none; }
@media (max-width: 820px) {
  .hero-arrow { width: 42px; height: 42px; margin-top: -21px; }
  .slide-text { bottom: 18vh; }
}

/* ---------- sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(4rem, 9vw, 8rem) var(--gutter); }
.section.narrow { max-width: 960px; }
.page-top { padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 6rem)); }
.section-head { text-align: center; max-width: 40rem; margin: 0 auto clamp(2.5rem, 6vw, 4.5rem); }
.section-head h2, .about-text h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 300; }
.rule { display: block; width: 48px; height: 1px; background: var(--caramel); margin: 1.2rem auto; }
.section-head p { color: var(--muted); margin: 0; }
.small-title { font-size: 1.6rem; margin-bottom: 1rem; }
.lead { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.6; color: var(--brown); }

/* ---------- package cards ---------- */
.package-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(0.8rem, 1.6vw, 1.5rem); }
.package-grid.three { grid-template-columns: repeat(3, 1fr); }
.package-card { display: block; position: relative; }
.img-wrap { overflow: hidden; aspect-ratio: 4 / 5; background: var(--cream); }
.package-card.compact .img-wrap { aspect-ratio: 3 / 2; }
.img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.package-card:hover .img-wrap img { transform: scale(1.06); }
.card-caption { padding: 1.1rem 0 0; }
.card-index { display: block; font-size: 0.8rem; color: var(--caramel); letter-spacing: 0.2em; }
.card-caption h3 { font-size: 1.6rem; margin: 0.15rem 0 0.2rem; }
.card-caption p { color: var(--muted); font-size: 0.95rem; margin: 0 0 0.6rem; }
.card-link { font-size: 0.85rem; letter-spacing: 0.1em; border-bottom: 1px solid var(--caramel); padding-bottom: 2px; transition: color 0.3s; }
.package-card:hover .card-link { color: var(--caramel); }
@media (max-width: 1000px) { .package-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .package-grid.three { grid-template-columns: 1fr; }
  .card-caption h3 { font-size: 1.3rem; }
  .card-caption p { font-size: 0.85rem; }
}

/* ---------- buttons / CTA ---------- */
.btn {
  display: inline-block; padding: 0.85rem 2.2rem; background: var(--espresso); color: var(--cream);
  border: 1px solid var(--espresso); letter-spacing: 0.08em; font-size: 0.95rem;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.btn:hover { background: var(--brown); border-color: var(--brown); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: var(--espresso); color: var(--cream); border-color: var(--espresso); }
.cta, .inquire { background: var(--cream); text-align: center; padding: clamp(4rem, 8vw, 7rem) var(--gutter); }
.cta h2, .inquire h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 300; max-width: 36rem; margin: 0 auto 1.8rem; }
.inquire h2 { margin-bottom: 0.6rem; }
.inquire p { color: var(--muted); }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.cta .cta-actions { margin-bottom: 0; }
.inquire .cta-actions .btn-ghost:hover { color: var(--cream); }

/* ---------- contact list ---------- */
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { border-bottom: 1px solid var(--line); }
.contact-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.9rem 0; transition: color 0.3s, padding 0.3s var(--ease); }
.contact-list a:hover { color: var(--caramel); padding-inline: 0.5rem; }
.cl-label { font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
:root[lang='ar'] .cl-label { letter-spacing: 0; font-size: 0.95rem; text-transform: none; }
.inquire .contact-list { max-width: 30rem; margin: 0 auto; text-align: start; }

/* ---------- package page ---------- */
.pkg-hero { position: relative; height: 72vh; min-height: 420px; color: var(--cream); overflow: hidden; background: var(--espresso); }
.pkg-hero img { width: 100%; height: 100%; object-fit: cover; }
.pkg-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42, 29, 22, 0.4), rgba(42, 29, 22, 0.05) 40%, rgba(42, 29, 22, 0.7)); }
.pkg-hero-text { position: absolute; z-index: 2; inset-inline: var(--gutter); bottom: clamp(2rem, 6vw, 4rem); max-width: var(--max); margin: 0 auto; }
.pkg-hero-text h1 { font-size: clamp(2.4rem, 7vw, 5rem); font-weight: 300; }
.pkg-hero-text p { opacity: 0.85; margin: 0.4rem 0 0; }
.crumb { display: inline-block; font-size: 0.85rem; letter-spacing: 0.1em; opacity: 0.85; margin-bottom: 1rem; border-bottom: 1px solid rgba(244, 237, 227, 0.5); }
.pkg-intro { text-align: center; margin-bottom: 3rem; }
.pkg-details { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 6vw, 5rem); border-top: 1px solid var(--line); padding-top: 3rem; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding: 0.55rem 0; padding-inline-start: 1.6rem; border-bottom: 1px solid var(--line); }
.check-list li::before { content: ''; position: absolute; inset-inline-start: 0; top: 1.15rem; width: 8px; height: 8px; border: 1px solid var(--caramel); transform: rotate(45deg); }
@media (max-width: 760px) { .pkg-details { grid-template-columns: 1fr; } }

/* ---------- masonry gallery ---------- */
.masonry { columns: 3; column-gap: clamp(0.6rem, 1.4vw, 1.2rem); }
.shot { display: block; width: 100%; margin: 0 0 clamp(0.6rem, 1.4vw, 1.2rem); break-inside: avoid; overflow: hidden; background: var(--cream); cursor: zoom-in; }
.shot img { width: 100%; height: auto; aspect-ratio: auto 4 / 5; transition: transform 1s var(--ease), opacity 0.4s; } /* reserves space before a lazy image loads, then uses its real ratio */
.shot:hover img { transform: scale(1.04); opacity: 0.92; }
@media (max-width: 900px) { .masonry { columns: 2; } }

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.8rem; margin-bottom: 2.5rem; }
.filters button { padding: 0.3rem 0; color: var(--muted); border-bottom: 1px solid transparent; letter-spacing: 0.05em; transition: color 0.3s, border-color 0.3s; }
.filters button:hover { color: var(--espresso); }
.filters button.active { color: var(--espresso); border-color: var(--caramel); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(28, 19, 14, 0.95); display: grid; place-items: center; animation: fade 0.3s; color: var(--cream); }
.lightbox img { max-width: min(92vw, 1400px); max-height: 88vh; width: auto; height: auto; object-fit: contain; }
.lb-close { position: absolute; top: 1rem; right: 1.2rem; font-size: 2.4rem; line-height: 1; width: 48px; height: 48px; opacity: 0.8; }
.lb-close:hover { opacity: 1; }
.lb-nav { position: absolute; top: 50%; margin-top: -24px; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(244, 237, 227, 0.4); border-radius: 50%; }
.lb-nav:hover { background: rgba(244, 237, 227, 0.12); }
.lb-left { left: 1rem; }
.lb-right { right: 1rem; }
@keyframes fade { from { opacity: 0; } }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.about-img { overflow: hidden; }
.about-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-text .rule { margin-inline: 0; }
.stats { display: flex; gap: clamp(1.5rem, 4vw, 3rem); margin: 2rem 0; padding: 1.5rem 0; border-block: 1px solid var(--line); }
.stats div { flex: 1; }
.stats dt { font-family: var(--font-display); font-size: 2.4rem; color: var(--brown); line-height: 1.1; }
.stats dd { margin: 0.3rem 0 0; font-size: 0.85rem; color: var(--muted); }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact-form { display: grid; gap: 1.2rem; }
.contact-form label { display: grid; gap: 0.35rem; font-size: 0.85rem; letter-spacing: 0.08em; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-size: 1rem; color: var(--ink); letter-spacing: 0; background: transparent;
  border: 0; border-bottom: 1px solid var(--sand); padding: 0.6rem 0; border-radius: 0; transition: border-color 0.3s;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 0; border-color: var(--brown); }
.contact-form .btn { justify-self: start; margin-top: 0.5rem; }
.form-hint { font-size: 0.85rem; color: var(--muted); margin: 0; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.empty { text-align: center; }

/* ---------- footer ---------- */
.site-footer { background: var(--espresso); color: var(--sand); padding: clamp(3rem, 6vw, 5rem) var(--gutter) 2rem; }
.footer-inner { max-width: 560px; margin: 0 auto; text-align: center; }
.footer-inner .brand { color: var(--cream); font-size: 1.9rem; }
.footer-tag { opacity: 0.7; margin: 0.4rem 0 2rem; }
.site-footer .contact-list { text-align: start; }
.site-footer .contact-list li { border-color: rgba(217, 198, 174, 0.2); }
.site-footer .cl-label { color: rgba(217, 198, 174, 0.65); }
.copyright { margin: 2.5rem 0 0; font-size: 0.8rem; opacity: 0.55; }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .slide img { transform: none; }
}

/* ---------- package samples ---------- */
.samples { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.8rem, 2vw, 1.8rem); }
.sample { margin: 0; }
.sample .shot { margin: 0; aspect-ratio: 4 / 5; }
.sample .shot img { height: 100%; object-fit: cover; }
.sample figcaption { padding-top: 0.8rem; font-family: var(--font-display); font-size: 1.2rem; color: var(--brown); }
@media (max-width: 700px) { .samples { grid-template-columns: 1fr 1fr; } .sample:first-child { grid-column: 1 / -1; } .sample:first-child .shot { aspect-ratio: 4 / 3; } }

/* ---------- touch comfort ---------- */
.hero-dots button { position: relative; }
.hero-dots button::after { content: ''; position: absolute; inset: -16px -4px; }
@media (max-width: 820px), (pointer: coarse) {
  .lang-btn { min-height: 40px; padding-inline: 1rem; }
  .menu-btn { width: 44px; height: 44px; }
  .menu-btn span:first-child { top: 17px; }
  .menu-btn span:last-child { top: 26px; }
  .menu-open .menu-btn span:first-child, .menu-open .menu-btn span:last-child { top: 22px; }
  .hero-scroll { padding: 0.7rem 1rem; bottom: 3.4rem; }
  .crumb { padding: 0.6rem 0; margin-bottom: 0.4rem; }
  .filters { gap: 0 0.6rem; }
  .filters button { padding: 0.7rem 0.7rem; min-width: 44px; }
  .btn { min-height: 44px; }
}
