/* ==========================================================
   SV GLOBAL
   - Tokens (colors, spacing, widths)
   - Base typography + utilities
   - Plaques/cards/buttons foundations
   Replace this ENTIRE FILE when updating.
========================================================== */

:root{
  --sv-ink:#1a1a1a;
  --sv-ink-soft:rgba(26,26,26,.86);

  --sv-cream:#efe6d3;
  --sv-cream-2:#f6efdf;
  --sv-line:rgba(26,26,26,.18);

  --sv-shadow-soft:0 10px 26px rgba(0,0,0,.14);
  --sv-shadow:0 16px 40px rgba(0,0,0,.18);

  --sv-radius:16px;

  --sv-max:1180px;
  --sv-read:820px;

  --sv-pad-d:96px;
  --sv-pad-t:72px;
  --sv-pad-m:48px;
}

/* Hide page title on the homepage */
body.home .entry-title,
body.home .page-title,
body.home h1.entry-title{
  display:none !important;
}

/* Optional: hide theme header band on homepage */
body.home header,
body.home .site-header,
body.home #masthead{
  display:none !important;
}

/* If hiding header, remove top offset WP sometimes adds */
body.home{
  margin-top: -90px !important;
}

.sticky-enabled .main-navigation.is_stuck {
  box-shadow: 0 0 0 0 rgba(0, 0, 0, .0);
}

.gp-icon svg {
  height: 2em !important;
  width: 2em !important;
  top: .185em !important;
}

/* A light reset that plays nice with WPBakery + theme */
*, *::before, *::after{ box-sizing:border-box; }
img{ max-width:100%; height:auto; display:block; }
a{ text-underline-offset: 2px; }


/* ==========================================================
   TYPOGRAPHY NORMALIZATION
   Site-wide font defaults for consistency
========================================================== */

body {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 18px;
  line-height: 1.6;
  color: #4a4a4a !important;
  font-weight: 400;
}

/* Normalize all headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'EB Garamond', Georgia, serif !important;
  line-height: 1.2 !important;
  margin-top: 0;
  margin-bottom: 1rem;
  color: #654321;
  font-weight: 600 !important;
}

/* Heading sizes */
h1 {
  font-size: 48px;
  font-weight: 700 !important;
  line-height: 1.1 !important;
}

h2 {
  font-size: 36px;
  font-weight: 600 !important;
}

h3 {
  font-size: 28px;
  font-weight: 600 !important;
}

h4 {
  font-size: 22px;
  font-weight: 500 !important;
}

h5 {
  font-size: 18px;
  font-weight: 500 !important;
}

h6 {
  font-size: 16px;
  font-weight: 500 !important;
}

/* Paragraph normalization */
p {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Italic variants */
.book-hero-subtitle,
.book-page-subtitle,
em, i {
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
}

/* Strong/Bold */
strong, b {
  font-weight: 600;
}

/* Links */
a {
  color: #654321;
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #8b6f47;
}

/* Responsive typography */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }
  
  h1 {
    font-size: 36px;
  }
  
  h2 {
    font-size: 28px;
  }
  
  h3 {
    font-size: 24px;
  }
  
  h4 {
    font-size: 20px;
  }
  
  p {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 32px;
  }
  
  h2 {
    font-size: 24px;
  }
  
  h3 {
    font-size: 20px;
  }
}

/* Containers */
.sv-wrap{
  max-width:var(--sv-max);
  margin:0 auto;
  padding:0 24px;
}
.sv-read{
  max-width:var(--sv-read);
  margin:0 auto;
  padding:0 24px;
}

/* Section rhythm */
.sv-section{
  padding:var(--sv-pad-d) 0;
  position:relative;
}
@media (max-width:1024px){
  .sv-section{ padding:var(--sv-pad-t) 0; }
}
@media (max-width:767px){
  .sv-section{ padding:var(--sv-pad-m) 0; }
}

/* Typography (we can refine once you pick final fonts) */
.sv-section h1,
.sv-section h2,
.sv-section h3{
  color:var(--sv-ink);
  letter-spacing:.02em;
  margin:0 0 14px;
}
.sv-section p{ margin:0 0 14px; line-height:1.65; }

/* Plaque / cream card */
.sv-plaque{
  background:linear-gradient(180deg, var(--sv-cream-2), var(--sv-cream));
  border:1px solid var(--sv-line);
  border-radius:var(--sv-radius);
  box-shadow:var(--sv-shadow-soft);
  padding:22px 24px;
}
@media (max-width:767px){
  .sv-plaque{ padding:18px 18px; }
}

/* Buttons */
.sv-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:11px 16px;
  border-radius:12px;
  border:1px solid var(--sv-line);
  text-decoration:none !important;
  font-weight:600;
  letter-spacing:.02em;
  transition:transform .08s ease, box-shadow .18s ease, background .18s ease;
  user-select:none;
}
.sv-btn:hover{ transform:translateY(-1px); box-shadow:0 10px 20px rgba(0,0,0,.12); }

.sv-btn-primary{
  background:rgba(26,26,26,.92);
  color:#fff !important;
  border-color:rgba(26,26,26,.25);
}
.sv-btn-secondary{
  background:rgba(255,255,255,.45);
  color:var(--sv-ink) !important;
}

/* Utility: simple centered heading blocks */
.sv-center{ text-align:center; }
.sv-muted{ opacity:.85; }

/* Optional: olive glyph class placeholder (we’ll wire later if needed) */
.sv-olive{
  display:block;
  width:160px;
  max-width:46vw;
  height:auto;
  margin:0 auto;
}

/* ==========================================================
   FLOATING HOME BUTTON
   Shows on all pages except homepage
========================================================== */

