/* ==================== RESET ==================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Quicksand', sans-serif;
  background: #FFF8F0;
  color: #5a3e4b;
  overflow-x: hidden;
}

/* ==================== HEADER / FROSTING ==================== */
.frosting-header {
  position: relative;
  background: linear-gradient(135deg, #FF69B4 0%, #F8A4C8 40%, #FFB6C1 100%);
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: visible;
  z-index: 10;
}

.frosting-header h1 {
  font-family: 'Bubblegum Sans', cursive;
  font-size: clamp(3rem, 8vw, 5.5rem);
  color: #fff;
  text-shadow: 2px 4px 8px rgba(180, 60, 100, 0.35);
  position: relative;
  z-index: 5;
}

.frosting-header p.tagline {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: #fff3f8;
  margin-top: 8px;
  font-weight: 500;
  letter-spacing: 0.5px;
  z-index: 5;
}

.hero-cta {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 36px;
  background: #fff;
  color: #d4608a;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(180, 60, 100, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 5;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(180, 60, 100, 0.35);
}

/* Dripping frosting SVG along bottom */
.drip-container {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  z-index: 6;
  line-height: 0;
}

.drip-container svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ==================== SPRINKLES ==================== */
.sprinkles-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}

.sprinkle {
  position: absolute;
  border-radius: 20px;
  opacity: 0.85;
  animation: sprinkleFall 6s ease-in-out infinite alternate;
}

@keyframes sprinkleFall {
  0%   { transform: translateY(0) rotate(var(--rot)); }
  100% { transform: translateY(8px) rotate(calc(var(--rot) + 15deg)); }
}

/* ==================== NAV ==================== */
nav {
  background: #fff;
  box-shadow: 0 2px 12px rgba(200, 100, 130, 0.1);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav a {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  color: #d4608a;
  text-decoration: none;
  margin: 0 18px;
  font-size: 1rem;
  transition: color 0.2s;
}

nav a:hover {
  color: #FF69B4;
}

/* ==================== SECTIONS ==================== */
section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px;
}

.section-title {
  font-family: 'Bubblegum Sans', cursive;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: #d4608a;
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: #9e7080;
  font-size: 1.05rem;
  margin-bottom: 40px;
}

/* ==================== FEATURED CAKES ==================== */
.cakes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.cake-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(200, 100, 130, 0.1);
  border: 2px solid #fde4ef;
  transition: transform 0.3s, box-shadow 0.3s;
}

.cake-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(200, 100, 130, 0.2);
}

