/* =============================================
   THE ODYSSEY OF RHYMES AND REASONS
   Author: Harleen Kaur Virdi
   Color palette from book cover:
     Deep black/charcoal  #0a0a0f
     Cyan/teal            #3ecfcf  → #4ee8d6
     Hot pink/magenta     #e040a0  → #d63a95
     Rose gold            #c8796a
     Soft ivory           #f5f0ea
     Dark plum            #1a0a1c
   ============================================= */

:root {
  --black:      #0a0a0f;
  --deep:       #0f0a14;
  --plum:       #1c0e24;
  --cyan:       #4ee8d6;
  --pink:       #d63a95;
  --rose:       #c87c6e;
  --ivory:      #f5f0ea;
  --ivory-dim:  #e8e2da;
  --text-dark:  #2a1f2e;
  --text-mid:   #4a3a52;
  --accent-gold: #c9a96e;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-cursive: 'Parisienne', cursive;
  --font-body:    'Jost', sans-serif;

  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ============ NAVIGATION ============ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 70px;
}

.nav-brand {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ivory);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.3s;
  white-space: nowrap;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 240, 234, 0.85);
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--cyan);
  transition: width 0.3s var(--ease-smooth);
}
.nav-link:hover { color: var(--cyan); }
.nav-link:hover::after { width: 100%; }

/* Scrolled state */
.site-nav.scrolled {
  background: rgba(10, 8, 15, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 30px rgba(0,0,0,0.3);
}
.site-nav.scrolled .nav-brand { color: var(--ivory); }
.site-nav.scrolled .nav-link { color: rgba(245,240,234,0.8); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ivory);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile menu */
.nav-mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(10, 8, 15, 0.98);
  backdrop-filter: blur(16px);
  padding: 1.5rem 2rem 2rem;
  border-top: 1px solid rgba(78,232,214,0.2);
}
.nav-mobile-menu.open { display: flex; }
.mobile-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  text-decoration: none;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.3s;
}
.mobile-link:hover { color: var(--cyan); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ============ SEAM BREAKERS — straddle the bg boundary ============
   Each seam div is a zero-height marker. The breaker image is
   absolutely centred on it, so exactly half sits above (prev section)
   and half sits below (next section).
   ================================================================= */

/* seam-dark-light : top half dark (#0a0a0f), bottom half ivory */
.seam-dark-light {
  position: relative;
  height: 0;
  background: transparent;
  z-index: 10;
}
/* The previous section (home) needs padding-bottom equal to half the
   breaker image height so content doesn't hide behind it */


/* seam-light-light : pure ivory both sides — no bg trick needed */
.seam-light-light {
  position: relative;
  height: 0;
  background: transparent;
  z-index: 10;
}

/* seam-light-dark : top half ivory, bottom half deep dark */
.seam-light-dark {
  position: relative;
  height: 0;
  background: transparent;
  z-index: 10;
}
/* The next section (contact) needs padding-top equal to half the
   breaker image height */
.section-contact-dark { padding-top: 70px; }

/* The breaker image itself — centred on the seam line */
.seam-breaker {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10;
}
.seam-breaker img {
  width: clamp(130px, 18vw, 200px);
  display: block;
  opacity: 0.85;
}
.seam-breaker-flip img {
  transform: scaleX(-1);
}

/* Pseudo-element trick: paint the correct background on each half
   of the seam div so the image truly appears split */

/* dark-light: the seam div itself has dark top / ivory bottom */
.seam-dark-light::before {
  content: '';
  position: absolute;
  inset: 0;
  /* We only need height = breaker-height/2 = ~70px above and below */
  top: -70px; bottom: -70px; left: 0; right: 0;
  
  z-index: -1;
}

/* light-dark: ivory top / deep dark bottom */
.seam-light-dark::before {
  content: '';
  position: absolute;
  top: -70px; bottom: -70px; left: 0; right: 0;

  z-index: -1;
}

/* light-light: both sides ivory — simple */
.seam-light-light::before {
  content: '';
  position: absolute;
  top: -70px; bottom: -70px; left: 0; right: 0;
  background: #f5f0ea;
  z-index: -1;
}

/* ============ HOME SECTION ============ */
.section-home {
  position: relative;
  min-height: 100vh;
  background-image: url('img/back.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: visible;
}

/* Subtle radial gradient atmosphere */
.home-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 70% 40%, rgba(78,232,214,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 30% 70%, rgba(214,58,149,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 100% 80% at 50% 0%, rgba(26,10,28,0.7) 0%, transparent 60%);
  pointer-events: none;
}

.home-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 100px 2rem 0;
}

.home-text {
  flex: 1;
  max-width: 560px;
  text-align: center;
}

.home-eyebrow {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.home-author-name {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.home-title-wrap {
  margin-bottom: 1.8rem;
  line-height: 1.05;
}
.title-line1, .title-line2 {
  display: block;
}
.title-small-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--ivory-dim);
}
.title-odyssey {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  color: #d4ac5a;
  letter-spacing: -0.02em;
  text-shadow: 0 0 50px rgba(212,172,90,0.4);
}
.title-reasons {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  color: var(--cyan);
  letter-spacing: -0.02em;
  text-shadow: 0 0 60px rgba(78,232,214,0.35);
}
.title-rhymes {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  color: var(--pink);
  letter-spacing: -0.02em;
  text-shadow: 0 0 60px rgba(214,58,149,0.35);
}

.home-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(245,240,234,0.6);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  font-weight: 300;
}

