/* ================================================================
   TINA S. TRANSFORMATION — STYLESHEET
   ================================================================
   Color system:
     --bg           Deep charcoal (main background)
     --surface      Slightly lighter (cards, nav)
     --surface-hi   Elevated cards / hover states
     --border       Subtle separator
     --red          Blood red accent
     --gold         Upcoming/badge highlight
     --text         Warm off-white
     --muted        Secondary text
   ================================================================ */

/* ----------------------------------------------------------------
   RESET & BASE
   ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #08080f;
  --surface:    #111120;
  --surface-hi: #1a1a2e;
  --border:     #2a2a42;
  --red:        #c0392b;
  --red-hover:  #e74c3c;
  --gold:       #c9a42b;
  --text:       #e8e0d4;
  --muted:      #8a8590;
  --radius:     6px;
  --shadow:     0 4px 24px rgba(0,0,0,0.6);
  --shadow-card:0 2px 16px rgba(0,0,0,0.5);
  --transition: 0.2s ease;
  --max-w:      1180px;
  --nav-h:      64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Crimson Text', Georgia, serif;
  background: var(--bg);
  color: var(--text);
  font-size: 18px;
  line-height: 1.7;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ----------------------------------------------------------------
   TYPOGRAPHY UTILITIES
   ---------------------------------------------------------------- */
.text-red    { color: var(--red); }
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--muted); }
.text-center { text-align: center; }
.font-sans   { font-family: 'DM Sans', system-ui, sans-serif; }

/* ----------------------------------------------------------------
   LAYOUT UTILITIES
   ---------------------------------------------------------------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}
.section--sm { padding: 48px 0; }
.section--lg { padding: 120px 0; }

/* ----------------------------------------------------------------
   NAVIGATION
   ---------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(8,8,15,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__logo img {
  height: 48px;
  width: auto;
  border-radius: 50%;
  object-fit: cover;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav__links a {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--text);
  background: var(--surface-hi);
}

.nav__links a.active { color: var(--red); }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}

/* ----------------------------------------------------------------
   HERO
   ---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 60% 40%, #1c0a0a 0%, var(--bg) 70%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/all-books.jpeg') center/cover no-repeat;
  opacity: 0.08;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__eyebrow {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

.hero__title {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.hero__subtitle {
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: 'DM Sans', system-ui, sans-serif;
  margin-bottom: 24px;
}

.hero__tagline {
  font-style: italic;
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 32px;
  border-left: 3px solid var(--red);
  padding-left: 20px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__image {
  display: flex;
  justify-content: center;
}

.hero__image img {
  max-height: 600px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 48px rgba(192,57,43,0.25));
}

/* ----------------------------------------------------------------
   BUTTONS
   ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--red {
  background: var(--red);
  color: #fff;
}
.btn--red:hover { background: var(--red-hover); transform: translateY(-1px); }

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--outline:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
  padding: 12px 16px;
}
.btn--ghost:hover { color: var(--text); border-color: var(--border); }

/* ----------------------------------------------------------------
   SECTION HEADERS
   ---------------------------------------------------------------- */
.section-header {
  margin-bottom: 48px;
}

.section-header__label {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.section-header__title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--text);
}

.section-header__desc {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1rem;
  font-family: 'DM Sans', system-ui, sans-serif;
  max-width: 56ch;
}

/* ----------------------------------------------------------------
   BOOK CARDS
   ---------------------------------------------------------------- */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 24px;
}

.books-grid--featured {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.book-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.book-card:hover {
  transform: translateY(-4px);
  border-color: var(--red);
  box-shadow: 0 8px 32px rgba(192,57,43,0.18);
}

.book-card__cover {
  aspect-ratio: 2/3;
  overflow: hidden;
  position: relative;
  background: var(--surface-hi);
}

.book-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.book-card:hover .book-card__cover img {
  transform: scale(1.04);
}

.book-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  background: var(--gold);
  color: #0a0a0a;
}

.book-card__badge--red {
  background: var(--red);
  color: #fff;
}

.book-card__body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.book-card__date {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.book-card__title {
  font-size: 0.95rem;
  font-family: 'Cinzel', Georgia, serif;
  line-height: 1.3;
  color: var(--text);
}

.book-card__btn {
  margin-top: auto;
  padding-top: 12px;
}

/* ----------------------------------------------------------------
   BOOK MODAL / EXPANDED VIEW
   ---------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.modal-overlay.open .modal { transform: translateY(0); }

.modal__cover {
  padding: 28px 0 28px 28px;
}

.modal__cover img {
  border-radius: 4px;
  width: 100%;
  box-shadow: var(--shadow-card);
}

.modal__body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--surface-hi);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  transition: color var(--transition), border-color var(--transition);
}
.modal__close:hover { color: var(--text); border-color: var(--red); }

.modal__label {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
}

.modal__title {
  font-size: 1.6rem;
  color: var(--text);
}

.modal__tagline {
  font-style: italic;
  color: var(--gold);
  font-size: 1rem;
  border-left: 2px solid var(--red);
  padding-left: 14px;
}

.modal__blurb {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.modal__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* ----------------------------------------------------------------
   FILTER TABS
   ---------------------------------------------------------------- */
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-tab {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-tab:hover { color: var(--text); border-color: var(--text); }
.filter-tab.active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

/* ----------------------------------------------------------------
   STATS STRIP
   ---------------------------------------------------------------- */
.stats-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}

.stats-strip__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat__number {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 2.4rem;
  color: var(--red);
  line-height: 1;
}

.stat__label {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

/* ----------------------------------------------------------------
   ABOUT SNIPPET (homepage)
   ---------------------------------------------------------------- */
.about-strip {
  background: linear-gradient(135deg, var(--surface) 0%, rgba(192,57,43,0.06) 100%);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 56px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: start;
}

.about-strip__photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--red);
  flex-shrink: 0;
}

