/* Clear Forge Web — shared design system for demo + client sites.
   One file, six themes. Add a client by adding one [data-theme] block. */

:root {
  --accent: #0f766e;        /* teal — default (home services) */
  --accent-ink: #ffffff;    /* text on accent */
  --ink: #1c2321;          /* body text */
  --muted: #5b6663;
  --bg: #fafaf7;
  --card: #ffffff;
  --line: #e3e5e0;
  --hero: #f2f4f0;
  --shadow: 0 1px 3px rgba(28,35,33,.08), 0 8px 24px rgba(28,35,33,.07);
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

[data-theme="service"]  { --accent: #0f766e; --hero: #eef4f1; }
[data-theme="food"]     { --accent: #b4531c; --hero: #faf1e6; --bg: #fdfaf5; }
[data-theme="auto"]     { --accent: #b3500f; --hero: #eef0f2; --ink: #1b2126; }
[data-theme="faith"]    { --accent: #33606f; --hero: #eef2f0; --bg: #fafcfb; }
[data-theme="law"]      { --accent: #1e3a5f; --hero: #eef1f4; }
[data-theme="salon"]    { --accent: #6d5a5e; --hero: #f7f0ec; --bg: #fcfaf8; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink);
  background: var(--bg); line-height: 1.6; font-size: 17px;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; font-weight: 800; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }
section { padding: 56px 0; }
section.tight { padding: 34px 0; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 16px; padding: 12px 20px; max-width: 1060px; margin: 0 auto; }
.brand { font-weight: 800; font-size: 1.05rem; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.brand .dot { width: 12px; height: 12px; border-radius: 3px; background: var(--accent); display: inline-block; }
.nav-links { margin-left: auto; display: flex; gap: 18px; align-items: center; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: .95rem; }
@media (max-width: 720px) { .nav-links a.nav-sec { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; padding: 12px 22px; border-radius: 999px;
  border: 2px solid transparent; text-decoration: none; font-size: 1rem;
}
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn.big { padding: 15px 28px; font-size: 1.1rem; }

/* Hero */
.hero { background: var(--hero); padding: 64px 0 56px; }
.hero .wrap { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .hero .wrap { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px; } }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 800; color: var(--accent); }
.hero-art {
  border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow);
  aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); overflow: hidden;
}
.hero-art svg { width: 72%; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

/* Cards + grids */
.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid.c3 { grid-template-columns: repeat(3, 1fr); } .grid.c2 { grid-template-columns: repeat(2, 1fr); } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 1px 2px rgba(28,35,33,.05);
}
.card h3 { margin: 0 0 6px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--hero);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.card .icon svg { width: 24px; height: 24px; }
.chip {
  display: inline-block; background: var(--hero); color: var(--accent);
  border-radius: 999px; padding: 3px 12px; font-size: .8rem; font-weight: 700; margin: 0 6px 6px 0;
}

/* Lists + misc */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 8px 0 8px 34px; position: relative; border-bottom: 1px dashed var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 8px; width: 22px; height: 22px;
  background: var(--accent); color: var(--accent-ink); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 800;
}
.hours { border-collapse: collapse; width: 100%; }
.hours td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; color: var(--muted); }
.hours tr.today td { font-weight: 800; color: var(--accent); }
blockquote.quote {
  margin: 0; padding: 18px 20px; background: var(--card); border: 1px solid var(--line);
  border-left: 4px solid var(--accent); border-radius: 10px;
}
blockquote.quote p { margin: 0 0 4px; }
blockquote.quote cite { font-size: .88rem; color: var(--muted); }

/* Forms (posts to Formspree placeholder — no backend) */
form { display: grid; gap: 12px; }
label { font-weight: 700; font-size: .92rem; }
input, textarea, select {
  font: inherit; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 10px; background: var(--card); color: var(--ink); width: 100%;
}
input:focus, textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.formnote { font-size: .85rem; color: var(--muted); }

/* Sticky mobile call bar */
.callbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; display: none;
  background: var(--accent); color: var(--accent-ink); font-weight: 800;
  padding: 14px 20px; text-align: center; text-decoration: none;
}
@media (max-width: 720px) { .callbar { display: block; } body:has(.callbar) { padding-bottom: 90px; } }

/* Footer */
footer { border-top: 1px solid var(--line); background: var(--card); }
footer .wrap { padding: 30px 20px; color: var(--muted); font-size: .92rem; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }

/* Compare page bits */
.compare-frame-wrap { position: relative; width: 100%; aspect-ratio: 16 / 10; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.compare-frame-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.compare-after { clip-path: inset(0 0 0 var(--split, 50%)); }
.compare-slider-line { position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 3px; background: var(--accent); z-index: 5; pointer-events: none; }
.compare-hint { text-align: center; color: var(--muted); font-size: .92rem; }
input[type="range"].split { width: 100%; accent-color: var(--accent); }

/* auto rebuilt */

  html:has(body.rebuilt[data-theme="auto"]) { scroll-padding-top: 100px; }
  body.rebuilt[data-theme="auto"] .nav-links a.btn { color: var(--accent-ink); }
  body.rebuilt[data-theme="auto"] .nav-inner { flex-wrap: wrap; }
  body.rebuilt[data-theme="auto"] .nav-links { flex-wrap: wrap; }
  body.rebuilt[data-theme="auto"] .hours th { text-align: left; font-weight: 400; padding: 7px 0; border-bottom: 1px solid var(--line); }
  body.rebuilt[data-theme="auto"] .hours td { padding-left: 12px; }
  body.rebuilt[data-theme="auto"] .contact-email { overflow-wrap: anywhere; }
  @media (max-width: 480px) {
    body.rebuilt[data-theme="auto"] .nav-inner { gap: 8px; }
    body.rebuilt[data-theme="auto"] .brand { font-size: .92rem; }
    body.rebuilt[data-theme="auto"] .nav-links { margin-left: 0; }
    body.rebuilt[data-theme="auto"] .nav-links .btn { padding: 8px 16px; }
    html:has(body.rebuilt[data-theme="auto"]) { scroll-padding-top: 130px; }
  }


/* faith rebuilt */

  body.rebuilt[data-theme="faith"] { padding-bottom:0; }
  body.rebuilt[data-theme="faith"] section[id] { scroll-margin-top:100px; }
  body.rebuilt[data-theme="faith"] .brand { min-width:0; }
  body.rebuilt[data-theme="faith"] .brand .dot { flex-shrink:0; }
  body.rebuilt[data-theme="faith"] .nav-links { flex-shrink:0; }
  body.rebuilt[data-theme="faith"] .nav-links .btn { color:var(--accent-ink); }
  body.rebuilt[data-theme="faith"] .hero-art { background:#f3ebdf; }
  body.rebuilt[data-theme="faith"] .hero-art svg { width:100%; }
  body.rebuilt[data-theme="faith"] details summary { cursor:pointer; font-weight:700; }
  body.rebuilt[data-theme="faith"] details[open] summary { margin-bottom:12px; }
  body.rebuilt[data-theme="faith"] address { font-style:normal; }
  body.rebuilt[data-theme="faith"] a { overflow-wrap:anywhere; }
  body.rebuilt[data-theme="faith"] a:focus-visible, body.rebuilt[data-theme="faith"] summary:focus-visible, body.rebuilt[data-theme="faith"] button:focus-visible { outline:3px solid var(--accent); outline-offset:4px; }
  @media (max-width:720px) { body.rebuilt[data-theme="faith"] .brand { font-size:.9rem; line-height:1.3; } body.rebuilt[data-theme="faith"] .nav-inner { gap:10px; } body.rebuilt[data-theme="faith"] .nav-links .btn { padding:10px 14px; white-space:nowrap; } }


/* salon rebuilt */

  html:has(body.rebuilt[data-theme="salon"]) { scroll-padding-top: 100px; }
  body.rebuilt[data-theme="salon"] .nav-links a.btn { color: var(--accent-ink); white-space: nowrap; }
  body.rebuilt[data-theme="salon"] .salon-art { background: #e7ece5; }
  body.rebuilt[data-theme="salon"] .gallery-tile { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
  body.rebuilt[data-theme="salon"] .gallery-tile svg { display: block; width: 100%; }
  body.rebuilt[data-theme="salon"] .gallery-tile figcaption { padding: 12px 16px; color: var(--muted); font-size: .9rem; }
  body.rebuilt[data-theme="salon"] .price { display: block; color: var(--accent); font-weight: 800; margin: 12px 0 0; }
  body.rebuilt[data-theme="salon"] .stylist-mark { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: #e7ece5; color: #425247; font-size: 1.25rem; font-weight: 800; margin-bottom: 16px; }
  body.rebuilt[data-theme="salon"] .hours caption { text-align: left; font-weight: 700; margin-bottom: 8px; }
  body.rebuilt[data-theme="salon"] a:focus-visible, body.rebuilt[data-theme="salon"] button:focus-visible, body.rebuilt[data-theme="salon"] select:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
  @media (max-width: 480px) { body.rebuilt[data-theme="salon"] .nav-inner { gap: 8px; } body.rebuilt[data-theme="salon"] .brand { font-size: .9rem; } body.rebuilt[data-theme="salon"] .nav-links .btn { padding: 9px 13px; font-size: .9rem; } }


/* law rebuilt */

body.rebuilt[data-theme="law"] { --gold:#9a7643; padding-bottom:0; }
body.rebuilt[data-theme="law"] h1, body.rebuilt[data-theme="law"] h2 { font-family:Georgia,'Times New Roman',serif; font-weight:400; color:var(--accent); }
body.rebuilt[data-theme="law"] h1 { letter-spacing:-.025em; }
body.rebuilt[data-theme="law"] section[id] { scroll-margin-top:100px; }
body.rebuilt[data-theme="law"] .nav .brand { max-width:250px; line-height:1.25; }
body.rebuilt[data-theme="law"] .nav .brand .dot { flex-shrink:0; background:var(--gold); }
body.rebuilt[data-theme="law"] .nav-links a.btn { color:var(--accent-ink); white-space:nowrap; }
body.rebuilt[data-theme="law"] .hero-art { background:var(--accent); border-color:var(--accent); }
body.rebuilt[data-theme="law"] .card .icon { color:var(--accent); }
body.rebuilt[data-theme="law"] .attorney { border-top:3px solid var(--gold); }
body.rebuilt[data-theme="law"] .initials { display:inline-flex; padding:10px 14px; margin-bottom:18px; background:var(--hero); color:var(--accent); font:1.5rem Georgia,serif; border-radius:8px; }
body.rebuilt[data-theme="law"] .disclaimer { font-size:.82rem; color:var(--muted); }
body.rebuilt[data-theme="law"] :focus-visible { outline:3px solid var(--gold); outline-offset:4px; }
body.rebuilt[data-theme="law"] .skip { position:absolute; left:20px; top:-100px; z-index:100; }
body.rebuilt[data-theme="law"] .skip:focus { position:fixed; top:10px; }
@media (max-width:540px) { body.rebuilt[data-theme="law"] .nav-inner { gap:10px; } body.rebuilt[data-theme="law"] .nav .brand { font-size:.88rem; } body.rebuilt[data-theme="law"] .nav-links { gap:0; } body.rebuilt[data-theme="law"] .nav-links .btn { padding:9px 12px; font-size:.85rem; } }


/* faith comparison */
body.comparison[data-theme="faith"] { padding-bottom:0; } body.comparison[data-theme="faith"] .nav-inner > * { min-width:0; } body.comparison[data-theme="faith"] .brand .dot { flex-shrink:0; }

/* law comparison */

body.comparison[data-theme="law"] { padding-bottom:0; }
@media (max-width:720px) { body.comparison[data-theme="law"] .nav-inner { flex-wrap:wrap; } body.comparison[data-theme="law"] .nav-links { margin-left:0; } body.comparison[data-theme="law"] .compare-frame-wrap { aspect-ratio:3 / 4; } }

/* Shared layout and interaction safeguards, including narrow phones. */
html { scroll-padding-top: 150px; }
body { overflow-wrap: anywhere; }
.nav-inner, .nav-links { flex-wrap: wrap; }
.nav-inner > *, .grid > *, .hero .wrap > * { min-width: 0; }
.brand .dot { flex-shrink: 0; }
.nav-links a.btn { color: var(--accent-ink); }
.btn { max-width: 100%; justify-content: center; text-align: center; }
a:focus-visible, button:focus-visible, summary:focus-visible, [role="slider"]:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 4px;
}
.demo-notice { padding: 8px 20px; background: #fff4ce; color: #433915; font: 14px/1.5 var(--font); text-align: center; }
.demo-notice a { color: #433915; text-decoration: underline; }
.demo-form fieldset { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 12px; }
.demo-form legend { font-weight: 700; }
.demo-form button { cursor: default; }
.compare-frame-wrap { touch-action: pan-y; cursor: ew-resize; user-select: none; }
.compare-frame-wrap iframe { pointer-events: none; }
.compare-frame-wrap::after { content: "↔"; position: absolute; left: clamp(20px, var(--split, 50%), calc(100% - 20px)); top: 50%; transform: translate(-50%, -50%); border: 2px solid white; border-radius: 50%; background: var(--accent); color: white; width: 36px; height: 36px; display: grid; place-items: center; pointer-events: none; }
body.comparison { padding-bottom: 0; }
@media (max-width: 720px) {
  .nav-inner { gap: 8px; }
  .nav-links { margin-left: 0; gap: 10px; }
  .nav-links .btn { padding: 9px 14px; }
  .compare-frame-wrap { aspect-ratio: 3 / 4; }
}
/* The before examples remain dated, but never force the browser sideways. */
body.legacy { margin: 8px; line-height: normal; font-size: 16px; }
.legacy table { width: 100%; max-width: 880px; table-layout: fixed; }
.legacy td, .legacy th { overflow-wrap: anywhere; }
.legacy td { width: auto; }
.legacy a { text-decoration: underline; }
.legacy p { line-height: 1.4; }
.legacy pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.legacy .missing-photo { display: inline-block; padding: 12px; border: 1px dashed currentColor; max-width: 100%; font-size: 12px; }
.legacy-announcement { padding: 8px; text-align: center; }
@media (max-width: 600px) {
  body.legacy { margin: 8px !important; }
  .legacy table, .legacy tbody, .legacy tr, .legacy td { display: block; width: 100%; }
  .legacy td { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
