/* ============================================================
   BriteBound Books — Shared Stylesheet
   Colors: Navy #1B2A4A  |  Orange #E87722  |  Gold #D4AF37
   ============================================================ */

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

:root {
  --navy:  #1B2A4A;
  --orange: #E87722;
  --gold:   #D4AF37;
  --cream:  #FFF8EB;
  --dark:   #0F1928;
  --gray:   #F5F5F5;
  --text:   #222222;
  --light-text: #AABBCC;
}

body {
  font-family: 'Georgia', serif;
  background: var(--gray);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── NAV ── */
nav {
  background: var(--navy);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo .brand { font-family: 'Georgia', serif; font-size: 1.6rem; font-weight: bold; color: var(--orange); letter-spacing: 0.5px; }
.nav-logo .tagline { font-family: Arial, sans-serif; font-size: 0.72rem; color: var(--gold); letter-spacing: 2px; text-transform: uppercase; }

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { font-family: Arial, sans-serif; font-size: 0.9rem; color: #ccc; text-transform: uppercase; letter-spacing: 1px; font-weight: bold; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--orange); text-decoration: none; }

.nav-cta {
  background: var(--orange);
  color: #000 !important;
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: bold !important;
}
.nav-cta:hover { background: var(--gold); color: #000 !important; }

/* ── HERO BANNER ── */
.hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.hero-content {
  position: relative;
  padding: 60px 60px;
  max-width: 680px;
}
.hero-eyebrow {
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.hero h1 {
  font-size: 3rem;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero h1 span { color: var(--orange); }
.hero p {
  font-size: 1.1rem;
  color: #ddd;
  margin-bottom: 28px;
  max-width: 520px;
}
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 4px;
  font-family: Arial, sans-serif;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-orange { background: var(--orange); color: #000; }
.btn-orange:hover { background: #c96a1a; color: #000; text-decoration: none; }
.btn-outline { border: 2px solid var(--orange); color: var(--orange); margin-left: 12px; }
.btn-outline:hover { background: var(--orange); color: #000; text-decoration: none; }

/* ── SECTION WRAPPER ── */
.section { padding: 60px 60px; }
.section-dark { background: var(--navy); }
.section-cream { background: var(--cream); }
.section-white { background: #fff; }

.section-title {
  font-size: 1.9rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.section-dark .section-title { color: #fff; }
.section-subtitle {
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}
.section-divider {
  width: 60px; height: 4px;
  background: var(--orange);
  margin: 12px 0 36px;
}

/* ── FEATURED BOOK (homepage) ── */
.featured-book {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  align-items: start;
}
.featured-book img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.featured-meta { display: flex; flex-direction: column; gap: 12px; }
.featured-eyebrow {
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
}
.featured-title { font-size: 2.4rem; color: var(--navy); line-height: 1.2; }
.featured-author { font-size: 1.1rem; color: var(--gold); font-style: italic; }
.featured-divider { width: 50px; height: 3px; background: var(--orange); }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0; }
.badge {
  background: var(--navy);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: bold;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: 3px;
  text-transform: uppercase;
}
.badge-orange { background: var(--orange); color: #000; }
.featured-desc { font-size: 1rem; color: #444; line-height: 1.7; }
.price-row { display: flex; align-items: center; gap: 20px; margin-top: 8px; }
.price { font-size: 2.2rem; font-weight: bold; color: var(--navy); }
.price-note { font-family: Arial, sans-serif; font-size: 0.85rem; color: #777; }

/* ── BOOK GRID ── */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
}
.book-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.book-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.14); }
.book-card img { width: 100%; height: 240px; object-fit: cover; }
.book-card-body { padding: 16px; }
.book-card-title { font-size: 1rem; font-weight: bold; color: var(--navy); margin-bottom: 4px; }
.book-card-author { font-size: 0.85rem; color: #666; font-style: italic; margin-bottom: 8px; }
.book-card-price { font-size: 1.1rem; font-weight: bold; color: var(--orange); }
.book-card-badge { font-family: Arial, sans-serif; font-size: 0.7rem; color: var(--orange); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }

/* ── CATEGORY TILES ── */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.cat-tile {
  background: var(--navy);
  color: #fff;
  padding: 28px 24px;
  border-radius: 6px;
  border-left: 5px solid var(--orange);
  transition: background 0.2s;
  cursor: pointer;
}
.cat-tile:hover { background: #243660; text-decoration: none; }
.cat-tile h3 { font-size: 1.1rem; color: var(--orange); margin-bottom: 6px; }
.cat-tile p { font-family: Arial, sans-serif; font-size: 0.83rem; color: #aaa; }

/* ── OUR STORY strip ── */
.story-strip {
  background: var(--navy);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 320px;
}
.story-text { padding: 60px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.story-text h2 { font-size: 2rem; color: #fff; }
.story-text p { color: #ccc; font-size: 1rem; line-height: 1.75; }
.story-img { background: url('images/ringside-spread.jpg') center/cover; min-height: 280px; opacity: 0.7; }

/* ── BOOK DETAIL PAGE ── */
.book-detail { display: grid; grid-template-columns: 400px 1fr; gap: 60px; align-items: start; }
.book-detail-imgs { display: flex; flex-direction: column; gap: 16px; }
.book-detail-imgs img { width: 100%; border-radius: 4px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); cursor: pointer; }
.book-detail-imgs .thumb-row { display: flex; gap: 10px; }
.book-detail-imgs .thumb-row img { height: 90px; width: auto; object-fit: cover; opacity: 0.75; }
.book-detail-imgs .thumb-row img:hover { opacity: 1; }
.book-info { display: flex; flex-direction: column; gap: 16px; }
.book-info h1 { font-size: 2.4rem; color: var(--navy); line-height: 1.2; }
.book-info .author { font-size: 1.2rem; color: var(--gold); font-style: italic; }
.spec-table { width: 100%; border-collapse: collapse; font-family: Arial, sans-serif; font-size: 0.9rem; }
.spec-table tr { border-bottom: 1px solid #eee; }
.spec-table td { padding: 8px 12px; }
.spec-table td:first-child { font-weight: bold; color: var(--navy); width: 160px; background: #f9f9f9; }
.provenance-box {
  background: var(--cream);
  border-left: 4px solid var(--orange);
  padding: 20px 24px;
  border-radius: 0 4px 4px 0;
}
.provenance-box h3 { color: var(--navy); margin-bottom: 8px; font-size: 1rem; }
.provenance-box p { font-size: 0.95rem; color: #444; line-height: 1.75; }
.buy-box {
  background: var(--navy);
  color: #fff;
  padding: 28px;
  border-radius: 6px;
}
.buy-box .buy-price { font-size: 2.8rem; font-weight: bold; color: var(--orange); }
.buy-box .buy-note { font-family: Arial, sans-serif; font-size: 0.85rem; color: #aaa; margin-bottom: 20px; }
.buy-box .btn { width: 100%; text-align: center; display: block; margin-bottom: 10px; font-size: 1.1rem; padding: 16px; }

/* ── FOOTER ── */
footer {
  background: var(--dark);
  color: #aaa;
  padding: 50px 60px 30px;
  font-family: Arial, sans-serif;
  font-size: 0.875rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .brand { font-family: Georgia, serif; font-size: 1.4rem; color: var(--orange); font-weight: bold; }
.footer-brand .tagline { font-size: 0.75rem; color: var(--gold); letter-spacing: 2px; text-transform: uppercase; margin: 4px 0 12px; }
.footer-brand p { color: #888; line-height: 1.6; font-size: 0.83rem; }
footer h4 { color: #fff; margin-bottom: 14px; font-size: 0.9rem; letter-spacing: 1px; text-transform: uppercase; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
footer ul a { color: #888; transition: color 0.2s; }
footer ul a:hover { color: var(--orange); text-decoration: none; }
.footer-bottom { border-top: 1px solid #222; padding-top: 20px; display: flex; justify-content: space-between; color: #555; }
.footer-bottom span { color: var(--orange); }


/* ─── Logo image in nav — fixed size, never squishes ───────────── */
.nav-logo img {
  height: 60px !important;
  width: 60px !important;
  min-width: 60px !important;
  max-width: 60px !important;
  object-fit: contain !important;
  display: block !important;
  filter: invert(1) brightness(1.1);
}
.nav-logo .tagline {
  margin-top: 4px !important;
  text-align: left !important;
  white-space: nowrap;
}
