/* ================================
   INDEX PAGE - Corey's Bookshop Homepage
   Desk with book covers design
   ================================ */

/* Homepage Background - Parchment with vignette */
.page-home {
  background: var(--color-parchment);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Vignette/silhouette effect around edges */
.page-home::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 70% at 50% 50%,
      transparent 0%,
      transparent 40%,
      rgba(44, 36, 24, 0.15) 60%,
      rgba(44, 36, 24, 0.30) 80%,
      rgba(44, 36, 24, 0.45) 100%
    );
  pointer-events: none;
  z-index: 1;
}

/* ================================
   NAVIGATION ON COVER
   ================================ */
.nav-on-cover {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: var(--text-light-muted);
  text-decoration: none;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-light);
}

.nav-logo-space {
  width: 220px;
  text-align: center;
  flex-shrink: 0;
}

/* Mobile nav icons */
.mobile-nav-icons {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
  z-index: 1;
}

.nav-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-icon:hover {
  color: var(--text-light);
}

.nav-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

/* ================================
   STICKY TITLE (sits on top of nav)
   ================================ */
.sticky-title {
  position: sticky;
  top: 0;
  z-index: 201;
  text-align: center;
  padding: 3rem 2rem 2rem;
  pointer-events: none;
}

.sticky-title h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  display: inline-block;
  pointer-events: auto;
  letter-spacing: 0.02em;
  transition: font-size 0.3s ease, letter-spacing 0.3s ease;
}

.sticky-title.stuck {
  padding: 0.75rem 2rem;
}

.sticky-title.stuck h1 {
  font-size: 1.4rem;
  letter-spacing: 0.01em;
}

/* ================================
   STICKY NAV (appears when scrolled)
   ================================ */
.sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  background: transparent;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.sticky-nav.scrolled {
  background-color: var(--color-parchment);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  pointer-events: auto;
  opacity: 1;
}

.sticky-nav-content {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: auto;
}

.sticky-nav .nav-links a {
  color: var(--text-muted);
  text-shadow: none;
}

.sticky-nav .nav-links a:hover {
  color: var(--color-burgundy-mid);
}

.sticky-mobile-icons {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.sticky-nav .sticky-mobile-icons .nav-icon {
  color: var(--text-muted);
}

.sticky-nav .sticky-mobile-icons .nav-icon:hover {
  color: var(--color-burgundy-mid);
}

/* ================================
   DESK CONTENT AREA
   ================================ */
.desk-content {
  flex: 1;
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  padding: 4rem 2rem;
  gap: 5rem;
}

/* ================================
   HERO SECTION
   ================================ */
.hero {
  background: #f5f5f5;
  max-width: 100%;
  width: 100%;
  padding: 3rem 2rem;
  margin: 0 auto;
}

.hero-content {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.tagline {
  font-style: italic;
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 1.25rem;
  margin: 0 0 1.5rem;
  text-align: left;
}

.hero-text .story-text {
  text-align: left;
}

.shop-image-container {
  position: relative;
  width: 45%;
  flex-shrink: 0;
}

.shop-image {
  width: 100%;
  height: auto;
  display: block;
}

.hero .literary-quote {
  max-width: 900px;
  margin: 2.5rem auto 0;
  text-align: center;
}

/* ================================
   STORY HOOK SECTION
   ================================ */
.story-hook {
  max-width: 700px;
  margin: 0 auto 3rem;
  text-align: center;
}

.literary-quote {
  position: relative;
  margin: 0 0 2.5rem;
  padding: 1rem 2rem;
}

.literary-quote p {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.5;
  margin: 0;
}

.quote-mark {
  font-family: 'Times New Roman', Times, serif;
  font-size: 5rem;
  font-weight: 700;
  color: var(--color-gilded);
  opacity: 0.5;
  line-height: 1;
  position: absolute;
}

.quote-mark.open {
  top: -0.25rem;
  left: -0.75rem;
}

.quote-mark.close {
  bottom: -1rem;
  right: -0.75rem;
}

.literary-quote cite {
  display: block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-style: normal;
  color: var(--text-muted);
  margin-top: 1rem;
}

.story-text {
  text-align: left;
}

.story-text p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.story-text p:first-child {
  font-size: 1.15rem;
  color: var(--text-primary);
}

.story-cta {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-leather);
  text-decoration: none;
  border-bottom: 2px solid var(--color-gilded);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.story-cta:hover {
  color: var(--color-gilded);
  border-color: var(--color-leather);
}

/* ================================
   ATMOSPHERIC IMAGES
   ================================ */
.atmosphere-image {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.atmosphere-image img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.15),
    0 8px 24px rgba(0, 0, 0, 0.1);
}

/* ================================
   CURATOR'S PICK SECTION
   ================================ */
.curator-section {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.curator-header {
  text-align: center;
  margin-bottom: 2rem;
}

.curator-header h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 0.25rem;
}

.curator-subtitle {
  font-style: italic;
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0;
}

.curator-pick {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  align-items: start;
  background: rgba(245, 240, 232, 0.7);
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.curator-book-image img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  box-shadow:
    2px 2px 8px rgba(0, 0, 0, 0.15),
    4px 4px 16px rgba(0, 0, 0, 0.1);
}

.curator-book-details h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 0.25rem;
}

