/* ══════════════════════════════════════════════════════════
   AskFlair — Shared Styles
   ══════════════════════════════════════════════════════════ */

:root {
  --color-primary:    #0E0E0E;
  --color-accent:     #D4561E;
  --color-background: #F8F6F2;
  --color-surface:    #FFFFFF;
  --color-muted:      #706C67;
  --color-border:     #E8E4DE;

  --font-display: 'Georgia', serif;
  --font-body:    'DM Sans', sans-serif;
  --font-quote:   'Cormorant Garamond', 'Georgia', serif;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --max-width: 1200px;
  --content-width: 720px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--color-background);
  color: var(--color-primary);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── UTILITIES ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.content-width { max-width: var(--content-width); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-accent { background: var(--color-accent); color: #fff; }
.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-border);
  font-weight: 600;
}
.btn-secondary:hover { border-color: var(--color-primary); }
.btn-dark { background: var(--color-primary); color: #fff; }
.btn-white { background: #fff; color: var(--color-accent); }

.section { padding: 80px 0; }
@media (max-width: 768px) { .section { padding: 48px 0; } }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-body {
  font-size: 16px;
  color: var(--color-muted);
  line-height: 1.7;
  max-width: var(--content-width);
}

.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0;
}

/* ── SCROLL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--color-primary);
  padding: 0 24px;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}
.nav-logo .accent { color: var(--color-accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-links .cta-link {
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  padding: 8px 18px;
}
.nav-links .cta-link:hover { opacity: 0.9; background: var(--color-accent); }

/* Mobile menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--color-primary);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 12px 14px; }
  .nav-links .cta-link { text-align: center; margin-top: 8px; }
}

/* ── PAGE HERO (subpages) ── */
.page-hero {
  padding: 140px 24px 60px;
  max-width: var(--max-width);
  margin: 0 auto;
}
@media (max-width: 768px) { .page-hero { padding: 100px 24px 40px; } }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  max-width: 700px;
}
.page-hero .sub {
  font-size: 17px;
  color: var(--color-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ── FINAL CTA ── */
.final-cta {
  background: var(--color-accent);
  padding: 80px 24px;
  text-align: center;
}
@media (max-width: 768px) { .final-cta { padding: 48px 24px; } }
.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}
.final-cta p {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  max-width: 480px;
  margin: 0 auto 36px;
}
.final-cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.5);
  font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

/* ── FOOTER ── */
footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.45);
  padding: 40px 24px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
.footer-logo .accent { color: var(--color-accent); }
.footer-tagline {
  font-size: 13px;
  margin-top: 4px;
  color: rgba(255,255,255,0.4);
}
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  transition: color 0.15s;
}
.footer-links a:hover { color: #fff; }
.footer-right {
  text-align: right;
  font-size: 12px;
}
.footer-right a { color: rgba(255,255,255,0.6); }
.footer-right a:hover { color: #fff; }
@media (max-width: 640px) {
  .footer-inner { flex-direction: column; gap: 20px; }
  .footer-right { text-align: left; }
}

/* ── PILLARS GRID (shared: index + about) ── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 40px;
}
.pillar-card {
  background: var(--color-surface);
  padding: 28px 24px;
  transition: background 0.2s;
}
.pillar-card:hover { background: #f5f2ed; }
.pillar-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.pillar-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}
.pillar-desc {
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.55;
}

/* ── STEPS LIST (shared: index + how-it-works) ── */
.steps-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.step-item {
  background: var(--color-surface);
  padding: 28px 24px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  align-items: start;
  transition: background 0.2s;
}
.step-item:hover { background: #f5f2ed; }
.step-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  padding-top: 2px;
}
.step-label {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}
.step-body {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.65;
}
