/* ==========================================================
   Laundry Genie
   Palette pulled from the flyer: deep navy, sky blue, lamp gold
   ========================================================== */

:root {
  --navy: #10265a;
  --navy-2: #1b3f8b;
  --sky: #d9edfc;
  --sky-2: #9fd0f5;
  --sky-3: #5fb1ec;
  --gold: #e0ad2e;
  --gold-deep: #b8820f;
  --gold-soft: #fbe39a;
  --cream: #fbfaf6;
  --ink: #0d1d42;
  --muted: #4c5d80;

  --script: "Dancing Script", cursive;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Figtree", system-ui, sans-serif;

  --radius: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--navy-2); }
p { margin: 0; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.7rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 700 1rem var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.btn-gold {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: var(--navy);
  box-shadow: 0 10px 24px -10px rgba(184, 130, 15, .8), inset 0 1px 0 rgba(255,255,255,.6);
}
.btn-gold:hover { box-shadow: 0 16px 30px -12px rgba(184, 130, 15, .9), inset 0 1px 0 rgba(255,255,255,.6); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: rgba(255,255,255,.5); }
.btn-ghost:hover { background: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 18px 0;
  transition: padding .35s var(--ease), background .35s, box-shadow .35s;
}
.site-header.is-scrolled {
  padding: 10px 0;
  background: rgba(251, 250, 246, .86);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(16, 38, 90, .08);
}
.header-inner { display: flex; align-items: center; gap: 2rem; }
.wordmark {
  font-family: var(--script);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--navy);
  text-decoration: none;
  position: relative;
  white-space: nowrap;
}
.wordmark-spark { position: absolute; top: -.35em; right: -.7em; font-size: .45em; color: var(--gold); font-family: var(--sans); }
.wordmark-light { color: #fff; }
.nav { display: flex; gap: 1.8rem; margin-left: auto; }
.nav a {
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  color: var(--navy);
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }
.header-call {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.1rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  white-space: nowrap;
}
.header-call svg { width: 16px; fill: var(--gold-soft); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 150px 0 140px;
  background:
    radial-gradient(60% 70% at 75% 45%, rgba(255,255,255,.85), transparent 70%),
    linear-gradient(180deg, #bfe2fb 0%, var(--sky-2) 55%, var(--sky-3) 100%);
  overflow: hidden;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 2rem;
}
.hero h1 {
  font-size: clamp(2.85rem, 7.6vw, 5.9rem);
  color: var(--navy);
}
.hero h1 em { color: var(--navy-2); }
.hero-lede { max-width: 34ch; margin-top: 1.6rem; color: var(--ink); font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.hero-art { position: relative; }
.lamp-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}
.lamp-svg { width: 100%; height: auto; overflow: visible; }
.lamp { transform-box: fill-box; transform-origin: 50% 90%; }
.lamp-btn:hover .lamp { animation: wobble .7s var(--ease); }
.lamp-btn.is-rubbed .lamp { animation: rub .9s var(--ease); }
.lamp-glow { transition: opacity .6s; opacity: .7; }
.lamp-btn.is-rubbed .lamp-glow { opacity: 1; }

.steam {
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  opacity: .85;
  animation: steam 4.5s var(--ease) infinite;
}
.steam-2 { stroke-dasharray: 120; stroke-dashoffset: 120; animation-delay: .6s; }
.sparkles path { transform-box: fill-box; transform-origin: center; animation: twinkle 2.6s ease-in-out infinite; }
.sparkles path:nth-child(2) { animation-delay: .8s; }
.sparkles path:nth-child(3) { animation-delay: 1.5s; }

.lamp-hint {
  position: absolute;
  left: 2%;
  bottom: -6%;
  font-family: var(--script);
  font-size: 1.5rem;
  color: var(--navy);
  transform: rotate(-6deg);
  pointer-events: none;
}
.lamp-hint::before { content: "↗ "; font-family: var(--sans); font-size: 1rem; color: var(--gold-deep); }
.lamp-toast {
  position: absolute;
  left: 50%;
  top: 6%;
  translate: -50% 0;
  padding: .7rem 1.2rem;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .4s, transform .4s var(--ease);
}
.lamp-toast.is-visible { opacity: 1; transform: translateY(0); }

.burst {
  position: fixed;
  width: 10px; height: 10px;
  pointer-events: none;
  z-index: 60;
  color: var(--gold);
  font-size: 18px;
  line-height: 1;
  animation: burst .9s var(--ease) forwards;
}

/* bubbles */
.bubbles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.bubble {
  position: absolute;
  bottom: -60px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.95) 0 8%, rgba(255,255,255,.15) 30%, rgba(255,255,255,.05) 60%);
  border: 1.5px solid rgba(255,255,255,.75);
  box-shadow: inset -4px -6px 10px rgba(95,177,236,.25);
  animation: rise linear forwards;
}

