/* =========================================================
   Awlad Alnemr Financing Broker — Global Stylesheet
   Theme: Deep emerald-black + luxury gold
   ========================================================= */

:root {
  --bg:            #0a1712;
  --bg-2:          #0d1c16;
  --bg-3:          #112620;
  --panel:         #0f221b;
  --line:          rgba(212, 175, 55, 0.18);
  --line-soft:     rgba(255, 255, 255, 0.07);

  --gold:          #d4af37;
  --gold-2:        #f4dd8a;
  --gold-3:        #b8912b;
  --gold-grad:     linear-gradient(135deg, #f4dd8a 0%, #d4af37 45%, #a97d1f 100%);
  --gold-grad-soft:linear-gradient(135deg, rgba(244,221,138,.18), rgba(212,175,55,.06));

  --text:          #eef2ee;
  --muted:         #a9b6ad;
  --muted-2:       #8494895;

  --radius:        18px;
  --radius-sm:     12px;
  --shadow:        0 24px 60px -20px rgba(0,0,0,.65);
  --shadow-gold:   0 18px 50px -18px rgba(212,175,55,.35);

  --max:           1200px;
  --ff-en:         'Poppins', system-ui, sans-serif;
  --ff-en-serif:   'Playfair Display', Georgia, serif;
  --ff-ar:         'Cairo', 'Tajawal', system-ui, sans-serif;

  --font-body:     var(--ff-ar);
  --font-display:  var(--ff-ar);
}

/* Language-driven font & direction */
html[lang="en"] { --font-body: var(--ff-en); --font-display: var(--ff-en-serif); }

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(212,175,55,.10), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(212,175,55,.06), transparent 55%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* Show/hide by language */
[data-lang-en] { display: none; }
html[lang="en"] [data-lang-ar] { display: none; }
html[lang="en"] [data-lang-en] { display: inline; }
html[lang="en"] [data-lang-en].block { display: block; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Typography helpers ---------- */
.section { padding: clamp(60px, 9vw, 120px) 0; position: relative; }
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold-2); font-weight: 600; margin-bottom: 14px;
}
.section-tag::before { content: ""; width: 26px; height: 1px; background: var(--gold); display: inline-block; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.2; font-weight: 700; margin-bottom: 18px;
}
.section-title .accent {
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-sub { color: var(--muted); max-width: 620px; font-size: 1.05rem; }
.center { text-align: center; }
.center .section-sub { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px; font-weight: 600;
  font-family: var(--font-body); font-size: .98rem; cursor: pointer;
  border: 1px solid transparent; transition: .3s ease; white-space: nowrap;
}
.btn-gold {
  background: var(--gold-grad); color: #241a03;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 24px 60px -18px rgba(212,175,55,.6); }
.btn-ghost {
  background: transparent; color: var(--text); border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn svg { width: 18px; height: 18px; }

/* ======================= HEADER ======================= */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: .35s ease;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(8, 18, 14, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 82px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo-mark { width: 48px; height: 48px; flex: 0 0 auto; }
.brand-logo { height: 50px; width: auto; display: block; }
.footer .brand-logo { height: 62px; }
@media (max-width: 560px) { .brand-logo { height: 40px; } .footer .brand-logo { height: 54px; } }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-txt b { font-size: 1.02rem; letter-spacing: .3px;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.brand-txt span { font-size: .62rem; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 10px 16px; border-radius: 999px; font-weight: 500; font-size: .95rem;
  color: var(--muted); transition: .25s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--gold-2); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--text); font-weight: 600; font-size: .85rem; cursor: pointer;
  background: rgba(255,255,255,.02); transition: .25s; font-family: inherit;
}
.lang-btn:hover { border-color: var(--gold); color: var(--gold-2); }
.lang-btn svg { width: 16px; height: 16px; }

.burger { display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--gold-2);
  transition: .3s; }
.burger span:nth-child(1){ top: 15px; } .burger span:nth-child(2){ top: 21px; } .burger span:nth-child(3){ top: 27px; }
.burger.open span:nth-child(1){ top: 21px; transform: rotate(45deg); }
.burger.open span:nth-child(2){ opacity: 0; }
.burger.open span:nth-child(3){ top: 21px; transform: rotate(-45deg); }

/* ======================= HERO / SLIDER ======================= */
.hero { position: relative; height: 100vh; min-height: 620px; overflow: hidden; }
.slides { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0; opacity: 0; transform: scale(1.08);
  transition: opacity 1.2s ease, transform 6s ease;
  background-size: cover; background-position: center;
}
.slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,14,10,.96) 0%, rgba(6,14,10,.55) 45%, rgba(6,14,10,.75) 100%);
}
.slide.active { opacity: 1; transform: scale(1); }

