/* ============================================================
   Todo-Lo — Marketing shared stylesheet  (WO-159)
   ------------------------------------------------------------
   Single source of truth for design tokens + the shared nav
   drawer + the informative-page ("doc") typography.
   Tokens mirror .claude/skills/todolo-design/colors_and_type.css.
   Per-page layout CSS stays inline in each page and, being later
   in the cascade, overrides anything here on the existing pages.
   ============================================================ */

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

:root {
  /* ---------- Brand color (raw) ---------- */
  --color-terracotta:       #D85A30;
  --color-terracotta-dark:  #C04E28;
  --color-teal:             #1B7A5E;
  --color-teal-dark:        #15664E;
  --color-dark-earth:       #2C2420;   /* text + dark surfaces — never #000 */
  --color-clay:             #B5886A;
  --color-warm-mid:         #8B7A6B;
  --color-warm-border:      #E8DDD0;
  --color-sand:             #F5E6D0;
  --color-cream:            #FAF6F0;   /* page background — never pure white */
  --color-white:            #FFFFFF;   /* elevated cards only */
  --color-whatsapp:         #25A06B;
  --color-gold:             #F2C94C;
  --color-alert:            #EB5757;

  /* ---------- Type ---------- */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'DM Sans', 'Helvetica Neue', Helvetica, system-ui, sans-serif;

  /* ---------- Radii ---------- */
  --radius-pill:   9999px;
  --radius-tag:    20px;
  --radius-page:   16px;
  --radius-card:   14px;
  --radius-chip:   12px;
  --radius-btn:    11px;
  --radius-logo:   8px;
  --radius-sm:     6px;

  /* ---------- Shadows (warm, dark-earth tinted) ---------- */
  --shadow-sm:  0 2px 6px rgba(44, 36, 32, 0.05);
  --shadow-md:  0 2px 20px rgba(44, 36, 32, 0.06);
  --shadow-lg:  0 4px 16px rgba(44, 36, 32, 0.08);
  --shadow-xl:  0 12px 32px rgba(44, 36, 32, 0.12);

  /* ---------- Motion ---------- */
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--color-cream);
  color: var(--color-dark-earth);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   Shared nav — base + right cluster, desktop links, hamburger,
   drawer. Existing pages keep their inline .nav rules (later in
   the cascade, so they win); the new pages inherit these.
   ============================================================ */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(250, 246, 240, 0.92);
  border-bottom: 1px solid rgba(232, 221, 208, 0.5);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.nav-logo {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-logo);
  background: var(--color-terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-dark-earth);
  letter-spacing: -0.02em;
}

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

.nav-desktop-links {
  display: none;
  align-items: center;
  gap: 20px;
}
.nav-desktop-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-warm-mid);
  text-decoration: none;
  transition: color 0.2s var(--ease-standard);
}
.nav-desktop-links a:hover,
.nav-desktop-links a[aria-current="page"] { color: var(--color-terracotta); }

.nav-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-warm-border);
  border-radius: var(--radius-btn);
  background: transparent;
  color: var(--color-dark-earth);
  cursor: pointer;
  transition: background 0.2s var(--ease-standard), border-color 0.2s var(--ease-standard);
}
.nav-menu-btn:hover { background: var(--color-sand); }
.nav-menu-btn:focus-visible { outline: 2px solid var(--color-terracotta); outline-offset: 2px; }
.nav-menu-btn svg { width: 20px; height: 20px; }

@media (min-width: 720px) {
  .nav-desktop-links { display: flex; }
}

/* ---- Slide-over drawer ---- */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  visibility: hidden;
  pointer-events: none;
}
.nav-drawer.is-open { visibility: visible; pointer-events: auto; }

.nav-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(44, 36, 32, 0.42);
  opacity: 0;
  transition: opacity 0.3s var(--ease-standard);
}
.nav-drawer.is-open .nav-drawer__overlay { opacity: 1; }

.nav-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(330px, 86vw);
  background: var(--color-cream);
  border-left: 1px solid var(--color-warm-border);
  box-shadow: var(--shadow-xl);
  transform: translateX(100%);
  transition: transform 0.3s var(--ease-standard);
  display: flex;
  flex-direction: column;
  padding: 16px 18px 28px;
  overflow-y: auto;
}
.nav-drawer.is-open .nav-drawer__panel { transform: translateX(0); }

.nav-drawer__close {
  align-self: flex-end;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: var(--color-warm-mid);
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.nav-drawer__close:hover { color: var(--color-dark-earth); }
.nav-drawer__close:focus-visible { outline: 2px solid var(--color-terracotta); outline-offset: 2px; }

.nav-drawer__links { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.nav-drawer__links a {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-dark-earth);
  text-decoration: none;
  padding: 12px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.18s var(--ease-standard), color 0.18s var(--ease-standard);
}
.nav-drawer__links a:hover { background: var(--color-sand); color: var(--color-terracotta); }
.nav-drawer__links a[aria-current="page"] { color: var(--color-terracotta); background: var(--color-sand); }
.nav-drawer__links hr { border: none; border-top: 1px solid var(--color-warm-border); margin: 10px 4px; }
.nav-drawer__label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-clay);
  padding: 6px 10px 2px;
}
.nav-drawer__links a.is-cta {
  margin-top: 12px;
  background: var(--color-whatsapp);
  color: #fff;
  font-weight: 600;
  text-align: center;
  justify-content: center;
}
.nav-drawer__links a.is-cta:hover { background: #1F8A5B; color: #fff; }

body.drawer-open { overflow: hidden; }

/* ============================================================
   Informative pages ("doc") — reading layout for the new pages
   Scoped under .doc so existing pages are untouched.
   ============================================================ */

.doc-wrap { max-width: 760px; margin: 0 auto; padding: 0 20px 8px; }

.doc-hero { padding: 44px 0 4px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  margin-bottom: 12px;
}

.doc h1 {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-dark-earth);
  margin-bottom: 14px;
}
.doc h1 .accent { color: var(--color-terracotta); font-style: italic; }

