/* ==========================================================
   Al Nokhba Theme — main.css
   Dark luxury design system | Navy + Gold
   ========================================================== */

/* ── Variables ── */
:root {
  --bg:        #0B1220;
  --bg-soft:   #111B2E;
  --card:      #131d30;
  --fg:        #F7F5EF;
  --muted:     #8a93a8;
  --gold:      #C8A24A;
  --gold-soft: #d4ae60;
  --border:    rgba(255,255,255,.08);
  --radius:    2px;
  --container: 1280px;
  --font-ar:   'IBM Plex Sans Arabic', 'Inter Tight', system-ui, sans-serif;
  --font-en:   'Inter Tight', 'IBM Plex Sans Arabic', system-ui, sans-serif;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-ar);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html[dir="ltr"] body { font-family: var(--font-en); }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
ul, ol { list-style: none; }
::selection { background: var(--gold); color: var(--bg); }

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ── Typography utilities ── */
.display {
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: .95;
}
html[dir="rtl"] .display {
  letter-spacing: -.01em;
  line-height: 1.15;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
html[dir="rtl"] .eyebrow { letter-spacing: .18em; }

.eyebrow-wrap {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.gold-rule {
  display: inline-block;
  width: 56px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.text-gold { color: var(--gold); }
.muted     { color: var(--muted); }

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ── Buttons ── */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.6rem;
  background: var(--gold);
  color: var(--bg);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .02em;
  border-radius: var(--radius);
  transition: transform .3s, box-shadow .3s, background .3s;
  box-shadow: 0 10px 40px -10px rgba(200,162,74,.55);
}
.btn-gold:hover {
  transform: translateY(-2px);
  background: var(--gold-soft);
}
.btn-gold--lg { padding: 1.1rem 2rem; font-size: 1rem; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 1.5rem;
  border: 1px solid rgba(255,255,255,.25);
  color: var(--fg);
  font-weight: 500;
  font-size: .9rem;
  border-radius: var(--radius);
  transition: border-color .3s, background .3s;
}
.btn-ghost:hover {
  border-color: var(--gold);
  background: rgba(200,162,74,.08);
}

.arrow-icon {
  flex-shrink: 0;
}
html[dir="rtl"] .arrow-icon { transform: scaleX(-1); }

/* ── Section Borders ── */
.section-bordered { border-top: 1px solid var(--border); }
.section-dark { background: color-mix(in srgb, var(--bg-soft) 70%, var(--bg)); }

/* ── Section header ── */
.section-header {
  margin-bottom: clamp(3rem, 6vw, 6rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 48rem;
}

.section-title {
  font-size: clamp(1.9rem, 4.5vw, 3.4rem);
  text-wrap: balance;
}

/* ──────────────────────────────────
   HEADER
────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  transition: background .5s, border-color .5s;
}
.site-header.scrolled {
  background: rgba(11,18,32,.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.header-inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.header-logo img { width: 44px; height: 44px; object-fit: contain; }

.brand-text {
  display: none;
  flex-direction: column;
  line-height: 1.2;
}
@media (min-width: 480px) { .brand-text { display: flex; } }

.brand-name { font-size: .875rem; font-weight: 600; letter-spacing: .03em; }
.brand-sub  { font-size: 10px; color: var(--muted); letter-spacing: .2em; text-transform: uppercase; }

.primary-nav {
  display: none;
  align-items: center;
  gap: 2.25rem;
}
@media (min-width: 768px) { .primary-nav { display: flex; } }

.primary-nav a {
  font-size: .875rem;
  color: rgba(247,245,239,.8);
  transition: color .2s;
}
.primary-nav a:hover { color: var(--gold); }

.header-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.lang-switcher {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--fg);
  padding: .4rem .75rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  transition: border-color .2s, color .2s;
}
.lang-switcher:hover { border-color: var(--gold); color: var(--gold); }

.header-cta { display: none; }
@media (min-width: 640px) { .header-cta { display: inline-flex; } }

.mobile-menu-toggle { display: flex; }
@media (min-width: 768px) { .mobile-menu-toggle { display: none; } }

.mobile-nav {
  border-top: 1px solid rgba(255,255,255,.05);
  background: rgba(11,18,32,.95);
  backdrop-filter: blur(12px);
}
.mobile-nav-links {
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.mobile-nav-links a {
  font-size: 1rem;
  color: rgba(247,245,239,.85);
}
.mobile-nav-links a:hover { color: var(--gold); }
.mobile-cta { align-self: flex-start; margin-top: .5rem; }

/* ──────────────────────────────────
   HERO
────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .7;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11,18,32,.4) 0%, rgba(11,18,32,.55) 50%, var(--bg) 100%);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(11,18,32,.85) 100%);
}

.hero-content {
  position: relative;
  padding-top: clamp(7rem, 15vw, 10rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
  width: 100%;
}

.hero-title {
  font-size: clamp(2.4rem, 7vw, 6.5rem);
  max-width: 64rem;
  text-wrap: balance;
  margin-top: 2rem;
}

.hero-sub {
  margin-top: 2rem;
  max-width: 42rem;
  font-size: clamp(.9rem, 2vw, 1.125rem);
  color: var(--muted);
  line-height: 1.7;
}

.hero-ctas {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-footer {
  position: absolute;
  bottom: 2.5rem;
  inset-inline: clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-hint { display: none; }
@media (min-width: 640px) { .scroll-hint { display: inline; } }

/* ──────────────────────────────────
   POSITIONING
────────────────────────────────── */
.positioning-section { padding: clamp(4rem, 10vw, 12rem) 0; }
.positioning-text {
  font-size: clamp(2rem, 5.5vw, 4.5rem);
  color: rgba(247,245,239,.9);
  text-wrap: balance;
  line-height: 1.35;
}

/* ──────────────────────────────────
   SERVICES
────────────────────────────────── */
.services-section { padding: clamp(3.5rem, 9vw, 9rem) 0; }

.services-list { border-top: 1px solid rgba(255,255,255,.08); }

.service-row {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  grid-template-rows: auto auto;
  gap: .5rem 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .2s;
}
.service-row:hover { background: rgba(200,162,74,.05); }

@media (min-width: 768px) {
  .service-row {
    grid-template-columns: 2rem minmax(0, 1fr) minmax(0, 3fr) auto;
    grid-template-rows: 1fr;
    align-items: baseline;
    padding: 2.5rem 0;
    gap: 1.5rem;
  }
}

.service-num  { font-size: .75rem; color: var(--gold); letter-spacing: .12em; flex-shrink: 0; }
.service-name { font-size: clamp(1.1rem, 2.5vw, 1.75rem); font-weight: 500; letter-spacing: -.02em; min-width: 0; }
.service-desc { font-size: .875rem; color: var(--muted); line-height: 1.65; grid-column: 1 / -1; min-width: 0; word-break: normal; overflow-wrap: break-word; }

@media (min-width: 768px) {
  .service-desc { grid-column: auto; }
}

.service-arrow {
  color: var(--gold);
  opacity: 0;
  transition: opacity .2s;
}
.service-row:hover .service-arrow { opacity: 1; }

.section-cta { margin-top: 3rem; }

/* ──────────────────────────────────
   PACKAGES
────────────────────────────────── */
.packages-section { padding: clamp(3.5rem, 9vw, 9rem) 0; }

.packages-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) { .packages-grid { grid-template-columns: repeat(3, 1fr); } }

.package-card {
  display: flex;
  flex-direction: column;
  padding: clamp(2rem, 4vw, 2.5rem);
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(19,29,48,.4);
  border-radius: var(--radius);
  transition: border-color .2s;
}
.package-card:hover { border-color: rgba(200,162,74,.7); }
.package-card--featured {
  border-color: rgba(200,162,74,.4);
  background: rgba(200,162,74,.05);
}

.package-tag  { margin-bottom: 1.5rem; }
.package-title { font-size: clamp(1.4rem, 2.5vw, 1.875rem); font-weight: 500; letter-spacing: -.02em; margin-bottom: 1rem; }
.package-desc  { font-size: .875rem; color: var(--muted); line-height: 1.65; margin-bottom: 2rem; }

.package-includes {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 2.5rem;
  flex: 1;
}
.package-includes li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .875rem;
  color: rgba(247,245,239,.85);
}
.bullet {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: .45rem;
}

/* ──────────────────────────────────
   GUARANTEE
────────────────────────────────── */
.guarantee-section {
  padding: clamp(3.5rem, 9vw, 9rem) 0;
  background: radial-gradient(ellipse at top, rgba(200,162,74,.1) 0%, transparent 60%);
  overflow: hidden;
}

.guarantee-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.guarantee-title {
  text-align: center;
  font-size: clamp(2rem, 5vw, 4rem);
  text-wrap: balance;
  line-height: 1.25;
  margin-bottom: 2rem;
}

.guarantee-desc {
  max-width: 48rem;
  margin-inline: auto;
  text-align: center;
  font-size: clamp(.9rem, 1.5vw, 1.125rem);
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 3.5rem;
}

.guarantee-points {
  display: grid;
  gap: 1px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 56rem;
  margin-inline: auto;
}
@media (min-width: 580px) { .guarantee-points { grid-template-columns: 1fr 1fr; } }

.guarantee-points li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem 1.75rem;
  background: color-mix(in srgb, var(--bg-soft) 60%, var(--bg));
  font-size: .9rem;
  line-height: 1.6;
  color: rgba(247,245,239,.9);
}

