/* ==========================================================
   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", 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 { 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; }
}

/* ---------- Brand consistency: one type system, line icons ---------- */
body, .brand-text span, nav.main-nav a, .btn, input, textarea, button { font-family: "IBM Plex Sans Arabic", sans-serif; }
.value-card .icon { font-size: 0; color: var(--gold-soft); }
.value-card .icon svg, .contact-item .icon svg { position: relative; z-index: 1; }
footer ul li { display: flex; align-items: center; gap: 10px; }
footer ul li[dir="ltr"] { justify-content: flex-end; }
footer .fi { color: var(--gold); flex-shrink: 0; }

/* Contact form helper text */
.form-note { font-size: 0.82rem; color: var(--muted); margin: 4px 0 10px; }
.form-status { font-size: 0.88rem; min-height: 1.4em; margin-bottom: 8px; }
.form-status.is-ok { color: #3f8f5a; }
.form-status.is-error { color: #b3322f; }
[data-theme="dark"] .form-note { color: rgba(255,255,255,0.6); }
[data-theme="dark"] .form-status.is-ok { color: #7fd39b; }
[data-theme="dark"] .form-status.is-error { color: #ff8a80; }

/* Contact card in dark mode */
[data-theme="dark"] .contact-card { background: var(--maroon-950); }
[data-theme="dark"] .contact-item strong { color: #fff; }
[data-theme="dark"] .contact-item span, [data-theme="dark"] .contact-item a { color: rgba(255,255,255,0.7); }
[data-theme="dark"] .branch-pill { background: rgba(255,255,255,0.05); color: #fff5df; }

/* ---------- FAQ toggle alignment (all sizes) ---------- */
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-item summary::after {
  float: none; flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--hair); color: var(--gold); font-weight: 400;
}
footer ul li[dir="ltr"] { flex-direction: row-reverse; justify-content: flex-end; }

/* ---------- Mobile refinements ---------- */
@media (max-width: 600px) {
  section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }
  .section-head h2, .about-text h2 { font-size: 1.85rem; }
  .hero { min-height: auto; padding-bottom: 56px; }
  .hero h1 { font-size: 2.3rem; }
  .hero p { font-size: 1rem; line-height: 1.9; }
  .btn-row { flex-direction: column; gap: 12px; }
  .btn-row .btn { width: 100%; justify-content: space-between; }
  .hero-badges { margin-top: 40px; }
  .hero-badges div { padding: 12px 6px; }
  .hero-badges div strong { font-size: 1.7rem; }
  .hero-badges div span { font-size: 0.72rem; line-height: 1.5; display: block; }
  .value-card { padding: 28px 22px; }
  .value-grid, .service-grid { gap: 22px; }
  .service-card .photo { height: 180px; }
  .service-card .body { padding: 22px 22px 26px; }
  .coverage-list, .client-strip { grid-template-columns: 1fr 1fr; gap: 14px; }
  .coverage-list li { padding: 20px 10px; }
  .coverage-list li:last-child:nth-child(odd), .client-strip span:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .client-strip span { padding: 16px 10px; font-size: 0.85rem; }
  .faq-item { padding: 18px 20px; }
  .contact-card, form.contact-form { padding: 26px 22px; }
  .about-visual { min-height: 320px; }
  .license-box { padding: 20px; font-size: 0.86rem; }
  .footer-bottom { font-size: 0.75rem; }
}

/* ---------- Light-mode contrast (WCAG AA) ---------- */
:root:not([data-theme="dark"]) .section-tag { color: #6e5020; background: rgba(200,161,90,0.14); }
:root:not([data-theme="dark"]) .service-card .num { color: #7d5a22; }
:root:not([data-theme="dark"]) .form-note { color: #5e4a4d; }

/* ==========================================================
   Mobile tour — hide, tighten, resize, compress spacing
   ========================================================== */
@media (max-width: 600px) {
  /* Spacing between sections */
  section { padding: 48px 0; }
  .section-head { margin-bottom: 26px; }
  .section-head h2, .about-text h2 { font-size: 1.6rem; margin-bottom: 8px; }
  .section-head p { font-size: 0.92rem; line-height: 1.8; }
  .section-tag { margin-bottom: 10px; }

  /* Header + hero */
  header.site-header { margin-top: 8px; top: 8px; }
  .brand img { width: 46px; height: 46px; }
  .brand-text strong { font-size: 1.15rem; }
  .hero { margin-top: -110px; padding-top: 130px; padding-bottom: 40px; }
  .eyebrow { font-size: 0.68rem; padding: 6px 12px; margin-bottom: 16px; }
  .hero h1 { font-size: 2rem; margin-bottom: 12px; }
  .hero p { font-size: 0.95rem; margin-bottom: 22px; }
  .btn { padding: 6px; padding-inline-start: 22px; font-size: 0.9rem; }
  .btn .btn-ico { width: 32px; height: 32px; }
  .hero-badges { margin-top: 28px; border-radius: 20px; }
  .hero-badges div { border-radius: 16px; padding: 10px 4px; }
  .hero-badges div strong { font-size: 1.5rem; }

  /* About: hide the third paragraph, shorter photo */
  .about-text p { font-size: 0.93rem; margin-bottom: 12px; }
  .about-text p:nth-of-type(3) { display: none; }
  .about-grid { gap: 28px; }
  .about-visual { min-height: 200px; border-radius: 22px; }
  .about-visual .logo-overlay { width: 64px; height: 64px; bottom: 14px; right: 14px; }
  .license-box { margin-top: 16px; border-radius: 20px; padding: 16px 18px; font-size: 0.84rem; line-height: 1.9; }

  /* Values: icon beside title, compact */
  .value-grid { gap: 14px; }
  .value-card {
    display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: center;
    padding: 18px; border-radius: 20px;
  }
  .value-card .icon { width: 44px; height: 44px; margin: 0; grid-row: span 1; }
  .value-card h3 { margin: 0; font-size: 1.05rem; }
  .value-card p { grid-column: 1 / -1; margin-top: 10px; font-size: 0.88rem; line-height: 1.8; }

  /* Services: shorter imagery, tighter body */
  .service-grid { gap: 16px; }
  .service-card { border-radius: 22px; }
  .service-card .photo { height: 140px; }
  .service-card .body { padding: 16px 18px 20px; }
  .service-card .num { margin-bottom: 4px; font-size: 0.9rem; }
  .service-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
  .service-card p { font-size: 0.88rem; line-height: 1.8; }
  .service-card:nth-child(1) h3 { font-size: 1.1rem; }

  /* Coverage: 3 columns, small pins */
  .coverage-list { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .coverage-list li { padding: 14px 6px; gap: 8px; border-radius: 16px; font-size: 0.8rem; }
  .coverage-list li .pin { width: 28px; height: 28px; }
  .coverage-list li:last-child:nth-child(odd) { grid-column: auto; }
  .coverage-list li:last-child:nth-child(3n+1) { grid-column: 1 / -1; }

  /* Clients: wrapping chips */
  .client-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .client-strip span { padding: 8px 14px; border-radius: 999px; font-size: 0.8rem; box-shadow: none; }

  /* FAQ */
  .faq-list { gap: 10px; }
  .faq-item { padding: 14px 16px; border-radius: 18px; }
  .faq-item summary { font-size: 0.92rem; }
  .faq-item p { font-size: 0.88rem; }

  /* Contact */
  .contact-wrap { gap: 18px; }
  .contact-card, form.contact-form { padding: 20px 18px; border-radius: 22px; }
  .contact-item { margin-bottom: 14px; gap: 12px; }
  .contact-item .icon { width: 38px; height: 38px; }
  .contact-item span, .contact-item a { font-size: 0.9rem; }
  .branches { grid-template-columns: 1fr; gap: 8px; }
  .branch-pill { padding: 8px 12px; font-size: 0.78rem; text-align: center; }
  .form-row { margin-bottom: 12px; }
  .form-row input, .form-row textarea { padding: 11px 14px; }
  .form-row textarea { min-height: 96px; }

  /* Footer: drop duplicate links and long description */
  footer { padding: 32px 0 90px; }
  .footer-grid > div:first-child p, .footer-grid > div:nth-child(2) { display: none; }
  .footer-grid { gap: 14px; margin-bottom: 14px; }
  .footer-brand { margin-bottom: 0; }

  /* Floating buttons smaller */
  .whatsapp-fab { width: 48px; height: 48px; bottom: 14px; inset-inline-start: 14px; }
  .theme-toggle { width: 40px; height: 40px; bottom: 18px; inset-inline-end: 14px; }
  .theme-toggle svg { width: 20px; height: 20px; }
}
