/* ==========================================================================
   BEYOND THE BOOK MARKETING S.A.C.
   Design System: Classical Literary Agency & Author Launch House
   ========================================================================== */

:root {
  --btb-parchment: #faf8f5;
  --btb-parchment-alt: #f3efe6;
  --btb-ink-dark: #0c1824;
  --btb-ink-card: #142233;
  --btb-burgundy: #780016;
  --btb-burgundy-light: #9b1129;
  --btb-gold: #c8963e;
  --btb-gold-light: #dfb15b;
  --btb-card-bg: #ffffff;
  --btb-border: #e2dbce;
  --btb-text-main: #1c2430;
  --btb-text-secondary: #334155;
  --btb-text-light: #f8fafc;
  --btb-font-serif: Georgia, Cambria, 'Times New Roman', Times, serif;
  --btb-font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --btb-font-mono: 'Consolas', 'Courier New', monospace;
}

body {
  font-family: var(--btb-font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--btb-text-main);
  background-color: var(--btb-parchment);
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--btb-font-serif);
  font-weight: 700;
  color: var(--btb-ink-dark);
  line-height: 1.3;
}

a {
  color: var(--btb-burgundy);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--btb-burgundy-light);
  text-decoration: underline;
}

p {
  color: var(--btb-text-main);
  margin-bottom: 1.2rem;
}

/* 1. Literary Accreditation Topbar */
.btb_topbar {
  background-color: var(--btb-ink-dark);
  color: #e2e8f0;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 2px solid var(--btb-gold);
}

.btb_topbar a {
  color: #f1f5f9;
}

.btb_topbar a:hover {
  color: var(--btb-gold-light);
  text-decoration: underline;
}

.btb_badge_gold {
  background-color: var(--btb-gold);
  color: #0c1824;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
}

/* 2. Literary Header */
.btb_header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--btb-border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 4px 16px rgba(12, 24, 36, 0.05);
}

.btb_brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
}

.btb_brand_icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--btb-burgundy), var(--btb-ink-dark));
  color: var(--btb-gold-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--btb-font-serif);
  font-weight: 800;
  font-size: 1.4rem;
  border: 1px solid var(--btb-gold);
  box-shadow: 0 2px 8px rgba(120, 0, 22, 0.25);
}

.btb_brand_title {
  font-family: var(--btb-font-serif);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--btb-ink-dark);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.btb_brand_subtitle {
  font-size: 0.76rem;
  color: var(--btb-burgundy);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Nav Menu */
.btb_nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 18px;
}

.btb_nav > li {
  position: relative;
}

.btb_nav > li > a {
  color: var(--btb-ink-dark);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 10px;
  display: block;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.btb_nav > li > a:hover,
.btb_nav > li > a.active {
  color: var(--btb-burgundy);
  background-color: var(--btb-parchment-alt);
}

.btb_dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  border: 1px solid var(--btb-border);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  min-width: 270px;
  padding: 8px 0;
  list-style: none;
  margin: 6px 0 0 0;
  display: none;
  z-index: 1040;
}

.btb_nav > li:hover .btb_dropdown {
  display: block;
}