.hero-inner {
  position: relative; z-index: 5; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  max-width: 760px;
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 10px; width: fit-content;
  padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(212,175,55,.06); color: var(--gold-2); font-weight: 600;
  font-size: .82rem; letter-spacing: 1.5px; margin-bottom: 26px;
  opacity: 0; animation: fadeUp .8s .1s forwards;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.12; margin-bottom: 22px;
  opacity: 0; animation: fadeUp .8s .25s forwards;
}
.hero h1 .accent { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: #d6ddd7; font-size: clamp(1rem, 2vw, 1.22rem); max-width: 560px; margin-bottom: 34px;
  opacity: 0; animation: fadeUp .8s .4s forwards; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; opacity: 0; animation: fadeUp .8s .55s forwards; }

.hero-dots { position: absolute; bottom: 34px; inset-inline-start: 0; right: 0; z-index: 6;
  display: flex; gap: 10px; justify-content: center; }
.hero-dots button { width: 34px; height: 4px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.25); transition: .3s; }
.hero-dots button.active { background: var(--gold-grad); width: 52px; }

.scroll-cue { position: absolute; bottom: 28px; inset-inline-end: 40px; z-index: 6; color: var(--muted);
  font-size: .72rem; letter-spacing: 2px; writing-mode: vertical-rl; display: flex; align-items: center; gap: 12px; }
.scroll-cue::after { content: ""; width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); }

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } from { transform: translateY(24px); } }

/* ======================= STATS STRIP ======================= */
.stats { background: var(--bg-2); border-block: 1px solid var(--line-soft); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 46px 0; }
.stat { text-align: center; position: relative; }
.stat:not(:last-child)::after { content: ""; position: absolute; inset-inline-end: 0; top: 15%; height: 70%;
  width: 1px; background: var(--line-soft); }
.stat .num { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .label { color: var(--muted); font-size: .92rem; margin-top: 4px; }

/* ======================= SERVICES CAROUSEL ======================= */
.carousel-wrap { position: relative; margin-top: 46px; }
.carousel {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 4px 24px; scroll-behavior: smooth; scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }

.service-card {
  scroll-snap-align: start; flex: 0 0 clamp(280px, 32%, 360px);
  background: linear-gradient(160deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 34px 30px; transition: .35s ease; position: relative; overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: var(--gold-grad-soft); opacity: 0; transition: .35s;
}
.service-card:hover { transform: translateY(-8px); border-color: var(--line); box-shadow: var(--shadow); }
.service-card:hover::before { opacity: 1; }
.service-card > * { position: relative; z-index: 1; }
.service-icon {
  width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center;
  background: var(--gold-grad-soft); border: 1px solid var(--line); margin-bottom: 22px;
}
.service-icon svg { width: 30px; height: 30px; stroke: var(--gold-2); }
.service-card h3 { font-size: 1.28rem; margin-bottom: 10px; font-family: var(--font-display); }
.service-card p { color: var(--muted); font-size: .96rem; margin-bottom: 18px; }
.service-card .more { color: var(--gold-2); font-weight: 600; font-size: .9rem; display: inline-flex; gap: 6px; align-items: center; }

.carousel-nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; }
.carousel-nav button {
  width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--gold-2); cursor: pointer; display: grid; place-items: center; transition: .25s;
}
.carousel-nav button:hover { background: var(--gold-grad); color: #241a03; border-color: transparent; }
.carousel-nav svg { width: 20px; height: 20px; }

/* ======================= ABOUT PREVIEW ======================= */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 100%;
  object-fit: cover; aspect-ratio: 4/3; }
.about-media .badge {
  position: absolute; inset-inline-end: -22px; bottom: -22px;
  background: var(--gold-grad); color: #241a03; padding: 22px 26px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-gold); text-align: center;
}
.about-media .badge b { font-size: 2rem; font-family: var(--font-display); display: block; line-height: 1; }
.about-media .badge span { font-size: .78rem; font-weight: 600; }
.feature-list { display: grid; gap: 16px; margin-top: 26px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .tick { width: 26px; height: 26px; border-radius: 50%; background: var(--gold-grad-soft);
  border: 1px solid var(--line); display: grid; place-items: center; flex: 0 0 auto; margin-top: 3px; }
.feature-list .tick svg { width: 14px; height: 14px; stroke: var(--gold-2); }
.feature-list b { display: block; margin-bottom: 2px; }
.feature-list p { color: var(--muted); font-size: .93rem; }

/* ======================= WHY / VALUES ======================= */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 46px; }
.value-card {
  background: linear-gradient(160deg, var(--panel), var(--bg-2)); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 34px 30px; transition: .3s;
}
.value-card:hover { border-color: var(--line); transform: translateY(-6px); }
.value-card .vnum { font-family: var(--font-display); font-size: 1.4rem; color: var(--gold);
  border: 1px solid var(--line); width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px; }
.value-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.value-card p { color: var(--muted); font-size: .95rem; }

