/* ─── Tokens ─────────────────────────────────────────────── */
:root {
  --bg: #fbf8f4;
  --bg-2: #f3ede6;
  --ink: #1c1714;
  --ink-2: #5a4f47;
  --gold: #b8925a;
  --gold-2: #d6b98a;
  --rose: #d9a69a;
  --dark: #14110f;
  --dark-2: #1f1a17;
  --line: rgba(28, 23, 20, 0.12);
  --line-dark: rgba(255, 255, 255, 0.12);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
  --radius: 18px;
  --shadow: 0 20px 50px rgba(28, 23, 20, 0.12);
}

html[lang="ar"] {
  --serif: "Cairo", "Noto Naskh Arabic", sans-serif;
  --sans: "Cairo", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

.container { width: min(1140px, 100% - 2rem); margin-inline: auto; }
.center { text-align: center; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 2.5rem; }
h3 { font-size: 1.5rem; margin-bottom: .5rem; }
html[lang="ar"] h1 { font-weight: 600; }

.eyebrow {
  font-size: .78rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
  font-weight: 500;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .95rem; }

.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-dark { background: var(--dark); color: #f4ece2; }
.section-dark .eyebrow { color: var(--gold-2); }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: .95rem 2.1rem;
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: .04em;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: #a37f49; }
.btn-ghost { border: 1px solid rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* ─── Header ─────────────────────────────────────────────── */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  padding: 1rem 0;
  transition: background .3s ease, padding .3s ease, box-shadow .3s ease;
  color: #fff;
}
.site-header.scrolled {
  background: rgba(20, 17, 15, .92);
  backdrop-filter: blur(12px);
  padding: .6rem 0;
  box-shadow: 0 6px 30px rgba(0,0,0,.25);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--serif); font-size: 1.35rem; }
.brand-phi {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--gold-2); color: var(--gold-2);
  font-size: 1.3rem; font-style: normal;
}
.brand-text em { font-style: italic; color: var(--gold-2); }
.nav-links { display: flex; align-items: center; gap: 1.8rem; list-style: none; }
.nav-links a { font-size: .92rem; letter-spacing: .08em; text-transform: uppercase; opacity: .9; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; color: var(--gold-2); }
html[lang="ar"] .nav-links a { letter-spacing: 0; font-size: 1rem; }
.lang-toggle {
  border: 1px solid var(--gold-2); color: var(--gold-2);
  padding: .3rem .9rem; border-radius: 999px; font-size: .85rem;
  transition: background .2s, color .2s;
}
.lang-toggle:hover { background: var(--gold-2); color: var(--dark); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: .5rem; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh;
  display: grid; place-items: center;
  color: #fff; text-align: center; overflow: hidden;
  padding: 7rem 0 5rem;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-video { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(20,17,15,.35) 0%, rgba(20,17,15,.75) 80%),
    linear-gradient(to bottom, rgba(20,17,15,.55), rgba(20,17,15,.3) 40%, rgba(20,17,15,.85));
}
.hero-content { position: relative; z-index: 1; max-width: 820px; }
.hero .eyebrow { color: var(--gold-2); }
.hero h1 { margin-bottom: 1.25rem; text-shadow: 0 4px 30px rgba(0,0,0,.4); }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 600px; margin: 0 auto 2.2rem; opacity: .92; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.scroll-hint {
  position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%); z-index: 1;
  width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.5); border-radius: 14px;
}
.scroll-hint span {
  position: absolute; top: 8px; left: 50%; width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 2px; background: #fff; animation: drop 1.8s infinite;
}
@keyframes drop { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ─── Services ───────────────────────────────────────────── */
.services-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem 2rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold-2); }
.service-icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #fff; font-size: 1.5rem; margin-bottom: 1.2rem;
  font-family: var(--serif);
}
.service p { color: var(--ink-2); }

