/* Shared layout + components for every sample site. Each site sets its own look with the
   tokens below in a <style> block (colors, fonts, radius), so the sites share structure but
   don't look alike. */
:root {
  --bg: #ffffff;
  --surface: #f6f7f9;
  --card: #ffffff;
  --ink: #16181d;
  --muted: #5b6270;
  --line: rgba(0, 0, 0, .1);
  --brand: #1f4fd8;
  --brand-ink: #ffffff;
  --accent: #1f4fd8;
  --hero-ink: #ffffff;
  --font-head: system-ui, sans-serif;
  --font-body: system-ui, sans-serif;
  --head-weight: 700;
  --head-case: none;
  --head-track: -.01em;
  --radius: 12px;
  --btn-radius: 999px;
  --max: 1160px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  text-transform: var(--head-case);
  letter-spacing: var(--head-track);
  line-height: 1.12;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-block;
  font: 600 .78rem/1 var(--font-body);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px;
  border: 2px solid var(--brand); border-radius: var(--btn-radius);
  background: var(--brand); color: var(--brand-ink);
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, filter .15s ease, background .15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.97); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: rgba(127, 127, 127, .12); filter: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.logo {
  display: flex; align-items: center; gap: 10px;
  font: var(--head-weight) 1.3rem/1 var(--font-head);
  text-transform: var(--head-case); letter-spacing: var(--head-track);
  text-decoration: none;
}
.logo-mark {
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: calc(var(--radius) * .7);
  background: var(--brand); color: var(--brand-ink);
  font-size: 1rem;
}
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: .97rem; color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-links .btn { color: var(--brand-ink); min-height: 42px; padding: 0 20px; }
.menu-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: none; color: inherit; cursor: pointer;
  border-radius: 10px;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 22px; height: 2px; margin: auto; background: currentColor; position: relative;
  transition: transform .2s ease, background .2s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }
.nav-open .menu-toggle span { background: transparent; }
.nav-open .menu-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .menu-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .12);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { display: block; padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child a { border: 0; margin-top: 12px; }
}

/* Hero: photo with a dark wash */
.hero {
  position: relative; display: flex; align-items: flex-end;
  min-height: min(88vh, 760px); padding: 120px 0 72px;
  color: var(--hero-ink); background: #111 center / cover no-repeat;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, .35) 40%, rgba(0, 0, 0, .78) 100%);
}
.hero.center { align-items: center; text-align: center; }
.hero.center .btn-row { justify-content: center; }
.hero-copy > h1 { max-width: 760px; }
.hero-copy > p { font-size: clamp(1.05rem, 2vw, 1.25rem); opacity: .92; max-width: 580px; }
.hero.center .hero-copy > * { margin-inline: auto; }
.hero .eyebrow { color: inherit; opacity: .85; }
.hero .btn-ghost { color: #fff; }

/* Hero: text beside a photo */
.hero-split { padding: clamp(48px, 7vw, 96px) 0; }
.hero-split .grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-split .photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 4.4; box-shadow: var(--shadow); }
.hero-split .photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-split p.lead { font-size: 1.18rem; color: var(--muted); max-width: 520px; }
@media (max-width: 860px) {
  .hero-split .grid { grid-template-columns: 1fr; }
  .hero-split .photo { aspect-ratio: 4 / 3; order: -1; }
}

/* Quick facts strip under the hero */
.facts { border-bottom: 1px solid var(--line); background: var(--bg); }
.facts .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 22px 20px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact strong { display: block; font: var(--head-weight) 1.6rem/1.1 var(--font-head); color: var(--ink); }
.fact span { color: var(--muted); font-size: .92rem; }
@media (max-width: 720px) {
  .facts .container { grid-template-columns: 1fr 1fr; }
  .fact { padding: 18px 0 18px 16px; border-left: 0; }
  .fact:nth-child(odd) { padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Grids & cards */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; }
.card .icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px;
  border-radius: calc(var(--radius) * .75);
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
}
.card .icon svg { width: 24px; height: 24px; }
.photo-card { padding: 0; overflow: hidden; }
.photo-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.photo-card .body { padding: 22px 24px 26px; }
.price-tag { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--accent); }

/* Text + photo feature row */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.feature.flip .feature-photo { order: 2; }
.feature-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 5 / 4; }
.feature-photo img { width: 100%; height: 100%; object-fit: cover; }
.checklist { list-style: none; padding: 0; margin: 20px 0 28px; }
.checklist li { position: relative; padding: 8px 0 8px 34px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 11px; width: 22px; height: 22px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, transparent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip .feature-photo { order: 0; }
}

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px;
}
.plan.featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan .badge {
  position: absolute; top: -13px; left: 28px; padding: 5px 12px; border-radius: 999px;
  background: var(--brand); color: var(--brand-ink); font: 700 .72rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase;
}
.plan h3 { margin-bottom: 6px; }
.plan .amount { font: var(--head-weight) 2.8rem/1 var(--font-head); margin: 18px 0 4px; }
.plan .amount small { font: 400 1rem var(--font-body); color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 20px 0 28px; flex: 1; }
.plan li { padding: 9px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .97rem; }
.plan .btn { width: 100%; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

.billing-toggle {
  display: inline-flex; padding: 4px; margin-bottom: 36px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
}
.billing-toggle button {
  min-height: 40px; padding: 0 20px; border: 0; border-radius: 999px; background: none; color: var(--muted);
  font: 600 .95rem var(--font-body); cursor: pointer; transition: background .2s, color .2s;
}
.billing-toggle button.active { background: var(--brand); color: var(--brand-ink); }

/* Price list (menus, services) */
.price-list { list-style: none; padding: 0; margin: 0; }
.price-list li { display: flex; align-items: baseline; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.price-list .name { font-weight: 600; }
.price-list .desc { display: block; font-weight: 400; color: var(--muted); font-size: .94rem; margin-top: 2px; }
.price-list .dots { flex: 1; border-bottom: 1px dotted color-mix(in srgb, var(--ink) 30%, transparent); transform: translateY(-4px); min-width: 16px; }
.price-list .price { font-weight: 700; white-space: nowrap; }

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.tabs button {
  min-height: 42px; padding: 0 20px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--muted);
  font: 600 .95rem var(--font-body); transition: background .2s, color .2s, border-color .2s;
}
.tabs button.active { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.tab-panel[hidden] { display: none; }

/* Team */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.member { text-align: left; }
.member img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); margin-bottom: 16px; background: var(--surface); }
.member h3 { margin-bottom: 2px; }
.member .role { color: var(--accent); font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.member p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 960px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .team { grid-template-columns: 1fr 1fr; gap: 16px; } .member p { display: none; } }

