/* ===================================================================
   Nabeea Al Taqa (نبع الطاقة) — Stylesheet
   =================================================================== */

:root {
  --navy-900: #0c2038;
  --navy-800: #123a5e;
  --navy-700: #184f7d;
  --amber-600: #b9660f;
  --amber-500: #de8320;
  --amber-400: #eba03f;
  --amber-300: #f2b968;

  --ink-950: #0a0c0f;
  --ink-900: #101317;
  --ink-850: #14181d;
  --ink-800: #1a1f26;
  --line: #262c33;

  --text: #eef0f2;
  --text-muted: #aab0b8;
  --text-soft: #767e87;

  --font: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  --measure: 62ch;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--ink-950);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.3;
}

p { margin: 0 0 1em; color: var(--text-muted); }
p:last-child { margin-bottom: 0; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 92px 0; }
section.tight { padding: 60px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--amber-400);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: .04em;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--amber-500);
  display: inline-block;
}

.rule {
  height: 1px;
  background: linear-gradient(90deg, var(--amber-500) 0, var(--line) 40%, transparent 100%);
  margin: 0 0 40px;
}
[dir="rtl"] .rule { background: linear-gradient(270deg, var(--amber-500) 0, var(--line) 40%, transparent 100%); }

/* ---------- Header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 12, 15, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 50px; width: auto; }

nav.main-nav { display: flex; align-items: center; gap: 28px; }
nav.main-nav a {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-muted);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
nav.main-nav a:hover, nav.main-nav a.active {
  color: var(--text);
  border-bottom-color: var(--amber-500);
}

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-toggle button {
  border: 0; background: transparent; padding: 7px 14px;
  font-family: var(--font); font-weight: 700; font-size: 0.8rem;
  cursor: pointer; color: var(--text-soft);
}
.lang-toggle button.active { background: var(--amber-500); color: #1a1206; }

.nav-toggle {
  display: none; border: 1px solid var(--line); background: transparent;
  border-radius: 50%; width: 38px; height: 38px;
  align-items: center; justify-content: center; cursor: pointer; color: var(--text);
}
.nav-toggle svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 75% 20%, #17385c 0%, var(--ink-950) 55%);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.28;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 75%);
}
.hero-rig {
  position: absolute;
  inset-inline-end: 0;
  top: 0;
  bottom: 0;
  width: 56%;
  overflow: hidden;
}
.hero-rig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.8);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 55%, rgba(0,0,0,0) 100%);
          mask-image: linear-gradient(to left, rgba(0,0,0,1) 55%, rgba(0,0,0,0) 100%);
}
[dir="rtl"] .hero-rig img {
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 55%, rgba(0,0,0,0) 100%);
          mask-image: linear-gradient(to right, rgba(0,0,0,1) 55%, rgba(0,0,0,0) 100%);
}
.hero-rig::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,12,15,.15) 0%, rgba(10,12,15,.75) 100%);
}
.hero-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 130px;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  max-width: 16ch;
  color: #f7f8f9;
}
.hero h1 .gold { color: var(--amber-400); display: block; }
.hero-sub {
  margin-top: 22px;
  max-width: 50ch;
  font-size: 1.06rem;
}
.hero-actions { display: flex; gap: 16px; margin-top: 38px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; font-family: var(--font); font-weight: 700; font-size: 0.94rem;
  cursor: pointer; border: 1px solid transparent;
}
.btn-amber { background: var(--amber-500); color: #1a1206; }
.btn-amber:hover { background: var(--amber-400); }
.btn-outline { border-color: #3a4149; color: var(--text); }
.btn-outline:hover { border-color: var(--text); }

/* ---------- Page header ---------- */
.page-header {
  position: relative;
  padding: 74px 0 54px;
  background: linear-gradient(180deg, #132c48 0%, var(--ink-950) 100%);
  border-bottom: 1px solid var(--line);
}
.page-header h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); color: #f7f8f9; }
.page-header p { max-width: 60ch; margin-top: 14px; }

