/* Sunshine Suds website.
   The 1950s artwork carries the personality; the interface around it stays quiet.
   Palette is taken from the artwork: pool teal, sunburst gold, rust, paper, ink. */
:root {
  --teal: #1F7A8C;
  --teal-deep: #155F6D;
  --mist: #DCEFF2;
  --gold: #F4B942;
  --gold-deep: #E0A12A;
  --rust: #B5571F;
  --paper: #FFF8EC;
  --ink: #14303A;
  --ink-soft: #3F5962;
  --line: #E8DCC6;
  --white: #FFFFFF;

  --display: Shrikhand, "Cooper Black", Georgia, serif;
  --body: Figtree, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius-art: 20px;
  --radius-ui: 12px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rust); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0; letter-spacing: .005em; }
h1 { font-size: clamp(34px, 5vw, 56px); }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: 20px; line-height: 1.3; margin: 0 0 6px; font-weight: 700; }
p { margin: 0 0 14px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 64ch; }
.lead { font-size: 19px; color: var(--ink-soft); }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--white); padding: 10px 14px; z-index: 100; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  border-radius: 999px; border: 2px solid transparent;
  font: 700 16px/1.2 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--gold); color: var(--ink); box-shadow: 0 3px 0 var(--gold-deep); }
.btn-primary:hover { background: #F7C562; color: var(--ink); transform: translateY(-1px); box-shadow: 0 4px 0 var(--gold-deep); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--gold-deep); }
.btn-ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-ghost:hover { background: rgba(20, 48, 58, .06); color: var(--ink); }
.on-dark .btn-ghost { color: var(--white); }
.on-dark .btn-ghost:hover { background: rgba(255, 255, 255, .12); color: var(--white); }
.btn-small { min-height: 42px; padding: 9px 20px; font-size: 15px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 236, .94);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 48px; height: 48px; }
.brand-name { font-family: var(--display); font-size: 24px; line-height: 1; color: var(--rust); }
.brand-sub { display: block; font: 600 12px/1 var(--body); letter-spacing: .04em; color: var(--ink-soft); margin-top: 4px; }

.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; }
.nav a:hover { background: rgba(31, 122, 140, .1); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--teal-deep); box-shadow: inset 0 -3px 0 var(--gold); border-radius: 0; }
.header-cta { margin-left: 8px; }

.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; color: var(--ink); border-radius: 8px; }
.menu-btn svg { width: 26px; height: 26px; }

