/* ==========================================================================
   SHARED.CSS
   Toilet Issues to Toilet Tissues — Shared Styles
   Used by: landing_page.html | sales_page.html | author_page.html
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Colour palette */
  --cream:         #f5f0e8;
  --dark-brown:    #2c1f0e;
  --medium-brown:  #3d2b12;
  --orange-brown:  #c4621a;
  --warm-orange:   #d4722a;
  --light-tan:     #e8dcc8;
  --text-dark:     #1a1410;
  --text-mid:      #3a2e22;
  --text-light:    #7a6a55;
  --border-light:  #ddd0bc;
  --dark-bg:       #1e1208;
}


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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  background-color: var(--cream);
  color: var(--text-dark);
  font-size: 14px;
  line-height: 1.6;
}


/* --------------------------------------------------------------------------
   3. CUSTOM CURSOR
   -------------------------------------------------------------------------- */
#cur {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--orange-brown);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: transform 0.1s ease;
}

#cur2 {
  position: fixed;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--orange-brown);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9998;
  opacity: 0.5;
}


/* --------------------------------------------------------------------------
   4. TYPOGRAPHY UTILITIES
   -------------------------------------------------------------------------- */

/* All-caps eyebrow label above section headings */
.section-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange-brown);
  margin-bottom: 14px;
}


/* --------------------------------------------------------------------------
   5. BUTTON COMPONENTS
   -------------------------------------------------------------------------- */

/* Solid CTA button */
.btn-primary {
  background-color: var(--orange-brown);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 26px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  display: inline-block;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  background-color: #b55818;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Ghost / outline CTA button */
.btn-secondary {
  background-color: transparent;
  color: var(--text-mid);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 26px;
  text-decoration: none;
  border: 1.5px solid var(--border-light);
  cursor: pointer;
  display: inline-block;
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.btn-secondary:hover {
  border-color: var(--orange-brown);
  color: var(--orange-brown);
  transform: translateY(-2px);
}

/* White-fill button (used on coloured backgrounds) */
.btn-white {
  background-color: #fff;
  color: var(--orange-brown);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 26px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.btn-white:hover {
  background-color: #f0e0d0;
}


/* --------------------------------------------------------------------------
   6. SHARED NAVIGATION / BANNER STRIPS
   -------------------------------------------------------------------------- */

/* Dark top banner used on landing & sales pages */
.top-banner {
  background-color: var(--dark-bg);
  text-align: center;
  padding: 10px 20px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #c8a878;
}

/* Top nav bar used on author page */
.top-nav {
  text-align: center;
  padding: 12px 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #c8a878;
  background-color: var(--dark-bg);
}

.top-nav span  { margin: 0 8px; }
.top-nav .dot  { color: var(--orange-brown); }


/* --------------------------------------------------------------------------
   7. AUTHOR AVATAR COMPONENT
   Reused across all three pages in various sizes
   -------------------------------------------------------------------------- */
.author-avatar,
.author-dark-avatar,
.avatar-circle {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

/* Landing page small variant */
.author-avatar {
  width: 70px;
  height: 70px;
  background-color: rgba(0, 0, 0, 0.3);
  font-size: 22px;
}

/* Sales page medium variant */
.author-dark-avatar {
  width: 80px;
  height: 80px;
  background-color: var(--orange-brown);
  font-size: 24px;
  margin: 0 auto 16px;
}

/* Author page large variant */
.avatar-circle {
  width: 70px;
  height: 70px;
  background-color: var(--orange-brown);
  font-size: 22px;
}


/* --------------------------------------------------------------------------
   8. SCROLL-REVEAL UTILITY CLASSES
   Shared between landing and sales pages (landing uses .rv / .rvl / .rvr;
   author page uses .scroll-animate / .visible).
   -------------------------------------------------------------------------- */

/* Fade-up */
.rv {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}

/* Fade-in from left */
.rvl {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}

/* Fade-in from right */
.rvr {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}

/* Visible state for all three variants */
.rv.v,
.rvl.v,
.rvr.v {
  opacity: 1;
  transform: none;
}

/* Author-page variant */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-in, transform 1s ease-in;
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}


/* --------------------------------------------------------------------------
   9. AUTHOR BAND (landing page horizontal strip)
   -------------------------------------------------------------------------- */
.author-band {
  background-color: var(--orange-brown);
  padding: 40px;
}

.author-band-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.author-band-content { flex: 1; }

.author-band-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.author-band-role {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

/* "Meet the Author" ghost button inside the band */
.btn-meet {
  background-color: transparent;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 24px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.btn-meet:hover {
  border-color: #fff;
  transform: translateY(-2px);
}


/* --------------------------------------------------------------------------
   10. CLOSING QUOTE BLOCK
   Shared pattern used on sales & author pages
   -------------------------------------------------------------------------- */
.closing-quote,
.closing-quote-section {
  padding: 70px 40px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.closing-quote blockquote,
.closing-quote-section blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-style: italic;
  line-height: 1.7;
  color: var(--text-mid);
  margin-bottom: 16px;
}

.closing-quote cite,
.closing-quote-section cite {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--orange-brown);
  font-style: normal;
}


/* --------------------------------------------------------------------------
   11. GLOBAL PAGE-LINK NAV (injected by nav.js into every page)
   -------------------------------------------------------------------------- */
.site-nav {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-nav a {
  background-color: var(--dark-bg);
  color: #c8a878;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 9px 14px;
  text-decoration: none;
  border: 1px solid rgba(200, 168, 120, 0.25);
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.site-nav a:hover {
  background-color: var(--orange-brown);
  border-color: var(--orange-brown);
  color: #fff;
}

/* Highlight the current page link */
.site-nav a.active {
  background-color: var(--orange-brown);
  border-color: var(--orange-brown);
  color: #fff;
}


/* --------------------------------------------------------------------------
   12. RESPONSIVE OVERRIDES — Shared breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .author-band { padding-left: 24px; padding-right: 24px; }
  .closing-quote,
  .closing-quote-section { padding: 50px 24px; }
}

@media (max-width: 480px) {
  .closing-quote blockquote,
  .closing-quote-section blockquote { font-size: 16px; }
}
