/* ==========================================================
   Luxury layer — loaded after styles.css
   Editorial luxury: deep maroon/espresso + champagne gold,
   serif display type, double-bezel cards, spring motion.
   ========================================================== */

:root {
  --ease-lux: cubic-bezier(0.32, 0.72, 0, 1);
  --gold-soft: #e6cf9c;
  --gold-deep: #a67c3d;
  --hair: rgba(200,161,90,0.22);
  --paper: #fbf7f1;
}
[data-theme="dark"] { --paper: #120709; }

body {
  font-family: "IBM Plex Sans Arabic", "Cairo", sans-serif;
  font-weight: 400;
  letter-spacing: 0.1px;
}

/* Film grain (fixed, non-interactive) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Display type */
.hero h1, .section-head h2, .about-text h2, .value-card h3, .service-card h3,
.hero-badges div strong, .brand-text strong, form.contact-form h3 {
  font-family: "Amiri", "Reem Kufi", serif;
  font-weight: 700;
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: 1.3; letter-spacing: 0; }
.hero h1 span {
  background: linear-gradient(100deg, var(--gold-soft), var(--gold) 45%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-head h2, .about-text h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.35; }

/* ---------- Floating island nav ---------- */
header.site-header {
  top: 16px;
  margin: 16px auto 0;
  width: min(1180px, calc(100% - 32px));
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(251,247,241,0.72);
  box-shadow: 0 20px 50px -20px rgba(36,6,9,0.25), inset 0 1px 0 rgba(255,255,255,0.6);
}
[data-theme="dark"] header.site-header {
  background: rgba(18,7,9,0.7);
  border-color: var(--hair);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
}
.nav-wrap { padding: 8px 10px 8px 14px; }
.brand img { width: 44px; height: 44px; }
.nav-cta, .btn { border-radius: 999px; }
.nav-cta { padding: 10px 24px; }

/* Header floats over hero */
.hero { margin-top: -86px; padding-top: 140px; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100dvh;
  background:
    radial-gradient(ellipse 60% 50% at 80% 10%, rgba(200,161,90,0.22), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(115,24,31,0.5), transparent 60%),
    linear-gradient(180deg, rgba(14,3,5,0.75) 0%, rgba(36,6,9,0.88) 60%, #120709 100%),
    url("assets/hero.webp") center/cover;
}
.hero::before { background-image: none; }
.hero-inner { max-width: 820px; }
.hero p { font-size: 1.15rem; line-height: 2; color: rgba(255,245,223,0.82); }

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  padding: 7px 16px;
  background: rgba(255,255,255,0.04);
  border-color: rgba(200,161,90,0.35);
  backdrop-filter: none;
}

/* Island buttons with nested arrow */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 8px 8px 8px;
  padding-inline-start: 28px;
  transition: transform .7s var(--ease-lux), box-shadow .7s var(--ease-lux), background .5s var(--ease-lux);
}
.btn .btn-ico {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(36,6,9,0.12);
  transition: transform .7s var(--ease-lux);
}
.btn-outline .btn-ico { background: rgba(200,161,90,0.15); color: var(--gold); }
.btn .btn-ico svg { width: 15px; height: 15px; }
.btn:hover .btn-ico { transform: translate(-3px, -2px) scale(1.06); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }
.btn-outline { background: rgba(255,255,255,0.03); }
form.contact-form .btn-primary { justify-content: space-between; }

/* Stats as a glass rail */
.hero-badges {
  gap: 0;
  margin-top: 72px;
  width: fit-content;
  border: 1px solid rgba(200,161,90,0.22);
  border-radius: 28px;
  padding: 6px;
  background: rgba(255,255,255,0.03);
}
.hero-badges div {
  padding: 18px 34px;
  border-radius: 22px;
}
.hero-badges div + div { border-inline-start: 1px solid rgba(200,161,90,0.18); }
.hero-badges div strong { font-size: 2.6rem; line-height: 1.2; }

/* ---------- Spatial rhythm ---------- */
section { padding: 120px 0; }
.section-head { margin-bottom: 64px; }
.section-tag {
  -webkit-text-fill-color: currentColor;
  background: rgba(200,161,90,0.1);
  color: var(--gold-deep);
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  font-weight: 600;
}
[data-theme="dark"] .section-tag { color: var(--gold); }
.section-tag::before, .section-tag::after { display: none; }

/* ---------- Double-bezel cards ---------- */
.value-card, .service-card, .contact-card, form.contact-form, .faq-item,
.client-strip span, .coverage-list li, .license-box, .about-visual {
  border-radius: 28px;
  border: 1px solid var(--hair);
  box-shadow:
    0 0 0 6px rgba(200,161,90,0.05),
    0 0 0 7px rgba(200,161,90,0.12),
    0 30px 60px -30px rgba(36,6,9,0.25),
    inset 0 1px 0 rgba(255,255,255,0.5);
  transition: transform .8s var(--ease-lux), box-shadow .8s var(--ease-lux), border-color .6s var(--ease-lux), background .6s var(--ease-lux);
}
[data-theme="dark"] .value-card, [data-theme="dark"] .service-card, [data-theme="dark"] .contact-card,
[data-theme="dark"] form.contact-form, [data-theme="dark"] .faq-item, [data-theme="dark"] .client-strip span,
[data-theme="dark"] .coverage-list li, [data-theme="dark"] .license-box, [data-theme="dark"] .about-visual,
[data-theme="dark"] .vision-dark .value-card, [data-theme="dark"] .clients-dark .client-strip span,
[data-theme="dark"] .faq-dark .faq-item {
  border: 1px solid var(--hair);
  box-shadow:
    0 0 0 6px rgba(200,161,90,0.03),
    0 0 0 7px rgba(200,161,90,0.1),
    0 30px 60px -30px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.04);
}
.value-card:hover, .service-card:hover, .coverage-list li:hover, .client-strip span:hover {
  transform: translateY(-6px);
  border-color: rgba(200,161,90,0.5);
}
.value-card { border-top: 1px solid var(--hair); padding: 40px 32px; }
.client-strip span { border-top: 1px solid var(--hair); border-radius: 20px; }
.coverage-list li { border-radius: 22px; }
.coverage-list { gap: 20px; }
.client-strip { gap: 20px; }
.value-grid { gap: 28px; }
.faq-item { border-radius: 22px; padding: 22px 28px; }
.license-box { border-inline-start: 1px solid var(--hair); padding: 24px 28px; line-height: 2; }
.contact-item .icon { border-radius: 14px; background: linear-gradient(140deg, var(--maroon-700), var(--maroon-950)); color: var(--gold-soft); }
.branch-pill { border-radius: 999px; padding: 12px 22px; }
.form-row input, .form-row textarea { border-radius: 14px; padding: 14px 16px; transition: border-color .5s var(--ease-lux), box-shadow .5s var(--ease-lux); }
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(200,161,90,0.15); }

