/* ============================================
   Kishmish Books — Design System
   Paper-cut art style, warm earthy tones
   ============================================ */

/* --- Custom Fonts --- */
@font-face {
  font-family: 'Snoopy';
  src: url('../assets/fonts/snoopy_reg-webfont.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* --- CSS Variables --- */
:root {
  /* Brand Colors */
  --cream: #F5EFE0;
  --cream-light: #FAF7F0;
  --forest-green: #2D5F3E;
  --forest-green-light: #3A7A50;
  --earthy-brown: #6B4C3B;
  --earthy-brown-light: #8B6B58;
  --coral: #E07A5F;
  --coral-light: #E89B85;
  --soft-pink: #F2C4C4;
  --sage: #A8C5A0;
  --sage-light: #C5DCC0;
  --golden: #D4A843;
  --golden-light: #E5C36A;
  --text-dark: #2C2C2C;
  --text-medium: #5A5A5A;
  --text-light: #8A8A7A;
  --white: #FFFFFF;
  --shadow: rgba(44, 44, 44, 0.1);
  --shadow-strong: rgba(44, 44, 44, 0.15);

  /* Typography */
  --font-heading: 'Snoopy', 'Fredoka', sans-serif;
  --font-body: 'Nunito', sans-serif;
  --font-hindi: 'Baloo 2', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-round: 50%;

  /* Max widths */
  --max-width: 1200px;
  --max-width-narrow: 800px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

.hindi {
  font-family: var(--font-hindi);
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--forest-green);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--coral);
}

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--earthy-brown);
  line-height: 1.3;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
  margin-bottom: var(--space-sm);
  color: var(--text-medium);
}

/* --- Layout Utilities --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.section {
  padding: var(--space-2xl) 0;
}

.section--alt {
  background-color: var(--cream-light);
}

.section--green {
  background-color: var(--forest-green);
  color: var(--cream);
}

.section--green h2,
.section--green h3,
.section--green h4 {
  color: var(--cream);
}

.section--green p {
  color: var(--sage-light);
}

.section__heading {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section__heading h2 {
  margin-bottom: var(--space-xs);
}

.section__heading p {
  font-size: 1.1rem;
  color: var(--text-light);
}

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

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.btn--primary {
  background-color: var(--coral);
  color: var(--white);
}

.btn--primary:hover {
  background-color: var(--coral-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(224, 122, 95, 0.3);
}

.btn--secondary {
  background-color: var(--forest-green);
  color: var(--white);
}

.btn--secondary:hover {
  background-color: var(--forest-green-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(45, 95, 62, 0.3);
}

.btn--outline {
  background-color: transparent;
  color: var(--forest-green);
  border: 2px solid var(--forest-green);
}

.btn--outline:hover {
  background-color: var(--forest-green);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--small {
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
}

.btn--large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--cream);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background-color: var(--cream);
  box-shadow: 0 2px 20px var(--shadow);
  padding: 0.7rem 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Hero variant: centered nav inside the hero, not fixed */
.navbar--hero {
  position: relative;
  background: transparent;
  padding: var(--space-md) 0 0;
}

.navbar--hero.scrolled {
  position: fixed;
  background: rgba(245, 239, 224, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px var(--shadow);
  padding: 0.5rem 0;
}

.navbar--hero.scrolled .navbar__logo {
  color: var(--earthy-brown);
}

.navbar--hero.scrolled .navbar__links a {
  color: var(--text-dark);
  text-shadow: none;
  -webkit-text-stroke: 0;
}

.navbar--hero.scrolled .navbar__links a.active {
  color: var(--coral);
}

.navbar--hero .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.navbar--hero.scrolled {
  background: transparent;
  box-shadow: none;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--earthy-brown);
  font-weight: 700;
}

.navbar--hero .navbar__logo {
  color: var(--cream);
}

.navbar__logo:hover {
  color: var(--earthy-brown);
}

.navbar--hero .navbar__logo:hover {
  color: var(--cream);
}

.navbar__logo img {
  height: 80px;
  width: auto;
}

.navbar--hero .navbar__logo img {
  height: 100px;
}

