/*
 * marketing.css — Shangazi Books
 * Shared chrome + components for marketing-style pages (Authors, Readers, About).
 * Borrowed directly from index.html so every page matches the site shell:
 * nav, hero banner, section headers, cards, footer, and the colour palette.
 */

:root {
  --ink:        #0f0f0f;
  --muted:      #6b7280;
  --border:     #e5e7eb;
  --accent:     #c0392b;
  --accent-hover: #a93226;
  --gold:       #d4a017;
  --bg:         #ffffff;
  --surface:    #f7f7f6;
  --nav-bg:     #1a1a1a;
  --nav-text:   #e5e7eb;
  --nav-muted:  #9ca3af;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; margin: 0; }
a { text-decoration: none; color: inherit; }

/* ── NAV ── */
nav {
  background: var(--nav-bg);
  padding: 0 28px;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 32px;
  position: sticky;
  top: 0;
  z-index: 200;
}

.nav-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1rem; white-space: nowrap; }

.nav-logo {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'EB Garamond', serif;
  font-size: 1.1rem;
  color: #fff;
  font-weight: 400;
}
.nav-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nav-logo .logo-fallback { display: none; }

.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--nav-muted);
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-link.active { color: #fff; background: rgba(255,255,255,0.12); }

.nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.btn-nav-ghost {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--nav-muted);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
  background: none;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.btn-nav-ghost:hover { color: #fff; border-color: rgba(255,255,255,0.35); }

.btn-nav-primary {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 7px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-nav-primary:hover { background: var(--accent-hover); }

/* ── HERO BANNER (same as index.html) ── */
.hero-banner {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 64px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-banner-content { position: relative; max-width: 640px; margin: 0 auto; }

.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.hero-banner h1 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 14px;
}

.hero-banner p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.65;
}

.hero-cta-row { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }

.btn-hero-primary {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 11px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.btn-hero-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-hero-ghost {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.08);
  padding: 11px 24px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  transition: background 0.15s;
}
.btn-hero-ghost:hover { background: rgba(255,255,255,0.14); color: #fff; }

/* ── MAIN / SECTIONS ── */
.main { max-width: 1180px; margin: 0 auto; padding: 56px 28px 80px; }

.section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; gap: 16px; flex-wrap: wrap; }

.section-title { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }

.section-link { font-size: 0.8rem; color: var(--accent); font-weight: 500; }
.section-link:hover { text-decoration: underline; }

.section-lede {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--ink);
  max-width: 760px;
  margin: 0 0 40px;
}

section + section { border-top: 1px solid var(--border); padding-top: 56px; margin-top: 56px; }

/* ── FEATURE / VALUE CARDS ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
}

.feature-card-icon {
  width: 40px; height: 40px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'EB Garamond', serif;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0 0 8px;
  color: var(--ink);
}

.feature-card p { font-size: 0.88rem; line-height: 1.65; color: var(--muted); margin: 0; }

/* ── NUMBERED STEPS ── */
.step-list { display: flex; flex-direction: column; gap: 0; max-width: 720px; }

.step-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}
.step-item:first-child { border-top: none; }

.step-number {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
}

.step-body h3 { font-family: 'EB Garamond', Georgia, serif; font-size: 1.1rem; font-weight: 500; margin: 0 0 6px; color: var(--ink); }
.step-body p { font-size: 0.88rem; line-height: 1.65; color: var(--muted); margin: 0; max-width: 560px; }

/* ── CTA STRIP (borrowed look from register-strip) ── */
.cta-strip {
  background: var(--ink);
  border-radius: 14px;
  padding: 40px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-strip-text h2 { font-family: 'EB Garamond', Georgia, serif; font-size: 1.5rem; font-weight: 400; color: #fff; margin: 0 0 6px; }
.cta-strip-text p { font-size: 0.86rem; color: rgba(255,255,255,0.55); margin: 0; }

/* ── FOOTER (same as index.html) ── */
footer {
  background: var(--nav-bg);
  padding: 36px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.5); font-size: 0.8rem; }

.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 0.78rem; color: rgba(255,255,255,0.35); transition: color 0.15s; }
.footer-links a:hover { color: rgba(255,255,255,0.7); }

/* ── FORM ELEMENTS (review submission, etc.) ── */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  max-width: 560px;
}

.form-field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }

.form-field label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.92rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.15s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--accent); }
.form-field textarea { resize: vertical; min-height: 110px; font-family: inherit; line-height: 1.55; }

.star-rating { display: flex; gap: 6px; }
.star-rating button {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--border);
  transition: color 0.12s;
  padding: 2px;
}
.star-rating button.active,
.star-rating button:hover,
.star-rating button:hover ~ button { color: var(--gold); }

.form-note { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }

.form-success {
  display: none;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 0.88rem;
  color: #166534;
  margin-top: 18px;
}
.form-success.visible { display: block; }

/* ── REVIEW CARDS (vetted reviews grid) ── */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.review-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-stars { color: var(--gold); font-size: 0.95rem; letter-spacing: 2px; }

.review-quote {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
  flex: 1;
}

.review-meta { display: flex; align-items: center; gap: 10px; }

.review-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'EB Garamond', serif;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.review-name { font-size: 0.84rem; font-weight: 600; color: var(--ink); }
.review-book { font-size: 0.76rem; color: var(--muted); }

.vetted-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 50px;
  padding: 3px 10px;
  align-self: flex-start;
}

/* ── VALUE / MISSION BLOCKS (About page) ── */
.mission-block { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.mission-block p { font-family: 'EB Garamond', Georgia, serif; font-size: 1.1rem; line-height: 1.75; color: var(--ink); margin: 0; }

.contact-row { display: flex; flex-wrap: wrap; gap: 28px; }
.contact-item h3 { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.contact-item p, .contact-item a { font-size: 0.92rem; color: var(--ink); }
.contact-item a { color: var(--accent); }
.contact-item a:hover { text-decoration: underline; }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .nav-links { display: none; }
  .cta-strip { flex-direction: column; align-items: flex-start; }
  .form-card { padding: 24px; }
}