.check-icon { color: var(--gold); flex-shrink: 0; margin-top: .1rem; }

/* ──────────────────────────────────
   WORK / PORTFOLIO
────────────────────────────────── */
.work-section { padding: clamp(3.5rem, 9vw, 9rem) 0; }

.work-grid {
  display: grid;
  gap: 1.5rem 2.5rem;
}
@media (min-width: 768px) { .work-grid { grid-template-columns: 1fr 1fr; } }

.work-card {
  background: rgba(19,29,48,.4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.work-card--wide { grid-column: 1 / -1; }

.work-card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.work-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s;
}
.work-card:hover .work-card-img img { transform: scale(1.05); }

.work-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, rgba(11,18,32,.4) 40%, transparent 100%);
}

.work-card-body { padding: clamp(1.5rem, 4vw, 2.5rem); }
.work-title { margin-top: 1rem; font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 500; letter-spacing: -.02em; }
.work-desc  { margin-top: .75rem; font-size: .875rem; color: var(--muted); line-height: 1.65; max-width: 42rem; }
.work-cta   { margin-top: 1.5rem; display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; transition: gap .2s; }
.work-cta:hover { gap: .75rem; }

/* ──────────────────────────────────
   RESULTS
────────────────────────────────── */
.results-section { padding: clamp(3.5rem, 9vw, 9rem) 0; }

