/* ============================================
   HOME PAGE
   Rattlesnakes & Rainbows — Homepage Sections
   ============================================ */

/* -----------------------------------------------
   1. HERO — Option B: The Spread (floating cards)
   ----------------------------------------------- */

/* Floating card keyframes */
@keyframes floatCard1 {
  0%, 100% { transform: rotate(-12deg) translateY(0px); }
  50% { transform: rotate(-12deg) translateY(-8px); }
}

@keyframes floatCard2 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@keyframes floatCard3 {
  0%, 100% { transform: rotate(10deg) translateY(0px); }
  50% { transform: rotate(10deg) translateY(-6px); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* Hero layout */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 100vh;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height); /* account for fixed nav */
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

/* --- Hero Cards (left side) --- */
.hero-cards {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

/* Ambient glow behind the spread */
.hero-cards::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
  opacity: 0.15;
  border-radius: 50%;
  animation: glowPulse 6s ease-in-out infinite;
  pointer-events: none;
}

/* Individual cards */
.hero-card {
  position: absolute;
  width: 260px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* Card 1 — left, tilted */
.hero-card:nth-child(1) {
  left: 50%;
  margin-left: -200px;
  transform: rotate(-12deg);
  animation: floatCard1 5s ease-in-out infinite;
  z-index: 1;
}

/* Card 2 — center, prominent */
.hero-card:nth-child(2) {
  left: 50%;
  width: 280px;
  margin-left: -140px;
  z-index: 3;
  animation: floatCard2 4.5s ease-in-out infinite;
}

/* Card 3 — right, tilted opposite */
.hero-card:nth-child(3) {
  left: 50%;
  margin-left: 20px;
  transform: rotate(10deg);
  animation: floatCard3 5.5s ease-in-out infinite;
  z-index: 2;
}

/* Hover lift */
.hero-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 12px 40px rgba(196, 153, 59, 0.2);
  z-index: 10;
}

/* --- Hero Text (right side) --- */
.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 60px;
  gap: 24px;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  line-height: 0.9;
  color: var(--color-text);
  max-width: 560px;
}

.hero-headline .num {
  color: var(--color-accent);
  font-weight: 400;
}

.hero-body {
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: var(--leading-body);
  color: var(--color-text-muted);
  max-width: 480px;
}

/* CTA row */
.hero-cta-row {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 8px;
}

.hero-cta-row .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: normal;
  color: var(--color-text-dark);
  background: var(--color-accent);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.hero-cta-row .btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

.hero-cta-row .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: normal;
  color: var(--color-accent);
  background: transparent;
  border: 1px solid var(--color-accent);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.hero-cta-row .btn-secondary:hover {
  background: rgba(196, 153, 59, 0.1);
  transform: translateY(-1px);
}


/* -----------------------------------------------
   1b. PHILOSOPHY BRIDGE
   ----------------------------------------------- */

.philosophy-bridge {
  padding: var(--space-xxl) var(--space-lg);
  background: var(--color-bg-primary);
  text-align: center;
}

.philosophy-bridge-inner {
  max-width: 720px;
  margin: 0 auto;
}

.philosophy-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  line-height: 1.5;
  color: var(--color-text-muted);
  margin: 0;
  padding: 0;
  border: none;
}

.philosophy-attribution {
  display: block;
  margin-top: 24px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-style: normal;
}


/* -----------------------------------------------
   2. FEATURED CARDS SECTION
   ----------------------------------------------- */

.featured-section {
  padding: var(--space-xxl) var(--space-lg);
  background: var(--color-bg-primary);
}

.featured-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.featured-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.featured-header h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--size-h2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text);
  margin-bottom: 8px;
}

