/* Judy's Home Care (placeholder name): shared tokens, fonts and parts.
   Every look links this first, then its own sheet. Colors come from the brand card in funnel-context.json. */

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/fraunces.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 400 700; font-display: swap; src: url("../fonts/fraunces-italic.woff2") format("woff2"); }
@font-face { font-family: "Wix Madefor Text"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/wix-madefor-text.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/caveat.woff2") format("woff2"); }

:root {
  --linen: #F8F3EA;
  --oat: #EDE3D1;
  --wheat: #E8D6A8;
  --card: #FFFDF8;
  --sage: #A9BFA4;
  --sage-pale: #E3EBDD;
  --evergreen: #2F5D46;
  --forest: #1F4433;
  --ink: #1F2A24;
  --ink-2: #4A5650;
  --line: #D9CFBD;
  --cta: var(--evergreen);
  --cta-ink: #FFFDF7;
  --cta-hover: var(--forest);
  --fd: "Fraunces", Georgia, "Times New Roman", serif;
  --fb: "Wix Madefor Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fh: "Caveat", "Bradley Hand", cursive;
  --radius: 14px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --bar-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--linen); color: var(--ink); font-family: var(--fb); font-size: 1.125rem; line-height: 1.6; }
@media (min-width: 900px) { body { font-size: 1.1875rem; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--evergreen); text-underline-offset: 3px; }
a:hover { color: var(--forest); }
:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--fd); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 0.5em; color: var(--ink); }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons: one action colour, used only for actions. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; min-height: 54px; padding: 0.75em 1.4em; border-radius: 999px; font: 600 1.0625rem/1.2 var(--fb); text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: background-color .15s ease, color .15s ease, border-color .15s ease; text-align: center; }
.btn-primary { background: var(--cta); color: var(--cta-ink); }
.btn-primary:hover { background: var(--cta-hover); color: var(--cta-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--linen); }
.btn svg { width: 20px; height: 20px; flex: none; }
.under-btn { font-size: 0.95rem; color: var(--ink-2); margin-top: 0.6rem; }

/* Header */
.site-header { padding: 14px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { font-family: var(--fd); font-weight: 600; font-size: 1.35rem; color: var(--ink); text-decoration: none; line-height: 1.1; }
.wordmark span { color: var(--evergreen); }
.wordmark small { display: block; font-family: var(--fb); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); margin-top: 2px; }
.header-call { display: none; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.header-call small { display: block; font-weight: 500; font-size: 0.8rem; color: var(--ink-2); }
@media (min-width: 760px) { .header-call { display: block; text-align: right; } }

/* Owner-only marks: facts Judy still has to give. Visible on purpose in the preview. */
.need { display: inline-block; background: #FFF1C9; color: #5B4300; border: 1px dashed #B8902A; border-radius: 6px; padding: 0 6px; font: 600 0.82em/1.5 var(--fb); }
.photo-slot { position: relative; display: grid; place-items: center; text-align: center; background: repeating-linear-gradient(135deg, var(--oat) 0 14px, #E6DAC4 14px 28px); color: var(--ink-2); border-radius: var(--radius); font: 600 0.95rem/1.4 var(--fb); padding: 16px; }
.photo-slot b { display: block; font-family: var(--fd); font-size: 1.15rem; color: var(--ink); margin-bottom: 4px; }

/* The phone bar: call and book, pinned, two segments only. */
.phone-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: 1fr 1.25fr; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(248, 243, 234, 0.97); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(31, 42, 36, 0.08); }
.phone-bar .btn { min-height: 52px; padding: 0.6em 0.8em; font-size: 1rem; }
body.has-bar { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .phone-bar { display: none; } body.has-bar { padding-bottom: 0; } }

/* Preview ribbon: tells anyone opening the preview what they are looking at. */
.preview-ribbon { background: var(--ink); color: var(--linen); font-size: 0.9rem; padding: 8px 0; }
.preview-ribbon .wrap { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; justify-content: space-between; }
.preview-ribbon a { color: var(--wheat); font-weight: 600; }

/* Services and prices: shared by the looks; each look adjusts the frame. */
.kicker { font: 700 0.78rem/1.3 var(--fb); letter-spacing: 0.1em; text-transform: uppercase; color: var(--evergreen); margin: 0 0 8px; }
.svc { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .svc { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .svc { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.svc li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 18px; }
.svc h3 { font-size: 1.18rem; margin: 0 0 0.3em; }
.svc p { margin: 0; color: var(--ink-2); font-size: 1rem; line-height: 1.5; }

.prices { display: grid; gap: 18px; margin-top: 26px; align-items: start; }
@media (min-width: 900px) { .prices { grid-template-columns: 1.15fr 0.85fr; gap: 28px; } }
.price-card, .area-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 4vw, 28px); }
.price-card { border: 2px solid var(--evergreen); }
.price-main { font-family: var(--fd); font-weight: 600; font-size: clamp(2.1rem, 6vw, 2.8rem); line-height: 1.05; margin: 0; }
.price-main small { display: block; font: 600 1.02rem/1.4 var(--fb); color: var(--ink-2); margin-top: 8px; }
.founding { background: var(--sage-pale); border-radius: 10px; padding: 12px 14px; font-size: 1rem; line-height: 1.5; margin: 16px 0 14px; }
.extras { list-style: none; margin: 0; padding: 0; }
.extras li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-top: 1px dotted var(--line); font-size: 1rem; line-height: 1.4; }
.extras li span:last-child { font-weight: 700; text-align: right; flex: none; max-width: 50%; }
.price-note { font-size: 0.92rem; color: var(--ink-2); margin: 12px 0 0; }
.area-card h3 { font-size: 1.15rem; margin: 18px 0 4px; }
.area-card .kicker + h3 { margin-top: 4px; }
.area-card p:not(.kicker) { font-size: 1rem; color: var(--ink-2); margin: 0; }
@media (max-width: 380px) { .extras li { flex-direction: column; gap: 2px; } .extras li span:last-child { text-align: left; max-width: none; } }

/* Judy's real photos, in the spots the striped placeholders held. */
.judy-photo { object-fit: cover; padding: 0; background: var(--oat); }

/* A phone number is read as one thing: never split it across lines. */
a[href^="tel:"] { white-space: nowrap; }

/* Where Judy visits: the map in the area card (drawn from real town coordinates). */
.area-map { margin: 4px 0 14px; }
.area-map svg { width: 100%; height: auto; display: block; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.area-map figcaption { font-size: 0.82rem; color: var(--ink-2); margin-top: 6px; }
.area-card h3.ring::before { content: ""; display: inline-block; width: 13px; height: 13px; border-radius: 50%; margin-right: 9px; vertical-align: 1px; background: var(--evergreen); }
.area-card h3.ring.far::before { background: var(--card); border: 2px solid var(--evergreen); }
