/* ---------- Flour Power Bakes — retro groovy stylesheet ---------- */

:root {
  --cream: #f8ecd8;
  --blush: #ecd3c1;
  --hot-pink: #e63e78;
  --deep-pink: #c01858;
  --purple: #8d5fbf;
  --lavender: #b98bd9;
  --plum: #34162f;
  --plum-light: #4a2143;
  --gold: #f0a93e;
  --ink: #2c1428;

  --font-display: 'Righteous', cursive;
  --font-script: 'Pacifico', cursive;
  --font-body: 'Quicksand', sans-serif;

  --shadow-hard: 6px 6px 0 var(--plum);
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; }

p { line-height: 1.65; margin: 0 0 1em; }

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: .9em 1.8em;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: .95rem;
  letter-spacing: .03em;
  border: 3px solid var(--plum);
  transition: transform .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--hot-pink);
  color: var(--cream);
  box-shadow: var(--shadow-hard);
}

.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--plum); }

.btn-ghost {
  background: transparent;
  color: var(--plum);
  box-shadow: var(--shadow-hard);
}

.btn-ghost:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--plum); background: var(--gold); }

.btn-call {
  border: 2px solid var(--plum);
  padding: .55em 1.3em;
  font-size: .85rem;
  background: var(--cream);
  box-shadow: 3px 3px 0 var(--plum);
}
.btn-call:hover { background: var(--gold); }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 236, 216, .92);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--plum);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: .7rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-right: auto;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--plum);
  object-fit: cover;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--plum);
}
.brand-text em { display: block; font-style: normal; font-size: .65em; color: var(--deep-pink); letter-spacing: .12em; }

.links {
  display: flex;
  gap: 1.8rem;
  font-weight: 700;
  font-size: .95rem;
}

.links a { position: relative; padding: .2rem 0; }
.links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 3px;
  background: var(--hot-pink);
  transition: width .2s ease;
}
.links a:hover::after { width: 100%; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.burger span { width: 26px; height: 3px; background: var(--plum); border-radius: 2px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, var(--blush) 0%, var(--cream) 60%);
}

.sunburst {
  position: absolute;
  top: 50%; left: 50%;
  width: 1400px; height: 1400px;
  transform: translate(-50%, -55%);
  background: repeating-conic-gradient(
    var(--hot-pink) 0deg 10deg,
    var(--gold) 10deg 20deg
  );
  opacity: .16;
  border-radius: 50%;
  animation: spin 90s linear infinite;
}

@keyframes spin { to { transform: translate(-50%, -55%) rotate(360deg); } }

.hero-blooms { position: absolute; inset: 0; pointer-events: none; }
.bloom {
  position: absolute;
  font-size: 3rem;
  color: var(--purple);
  opacity: .35;
  animation: float 7s ease-in-out infinite;
}
.b1 { top: 12%; left: 8%; color: var(--hot-pink); animation-delay: 0s; }
.b2 { top: 20%; right: 10%; font-size: 4rem; animation-delay: 1.2s; }
.b3 { bottom: 15%; left: 14%; font-size: 2.4rem; color: var(--gold); animation-delay: 2.4s; }
.b4 { bottom: 22%; right: 16%; color: var(--hot-pink); animation-delay: .6s; }
.b5 { top: 50%; left: 3%; font-size: 2rem; animation-delay: 1.8s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(8deg); }
}

.hero-content { position: relative; z-index: 2; max-width: 700px; padding: 0 1.5rem; }

.eyebrow {
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--deep-pink);
  margin-bottom: .2em;
}

.hero-title {
  font-size: clamp(3.2rem, 9vw, 6rem);
  color: var(--plum);
  text-shadow: 4px 4px 0 var(--gold);
}

.hero-sub {
  font-size: 1.15rem;
  max-width: 520px;
  margin: 0 auto 2rem;
  color: var(--plum-light);
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Wave dividers ---------- */

.wave-divider { line-height: 0; margin-top: -2px; }
.wave-divider svg { width: 100%; height: 60px; display: block; }
.wave-divider path { fill: var(--blush); }
.wave-divider.flip { transform: rotate(180deg); }
.wave-divider.flip path { fill: var(--plum); }

/* ---------- About ---------- */

.about { background: var(--blush); padding: 5rem 1.5rem; }

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 3.5rem;
  align-items: center;
}

