/* ==========================================================================
   VÉSORA — Global styles
   NOTE: Colors and fonts below are PROVISIONAL (spec §14, items 3–4).
   Change them only here, via the custom properties.
   ========================================================================== */

:root {
  --bg: #0c0b0a;
  --bg-raised: #131210;
  --surface: #171512;
  --line: rgba(201, 169, 110, 0.16);
  --line-strong: rgba(201, 169, 110, 0.38);
  --gold: #c9a96e;
  --gold-soft: #b8975c;
  --text: #ece6dc;
  --muted: #a39b8f;
  --faint: #6f685e;

  --font-ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-brand: "Cormorant Garamond", "Times New Roman", serif;

  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 10vw, 8rem);
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ar);
  font-size: 1.0625rem;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 500; line-height: 1.45; letter-spacing: 0; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute; inset-inline-start: 1rem; top: -100px;
  background: var(--gold); color: var(--bg); padding: .5rem 1rem; border-radius: 6px; z-index: 100;
}
.skip-link:focus { top: 1rem; }

/* Brand wordmark (Latin, kept LTR inside RTL text) */
.brand {
  font-family: var(--font-brand);
  font-weight: 500;
  letter-spacing: .22em;
  direction: ltr;
  unicode-bidi: isolate;
}
.latin { direction: ltr; unicode-bidi: isolate; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .7rem 1.6rem;
  border-radius: 999px; border: 1px solid var(--line-strong);
  font: inherit; font-size: .975rem; font-weight: 500; line-height: 1.3;
  cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--gold { background: var(--gold); border-color: var(--gold); color: #17140f; }
.btn--gold:hover { background: #d8bb83; border-color: #d8bb83; }
.btn--ghost { background: transparent; color: var(--text); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--gold); font-size: .95rem; font-weight: 500;
  border-bottom: 1px solid var(--line-strong); padding-bottom: .2rem;
  transition: gap .3s var(--ease), border-color .3s var(--ease);
}
.link-arrow svg { width: 16px; height: 16px; }
.link-arrow:hover { gap: .8rem; border-color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 11, 10, .82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: 76px;
}
.site-header .brand { font-size: 1.6rem; }

.nav-list { display: flex; gap: 2.2rem; list-style: none; margin: 0; padding: 0; }
.nav-list a { font-size: .95rem; color: var(--muted); transition: color .25s; position: relative; }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--text); }
.nav-list a[aria-current="page"]::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -6px; height: 1px; background: var(--gold);
}
.header-cta { min-height: 42px; padding: .5rem 1.2rem; font-size: .9rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 50%;
  background: transparent; border: 1px solid var(--line-strong); color: var(--text); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .3s var(--ease), background .3s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; inset-inline-start: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .site-nav {
    position: absolute; inset-inline: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.75rem;
    display: none;
  }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { display: block; padding: .9rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav-list a[aria-current="page"]::after { display: none; }
  .nav-list a[aria-current="page"] { color: var(--gold); }
}

/* ---------- Section basics ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section--raised { background: var(--bg-raised); }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); border: 0; margin: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  color: var(--gold); font-size: .9rem; font-weight: 500; margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }

.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 28px; height: 1px; background: var(--gold); }
.section-title { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
.section-lead { color: var(--muted); margin-top: 1rem; font-size: 1.075rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100svh - 76px);
  display: grid; place-items: center;
  padding-block: clamp(5rem, 12vw, 9rem);
  text-align: center;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 50% 38%, rgba(201,169,110,.13), transparent 70%),
    radial-gradient(40% 35% at 50% 100%, rgba(201,169,110,.06), transparent 70%);
}
.hero-rings { position: absolute; inset: 0; z-index: -1; pointer-events: none; display: grid; place-items: center; }
.hero-rings svg { width: min(900px, 140vw); height: auto; opacity: .55; }

.hero-inner { max-width: 820px; }
.hero-tagline { color: var(--gold); font-size: clamp(.95rem, 1.6vw, 1.05rem); margin-bottom: 1.75rem; letter-spacing: .01em; }
.hero-title { font-size: clamp(2.1rem, 5.6vw, 3.9rem); line-height: 1.4; font-weight: 500; }
.hero-title .accent { color: var(--gold); }
.hero-desc { color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.2rem); margin: 1.75rem auto 2.5rem; max-width: 620px; }
.hero-scroll {
  position: absolute; bottom: 2rem; inset-inline: 0; margin-inline: auto; width: 1px; height: 56px;
  background: linear-gradient(to bottom, var(--gold), transparent); opacity: .6;
}

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 980px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--surface), var(--bg-raised));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.25rem 2rem 2rem;
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.service-card::before {
  content: ""; position: absolute; top: -1px; inset-inline-start: 2rem; width: 48px; height: 1px; background: var(--gold);
}
.service-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
@media (prefers-reduced-motion: reduce) { .service-card:hover { transform: none; } }

.service-num { font-family: var(--font-brand); color: var(--faint); font-size: 1.05rem; letter-spacing: .1em; }
.service-icon {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; color: var(--gold); margin: 1.5rem 0 1.5rem;
}
.service-icon svg { width: 22px; height: 22px; }
.service-card h3 { font-size: 1.4rem; margin-bottom: .75rem; }
.service-card p { color: var(--muted); font-size: 1rem; }
.service-card .card-body { flex: 1; }

.sub-notice {
  display: flex; gap: .65rem; align-items: flex-start;
  margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
  color: var(--muted); font-size: .9rem; line-height: 1.8;
}
.sub-notice svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: .3rem; }
.service-card .link-arrow { margin-top: 1.75rem; align-self: flex-start; }

/* ---------- Why ---------- */
.why-list { list-style: none; margin: 0 auto; padding: 0; max-width: 860px; }
.why-item {
  display: grid; grid-template-columns: auto 1fr; gap: 1.75rem; align-items: start;
  padding-block: 2rem; border-bottom: 1px solid var(--line);
}
.why-item:first-child { border-top: 1px solid var(--line); }
.why-icon {
  width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; color: var(--gold);
}
.why-icon svg { width: 24px; height: 24px; }
.why-item h3 { font-size: 1.25rem; margin-bottom: .35rem; }
.why-item p { color: var(--muted); }
@media (max-width: 560px) { .why-item { grid-template-columns: 1fr; gap: 1rem; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: center; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

.name-meaning {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3rem); text-align: center;
  background: radial-gradient(80% 70% at 50% 0%, rgba(201,169,110,.08), transparent 70%), var(--bg-raised);
}
.name-meaning .brand { font-size: clamp(2.2rem, 5vw, 3rem); display: block; margin-bottom: 2rem; }
.meaning-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.meaning-word { font-family: var(--font-brand); font-size: 1.35rem; letter-spacing: .14em; color: var(--gold); direction: ltr; }
.meaning-ar { display: block; color: var(--muted); font-size: .92rem; margin-top: .4rem; font-family: var(--font-ar); letter-spacing: 0; }
.meaning-x { color: var(--faint); font-size: 1.1rem; }

.about-story p { color: var(--muted); margin-top: 1.25rem; }
.about-story p:first-of-type { margin-top: 1.5rem; }

/* ---------- Final CTA ---------- */
.final-cta {
  text-align: center; overflow: hidden; isolation: isolate;
  padding-block: clamp(5.5rem, 12vw, 9rem);
  background: var(--bg-raised);
}
.final-cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 60% at 50% 50%, rgba(201,169,110,.10), transparent 70%);
}
.final-cta .section-title { font-size: clamp(1.9rem, 4.4vw, 3rem); }
.final-cta .section-lead { max-width: 600px; margin: 1.25rem auto 2.5rem; }