.doc .lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-warm-mid);
  margin-bottom: 8px;
}

.doc h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--color-dark-earth);
  margin: 38px 0 10px;
}
.doc h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--color-dark-earth);
  margin: 26px 0 6px;
}
.doc p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-dark-earth);
  margin-bottom: 14px;
}
.doc p.muted { color: var(--color-warm-mid); }
.doc strong { font-weight: 600; }
.doc a.inline {
  color: var(--color-terracotta);
  text-decoration: underline;
  text-decoration-color: rgba(216, 90, 48, 0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s var(--ease-standard);
}
.doc a.inline:hover { text-decoration-color: var(--color-terracotta); }

/* Lead card on top of dark earth (quote / mission statement) */
.doc-statement {
  background: var(--color-dark-earth);
  color: var(--color-cream);
  border-radius: var(--radius-card);
  padding: 26px 24px;
  margin: 28px 0;
  position: relative;
  overflow: hidden;
}
.doc-statement p { color: var(--color-cream); font-size: 18px; line-height: 1.6; margin: 0; }
.doc-statement .attrib { color: rgba(250, 246, 240, 0.55); font-size: 14px; margin-top: 10px; }

/* Ñandutí spoke divider — replaces <hr>; rosette svg supplied inline in page */
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 34px 0;
  color: var(--color-terracotta);
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-warm-border);
}
.divider svg { width: 22px; height: 22px; opacity: 0.7; flex-shrink: 0; }
.divider.is-teal { color: var(--color-teal); }

/* Fact / benefit list */
.facts { list-style: none; display: grid; gap: 12px; margin: 18px 0 6px; }
.facts.two-col { grid-template-columns: 1fr; }
@media (min-width: 640px) { .facts.two-col { grid-template-columns: 1fr 1fr; } }
.fact {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--color-white);
  border: 1px solid var(--color-warm-border);
  border-radius: var(--radius-chip);
  padding: 14px 16px;
}
.fact svg { width: 20px; height: 20px; color: var(--color-terracotta); flex-shrink: 0; margin-top: 2px; }
.fact span { font-size: 15px; line-height: 1.55; color: var(--color-dark-earth); }
.fact strong { font-weight: 600; }

/* CTA row */
.doc-cta { margin: 34px 0 8px; display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 13px 22px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s var(--ease-standard),
              border-color 0.2s var(--ease-standard),
              transform 0.15s var(--ease-standard);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--color-terracotta); color: #fff; }
.btn-primary:hover { background: var(--color-terracotta-dark); color: #fff; }
.btn-whatsapp { background: var(--color-whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #1F8A5B; color: #fff; }
.btn-ghost { background: transparent; color: var(--color-dark-earth); border: 1px solid var(--color-warm-border); }
.btn-ghost:hover { background: var(--color-sand); }

/* Cross-link footer prompt (like faq counterpart) */
.doc-counterpart {
  margin-top: 30px;
  padding: 18px 20px;
  background: var(--color-sand);
  border: 1px solid var(--color-warm-border);
  border-radius: var(--radius-chip);
  font-size: 15px;
  color: var(--color-dark-earth);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.doc-counterpart a { color: var(--color-terracotta); font-weight: 600; text-decoration: none; white-space: nowrap; }
.doc-counterpart a:hover { color: var(--color-terracotta-dark); }

/* ============================================================
   Shared footer (used by the new pages; existing pages keep
   their inline .footer, which wins in the cascade).
   ============================================================ */
.footer {
  padding: 28px 24px;
  background: var(--color-dark-earth);
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--color-terracotta);
  margin-top: 8px;
}
.footer__content { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.footer__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.footer__brand { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--color-cream); }
.footer__links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer__links a { font-size: 12px; color: rgba(250, 246, 240, 0.45); text-decoration: none; transition: color 0.2s var(--ease-standard); }
.footer__links a:hover { color: var(--color-cream); }
.footer__divider { height: 1px; background: rgba(250, 246, 240, 0.08); margin-bottom: 14px; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.footer__copy { font-size: 11px; color: rgba(250, 246, 240, 0.3); }

@media (min-width: 640px) {
  .doc-wrap { padding: 0 24px 8px; }
  .doc-hero { padding: 56px 0 4px; }
  .footer { padding: 32px; }
}
@media (min-width: 1024px) {
  .footer { padding: 32px 48px; }
}

/* Respect reduced-motion — the brand is "calm, not performative". */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav-drawer__overlay, .nav-drawer__panel, .btn { transition: none; }
}
