/* Junk In Her Trunk — shared styles */

:root {
  --bg: #faf8f4;
  --card: #ffffff;
  --ink: #2a2630;
  --muted: #6f6878;
  --border: #e2dce6;
  --plum: #8a5a96;      /* brand purple, carried over from the current site */
  --plum-dark: #6d4577;
  --plum-tint: #f3edf5;
  --gold: #c8a95e;
  --max: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 14px;
}
h1 { font-size: 40px; }
h2 { font-size: 30px; }
h3 { font-size: 21px; }
p { margin: 0 0 16px; }
a { color: var(--plum); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- Banner + header ---------- */
.promo {
  background: var(--plum);
  color: #fff;
  text-align: center;
  font-size: 14px;
  padding: 9px 16px;
}
.promo a { color: #fff; text-decoration: underline; }

header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 20px;
  white-space: nowrap;
}
.brand img { width: 36px; height: auto; }

nav ul {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

/* Desktop nav only: each item gets its own centered column, so a
   two-word label that wraps onto two lines (e.g. "Paint Parties")
   is centered both horizontally and vertically instead of hugging
   the left edge of its shrunk flex column. Left as-is on mobile,
   where nav items are full-width rows in a dropdown. */
@media (min-width: 901px) {
  nav li {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
}
nav a:hover { color: var(--ink); }
nav a.active {
  color: var(--ink);
  border-bottom-color: var(--plum);
}

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 18px;
  cursor: pointer;
  color: var(--ink);
  line-height: 1;
}

@media (max-width: 900px) {
  .menu-btn { display: block; }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 8px 22px 16px;
  }
  nav.open { display: block; }
  nav ul { flex-direction: column; gap: 0; }
  nav a {
    display: block;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
  }
  nav a.active { border-bottom-color: var(--border); font-weight: 600; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  background: var(--plum);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--plum-dark); }
.btn.ghost {
  background: none;
  border: 1px solid var(--plum);
  color: var(--plum);
}
.btn.ghost:hover { background: var(--plum-tint); }

/* ---------- Hero ---------- */
.hero {
  padding: 68px 0 56px;
  text-align: center;
}
.hero h1 { max-width: 760px; margin: 0 auto 18px; }
.hero .lede {
  font-size: 19px;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 28px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Hero with a photo behind it. The image is a real <img> rather than a CSS
   background so the browser can prioritise it and so it stays in the accessibility
   tree as decorative (empty alt) rather than invisible to tooling. */
.hero.has-bg {
  position: relative;
  padding: 104px 0 92px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* Scrim so white text stays legible over any photo - a bright kitchen shot will
   otherwise wash out the headline. Darker at the top where the text sits. */
.hero.has-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,22,32,0.72) 0%, rgba(28,22,32,0.58) 55%, rgba(28,22,32,0.66) 100%);
  z-index: 1;
}
.hero.has-bg .wrap { position: relative; z-index: 2; }
.hero.has-bg h1 { color: #fff; }
.hero.has-bg .lede { color: #ece7f0; }

.btn.light {
  background: rgba(255,255,255,0.94);
  color: var(--plum-dark);
}
.btn.light:hover { background: #fff; }

/* ---------- Our story, with portrait ---------- */
.story {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 34px;
  align-items: start;
}
.portrait {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: block;
}
@media (max-width: 760px) {
  .story { grid-template-columns: 1fr; gap: 22px; }
  .portrait { max-width: 240px; margin: 0 auto; }
}

/* ---------- Sections ---------- */
section { padding: 52px 0; }
section.tinted { background: var(--plum-tint); }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head p { color: var(--muted); max-width: 620px; margin: 0 auto; }

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px;
}
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }

.stat {
  text-align: center;
  padding: 8px;
}
.stat .num {
  font-family: Georgia, serif;
  font-size: 36px;
  color: var(--plum);
  display: block;
  line-height: 1.1;
}
.stat .label { font-size: 14px; color: var(--muted); }

/* ---------- Long copy blocks ---------- */
.prose { max-width: 760px; }
.prose p:last-child { margin-bottom: 0; }
details.more summary {
  cursor: pointer;
  color: var(--plum);
  font-size: 15px;
  margin-top: 6px;
}
details.more[open] summary { margin-bottom: 12px; }

/* ---------- Team ---------- */
.people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 20px;
}
.person { text-align: center; }
.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 12px;
  background: var(--plum-tint);
  color: var(--plum);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-size: 32px;
  border: 1px solid var(--border);
}
.person h3 { font-size: 18px; margin-bottom: 4px; }
.person p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- Reviews ---------- */
.quote {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  padding: 22px 24px;
}
.quote p { font-size: 16px; }
.quote cite {
  font-style: normal;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Vendors ---------- */
.vendor {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px;
}
.vendor h3 { font-size: 18px; margin-bottom: 6px; }
.vendor p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- Gallery strip (home preview + gallery page) ---------- */
.strip-wrap { position: relative; }
.strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 0 22px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.strip::-webkit-scrollbar { height: 8px; }
.strip::-webkit-scrollbar-track { background: transparent; }
.strip::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.shot {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 300px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  cursor: pointer;
}
.shot img {
  display: block;
  width: 100%;
  height: 225px;
  object-fit: cover;
  background: var(--plum-tint);
}
.nav-arrow {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.95);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.nav-arrow:disabled { opacity: 0; pointer-events: none; }
.nav-arrow.prev { left: -6px; }
.nav-arrow.next { right: -6px; }

@media (max-width: 640px) {
  .shot { width: 82vw; }
  .shot img { height: 62vw; }
}
@media (hover: none) and (pointer: coarse) {
  .nav-arrow { display: none; }
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,22,30,0.92);
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 50;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }
.lightbox img.loading { filter: blur(6px); transition: filter .25s ease; }
.lightbox .close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Quote form ---------- */
.quickfill {
  max-width: 620px;
  margin-bottom: 22px;
}
.quickfill-label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}
.quickfill-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
/* #gBtnHost renders Google's own button via their JS SDK - no custom styling
   needed or reliably possible, it draws its own markup into that div. */