/* ---------- Service detail page ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: clamp(4.5rem, 11vw, 8rem);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(55% 60% at 70% 20%, rgba(201,169,110,.11), transparent 70%);
}
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; color: var(--faint); font-size: .9rem; margin-bottom: 2.5rem; list-style: none; padding: 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb li + li::before { content: "/"; margin-inline-end: .5rem; color: var(--faint); }

.detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-title { font-size: clamp(2rem, 4.8vw, 3.2rem); line-height: 1.45; }
.detail-desc { color: var(--muted); font-size: clamp(1.05rem, 1.7vw, 1.175rem); margin-top: 1.5rem; max-width: 640px; }

.detail-panel {
  background: linear-gradient(180deg, var(--surface), var(--bg-raised));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; position: relative;
}
.detail-panel::before { content: ""; position: absolute; top: -1px; inset-inline-start: 2rem; width: 48px; height: 1px; background: var(--gold); }
.detail-panel h2 { font-size: 1.15rem; margin-bottom: 1.25rem; }
.notice-list { list-style: none; margin: 0 0 1.75rem; padding: 0; }
.notice-list li {
  display: flex; gap: .75rem; align-items: flex-start;
  color: var(--muted); font-size: .975rem; padding-block: 1rem; border-top: 1px solid var(--line);
}
.notice-list li:last-child { border-bottom: 1px solid var(--line); }
.notice-list svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: .35rem; }
.detail-panel .btn { width: 100%; }

.other-services { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 640px) { .other-services { grid-template-columns: 1fr; } }
.other-link {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.75rem;
  transition: border-color .3s var(--ease);
}
.other-link:hover { border-color: var(--line-strong); }
.other-link span { font-size: 1.1rem; }
.other-link svg { width: 18px; height: 18px; color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); padding-block: 3.5rem 2.25rem; }
.site-footer .divider { margin-bottom: 3rem; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.site-footer .brand { font-size: 1.5rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .75rem 2rem; list-style: none; margin: 0; padding: 0; }
.footer-links a, .footer-links .social-pending { color: var(--muted); font-size: .95rem; transition: color .25s; }
.footer-links a:hover { color: var(--gold); }
.social-pending { cursor: default; }
.social-links { display: inline-flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.social-links a { display: inline-flex; align-items: center; gap: .45rem; }
.social-links svg { width: 17px; height: 17px; }
.copyright { margin-top: 2.5rem; color: var(--faint); font-size: .875rem; text-align: center; }
@media (max-width: 760px) {
  .footer-top { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

/* ---------- WhatsApp pending state (number not yet provided) ---------- */
[data-whatsapp][aria-disabled="true"] { cursor: not-allowed; }
