:root {
  --bg: #fff7f2;
  --ink: #3c2c27;
  --muted: #7a5e53;
  --accent: #e68a8a;
  --accent-dark: #c76f6f;
  --cream: #fff2e6;
  --shadow: 0 8px 24px rgba(60,44,39,0.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg), #ffffff 60%);
}

/* Loader */
.loader {
  position: fixed; inset: 0; display: grid; place-items: center;
  background: #fff; z-index: 999;
}
.loader-inner { text-align: center; }
.loader-dot {
  display: inline-block; width: 10px; height: 10px; margin: 0 4px;
  border-radius: 50%; background: var(--accent);
  animation: bounce 1s infinite ease-in-out;
}
.loader-dot:nth-child(2) { animation-delay: 0.2s; }
.loader-dot:nth-child(3) { animation-delay: 0.4s; }
.loader p { margin-top: 10px; color: var(--muted); }
@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.7; }
  40% { transform: translateY(-8px); opacity: 1; }
}

/* Header */
.site-header {
  position: sticky; top: 0; background: rgba(255,255,255,0.8); backdrop-filter: blur(8px);
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px; border-bottom: 1px solid #f0e6df; z-index: 10;
}
.brand { display: flex; align-items: center; gap: 10px; }
.logo { font-size: 24px; }
.title { font-weight: 600; }
.nav a { margin: 0 10px; color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.cta { border: none; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; cursor: pointer; }
.cta:hover { background: var(--accent-dark); }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 20px; padding: 60px 20px 40px;
}
.hero-content h1 {
  font-family: 'Playfair Display', serif; font-size: clamp(28px, 6vw, 48px);
  margin: 0 0 10px;
}
.hero-content p { color: var(--muted); margin: 0 0 20px; }
.hero-actions { display: flex; gap: 10px; }
.btn {
  display: inline-block; padding: 10px 16px; border-radius: 10px; text-decoration: none;
  border: 1px solid #f0ddd4; color: var(--ink); background: var(--cream); box-shadow: var(--shadow);
}
.btn.primary { background: var(--accent); color: #fff; border: none; }
.btn.ghost { background: #fff; }
.btn:hover { transform: translateY(-1px); }

/* Kitchen scene (simple illustration) */
.kitchen-scene {
  position: relative;
  min-height: 320px; /* increased height */
  background: #fffaf5; /* optional soft background */
  overflow: hidden;
}

.counter {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: #f3e3d8;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.stand {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 140px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  z-index: 1;
}

.cake-tier {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: 40px;
  background: #ffd9d9;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.tier1 { bottom: 10px; width: 160px; }
.tier2 { bottom: 55px; width: 130px; }
.tier3 { bottom: 95px; width: 100px; }

.cake-topper {
  position: absolute;
  bottom: 140px; /* raised above tier3 */
  left: 50%;
  transform: translateX(-50%);
  font-size: 50px;
  z-index: 2;
  animation: sparkle 2s infinite ease-in-out;
}

@keyframes sparkle {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 1; }
  50% { transform: translateX(-50%) scale(1.2); opacity: 0.8; }
}

.hanging-lamp {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  background: #f9e6d3;
  border-radius: 50%;
  box-shadow: 0 16px 32px rgba(0,0,0,0.06);
  z-index: 0;
}

.steam {
  position: absolute;
  bottom: 150px;
  width: 6px;
  height: 6px;
  background: #fbeaea;
  border-radius: 50%;
  animation: float 4s infinite ease-in-out;
  z-index: 3;
}

.steam1 { left: 55%; animation-delay: 0s; }
.steam2 { left: 60%; animation-delay: 0.8s; }
.steam3 { left: 50%; animation-delay: 1.6s; }

@keyframes float {
  0% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(-20px); opacity: 1; }
  100% { transform: translateY(0); opacity: 0.6; }
}

/* Sections */
.section { padding: 40px 20px; max-width: 1100px; margin: 0 auto; }
.section.alt { background: #fffdfb; border-top: 1px solid #f3e6de; border-bottom: 1px solid #f3e6de; }
.section-header h2 {
  font-family: 'Playfair Display', serif; font-size: 28px; margin: 0 0 6px;
}
.section-header p { color: var(--muted); margin: 0 0 20px; }

/* Gallery grid */
.grid {
  display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 20px; padding: 20px;
}
.card {
  margin: 0; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow);
  cursor: pointer; transition: transform 160ms ease, box-shadow 160ms ease;
}
.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.card figcaption { padding: 10px 12px; font-weight: 600; }
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(60,44,39,0.18); }

/* Modal */
.modal { position: fixed; inset: 0; display: none; z-index: 100; }
.modal.show { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.35); }
.modal-content {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: min(92vw, 900px); display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 40px rgba(0,0,0,0.2);
}
.modal-content img { width: 100%; height: 100%; object-fit: cover; }
.modal-text { padding: 16px; }
.modal-text h3 { margin: 0 0 6px; }
.modal-text p { margin: 0 0 10px; color: var(--muted); }
.price { font-weight: 600; color: var(--ink); }
.close {
  position: absolute; top: 8px; right: 12px; font-size: 24px; background: none; border: none; cursor: pointer;
}

/* About */
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 20px; align-items: start; }
.about-card {
  background: #ffffff; border: 1px solid #f1e4dc; border-radius: 12px; padding: 16px; box-shadow: var(--shadow);
}
.features { list-style: none; padding: 0; margin: 0; }
.features li { margin: 8px 0; }

/* Contact form */
.contact-form { max-width: 720px; margin: 0 auto; background: #fff; padding: 16px; border-radius: 12px; box-shadow: var(--shadow); }
.contact-form .row { display: grid; gap: 8px; margin-bottom: 12px; }
.contact-form label { font-weight: 600; }
.contact-form input, .contact-form textarea {
  padding: 10px; border: 1px solid #eadfd7; border-radius: 8px; font: inherit;
}
.form-note { margin-top: 10px; color: var(--muted); }

/* Footer */
.site-footer { text-align: center; padding: 30px 20px; color: var(--muted); border-top: 1px solid #f1e6df; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .modal-content { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}