.btb_dropdown li a {
  display: block;
  padding: 9px 18px;
  color: var(--btb-text-main);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btb_dropdown li a:hover {
  background-color: var(--btb-parchment-alt);
  color: var(--btb-burgundy);
  padding-left: 22px;
}

/* Mobile Toggle */
.btn_btb_mobile {
  background-color: var(--btb-burgundy);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.btb_mobile_drawer {
  display: none;
  background-color: #ffffff;
  border-top: 1px solid var(--btb-border);
  padding: 16px;
  margin-top: 12px;
}

.btb_mobile_drawer.show {
  display: block;
}

.btb_mobile_list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.btb_mobile_list li a {
  display: block;
  padding: 10px 0;
  font-weight: 700;
  color: var(--btb-ink-dark);
  border-bottom: 1px solid #f1f5f9;
}

.btb_mobile_sublist {
  list-style: none;
  padding-left: 16px;
  margin: 4px 0 10px 0;
}

.btb_mobile_sublist li a {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--btb-text-secondary);
  border-bottom: none;
  padding: 6px 0;
}

/* 3. Hero Section (Editorial Splendor) */
.btb_hero_literary {
  background: linear-gradient(135deg, rgba(12, 24, 36, 0.94) 0%, rgba(20, 34, 51, 0.92) 100%), url('../images/beyond_hero.jpg') center/cover no-repeat;
  color: #ffffff;
  padding: 85px 0 75px;
  border-bottom: 4px solid var(--btb-gold);
}

.btb_hero_kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(200, 150, 62, 0.2);
  color: var(--btb-gold-light);
  border: 1px solid var(--btb-gold);
  padding: 5px 16px;
  border-radius: 30px;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.btb_hero_h1 {
  font-family: var(--btb-font-serif);
  font-size: 2.9rem;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 22px;
}

.btb_hero_lead {
  font-size: 1.18rem;
  color: #e2e8f0;
  line-height: 1.75;
  max-width: 820px;
  margin-bottom: 32px;
}

.btb_hero_meta_strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 35px;
}

.btb_hero_badge {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 0.88rem;
  color: #ffffff;
}

.btb_hero_badge strong {
  color: var(--btb-gold-light);
}

/* 4. Stats Ribbon */
.btb_stats_bar {
  background-color: #ffffff;
  border-bottom: 1px solid var(--btb-border);
  padding: 24px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.btb_stat_item {
  border-right: 1px solid var(--btb-border);
  padding: 10px 20px;
}

.btb_stat_val {
  font-family: var(--btb-font-serif);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--btb-burgundy);
  line-height: 1.1;
}

.btb_stat_lbl {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--btb-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 5. Editorial Cards */
.btb_card_editorial {
  background-color: #ffffff;
  border: 1px solid var(--btb-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.btb_card_editorial:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(120, 0, 22, 0.08);
  border-color: var(--btb-burgundy);
}

.btb_card_img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid var(--btb-border);
}

.btb_card_body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* 6. Roadmap Timeline */
.btb_roadmap_timeline {
  position: relative;
  border-left: 3px solid var(--btb-burgundy);
  margin-left: 20px;
  padding-left: 26px;
}

.btb_roadmap_step {
  position: relative;
  margin-bottom: 30px;
}

.btb_roadmap_dot {
  position: absolute;
  left: -35px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--btb-gold);
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px var(--btb-burgundy);
}

.btb_roadmap_card {
  background-color: #ffffff;
  border: 1px solid var(--btb-border);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

/* 7. Comparison Table */
.btb_table_custom {
  width: 100%;
  border-collapse: collapse;
  background-color: #ffffff;
  border: 1px solid var(--btb-border);
  border-radius: 8px;
  overflow: hidden;
}

.btb_table_custom th {
  background-color: var(--btb-ink-dark);
  color: #ffffff;
  font-family: var(--btb-font-serif);
  padding: 14px 18px;
  font-size: 0.94rem;
}

.btb_table_custom td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--btb-border);
  font-size: 0.92rem;
  color: var(--btb-text-main);
}

.btb_table_custom tr:hover td {
  background-color: var(--btb-parchment-alt);
}

/* 8. Footer */
.btb_footer {
  background-color: var(--btb-ink-dark);
  color: #cbd5e1;
  padding: 60px 0 30px;
  border-top: 4px solid var(--btb-gold);
}

.btb_footer h4 {
  font-family: var(--btb-font-serif);
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--btb-burgundy);
  padding-bottom: 8px;
  display: inline-block;
}

.btb_footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.btb_footer ul li {
  margin-bottom: 9px;
}

.btb_footer ul li a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.15s ease;
}

.btb_footer ul li a:hover {
  color: var(--btb-gold-light);
  padding-left: 4px;
}

