/* ============================================
   nitinbardia.in — Shared Design System
   The Growth Engine
   ============================================ */

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

:root {
  --navy:       #1A1A2E;
  --navy-deep:  #0D0D1A;
  --navy-mid:   #2C2C54;
  --gold:       #B8860B;
  --gold-light: #E8C84A;
  --gold-pale:  #FFF8E7;
  --cream:      #F4F0E8;
  --cream-2:    #FAF7F2;
  --ink:        #1C1C1C;
  --ink-2:      #3a3a3a;
  --ink-3:      #666;
  --border:     rgba(184,134,11,0.18);
  --border-2:   rgba(184,134,11,0.08);
  --surface:    rgba(255,255,255,0.04);
  --surface-2:  rgba(255,255,255,0.07);
  --serif:      'Cormorant Garamond', Georgia, serif;
  --display:    'Cinzel', serif;
  --body:       'Inter', sans-serif;
  --radius:     2px;
  --shadow:     0 24px 64px rgba(26,26,46,0.3);
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--body); -webkit-font-smoothing: antialiased; color: var(--ink); }

/* ── SHARED NAV ── */
.nb-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(13,13,26,0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  height: 58px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
}
.nb-nav-logo {
  font-family: var(--display); font-size: 12px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.9); text-decoration: none;
}
.nb-nav-logo span { color: var(--gold-light); }
.nb-nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nb-nav-links a {
  font-family: var(--body); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); text-decoration: none;
  transition: color 0.2s;
}
.nb-nav-links a:hover, .nb-nav-links a.active { color: var(--gold-light); }
.nb-nav-cta {
  background: var(--gold); color: var(--navy) !important;
  font-weight: 700 !important; padding: 7px 16px !important;
  transition: background 0.2s !important;
}
.nb-nav-cta:hover { background: var(--gold-light) !important; }
.nb-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nb-hamburger span { display: block; width: 22px; height: 1.5px; background: rgba(255,255,255,0.7); margin: 5px 0; transition: all 0.2s; }

/* ── SHARED BUTTONS ── */
.btn { display: inline-block; font-family: var(--body); font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; padding: 13px 26px; transition: all 0.2s; cursor: pointer; border: none; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-outline { background: transparent; color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.25); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); }
.btn-dark { background: var(--navy); color: var(--gold-light); border: 1px solid var(--border); }
.btn-dark:hover { background: var(--navy-mid); }
.btn-full { display: block; width: 100%; text-align: center; }

/* ── SECTION HELPERS ── */
.section-eyebrow { font-family: var(--display); font-size: 8.5px; font-weight: 600; letter-spacing: 0.38em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.8rem; display: flex; align-items: center; gap: 10px; }
.section-eyebrow::before { content:''; display:block; width:22px; height:1px; background:var(--gold); flex-shrink:0; }
.section-title { font-family: var(--display); font-weight: 900; color: var(--navy); line-height: 1.05; }
.section-title-light { color: #fff; }
.section-rule { width: 48px; height: 2px; background: linear-gradient(90deg, var(--gold-light), var(--gold), transparent); margin: 1rem 0 1.4rem; }
.section-sub { font-family: var(--serif); font-size: 17px; font-style: italic; font-weight: 300; color: var(--ink-3); line-height: 1.75; }
.section-sub-light { color: rgba(255,255,255,0.45); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.wrap-sm { max-width: 780px; margin: 0 auto; padding: 0 2rem; }

/* ── GOLD DIVIDER LINE ── */
.gold-line { height: 3px; background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-light) 50%, var(--gold) 80%, transparent); }

