:root {
  --bg: #0a0908;
  --bg-elev: #12100e;
  --bg-card: #161310;
  --bg-card-hover: #1d1915;
  --ink: #f6f1e8;
  --muted: #b7a99a;
  --faint: #8a7d70;
  --gold: #d4b16a;
  --gold-bright: #f0d78c;
  --gold-dim: #8a7344;
  --line: rgba(212, 177, 106, 0.22);
  --line-strong: rgba(212, 177, 106, 0.45);
  --wa: #25d366;
  --wa-ink: #06240f;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --header-h: 4.25rem;
  --font-display: "Cairo", "IBM Plex Sans Arabic", sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Cairo", sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.8;
  min-height: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip {
  position: absolute;
  right: 1rem;
  top: -4rem;
  background: var(--gold);
  color: #1a1408;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  z-index: 100;
}
.skip:focus { top: 0.6rem; }

/* atmosphere */
.atmosphere {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(212, 177, 106, 0.16), transparent 55%),
    radial-gradient(ellipse 40% 30% at 100% 20%, rgba(110, 28, 40, 0.12), transparent 50%),
    radial-gradient(ellipse 40% 30% at 0% 80%, rgba(212, 177, 106, 0.05), transparent 50%);
}
.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.07;
  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='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(10, 9, 8, 0.72);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--max), calc(100% - 2rem));
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.55rem;
  letter-spacing: 0;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
  position: relative;
}
.wordmark::after {
  content: "";
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--gold);
  margin-top: 0.28rem;
  margin-inline-start: auto;
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1rem;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--gold-dim); }
.nav .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--gold);
  color: #1a1408;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 0.92rem;
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  border: 0;
  line-height: 1.2;
}
.nav .nav-cta:hover {
  background: var(--gold-bright);
  border-bottom-color: transparent;
  color: #1a1408;
}

/* hero */
.hero {
  position: relative;
  z-index: 1;
  padding: 3.2rem 0 4.2rem;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
}
.kicker {
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.kicker::before,
.kicker::after {
  content: "";
  height: 1px;
  width: 2rem;
  background: var(--gold-dim);
  display: block;
}
.kicker::after { display: none; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 8.4vw, 4.15rem);
  line-height: 1.28;
  margin: 0 0 1.25rem;
  max-width: 18ch;
}
.hero h1 .line { display: block; }
.hero h1 .gold { color: var(--gold-bright); }
.hero h1 { max-width: 18ch; }
.lead {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 36rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: var(--wa);
  color: var(--wa-ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.22);
}
.btn-wa:hover { filter: brightness(1.06); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  color: var(--gold-bright);
  text-decoration: none;
  font-weight: 600;
  padding: 0.85rem 0.4rem;
  border-bottom: 1px solid var(--line-strong);
}
.btn-ghost:hover { color: var(--ink); }

.wa-icon { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; fill: currentColor; }

/* sections */
.section {
  position: relative;
  z-index: 1;
  padding: 3.5rem 0 4rem;
}
.section-head {
  margin-bottom: 1.8rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  margin: 0.2rem 0 0.5rem;
  line-height: 1.3;
}
.section-head p { margin: 0; color: var(--muted); max-width: 36rem; }

.services {
  display: grid;
  gap: 1rem;
}
.card {
  background: linear-gradient(180deg, var(--bg-card) 0%, #110f0c 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.4rem;
  box-shadow: var(--shadow);
}
.service .num {
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.55rem;
}
.service h3 {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 800;
  margin: 0 0 0.55rem;
  line-height: 1.4;
}
.service p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.tag {
  font-size: 0.78rem;
  color: var(--gold-bright);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  background: rgba(212, 177, 106, 0.06);
}

/* portfolio links */
.works-grid {
  display: grid;
  gap: 1rem;
}
.work-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 10.5rem;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.work-link:hover {
  border-color: var(--line-strong);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.work-link .eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
}
.work-link h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 0.45rem;
}
.work-link p { margin: 0; color: var(--muted); font-size: 0.95rem; flex: 1; }
.work-link .go {
  margin-top: 1rem;
  color: var(--gold-bright);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.work-link.is-disabled,
.work-link.is-disabled:hover {
  cursor: default;
  transform: none;
  opacity: 0.72;
  pointer-events: none;
}
.work-link.is-disabled .go { color: var(--faint); }

/* samples */
.samples-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  margin: 2.4rem 0 1rem;
}
.samples {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.sample {
  margin: 0;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.sample img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: center top;
  background: #111;
}
.sample figcaption {
  padding: 0.7rem 0.75rem 0.85rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

/* contact */
.contact-panel {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(212, 177, 106, 0.16), transparent 50%),
    linear-gradient(180deg, var(--bg-card) 0%, #110f0c 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2rem 1.3rem;
  text-align: center;
}
.contact-panel h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 5.5vw, 2.5rem);
  margin: 0 0 0.7rem;
  line-height: 1.35;
}
.contact-panel p { color: var(--muted); margin: 0 0 1.5rem; }

footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 6.5rem;
  color: var(--faint);
  font-size: 0.88rem;
}
footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--gold-bright); }

/* floating WhatsApp — physical left so it stays clear of typical right-thumb scroll */
.wa-float {
  position: fixed;
  z-index: 50;
  left: 1rem;
  bottom: 1rem;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: var(--wa);
  color: #06240f;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.38);
  text-decoration: none;
}
.wa-float svg { width: 1.7rem; height: 1.7rem; fill: currentColor; }
.wa-float:hover { filter: brightness(1.05); }
.wa-float span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@media (min-width: 720px) {
  .hero { padding: 4.5rem 0 5.5rem; }
  .hero h1 { max-width: none; }
  .kicker::after { display: block; }
  .services { grid-template-columns: repeat(3, 1fr); }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .samples { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
  .contact-panel { padding: 3.2rem 2.5rem; }
  footer { padding-bottom: 2.2rem; }
  .wa-float { display: none; } /* header + hero CTAs are enough on desktop; keep float on mobile */
}

@media (min-width: 980px) {
  .works-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .work-link { transition: none; }
}
