/* Firasa AI — components: nav, footer, buttons, cards, etc. */

/* ===== NAV ===== */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in oklch, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--line);
}
.site-nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 36px; height: 36px; object-fit: contain; }
[data-theme="dark"] .brand__mark { filter: brightness(1.2) saturate(1.1); }
.brand__word {
  font-family: var(--font-display);
  font-weight: 700; font-size: 19px; letter-spacing: -0.01em;
}
.brand__word-accent { color: var(--accent); }
html[dir="rtl"] .brand__word { font-family: var(--font-arabic); }

.nav-links { display: none; gap: 8px; align-items: center; }
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav-link {
  padding: 10px 16px;
  border-radius: var(--r-pill);
  font-size: 14px;
  color: var(--fg-muted);
  transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--fg); }
.nav-link--active { color: var(--fg); background: var(--bg-2); }

.nav-utils { display: flex; align-items: center; gap: 10px; }
.util-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 12px;
  color: var(--fg-muted);
  transition: color .2s, background .2s, border-color .2s;
}
.util-btn:hover { color: var(--fg); border-color: var(--line-strong); }
.nav-cta { display: none; font-size: 13px; padding: 10px 18px; }
@media (min-width: 720px) { .nav-cta { display: inline-flex; } }

.hamburger {
  display: inline-flex; flex-direction: column; gap: 4px;
  width: 40px; height: 40px; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 10px;
}
.hamburger span { width: 16px; height: 1.5px; background: var(--fg); display: block; }
@media (min-width: 960px) { .hamburger { display: none; } }

.mobile-panel {
  max-height: 0; overflow: hidden;
  transition: max-height .4s ease;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column;
  background: var(--bg-1);
}
.mobile-panel.open { max-height: 60vh; }
.mobile-panel a { padding: 16px var(--gutter); border-bottom: 1px solid var(--line); font-size: 18px; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  padding: 88px 0 32px;
  margin-top: 120px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-tag { color: var(--fg-muted); margin: 20px 0 24px; max-width: 340px; font-size: 14px; line-height: 1.65; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg-muted);
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}
.footer-social a:hover { color: var(--fg); border-color: var(--accent); background: color-mix(in oklch, var(--accent) 15%, transparent); transform: translateY(-2px); }
.footer-list { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 10px; }
.footer-list a { color: var(--fg-muted); transition: color .2s; font-size: 14px; }
.footer-list a:hover { color: var(--fg); }
.footer-list li { color: var(--fg-muted); font-size: 14px; }
.footer-list a[href^="tel:"] { unicode-bidi: plaintext; direction: ltr; display: inline-block; }
.footer-cta__text { color: var(--fg-muted); font-size: 14px; margin: 16px 0 22px; line-height: 1.65; }
.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 72px; padding-top: 24px;
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--fg-dim);
  flex-wrap: wrap; gap: 10px;
}

/* ===== TWEAKS ===== */
.tweaks {
  position: fixed; bottom: 20px;
  inset-inline-end: 20px;
  z-index: 100;
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 14px 16px;
  min-width: 240px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  font-size: 13px;
}
.tweaks__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.tweaks__close { font-size: 20px; color: var(--fg-muted); }
.tweaks__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; }
.tweaks__row input[type=range] { flex: 1; max-width: 120px; accent-color: var(--accent); }
.tweaks__row select, .tweaks__row input { background: var(--bg-2); border: 1px solid var(--line); color: var(--fg); border-radius: 6px; padding: 4px 8px; }

html.show-grid .container { background-image: linear-gradient(to right, var(--line) 1px, transparent 1px), linear-gradient(to bottom, var(--line) 1px, transparent 1px); background-size: calc(100% / 12) 100%, 100% 80px; }

html[data-density="compact"] { --section: clamp(48px, 7vw, 110px); --gutter: clamp(16px, 3vw, 48px); }

/* ===== SHARED CARDS ===== */
.card {
  border: 1px solid var(--line);
  background: var(--bg-1);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-4px); }

.tag {
  display: inline-flex; align-items: center;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #0A0812;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
}

/* Section intro (eyebrow + title + dotted + aside) */
.intro { margin-bottom: 64px; }
.intro__eyebrow { font-family: var(--font-mono); font-size: 13px; color: var(--fg-muted); letter-spacing: 0.16em; text-transform: uppercase; }
.intro__row { display: grid; grid-template-columns: 1fr; gap: 32px; margin-top: 16px; align-items: end; }
@media (min-width: 880px) { .intro__row { grid-template-columns: 2fr 1fr; gap: 60px; } }
.intro__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6.2vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
html[dir="rtl"] .intro__title { letter-spacing: 0; line-height: 1.2; }
.intro__aside { color: var(--fg-muted); font-size: 14px; line-height: 1.7; max-width: 360px; }
.intro__rule {
  margin-top: 48px;
  height: 1px;
  background: repeating-linear-gradient(to right, var(--line-strong) 0 2px, transparent 2px 10px);
}
