/* The Sweet Escape - Modern Whimsical Design */
/* Inspired by Sweet LionHeart & Tessa's Bakery */

:root {
  /* Primary Colors - Simplified palette */
  --primary-pink: #E84B78;
  --soft-pink: #FFD6E8;
  --accent-lavender: #E8D6FF;
  --soft-white: #FFFBF5;
  --cream: #FFF9F0;

  /* Text Colors */
  --text-dark: #2D2D2D;
  --text-medium: #6B6B6B;
  --text-light: #999999;
  --text-primary: #4A3D58;
  --text-secondary: #6B5B7F;

  /* Neutral */
  --white: #FFFFFF;
  --light-gray: #F8F8F8;
  --border-gray: #E5E5E5;

  /* Dreamy Pastels */
  --magical-purple: #6B5B7F;
  --dreamy-rose: rgba(247, 189, 212, 0.6);
  --baby-pink: rgba(255, 214, 232, 0.35);
  --baby-lavender: rgba(232, 214, 255, 0.3);
  --baby-blue: rgba(214, 232, 255, 0.32);
  --baby-mint: rgba(214, 255, 240, 0.3);
  --baby-peach: rgba(255, 224, 214, 0.32);
  --baby-yellow: rgba(255, 247, 204, 0.32);
  --section-glow-pink: rgba(255, 214, 232, 0.22);
  --section-glow-cream: rgba(255, 249, 240, 0.28);

  --baby-pink-solid: #FFD6E8;
  --baby-lavender-solid: #E8D6FF;
  --baby-blue-solid: #D6E8FF;
  --baby-mint-solid: #D6FFF0;
  --baby-peach-solid: #FFE0D6;
  --baby-yellow-solid: #FFF7CC;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Quicksand', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #ffffff;
  background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('images/backgrounds/sprinkles-stars-moons.png');
  background-repeat: no-repeat, repeat;
  background-size: cover, 360px auto;
  background-position: center, center;
  background-attachment: fixed, fixed;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Pacifico', cursive;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-dark);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-medium);
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
}

header.scrolled {
  padding: 1rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

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

.logo {
  font-size: 2rem;
  font-weight: 400;
  color: var(--primary-pink);
  text-decoration: none;
  font-family: 'Pacifico', cursive;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

nav ul li a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
  position: relative;
}

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

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--primary-pink);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px;
  background-color: rgba(255, 255, 255, 0.95);
  background-image: url('images/backgrounds/sprinkles-stars-moons.png');
  background-position: center;
  background-size: 360px auto;
  background-repeat: repeat;
  background-attachment: fixed;
  margin-bottom: 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.75);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  animation: fadeInUp 1s ease;
}

.hero h1 {
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: 500;
}

.hero-buttons {
  margin-top: 2.5rem;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--primary-pink);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.125rem;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-pink);
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  background: transparent;
  color: var(--primary-pink);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(232, 75, 120, 0.3);
}

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

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

/* Content Sections */
.content-section {
  padding: 80px 20px;
}

.content-section.bg-light {
  background: transparent;
}

.content-section.bg-cream {
  background: transparent;
}

.section-header {
  text-align: center;
  max-width: 840px;
  margin: 0 auto 60px;
}

.section-header h2 {
  display: inline-block;
  padding: 0.75rem 2.75rem;
  border-radius: 999px;
  background: var(--soft-white);
  color: var(--text-dark);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
}

.section-header p {
  font-size: 1.2rem;
  color: var(--text-medium);
  margin-top: 0;
}

.section-header--pink h2 {
  background: var(--baby-pink-solid);
}

.section-header--blue h2 {
  background: var(--baby-blue-solid);
}

.section-header--mint h2 {
  background: var(--baby-mint-solid);
}

.section-header--yellow h2 {
  background: var(--baby-yellow-solid);
}

.section-header--peach h2 {
  background: var(--baby-peach-solid);
}

.section-header--lavender h2 {
  background: var(--baby-lavender-solid);
}

/* Grid Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-item {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

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

.gallery-item[role="button"]:focus-visible {
  outline: 4px solid var(--magical-purple);
  outline-offset: 4px;
}

.gallery-item-content {
  padding: 25px;
}

.gallery-item-content h3 {
  color: var(--text-dark);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  font-family: 'Pacifico', cursive;
}

.gallery-item-content p {
  color: var(--text-medium);
  font-size: 1rem;
  line-height: 1.6;
}

.gallery-item--link {
    color: inherit;
    text-decoration: none;
}

.gallery-item--link:focus-visible {
    outline: 3px solid var(--magical-purple);
    outline-offset: 4px;
}

/* Cake gallery search and category filters */
.gallery-controls {
  max-width: 1400px;
  margin: 0 auto 2rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(201, 160, 220, 0.35);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.gallery-search {
  display: block;
  max-width: 620px;
  margin: 0 auto 1rem;
  color: var(--text-dark);
  font-weight: 700;
}

.gallery-search span {
  display: block;
  margin-bottom: 0.5rem;
}

.gallery-search input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid var(--baby-lavender-solid);
  border-radius: 999px;
  background: white;
  color: var(--text-dark);
  font: inherit;
}