/* ---------- Asymmetric bento services ---------- */
@media (min-width: 900px) {
  .service-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 28px;
  }
  .service-card { grid-column: span 4; display: flex; flex-direction: column; }
  .service-card:nth-child(1) { grid-column: span 8; grid-row: span 2; }
  .service-card:nth-child(1) .photo { height: 100%; min-height: 360px; flex: 1; }
  .service-card:nth-child(1) h3 { font-size: 1.8rem; }
  .service-card:nth-child(6) { grid-column: span 8; flex-direction: row; }
  .service-card:nth-child(6) .photo { width: 45%; height: auto; }
}
.service-card { overflow: hidden; }
.service-card .photo { height: 200px; transition: transform 1.2s var(--ease-lux); filter: saturate(0.75) contrast(1.05); }
.service-card:hover .photo { transform: scale(1.05); }
.service-card .body { padding: 30px 32px 34px; }
.service-card .num { font-family: "Amiri", serif; font-size: 1.1rem; letter-spacing: 0.1em; }

/* About visual */
.about-visual { min-height: 480px; }
.about-grid { gap: 80px; }

/* ---------- Motion: heavy blur fade-up with stagger ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(8px);
  transition: opacity 1s var(--ease-lux), transform 1s var(--ease-lux), filter 1s var(--ease-lux);
  transition-delay: var(--d, 0ms);
}
.reveal.in-view { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { filter: none !important; }
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  header.site-header { border-radius: 28px; top: 10px; width: calc(100% - 24px); margin-top: 10px; }
  [data-theme="dark"] header.site-header { background: rgba(18,7,9,0.92); }
  .hero { margin-top: -120px; padding-top: 170px; }
  section { padding: 80px 0; }
  .hero-badges { width: 100%; }
  .hero-badges div { flex: 1; padding: 14px 12px; text-align: center; }
  .hero-badges div strong { font-size: 1.9rem; }
  .about-grid { gap: 48px; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .hero-badges div + div { border-inline-start: none; }
}
