/* Baanrian landing page — Direction B "The Day Garden". */
:root {
  --bg: #FBF6EC;
  --card: #FFFFFF;
  --ink: #1F1D18;
  --ink-soft: #6B6657;
  --ink-faint: #A39C89;
  --rule: rgba(31,29,24,0.08);
  --green: #1A4D3A;
  --green-bright: #2F7D5E;
  --saffron: #D4A449;
  --saffron-deep: #A37621;
  --oxblood: #9A3018;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --thai: 'IBM Plex Sans Thai', system-ui, sans-serif;
  --arabic: 'Amiri', serif;
}

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

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ─── Topbar ─────────────────────────────────────────────────── */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px;
  max-width: 1100px;
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.3px;
}
.nav {
  display: flex; gap: 22px; align-items: center;
  font-size: 14px;
  color: var(--ink-soft);
}
.nav .cta-link {
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 13px;
}
.nav .cta-link:hover { text-decoration: none; background: #2c2924; }

@media (max-width: 720px) {
  .nav a:not(.cta-link) { display: none; }
}

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  padding: 64px 32px 80px;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.hero-art { display: flex; justify-content: center; margin-bottom: 28px; }
.hero-art svg { animation: bloom 1.6s ease-out both; }
@keyframes bloom { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.wordmark {
  font-family: var(--serif);
  font-size: clamp(54px, 9vw, 88px);
  font-weight: 500;
  letter-spacing: -1.4px;
  line-height: 1;
}
.thai-sub {
  font-family: var(--thai);
  font-size: 15px;
  color: var(--ink-soft);
  margin-top: 10px;
}
.tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.3vw, 24px);
  color: var(--ink);
  line-height: 1.45;
  margin-top: 28px;
}

.cta-row {
  display: flex; justify-content: center; gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.cta {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.12s ease, background 0.12s ease;
}
.cta.primary { background: var(--ink); color: #fff; }
.cta.primary:hover { background: var(--green); text-decoration: none; transform: translateY(-1px); }
.cta.secondary { background: transparent; color: var(--ink); border: 1px solid var(--rule); }
.cta.secondary:hover { background: rgba(0,0,0,0.04); text-decoration: none; }

.subjects-row {
  margin-top: 22px;
  font-size: 12px;
  letter-spacing: 0.4px;
  color: var(--ink-faint);
}

/* ─── Generic section ────────────────────────────────────────── */
.section {
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 32px;
  border-top: 1px solid var(--rule);
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
}
.serif-h {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 500;
  letter-spacing: -0.4px;
  line-height: 1.18;
  margin-top: 10px;
}
.lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-soft);
  margin-top: 12px;
  max-width: 560px;
  line-height: 1.5;
}

/* ─── How-it-works grid ──────────────────────────────────────── */
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 32px;
}
.how-grid article {
  background: var(--card);
  border-radius: 16px;
  padding: 22px 22px 24px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.how-grid .step {
  display: inline-block;
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: var(--saffron-deep);
}
.how-grid h3 { font-family: var(--serif); font-size: 19px; font-weight: 500; margin-top: 6px; }
.how-grid p { margin-top: 8px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; }

/* ─── Subjects grid ──────────────────────────────────────────── */
.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.subject {
  background: var(--card);
  border-radius: 18px;
  padding: 20px 20px 22px;
  position: relative;
  overflow: hidden;
}
.subject::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--c, var(--green));
  opacity: 0.85;
}
.subject .glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--soft);
  color: var(--c);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
}
.subject h3 { font-family: var(--serif); font-size: 19px; font-weight: 500; color: var(--c); }
.subject .ar {
  font-family: var(--arabic);
  font-size: 16px;
  color: var(--ink-soft);
  direction: rtl;
  text-align: right;
  margin-top: 2px;
}
.subject p { margin-top: 10px; color: var(--ink-soft); font-size: 14px; line-height: 1.55; }

/* ─── Quote ──────────────────────────────────────────────────── */
.quote {
  text-align: center;
  background: var(--green);
  color: #fff;
  border-top: 0;
  padding: 60px 32px;
  border-radius: 24px;
  max-width: 880px;
  margin: 24px auto;
}
.quote .ayah {
  font-family: var(--arabic);
  font-size: clamp(28px, 5vw, 40px);
  direction: rtl;
  line-height: 1.6;
}
.quote .ayah-tr {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  margin-top: 14px;
  opacity: 0.85;
  line-height: 1.5;
}

/* ─── Final CTA ──────────────────────────────────────────────── */
.cta-block { text-align: center; padding-bottom: 80px; }
.cta-block .lede { margin-left: auto; margin-right: auto; margin-bottom: 30px; }

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--rule);
  padding: 36px 32px 60px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-faint);
}
.footer .legal { margin-top: 10px; }
.footer .legal a { padding: 0 8px; }
.footer .builtwith { margin-top: 10px; opacity: 0.8; }
