/* ═══════════════════════════════════════════════════════════════════════
   lenoko-landing — RTL-first Persian landing page
   Brand: Ebrahimi Production / بافندگی ابراهیمی
   Palette: emerald/teal accents on soft off-white
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --primary: #0d9488;
  --primary-strong: #0f766e;
  --accent: #10b981;

  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;

  --text: #0f172a;
  --text-muted: #64748b;

  --radius: 16px;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 18px 40px -8px rgba(13, 148, 136, 0.18);

  --font: "Vazirmatn", "Yekan Bakh", "Segoe UI", Tahoma, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* Sticky footer: main content grows, footer pinned to viewport bottom
   on short pages; flows naturally when content exceeds the viewport. */
main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ── Header ──────────────────────────────────────────────────────────── */

.site-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  display: inline-flex;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.brand-text strong {
  font-size: 1.05rem;
  color: var(--primary-strong);
}

.brand-text small {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.header-date {
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  white-space: nowrap;
}

/* ── Hero ────────────────────────────────────────────────────────────── */

.hero {
  padding-block: 4rem 2.5rem;
  text-align: center;
}

.hero-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.hero-title .accent {
  color: var(--primary);
}

.hero-subtitle {
  max-width: 620px;
  margin-inline: auto;
  color: var(--text-muted);
  font-size: clamp(0.95rem, 2.5vw, 1.08rem);
}

.hero-subtitle strong {
  color: var(--text);
}

/* ── Dashboard cards ─────────────────────────────────────────────────── */

.dashboards {
  padding-block: 1.5rem 4rem;
  flex: 1;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 820px;
  margin-inline: auto;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
}

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

.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.32rem 0.85rem;
  margin-bottom: 0.35rem;
}

.badge-sewing {
  color: var(--primary-strong);
  background: color-mix(in srgb, var(--primary) 12%, #ffffff);
}

.badge-weaving {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, #ffffff);
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  min-height: 2.9em;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.75rem;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
}

.card-cta svg {
  transition: transform 0.25s ease;
}

.card:hover .card-cta svg,
.card:focus-visible .card-cta svg {
  transform: translateX(-4px); /* RTL: arrow points left */
}

.card-url {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  align-self: flex-start;
}

.hint {
  text-align: center;
  margin-top: 2.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Footer ──────────────────────────────────────────────────────────── */

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-block: 1.1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-sep {
  color: var(--primary);
}

/* ── Reveal-on-scroll ────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .card,
  .card-cta svg {
    transition: none;
  }
}

/* ── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 720px) {
  .hero {
    padding-block: 2.75rem 1.75rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .card-desc {
    min-height: 0;
  }

  .header-date {
    display: none;
  }
}