.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 90px; z-index: 3; }

/* ---------- Section heads ---------- */
.section-head { margin-bottom: 3.5rem; max-width: 640px; }
.section-head-light h2 { color: #fff; }
.section-head-light h2 em { color: var(--gold-soft); }

/* ---------- Services ---------- */
.services { padding: 110px 0 120px; }
.wish-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.wish {
  position: relative;
  padding: 2.2rem 2rem 2.4rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(16,38,90,.08);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.wish:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -24px rgba(16,38,90,.35); }
.wish-icon {
  width: 64px;
  margin-bottom: 1.6rem;
  fill: none;
  stroke: var(--navy-2);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  padding: 10px;
  box-sizing: content-box;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--gold);
}
.wish h3 { font-size: 1.8rem; margin-bottom: .6rem; color: var(--navy); }
.wish p { color: var(--muted); }

/* ---------- How it works ---------- */
.how {
  position: relative;
  padding: 120px 0;
  background:
    radial-gradient(40% 60% at 90% 10%, rgba(95,177,236,.25), transparent 70%),
    var(--navy);
  color: #fff;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 26px; left: 26px; right: 10%;
  border-top: 2px dashed rgba(224,173,46,.55);
}
.step { position: relative; }
.step-dot {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  margin-bottom: 1.4rem;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: var(--navy);
  font: 700 1.3rem var(--serif);
  position: relative;
  box-shadow: 0 0 0 8px var(--navy);
}
.step p { color: #b9c8e6; }

/* ---------- Service area ---------- */
.area { padding: 120px 0; background: linear-gradient(180deg, var(--cream), var(--sky)); }
.area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.area-map { position: relative; max-width: 440px; margin-inline: auto; width: 100%; }
.area-map svg { width: 100%; overflow: visible; }
.ring { fill: none; stroke: rgba(27,63,139,.22); stroke-width: 1.5; stroke-dasharray: 4 6; }
.ring-outer { stroke: var(--navy-2); stroke-width: 2.5; stroke-dasharray: none; fill: rgba(255,255,255,.55); }
.sweep {
  fill: none;
  stroke: var(--gold);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 160 1131;
  transform-origin: 200px 200px;
  animation: sweep 6s linear infinite;
}
.radius { stroke: var(--gold-deep); stroke-width: 2; stroke-dasharray: 6 5; }
.radius-label { font: 700 16px var(--sans); fill: var(--navy); }
.pin path { fill: var(--navy); }
.pin { animation: bob 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom; }
.postcode {
  position: absolute;
  left: 50%; top: 61%;
  translate: -50% 0;
  padding: .3rem .9rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  font: 700 1.1rem var(--sans);
  letter-spacing: .06em;
}
.area-copy h2 { margin-bottom: 1.2rem; color: var(--navy); }
.area-copy > p { color: var(--muted); max-width: 44ch; }
.area-check { margin-top: 1.6rem; max-width: 30rem; }
.area-check label { display: block; margin-bottom: .4rem; font-weight: 700; font-size: .92rem; color: var(--navy); }
.area-row { display: flex; gap: .6rem; }
.area-row input { flex: 1; min-width: 0; }
.area-row .btn { flex: none; }
.area-result { min-height: 3em; margin-top: .7rem; font-weight: 600; color: var(--navy); }
.area-marker { fill: var(--gold); stroke: var(--navy); stroke-width: 2; opacity: 0; transition: opacity .2s; }
.area-label { font: 700 15px var(--sans); fill: var(--navy); opacity: 0; transition: opacity .2s; }
.area-marker.is-on, .area-label.is-on { opacity: 1; }

/* ---------- Inputs ---------- */
input[type="text"], input[type="tel"], input[type="date"], textarea {
  width: 100%;
  padding: .9rem 1.1rem;
  border-radius: 14px;
  border: 1.5px solid rgba(16,38,90,.15);
  background: #fff;
  font: 500 1rem var(--sans);
  color: var(--ink);
  transition: border-color .25s, box-shadow .25s;
}
input:focus, textarea:focus { border-color: var(--navy-2); box-shadow: 0 0 0 4px rgba(95,177,236,.25); outline: none; }
input.is-invalid { border-color: #c0283b; }
textarea { resize: vertical; }

/* ---------- Booking ---------- */
.book { padding: 120px 0 160px; }
.book-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: start; }
.book-intro h2 { color: var(--navy); margin-bottom: 1.2rem; }
.book-intro > p { color: var(--muted); max-width: 40ch; }

.contact-card { list-style: none; padding: 0; margin: 2.4rem 0 0; display: grid; gap: 1.1rem; }
.contact-card li { display: flex; align-items: center; gap: 1rem; }
.contact-card a, .contact-card li > span:last-child { text-decoration: none; font-weight: 700; font-size: 1.1rem; color: var(--navy); display: flex; flex-direction: column; line-height: 1.3; word-break: break-word; }
.contact-card a:hover { color: var(--navy-2); }
.cc-icon {
  flex: none;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: #fff;
}
.cc-icon svg { width: 20px; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.book-form {
  padding: 2.6rem;
  border-radius: 28px;
  background: #fff;
  border: 1px solid rgba(16,38,90,.08);
  box-shadow: 0 40px 60px -40px rgba(16,38,90,.35);
  display: grid;
  gap: 1.2rem;
  position: relative;
}
.book-form::before {
  content: "";
  position: absolute;
  inset: 12px -12px -12px 12px;
  border-radius: 28px;
  border: 2px solid var(--gold);
  z-index: -1;
}
.field { display: grid; gap: .45rem; margin: 0; padding: 0; border: 0; }
.field label, .field legend { font-weight: 700; font-size: .92rem; color: var(--navy); padding: 0; }
.field legend { margin-bottom: .6rem; }
.optional { font-weight: 500; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block;
  padding: .6rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid rgba(16,38,90,.18);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  user-select: none;
  transition: all .25s var(--ease);
}
.chip span:hover { border-color: var(--navy-2); }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip input:checked + span::before { content: "✦ "; color: var(--gold-soft); }
.chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.form-error { color: #c0283b; font-weight: 600; font-size: .92rem; min-height: 1.2em; }

/* ---------- Footer ---------- */
.site-footer { position: relative; padding: 140px 0 40px; background: var(--navy); color: #fff; }
.wave-top { top: -1px; bottom: auto; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; align-items: flex-end; }
.site-footer .wordmark { font-size: 3rem; }
.footer-tag { font-family: var(--serif); font-style: italic; color: var(--gold-soft); margin-top: .4rem; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; text-align: right; color: #cfdcf5; }
.footer-list a { color: #fff; text-decoration: none; font-weight: 600; }
.footer-list a:hover { color: var(--gold-soft); }
.footer-legal { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; color: #8ea2cc; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.wish-list .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: .1s; }
.wish-list .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: .2s; }
.wish-list .reveal:nth-child(4), .steps .reveal:nth-child(4) { transition-delay: .3s; }

/* ---------- Keyframes ---------- */
@keyframes steam {
  0% { stroke-dashoffset: 520; opacity: 0; }
  15% { opacity: .9; }
  60% { stroke-dashoffset: 0; opacity: .9; }
  100% { stroke-dashoffset: -520; opacity: 0; }
}
@keyframes twinkle { 0%, 100% { transform: scale(.6) rotate(0); opacity: .5; } 50% { transform: scale(1.1) rotate(20deg); opacity: 1; } }
@keyframes wobble { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-3deg); } 60% { transform: rotate(2deg); } }
@keyframes rub {
  0%, 100% { transform: translateX(0) rotate(0); }
  20% { transform: translateX(-10px) rotate(-4deg); }
  40% { transform: translateX(10px) rotate(4deg); }
  60% { transform: translateX(-6px) rotate(-2deg); }
  80% { transform: translateX(4px) rotate(1deg); }
}
@keyframes rise {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translate(var(--drift), -110vh); opacity: 0; }
}
@keyframes burst {
  0% { transform: translate(0, 0) scale(.4); opacity: 1; }
  100% { transform: translate(var(--x), var(--y)) scale(1.1) rotate(90deg); opacity: 0; }
}
@keyframes sweep { to { transform: rotate(360deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav {
    visibility: hidden;
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: var(--navy);
    transform: translateY(-100%);
    transition: transform .5s var(--ease), visibility .5s;
  }
  .nav a { color: #fff; font-family: var(--serif); font-size: 2rem; }
  .nav.is-open { transform: none; visibility: visible; }
  .site-header.is-scrolled { background: var(--cream); backdrop-filter: none; }
  .header-call { margin-left: auto; }
  .nav-toggle {
    display: grid;
    gap: 6px;
    width: 44px; height: 44px;
    place-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
    position: relative;
    z-index: 2;
  }
  .nav-toggle span { display: block; width: 18px; height: 2px; background: var(--navy); transition: transform .3s var(--ease); }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .hero { padding-top: 120px; }
  .hero-grid, .area-grid, .book-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; margin-inline: auto; width: 100%; }
  .wish-list { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 3rem; }
  .steps::before { display: none; }
  .area-grid { gap: 3rem; }
}

@media (max-width: 620px) {
  .header-call span { display: none; }
  .header-call { padding: .7rem; }
  .wordmark { font-size: 2.1rem; }
  .wish-list, .steps, .field-row { grid-template-columns: 1fr; }
  .book-form { padding: 1.8rem 1.4rem; }
  .book-form::before { inset: 8px -6px -8px 6px; }
  .footer-list { text-align: left; }
  .lamp-toast { white-space: normal; text-align: center; width: 80%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .steam { stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}