/* ─── Gallery ────────────────────────────────────────────── */
.filter-bar { display: flex; justify-content: center; gap: .6rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.filter {
  padding: .5rem 1.4rem; border-radius: 999px;
  border: 1px solid var(--line-dark); color: #d9cfc3;
  font-size: .85rem; letter-spacing: .1em; text-transform: uppercase;
  transition: all .2s;
}
html[lang="ar"] .filter { letter-spacing: 0; font-size: 1rem; }
.filter:hover, .filter.active { background: var(--gold); border-color: var(--gold); color: #fff; }
.gallery-grid {
  display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.gallery-item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 1; cursor: zoom-in; background: var(--dark-2);
  animation: fadeIn .4s ease both;
}
.gallery-item.hidden { display: none; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: 1rem 1.2rem .9rem;
  background: linear-gradient(to top, rgba(0,0,0,.7), transparent);
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: #fff;
}
html[lang="ar"] .gallery-item figcaption { letter-spacing: 0; font-size: .95rem; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10, 8, 7, .94);
  display: grid; place-items: center;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(94vw, 1100px); max-height: 88vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox-close {
  position: absolute; top: 1.2rem; inset-inline-end: 1.4rem;
  color: #fff; font-size: 2.2rem; line-height: 1; opacity: .8;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  color: #fff; font-size: 2.6rem; padding: 1rem; opacity: .7;
}
.lightbox-nav:hover { opacity: 1; }
.lightbox-prev { left: .5rem; }
.lightbox-next { right: .5rem; }

/* ─── Videos ─────────────────────────────────────────────── */
.video-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: 1000px; margin-inline: auto;
}
.video-card {
  border-radius: var(--radius); overflow: hidden; background: var(--dark);
  aspect-ratio: 9 / 16; box-shadow: var(--shadow);
}
.video-card video { width: 100%; height: 100%; object-fit: cover; }
.more-link { margin-top: 2.5rem; }
.more-link a {
  color: var(--gold); font-weight: 500; letter-spacing: .06em;
  border-bottom: 1px solid var(--gold-2); padding-bottom: 2px;
}

/* ─── About ──────────────────────────────────────────────── */
.about {
  display: grid; gap: 3.5rem; align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.about-badge {
  position: absolute; bottom: -1.2rem; inset-inline-end: -1rem;
  background: var(--gold); color: #fff; border-radius: 14px;
  padding: 1rem 1.3rem; display: flex; align-items: center; gap: .8rem;
  font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; line-height: 1.3;
  box-shadow: 0 15px 40px rgba(0,0,0,.4);
}
html[lang="ar"] .about-badge { letter-spacing: 0; font-size: 1rem; }
.badge-phi { font-family: var(--serif); font-size: 2rem; }
.about-text h2 { margin-bottom: 1.2rem; }
.about-text p { color: #d9cfc3; margin-bottom: 1rem; }
.stats {
  list-style: none; display: flex; gap: 2.2rem; flex-wrap: wrap;
  margin-top: 2rem; padding-top: 1.8rem; border-top: 1px solid var(--line-dark);
}
.stats li { display: flex; flex-direction: column; }
.stats strong { font-family: var(--serif); font-size: 2rem; color: var(--gold-2); line-height: 1; }
.stats span { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: #a89c8e; margin-top: .3rem; }
html[lang="ar"] .stats span { letter-spacing: 0; font-size: .95rem; }

/* ─── Certificates ───────────────────────────────────────── */
.section-alt { background: var(--bg-2); }
.section-intro { max-width: 620px; margin: -1.5rem auto 2.5rem; color: var(--ink-2); }
.cert-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.cert-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: zoom-in;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.cert-item:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold-2); }
.cert-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-2); }
.cert-item figcaption { padding: 1.1rem 1.3rem 1.3rem; display: flex; flex-direction: column; gap: .15rem; }
.cert-item strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; }
.cert-item span { font-size: .85rem; color: var(--ink-2); letter-spacing: .04em; }
html[lang="ar"] .cert-item span { letter-spacing: 0; font-size: .95rem; }

/* ─── Contact ────────────────────────────────────────────── */
.contact-grid {
  display: grid; gap: 1.3rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.4rem; text-align: center;
  display: flex; flex-direction: column; gap: .3rem; align-items: center;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--gold-2); }
.contact-icon { font-size: 1.8rem; margin-bottom: .4rem; }
.contact-card strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; }
.contact-card span:last-child { color: var(--ink-2); font-size: .95rem; }

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer { background: var(--dark); color: #a89c8e; padding: 2rem 0; font-size: .85rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer a { color: var(--gold-2); }

/* ─── WhatsApp FAB ───────────────────────────────────────── */
.whatsapp-fab {
  position: fixed; bottom: 1.4rem; inset-inline-end: 1.4rem; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, .45);
  transition: transform .2s;
}
.whatsapp-fab:hover { transform: scale(1.08); }

/* ─── Reveal on scroll ───────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 0; inset-inline-end: 0; height: 100vh; width: min(320px, 85vw);
    flex-direction: column; justify-content: center; gap: 2rem;
    background: var(--dark); padding: 2rem;
    transform: translateX(100%); transition: transform .35s ease;
    box-shadow: -20px 0 60px rgba(0,0,0,.5);
  }
  html[dir="rtl"] .nav-links { transform: translateX(-100%); }
  .nav-links.open { transform: translateX(0) !important; }
  .nav-links a { font-size: 1.1rem; }
  .nav-toggle { position: relative; z-index: 61; }
  .about-badge { inset-inline-end: .5rem; }
}
@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
  .footer-inner { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
