/* Taibah Kids — matches the app palette (lib/core/theme/app_colors.dart) */
:root {
  --primary: #1D5C4A;
  --primary-dark: #144537;
  --secondary: #7B9D7E;
  --accent: #C8A96A;
  --background: #F6F2E8;
  --surface: #FFFCF6;
  --error: #B9554D;
  --text: #22302B;
  --text-muted: rgba(34, 48, 43, 0.6);
  --radius: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.65;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header ─────────────────────────────────────────────────────────── */
header {
  background: var(--surface);
  border-bottom: 1px solid rgba(29, 92, 74, 0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--primary);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.brand span {
  font-size: 1.2rem;
  font-weight: 700;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-right nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

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

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

/* ── Language switcher (real page-language links) ────────────────────── */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(29, 92, 74, 0.06);
  border-radius: 999px;
  padding: 3px;
}

.lang-switch a {
  display: inline-block;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 999px;
}

.lang-switch a:hover {
  color: var(--primary);
}

.lang-switch a.active {
  background: var(--primary);
  color: #fff;
}

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 72px 20px 56px;
}

.hero img.app-icon {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  box-shadow: 0 8px 28px rgba(29, 92, 74, 0.18);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 2.4rem;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 12px;
}

.hero p.tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 28px;
}

/* Informational only — not a control. No border/hover/pointer, so it never
   reads as clickable the way the real .lang-switch links do. */
.lang-availability {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.lang-availability .label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
}

.lang-availability .lang-tag {
  color: #8a6f38;
  font-weight: 600;
}

.lang-availability .lang-tag:not(:last-child)::after {
  content: '·';
  margin-inline-start: 8px;
  color: var(--text-muted);
  font-weight: 400;
}

/* ── Sections & cards ───────────────────────────────────────────────── */
section {
  padding: 40px 0;
}

h2.section-title {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 8px;
  padding-inline-start: 14px;
  border-inline-start: 4px solid var(--accent);
}

p.section-sub {
  color: var(--text-muted);
  margin-bottom: 28px;
  padding-inline-start: 18px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 2px 10px rgba(29, 92, 74, 0.06);
}

.card .icon-bubble {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(29, 92, 74, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.card h3 {
  color: var(--primary);
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card ul {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding-inline-start: 20px;
  margin-top: 6px;
}

.card ul li {
  margin-bottom: 5px;
}

/* ── Steps (deletion page) ──────────────────────────────────────────── */
.steps {
  counter-reset: step;
  list-style: none;
}

.steps li {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px 24px 20px 68px;
  margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(29, 92, 74, 0.06);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  inset-inline-start: 20px;
  top: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.steps li strong {
  color: var(--primary);
}

.notice {
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 18px 0;
  font-size: 0.95rem;
}

.notice.info {
  background: rgba(123, 157, 126, 0.14);
  border: 1px solid rgba(123, 157, 126, 0.4);
}

.notice.warning {
  background: rgba(185, 85, 77, 0.08);
  border: 1px solid rgba(185, 85, 77, 0.35);
  color: #7c3a35;
}

/* ── Footer ─────────────────────────────────────────────────────────── */
footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.85);
  padding: 32px 0;
  margin-top: 48px;
  font-size: 0.9rem;
}

footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .nav {
    flex-wrap: wrap;
    gap: 12px;
  }
  .nav-right {
    flex-wrap: wrap;
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 1.9rem; }
  .steps li { padding-inline-start: 62px; }
}