.results-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) { .results-grid { grid-template-columns: 1fr 1fr; } }

.result-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  background: #fff;
}
.result-card--gold { border-color: rgba(200,162,74,.3); }

.result-card img { width: 100%; height: auto; }

.result-card figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--bg);
  color: var(--fg);
  font-size: .875rem;
  gap: 1rem;
}

/* ──────────────────────────────────
   WHY
────────────────────────────────── */
.why-section { padding: clamp(3.5rem, 10vw, 10rem) 0; }

.why-grid {
  display: grid;
  gap: 4rem;
}
@media (min-width: 768px) {
  .why-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.why-title { font-size: clamp(2rem, 5vw, 4rem); text-wrap: balance; }

.why-points { padding-top: 0; }
@media (min-width: 768px) { .why-points { padding-top: 2.5rem; } }

.why-points li {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.why-points li:last-child { border-bottom: none; }

.why-num   { font-size: .75rem; color: var(--gold); letter-spacing: .12em; }
.why-point { font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-weight: 300; letter-spacing: -.02em; }

/* ──────────────────────────────────
   TRUST
────────────────────────────────── */
.trust-section { padding: clamp(2.5rem, 7vw, 7rem) 0; }

.trust-grid {
  display: grid;
  gap: 2.5rem 1.5rem;
}
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }

.trust-item { text-align: center; }
@media (min-width: 768px) { .trust-item { text-align: start; } }

.trust-key { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.trust-val { margin-top: .5rem; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* ──────────────────────────────────
   FINAL CTA
────────────────────────────────── */
.final-cta-section {
  position: relative;
  padding: clamp(5rem, 12vw, 12rem) 0;
  overflow: hidden;
  text-align: center;
}

.final-cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .3;
}

.final-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11,18,32,.8) 0%, rgba(11,18,32,.85) 50%, var(--bg) 100%);
}