/* ======================= CTA BANNER ======================= */
.cta-banner { position: relative; overflow: hidden; }
.cta-box {
  background: linear-gradient(120deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line); border-radius: 26px;
  padding: clamp(40px, 6vw, 70px); text-align: center; position: relative; overflow: hidden;
}
.cta-box::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 50% -30%, rgba(212,175,55,.16), transparent 70%); }
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 14px; }
.cta-box p { color: var(--muted); max-width: 560px; margin: 0 auto 28px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ======================= PAGE HERO (inner pages) ======================= */
.page-hero { position: relative; padding: 160px 0 80px; text-align: center; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 340px at 50% 0%, rgba(212,175,55,.12), transparent 70%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 12px; }
.page-hero h1 .accent { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.breadcrumb { color: var(--muted); font-size: .92rem; display: flex; gap: 8px; justify-content: center; align-items: center; }
.breadcrumb a:hover { color: var(--gold-2); }
.breadcrumb .sep { color: var(--gold); }

/* ======================= CONTACT ======================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 44px; align-items: stretch; }
.contact-info { display: grid; gap: 18px; align-content: start; }
.info-card {
  display: flex; gap: 18px; align-items: flex-start; padding: 24px 26px;
  background: linear-gradient(160deg, var(--panel), var(--bg-2)); border: 1px solid var(--line-soft);
  border-radius: var(--radius); transition: .3s;
}
.info-card:hover { border-color: var(--line); transform: translateY(-4px); }
.info-card .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--gold-grad-soft);
  border: 1px solid var(--line); display: grid; place-items: center; flex: 0 0 auto; }
.info-card .ic svg { width: 24px; height: 24px; stroke: var(--gold-2); }
.info-card h4 { font-size: 1.05rem; margin-bottom: 4px; }
.info-card p, .info-card a { color: var(--muted); font-size: .95rem; word-break: break-word; }
.info-card a:hover { color: var(--gold-2); }

.contact-form {
  background: linear-gradient(160deg, var(--panel), var(--bg-2)); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: clamp(28px, 4vw, 44px);
}
.contact-form h3 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 6px; }
.contact-form .sub { color: var(--muted); font-size: .95rem; margin-bottom: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 8px; font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border-radius: 12px; background: rgba(0,0,0,.25);
  border: 1px solid var(--line-soft); color: var(--text); font-family: inherit; font-size: .96rem; transition: .25s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold); background: rgba(0,0,0,.35); box-shadow: 0 0 0 3px rgba(212,175,55,.12);
}
.form-note { margin-top: 14px; font-size: .84rem; color: var(--muted); }
.form-status { margin-top: 16px; padding: 14px 18px; border-radius: 12px; display: none; font-size: .92rem; }
.form-status.ok { display: block; background: rgba(46,160,90,.12); border: 1px solid rgba(46,160,90,.4); color: #8fe0af; }

/* ======================= MAP ======================= */
.map-section { padding-bottom: 0; }
.map-frame { width: 100%; height: 460px; border: 0; filter: grayscale(.3) contrast(1.05); }
.map-shell { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow); position: relative; }

/* ======================= FOOTER ======================= */
.footer { background: linear-gradient(180deg, var(--bg-2), #060f0b); border-top: 1px solid var(--line);
  padding-top: 70px; margin-top: 0; position: relative; }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 46px; }
.footer .brand { margin-bottom: 18px; }
.footer-about p { color: var(--muted); font-size: .95rem; margin-bottom: 20px; max-width: 320px; }
.socials { display: flex; gap: 12px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-soft);
  display: grid; place-items: center; color: var(--muted); transition: .3s; }
.socials a:hover { background: var(--gold-grad); color: #241a03; border-color: transparent; transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }
.footer h5 { font-size: 1.05rem; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.footer h5::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 32px; height: 2px; background: var(--gold-grad); }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--muted); font-size: .94rem; transition: .25s; }
.footer-links a:hover { color: var(--gold-2); padding-inline-start: 6px; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 14px; color: var(--muted); font-size: .93rem; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; stroke: var(--gold-2); flex: 0 0 auto; margin-top: 3px; }
.footer-bottom { border-top: 1px solid var(--line-soft); padding: 22px 0; display: flex;
  justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-bottom p { color: var(--muted-2); font-size: .86rem; color: var(--muted); }
.footer-bottom .made { color: var(--muted); font-size: .82rem; }

/* ======================= REVEAL ANIMATION ======================= */
.reveal { opacity: 0; transform: translateY(34px); transition: .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ======================= MOBILE MENU ======================= */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: rgba(6,14,10,.97); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px;
  transform: translateY(-100%); transition: .45s cubic-bezier(.2,.8,.2,1); visibility: hidden;
}
.mobile-menu.open { transform: translateY(0); visibility: visible; }
.mobile-menu a { font-family: var(--font-display); font-size: 1.7rem; color: var(--text); padding: 12px; }
.mobile-menu a:hover, .mobile-menu a.active { color: var(--gold-2); }

/* ======================= RESPONSIVE ======================= */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-media { max-width: 520px; }
  .values-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 34px 20px; }
  .stat:nth-child(2)::after { display: none; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat::after { display: none !important; }
  .about-media .badge { inset-inline-end: 12px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
}

/* RTL fine-tuning */
html[dir="rtl"] .scroll-cue { writing-mode: vertical-rl; transform: rotate(180deg); }
