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

:root {
  --bg-cream: #FFF7F0;
  --primary-pink: #D4A5A5;
  --cocoa-brown: #8B7355;
  --mint-accent: #B8E6D5;
  --text-dark: #333;
  --text-light: #888;
  --border-light: #E8DCDC;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.6;
}

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

/* ========================================
   HEADER / NAVIGATION
   ======================================== */

.header {
  position: sticky;
  top: 0;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 1000;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-family: 'Homemade Apple', cursive;
  font-size: 1.5rem;
  color: var(--primary-pink);
  letter-spacing: 1px;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--primary-pink);
}

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

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background-color: #c59595;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-pink);
  border: 2px solid var(--primary-pink);
}

.btn-secondary:hover {
  background-color: var(--primary-pink);
  color: white;
}

.btn-tertiary {
  background-color: transparent;
  color: var(--primary-pink);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-tertiary:hover {
  text-decoration: underline;
}

/*.btn-large {*/
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  padding: 4rem 0;
  background: linear-gradient(135deg, rgba(212, 165, 165, 0.05) 0%, rgba(184, 230, 213, 0.05) 100%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  padding: 2rem 0;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-ctas .btn {
  width: fit-content;
}

.hero-badges {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

.badge {
  font-size: 0.9rem;
  color: var(--primary-pink);
  font-weight: 500;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-placeholder {
  width: 300px;
  height: 300px;
  background: white;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-logo {
  max-width: 100%;
  max-height: 400px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ========================================
   SECTION TITLES
   ======================================== */

.section-title {
  font-size: 2.5rem;
  text-align: center;
  color: var(--text-dark);
  margin-bottom: 3rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* ========================================
   FEATURED TREATS
   ======================================== */

.featured {
  padding: 4rem 0;
  background: white;
}

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

.treat-card {
  background: var(--bg-cream);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.treat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(212, 165, 165, 0.15);
}

.treat-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.treat-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--primary-pink);
}

.treat-card p {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.treat-link {
  color: var(--primary-pink);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.treat-link:hover {
  text-decoration: underline;
}

/* ========================================
   GALLERY
   ======================================== */

.gallery-section {
  padding: 4rem 0;
}

.filter-chips {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--border-light);
  background: white;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
  color: var(--text-dark);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-pink);
  color: white;
  border-color: var(--primary-pink);
}

.gallery-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.carousel-btn {
  background: var(--primary-pink);
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  flex-shrink: 0;
}

.carousel-btn:hover {
  background: #c59595;
}

.gallery-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 0;
  flex: 1;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.gallery-scroll::-webkit-scrollbar {
  height: 6px;
}

.gallery-scroll::-webkit-scrollbar-track {
  background: var(--border-light);
  border-radius: 10px;
}

.gallery-scroll::-webkit-scrollbar-thumb {
  background: var(--primary-pink);
  border-radius: 10px;
}

.gallery-item {
  flex: 0 0 300px;
  aspect-ratio: 1;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s;
  scroll-snap-align: start;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item-caption {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 1rem;
  font-size: 0.9rem;
  text-align: center;
}

.gallery-item-caption {
    display: none !important;
}
/* ========================================
   HOW IT WORKS
   ======================================== */

.how-it-works {
  padding: 4rem 0;
  background: white;
}

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

.step {
  text-align: center;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--primary-pink);
  color: white;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.step h3 {
  color: var(--primary-pink);
  margin-bottom: 0.5rem;
}

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

/* ========================================
   ABOUT & TESTIMONIALS
   ======================================== */

.about {
  padding: 4rem 0;
  background: var(--bg-cream);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text p {
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-size: 1rem;
}

.testimonials {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.testimonial {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 4px solid var(--primary-pink);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.testimonial p {
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.testimonial-author {
  display: block;
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ========================================
   FORMS
   ======================================== */

.signup,
.order-section {
  padding: 4rem 0;
}

.signup {
  background: white;
}

.order-section {
  background: var(--bg-cream);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid var(--border-light);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-pink);
}

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

.form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  display: none;
}

.form-message.success {
  display: block;
  background: #c8e6c9;
  color: #2e7d32;
  border: 1px solid #2e7d32;
}

.form-message.error {
  display: block;
  background: #ffcdd2;
  color: #c62828;
  border: 1px solid #c62828;
}

.privacy-note {
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  background: var(--cocoa-brown);
  color: white;
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

.footer-link {
  color: white;
  text-decoration: none;
  margin-left: 2rem;
  transition: color 0.3s;
}

.footer-link:hover {
  color: var(--mint-accent);
}

/* ========================================
   MODAL (Gallery Lightbox)
   ======================================== */

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 10px;
}

.modal-caption {
  color: white;
  text-align: center;
  margin-top: 1rem;
  font-size: 1rem;
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
}

.modal-close:hover {
  color: var(--mint-accent);
}

/* ========================================
   CONFIRM PAGE
   ======================================== */

.confirm-page {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.confirm-page.active {
  display: flex;
}

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

.confirm-content h1 {
  font-size: 2.5rem;
  color: var(--primary-pink);
  margin-bottom: 1rem;
}

.confirm-content p {
  font-size: 1.1rem;
  color: var(--text-dark);
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

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

  .hero-title {
    font-size: 2rem;
  }

  .hero-image {
    order: -1;
  }

  .hero-logo {
    max-height: 300px;
  }

  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  .logo-section {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .header-logo {
    height: 50px;
  }

  .logo-text {
    font-size: 1.2rem;
  }

  .nav {
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-link {
    font-size: 0.85rem;
    white-space: nowrap;
  }

  .header-buttons {
    width: 100%;
    flex-direction: column;
  }

  .header-buttons .btn {
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-link {
    margin-left: 0;
    margin: 0 1rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.75rem;
  }

  .hero-ctas {
    gap: 0.75rem;
  }

  .btn-large {
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
  }

  .hero-logo {
    max-height: 100px;
  }

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

  .gallery-item {
    flex: 0 0 200px;
  }

  .filter-chips {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}