.final-cta-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.final-cta-title {
  font-size: clamp(2rem, 5.5vw, 4.5rem);
  text-wrap: balance;
}

/* ──────────────────────────────────
   CONTACT
────────────────────────────────── */
.contact-section { padding: clamp(3.5rem, 9vw, 9rem) 0; }

.contact-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 5fr 7fr; gap: 3rem; }
}

.contact-title { font-size: clamp(2rem, 4.5vw, 3.4rem); text-wrap: balance; }
.contact-sub   { margin-top: 1.5rem; color: var(--muted); }

.contact-links { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1rem; }

.contact-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .875rem;
  color: rgba(247,245,239,.9);
  transition: color .2s;
}
.contact-link:hover { color: var(--gold); }

/* Form */
.contact-form {
  display: grid;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 480px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-row--full { grid-template-columns: 1fr; }

.field {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.field label {
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field textarea,
.field select {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,.15);
  padding: .75rem 0;
  font-size: .875rem;
  color: var(--fg);
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
  width: 100%;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-bottom-color: var(--gold);
}
.field textarea { resize: none; }
.field select option { background: var(--bg); }

.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-success {
  font-size: .875rem;
  color: var(--gold);
}

/* ──────────────────────────────────
   FOOTER
────────────────────────────────── */
.site-footer {
  border-top: 1px solid rgba(255,255,255,.1);
  background: color-mix(in srgb, var(--bg-soft) 60%, var(--bg));
  padding: 3.5rem 0 2rem;
}

.footer-inner {
  display: grid;
  gap: 2.5rem 1.5rem;
}
@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; align-items: start; }
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}
.footer-brand img { width: 48px; height: 48px; object-fit: contain; }
.footer-brand-name { font-size: 1rem; font-weight: 600; }
.footer-brand-sub  { font-size: .7rem; color: var(--muted); letter-spacing: .2em; text-transform: uppercase; margin-top: .25rem; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.75rem;
}
@media (min-width: 768px) { .footer-nav { justify-content: center; } }
.footer-nav a { font-size: .875rem; color: rgba(247,245,239,.75); transition: color .2s; }
.footer-nav a:hover { color: var(--gold); }

.footer-social {
  display: flex;
  gap: 1rem;
}
@media (min-width: 768px) { .footer-social { justify-content: flex-end; } }

.social-link {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  transition: border-color .2s, color .2s;
}
.social-link:hover { border-color: var(--gold); color: var(--gold); }

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-direction: column;
  gap: .75rem;
  font-size: .75rem;
  color: var(--muted);
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ──────────────────────────────────
   WHATSAPP FAB
────────────────────────────────── */
.whatsapp-fab {
  position: fixed;
  z-index: 200;
  bottom: 1.5rem;
  inset-inline-end: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px -10px rgba(200,162,74,.6);
  transition: transform .2s;
}
.whatsapp-fab:hover { transform: scale(1.05); }

html[dir="rtl"] .service-row {
    grid-template-columns: auto minmax(0,3fr) minmax(0,1fr) 2rem !important;
}

html[dir="rtl"] .service-desc {
    grid-column: 2 !important;
    width: 100% !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    text-align: right;
}