.cta-btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--black);
  background: var(--cyan);
  border-radius: 2px;
  transition: color 0.3s var(--ease-smooth), box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  z-index: 0;
}
.cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--pink);
  transform: translateX(-100%);
  transition: transform 0.4s var(--ease-smooth);
  z-index: 1;
}
.cta-btn:hover {
  color: var(--ivory);
  box-shadow: 0 10px 30px beige;
}
.cta-btn:hover::before { transform: translateX(0); }
/* Keep the text above the sliding background */
.cta-btn > * { position: relative; z-index: 2; }
/* Text node itself needs z-index via a wrapper trick — wrap text in span in HTML if needed,
   but also set it via isolation */
.cta-btn { isolation: isolate; }

/* Book cover on hero */
.home-cover {
  flex: 0 0 auto;
  position: relative;
}
.cover-halo {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(214,58,149,0.15) 0%, transparent 70%);
  pointer-events: none;
  animation: haloPulse 4s ease-in-out infinite;
}
@keyframes haloPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.cover-img {
  width: clamp(220px, 28vw, 380px);
  display: block;
  border-radius: 4px;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.7),
    0 0 40px rgba(214,58,149,0.2),
    0 0 80px rgba(78,232,214,0.1);
  transform: perspective(1000px) rotateY(-4deg);
  transition: transform 0.5s var(--ease-smooth), box-shadow 0.5s;
  position: relative;
}
.cover-img:hover {
  transform: perspective(1000px) rotateY(0deg) translateY(-8px);
  box-shadow:
    0 50px 100px rgba(0,0,0,0.8),
    0 0 60px rgba(214,58,149,0.3),
    0 0 100px rgba(78,232,214,0.15);
}