/* ---------- Home intro ---------- */
.intro { background: var(--teal); color: var(--white); padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.intro .wrap { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.intro h1 { color: var(--white); text-shadow: 0 2px 0 rgba(0, 0, 0, .12); }
.intro .lead { color: #E6F4F6; margin: 18px 0 28px; font-size: 20px; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.promises { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; color: #E6F4F6; font-weight: 600; font-size: 15px; }
.promises li { display: flex; align-items: center; gap: 8px; }
.promises svg { width: 20px; height: 20px; color: var(--gold); flex: none; }

/* The artwork is presented like a printed postcard: rounded, with a gold offset. */
.postcard { border-radius: var(--radius-art); box-shadow: 10px 10px 0 var(--gold); overflow: hidden; background: var(--mist); }
.postcard img { width: 100%; height: 100%; object-fit: cover; }
.intro .postcard { transform: rotate(1.2deg); }

/* ---------- Sub-page heading ---------- */
.page-head { background: var(--teal); color: var(--white); padding: clamp(36px, 6vw, 64px) 0; }
.page-head .wrap { display: grid; grid-template-columns: 1fr minmax(260px, 460px); gap: 48px; align-items: center; }
.page-head h1 { color: var(--white); }
.page-head .lead { color: #E6F4F6; margin: 14px 0 0; }
.page-head .postcard { aspect-ratio: 1584 / 672; }
.page-head-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.crumbs { font-size: 14px; margin: 0 0 10px; color: #CFE8EC; }
.crumbs a { color: #FFFFFF; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-mist { background: var(--mist); }
.section-head { max-width: 60ch; margin-bottom: 36px; }
.section-head p { color: var(--ink-soft); margin-top: 10px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* How it works: a real sequence, so it is numbered, joined by the delivery route. */
.route { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; counter-reset: step; }
.route::before {
  content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 0;
  border-top: 3px dashed rgba(31, 122, 140, .45);
}
.route li { position: relative; counter-increment: step; }
.route li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 56px; height: 56px; margin-bottom: 18px; position: relative;
  border-radius: 50%; background: var(--gold); color: var(--ink);
  font: 400 26px/1 var(--display); box-shadow: 0 0 0 6px var(--paper);
}
.section-mist .route li::before { box-shadow: 0 0 0 6px var(--mist); }
.route p { color: var(--ink-soft); margin: 0; font-size: 16px; }

/* Price teaser on the home page */
.teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.price-facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.price-facts li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.price-facts b { font-size: 18px; white-space: nowrap; }

/* Service area */
.area { display: grid; grid-template-columns: 1fr 380px; gap: 56px; align-items: center; }
.towns { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; }
.towns a { display: flex; align-items: center; gap: 10px; padding: 10px 0; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.towns a:hover { color: var(--rust); }
.towns svg { width: 18px; height: 18px; color: var(--rust); flex: none; }
.area .postcard { aspect-ratio: 896 / 1200; max-width: 380px; }
.small-print { font-size: 15px; color: var(--ink-soft); }

/* Closing call to action */
.closing { background: var(--ink); color: var(--white); text-align: center; padding: clamp(56px, 8vw, 88px) 0; }
.closing h2 { color: var(--gold); }
.closing p { color: #CFDDE1; margin: 12px auto 26px; max-width: 52ch; }

/* ---------- Ordering ---------- */
.steps-detail { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; max-width: 760px; }
.steps-detail li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.steps-detail li::before {
  content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold); font: 400 20px/1 var(--display); color: var(--ink);
}
.steps-detail p { margin: 0; color: var(--ink-soft); }
.callout { background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: var(--radius-ui); padding: 18px 20px; margin: 28px 0 0; max-width: 760px; }
.callout p { margin: 0; }

/* ---------- Order form ---------- */
.form-head { background: var(--teal); color: var(--white); padding: 22px 0; }
.form-head .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; }
.form-head h1 { font-size: clamp(26px, 3vw, 34px); color: var(--white); }
.form-head p { margin: 0; color: #E6F4F6; font-size: 15px; }
.embed { display: block; width: 100%; border: 0; background: var(--white); }
.embed-full { height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); }

/* ---------- Pricing ---------- */
.calc { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.bag-picker { border: 0; padding: 0; margin: 0 0 8px; }
.bag-picker legend { font-weight: 700; margin-bottom: 12px; }
.bags { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bag { position: relative; }
.bag input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.bag label {
  display: block; height: 100%; padding: 16px 14px; border-radius: var(--radius-ui); cursor: pointer;
  background: var(--white); border: 2px solid var(--line); text-align: center;
  transition: border-color .15s ease, background-color .15s ease;
}
.bag label b { display: block; font-size: 16px; line-height: 1.3; }
.bag label small { display: block; color: var(--ink-soft); font-size: 14px; }
.bag input:checked + label { border-color: var(--teal); background: #F2FAFB; box-shadow: inset 0 0 0 1px var(--teal); }
.bag input:focus-visible + label { outline: 3px solid var(--gold); outline-offset: 2px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.compare > div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-ui); padding: 18px; }
.compare h3 { font-size: 17px; }
.compare ul { list-style: none; margin: 8px 0 12px; padding: 0; font-size: 15px; color: var(--ink-soft); }
.compare li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.compare .total { font-weight: 700; color: var(--ink); border-top: 1px solid var(--line); padding-top: 10px; margin: 0; }
.compare .ours { border-color: var(--teal); }
.quote {
  background: var(--ink); color: var(--white); border-radius: var(--radius-art); padding: 28px;
  position: sticky; top: calc(var(--header-h) + 20px);
}
.quote h3 { color: #CFDDE1; font-weight: 600; font-size: 16px; }
.quote .big { font-family: var(--display); font-size: clamp(44px, 6vw, 64px); line-height: 1; color: var(--gold); margin: 6px 0 4px; }
.quote p { color: #CFDDE1; font-size: 15px; }
.quote .btn { margin-top: 8px; width: 100%; }

.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 820px; }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-ui); padding: 24px; position: relative; }
.plan.featured { border: 2px solid var(--teal); }
.plan .badge { position: absolute; top: -13px; left: 20px; background: var(--teal); color: var(--white); font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.plan.rush .badge { background: var(--rust); }
.plan .rate { font-family: var(--display); font-size: 40px; line-height: 1.1; margin: 8px 0; }
.plan .rate span { font: 600 17px var(--body); color: var(--ink-soft); }
.plan p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.price-table { width: 100%; max-width: 820px; border-collapse: collapse; background: var(--white); border-radius: var(--radius-ui); overflow: hidden; border: 1px solid var(--line); }
.price-table th, .price-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.price-table th { background: #FBF3E3; font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.price-table td.num, .price-table th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-table tr:last-child td { border-bottom: 0; }
.price-status { color: var(--ink-soft); font-size: 14px; margin-top: 10px; min-height: 1.4em; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font-weight: 700; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border: solid var(--rust); border-width: 0 3px 3px 0; transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq .answer { padding: 0 0 20px; color: var(--ink-soft); }
.faq .answer ul { margin: 0 0 12px; padding-left: 22px; }
.faq .answer li { margin-bottom: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #CFDDE1; padding: 56px 0 28px; font-size: 15px; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h2 { font-family: var(--body); font-size: 15px; font-weight: 700; color: var(--white); margin: 0 0 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-brand .brand-name { color: var(--gold); }
.footer-brand p { margin-top: 14px; max-width: 34ch; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 14px; }

/* ---------- Not found ---------- */
.notfound { text-align: center; padding: 120px 0; }
.notfound p { margin-top: 12px; }

/* ---------- Tablet ---------- */
@media (max-width: 980px) {
  .route { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .route::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .calc { grid-template-columns: 1fr; }
  .quote { position: static; }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .brand img { width: 40px; height: 40px; }
  .brand-name { font-size: 21px; }
  .menu-btn { display: inline-grid; place-items: center; }
  .header-cta { display: none; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
    box-shadow: 0 12px 20px rgba(20, 48, 58, .12);
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--gold); padding-left: 12px; }
  .nav .nav-book { margin-top: 16px; border: 0; }
  .nav .nav-book .btn { width: 100%; }
  .intro .wrap, .page-head .wrap, .teaser, .area { grid-template-columns: 1fr; }
  .intro .postcard { transform: none; order: -1; }
  .page-head .postcard { display: none; }
  .route { grid-template-columns: 1fr; }
  .bags { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .area .postcard { max-width: 320px; }
  .intro-actions .btn { flex: 1 1 auto; }
  .price-table th, .price-table td { padding: 12px; }
}

@media (min-width: 761px) { .nav .nav-book { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .bag label, .faq summary::after { transition: none; }
  .intro .postcard { transform: none; }
}

/* Small spacing helpers (kept here so pages need no inline styles under the CSP). */
.calc-lead { margin-top: 10px; }
.area-note { margin-top: 18px; }
.area-sub { margin-top: 32px; }
.nearby { margin-top: 12px; }
.on-dark-link { color: var(--white); }
.on-dark-link:hover { color: var(--gold); }
