/* =====================================================================
   Bharat eBooks Hub — shared styles for the hub pages
   (home, about, contact, policy pages). Book sales pages use book.css.
   ===================================================================== */
:root {
  --indigo: #1B1F3B;      /* deep indigo: text, dark sections */
  --indigo-2: #262B4F;
  --ink: #202438;
  --muted: #5A5E70;       /* body grey, 6.4:1 on cream */
  --saffron: #F15B35;     /* primary accent, buttons */
  --saffron-ink: #B83A16; /* saffron for small text on light bg (4.9:1) */
  --marigold: #F8B23A;
  --cream: #F8F5EE;
  --sand: #EFE8DA;
  --white: #FFFFFF;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(27,31,59,.06), 0 18px 40px -24px rgba(27,31,59,.35);
  --display: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--saffron-ink); }
a:hover { color: var(--indigo); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.site-header { background: var(--cream); border-bottom: 1px solid rgba(27,31,59,.08); position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.2) blur(6px); background: rgba(248,245,238,.92); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--indigo); }
.brand img { width: 36px; height: 36px; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.site-nav { display: flex; gap: 4px 22px; flex-wrap: wrap; }
.site-nav a { color: var(--indigo); text-decoration: none; font-weight: 500; font-size: 15px; padding: 12px 2px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--saffron-ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 26px; border-radius: 12px; font-weight: 700; font-size: 15px; letter-spacing: .03em; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn-primary { background: var(--saffron); color: var(--indigo); }
.btn-primary:hover { color: var(--indigo); transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(241,91,53,.7); }
.btn-ghost { color: var(--indigo); border: 1.5px solid rgba(27,31,59,.25); }
.btn-ghost:hover { color: var(--indigo); border-color: var(--indigo); }
.btn svg { flex: none; }

/* Type */
.eyebrow { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--saffron-ink); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
h1, h2, h3 { font-family: var(--display); color: var(--indigo); letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.02; margin: 0; font-weight: 700; }
h2 { font-size: clamp(30px, 3.8vw, 44px); line-height: 1.1; margin: 0; font-weight: 700; }
h3 { font-size: 22px; line-height: 1.25; margin: 0; font-weight: 600; }
.lead { font-size: 19px; line-height: 1.65; color: var(--muted); max-width: 560px; }
section { padding: 96px 0; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero::before { content: ""; position: absolute; right: -160px; top: -120px; width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(circle, rgba(248,178,58,.28), rgba(248,178,58,0) 65%); }
.hero .wrap { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-copy { flex: 1 1 520px; min-width: 0; }
.hero h1 em { font-style: italic; color: var(--saffron-ink); font-weight: 600; }
.hero .lead { margin: 24px 0 0; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { flex: 1 1 360px; min-width: 0; display: flex; justify-content: center; position: relative; }
.hero-art .ring { position: absolute; inset: 6% 8%; border-radius: 50%; border: 1.5px dashed rgba(184,58,22,.35); }
.hero-art .ring.two { inset: 16% 18%; border-style: solid; border-color: rgba(27,31,59,.08); }
.hero-art figure { position: relative; margin: 0; text-align: center; }
.hero-art img { width: 340px; filter: drop-shadow(0 34px 40px rgba(27,31,59,.35)); }
.hero-art figcaption { margin-top: 14px; display: inline-flex; gap: 8px; align-items: center; background: var(--white); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600; color: var(--indigo); box-shadow: var(--shadow); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--saffron); }
.devanagari { font-family: "Tiro Devanagari Hindi", serif; letter-spacing: 0; text-transform: none; font-size: 15px; font-weight: 400; }

/* Trust strip */
.trust { padding: 0; }
.trust ul { list-style: none; margin: 0; padding: 22px 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 28px; background: var(--indigo); border-radius: var(--radius); color: #E6E7EF; }
.trust li { display: flex; gap: 12px; align-items: center; font-size: 15px; font-weight: 500; }
.trust svg { flex: none; }

/* Book grid */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 44px; }
.section-head p { margin: 0; max-width: 420px; color: var(--muted); }
.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.book-card { background: var(--white); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.book-card:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(27,31,59,.06), 0 28px 50px -26px rgba(27,31,59,.45); }
.book-cover { background: linear-gradient(160deg, #262B4F, #1B1F3B); padding: 32px 24px 26px; display: flex; justify-content: center; }
.book-cover img { width: 190px; filter: drop-shadow(0 20px 24px rgba(0,0,0,.45)); }
.book-body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tag { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--saffron-ink); background: #FDEDE6; padding: 5px 10px; border-radius: 999px; }
.book-body h3 a { color: inherit; text-decoration: none; }
.book-body h3 a::after { content: ""; position: absolute; inset: 0; }
.book-card { position: relative; }
.book-body p { margin: 0; color: var(--muted); font-size: 15px; }
.book-meta { font-size: 14px; color: var(--muted); }
.book-foot { margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--sand); }
.price { font-family: var(--display); font-size: 28px; font-weight: 700; color: var(--indigo); }
.book-foot .btn { min-height: 46px; padding: 10px 18px; font-size: 14px; position: relative; z-index: 1; }
.book-soon { border: 2px dashed #D9CFBC; border-radius: 24px; padding: 40px 30px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; min-height: 360px; }
.book-soon .icon { width: 56px; height: 56px; border-radius: 16px; background: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.book-soon p { margin: 0; color: var(--muted); }

/* Steps */
.steps-section { background: var(--white); }
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; counter-reset: step; }
.steps li { background: var(--cream); border-radius: var(--radius); padding: 28px; counter-increment: step; }
.steps li::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--indigo); color: var(--marigold); font-family: var(--display); font-weight: 700; font-size: 20px; margin-bottom: 18px; }
.steps p { margin: 8px 0 0; color: var(--muted); }

/* About teaser */
.founders { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.founders-mark { flex: 1 1 300px; min-width: 0; background: var(--indigo); color: var(--white); border-radius: 28px; padding: 44px 40px; position: relative; overflow: hidden; }
.founders-mark::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; border: 28px solid rgba(248,178,58,.18); }
.founders-mark .big { font-family: var(--display); font-size: clamp(34px, 4vw, 48px); line-height: 1.05; font-weight: 700; color: var(--white); margin: 0; }
.founders-mark .big span { color: var(--marigold); font-style: italic; font-weight: 600; }
.founders-mark p { color: #C9CBDA; margin: 16px 0 0; }
.founders-copy { flex: 1 1 440px; min-width: 0; }
.founders-copy p { color: var(--muted); font-size: 17px; }

/* Page hero (inner pages) */
.page-hero { padding: 64px 0 24px; }
.page-hero .lead { margin: 18px 0 0; }
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; margin: 40px 0 10px; }
.prose p, .prose li { color: #3E4256; }
.card { background: var(--white); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 36px; }
.contact-grid .card h2 { font-size: 22px; margin: 14px 0 6px; }
.contact-grid .card p { margin: 0; color: var(--muted); }
.contact-grid .icon { width: 48px; height: 48px; border-radius: 14px; background: var(--indigo); display: flex; align-items: center; justify-content: center; }
.email-link { font-weight: 700; font-size: 18px; }
.todo { background: #FFF1EA; color: #7A2A14; border-radius: 10px; padding: 12px 14px; font-size: 14px; }

/* Footer */
.site-footer { background: var(--indigo); color: #C9CBDA; padding: 64px 0 36px; margin-top: 0; }
.site-footer .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 36px; }
.site-footer .brand { color: var(--white); }
.site-footer .brand-name small { color: #A9ACC0; }
.site-footer .tagline { margin: 14px 0 0; max-width: 340px; font-size: 15px; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 24px 64px; }
.foot-cols h2 { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--marigold); margin: 0 0 10px; font-weight: 700; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; }
.foot-cols a { color: #E6E7EF; text-decoration: none; display: inline-block; padding: 7px 0; font-size: 15px; }
.foot-cols a:hover { color: var(--marigold); }
.site-footer .bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

@media (max-width: 640px) {
  section { padding: 72px 0; }
  .hero { padding: 40px 0 72px; }
  .hero-art img { width: 260px; }
  .site-header { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .book-card { transition: none; }
}