.navbar__logo-placeholder {
  width: 50px;
  height: 50px;
  background: var(--sage);
  border-radius: var(--radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.navbar__links a {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  color: var(--text-dark);
  font-size: 1.05rem;
  position: relative;
  padding: 0.3rem 0;
  letter-spacing: 0.01em;
}

.navbar--hero .navbar__links {
  padding: 0.5rem 1.5rem;
}

.navbar--hero .navbar__links a {
  color: var(--cream);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-shadow:
    0 1px 2px rgba(20, 40, 20, 0.8),
    0 0 6px rgba(20, 40, 20, 0.6),
    0 0 14px rgba(20, 40, 20, 0.35),
    0 0 30px rgba(10, 30, 10, 0.2);
  -webkit-text-stroke: 0.3px rgba(20, 40, 20, 0.3);
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--coral);
  transition: width 0.3s ease;
}

.navbar__links a:hover {
  color: var(--coral);
}

.navbar__links a:hover::after {
  width: 100%;
}

.navbar__links a.active {
  color: var(--text-dark);
}

.navbar--hero .navbar__links a.active {
  color: var(--white);
}

.navbar--hero .navbar__links a.active::after {
  background-color: var(--coral);
  height: 3px;
  box-shadow: 0 1px 4px rgba(224, 122, 95, 0.7);
}

.navbar__links a.active::after {
  width: 100%;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--earthy-brown);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.navbar--hero .hamburger span {
  background-color: var(--cream);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* --- Hero Entrance Animation --- */
@keyframes heroFadeDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar--hero .navbar__logo {
  animation: heroFadeDown 0.6s ease both;
  animation-delay: 0.1s;
}

.navbar--hero .navbar__links {
  animation: heroFadeDown 0.6s ease both;
  animation-delay: 0.25s;
}



/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}


.hero__torn-edge,
.section-torn-edge {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 3;
  line-height: 0;
}

.hero__torn-edge svg,
.section-torn-edge svg {
  width: 100%;
  height: 60px;
}


.hero__bg-img {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center center;
  will-change: transform;
}

.hero__tagline {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--white);
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 0, 0, 0.3);
}

/* --- Hero: centered body --- */
.hero__body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-md) var(--space-xl);
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  animation: heroFadeIn 0.6s ease-out both;
  animation-delay: 0.3s;
}

.hero__middle-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.hero__character-img {
  width: 275px;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.85)) drop-shadow(0 0 12px rgba(255, 255, 255, 0.5));
}

.hero__cta {
  font-size: 1.2rem;
  padding: 1.1rem 2.8rem;
  animation: heroPulse 2.5s ease-in-out infinite;
}

@keyframes heroPulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(224, 122, 95, 0.3); }
  50% { box-shadow: 0 4px 25px rgba(224, 122, 95, 0.6); }
}

/* --- Hero: load animation --- */
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Hero: carousel --- */
.hero__carousel {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  width: 100%;
  max-width: 500px;
}

.hero__carousel-cards {
  position: relative;
  min-height: 120px;
}

.carousel__card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 120px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.5s ease;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 1.5rem 2rem;
  color: var(--cream);
  box-sizing: border-box;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.carousel__card.active {
  opacity: 1;
}

.carousel__card-heading {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: #6B4C3B;
}

.carousel__card-body {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.6;
  color: #6B4C3B;
  margin: 0;
}

.hero__carousel-dots {
  display: flex;
  gap: var(--space-xs);
  justify-content: center;
  margin-top: var(--space-sm);
}

.carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(245, 239, 224, 0.35);
  background-clip: content-box;
  border: none;
  cursor: pointer;
  padding: 10px;
  box-sizing: content-box;
  transition: background 0.3s ease;
}

.carousel__dot.active {
  background: var(--cream);
  background-clip: content-box;
}

/* --- Hero: mobile --- */
@media (max-width: 768px) {
  .hero__body {
    padding: var(--space-md);
  }

  .hero__character-img {
    width: 220px;
  }
}

/* --- Image Placeholders --- */
.image-placeholder {
  background: linear-gradient(135deg, var(--sage-light) 0%, var(--soft-pink) 100%);
  border: 3px dashed var(--earthy-brown-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-md);
  color: var(--earthy-brown);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 200px;
}

.image-placeholder--book {
  aspect-ratio: 1/1;
  max-width: 350px;
  min-height: auto;
  box-shadow: 8px 8px 0 var(--earthy-brown-light);
}

