:root {
  --color-bg: #fbf7ef;
  --color-surface: #ffffff;
  --color-ink: #1c1b18;
  --color-ink-soft: #4a4a44;
  --color-muted: #8a8a82;
  --color-line: #e7e1d3;
  --color-accent: #b98730;
  --color-accent-deep: #8a6120;
  --color-accent-soft: #f3e8cf;
  --color-dark: #181c17;
  --color-dark-2: #24291f;
  --color-danger: #b0382b;
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 12px rgba(24, 28, 23, 0.06);
  --shadow-md: 0 18px 40px -18px rgba(24, 28, 23, 0.28);
  --nav-h: 78px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --container: 1200px;
}

[dir="rtl"] {
  --font-sans: "Noto Kufi Arabic", "Inter", system-ui, sans-serif;
  --font-display: "Noto Kufi Arabic", "Cormorant Garamond", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(8px);
  background: rgba(251, 247, 239, 0.72);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.nav.is-scrolled {
  background: rgba(251, 247, 239, 0.94);
  border-bottom-color: var(--color-line);
  box-shadow: var(--shadow-sm);
}
.nav__inner {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__logo img { height: 34px; width: auto; }
.nav__links {
  display: flex;
  gap: 34px;
  margin-inline-start: auto;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.nav__links a {
  position: relative;
  padding: 6px 2px;
  color: var(--color-ink-soft);
  transition: color 0.2s ease;
}
.nav__links a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-accent);
  transition: width 0.25s ease;
}
.nav__links a:hover { color: var(--color-ink); }
.nav__links a:hover::after { width: 100%; }

.nav__lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.lang-btn {
  padding: 4px 2px;
  color: var(--color-muted);
  transition: color 0.2s ease;
}
.lang-btn.is-active { color: var(--color-ink); }
.lang-btn:hover { color: var(--color-accent); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  padding: 4px;
}
.nav__burger span {
  display: block;
  height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border: 1.5px solid transparent;
}
.btn--primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(185, 135, 48, 0.6);
}
.btn--primary:hover { background: var(--color-accent-deep); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.btn--sm { padding: 10px 20px; font-size: 13px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 80px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: url("assets/i.webp") center / cover no-repeat;
  transform: scale(1.04);
  animation: heroZoom 16s ease-out forwards;
  z-index: -2;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(10, 14, 8, 0.78) 0%, rgba(10, 14, 8, 0.38) 55%, rgba(10, 14, 8, 0.1) 100%),
    linear-gradient(180deg, rgba(10, 14, 8, 0.2) 0%, rgba(10, 14, 8, 0.55) 100%);
  z-index: -1;
}
@keyframes heroZoom {
  to { transform: scale(1); }
}
.hero__content {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
  max-width: 820px;
  animation: heroIn 1s cubic-bezier(0.2, 0.7, 0.1, 1) both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.08);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(42px, 6.2vw, 88px);
  line-height: 1.02;
  margin: 22px 0 20px;
  letter-spacing: -0.01em;
}
.hero__subtitle {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 16px;
}
.hero__tags {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
  margin: 0 0 36px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.hero__scroll span {
  width: 2px;
  height: 8px;
  background: #fff;
  border-radius: 2px;
  animation: scrollPulse 1.6s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: translateY(-6px); opacity: 0.3; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* ---------- Section shared ---------- */
.section-kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 18px;
}
.section-kicker--light { color: var(--color-accent-soft); }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
}
.section-title--light { color: #fff; }

.section-lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-ink-soft);
  max-width: 560px;
  margin: 0 0 32px;
}
.section-lead--light { color: rgba(255, 255, 255, 0.82); }

/* ---------- About ---------- */
.about { padding: clamp(80px, 10vw, 140px) 0; }
.about__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.about__list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}
.about__list li {
  position: relative;
  padding-inline-start: 22px;
  font-weight: 500;
  color: var(--color-ink);
  font-size: 15.5px;
}
.about__list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 10px;
  width: 10px;
  height: 2px;
  background: var(--color-accent);
}
.about__stats {
  display: flex;
  gap: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--color-line);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__num {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1;
  color: var(--color-accent-deep);
  font-weight: 600;
}
.stat__label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-weight: 600;
}

.about__art { margin: 0; position: relative; }
.about__frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 5 / 6;
}
.about__frame img { width: 100%; height: 100%; object-fit: cover; }
.about__frame::before {
  content: "";
  position: absolute;
  inset: -20px;
  border: 1px solid var(--color-accent-soft);
  border-radius: calc(var(--radius-lg) + 20px);
  pointer-events: none;
}
.about__art figcaption {
  margin-top: 22px;
  padding-inline-start: 16px;
  border-inline-start: 2px solid var(--color-accent);
  font-size: 14px;
  color: var(--color-ink-soft);
  font-style: italic;
}

/* ---------- Areas ---------- */
.areas {
  position: relative;
  padding: clamp(90px, 11vw, 160px) 0;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.areas__bg {
  position: absolute;
  inset: 0;
  background: url("assets/i-2.webp") center / cover no-repeat;
  z-index: -2;
}
.areas__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 22, 16, 0.85) 0%, rgba(18, 22, 16, 0.92) 100%);
  z-index: -1;
}
.areas__head {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}
.areas__head .section-lead { margin-inline: auto; }