.polaroid {
  background: var(--cream);
  padding: 1rem 1rem 2.2rem;
  border: 3px solid var(--plum);
  box-shadow: var(--shadow-hard);
  transform: rotate(-4deg);
  max-width: 320px;
  margin: 0 auto;
}
.polaroid img { border-radius: 8px; }
.polaroid p {
  font-family: var(--font-script);
  text-align: center;
  margin: .8rem 0 0;
  color: var(--deep-pink);
}

.kicker {
  font-family: var(--font-script);
  font-size: 1.3rem;
  color: var(--hot-pink);
  margin-bottom: .1em;
}
.kicker.light { color: var(--gold); }
.kicker.center { text-align: center; }

.about-copy h2 { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--plum); }

/* ---------- Cakes ---------- */

.cakes { padding: 5.5rem 1.5rem; max-width: 1200px; margin: 0 auto; }

.section-title { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--plum); margin-bottom: 2.8rem; }
.section-title.center { text-align: center; }

.cake-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.8rem;
}

.cake-card { flex: 1 1 250px; max-width: 280px; }

.cake-card {
  background: var(--cream);
  border: 3px solid var(--plum);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-hard);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cake-card:hover { transform: translateY(-6px); box-shadow: 8px 12px 0 var(--gold); }

.cake-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 3px solid var(--plum);
}

.cake-body { padding: 1.6rem 1.4rem; }

.cake-card h3 { font-size: 1.2rem; color: var(--deep-pink); margin-bottom: .5rem; }
.cake-card p { font-size: .92rem; color: var(--plum-light); margin: 0; }

/* ---------- Honesty Shed ---------- */

.shed { background: var(--plum); color: var(--cream); padding: 5.5rem 1.5rem; }

.shed-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3rem;
  align-items: center;
}

.shed h2 { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--cream); }
.shed-copy p { color: #e9d9e5; }

.shed-facts { list-style: none; padding: 0; margin: 1.5rem 0; display: flex; flex-direction: column; gap: .9rem; }
.shed-facts li { display: flex; align-items: center; gap: .7rem; font-size: .98rem; }
.shed-facts span { font-size: 1.3rem; }
.shed-facts strong { color: var(--gold); }

.shed .btn-primary { border-color: var(--cream); box-shadow: 6px 6px 0 var(--gold); }
.shed .btn-primary:hover { box-shadow: 8px 8px 0 var(--gold); }

.shed-media {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.shed-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  border: 3px solid var(--cream);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--gold);
}

.shed-map {
  border: 3px solid var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--gold);
  aspect-ratio: 4 / 2.6;
}
.shed-map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Community ---------- */

.community { background: var(--gold); padding: 3.2rem 1.5rem; }
.community-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  color: var(--plum);
}
.community-icon { font-size: 2rem; display: block; margin-bottom: .6rem; }
.community-inner p { font-size: 1.1rem; font-weight: 600; margin: 0; }

/* ---------- Footer ---------- */

.footer {
  position: relative;
  background: var(--plum);
  color: var(--cream);
  padding: 5rem 1.5rem 3rem;
  text-align: center;
  overflow: hidden;
}

.footer-sunburst {
  position: absolute;
  top: -60%; left: 50%;
  width: 900px; height: 900px;
  transform: translateX(-50%);
  background: repeating-conic-gradient(var(--hot-pink) 0deg 8deg, transparent 8deg 16deg);
  opacity: .15;
  border-radius: 50%;
}

.footer-inner { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }

.footer-logo {
  width: 90px; height: 90px;
  border-radius: 50%;
  margin: 0 auto 1.2rem;
  border: 3px solid var(--cream);
}

.footer h2 { font-family: var(--font-script); font-size: 2.2rem; color: var(--gold); font-weight: 400; }

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem;
  margin: 1.2rem 0 2rem;
  font-weight: 700;
}
.footer-contacts a:hover { color: var(--hot-pink); }

.footer-note { font-size: .85rem; opacity: .7; margin: 0; }

/* ---------- Scroll reveal ---------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .about-inner, .shed-inner { grid-template-columns: 1fr; }
  .shed-media { order: -1; }
}

@media (max-width: 720px) {
  .links, .nav-call { display: none; }
  .burger { display: flex; }
  .nav.open .links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 3px solid var(--plum);
    padding: 1.2rem 1.5rem;
    gap: 1rem;
  }
  .nav.open .nav-call {
    display: inline-block;
    position: absolute;
    top: 100%; left: 0; right: 0;
    margin: 9.5rem 1.5rem 0;
  }
}