.image-placeholder--hero {
  aspect-ratio: 1/1;
  max-width: 500px;
  min-height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 12px 12px 0 var(--forest-green);
}

.image-placeholder--wide {
  aspect-ratio: 16/9;
  min-height: auto;
}

.image-placeholder--gallery {
  aspect-ratio: 4/3;
  min-height: auto;
}

.image-placeholder--small {
  aspect-ratio: 1/1;
  max-width: 120px;
  min-height: auto;
  font-size: 0.75rem;
}

/* --- Book Cards --- */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
  max-width: 900px;
  margin: 0 auto;
}

.book-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 10px var(--shadow);
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow-strong);
}

.book-card__image {
  padding: var(--space-md);
  background: var(--cream-light);
}

.book-card__image img {
  margin: 0 auto;
  width: 100%;
  border-radius: var(--radius-sm);
  box-shadow: 8px 8px 0 var(--earthy-brown-light);
}

.book-card__image .image-placeholder--book {
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
}

.book-card__body {
  padding: var(--space-md);
}

.book-card__coming-soon {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: var(--space-xs);
}

.book-card__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--earthy-brown);
  margin-bottom: var(--space-xs);
}

.book-card__meta {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
}

.book-card__tag {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-lg);
  background-color: var(--sage-light);
  color: var(--forest-green);
}

.book-card__excerpt {
  font-size: 0.95rem;
  color: var(--text-medium);
  margin-bottom: var(--space-sm);
}

.book-card__link {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--coral);
  font-size: 0.95rem;
}

.book-card__link:hover {
  color: var(--forest-green);
}

/* --- Book Detail --- */
.book-detail {
  padding-top: 100px;
}

.book-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-xl);
  align-items: start;
}

.book-detail__cover {
  position: sticky;
  top: 100px;
}

.book-detail__info h1 {
  font-size: 2.5rem;
  color: var(--forest-green);
  margin-bottom: var(--space-xs);
}

.book-detail__subtitle {
  font-size: 1.1rem;
  color: var(--earthy-brown-light);
  margin-bottom: var(--space-md);
}

.book-detail__synopsis {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.book-detail__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  background: var(--cream-light);
  border: 1px solid var(--sage-light);
  padding: var(--space-md);
  border-radius: var(--radius-md);
}

.book-detail__spec {
  display: flex;
  flex-direction: column;
}

.book-detail__spec-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

.book-detail__spec-value {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--earthy-brown);
  margin: 0;
}

.book-detail__actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.book-detail__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

/* --- Event Cards --- */
.event-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.event-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-md);
  align-items: center;
  box-shadow: 0 2px 10px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--shadow-strong);
}

.event-card__date {
  background: var(--forest-green);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  text-align: center;
  min-width: 80px;
}

.event-card__date-month {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.event-card__date-day {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  line-height: 1;
}

.event-card__details h3 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.event-card__location {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.3rem;
}

.event-card__description {
  font-size: 0.95rem;
  color: var(--text-medium);
  margin-bottom: 0;
}

/* --- Blog Cards --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 10px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow-strong);
}

.blog-card__image {
  background: var(--cream-light);
  padding: var(--space-sm);
}

.blog-card__body {
  padding: var(--space-md);
}

.blog-card__date {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: var(--space-xs);
}

.blog-card__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--earthy-brown);
  margin-bottom: var(--space-xs);
}

.blog-card__excerpt {
  font-size: 0.95rem;
  color: var(--text-medium);
  margin-bottom: var(--space-sm);
}

.blog-card__link {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--coral);
}

.blog-card__link:hover {
  color: var(--forest-green);
}

/* --- Blog Post --- */
.blog-post {
  padding-top: 100px;
}

.blog-post__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.blog-post__date {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: var(--space-xs);
}

.blog-post__title {
  font-size: 2.5rem;
  color: var(--forest-green);
}

.blog-post__body {
  font-size: 1.1rem;
  line-height: 1.9;
}

.blog-post__body p {
  margin-bottom: var(--space-md);
  color: var(--text-dark);
}

.blog-post__body h2 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.blog-post__back {
  display: inline-block;
  margin-top: var(--space-lg);
  font-family: var(--font-heading);
  font-weight: 600;
}

/* --- Forms --- */
.form {
  max-width: 600px;
  margin: 0 auto;
}

.form__group {
  margin-bottom: var(--space-md);
}

.form__label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--earthy-brown);
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid var(--sage-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--forest-green);
  box-shadow: 0 0 0 3px rgba(45, 95, 62, 0.1);
}