/* Scroll hint */
.scroll-hint {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(245,240,234,0.45);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--font-body);
  padding: 1.5rem 0 2.5rem;
  width: 100%;
  justify-content: center;
}
.scroll-bar {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(245,240,234,0.4), transparent);
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============ SECTION COMMON ============ */
.section-padded {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-tag {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 1rem;
}

.sec-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 2rem;
}
.cursive-word {
  font-family: var(--font-cursive);
  color: var(--pink);
  font-size: 1.15em;
  font-style: normal;
}
/* Per-section overrides */
.cursive-purple { color: #9b59b6; }
.cursive-blue   { color: #4a9fd4; }
.cursive-golden { color: #d4ac5a; }

/* Golden plain text (non-cursive) */
.golden-word {
  color: #d4ac5a;
}

.prose p {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.9;
  color: var(--text-mid);
  margin-bottom: 1.3rem;
  font-weight: 400;
}
.prose p:last-child { margin-bottom: 0; }
.prose em { color: var(--text-dark); font-style: italic; }

/* ============ TWO-COL LAYOUT ============ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.two-col.reverse {
  direction: rtl;
}
.two-col.reverse > * {
  direction: ltr;
}

/* Portrait frame */
.portrait-frame {
  position: relative;
  display: inline-block;
}
.portrait-frame::before {
  content: '';
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(214,58,149,0.25);
  border-radius: 2px;
  transition: border-color 0.4s;
}
.portrait-frame:hover::before { border-color: rgba(214,58,149,0.5); }
.portrait-frame img {
  width: 100%;
  max-width: 420px;
  display: block;
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 4px 20px rgba(214,58,149,0.1);
}

/* Author image caption */
.author-img-caption {
  font-family: var(--font-cursive);
  font-size: 1.1rem;
  color: var(--pink);
  text-align: center;
  margin-top: 0.75rem;
  letter-spacing: 0.03em;
}

/* Book image — no frame */
.book-plain-img {
  width: 100%;
  max-width: 380px;
  display: block;
  margin: 0 auto;
  border-radius: 2px;

}

/* ============ BOOK SECTION BG ============ */
.section-book-bg {
  background: linear-gradient(180deg, var(--ivory) 0%, rgba(200,124,110,0.04) 100%);
}

/* ============ BUY SECTION ============ */
.buy-wrap {
  text-align: center;
  margin-top: 5rem;
  padding-top: 3.5rem;
  border-top: 1px solid rgba(214,58,149,0.15);
}

.buy-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 2rem;
}

.buy-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.buy-logos a img {
  height: 44px;
  width: auto;
  filter: grayscale(20%);
  transition: filter 0.3s, transform 0.3s;
  display: block;
}
.buy-logos a:hover img {
  filter: grayscale(0%) drop-shadow(0 4px 12px rgba(214,58,149,0.3));
  transform: translateY(-3px);
}
.kindle-img { height: 36px !important; }

.global-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 0.75rem;
}
.global-links {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 2;
}
.global-links a {
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.2s;
}
.global-links a:hover { color: var(--pink); }

/* ============ CONTACT SECTION ============ */
.section-contact-dark {
  background-image: url('img/back.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  padding: 70px 2rem 5rem;
}
.contact-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.section-contact-dark .section-tag { color: #d4ac5a; }
.contact-head {
  color: var(--ivory);
}

.contact-intro {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: rgba(245,240,234,0.6);
  margin-bottom: 3rem;
  line-height: 1.7;
}

/* Contact — single icon row */
.contact-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.c-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  transition: transform 0.35s var(--ease-spring);
}
.c-icon-btn i {
  font-size: 2.6rem;
  transition: color 0.3s, filter 0.3s;
}
.c-icon-btn span {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,240,234,0.4);
  transition: color 0.3s;
}
.c-icon-btn:hover {
  transform: translateY(-6px);
}

/* Per-platform colours */
.c-icon-email i          { color: #d4ac5a; }
.c-icon-email:hover i    { filter: drop-shadow(0 0 10px rgba(212,172,90,0.6)); }
.c-icon-email:hover span { color: #d4ac5a; }

.c-icon-insta i           { color: #d63a95; }
.c-icon-insta:hover i     { filter: drop-shadow(0 0 10px rgba(214,58,149,0.6)); }
.c-icon-insta:hover span  { color: #d63a95; }

.c-icon-facebook i           { color: #4ee8d6; }
.c-icon-facebook:hover i     { filter: drop-shadow(0 0 10px rgba(78,232,214,0.6)); }
.c-icon-facebook:hover span  { color: #4ee8d6; }

.c-icon-linkedin i           { color: #9b59b6; }
.c-icon-linkedin:hover i     { filter: drop-shadow(0 0 10px rgba(155,89,182,0.6)); }
.c-icon-linkedin:hover span  { color: #9b59b6; }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--black);
  text-align: center;
  padding: 1.5rem;
  border-top: 1px solid rgba(212,172,90,0.1);
}
.site-footer p {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(245,240,234,0.3);
}
.site-footer em {
  font-family: var(--font-display);
  font-style: italic;
}

/* ============ SCROLL ANIMATIONS ============ */
.fade-up, .fade-left, .fade-right {
  opacity: 0;
  transition: opacity 1.4s var(--ease-smooth), transform 1.4s var(--ease-smooth);
}
.fade-up    { transform: translateY(55px); }
.fade-left  { transform: translateX(-55px); }
.fade-right { transform: translateX(55px); }

.fade-up.visible,
.fade-left.visible,
.fade-right.visible {
  opacity: 1;
  transform: translate(0);
}

.delay-2 { transition-delay: 0.4s !important; }
.delay-3 { transition-delay: 0.75s !important; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .home-content {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
    padding-top: 120px;
  }
  .cover-img { width: clamp(200px, 60vw, 320px); transform: none; }
  .two-col, .two-col.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 3rem;
  }
  .col-img { order: -1; }
  .portrait-frame img, .book-frame img { max-width: 280px; }
}

@media (max-width: 600px) {
  .section-padded { padding: 4rem 1.2rem; }
  .contact-card { padding: 2rem 2rem; min-width: 160px; }
  .nav-brand { font-size: 1.1rem; }
}