.btb_legal_badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #142233;
  border: 1px solid #334155;
  padding: 6px 12px;
  border-radius: 6px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none !important;
}

.btb_legal_badge:hover {
  border-color: var(--btb-gold);
  color: var(--btb-gold-light);
}

.btb_legal_badge img {
  width: 20px;
  height: 20px;
}

.btb_footer_bottom {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  margin-top: 40px;
  font-size: 0.84rem;
  color: #94a3b8;
}

/* Breadcrumb */
.btb_breadcrumb {
  font-size: 0.88rem;
  color: var(--btb-text-secondary);
  font-weight: 600;
}

.btb_breadcrumb a {
  color: var(--btb-burgundy);
}

@media (max-width: 991px) {
  .btb_hero_h1 {
    font-size: 2.2rem;
  }
  .btb_stat_item {
    border-right: none;
    border-bottom: 1px solid var(--btb-border);
    margin-bottom: 12px;
  }
}


/* ==========================================================================
   MOBILE RESPONSIVE & TOUCH ADAPTATION (beyondthebookmarketing.com)
   ========================================================================== */

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

img, svg, video {
  max-width: 100%;
  height: auto;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
}

@media (max-width: 991px) {
  .btn_btb_mobile {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 700;
  }

  .btb_mobile_drawer {
    max-height: 75vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .btb_mobile_list > li > a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 12px 18px;
    font-size: 15.5px;
  }

  .btb_mobile_sublist > li > a {
    min-height: 40px;
    display: flex;
    align-items: center;
    padding: 10px 16px;
    font-size: 14.5px;
  }
}

@media (max-width: 768px) {
  h1, .display-5, .display-4, .btb_hero_h1 {
    font-size: 1.72rem !important;
    line-height: 1.25 !important;
    word-break: break-word;
  }

  h2, .display-6 {
    font-size: 1.42rem !important;
    line-height: 1.3 !important;
    word-break: break-word;
  }

  h3, .h3 {
    font-size: 1.25rem !important;
  }

  h4, .h4 {
    font-size: 1.12rem !important;
  }

  body, p {
    font-size: 15.5px !important;
    line-height: 1.68 !important;
  }

  .lead {
    font-size: 1.05rem !important;
    line-height: 1.65 !important;
  }

  /* Touch targets for inputs */
  .form-control, .form-select {
    min-height: 46px !important;
    font-size: 16px !important; /* Prevents iOS Safari auto-zoom on focus */
    padding: 10px 14px !important;
  }

  .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    font-size: 14.5px;
  }

  /* Hero Section spacing */
  .btb_hero_editorial, section.py-5 {
    padding: 38px 0 !important;
  }

  .btb_hero_actions, .d-flex.gap-3.flex-wrap {
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
  }

  .btb_hero_actions .btn, .d-flex.gap-3.flex-wrap .btn {
    width: 100% !important;
    margin-bottom: 4px;
  }

  /* Cards responsive padding */
  .card, .btb_card {
    padding: 18px !important;
  }

  .card-body {
    padding: 16px !important;
  }

  /* Topbar responsive wrap */
  .btb_topbar {
    padding: 8px 0;
    font-size: 13px;
  }

  .btb_topbar .container > div {
    flex-direction: column !important;
    text-align: center;
    gap: 8px !important;
  }

  .btb_topbar ul {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  .btb_brand_name {
    font-size: 1.15rem !important;
  }

  .btb_brand_icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 16px !important;
  }

  /* Footer single column spacing */
  .btb_footer {
    padding: 45px 0 25px !important;
  }

  .btb_footer_bottom {
    margin-top: 30px !important;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  h1, .display-5, .btb_hero_h1 {
    font-size: 1.55rem !important;
  }

  h2, .display-6 {
    font-size: 1.3rem !important;
  }

  .col-6 {
    width: 100% !important;
  }

  .btb_legal_badge {
    width: 100%;
    justify-content: center;
  }
}
