/* Nala | نالَ — Premium minimal styling (Arabic-first, Apple-inspired) */

@font-face {
  font-family: "Thmanyah Serif Text";
  src: url("../fonts/thmanyahseriftext-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #FDF5E7;
  --surface: rgba(255, 255, 255, 0.62);
  --surface-strong: rgba(255, 255, 255, 0.82);
  --text: #3F3C3A;
  --muted: rgba(63, 60, 58, 0.72);
  --border: rgba(63, 60, 58, 0.14);

  --brand: #6D5841;
  --brand-2: #C4A873;
  --sand: #E0D4C0;

  --shadow: 0 18px 50px rgba(63, 60, 58, 0.10);
  --shadow-2: 0 10px 30px rgba(63, 60, 58, 0.10);
  --radius: 18px;
  --radius-sm: 14px;

  --max: 1120px;
  --pad: 20px;

  --font-ar: "Thmanyah Serif Text", ui-serif, "Noto Naskh Arabic", "Noto Kufi Arabic", serif;
  --font-en: "Thmanyah Serif Text", ui-serif, "SF Pro Display", "Helvetica Neue", serif;
}

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

body {
  margin: 0;
  background:
    radial-gradient(1200px 800px at 20% 10%, rgba(196, 168, 115, 0.22), transparent 55%),
    radial-gradient(900px 700px at 80% 0%, rgba(109, 88, 65, 0.14), transparent 60%),
    radial-gradient(1000px 900px at 70% 90%, rgba(224, 212, 192, 0.35), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body[dir="rtl"] { font-family: var(--font-ar); }
body[dir="ltr"] { font-family: var(--font-en); }

body,
h1, h2, h3, strong, .brand-title strong {
  font-weight: 300;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.skip-link {
  position: absolute;
  top: -40px;
  inset-inline-start: 12px;
  background: #fff;
  color: #000;
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 9999;
  border: 1px solid var(--border);
}
.skip-link:focus { top: 12px; }

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to bottom, rgba(253, 245, 231, 0.86), rgba(253, 245, 231, 0.62));
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(109, 88, 65, 0.18);
  box-shadow: var(--shadow-2);
  flex-shrink: 0;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.brand-title {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}
.brand-title strong {
  font-size: 15px;
  letter-spacing: 0.2px;
}
.brand-title span {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  padding: 0;
}
.nav-toggle svg { display: block; }

.nav-panel {
  display: contents;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.nav-links a {
  font-size: 13px;
  color: rgba(63, 60, 58, 0.86);
  padding: 8px 10px;
  border-radius: 12px;
  white-space: nowrap;
}
.nav-links a:hover { text-decoration: none; background: rgba(196, 168, 115, 0.10); }
.nav-links a[aria-current="page"] {
  background: rgba(196, 168, 115, 0.18);
  border: 1px solid rgba(196, 168, 115, 0.26);
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 20px rgba(63, 60, 58, 0.06);
  font-size: 13px;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
  font-family: inherit;
  color: inherit;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(63, 60, 58, 0.10);
  text-decoration: none;
}
.btn.primary {
  background: linear-gradient(135deg, rgba(109, 88, 65, 0.96), rgba(109, 88, 65, 0.84));
  color: #fff;
  border-color: rgba(109, 88, 65, 0.3);
}
.btn.primary:hover {
  background: linear-gradient(135deg, rgba(109, 88, 65, 1), rgba(109, 88, 65, 0.88));
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(63, 60, 58, 0.86);
  border: 1px solid rgba(63, 60, 58, 0.14);
  background: rgba(255, 255, 255, 0.55);
  padding: 8px 12px;
  border-radius: 999px;
}

main { padding: 34px 0 28px; }

.hero { padding: 34px 0 10px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 26px;
  align-items: start;
}

.card {
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.46));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 26px;
  overflow: hidden;
  position: relative;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: -120px -120px auto auto;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(196, 168, 115, 0.28), transparent 55%);
  transform: rotate(12deg);
  pointer-events: none;
}

.hero-card h1 {
  margin: 0 0 12px;
  font-size: 40px;
  letter-spacing: -0.6px;
  line-height: 1.18;
  position: relative;
}
.hero-card p {
  margin: 0 0 18px;
  color: rgba(63, 60, 58, 0.82);
  font-size: 16px;
  max-width: 62ch;
  position: relative;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
}

.subtle {
  color: var(--muted);
  font-size: 13px;
}

.side-card { padding: 18px; }

.hero-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.hero-logo img {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  box-shadow: var(--shadow-2);
}

.mock {
  border-radius: 18px;
  border: 1px solid rgba(63, 60, 58, 0.12);
  background: linear-gradient(180deg, rgba(253, 245, 231, 0.8), rgba(255, 255, 255, 0.55));
  overflow: hidden;
  position: relative;
  padding: 18px;
  min-height: 320px;
}

.mock-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(63, 60, 58, 0.10);
  margin-bottom: 14px;
}
.mock-top strong { font-size: 13px; }