.curator-author {
  font-style: italic;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 1.25rem;
}

.curator-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 1rem;
}

.curator-note {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-muted);
  padding-left: 1rem;
  border-left: 3px solid var(--color-gilded);
  margin: 0 0 1.5rem;
}

.btn-text {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-leather);
  text-decoration: none;
  border-bottom: 2px solid var(--color-gilded);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.btn-text:hover {
  color: var(--color-gilded);
  border-color: var(--color-leather);
}

/* ================================
   FEATURED BOOKS SECTION
   ================================ */
.featured-section {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

.featured-section h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 0.25rem;
}

.section-intro {
  font-style: italic;
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0 0 2rem;
}

.featured-books {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.featured-book {
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: transform 0.2s ease;
}

.featured-book:hover {
  transform: translateY(-4px);
}

.featured-book img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  margin-bottom: 0.75rem;
  box-shadow:
    2px 2px 8px rgba(0, 0, 0, 0.15),
    4px 4px 16px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease;
}

.featured-book:hover img {
  box-shadow:
    4px 4px 12px rgba(0, 0, 0, 0.2),
    6px 6px 24px rgba(0, 0, 0, 0.15);
}

.featured-book h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 0.25rem;
}

.featured-book .author {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.featured-category {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--color-leather);
  background: rgba(139, 90, 43, 0.1);
  padding: 0.25rem 0.5rem;
  letter-spacing: 0.02em;
}

.featured-cta {
  margin-top: 1rem;
}

.btn-primary {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-warm-white);
  background: var(--color-leather);
  border: 2px solid var(--color-leather);
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--color-bookshelf);
  border-color: var(--color-bookshelf);
}

/* ================================
   GATEWAY TO CLASSICS SECTION
   ================================ */
.gateway-section {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.gateway-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.gateway-header h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 0.75rem;
}

.gateway-subtitle {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto;
}

.gateway-books {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.gateway-book {
  background: rgba(245, 240, 232, 0.7);
  padding: 1.75rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.gateway-quote {
  margin: 0 0 1.25rem;
  padding: 0;
  flex: 1;
}

.gateway-quote p {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.5;
  margin: 0;
  position: relative;
  padding-left: 1.5rem;
}

.gateway-quote p::before {
  content: '\201C';
  font-family: 'Times New Roman', Times, serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-gilded);
  opacity: 0.6;
  position: absolute;
  left: -0.25rem;
  top: -0.5rem;
  line-height: 1;
}

.gateway-book-info h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 0.25rem;
}

.gateway-author {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}

.gateway-leads {
  font-size: 0.85rem;
  color: var(--color-leather);
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(139, 90, 43, 0.2);
}

.gateway-message {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.gateway-message p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 1rem;
}

/* ================================
   HOME SECTIONS WRAPPER
   ================================ */
.home-sections-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  padding-bottom: 2rem;
}

/* Section separator */
.section-separator {
  text-align: center;
  margin: 3rem 0;
  position: relative;
}

.section-separator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--color-gilded),
    transparent
  );
  opacity: 0.4;
}

.section-separator-icon {
  position: relative;
  display: inline-block;
  padding: 0 1rem;
  background: var(--color-parchment);
  color: var(--color-gilded);
  font-size: 1rem;
}

/* ================================
   HOME SECTIONS GRID
   ================================ */
.home-sections {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.home-section {
  background: var(--color-parchment);
  padding: 1.5rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.1),
    0 4px 16px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-section:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.15),
    0 8px 24px rgba(0, 0, 0, 0.1);
}

.home-section h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.home-section p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.section-link {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-leather);
  transition: color 0.2s ease;
}

.home-section:hover .section-link {
  color: var(--color-gilded);
}