.qf-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
}
.qf-btn.fb { color: #1877F2; border-color: #cfe0fb; }
.qf-btn.fb:hover { background: #f3f8ff; }

.opt {
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
}

/* gmp-place-autocomplete renders its own internal input via shadow DOM - only
   sizing/spacing is reliably ours to set, not border/radius styling to match
   the plain inputs exactly. */
gmp-place-autocomplete {
  display: block;
  width: 100%;
  margin-top: 6px;
}
#addrManual { margin-top: 6px; }

.qf-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  margin: 4px 0 4px;
}
.qf-divider::before,
.qf-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.quote-form {
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.quote-form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.quote-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.quote-form .row.row-3 {
  grid-template-columns: 2fr 0.8fr 1fr;
}
.quote-form input,
.quote-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: var(--card);
}
/* The rule above sets display:block on every input, which silently defeats the
   browser's default [hidden]{display:none} styling - author CSS always wins
   over that built-in rule regardless of source order. Without this, the
   addrManual fallback field stayed visibly on-screen even after JS correctly
   set its hidden property, since setting a hidden ATTRIBUTE never removes it
   from the DOM - only CSS decides whether it renders. */
.quote-form input[hidden] { display: none; }
.quote-form input:focus,
.quote-form textarea:focus {
  outline: 2px solid var(--plum);
  outline-offset: -1px;
  border-color: var(--plum);
}
.quote-form textarea { resize: vertical; }
.quote-form button { align-self: flex-start; }

/* Honeypot: off-screen rather than display:none, since some bots skip
   hidden inputs but happily fill positioned ones. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-msg {
  margin: 0;
  font-size: 15px;
  min-height: 22px;
}
.form-msg.ok { color: var(--plum-dark); }
.form-msg.err { color: #b5453a; }

@media (max-width: 560px) {
  .quote-form .row { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
footer {
  background: #2a2630;
  color: #cfc7d6;
  padding: 44px 0 30px;
  margin-top: 20px;
  font-size: 15px;
}
footer a { color: #e4d9ea; }
.foot-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-bottom: 28px;
}
.foot-cols h3 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 10px;
}
.foot-cols ul { list-style: none; margin: 0; padding: 0; }
.foot-cols li { margin-bottom: 7px; }
.foot-cols a { text-decoration: none; }
.foot-cols a:hover { text-decoration: underline; }
.foot-bottom {
  border-top: 1px solid #413a4a;
  padding-top: 18px;
  font-size: 13px;
  color: #9c93a6;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.mermaid-footer {
  display: block;
  width: 84px;
  height: auto;
  margin: 0 auto 22px;
}

@media (max-width: 640px) {
  h1 { font-size: 31px; }
  h2 { font-size: 25px; }
  body { font-size: 16px; }
  .hero { padding: 44px 0 38px; }
  .hero.has-bg { padding: 70px 0 60px; }
  section { padding: 38px 0; }
}