.form__textarea {
  resize: vertical;
  min-height: 150px;
}

.form__inline {
  display: flex;
  gap: var(--space-sm);
}

.form__inline .form__input {
  flex: 1;
}

/* --- Email Signup --- */
.signup {
  position: relative;
  background: var(--forest-green);
  color: var(--cream);
  text-align: center;
  padding: var(--space-xl) 0;
}

.signup__thanks {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--cream);
  margin-top: var(--space-md);
  margin-bottom: 0;
}

.signup__motif {
  width: 80px;
  height: auto;
  margin: 0 auto var(--space-sm);
  opacity: 0.9;
}

.signup h2 {
  color: var(--cream);
  margin-bottom: var(--space-xs);
}

.signup p {
  color: var(--sage-light);
  margin-bottom: var(--space-md);
}

.signup .form__inline {
  max-width: 500px;
  margin: 0 auto;
}

.signup .form__input {
  background-color: var(--cream);
  border-color: var(--forest-green-light);
  color: var(--text-dark);
}

.signup .form__input:focus {
  border-color: var(--golden);
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.2);
}

/* --- Contact Hero --- */
.contact-hero {
  padding-top: 70px;
}

.contact-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

.contact-hero__illustration {
  position: relative;
  overflow: hidden;
}

.contact-hero__illustration-bg {
  position: absolute;
  inset: 0;
}

.contact-hero__illustration-bg .image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-hero__overlay {
  position: relative;
  z-index: 2;
  padding: var(--space-xl) var(--space-lg);
  color: var(--cream);
}

.contact-hero__overlay h1 {
  font-size: 2.8rem;
  color: var(--cream);
  margin-bottom: var(--space-md);
}

.contact-hero__overlay p {
  font-size: 1.05rem;
  color: var(--cream);
  max-width: 400px;
  line-height: 1.6;
}

.contact-hero__form {
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  align-items: center;
}

.contact-hero__form .form {
  width: 100%;
  max-width: 100%;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form__sublabel {
  display: block;
  font-size: 0.85rem;
  color: var(--text-medium);
  margin-bottom: 0.3rem;
}

.form__required {
  color: var(--text-light);
  font-weight: 400;
}

.btn--rounded {
  border-radius: 50px;
  padding: 0.8rem 2.2rem;
}

/* --- Footer --- */
.footer {
  background-color: var(--cream);
  color: var(--text-dark);
  padding: var(--space-lg) 0;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.footer__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__left {
  display: flex;
  align-items: center;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
}

.footer__logo img {
  height: 48px;
  width: auto;
}

.footer__brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text-dark);
  font-weight: 700;
}

.footer__nav {
  display: flex;
  flex-direction: row;
  gap: var(--space-md);
}

.footer__nav a {
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem;
  color: var(--text-medium);
  transition: color 0.2s ease;
}

.footer__nav a:hover {
  color: var(--coral);
}

.footer__right {
  text-align: right;
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
}

.footer__email {
  display: block;
  font-size: 0.95rem;
  color: var(--text-medium);
  margin-bottom: var(--space-sm);
}

.footer__email:hover {
  color: var(--coral);
}

.footer__social {
  display: inline-block;
  color: var(--text-medium);
  transition: color 0.3s ease;
}

.footer__social:hover {
  color: var(--coral);
}

.footer__bottom {
  border-top: 1px solid rgba(0,0,0,0.06);
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  text-align: center;
}

.footer__bottom p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0;
}


/* --- Page Header (for inner pages) --- */
.page-header {
  padding: 8rem 0 3rem;
  text-align: center;
  background-color: #ecddcb;
}

.page-header h1 {
  font-size: 2.8rem;
  color: var(--earthy-brown);
  margin-bottom: var(--space-sm);
}

.page-header__grass {
  width: 300px;
  height: auto;
  margin: 0 auto;
}

.page-header p {
  font-size: 1.1rem;
  color: var(--text-medium);
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  position: relative;
  background-color: var(--forest-green);
  padding-top: 80px;
  padding-bottom: calc(var(--space-xl) + 40px);
}