/* ================================
   READING AREA / NEWSLETTER SECTION
   ================================ */
.reading-area-section {
  position: relative;
  width: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.reading-area-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.reading-area-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(44, 36, 24, 0.5) 0%,
    rgba(44, 36, 24, 0.65) 100%
  );
}

.reading-area-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 500px;
  padding: 3rem 2rem;
}

.reading-area-content h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: var(--text-light);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.reading-area-content p {
  font-size: 1rem;
  color: var(--text-light-muted);
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.reading-area-content .mailing-list-form {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.reading-area-content .form-input {
  flex: 1;
  max-width: 250px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
}

.reading-area-content .form-input::placeholder {
  color: var(--text-muted);
}

/* ================================
   FOOTER ON COVER
   ================================ */
.footer-content {
  position: relative;
  z-index: 1;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.footer-nav a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--text-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--color-gilded);
}

.footer-divider {
  color: rgba(245, 241, 232, 0.3);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.4em;
}

.copyright {
  font-size: 0.75rem;
  color: var(--text-light-muted);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.copyright .shop-name {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--text-light);
}

/* ================================
   MOBILE MENU
   ================================ */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 299;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--color-parchment);
  z-index: 300;
  padding: 4rem 2rem 2rem;
  transition: right 0.3s ease;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
}

.mobile-menu-close svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.5;
}

.mobile-menu-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu-links li {
  margin-bottom: 1.25rem;
}

.mobile-menu-links a {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text-primary);
  text-decoration: none;
}

.mobile-menu-links a:hover {
  color: var(--color-burgundy-mid);
}

/* ================================
   BUTTON VARIANTS FOR COVERS
   ================================ */
.btn-light {
  background: var(--color-warm-white);
  color: var(--color-bookshelf);
  border: 2px solid var(--color-warm-white);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-light:hover {
  background: var(--color-parchment);
  border-color: var(--color-parchment);
}

/* ================================
   MOBILE RESPONSIVE
   ================================ */
@media (max-width: 768px) {
  .nav-links,
  .nav-logo-space {
    display: none;
  }

  .mobile-nav-icons {
    display: flex;
  }

  .sticky-title {
    padding: 2rem 1rem 1.5rem;
  }

  .sticky-title.stuck {
    padding: 0.5rem 1rem;
  }

  .sticky-title h1 {
    font-size: 2.2rem;
  }

  .sticky-title.stuck h1 {
    font-size: 1.15rem;
  }

  .desk-content {
    padding: 2rem 1.5rem;
    gap: 3rem;
  }

  .home-sections {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .section-separator {
    margin: 2rem 0;
  }

  .hero {
    padding: 2rem 1.5rem;
  }

  .hero-content {
    flex-direction: column;
    gap: 1.5rem;
  }

  .shop-image-container {
    width: 100%;
    order: -1;
  }

  .tagline {
    text-align: center;
  }

  .literary-quote {
    padding: 0.5rem 1.5rem;
  }

  .literary-quote p {
    font-size: 1.25rem;
  }

  .quote-mark {
    font-size: 3.5rem;
  }

  .quote-mark.open {
    left: -0.25rem;
    top: 0;
  }

  .quote-mark.close {
    right: -0.25rem;
    bottom: -0.75rem;
  }

  .story-text p {
    font-size: 1rem;
  }

  .story-text p:first-child {
    font-size: 1.05rem;
  }

  .curator-pick {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .curator-book-image {
    max-width: 180px;
    margin: 0 auto;
  }

  .curator-book-details {
    text-align: center;
  }

  .curator-note {
    text-align: left;
  }

  .featured-books {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .featured-book h4 {
    font-size: 1rem;
  }

  .reading-area-section {
    min-height: 350px;
  }

  .reading-area-content {
    padding: 2rem 1.5rem;
  }

  .reading-area-content .mailing-list-form {
    flex-direction: column;
    align-items: center;
  }

  .reading-area-content .form-input {
    max-width: 100%;
    width: 100%;
  }

  .footer-nav {
    flex-direction: column;
    gap: 0.5rem;
  }

  .sticky-nav {
    height: 50px;
    padding: 0 1rem;
  }

  .sticky-nav .nav-links,
  .sticky-nav .nav-logo-space {
    display: none;
  }

  .sticky-mobile-icons {
    display: flex;
  }

  .gateway-books {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .gateway-book {
    padding: 1.5rem;
  }

  .gateway-quote p {
    font-size: 1rem;
  }
}
