/* ==========================================================================
   BookPrintingCanada.ca - Premium Core Stylesheet
   Theme: Canadian Flag Tone (Crimson Red #D81920, Pure White #FFF, Charcoal #15181C)
   Typography: Plus Jakarta Sans / Inter
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand Colors */
  --primary-red: #D81920;
  --primary-red-hover: #B70F15;
  --primary-red-light: #FFF0F1;
  --primary-red-glow: rgba(216, 25, 32, 0.25);
  
  --dark-navy: #111418;
  --dark-slate: #1A1E24;
  --text-dark: #1E232A;
  --text-muted: #5A6474;
  --text-light: #94A3B8;
  
  --bg-light: #F8FAFC;
  --bg-white: #FFFFFF;
  --border-color: #E2E8F0;
  --border-focus: #D81920;
  
  --gold-accent: #D97706;
  --gold-light: #FEF3C7;
  
  /* Shadows & Glassmorphism */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.12), 0 10px 15px -5px rgba(0, 0, 0, 0.06);
  --shadow-red: 0 12px 28px -6px rgba(216, 25, 32, 0.35);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.25;
  color: var(--dark-navy);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
h4 { font-size: 1.2rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.text-red { color: var(--primary-red); }
.bg-red { background-color: var(--primary-red); color: white; }
.bg-light-red { background-color: var(--primary-red-light); }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Buttons & Badges */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  font-weight: 700;
  font-size: 0.98rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary-red);
  color: #FFFFFF;
  box-shadow: var(--shadow-red);
}

.btn-primary:hover {
  background-color: var(--primary-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -6px rgba(216, 25, 32, 0.45);
}

.btn-secondary {
  background-color: var(--dark-navy);
  color: #FFFFFF;
}

.btn-secondary:hover {
  background-color: var(--dark-slate);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary-red);
  color: var(--primary-red);
}

.btn-outline:hover {
  background-color: var(--primary-red);
  color: #FFFFFF;
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-red {
  background-color: var(--primary-red-light);
  color: var(--primary-red);
  border: 1px solid rgba(216, 25, 32, 0.2);
}

.badge-gold {
  background-color: var(--gold-light);
  color: var(--gold-accent);
}

/* ==========================================================================
   Header & Navigation Bar
   ========================================================================== */
.top-bar {
  background-color: var(--dark-navy);
  color: #94A3B8;
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-contact {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-bar-contact a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #E2E8F0;
}

.top-bar-contact a:hover {
  color: #FF4D52;
}

.top-bar-social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-bar-social a {
  color: #94A3B8;
  font-size: 0.95rem;
}

.top-bar-social a:hover {
  color: #FFFFFF;
}

/* Main Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.logo img {
  height: 64px;
  width: auto;
  transform: scale(1.12);
  transform-origin: left center;
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: scale(1.16);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark-navy);
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-red);
}

/* Mega Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 260px;
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  padding: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-normal);
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 0.6rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  border-radius: var(--radius-sm);
}

.dropdown-link:hover {
  background-color: var(--primary-red-light);
  color: var(--primary-red);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark-navy);
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  padding: 4.5rem 0 5rem;
  background: linear-gradient(135deg, #FFF9F9 0%, #FFFFFF 50%, #F8FAFC 100%);
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--primary-red-glow) 0%, rgba(255,255,255,0) 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  margin: 1.2rem 0;
}

.hero-content p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.stat-item h3 {
  font-size: 1.8rem;
  color: var(--primary-red);
}

.stat-item p {
  font-size: 0.85rem;
  margin: 0;
  font-weight: 600;
  color: var(--text-dark);
}

/* Hero Calculator Card */
.hero-calc-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  position: relative;
}

.hero-calc-card h3 {
  margin-bottom: 0.5rem;
}

.calc-form-group {
  margin-bottom: 1.2rem;
}

.calc-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--dark-navy);
}

.calc-select, .calc-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-family: inherit;
  font-size: 0.95rem;
  background-color: var(--bg-light);
  transition: var(--transition-fast);
}

.calc-select:focus, .calc-input:focus {
  outline: none;
  border-color: var(--primary-red);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px var(--primary-red-glow);
}

.calc-range-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.calc-range-row input[type="range"] {
  flex: 1;
  accent-color: var(--primary-red);
}

.calc-range-val {
  font-weight: 800;
  color: var(--primary-red);
  font-size: 1.1rem;
  min-width: 60px;
  text-align: right;
}