.areas__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.area-card {
  position: relative;
  padding: 34px 28px 30px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}
.area-card:hover {
  transform: translateY(-4px);
  background: rgba(185, 135, 48, 0.12);
  border-color: rgba(185, 135, 48, 0.5);
}
.area-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(185, 135, 48, 0.18);
  color: var(--color-accent-soft);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}
.area-card__icon svg { width: 28px; height: 28px; }
.area-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.15;
  margin: 0 0 10px;
  color: #fff;
}
.area-card__text {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.74);
  margin: 0;
}
.area-card__num {
  position: absolute;
  top: 18px;
  inset-inline-end: 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.35);
}

/* ---------- Contact ---------- */
.contact {
  padding: clamp(80px, 10vw, 140px) 0;
  background: linear-gradient(180deg, var(--color-bg) 0%, #f5ead3 100%);
}
.contact__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact__info {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 18px;
}
.contact__info li {
  display: grid;
  gap: 4px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-line);
}
.contact__info li:last-child { border-bottom: none; }
.contact__info-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
}
.contact__info-value {
  font-size: 15.5px;
  color: var(--color-ink);
  line-height: 1.55;
}
a.contact__info-value { transition: color 0.2s ease; }
a.contact__info-value:hover { color: var(--color-accent); }

.contact__form {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 44px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 20px;
  box-shadow: var(--shadow-md);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-weight: 600;
}
.field input,
.field textarea {
  font: inherit;
  color: var(--color-ink);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--color-line);
  padding: 10px 0 12px;
  outline: none;
  transition: border-color 0.2s ease;
  border-radius: 0;
  width: 100%;
  resize: vertical;
}
.field textarea {
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  min-height: 110px;
}
.field input:focus,
.field textarea:focus { border-color: var(--color-accent); }
.field.is-error input,
.field.is-error textarea { border-color: var(--color-danger); }
.field__error {
  min-height: 16px;
  font-size: 12.5px;
  color: var(--color-danger);
  font-weight: 500;
}
.contact__submit {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.contact__status {
  margin: 0;
  font-size: 14px;
  color: var(--color-ink-soft);
}
.contact__status.is-success { color: #2f7a3a; }
.contact__status.is-error { color: var(--color-danger); }

/* ---------- Footer ---------- */
.footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.72);
  padding: 72px 0 26px;
}
.footer a { transition: color 0.2s ease; }
.footer a:hover { color: var(--color-accent); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1.2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer__brand img {
  height: 32px;
  filter: invert(1);
  margin-bottom: 16px;
}
.footer__brand p { margin: 0; font-size: 14px; color: rgba(255, 255, 255, 0.6); max-width: 280px; }
.footer__label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 14px;
}
.footer__block p { margin: 0; font-size: 14.5px; line-height: 1.7; }
.footer__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed;
  inset: auto 24px 24px 24px;
  z-index: 60;
  max-width: 720px;
  margin-inline: auto;
  background: var(--color-dark-2);
  color: rgba(255, 255, 255, 0.85);
  padding: 18px 22px;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 56px -20px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13.5px;
  line-height: 1.55;
  transform: translateY(calc(100% + 40px));
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.cookie.is-visible { transform: none; opacity: 1; }
.cookie p { margin: 0; flex: 1; }
.cookie .btn { flex-shrink: 0; }

/* ---------- RTL tweaks ---------- */
[dir="rtl"] .hero__title,
[dir="rtl"] .hero__subtitle,
[dir="rtl"] .hero__tags,
[dir="rtl"] .section-title,
[dir="rtl"] .section-lead { letter-spacing: 0; }
[dir="rtl"] .hero__content { max-width: 760px; }
[dir="rtl"] .eyebrow { letter-spacing: 0.08em; }
[dir="rtl"] .section-kicker,
[dir="rtl"] .stat__label,
[dir="rtl"] .area-card__num,
[dir="rtl"] .footer__label,
[dir="rtl"] .field label,
[dir="rtl"] .contact__info-label { letter-spacing: 0.06em; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .about__grid { grid-template-columns: 1fr; }
  .about__frame { aspect-ratio: 4 / 3; }
  .areas__grid { grid-template-columns: 1fr 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__form { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .hero__cta .btn { flex: 1; min-width: 140px; }
  .about__list { grid-template-columns: 1fr; }
  .about__stats { flex-wrap: wrap; gap: 20px 28px; }
  .areas__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__meta { flex-direction: column; align-items: flex-start; }
  .cookie { flex-direction: column; align-items: flex-start; }
}

/* Mobile menu open state */
.nav.is-open .nav__links {
  display: flex;
  position: absolute;
  top: var(--nav-h);
  inset-inline: 0;
  flex-direction: column;
  gap: 0;
  background: var(--color-surface);
  padding: 10px 24px 24px;
  border-bottom: 1px solid var(--color-line);
  box-shadow: var(--shadow-sm);
}
.nav.is-open .nav__links a {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-line);
}
.nav.is-open .nav__links a:last-child { border-bottom: none; }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}