@font-face {
  font-family: "Alexandria";
  src: url("../fonts/alexandria-var.woff") format("woff"),
       url("../fonts/alexandria-var.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f3efe6;
  --bg-alt: #ebe6da;
  --paper: #fffcf6;
  --ink: #14211f;
  --ink-soft: #3a4a47;
  --muted: #5d6b67;
  --line: #d8d1c3;
  --accent: #1f5c54;
  --accent-deep: #143c38;
  --gold: #9a7043;
  --gold-soft: #c4a06a;
  --header-h: 4.25rem;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(20, 33, 31, 0.08);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

html[lang="ar"] [data-lang="en"],
html[lang="en"] [data-lang="ar"] {
  display: none;
}

body {
  margin: 0;
  font-family: "Alexandria", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(31, 92, 84, 0.06), transparent 60%),
    var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-deep);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -3rem;
  z-index: 80;
  background: var(--accent);
  color: var(--paper);
  padding: 0.4rem 0.8rem;
  border-radius: 0 0 8px 8px;
}

.skip-link:focus {
  top: 0;
  color: var(--paper);
}

.wrap {
  width: min(1080px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 86%, white);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-inline-end: auto;
}

.brand:hover {
  color: var(--accent-deep);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.15rem;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--accent);
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 0.15rem;
  flex-shrink: 0;
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1.4;
}

.lang-btn.is-active {
  background: var(--accent);
  color: #f6f3ec;
}

.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--line);
}

.kicker {
  margin: 0 0 0.85rem;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

html[lang="en"] .kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero h1 {
  margin: 0 0 1.1rem;
  max-width: 18em;
  font-size: clamp(1.85rem, 4.4vw, 3.15rem);
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0 0 2rem;
  max-width: 38rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.services li {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
}

.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

.section-head {
  margin-bottom: 2.2rem;
  max-width: 40rem;
}

.section-head h2,
.contact-panel h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
}

.category-block {
  margin-bottom: 2.5rem;
}

.category-block:last-child {
  margin-bottom: 0;
}

.category-block h3 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 600;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
  padding: 0;
  font: inherit;
  text-align: start;
  width: 100%;
}

.card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  color: inherit;
}

.card-thumb {
  aspect-ratio: 3 / 4;
  background: #e7e1d4;
  overflow: hidden;
  position: relative;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
}

.card-body {
  padding: 0.95rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.card-type {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-transform: uppercase;
}

.card-body h4 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.4;
}

.card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.empty-state {
  background: var(--paper);
  border: 1px dashed color-mix(in srgb, var(--gold) 45%, var(--line));
  border-radius: var(--radius);
  padding: 2.2rem 1.4rem;
  text-align: center;
  color: var(--ink-soft);
}

.empty-state .empty-mark {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--bg);
}

.empty-state strong {
  display: block;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 650;
  margin-bottom: 0.35rem;
}

.empty-state p {
  margin: 0 auto;
  max-width: 32rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  counter-reset: none;
}

.steps li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem 1.5rem;
  box-shadow: var(--shadow);
}

.step-num {
  display: block;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.steps h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.steps p {
  margin: 0;
  color: var(--ink-soft);
}

.contact {
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

.contact-panel {
  background: linear-gradient(165deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #f4efe6;
  border-radius: 22px;
  padding: clamp(1.8rem, 4vw, 3rem);
  box-shadow: 0 16px 40px rgba(20, 60, 56, 0.2);
}

.kicker-light {
  color: var(--gold-soft);
}

.contact-panel h2 {
  color: #fffcf6;
}

.contact-panel p {
  margin: 0;
  max-width: 40rem;
  color: color-mix(in srgb, #fffcf6 82%, #1f5c54);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  justify-content: space-between;
  align-items: baseline;
}

.footer-inner p {
  margin: 0;
}

.footer-note {
  max-width: 36rem;
}


.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
}

.sample-badge {
  display: inline-flex;
  align-items: center;
  background: #9a7043;
  color: #fffcf6;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
}

html[lang="en"] .sample-badge {
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-thumb .sample-badge,
.lightbox-preview .sample-badge {
  position: absolute;
  inset-block-start: 0.55rem;
  inset-inline-start: 0.55rem;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(20, 33, 31, 0.18);
}

.thumb-watermark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 1;
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: 0.08em;
  color: rgba(20, 33, 31, 0.2);
  transform: rotate(-22deg);
  user-select: none;
  text-shadow: 0 0 12px rgba(255, 252, 246, 0.55);
}

html[lang="en"] .thumb-watermark {
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lightbox-preview {
  position: relative;
  margin-bottom: 0.9rem;
  background: #e7e1d4;
  border-radius: 10px;
  overflow: hidden;
}

.lightbox-preview img {
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  margin-bottom: 0;
}

.lightbox-preview .thumb-watermark {
  font-size: clamp(2rem, 6vw, 3.4rem);
  color: rgba(20, 33, 31, 0.16);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 22, 20, 0.72);
}

.lightbox-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(840px, 100%);
  max-height: calc(100vh - 3rem);
  overflow: auto;
  background: var(--paper);
  border-radius: 18px;
  padding: 1.2rem 1.2rem 1.4rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.lightbox-dialog img {
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
  background: #e7e1d4;
  border-radius: 10px;
  margin-bottom: 0.9rem;
}

.lightbox-dialog h3 {
  margin: 0 0 0.35rem;
}

.lightbox-dialog p {
  margin: 0 0 0.9rem;
  color: var(--ink-soft);
}

.lightbox-close {
  appearance: none;
  align-self: flex-end;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  cursor: pointer;
  margin-bottom: 0.6rem;
}

.grid.is-empty {
  grid-template-columns: 1fr;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 800px) {
  .steps {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding-block: 0.7rem;
  }

  .site-header {
    height: auto;
  }

  .brand {
    margin-inline-end: 0;
  }

  .lang-switch {
    margin-inline-start: auto;
  }

  .nav {
    width: 100%;
    order: 3;
  }
}

@media (max-width: 520px) {
  .wrap {
    width: min(1080px, calc(100% - 1.5rem));
  }

  .hero h1 {
    font-size: 1.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .card {
    transition: none;
  }
}
