/* Front Porch Sites v2: per-business palette comes from :root vars injected in each page. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--body), system-ui, sans-serif; -webkit-font-smoothing: antialiased; padding-bottom: 84px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--head), Georgia, serif; line-height: 1.08; letter-spacing: -.015em; margin: 0 0 .45em; color: var(--ink); }
h2 { font-size: clamp(1.9rem, 4.6vw, 2.75rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--brand); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.kicker { display: inline-block; font: 800 .78rem/1 var(--body), sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.muted { color: var(--muted); }
.ph { color: #8e8e8e !important; font-style: italic; }

/* honesty banner */
.preview-banner { background: #fff4c7; color: #4d3d00; border-bottom: 1px solid #ecd889; font-size: .82rem; line-height: 1.45; text-align: center; padding: 8px 16px; }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px) saturate(1.4); -webkit-backdrop-filter: blur(12px) saturate(1.4); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brandmark { display: flex; align-items: center; gap: 11px; min-width: 0; flex: 1; text-decoration: none; color: var(--ink); }
.monogram { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: #fff; font: 800 .95rem/1 var(--head), serif; letter-spacing: .02em; box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); }
.brandmark b { font: 700 1.05rem/1.2 var(--head), serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav { display: none; gap: 26px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--brand); }
.top .btn { display: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 15px 26px; border-radius: 999px; font: 700 1rem/1 var(--body), sans-serif; text-decoration: none; border: 2px solid transparent; transition: transform .12s ease, background .15s ease, box-shadow .15s ease; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-main { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn-main:hover { background: var(--brand-dark); }
.btn-line { border-color: color-mix(in srgb, var(--brand) 35%, transparent); color: var(--brand); background: #fff; }
.btn-line:hover { border-color: var(--brand); }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-ghost-light { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); }

/* hero */
.hero { position: relative; overflow: hidden; padding: 40px 0 56px; background:
  radial-gradient(900px 520px at 100% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 62%),
  linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.hero-in { display: grid; gap: 34px; align-items: center; }
.hero h1 { font-size: clamp(2.35rem, 8.4vw, 4.1rem); margin-bottom: .35em; }
.hero .name { font: 800 .95rem/1.3 var(--body), sans-serif; color: var(--brand); margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.hero .name::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--accent); }
.lede { font-size: 1.18rem; color: var(--muted); max-width: 36ch; margin-bottom: 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.frame { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3.2; box-shadow: 0 30px 60px -24px rgba(20,20,30,.45); background: var(--soft); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame.art { display: grid; place-items: center; padding: 28px; background: radial-gradient(circle at 50% 40%, #fff, var(--soft)); }
.frame.art svg { width: 100%; max-width: 420px; height: auto; }
.float-card { position: absolute; left: 16px; bottom: 16px; background: rgba(255,255,255,.94); backdrop-filter: blur(6px); border-radius: 16px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; box-shadow: 0 12px 28px -10px rgba(0,0,0,.35); }
.float-card .score { font: 800 1.6rem/1 var(--head), serif; color: var(--ink); }
.float-card small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.3; }
.stars { color: #f2a91d; letter-spacing: 1.5px; font-size: .95rem; }

/* trust strip */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.trust-in { display: grid; grid-template-columns: 1fr 1fr; }
.trust-item { display: flex; align-items: center; gap: 12px; padding: 18px 8px; font-size: .92rem; color: var(--muted); }
.trust-item b { display: block; color: var(--ink); font-size: 1rem; }
.trust-item .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--soft); color: var(--brand); }
.trust-item .ic svg { width: 20px; height: 20px; }

/* sections */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
.head { max-width: 640px; margin-bottom: 34px; }

/* about */
.about { display: grid; gap: 34px; align-items: center; }
.quote { position: relative; margin: 0; padding: 30px 30px 26px; background: #fff; border-radius: 24px; border: 1px solid var(--line); box-shadow: 0 20px 40px -28px rgba(0,0,0,.35); }
.quote::before { content: "\201C"; position: absolute; top: -26px; left: 22px; font: 700 5.5rem/1 var(--head), serif; color: var(--accent); }
.quote p { font: 600 clamp(1.3rem, 3.4vw, 1.7rem)/1.35 var(--head), serif; color: var(--ink); margin: 0 0 14px; }
.quote cite { font-style: normal; color: var(--muted); font-size: .88rem; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.checks li::before { content: ""; flex: none; margin-top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat; }

.about-photo { position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 30px 60px -28px rgba(0,0,0,.45); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo .tag { position: absolute; left: 16px; bottom: 16px; right: 16px; background: rgba(255,255,255,.94); border-radius: 16px; padding: 14px 18px; font: 700 1.05rem/1.3 var(--head), serif; color: var(--ink); }
.about-photo .tag small { display: block; font: 500 .8rem/1.3 var(--body), sans-serif; color: var(--muted); margin-top: 3px; }

/* illustrated scenes (used when a business has no photos) */
.s-brand { fill: var(--brand); } .s-dark { fill: var(--brand-dark); } .s-accent { fill: var(--accent); }
.s-soft { fill: var(--soft); } .s-white { fill: #fff; } .s-bg { fill: var(--bg-alt); }
.s-line { fill: none; stroke: var(--brand-dark); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.s-line-w { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; }

/* services */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px; transition: transform .18s ease, box-shadow .18s ease; overflow: hidden; }
.card::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: linear-gradient(90deg, var(--brand), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -26px rgba(0,0,0,.4); }
.card:hover::after { transform: scaleX(1); }
.card .ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--soft); color: var(--brand); margin-bottom: 18px; }
.card .ic svg { width: 28px; height: 28px; }
.card h3 { margin: 0; }
.card.is-ph { background: transparent; border: 2px dashed rgba(0,0,0,.14); }
.card.is-ph h3 { color: #8e8e8e; font-style: italic; }
.groups { display: grid; gap: 18px; }
.group { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.group-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.group-head .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--brand); color: #fff; }
.group-head .ic svg { width: 26px; height: 26px; }
.group-head h3 { font-size: 1.5rem; margin: 0; }
.group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.group li { padding: 11px 0; border-bottom: 1px dashed var(--line); font-weight: 600; display: flex; gap: 10px; align-items: center; }
.group li:last-child { border-bottom: 0; }
.group li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.group.g2 .group-head .ic { background: var(--accent); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gallery button { all: unset; cursor: zoom-in; position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 1; background: var(--soft); }
.gallery button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery button:hover img { transform: scale(1.05); }
.gallery.few { grid-template-columns: 1fr; }
.credit { font-size: .82rem; color: var(--muted); margin-top: 14px; }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(94vw, 1100px); max-height: 92vh; }
dialog.lightbox::backdrop { background: rgba(10,10,14,.86); }
dialog.lightbox img { max-height: 86vh; width: auto; margin: 0 auto; border-radius: 14px; }
dialog.lightbox form { position: fixed; top: 14px; right: 14px; }
dialog.lightbox .x { all: unset; cursor: pointer; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; display: grid; place-items: center; font-size: 1.6rem; }

/* area + hours */
.area { display: grid; gap: 20px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 26px; }
.map { border-radius: 24px; overflow: hidden; border: 1px solid var(--line); min-height: 280px; background: var(--soft); }
.map iframe { width: 100%; height: 100%; min-height: 280px; border: 0; display: block; filter: saturate(.85); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 22px; }
.chip { padding: 8px 14px; border-radius: 999px; background: var(--soft); color: var(--brand-dark); font-weight: 700; font-size: .92rem; }
.chip.ph { background: transparent; border: 1.5px dashed rgba(0,0,0,.18); }
.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.hours li:last-child { border-bottom: 0; }
.hours li span:first-child { font-weight: 700; }
.hours li.today { color: var(--brand); }

/* reviews */
.rating-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.rating { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px 22px; }
.rating .score { font: 800 2.4rem/1 var(--head), serif; }
.rating small { display: block; color: var(--muted); }
.reviews { display: grid; gap: 14px; }
.review { margin: 0; padding: 24px; border-radius: 20px; border: 2px dashed rgba(0,0,0,.13); background: rgba(255,255,255,.55); }
.review .stars { color: #dcdcdc; }

/* cta */
.cta { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; border-radius: 30px; padding: 44px 28px; display: grid; gap: 22px; }
.cta::after { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%); }
.cta h2 { color: #fff; margin: 0; position: relative; z-index: 1; }
.cta p { color: rgba(255,255,255,.85); margin: 0; position: relative; z-index: 1; }
.cta .actions { position: relative; z-index: 1; }

.footer { padding: 40px 0 30px; text-align: center; color: var(--muted); font-size: .9rem; }
.footer .fn { font: 700 1.15rem/1.3 var(--head), serif; color: var(--ink); margin-bottom: 4px; }
.footer p { margin: 2px 0; }
.footer .fine { font-size: .78rem; margin-top: 14px; opacity: .85; }

.sticky { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: flex; gap: 8px; }
.sticky .btn { flex: 1; padding: 15px 10px; box-shadow: 0 14px 30px -10px rgba(0,0,0,.35); }

/* reveal */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

@media (min-width: 640px) {
  .trust-in { grid-template-columns: repeat(4, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery.few { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .sticky { display: none; }
  .nav { display: flex; }
  .brandmark { flex: 0 1 auto; margin-right: auto; }
  .top .btn { display: inline-flex; padding: 11px 20px; }
  .hero { padding: 72px 0 96px; }
  .hero-in { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .section { padding: 100px 0; }
  .about { grid-template-columns: 1.1fr 1fr; gap: 56px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .groups { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .gallery.g4 { grid-template-columns: repeat(4, 1fr); }
  .gallery.few { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
  .area { grid-template-columns: 1.3fr 1fr; }
  .cta { grid-template-columns: 1.3fr auto; align-items: center; padding: 56px 56px; }
}
