/* Yalla English — shared site styles */

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

:root {
  --bg:        #f6f7f9;
  --surface:   #ffffff;
  --primary:   #1c3d5a;
  --accent:    #c8922a;
  --accent-lt: #fdf3e3;
  --text:      #1a1a2e;
  --muted:     #64748b;
  --border:    #e2e8f0;
  --radius:    12px;
  --max-w:     720px;
  --font:      -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

/* ── Nav ── */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.logo span { color: var(--accent); }
nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
nav a:hover { color: var(--primary); }
nav { display: flex; gap: 1.25rem; }

/* ── Main content ── */
main {
  flex: 1;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

/* ── Hero (home only) ── */
.hero {
  text-align: center;
  padding: 3.5rem 0 2rem;
}
.hero-badge {
  display: inline-block;
  background: var(--accent-lt);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 99px;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin-bottom: 1rem;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 2.25rem;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: opacity 0.15s, transform 0.12s;
  cursor: pointer;
  border: none;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-accent  { background: var(--accent);  color: #fff; }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--primary);
}

/* ── Card grid ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, transform 0.12s;
}
.card:hover { box-shadow: 0 4px 18px rgba(0,0,0,0.08); transform: translateY(-2px); }
.card-icon {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  display: block;
}
.card h3 { font-size: 0.95rem; font-weight: 700; color: var(--primary); margin-bottom: 0.35rem; }
.card p  { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }

/* ── Legal / prose pages ── */
.page-header { margin-bottom: 2.25rem; }
.page-header h1 {
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.page-meta { font-size: 0.82rem; color: var(--muted); }

.prose h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin: 2rem 0 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.prose h2:first-child { border-top: none; margin-top: 0; }
.prose h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
  margin: 1.25rem 0 0.35rem;
}
.prose p  { font-size: 0.93rem; color: #374151; margin-bottom: 0.75rem; }
.prose ul { font-size: 0.93rem; color: #374151; padding-left: 1.5rem; margin-bottom: 0.75rem; }
.prose ul li { margin-bottom: 0.3rem; }
.prose a  { color: var(--primary); text-decoration: underline; }

.callout {
  background: var(--accent-lt);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.callout strong { color: var(--primary); }

/* Steps */
.steps { list-style: none; padding: 0; counter-reset: steps; margin: 1rem 0 1.5rem; }
.steps li {
  counter-increment: steps;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.93rem;
  color: #374151;
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  content: counter(steps);
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 0.05rem;
}

/* ── Contact strip ── */
.contact-strip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  margin-top: 2.5rem;
  text-align: center;
}
.contact-strip p { font-size: 0.875rem; color: var(--muted); margin-bottom: 0.5rem; }
.contact-strip a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.contact-strip a:hover { text-decoration: underline; }

/* ── Footer ── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.25rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}
footer a { color: var(--muted); text-decoration: underline; }

/* ── Responsive tweaks ── */
@media (max-width: 480px) {
  .nav-inner { height: 54px; }
  main { padding-top: 1.75rem; }
  .hero { padding: 2rem 0 1rem; }
}
