:root {
  --pink: #f4b6c2;
  --pink-light: #fdeef1;
  --rose: #c9506b;
  --cream: #fffaf5;
  --ink: #3b2a2f;
  --muted: #7a6870;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Lato", sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
}

h1, h2, .logo { font-family: "Playfair Display", serif; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 2rem;
  background: rgba(255, 250, 245, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--pink-light);
}
.logo {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 1.4rem; font-weight: 700; color: var(--rose); text-decoration: none;
}
.logo-img {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 50%; overflow: hidden;
  box-shadow: 0 2px 6px rgba(120, 60, 80, 0.2);
}
.logo-img img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.08); }
nav a { margin-left: 1.5rem; color: var(--ink); text-decoration: none; font-weight: 400; }
nav a:hover { color: var(--rose); }

/* Hero */
.hero {
  text-align: center;
  padding: 7rem 1.5rem 6rem;
  background: linear-gradient(180deg, var(--pink-light), var(--cream));
}
.eyebrow { text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.8rem; color: var(--rose); font-weight: 700; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin: 0.5rem 0 1rem; line-height: 1.15; }
.lead { max-width: 36rem; margin: 0 auto 2rem; color: var(--muted); font-size: 1.15rem; }

.button {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--rose); color: #fff;
  border-radius: 999px; text-decoration: none; font-weight: 700;
  transition: transform 0.2s, background 0.2s;
}
.button:hover { background: #a93d56; transform: translateY(-2px); }
.button-outline { background: transparent; color: var(--rose); border: 2px solid var(--rose); margin-left: 0.5rem; }
.button-outline:hover { background: var(--rose); color: #fff; }

/* Sections */
section { padding: 5rem 1.5rem; }
section h2 { font-size: 2.2rem; text-align: center; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 2.5rem; }

/* Gallery */
.gallery {
  max-width: 1100px; margin: 0 auto;
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.gallery figure {
  position: relative; overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pink-light), var(--pink));
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(120, 60, 80, 0.12);
}
.gallery img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s;
}
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.5rem 1rem 0.8rem;
  color: #fff; font-weight: 400;
  background: linear-gradient(transparent, rgba(59, 42, 47, 0.7));
  opacity: 0; transition: opacity 0.3s;
}
.gallery figure:hover figcaption { opacity: 1; }

/* About */
.about { background: var(--pink-light); }
.about-inner { max-width: 40rem; margin: 0 auto; text-align: center; }
.about h2 { margin-bottom: 1rem; }

/* Contact */
.contact { text-align: center; }
.contact p { color: var(--muted); margin: 0.5rem 0 1.75rem; }

footer { text-align: center; padding: 2rem 1rem; color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--pink-light); }

/* Cake request page */
.request { max-width: 46rem; margin: 0 auto; padding: 4rem 1.5rem 5rem; }
.request h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0.5rem 0 1rem; line-height: 1.15; text-align: center; }
.request .eyebrow, .request .lead { text-align: center; }
.request-form { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 2rem; }
.request-form .row { display: grid; gap: 1.25rem; grid-template-columns: 1fr 1fr; }
.request-form label { display: flex; flex-direction: column; gap: 0.4rem; font-weight: 700; font-size: 0.95rem; }
.request-form input, .request-form textarea {
  font: inherit; font-weight: 400; color: var(--ink);
  padding: 0.7rem 0.9rem; background: #fff;
  border: 1px solid var(--pink); border-radius: 10px;
}
.request-form input:focus, .request-form textarea:focus { outline: 2px solid var(--rose); outline-offset: 1px; }
.request-form textarea { resize: vertical; }
.hint { font-weight: 300; font-size: 0.85rem; color: var(--muted); }
.previews { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.preview { position: relative; width: 90px; height: 90px; }
.preview img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.preview button {
  position: absolute; top: -6px; right: -6px; width: 24px; height: 24px;
  border: 0; border-radius: 50%; background: var(--rose); color: #fff; cursor: pointer; line-height: 1;
}
.notice {
  margin-top: 1.5rem; padding: 1rem 1.25rem; text-align: center;
  background: #fff3cd; color: #6b4e00; border: 1px solid #f0d98a; border-radius: 10px; font-weight: 700;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.request-form .button { align-self: center; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.request-form .button:disabled { opacity: 0.6; cursor: wait; }
.form-status { text-align: center; min-height: 1.5rem; }
.form-status.success { color: #2c7a4b; font-weight: 700; }
.form-status.error { color: #b3261e; font-weight: 700; }
@media (max-width: 600px) { .request-form .row { grid-template-columns: 1fr; } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(30, 20, 24, 0.92);
  padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 80vh; border-radius: 8px; }
.lightbox-caption { color: #fff; margin-top: 1rem; }
.lightbox-close {
  position: absolute; top: 1rem; right: 1.5rem;
  background: none; border: 0; color: #fff; font-size: 2.5rem; cursor: pointer;
}

@media (max-width: 600px) {
  .site-header { flex-direction: column; gap: 0.5rem; }
  nav a { margin: 0 0.75rem; }
  .hero { padding: 4.5rem 1.5rem 4rem; }
}