/* Hours */
.hours-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.hours-card h3 { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.status {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  font: 600 .82rem/1 var(--font-body); background: rgba(127, 127, 127, .14); color: var(--muted);
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.open { background: rgba(22, 163, 74, .14); color: #15803d; }
.status.closed { background: rgba(220, 38, 38, .12); color: #b91c1c; }
.hours-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.hours-table td { padding: 11px 0; border-bottom: 1px solid var(--line); }
.hours-table td:last-child { text-align: right; color: var(--muted); }
.hours-table tr:last-child td { border-bottom: 0; }
.hours-table tr.today td { font-weight: 700; color: var(--ink); }

/* Testimonials */
.quote { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.quote .stars { color: #f5a623; letter-spacing: 2px; margin-bottom: 12px; }
.quote blockquote { margin: 0 0 18px; font-size: 1.05rem; }
.quote cite { font-style: normal; font-weight: 600; }
.quote cite span { display: block; font-weight: 400; color: var(--muted); font-size: .9rem; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.6rem/1 var(--font-body); color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* CTA band */
.cta-band { background: var(--brand); color: var(--brand-ink); padding: clamp(56px, 8vw, 88px) 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; opacity: .88; }
.cta-band .btn { background: var(--brand-ink); color: var(--brand); border-color: var(--brand-ink); }
.cta-band .btn-ghost { background: transparent; color: var(--brand-ink); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; }
.contact-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.contact-list a { text-decoration: none; font-weight: 600; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--surface); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Forms */
.form { display: grid; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.form input, .form select, .form textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: calc(var(--radius) * .6);
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); background: var(--bg); color: var(--ink);
  font: 400 1rem var(--font-body); transition: border-color .15s, box-shadow .15s;
}
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.form-note { display: none; padding: 14px 16px; border-radius: calc(var(--radius) * .6); background: rgba(22, 163, 74, .12); color: #15803d; font-weight: 600; }
.form.sent .form-note { display: block; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: #0f1115; color: #c9ced6; padding: 64px 0 0; font-size: .95rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 48px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; }
.site-footer a { text-decoration: none; color: #c9ced6; }
.site-footer a:hover { color: #fff; }
.site-footer .logo { color: #fff; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0; font-size: .85rem; color: #8b929e; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* "Sample site" ribbon linking back to the designer */
.sample-bar {
  position: fixed; left: 50%; bottom: 16px; z-index: 60; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px);
  padding: 8px 8px 8px 18px; border-radius: 999px;
  background: rgba(17, 19, 24, .92); color: #fff; box-shadow: 0 8px 30px rgba(0, 0, 0, .3);
  font: 500 .85rem/1.2 system-ui, sans-serif; backdrop-filter: blur(8px);
}
.sample-bar a { flex: none; padding: 8px 14px; border-radius: 999px; background: #fff; color: #111; text-decoration: none; font-weight: 600; }
.sample-bar button { flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; font-size: 1rem; }
.sample-bar.hide { display: none; }
@media (max-width: 520px) { .sample-bar .long { display: none; } }

/* Scroll-in reveal (only when JS has marked the page) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}

/* Note on personalized mockups (?biz=): "this is an example, I'll tailor it" + contact buttons. */
.mockup-note {
  position: fixed; right: 16px; bottom: 16px; z-index: 70; width: min(380px, calc(100% - 32px));
  padding: 20px 20px 18px; border-radius: 18px; background: #fff; color: #15181d;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .28); font: 400 15px/1.5 system-ui, sans-serif;
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .3s ease, transform .35s cubic-bezier(.2, .8, .2, 1);
}
.mockup-note.show { opacity: 1; transform: none; pointer-events: auto; }
.mockup-note strong { display: block; font-size: 16px; margin: 0 28px 6px 0; }
.mockup-note p { margin: 0 0 14px; color: #4b5260; }
.mockup-note .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mockup-note .actions a {
  flex: 1 1 auto; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 16px; border-radius: 999px; border: 1px solid #d5d9e0; color: #15181d;
  font-weight: 600; text-decoration: none; white-space: nowrap;
}
.mockup-note .actions a.primary { background: #15181d; border-color: #15181d; color: #fff; }
.mockup-note .actions a:active { transform: scale(.97); }
.mockup-note .close {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: #f0f2f5; color: #15181d; font-size: 18px; cursor: pointer;
}
@media (max-width: 520px) { .mockup-note { right: 16px; left: 16px; width: auto; } }
@media (prefers-reduced-motion: reduce) { .mockup-note { transition: none; } }

/* Tailored "About <business>" section injected on personalized mockups. */
.tailored-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.tailored .price-list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 24px; }
.tailored .price-list li:last-child { border-bottom: 0; }
@media (max-width: 860px) { .tailored-grid { grid-template-columns: 1fr; } }