.cake-image {
  height: 220px;
  background: linear-gradient(135deg, #fde4ef 0%, #fce8f1 50%, #f8d0e0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.cake-info {
  padding: 20px 24px 24px;
}

.cake-info h3 {
  font-family: 'Bubblegum Sans', cursive;
  font-size: 1.4rem;
  color: #d4608a;
  margin-bottom: 6px;
}

.cake-info p {
  color: #9e7080;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 14px;
}

.cake-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cake-price {
  font-family: 'Bubblegum Sans', cursive;
  font-size: 1.5rem;
  color: #d4608a;
}

.cake-price .from {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: #b08090;
}

.btn-order {
  display: inline-block;
  padding: 10px 22px;
  background: linear-gradient(135deg, #FF69B4, #F8A4C8);
  color: #fff;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-order:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(200, 100, 130, 0.3);
}

/* ==================== CUSTOM ORDERS ==================== */
.custom-section {
  background: #fff;
  border-radius: 24px;
  padding: 48px 40px;
  box-shadow: 0 8px 30px rgba(200, 100, 130, 0.1);
  border: 2px solid #fde4ef;
}

.custom-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-top: 36px;
}

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

.custom-feature .icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.custom-feature h3 {
  font-family: 'Bubblegum Sans', cursive;
  font-size: 1.2rem;
  color: #d4608a;
  margin-bottom: 6px;
}

.custom-feature p {
  color: #9e7080;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ==================== ABOUT NANA ==================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-photo {
  background: linear-gradient(135deg, #fde4ef 0%, #fce8f1 50%, #f8d0e0 100%);
  border-radius: 24px;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  box-shadow: 0 8px 30px rgba(200, 100, 130, 0.1);
  border: 2px solid #fde4ef;
}

.about-text h2 {
  font-family: 'Bubblegum Sans', cursive;
  font-size: 2rem;
  color: #d4608a;
  margin-bottom: 16px;
}

.about-text p {
  color: #6b4a58;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 14px;
}

.about-text .signature {
  font-family: 'Bubblegum Sans', cursive;
  font-size: 1.3rem;
  color: #d4608a;
  margin-top: 8px;
}

/* ==================== TESTIMONIALS ==================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px 24px;
  box-shadow: 0 4px 20px rgba(200, 100, 130, 0.1);
  border: 2px solid #fde4ef;
  text-align: center;
  transition: transform 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-4px);
}

.stars {
  color: #FFD066;
  font-size: 1.3rem;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.testimonial-card blockquote {
  color: #6b4a58;
  font-size: 1rem;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 16px;
}

.testimonial-card .reviewer {
  font-weight: 700;
  color: #d4608a;
  font-size: 0.95rem;
}

/* ==================== ORDER FORM ==================== */
.order-section {
  background: #fff;
  border-radius: 24px;
  padding: 48px 40px;
  box-shadow: 0 8px 30px rgba(200, 100, 130, 0.1);
  border: 2px solid #fde4ef;
  max-width: 700px;
  margin: 0 auto;
}

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

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 600;
  color: #9e7080;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  padding: 12px 16px;
  border: 2px solid #fde4ef;
  border-radius: 12px;
  background: #FFF8F0;
  color: #5a3e4b;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #F8A4C8;
}

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

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #ff6b6b;
}

.error-msg {
  color: #ff6b6b;
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
}

.error-msg.show {
  display: block;
}

.btn-submit {
  display: block;
  width: 100%;
  padding: 16px;
  margin-top: 8px;
  background: linear-gradient(135deg, #FF69B4, #F8A4C8);
  color: #fff;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200, 100, 130, 0.3);
}

/* Success message */
.success-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(90, 62, 75, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.success-overlay.show {
  display: flex;
}

.success-box {
  background: #fff;
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(200, 100, 130, 0.25);
  animation: popIn 0.4s ease;
}

@keyframes popIn {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.success-box .check {
  font-size: 4rem;
  margin-bottom: 16px;
  display: block;
}

.success-box h3 {
  font-family: 'Bubblegum Sans', cursive;
  font-size: 1.8rem;
  color: #d4608a;
  margin-bottom: 10px;
}

.success-box p {
  color: #9e7080;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.btn-close {
  padding: 12px 32px;
  background: linear-gradient(135deg, #FF69B4, #F8A4C8);
  color: #fff;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.2s;
}

.btn-close:hover {
  transform: translateY(-2px);
}

/* ==================== FOOTER ==================== */
footer {
  background: linear-gradient(135deg, #FFB6C1 0%, #F8A4C8 50%, #FF69B4 100%);
  text-align: center;
  padding: 50px 24px 30px;
  color: #fff;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 0 auto 32px;
  text-align: left;
}

.footer-col h4 {
  font-family: 'Bubblegum Sans', cursive;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.footer-col p,
.footer-col a {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #fff;
  opacity: 0.9;
  text-decoration: none;
}

.footer-col a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 20px;
}

.footer-bottom .love {
  font-family: 'Bubblegum Sans', cursive;
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.footer-bottom p {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-photo {
    height: 250px;
  }

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

  .order-section {
    padding: 32px 20px;
  }

  .custom-section {
    padding: 32px 20px;
  }
}

@media (max-width: 600px) {
  .frosting-header {
    min-height: 320px;
  }

  nav a {
    margin: 0 10px;
    font-size: 0.85rem;
  }

  section {
    padding: 40px 16px;
  }

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

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