/* Cassie Meadows - Cozy Small Town Theme */

:root {
  --cassie-cream: #f5f5dc;
  --cassie-orange: #ff8c42;
  --cassie-rose: #e89cae;
  --cassie-sage: #9caf88;
  --cassie-brown: #8b4513;
  --cassie-warm: #fdf6e3;
  --cassie-dark: #3e2723;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  background: linear-gradient(135deg, #fdf6e3, #f5f5dc);
  color: var(--cassie-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Floating Petals */
.petals-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* String Lights */
.string-lights {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  pointer-events: none;
  z-index: 999;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 50px,
    rgba(255, 140, 66, 0.3) 50px,
    rgba(255, 140, 66, 0.3) 60px
  );
}

.string-lights::before,
.string-lights::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cassie-orange);
  box-shadow: 0 0 15px var(--cassie-orange);
  animation: twinkle 2s infinite ease-in-out;
}

.string-lights::before {
  left: 10%;
  top: 20px;
}

.string-lights::after {
  right: 10%;
  top: 20px;
  animation-delay: 1s;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(253, 246, 227, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--cassie-orange);
  z-index: 1000;
  padding: 15px 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--cassie-dark);
  font-weight: 700;
  font-size: 1.2rem;
}

.brand img {
  height: 40px;
}

.nav {
  display: flex;
  gap: 25px;
}

.nav a {
  color: var(--cassie-dark);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cassie-orange);
  transition: width 0.3s ease;
}

.nav a:hover {
  color: var(--cassie-orange);
}

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

/* Hero Section */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 100px 20px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(253, 246, 227, 0.75), rgba(156, 175, 136, 0.6));
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-logo {
  width: 180px;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 5px 15px rgba(139, 69, 19, 0.3));
}

.hero-title {
  font-family: 'Merriweather', serif;
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--cassie-brown);
  text-shadow: 2px 2px 4px rgba(255, 140, 66, 0.3);
}

.hero-tagline {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--cassie-orange);
  font-weight: 400;
  font-style: italic;
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 35px;
  color: var(--cassie-dark);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  display: inline-block;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cassie-orange), var(--cassie-rose));
  color: white;
  box-shadow: 0 5px 20px rgba(255, 140, 66, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 140, 66, 0.6);
}

.btn-secondary {
  background: transparent;
  color: var(--cassie-brown);
  border: 2px solid var(--cassie-orange);
}

.btn-secondary:hover {
  background: var(--cassie-orange);
  color: white;
  transform: translateY(-3px);
}

/* Sections */
.section {
  padding: 80px 0;
  position: relative;
}

.section-title {
  font-family: 'Merriweather', serif;
  font-size: 3rem;
  text-align: center;
  margin-bottom: 20px;
  color: var(--cassie-brown);
}

.section-subtitle {
  text-align: center;
  color: var(--cassie-dark);
  font-size: 1.1rem;
  margin-bottom: 50px;
  font-style: italic;
}

/* About Section */
.about-content {
  max-width: 900px;
  margin: 50px auto;
}

.about-text {
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid var(--cassie-orange);
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 10px 30px rgba(139, 69, 19, 0.1);
}

.lead {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--cassie-orange);
  margin-bottom: 30px;
  font-style: italic;
}

.about-text h3 {
  font-family: 'Merriweather', serif;
  font-size: 2rem;
  color: var(--cassie-brown);
  margin: 40px 0 20px;
}

.about-text p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: var(--cassie-dark);
}

.specialties-list,
.fun-facts ul {
  list-style: none;
  margin: 20px 0;
}

.specialties-list li,
.fun-facts li {
  margin-bottom: 15px;
  padding-left: 10px;
  line-height: 1.8;
}

.fun-facts {
  background: rgba(255, 140, 66, 0.1);
  padding: 30px;
  border-radius: 15px;
  margin: 40px 0;
  border: 1px solid var(--cassie-orange);
}

.contact-info {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid var(--cassie-orange);
}

.contact-info a {
  color: var(--cassie-orange);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: var(--cassie-brown);
}

/* Books Section */
.upcoming-books {
  max-width: 700px;
  margin: 50px auto;
}

.upcoming-card {
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid var(--cassie-orange);
  border-radius: 20px;
  padding: 50px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(139, 69, 19, 0.1);
}

.upcoming-card h3 {
  font-family: 'Merriweather', serif;
  font-size: 2.2rem;
  color: var(--cassie-brown);
  margin-bottom: 20px;
}

.upcoming-card p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
}

.newsletter-cta {
  margin-top: 20px;
}

/* Newsletter Section */
.newsletter-section {
  background: linear-gradient(135deg, rgba(255, 140, 66, 0.1), rgba(232, 156, 174, 0.1));
}

.newsletter-box {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  padding: 50px;
  border-radius: 20px;
  border: 2px solid var(--cassie-orange);
  box-shadow: 0 10px 30px rgba(139, 69, 19, 0.1);
}

.newsletter-box h2 {
  font-family: 'Merriweather', serif;
  font-size: 2.8rem;
  margin-bottom: 20px;
  color: var(--cassie-brown);
}

.newsletter-form {
  display: flex;
  gap: 10px;
  margin-top: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input {
  flex: 1;
  min-width: 250px;
  padding: 15px 20px;
  border-radius: 50px;
  border: 2px solid var(--cassie-orange);
  background: white;
  color: var(--cassie-dark);
  font-size: 1rem;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--cassie-brown);
  box-shadow: 0 0 20px rgba(255, 140, 66, 0.3);
}

.privacy-note {
  margin-top: 15px;
  font-size: 0.9rem;
  color: rgba(62, 39, 35, 0.7);
}

/* Footer */
.footer {
  background: var(--cassie-cream);
  padding: 50px 0 20px;
  border-top: 2px solid var(--cassie-orange);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

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

.footer-logo {
  height: 80px;
  margin-bottom: 15px;
}

.footer-brand p {
  color: var(--cassie-dark);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.footer-links a {
  color: var(--cassie-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--cassie-orange);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(139, 69, 19, 0.2);
  color: rgba(62, 39, 35, 0.7);
  font-size: 0.9rem;
}

.footer-bottom p {
  margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .about-text {
    padding: 30px;
  }
  
  .nav {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-logo {
    width: 120px;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input {
    min-width: 100%;
  }
}