.page-hero__title {
  font-size: 2.8rem;
  color: var(--cream);
  text-align: center;
  padding: var(--space-xl) 0 var(--space-sm);
}

.page-hero__subtitle {
  font-size: 1.1rem;
  color: rgba(245, 239, 224, 0.85);
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  padding-bottom: var(--space-md);
  line-height: 1.7;
}

/* --- Coming Soon Section --- */
.coming-soon {
  position: relative;
  background-color: var(--forest-green);
  padding: calc(var(--space-2xl) + 20px) 0 calc(var(--space-2xl) + 40px);
  text-align: center;
}

.section-torn-edge--top {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  z-index: 1;
}

.coming-soon__title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--cream);
  margin-bottom: var(--space-xl);
}

.coming-soon__items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  max-width: 700px;
  margin: 0 auto var(--space-xl);
}

.coming-soon__item h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--cream);
  margin-bottom: var(--space-xs);
}

.coming-soon__item p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(245, 239, 224, 0.85);
  font-weight: 600;
}

.coming-soon__book {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.coming-soon__book-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--cream);
  margin-bottom: var(--space-sm);
}

.coming-soon__book-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(245, 239, 224, 0.85);
  font-weight: 600;
  max-width: 500px;
  margin: 0 auto;
}

.follow-instagram {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-md);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--earthy-brown);
  text-decoration: none;
  transition: color 0.3s ease;
}

.follow-instagram:hover {
  color: var(--coral);
}

.coming-soon__cta {
  animation: heroPulse 2.5s ease-in-out infinite;
}

@media (max-width: 768px) {
  .coming-soon__items {
    grid-template-columns: 1fr;
  }
}

/* --- Featured Book Section --- */
.featured-book {
  position: relative;
  background-color: var(--forest-green);
  padding: var(--space-lg) 0 calc(var(--space-2xl) + 40px);
}

.featured-book__section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--cream);
  text-align: center;
  margin-bottom: var(--space-lg);
}

.featured-book__cover-wrap {
  position: relative;
  cursor: pointer;
  max-width: 400px;
}

.featured-book__cover-wrap .featured-book__img {
  display: block;
  width: 100%;
  transition: opacity 0.3s ease;
}

.featured-book__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  transition: opacity 0.3s ease;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.featured-book__cover-wrap:hover .featured-book__play {
  opacity: 0.8;
}

.featured-book__video,
#trailer-player {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.featured-book__cover-wrap.playing .featured-book__img {
  opacity: 0;
}

.featured-book__cover-wrap.playing .featured-book__play {
  opacity: 0;
  pointer-events: none;
}

.featured-book__cover-wrap.playing .featured-book__video,
.featured-book__cover-wrap.playing #trailer-player {
  opacity: 1;
  pointer-events: auto;
}

.featured-book__grass-img {
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 100%;
  z-index: 1;
}

.featured-book__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.featured-book__img {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 0 0 4px rgba(255, 255, 255, 0.15);
  margin: var(--space-sm) auto var(--space-md);
}

.featured-book__title {
  font-size: 3rem;
  color: var(--cream);
  text-align: center;
  margin-bottom: var(--space-lg);
}

.featured-book__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
  align-items: center;
}

.featured-book__blurb {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--cream);
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

.featured-book__blurb:last-of-type {
  margin-bottom: var(--space-lg);
}

.featured-book__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.featured-book__btn {
  background: transparent;
  color: var(--cream);
  border: 2px solid var(--cream);
}

.featured-book__btn:hover {
  background: var(--cream);
  color: var(--forest-green);
}


/* --- Signup Modal --- */
.signup-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.signup-modal.active {
  display: flex;
}

.signup-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.signup-modal__content {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
  max-width: 440px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.signup-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-medium);
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
}

.signup-modal__close:hover {
  color: var(--text-dark);
}

.signup-modal__heading {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--forest-green);
  margin-bottom: var(--space-sm);
}

.signup-modal__text {
  color: var(--text-medium);
  font-size: 0.95rem;
  margin-bottom: var(--space-lg);
}

.signup-modal__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.signup-modal__input {
  text-align: center;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 2px solid var(--sage);
  border-radius: var(--radius-md);
}