.gallery-search input:focus {
  outline: none;
  border-color: var(--magical-purple);
  box-shadow: 0 0 0 3px rgba(201, 160, 220, 0.22);
}

.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.gallery-filter {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--magical-purple);
  border-radius: 999px;
  background: white;
  color: var(--magical-purple);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.gallery-filter:hover,
.gallery-filter:focus-visible {
  background: var(--baby-lavender-solid);
  transform: translateY(-1px);
}

.gallery-filter:focus-visible {
  outline: 3px solid var(--text-dark);
  outline-offset: 2px;
}

.gallery-filter.is-active {
  background: var(--magical-purple);
  color: white;
}

.gallery-results {
  margin: 1rem 0 0;
  text-align: center;
  color: var(--text-medium);
  font-weight: 600;
}

/* Accessible full-size cake viewer */
.image-lightbox {
  width: min(1100px, calc(100vw - 2rem));
  max-width: none;
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  overflow: visible;
}

.image-lightbox::backdrop {
  background: rgba(28, 20, 38, 0.82);
  backdrop-filter: blur(4px);
}

.image-lightbox__content {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  max-height: calc(100vh - 2rem);
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.image-lightbox__image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 8.5rem);
  border-radius: 12px;
  object-fit: contain;
}

.image-lightbox__caption {
  margin: 0;
  color: var(--text-dark);
  font-family: 'Pacifico', cursive;
  font-size: 1.25rem;
  text-align: center;
}

.image-lightbox__close {
  position: absolute;
  top: 0.3rem;
  right: 0.3rem;
  z-index: 1;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: var(--magical-purple);
  color: white;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.image-lightbox__close:focus-visible {
  outline: 3px solid var(--text-dark);
  outline-offset: 2px;
}

/* Feature Cards */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  text-align: center;
  padding: 40px 30px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.feature-card p {
  color: var(--text-medium);
  font-size: 1rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--border-gray);
  border-radius: 8px;
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-pink);
  box-shadow: 0 0 0 3px rgba(232, 75, 120, 0.1);
}

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

/* Testimonials */
.testimonial {
  background: rgba(255, 255, 255, 0.9);
  padding: 40px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  border-left: 4px solid var(--primary-pink);
  transition: all 0.3s ease;
}

.testimonial:hover {
  transform: translateX(5px);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
}

.testimonial p {
  font-style: italic;
  color: var(--text-medium);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-size: 1.125rem;
}

.testimonial-author {
  font-weight: 700;
  color: var(--primary-pink);
  font-style: normal;
  font-size: 1rem;
}

/* Info Box */
.info-box {
  background: var(--baby-blue-solid);
  padding: 50px 40px;
  border-radius: 12px;
  text-align: center;
  margin: 40px 0;
}

.info-box h3 {
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-size: 2rem;
}

.info-box p {
  color: var(--text-dark);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-card {
  background: rgba(255, 255, 255, 0.9);
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-pink);
  margin-bottom: 0.5rem;
  font-family: 'Quicksand', sans-serif;
}

.stat-label {
  color: var(--text-medium);
  font-weight: 600;
  font-size: 1rem;
}

/* Footer */
footer {
  background: rgba(45, 45, 45, 0.92);
  color: var(--white);
  padding: 60px 20px 30px;
  margin-top: 80px;
}

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

.footer-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--soft-pink);
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.footer-section ul li a:hover {
  color: var(--soft-pink);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 1.5rem;
}

.social-links a {
  width: 45px;
  height: 45px;
  background: var(--primary-pink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--soft-pink);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
}

.whatsapp-chat {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.05rem;
  border-radius: 999px;
  background: #25D366;
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(16, 109, 55, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-chat:hover,
.whatsapp-chat:focus-visible {
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(16, 109, 55, 0.4);
}

.whatsapp-chat span:first-child {
  font-size: 1.35rem;
  line-height: 1;
}

/* Responsive Design */
@media (max-width: 968px) {
  nav ul {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(255, 255, 255, 0.95);
    flex-direction: column;
    justify-content: flex-start;
    padding: 40px 20px;
    gap: 1.5rem;
    transition: left 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }

  nav ul.active {
    left: 0;
  }

  .menu-toggle {
    display: flex;
  }

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

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

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

  .hero {
    min-height: 500px;
    padding: 60px 20px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

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

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

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

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .whatsapp-chat {
    right: 1rem;
    bottom: 1rem;
    padding: 0.75rem 0.9rem;
    font-size: 0.9rem;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }

.fade-in {
  animation: fadeIn 1s ease;
}

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