/* ---------- Cards / grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card {
  background: var(--ink-900);
  border: 1px solid var(--line);
  padding: 30px 24px;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--amber-600); }
.card .mark {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--amber-500);
  border-radius: 50%;
  margin-bottom: 20px;
  color: var(--amber-400);
}
.card .mark svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.card p { font-size: 0.94rem; }
.card .more {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px; font-size: 0.86rem; font-weight: 700; color: var(--amber-400);
}
.card .more svg { width: 14px; height: 14px; }
[dir="rtl"] .card .more svg { transform: scaleX(-1); }

.service-card { padding: 0; overflow: hidden; }
.service-card .top {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--navy-900), var(--ink-900));
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--line);
}
.service-card .top svg { width: 46px; height: 46px; color: var(--amber-400); }
.service-card .body { padding: 22px 22px 26px; }
.service-card h3 { font-size: 1rem; margin-bottom: 8px; }
.service-card p { font-size: 0.9rem; }

.why-band { background: var(--ink-900); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-item { text-align: center; padding: 8px; }
.why-item .mark {
  width: 54px; height: 54px; margin: 0 auto 16px;
  border: 1px solid var(--amber-500); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--amber-400);
}
.why-item .mark svg { width: 24px; height: 24px; }
.why-item h3 { font-size: 0.98rem; margin-bottom: 6px; }
.why-item p { font-size: 0.86rem; }

.steps { counter-reset: step; }
.step {
  display: flex; gap: 22px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: 0; }
.step .num {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border: 1px solid var(--amber-500);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: var(--amber-400); font-size: 1.05rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: 0.94rem; max-width: 60ch; }

.value-band {
  background: linear-gradient(135deg, var(--navy-900), var(--ink-900));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.value-band::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0;
  width: 6px; background: var(--amber-500);
}
.value-band h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); max-width: 24ch; color: #f7f8f9; }

.framed-photo {
  position: relative;
  border: 1px solid var(--line);
  padding: 10px;
  background: var(--ink-900);
}
.framed-photo::before {
  content: ""; position: absolute; top: -8px; inset-inline-start: -8px;
  width: 26px; height: 26px;
  border-top: 2px solid var(--amber-500); border-inline-start: 2px solid var(--amber-500);
}
.framed-photo::after {
  content: ""; position: absolute; bottom: -8px; inset-inline-end: -8px;
  width: 26px; height: 26px;
  border-bottom: 2px solid var(--amber-500); border-inline-end: 2px solid var(--amber-500);
}
.framed-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.framed-photo.ratio-4-3 img { aspect-ratio: 4/3; }
.art-panel {
  aspect-ratio: 4/3;
  background:
    radial-gradient(circle at 30% 20%, rgba(222,131,32,.18), transparent 45%),
    linear-gradient(160deg, var(--navy-900), var(--ink-950));
  display: flex; align-items: center; justify-content: center;
}
.art-panel svg { width: 62%; color: var(--amber-500); opacity: .9; }

/* ---------- Contact ---------- */
.contact-panel { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); background: var(--ink-900); }
.contact-panel > div { padding: 46px 40px; }
.contact-panel .info { border-inline-end: 1px solid var(--line); }
.contact-line { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-line:last-child { border-bottom: 0; }
.contact-line .mark {
  width: 40px; height: 40px; border: 1px solid var(--amber-500); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--amber-400);
}
.contact-line .mark svg { width: 18px; height: 18px; }
.contact-line span { display: block; font-size: 0.8rem; color: var(--text-soft); }
.contact-line strong { font-size: 1.02rem; }

.map-note { background: var(--ink-850); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; }
.map-note h3 { font-size: 1.02rem; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--ink-900); color: var(--text-muted); padding: 56px 0 24px; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 42px; }
footer.site-footer h4 { color: var(--text); font-size: 0.9rem; margin-bottom: 16px; }
footer.site-footer p { font-size: 0.9rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.9rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--amber-400); }
.footer-bottom { padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.8rem; color: var(--text-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-2 { grid-template-columns: 1fr; gap: 34px; }
  .grid-3, .grid-4, .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .contact-panel { grid-template-columns: 1fr; }
  .contact-panel .info { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .hero-rig { display: none; }
}
@media (max-width: 760px) {
  nav.main-nav {
    position: fixed; inset-inline-start: 0; top: 73px; width: 100%;
    background: var(--ink-950); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 10px 24px 20px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .2s ease;
  }
  nav.main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  nav.main-nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: inline-flex; }
  .grid-3, .grid-4, .grid-6, .why-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