.calc-result-box {
  background: var(--dark-navy);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 1.2rem;
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-price-big {
  font-size: 1.7rem;
  font-weight: 800;
  color: #FF4D52;
}

.calc-per-unit {
  font-size: 0.8rem;
  color: #94A3B8;
}

/* ==========================================================================
   Interactive Book Sizes Section
   ========================================================================== */
.section {
  padding: 5rem 0;
}

.section-title-wrap {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3.5rem;
}

.section-title-wrap p {
  font-size: 1.1rem;
  margin-top: 0.8rem;
}

.sizes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.size-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.8rem 1.2rem;
  text-align: center;
  transition: var(--transition-normal);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.size-card:hover, .size-card.active {
  border-color: var(--primary-red);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.size-visual {
  background: var(--primary-red-light);
  border: 2px dashed var(--primary-red);
  border-radius: 6px;
  margin: 0 auto 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary-red);
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.size-card.size-digest .size-visual { width: 110px; height: 160px; }
.size-card.size-trade .size-visual { width: 120px; height: 180px; }
.size-card.size-us-letter .size-visual { width: 150px; height: 190px; }
.size-card.size-square .size-visual { width: 140px; height: 140px; }
.size-card.size-pocket .size-visual { width: 95px; height: 145px; }

/* ==========================================================================
   Spine Thickness Calculator Section
   ========================================================================== */
.spine-calc-box {
  background: linear-gradient(135deg, var(--dark-navy) 0%, var(--dark-slate) 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.spine-calc-box h2 {
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.spine-calc-box p {
  color: #94A3B8;
}

.spine-display {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
}

.spine-width-num {
  font-size: 3.2rem;
  font-weight: 800;
  color: #FF4D52;
  margin: 0.5rem 0;
}

.spine-visual-3d {
  width: 60px;
  height: 180px;
  background: linear-gradient(90deg, #D81920 0%, #FF4D52 50%, #B70F15 100%);
  margin: 1.5rem auto 0;
  border-radius: 4px;
  box-shadow: -10px 10px 20px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 800;
  writing-mode: vertical-rl;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  transition: width 0.3s ease;
}

/* ==========================================================================
   Services Grid
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  border-color: var(--primary-red);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.service-icon {
  width: 58px;
  height: 58px;
  background: var(--primary-red-light);
  color: var(--primary-red);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.4rem;
}

.service-card h3 {
  margin-bottom: 0.8rem;
}

.service-card p {
  flex-grow: 1;
  font-size: 0.95rem;
}

.service-card .service-link {
  margin-top: 1.2rem;
  font-weight: 700;
  color: var(--primary-red);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.service-card .service-link:hover {
  gap: 0.7rem;
}

/* ==========================================================================
   SEO Content Section Layout
   ========================================================================== */
.content-section {
  background-color: #F8FAFC;
  padding: 5rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.content-block {
  max-width: 900px;
  margin: 0 auto;
}

.content-block h2 {
  margin: 2rem 0 1rem;
}

.content-block h3 {
  margin: 1.5rem 0 0.8rem;
}

.content-block p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.4rem;
  color: #334155;
}

.content-block ul, .content-block ol {
  margin: 1rem 0 1.8rem 1.5rem;
}

.content-block li {
  font-size: 1.02rem;
  margin-bottom: 0.6rem;
  color: #334155;
}

.feature-box {
  background: #FFFFFF;
  border-left: 4px solid var(--primary-red);
  padding: 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Canada Shipping Map / Coverage
   ========================================================================== */
.canada-coverage {
  background: var(--dark-navy);
  color: #FFFFFF;
  padding: 4.5rem 0;
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.canada-coverage h2 {
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.city-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2rem;
}

.city-tag {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
}

.city-tag i {
  color: #FF4D52;
  margin-right: 0.4rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--dark-navy);
  color: #94A3B8;
  padding: 4.5rem 0 2rem;
  border-top: 3px solid var(--primary-red);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  color: #FFFFFF;
  margin-bottom: 1.4rem;
  font-size: 1.1rem;
}

.footer-col p {
  color: #94A3B8;
  font-size: 0.92rem;
}

.footer-links li {
  margin-bottom: 0.7rem;
}

.footer-links a {
  color: #94A3B8;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: #FFFFFF;
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

/* Floating Quote Button */
.floating-quote-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  background-color: var(--primary-red);
  color: #FFFFFF;
  padding: 1rem 1.6rem;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 25px rgba(216, 25, 32, 0.5);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: var(--transition-normal);
}

.floating-quote-btn:hover {
  transform: scale(1.06);
  background-color: var(--primary-red-hover);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid, .spine-calc-box, .footer-grid {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none; /* Can be expanded via script.js toggle */
  }
  .mobile-toggle {
    display: block;
  }
  .top-bar-contact {
    flex-direction: column;
    gap: 0.4rem;
    align-items: flex-start;
  }
  .top-bar .container {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 2.5rem 0 3.5rem;
  }
  .spine-calc-box {
    padding: 1.8rem;
  }
}

/* ==========================================================================
   Lead Generation Modal & 3D Spine Visualizer Styles
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 100%;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  transition: var(--transition-fast);
}

.modal-close:hover {
  color: var(--primary-red);
}

.modal-summary-box {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  margin: 1.2rem 0 1.5rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--text-dark);
}

.summary-row.total-highlight {
  border-top: 1px dashed #CBD5E1;
  padding-top: 0.6rem;
  margin-top: 0.6rem;
  font-size: 1.1rem;
  color: var(--primary-red);
}

.modal-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 540px) {
  .modal-form-grid {
    grid-template-columns: 1fr;
  }
}

/* 3D Spine Visual Container */
.spine-3d-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.5rem 0;
  min-height: 90px;
}

.spine-visual-3d {
  height: 65px;
  min-width: 14px;
  background: linear-gradient(135deg, var(--primary-red) 0%, #B70F15 100%);
  border-radius: 4px;
  box-shadow: 4px 6px 15px rgba(0, 0, 0, 0.4), inset -2px 0 4px rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 0 6px;
  white-space: nowrap;
  overflow: hidden;
  border-left: 3px solid rgba(255, 255, 255, 0.3);
  border-right: 3px solid rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Breadcrumb Navigation Component
   ========================================================================== */
.breadcrumb-nav {
  margin-bottom: 1.2rem;
  font-size: 0.85rem;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  color: var(--text-muted);
}

.breadcrumb-link {
  color: var(--text-muted);
  font-weight: 500;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.breadcrumb-link:hover {
  color: var(--primary-red);
}

.breadcrumb-item.active {
  color: var(--primary-red);
  font-weight: 600;
}

.breadcrumb-separator {
  color: #94A3B8;
  font-size: 0.75rem;
}

/* ==========================================================================
   PDF Preflight Drag & Drop Checker Styles
   ========================================================================== */
.preflight-box {
  max-width: 800px;
  margin: 0 auto;
}

.preflight-dropzone {
  border: 2px dashed #CBD5E1;
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  background: #FFFFFF;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  cursor: pointer;
}

.preflight-dropzone:hover, .preflight-dropzone.dropzone-active {
  border-color: var(--primary-red);
  background-color: var(--primary-red-light);
  transform: translateY(-2px);
}

.preflight-icon-wrap {
  width: 70px;
  height: 70px;
  background: var(--primary-red-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
}

.preflight-results-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.preflight-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.preflight-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
}

.preflight-stat-card {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border: 1px solid var(--border-color);
}

.stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.preflight-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  margin-top: 0.3rem;
  width: fit-content;
}

.status-pass {
  background: #DCFCE7;
  color: #15803D;
}

.status-info {
  background: #E0F2FE;
  color: #0369A1;
}

.status-warn {
  background: #FEF3C7;
  color: #B45309;
}

/* ==========================================================================
   Paper Stock & Finishing Sampler Modal Styles
   ========================================================================== */
.sampler-tabs {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.tab-btn {
  background: none;
  border: none;
  padding: 0.8rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tab-btn:hover {
  color: var(--primary-red);
}

.tab-btn.active {
  background: var(--primary-red-light);
  color: var(--primary-red);
}

.sampler-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.sampler-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sampler-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-red);
}

.sampler-preview-box {
  height: 90px;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.preview-label {
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.65);
  color: white;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

/* Texture Styles & Animations */
.matte-texture {
  background: linear-gradient(135deg, #334155 0%, #1E293B 100%);
}

.gloss-texture {
  background: linear-gradient(135deg, #0F172A 0%, #334155 100%);
  box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.4);
}

.velvet-texture {
  background: linear-gradient(135deg, #881337 0%, #4C0519 100%);
}

.spot-uv-texture {
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  position: relative;
}

.spot-uv-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: spotUvGlow 2.5s infinite;
}

@keyframes spotUvGlow {
  0% { left: -100%; }
  50% { left: 150%; }
  100% { left: 150%; }
}

.uncoated-texture {
  background: #FFFDF9;
  border: 1px dashed #CBD5E1;
}

.uncoated-texture .preview-label {
  background: rgba(30, 41, 59, 0.85);
}

.gloss-paper-texture {
  background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
}

.gloss-paper-texture .preview-label {
  background: rgba(30, 41, 59, 0.85);
}

.silk-paper-texture {
  background: linear-gradient(135deg, #F1F5F9 0%, #CBD5E1 100%);
}

.silk-paper-texture .preview-label {
  background: rgba(30, 41, 59, 0.85);
}

.sampler-spec-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.78rem;
  margin: 0.8rem 0;
  color: var(--text-dark);
}

/* ==========================================================================
   Canadian Trust Badges & City Hub Cards Styles
   ========================================================================== */
.trust-signal-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.trust-badge-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
  backdrop-filter: blur(4px);
}

.city-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  text-align: left;
}

.city-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  cursor: pointer;
  transition: var(--transition-normal);
}

.city-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-red);
  transform: translateY(-4px);
}

.city-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.transit-badge {
  background: rgba(216, 25, 32, 0.2);
  color: #FF8A8E;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(216, 25, 32, 0.4);
}

/* ==========================================================================
   Canadian ISBN Guide & Barcode Validator Styles
   ========================================================================== */
.isbn-tool-box {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-md);
}

.isbn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 768px) {
  .isbn-grid {
    grid-template-columns: 1fr;
  }
}

.isbn-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
}

.isbn-pass {
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #86EFAC;
}

.isbn-fail {
  background: #FEE2E2;
  color: #B91C1C;
  border: 1px solid #FCA5A5;
}

.barcode-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.barcode-svg-wrap {
  min-height: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #FFFFFF;
  padding: 0.8rem;
  border-radius: 4px;
}

/* ==========================================================================
   Book Trim Dimensions Proportional Scale Visualizer Modal Styles
   ========================================================================== */
.trim-selector-strip {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.8rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.trim-pill-btn {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.trim-pill-btn:hover {
  border-color: var(--primary-red);
  color: var(--primary-red);
}

.trim-pill-btn.active {
  background: var(--primary-red);
  color: white;
  border-color: var(--primary-red);
}

.trim-canvas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

@media (max-width: 768px) {
  .trim-canvas-grid {
    grid-template-columns: 1fr;
  }
}

.trim-canvas-box {
  background: #F8FAFC;
  border: 1px dashed #CBD5E1;
  border-radius: var(--radius-md);
  padding: 1.2rem;
  text-align: center;
}

.trim-canvas-area {
  height: 250px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.03);
  position: relative;
}

.trim-book-shape {
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  color: white;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.5rem;
  text-align: center;
}

.trim-spec-box {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.trim-spec-table {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--bg-light);
  padding-bottom: 0.4rem;
}

.spec-row span {
  color: var(--text-muted);
}

/* ==========================================================================
   Self-Publishing Author Royalty & Profit Calculator Styles
   ========================================================================== */
.profit-tool-box {
  max-width: 900px;
  margin: 0 auto;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-md);
}

.profit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 768px) {
  .profit-grid {
    grid-template-columns: 1fr;
  }
}

.profit-metrics-card {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.profit-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px dashed #E2E8F0;
  font-size: 0.9rem;
}

.profit-metric-row span {
  color: var(--text-dark);
}

.metric-value-green {
  font-weight: 700;
  font-size: 1.1rem;
  color: #15803D;
  background: #DCFCE7;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

/* ==========================================================================
   Homepage Sample Showcase Slider Section Styles
   ========================================================================== */
.sample-slider-section {
  padding: 4rem 0;
  background-color: var(--bg-light);
  overflow: hidden;
}

.sample-slider-container {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 0.5rem 1.8rem;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-red) var(--border-color);
}

.sample-slider-container::-webkit-scrollbar {
  height: 8px;
}

.sample-slider-container::-webkit-scrollbar-thumb {
  background-color: var(--primary-red);
  border-radius: 4px;
}

.sample-slide-card {
  min-width: 280px;
  max-width: 320px;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.sample-slide-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-red);
}

.sample-slide-img-wrap {
  height: 200px;
  width: 100%;
  overflow: hidden;
  position: relative;
  background: #F1F5F9;
}

.sample-slide-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.sample-slide-card:hover .sample-slide-img-wrap img {
  transform: scale(1.08);
}

.sample-slide-content {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.sample-slide-content h4 {
  font-size: 1.05rem;
  color: var(--dark-navy);
  margin-bottom: 0.4rem;
}

.sample-slide-content p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ==========================================================================
   Transparent Glassmorphic "Leaf" Card & Impact Visual Styles
   ========================================================================== */
.glass-leaf-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 32px 10px 32px 10px;
  padding: 2.2rem;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.07);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.glass-leaf-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(216, 25, 32, 0.4);
  box-shadow: 0 30px 60px rgba(216, 25, 32, 0.12);
}

.glass-leaf-dark {
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 32px 10px 32px 10px;
  color: #FFFFFF;
  padding: 2.2rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.service-hero-visual-card {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid #FFFFFF;
}

.service-hero-visual-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}