.mock-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(196, 168, 115, 0.26);
  background: rgba(196, 168, 115, 0.14);
}

.mock-list {
  display: grid;
  gap: 10px;
}

.mock-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-top: 6px;
  background: rgba(109, 88, 65, 0.86);
  box-shadow: 0 6px 14px rgba(109, 88, 65, 0.18);
  flex-shrink: 0;
}

.mock-item p {
  margin: 0;
  font-size: 13px;
  color: rgba(63, 60, 58, 0.78);
}

.section { margin-top: 26px; }

.section h2 {
  font-size: 22px;
  margin: 0 0 12px;
  letter-spacing: -0.2px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature { padding: 16px; }
.feature h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.feature p {
  margin: 0;
  color: rgba(63, 60, 58, 0.78);
  font-size: 13.5px;
}

.kicker {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 10px;
  position: relative;
}

hr.sep {
  border: none;
  border-top: 1px solid rgba(63, 60, 58, 0.12);
  margin: 22px 0;
}

.page-title { padding: 18px; }
.page-title h1 {
  margin: 0 0 8px;
  font-size: 28px;
}
.page-title p {
  margin: 0;
  color: rgba(63, 60, 58, 0.78);
}

.content-card { padding: 18px; }
.content-card h2 {
  margin: 0 0 10px;
  font-size: 18px;
}
.content-card p,
.content-card li {
  color: rgba(63, 60, 58, 0.82);
}
.content-card ul {
  padding-inline-start: 18px;
  margin: 10px 0 0;
}

footer {
  padding: 26px 0 36px;
  border-top: 1px solid var(--border);
  background: linear-gradient(to bottom, rgba(253, 245, 231, 0.44), rgba(253, 245, 231, 0.68));
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-links a {
  font-size: 13px;
  color: rgba(63, 60, 58, 0.78);
}

small { color: rgba(63, 60, 58, 0.66); }

.contact-details {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.contact-details .btn {
  justify-content: flex-start;
  width: fit-content;
}

.footer-developer {
  display: block;
  margin-top: 6px;
  color: rgba(63, 60, 58, 0.58);
  font-size: 12px;
}

/* Bilingual blocks */
.i18n-block { display: none; }
html[lang="ar"] .i18n-ar { display: block; }
html[lang="en"] .i18n-en { display: block; }
html[lang="ar"] span.i18n-ar,
html[lang="en"] span.i18n-en { display: inline; }

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
}

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

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }

  .nav-panel {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    background: rgba(253, 245, 231, 0.96);
    border-bottom: 1px solid var(--border);
    padding: 14px var(--pad) 18px;
    box-shadow: var(--shadow-2);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  header .container { position: relative; }

  .nav-panel.is-open { display: block; }

  .nav-panel .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav-panel .nav-links a {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .nav-panel .nav-actions {
    margin-top: 12px;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .brand-title span { display: none; }
}

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

@media (max-width: 520px) {
  .hero-card h1 { font-size: 32px; }
  .hero-actions .subtle { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}