.sv-home-float {
  position: fixed;
  left: 20px;
  top: 300px;
  z-index: 9998;
  
  /* Fade in animation */
  opacity: 0;
  animation: svHomeFadeIn 0.6s ease-out 0.3s forwards;
}

@keyframes svHomeFadeIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.sv-home-float a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 52px;
  padding: 12px 8px 10px;
  
  background: rgba(239, 230, 211, 0.95);
  border: 1px solid rgba(26, 26, 26, 0.12);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  
  text-decoration: none;
  transition: all 0.2s ease;
}

.sv-home-float a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
  background: rgba(239, 230, 211, 1);
}

.sv-home-float-icon {
  font-size: 22px;
  line-height: 1;
  margin-bottom: 4px;
  color: #1a1a1a;
}

.sv-home-float-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #1a1a1a;
  writing-mode: vertical-rl;
  text-orientation: upright;
}

/* Hide on homepage */
body.home .sv-home-float {
  display: none;
}

/* Responsive: Move to bottom-right on mobile */
@media (max-width: 767px) {
  .sv-home-float {
    left: auto;
    right: 20px;
    top: auto;
    bottom: 20px;
  }
}

/* ==========================================================
   PRINT STYLES
   Hide navigation elements when printing
========================================================== */

@media print {
  /* Hide floating home button */
  .sv-home-float {
    display: none !important;
  }
  
  /* Hide any mobile menu/hamburger */
  .menu-toggle,
  .mobile-menu-control-wrapper,
  .mobile-bar-items,
  button[aria-controls="mobile-menu"],
  .main-navigation {
    display: none !important;
  }
  
  /* Hide GeneratePress menu */
  .site-header,
  #site-navigation,
  .navigation-stick,
  .sticky-navigation {
    display: none !important;
  }
}


/* ==========================================================
   WPBAKERY FONT NORMALIZATION
   Targets specific classes used in homepage and book pages
========================================================== */

/* Homepage Hero Section */
.sv-hero-title-plaque h1,
.sv-hero-subtitle {
  font-family: 'EB Garamond', Georgia, serif !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
}

.sv-hero-band-inner h2 {
  font-family: 'EB Garamond', Georgia, serif !important;
  font-weight: 600 !important;
  font-size: 36px !important;
  line-height: 1.2 !important;
  color: #654321 !important;
}

/* Books Panel Section */
.sv-books-panel-title {
  font-family: 'EB Garamond', Georgia, serif !important;
  font-weight: 700 !important;
  font-size: 42px !important;
  line-height: 1.2 !important;
  color: #654321 !important;
}

.sv-books-panel-subtitle {
  font-family: 'EB Garamond', Georgia, serif !important;
  font-weight: 400 !important;
  font-size: 18px !important;
  line-height: 1.6 !important;
  color: #4a4a4a !important;
}

/* Book Cards */
.sv-book-titleframe {
  font-family: 'EB Garamond', Georgia, serif !important;
  font-weight: 600 !important;
  font-size: 24px !important;
  line-height: 1.2 !important;
  color: #654321 !important;
}

.sv-book-text {
  font-family: 'EB Garamond', Georgia, serif !important;
  font-weight: 400 !important;
  font-size: 17px !important;
  line-height: 1.6 !important;
  color: #4a4a4a !important;
}

.sv-book-punchline {
  font-family: 'EB Garamond', Georgia, serif !important;
  font-weight: 600 !important;
  font-size: 17px !important;
  line-height: 1.5 !important;
}

.sv-book-price {
  font-family: 'EB Garamond', Georgia, serif !important;
  font-weight: 700 !important;
  font-size: 32px !important;
  color: #654321 !important;
}

.sv-book-status,
.sv-book-preorder-header,
.sv-book-coming-soon {
  font-family: 'EB Garamond', Georgia, serif !important;
  font-weight: 500 !important;
  font-size: 16px !important;
}

/* Book One Page - Hero */
.book-hero-title {
  font-family: 'EB Garamond', Georgia, serif !important;
  font-weight: 600 !important;
  font-size: 48px !important;
  line-height: 1.1 !important;
  color: #654321 !important;
}

.book-hero-subtitle {
  font-family: 'EB Garamond', Georgia, serif !important;
  font-weight: 400 !important;
  font-style: italic !important;
  font-size: 24px !important;
  line-height: 1.2 !important;
  color: #654321 !important;
}

.book-page-subtitle {
  font-family: 'EB Garamond', Georgia, serif !important;
  font-weight: 400 !important;
  font-style: italic !important;
  font-size: 20px !important;
  line-height: 1.3 !important;
  color: #4a4a4a !important;
}

/* Signed Copy Section */
.signed-copy-title {
  font-family: 'EB Garamond', Georgia, serif !important;
  font-weight: 600 !important;
  font-size: 42px !important;
  line-height: 1.2 !important;
  color: #654321 !important;
}

.signed-copy-description {
  font-family: 'EB Garamond', Georgia, serif !important;
  font-weight: 400 !important;
  font-size: 18px !important;
  line-height: 1.6 !important;
  color: #4a4a4a !important;
}

.signed-copy-price {
  font-family: 'EB Garamond', Georgia, serif !important;
  font-weight: 700 !important;
  font-size: 48px !important;
  color: #654321 !important;
}

/* Buttons */
.sv-btn,
.signed-copy-button {
  font-family: 'EB Garamond', Georgia, serif !important;
  font-weight: 600 !important;
  font-size: 18px !important;
}

/* Responsive */
@media (max-width: 768px) {
  .sv-hero-band-inner h2,
  .sv-books-panel-title {
    font-size: 32px !important;
  }
  
  .book-hero-title,
  .signed-copy-title {
    font-size: 36px !important;
  }
  
  .signed-copy-price {
    font-size: 36px !important;
  }
  
  .sv-book-price {
    font-size: 28px !important;
  }
}