.featured-header p {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

/* Move card chrome to .tarot-card-inner so Discover sits outside */
.featured-grid .tarot-card {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
}
.featured-grid .tarot-card:hover {
  box-shadow: none;
  border-color: transparent;
}
.featured-grid .tarot-card-inner {
  margin: 0;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(245, 240, 232, 0.12);
  background: #1c1916;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s;
}
.featured-grid .tarot-card:hover .tarot-card-inner {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(196, 153, 59, 0.25);
  border-color: rgba(196, 153, 59, 0.3);
}

/* Discover link outside the card */
.featured-discover {
  display: block;
  text-align: center;
  padding: 16px 0 0;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  transition: color 0.3s ease;
}

/* Meaning hook text under featured cards */
.featured-hook {
  display: block;
  text-align: center;
  padding: 12px 16px 0;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--color-text-muted);
}

.featured-discover:hover {
  color: var(--color-accent-hover);
}

/* CTA below featured cards */
.featured-cta {
  text-align: center;
  margin-top: var(--space-lg);
}


/* -----------------------------------------------
   3. MURALS PREVIEW SECTION
   ----------------------------------------------- */

.murals-preview {
  padding: var(--space-xxl) var(--space-lg);
  background: var(--color-bg-warm);
  position: relative;
}

.murals-preview-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* Text column */
.murals-preview-text h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--size-h2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text);
  margin-bottom: 8px;
}

.murals-preview-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.murals-preview-text p {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  line-height: var(--leading-body);
}

/* Image grid column — 3-col mosaic */
.murals-preview-images {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.murals-preview-images img {
  border-radius: 8px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* First image spans 2 rows for visual anchor */
.murals-preview-images img:first-child {
  grid-row: 1 / 3;
  aspect-ratio: auto;
}


/* -----------------------------------------------
   4. RESPONSIVE — Homepage Sections
   ----------------------------------------------- */

@media (max-width: 1024px) {
  /* Hero collapses to single column */
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: var(--nav-height);
  }

  .hero-cards {
    height: 400px;
    padding: 20px;
  }

  .hero-card {
    width: 160px;
  }

  .hero-card:nth-child(2) {
    width: 180px;
    margin-left: -90px;
  }

  .hero-text {
    padding: 40px;
    text-align: center;
    align-items: center;
  }

  .hero-text .hero-cta-row {
    justify-content: center;
  }

  /* Featured: 2 columns on tablet */
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Murals: stack on tablet */
  .murals-preview-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  /* Hero cards — bigger and centered on mobile */
  .hero-cards {
    height: 380px;
  }

  .hero-card {
    width: 180px;
  }

  .hero-card:nth-child(1) {
    margin-left: -220px;
  }

  .hero-card:nth-child(2) {
    width: 200px;
    margin-left: -100px;
  }

  .hero-card:nth-child(3) {
    margin-left: 40px;
  }

  .hero-text {
    padding: 32px 24px;
  }

  .hero-headline {
    font-size: clamp(2.8rem, 12vw, 4rem);
  }

  /* Sarah's quote — larger and more breathing room on mobile */
  .philosophy-quote {
    font-size: 1.6rem;
    line-height: 1.5;
  }

  .philosophy-bridge {
    padding-top: 80px;
    padding-bottom: 64px;
  }

  /* Featured: single column on mobile */
  .featured-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }

  /* Murals — center text on mobile */
  .murals-preview {
    padding-left: 16px;
    padding-right: 16px;
  }

  .murals-preview-text {
    text-align: center;
  }

  .murals-preview-text h2 {
    letter-spacing: 0.08em;
  }

  .murals-preview-ctas {
    justify-content: center;
  }

  .murals-preview-images {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .murals-preview-images img:first-child {
    grid-row: auto;
  }

  /* Hero CTAs stack on mobile */
  .hero-cta-row {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-row .btn-primary,
  .hero-cta-row .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* Reduced motion: disable floating card animations */
@media (prefers-reduced-motion: reduce) {
  .hero-card-img {
    animation: none;
  }
  .hero-glow {
    animation: none;
    opacity: 0.6;
  }
}
