/*
  Global Stylesheet for The Little Kitchen Princess Webpage

  This stylesheet defines a playful yet polished aesthetic inspired by
  the book’s charming illustrations. A carefully chosen color
  palette, friendly typography and thoughtful spacing create a
  welcoming shopping experience for parents and children alike.

  Author: ChatGPT (acting as a professional web designer)
*/

/* Root variables for easy color management */
:root {
  --color-primary: #7ab72f; /* reminiscent of the green title on the book cover */
  --color-secondary: #f2b630; /* golden hue from the princess’s dress */
  --color-tertiary: #e5625e; /* warm accent for buttons and highlights */
  --color-light: #ffffff;
  --color-dark: #333333;
  --color-background: #f9fbff; /* soft off‑white for page background */
}

/* Base reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Nunito', sans-serif;
  background-color: var(--color-background);
  color: var(--color-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Enable smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Navigation Bar */
.navbar {
  background-color: var(--color-primary);
  color: var(--color-light);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 999;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  font-family: 'Chewy', cursive;
  font-size: 1.6rem;
  letter-spacing: 1px;
  color: var(--color-light);
}

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

.nav-links li a {
  font-weight: 600;
  color: var(--color-light);
  transition: color 0.2s ease;
}

.nav-links li a:hover,
.nav-links li a:focus {
  color: var(--color-secondary);
}

.nav-cta {
  background-color: var(--color-secondary);
  color: var(--color-dark);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-weight: 700;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover,
.nav-cta:focus {
  background-color: var(--color-tertiary);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  background: linear-gradient(to bottom, #a9d9f5 0%, #d5eaf8 100%);
  padding: 4rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-content {
  flex: 1 1 380px;
  text-align: left;
}

.hero-content h1 {
  font-family: 'Chewy', cursive;
  font-size: 3rem;
  line-height: 1.2;
  color: var(--color-primary);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.8);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 500px;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 40px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.btn i {
  font-size: 1.2rem;
}

.btn:hover,
.btn:focus {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Specific button colours */
.amazon-btn {
  background-color: #ff9900; /* Amazon orange */
  color: var(--color-light);
}

.amazon-btn:hover,
.amazon-btn:focus {
  background-color: #e68a00;
}

.apple-btn {
  background-color: #000000; /* Apple black */
  color: var(--color-light);
}

.apple-btn:hover,
.apple-btn:focus {
  background-color: #333333;
}

.primary-btn {
  background-color: var(--color-secondary);
  color: var(--color-dark);
}

.primary-btn:hover,
.primary-btn:focus {
  background-color: var(--color-tertiary);
  color: var(--color-light);
}

.hero-images {
  flex: 1 1 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-images img {
  max-width: 100%;
  border-radius: 20px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.book-cover {
  width: 300px;
  z-index: 1;
}

/* Collage of actual pages from inside the book */
.book-pages {
  position: absolute;
  top: 20px;
  right: -60px;
  width: 360px;
  height: 240px;
  pointer-events: none; /* prevent clicks from interfering */
}

.book-pages img {
  width: 180px;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  position: absolute;
  object-fit: cover;
}

.page-one {
  top: 0;
  left: 0;
  transform: rotate(-5deg);
  z-index: 1;
}

.page-two {
  top: 20px;
  left: 40px;
  transform: rotate(4deg);
  z-index: 2;
}

.page-three {
  top: 40px;
  left: 80px;
  transform: rotate(-3deg);
  z-index: 3;
}

/* Section styling */
section {
  padding: 4rem 0;
}

h2 {
  font-family: 'Chewy', cursive;
  font-size: 2.5rem;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 1rem;
}

.section-intro {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: var(--color-light);
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover,
.feature-card:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-bottom: 1rem;
  color: var(--color-light);
  font-size: 1.5rem;
}

.icon-wrap.primary {
  background-color: var(--color-primary);
}

.icon-wrap.secondary {
  background-color: var(--color-secondary);
}

.icon-wrap.tertiary {
  background-color: var(--color-tertiary);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
  font-family: 'Chewy', cursive;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--color-dark);
}

/* Reviews Section */
.reviews-section {
  background-color: #eef6ff;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.review {
  background-color: var(--color-light);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  font-style: italic;
  position: relative;
}

.review p {
  margin-bottom: 1rem;
}

.review cite {
  font-style: normal;
  font-weight: 700;
  color: var(--color-primary);
  position: relative;
}

.review::before {
  content: '\201C'; /* Left double quotation mark */
  font-family: serif;
  font-size: 4rem;
  color: var(--color-secondary);
  position: absolute;
  top: -10px;
  left: 10px;
  opacity: 0.15;
}

/* Buy Section */
.buy-section {
  background-color: var(--color-light);
}

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

.buy-wrapper p {
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.buy-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.buy-card {
  background-color: #f5f8fc;
  border-radius: 15px;
  padding: 2rem 1.5rem;
  flex: 1 1 300px;
  max-width: 360px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-top: 6px solid var(--color-primary);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.buy-card:hover,
.buy-card:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.buy-card h3 {
  font-family: 'Chewy', cursive;
  font-size: 1.8rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.buy-card p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.buy-card .btn.full-width {
  display: block;
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* Follow Section */
.follow-section {
  background-color: #fff7e8;
  text-align: center;
}

.follow-wrapper p {
  max-width: 600px;
  margin: 0 auto 2rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--color-light);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.social-icon.facebook {
  background-color: #4267b2;
}

.social-icon.x {
  background-color: #000000;
}

.social-icon:hover,
.social-icon:focus {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Footer */
.footer {
  background-color: var(--color-primary);
  color: var(--color-light);
  padding: 2rem 0;
  font-size: 0.9rem;
}

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

.footer a {
  color: var(--color-light);
  text-decoration: underline;
}

.disclaimer {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  opacity: 0.85;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero-content {
    text-align: center;
  }
  .hero-images {
    margin-top: 2rem;
  }
  .book-cover {
    width: 260px;
  }
  /* On medium screens stack the page collage below the book cover */
  .book-pages {
    position: static;
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    height: auto;
  }
  .book-pages img {
    position: static;
    width: 100px;
    transform: none;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.4rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .nav-wrapper {
    flex-direction: column;
    gap: 0.5rem;
  }
  .nav-links {
    margin-top: 0.5rem;
  }
  .nav-links li a {
    font-size: 0.9rem;
  }
  .nav-cta {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .btn {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
  }
  .buy-card h3 {
    font-size: 1.5rem;
  }
  .buy-card p {
    font-size: 0.9rem;
  }
  .reviews-grid {
    gap: 1.5rem;
  }
  .feature-card {
    padding: 1rem;
  }
}