/* ==========================================================================
   Gayatri Books — Styles
   ========================================================================== */
:root {
  --brand:        #1e3a8a;   /* Gayatri primary (deep blue) */
  --brand-2:      #f59e0b;   /* Gayatri secondary (amber)   */
  --ink:          #1f2937;
  --ink-soft:     #4b5563;
  --muted:        #6b7280;
  --line:         #e5e7eb;
  --bg:           #ffffff;
  --bg-soft:      #f8fafc;
  --bg-tint:      #f1f5f9;
  --white:        #ffffff;
  --radius:       16px;
  --radius-sm:    10px;
  --shadow:       0 1px 2px rgba(16,24,40,.06), 0 8px 24px rgba(16,24,40,.08);
  --shadow-lg:    0 12px 40px rgba(16,24,40,.16);
  --container:    1160px;
  --font:         "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  /* accent is overridden per-brand inline */
  --accent:       var(--brand);
  --accent-dark:  #1e40af;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; color: var(--ink); margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { padding: 72px 0; }
.section--tint { background: var(--bg-soft); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-dark); margin-bottom: .6rem;
}
.lead { font-size: 1.125rem; color: var(--ink-soft); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; cursor: pointer;
  font: inherit; font-weight: 600; font-size: .98rem; line-height: 1;
  padding: .8rem 1.3rem; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--accent-dark); border-color: currentColor; }