/* ── SHARED FOOTER ── */
.nb-footer { background: var(--navy-deep); border-top: 1px solid var(--border); padding: 3rem 2rem 2rem; }
.nb-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; max-width: 1100px; margin: 0 auto 2rem; }
.nb-footer-brand { font-family: var(--display); font-size: 13px; font-weight: 900; color: rgba(255,255,255,0.85); margin-bottom: 0.5rem; }
.nb-footer-brand span { color: var(--gold-light); }
.nb-footer-tagline { font-family: var(--serif); font-size: 12px; font-style: italic; color: rgba(255,255,255,0.3); line-height: 1.6; }
.nb-footer-col-title { font-family: var(--display); font-size: 8px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.8rem; }
.nb-footer-col a { display: block; font-family: var(--body); font-size: 12px; color: rgba(255,255,255,0.35); text-decoration: none; margin-bottom: 6px; transition: color 0.2s; }
.nb-footer-col a:hover { color: var(--gold-light); }
.nb-footer-bottom { max-width: 1100px; margin: 0 auto; padding-top: 1.5rem; border-top: 1px solid rgba(184,134,11,0.08); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.nb-footer-copy { font-size: 11px; color: rgba(255,255,255,0.18); }
.nb-footer-legal { display: flex; gap: 1.2rem; }
.nb-footer-legal a { font-size: 11px; color: rgba(255,255,255,0.2); text-decoration: none; }
.nb-footer-legal a:hover { color: var(--gold); }

/* ── BOOK CARD ── */
.book-card { background: #fff; border: 1px solid rgba(26,26,46,0.1); transition: all 0.25s; position: relative; overflow: hidden; }
.book-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.book-card-cover { aspect-ratio: 6/9; background: var(--navy); display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; padding: 1.2rem; position: relative; overflow: hidden; }
.book-card-cover-topbar { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent); }
.book-card-body { padding: 1.2rem; }
.book-card-genre { font-size: 9px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.4rem; }
.book-card-title { font-family: var(--display); font-size: 14px; font-weight: 700; color: var(--navy); line-height: 1.2; margin-bottom: 0.3rem; }
.book-card-sub { font-family: var(--serif); font-size: 12px; font-style: italic; color: var(--ink-3); margin-bottom: 0.8rem; line-height: 1.4; }
.book-card-badge { display: inline-block; font-size: 8.5px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; padding: 3px 9px; margin-bottom: 0.8rem; }
.badge-preorder { background: rgba(184,134,11,0.1); border: 1px solid rgba(184,134,11,0.35); color: var(--gold); }
.badge-available { background: rgba(26,107,58,0.08); border: 1px solid rgba(26,107,58,0.3); color: #1a6b3a; }
.badge-coming { background: rgba(26,26,46,0.06); border: 1px solid rgba(26,26,46,0.15); color: var(--ink-3); }

/* ── FORM SHARED ── */
.nb-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 16px; }
.nb-label { font-family: var(--body); font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.45); }
.nb-label-dark { color: var(--ink-3) !important; }
.nb-input { background: rgba(255,255,255,0.05); border: 1px solid rgba(184,134,11,0.22); color: #fff; font-family: var(--body); font-size: 14px; padding: 11px 14px; outline: none; width: 100%; transition: border-color 0.2s, background 0.2s; border-radius: 0; }
.nb-input:focus { border-color: var(--gold); background: rgba(184,134,11,0.06); }
.nb-input-dark { background: #fff; color: var(--ink); border: 1px solid rgba(26,26,46,0.18); }
.nb-input-dark:focus { border-color: var(--navy); background: #fff; }
.nb-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23B8860B' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

/* ── TOAST NOTIFICATION ── */
.nb-toast { position: fixed; bottom: 2rem; right: 2rem; z-index: 9999; background: var(--navy); border: 1px solid var(--border); border-left: 4px solid var(--gold); padding: 1rem 1.4rem; max-width: 340px; transform: translateX(120%); transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1); }
.nb-toast.show { transform: translateX(0); }
.nb-toast-title { font-family: var(--display); font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 3px; }
.nb-toast-msg { font-family: var(--serif); font-size: 13px; font-style: italic; color: rgba(255,255,255,0.6); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nb-nav-links { display: none; }
  .nb-nav-links.open { display: flex; flex-direction: column; position: fixed; top: 58px; left: 0; right: 0; background: rgba(13,13,26,0.99); padding: 1.5rem 2rem; gap: 1rem; border-bottom: 1px solid var(--border); }
  .nb-hamburger { display: block; }
  .nb-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 640px) {
  .nb-footer-grid { grid-template-columns: 1fr; }
  .wrap, .wrap-sm { padding: 0 1.2rem; }
}