.signup-modal__input:focus {
  border-color: var(--forest-green);
  outline: none;
  box-shadow: 0 0 0 3px rgba(45, 95, 62, 0.2);
}

.signup-modal__submit {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
}

/* --- About / Our Story Section --- */
.our-story {
  position: relative;
  background-color: #ecddcb;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 500px;
  scroll-margin-top: 120px;
}

.our-story__illustration {
  position: relative;
  height: 100%;
}

.our-story__illustration .image-placeholder {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
}

.our-story__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.our-story__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 440px;
  padding: var(--space-xl) var(--space-lg);
}

.our-story__text h2 {
  font-size: 2.5rem;
  margin-bottom: var(--space-lg);
}

.our-story__text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

.our-story__signature {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--earthy-brown-light) !important;
  font-weight: 400 !important;
  margin-bottom: var(--space-sm) !important;
}

.our-story__text .btn {
  align-self: flex-start;
  padding: 0.9rem 2.2rem;
  margin-top: var(--space-xs);
  box-shadow: 0 4px 12px rgba(224, 122, 95, 0.3);
}

/* Legacy about styles (for about.html page) */
.about__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about__text h2 {
  margin-bottom: var(--space-sm);
}

.about__text p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.about__mission {
  background: var(--cream-light);
  border-left: 4px solid var(--coral);
  padding: var(--space-md);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: var(--space-md) 0;
}

.about__mission p {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--earthy-brown);
  margin-bottom: 0;
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in--delay {
  transition-delay: 0.25s;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.3rem; }

  .section {
    padding: var(--space-xl) 0;
  }

  /* Mobile Nav */
  .hamburger {
    display: flex;
  }

  .navbar__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: var(--space-md);
    box-shadow: 0 4px 20px var(--shadow);
    gap: var(--space-xs);
  }

  .navbar__links.active {
    display: flex;
  }

  .navbar__links a {
    padding: var(--space-xs) 0;
    font-size: 1.1rem;
  }

  .navbar--hero .navbar__links {
    background: var(--forest-green);
  }

  .navbar--hero .navbar__links a {
    text-shadow: none;
    -webkit-text-stroke: 0;
  }

  /* Hero */
  .hero {
    min-height: 100vh;
  }

  .hero__tagline {
    font-size: 1.5rem;
  }

  .navbar--hero .navbar__links {
    padding: 0.4rem 1rem;
  }

  .navbar--hero .navbar__links a {
    font-size: 0.95rem;
  }

  .navbar--hero .navbar__logo img {
    height: 70px;
  }

  .navbar--hero .container {
    gap: var(--space-xs);
  }

  /* Our Story */
  .our-story {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .our-story__illustration {
    max-height: 300px;
    overflow: hidden;
  }

  .our-story__text {
    max-width: 100%;
    padding: var(--space-xl) var(--space-md);
    text-align: center;
  }

  .our-story__text .btn {
    align-self: center;
  }

  /* Featured Book */
  .featured-book__grid {
    grid-template-columns: 1fr;
  }

  .featured-book__info {
    text-align: center;
  }

  .featured-book__tags {
    justify-content: center;
  }

  .featured-book__btn {
    margin: 0 auto;
  }

  /* Book Detail */
  .book-detail__grid {
    grid-template-columns: 1fr;
  }

  .book-detail__cover {
    position: static;
    max-width: 300px;
    margin: 0 auto;
  }

  .book-detail__gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Event Cards */
  .event-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .event-card__date {
    justify-self: center;
  }

  /* About */
  .about__content {
    grid-template-columns: 1fr;
  }

  /* Contact Hero */
  .contact-hero__grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .contact-hero__illustration {
    min-height: 350px;
  }

  .contact-hero__form {
    padding: var(--space-lg) var(--space-md);
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer__content {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer__right {
    text-align: center;
  }

  /* Forms */
  .form__inline {
    flex-direction: column;
  }

  /* Page Header */
  .page-header {
    padding: 7rem 0 2rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  /* Blog Post */
  .blog-post__title {
    font-size: 1.8rem;
  }

  .book-detail__info h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.7rem; }

  .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }

  .book-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .book-detail__specs {
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .book-detail__gallery {
    grid-template-columns: 1fr;
  }
}