.btn--ghost:hover { background: color-mix(in srgb, var(--accent) 10%, #fff); }
.btn--light { background: #fff; color: var(--accent-dark); box-shadow: var(--shadow); }
.btn--block { width: 100%; justify-content: center; }
.btn--sm { padding: .55rem 1rem; font-size: .875rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9);
  backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 1rem; height: 72px; }
.brandmark { display: flex; align-items: center; gap: .65rem; font-weight: 800; color: var(--ink); font-size: 1.15rem; }
.brandmark:hover { text-decoration: none; }
.brandmark .logo { width: 40px; height: 40px; flex: none; object-fit: contain; }
.brandmark small { display: block; font-size: .68rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.nav-links a {
  color: var(--ink-soft); font-weight: 600; font-size: .95rem; padding: .5rem .85rem;
  border-radius: 8px;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-tint); text-decoration: none; }
.nav-links a.is-active { color: var(--brand); }
.nav-cta { margin-left: .35rem; }
/* keep the CTA button legible — override the generic nav-link colours */
.nav-links a.nav-cta { color: #fff; }
.nav-links a.nav-cta:hover { color: #fff; background: var(--accent-dark); }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 0; cursor: pointer;
  padding: 8px; border-radius: 8px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 24px; height: 2.5px; background: var(--ink);
  border-radius: 2px; transition: .2s;
}
.nav-toggle span::before { transform: translateY(-7px); }
.nav-toggle span::after  { transform: translateY(4.5px); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg-soft); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 85% 10%, rgba(245,158,11,.16), transparent 60%),
    radial-gradient(50% 50% at 10% 90%, rgba(30,58,138,.14), transparent 60%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 80px 0; }
.hero h1 span { color: var(--brand); }
.hero .lead { font-size: 1.2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hero-book { aspect-ratio: 3/4; border-radius: 12px; box-shadow: var(--shadow-lg); display: flex; align-items: flex-end; padding: 14px; color: #fff; font-weight: 700; font-size: .95rem; }
.hero-book:nth-child(3n+2) { transform: translateY(22px); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 2rem; color: var(--brand); line-height: 1; }
.stat span { color: var(--muted); font-size: .92rem; }

/* ---------- Brand grid ---------- */
.grid-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.brand-card {
  position: relative; display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
  color: inherit;
}
.brand-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }
.brand-card__banner { height: 96px; display: flex; align-items: center; padding: 0 20px; color: #fff; position: relative; }
.brand-card__banner .mono { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.22); display: grid; place-items: center; font-weight: 800; font-size: 1.25rem; flex: none; margin-right: 12px; }
.mono--img { background: #fff !important; padding: 5px; overflow: hidden; }
.mono--img img { width: 100%; height: 100%; object-fit: contain; }
/* wide / wordmark logos on cards */
.brand-card__logo { display: inline-flex; align-items: center; margin-inline: auto; background: #fff; border-radius: 10px; padding: 8px 14px; box-shadow: 0 2px 8px rgba(16,24,40,.12); max-width: calc(100% - 8px); }
.brand-card__logo img { height: 44px; width: auto; max-width: 100%; object-fit: contain; display: block; }
.brand-card__banner b { font-size: 1.12rem; font-weight: 700; }
.brand-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.brand-card__audience { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
.brand-card__body p { color: var(--ink-soft); font-size: .95rem; flex: 1; }
.brand-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.brand-card__link { font-weight: 700; font-size: .92rem; }
.badge { font-size: .72rem; font-weight: 700; padding: .3rem .6rem; border-radius: 999px; letter-spacing: .02em; }
.badge--soon { background: #fff7ed; color: #b45309; border: 1px solid #fed7aa; }
.badge--ready { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }

/* ---------- Feature row ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.feature .ico { width: 46px; height: 46px; border-radius: 12px; background: color-mix(in srgb, var(--brand) 12%, #fff); display: grid; place-items: center; margin-bottom: 14px; color: var(--brand); }
.feature h3 { font-size: 1.12rem; }
.feature p { color: var(--ink-soft); margin: 0; font-size: .95rem; }

/* ---------- Brand detail page ---------- */
.brand-hero { color: #fff; padding: 64px 0; position: relative; overflow: hidden; }
.brand-hero .container { position: relative; }
.brand-hero .crumb { color: rgba(255,255,255,.85); font-size: .9rem; margin-bottom: 1rem; }
.brand-hero .crumb a { color: #fff; }
.brand-hero h1 { color: #fff; }
.brand-hero .tag { font-size: 1.2rem; color: rgba(255,255,255,.92); max-width: 60ch; }
.brand-hero .pill { display: inline-block; background: rgba(255,255,255,.2); color: #fff; padding: .35rem .8rem; border-radius: 999px; font-size: .85rem; font-weight: 600; margin-bottom: 1rem; }
.brand-hero__logo { display: flex; width: fit-content; align-items: center; height: 76px; max-width: 300px; background: #fff; border-radius: 16px; padding: 12px 18px; box-shadow: var(--shadow); margin-bottom: 1rem; }
.brand-hero__logo img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.brand-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.chips li { background: color-mix(in srgb, var(--accent) 10%, #fff); color: var(--accent-dark); border: 1px solid color-mix(in srgb, var(--accent) 25%, #fff); padding: .4rem .85rem; border-radius: 999px; font-size: .88rem; font-weight: 600; }

/* Catalogue card */
.cat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; position: sticky; top: 92px; }
.cat-card h3 { display: flex; align-items: center; gap: .5rem; }
.cat-card .cover { aspect-ratio: 3/4; border-radius: 12px; margin-bottom: 18px; display: flex; align-items: flex-end; padding: 18px; color: #fff; box-shadow: var(--shadow); }
.cat-card .cover b { font-size: 1.3rem; }
.cat-actions { display: flex; flex-direction: column; gap: .6rem; margin-top: 4px; }
.cat-note { font-size: .85rem; color: var(--muted); margin: 12px 0 0; text-align: center; }
.soon-box { text-align: center; padding: 10px 0; }
.soon-box .big { font-size: 2.4rem; }

/* ---------- PDF viewer ---------- */
.viewer-bar { display: flex; align-items: center; gap: 1rem; padding: 12px 0; border-bottom: 1px solid var(--line); }
.viewer-bar .title { font-weight: 700; }
.viewer-frame { display: block; width: 100%; height: calc(100vh - 72px - 61px); border: 0; background: var(--bg-tint); }
.viewer-fallback { display: grid; place-content: center; text-align: center; height: 100%; padding: 40px 20px; gap: 6px; }
.viewer-fallback .big { font-size: 3rem; }
.viewer-fallback p { color: var(--ink-soft); max-width: 46ch; margin-inline: auto; }

/* ---------- Resources ---------- */
.res-list { display: grid; gap: 16px; }
.res-item { display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.res-item .doc { width: 48px; height: 48px; border-radius: 12px; background: color-mix(in srgb, var(--brand) 12%, #fff); color: var(--brand); display: grid; place-items: center; flex: none; }
.res-item .meta { flex: 1; }
.res-item .meta h3 { margin: 0 0 .2rem; font-size: 1.08rem; }
.res-item .meta p { margin: 0; color: var(--ink-soft); font-size: .93rem; }
.res-item .tag { font-size: .72rem; font-weight: 700; color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, #fff); padding: .25rem .6rem; border-radius: 999px; }
.empty-state { text-align: center; padding: 48px 20px; background: var(--bg-soft); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-state .big { font-size: 2.5rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; }
.info-list .ico { width: 44px; height: 44px; flex: none; border-radius: 12px; background: color-mix(in srgb, var(--brand) 12%, #fff); color: var(--brand); display: grid; place-items: center; }
.info-list b { display: block; }
.info-list a { color: var(--ink); }
.info-list .ico--wa { background: #25D366; color: #fff; text-decoration: none; transition: transform .15s ease, filter .15s ease; }
.info-list .ico--wa:hover { transform: translateY(-2px); filter: brightness(.95); }
.btn--wa { background: #25D366; color: #fff; box-shadow: var(--shadow); }
.btn--wa:hover { background: #1ebe5a; color: #fff; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.field label .opt { font-weight: 400; color: var(--muted); font-size: .82rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
.field input, .field textarea {
  width: 100%; padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: #fff;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(30,58,138,.12); }
.form-note { font-size: .85rem; color: var(--muted); }

/* ---------- Map ---------- */
.map-frame { width: 100%; height: 420px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }

/* ---------- Reviews ---------- */
.review-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review-card { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.review-top { display: flex; align-items: center; gap: 12px; }
.review-avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--brand), #3b5bdb); }
.review-name { display: block; font-size: 1rem; }
.review-date { font-size: .82rem; color: var(--muted); }
.review-top .review-g { margin-left: auto; opacity: .9; }
.stars { color: #d1d5db; font-size: 1.1rem; letter-spacing: 2px; line-height: 1; }
.stars .star.on { color: #f59e0b; }
.review-card blockquote { margin: 0; color: var(--ink-soft); font-size: .96rem; line-height: 1.6; }
.reviews-embed { margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1220; color: #cbd5e1; padding: 56px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .95rem; }
.footer-brand { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; font-weight: 800; color: #fff; font-size: 1.2rem; }
.footer-brand .logo { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 10px; padding: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .88rem; color: #94a3b8; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--brand), #3b5bdb 60%, var(--brand-2)); color: #fff; border-radius: 24px; padding: 48px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.92); max-width: 55ch; margin-inline: auto; }
.cta-band .btn { margin-top: 1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding: 56px 0; }
  .hero-art { max-width: 420px; }
  .brand-grid, .features, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .brand-layout, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .cat-card { position: static; }
}
@media (max-width: 680px) {
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; background: #fff; flex-direction: column;
    align-items: stretch; gap: 0; padding: 8px 16px 16px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .85rem .5rem; border-radius: 8px; }
  .nav-cta { margin: .5rem 0 0; }
  .nav-toggle { display: block; }
  .brand-grid, .features, .stats, .reviews-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .cta-band { padding: 32px 22px; }
  .res-item { flex-wrap: wrap; }
}