.about-strip__quote {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 20px;
  line-height: 1.5;
}

.about-strip__text {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  font-family: 'DM Sans', system-ui, sans-serif;
}

/* ----------------------------------------------------------------
   SOCIAL GRID
   ---------------------------------------------------------------- */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  transition: all var(--transition);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.social-card:hover {
  border-color: var(--red);
  color: var(--text);
  transform: translateY(-2px);
}

.social-card__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

/* ----------------------------------------------------------------
   FOOTER
   ---------------------------------------------------------------- */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.footer__logo {
  height: 40px;
  width: auto;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
}

.footer__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 20px;
  list-style: none;
}

.footer__links a {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13px;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: var(--radius);
  transition: color var(--transition);
}

.footer__links a:hover { color: var(--text); }

.footer__copy {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 12px;
  color: var(--muted);
}

/* ----------------------------------------------------------------
   ABOUT PAGE
   ---------------------------------------------------------------- */
.about-hero {
  padding: 80px 0;
  background: radial-gradient(ellipse at 30% 60%, rgba(192,57,43,0.08) 0%, transparent 70%);
}

.about-hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  align-items: start;
}

.about-hero__photo {
  width: 100%;
  border-radius: 10px;
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
}

.about-hero__bio {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.9;
  font-family: 'DM Sans', system-ui, sans-serif;
}

.about-hero__bio p { margin-bottom: 1.2em; }

/* ----------------------------------------------------------------
   CONTACT PAGE
   ---------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 15px;
  padding: 12px 16px;
  transition: border-color var(--transition);
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--red);
}

.form-group textarea { min-height: 120px; }

/* ----------------------------------------------------------------
   TRANSFORMATION PAGE (lighter theme override)
   ---------------------------------------------------------------- */
body.page-transformation {
  --bg:         #fafaf7;
  --surface:    #ffffff;
  --surface-hi: #f2f0eb;
  --border:     #e0dbd2;
  --red:        #d35400;
  --red-hover:  #e67e22;
  --gold:       #7b5e00;
  --text:       #1a1814;
  --muted:      #6b6560;
}

body.page-transformation .nav {
  background: rgba(250,250,247,0.95);
  border-bottom-color: var(--border);
}

body.page-transformation .hero {
  background: linear-gradient(135deg, #fff8f0 0%, #fafaf7 100%);
}

body.page-transformation .hero::before { display: none; }

.transformation-quote {
  font-size: 1.8rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--red);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

.milestone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.milestone-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition);
}

.milestone-card:hover {
  transform: translateY(-3px);
  border-color: var(--red);
}

.milestone-card__number {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 2.2rem;
  color: var(--red);
}

.milestone-card__label {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
  letter-spacing: 0.06em;
}

/* ----------------------------------------------------------------
   UTILITIES
   ---------------------------------------------------------------- */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

.tag {
  display: inline-block;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 3px;
  border: 1px solid var(--border);
  color: var(--muted);
}

.tag--red { border-color: var(--red); color: var(--red); }
.tag--gold { border-color: var(--gold); color: var(--gold); }

/* ----------------------------------------------------------------
   SOCIAL RAIL (fixed left icon bar)
   ---------------------------------------------------------------- */
.social-rail {
  position: fixed;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.rail-line {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.rail-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--muted);
  transition: color var(--transition), transform var(--transition);
}

.rail-link svg { width: 15px; height: 15px; }

.rail-link:hover {
  color: var(--red);
  transform: scale(1.25);
}

@media (max-width: 1080px) { .social-rail { display: none; } }

/* ----------------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero__actions { justify-content: center; }

  .hero__image { order: -1; }
  .hero__image img { max-height: 400px; }

  .about-strip {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 36px;
  }

  .about-strip__photo { margin: 0 auto; }

  .about-hero__inner {
    grid-template-columns: 1fr;
  }

  .about-hero__photo {
    max-width: 300px;
    margin: 0 auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .modal {
    grid-template-columns: 1fr;
  }

  .modal__cover {
    padding: 24px 24px 0;
    max-width: 220px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  :root { --nav-h: 56px; }

  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
  }
  .nav__toggle { display: flex; }

  .section { padding: 56px 0; }
  .section--lg { padding: 80px 0; }

  .about-strip { padding: 28px 20px; }

  .modal-overlay { padding: 12px; }
  .modal { max-height: 95vh; }

  .hero { min-height: auto; }
  .hero__inner { padding: 56px 24px; }
}
