/* One template, three businesses. Colors come from data.js through CSS variables. */

:root {
  --accent: #0f9d8a;
  --accent-2: #5cc8b8;
  --ink: #0d2b2a;
  --bg: #f4faf9;
  --soft: #e2f3f0;
  --card: #ffffff;
  --muted: color-mix(in srgb, var(--ink) 58%, white);
  --line: color-mix(in srgb, var(--ink) 11%, white);
  --radius: 22px;
  --display: "Manrope", system-ui, sans-serif;
}
:root[data-serif="yes"] { --display: "DM Serif Display", Georgia, serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.55; overflow-x: hidden;
  transition: background 0.4s;
}
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(1140px, calc(100% - 32px)); margin: 0 auto; }
.muted { color: var(--muted); }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

#site { transition: opacity 0.18s; }
#site.swap { opacity: 0; }

/* ---- Demo chrome ------------------------------------------------------------ */
.demo-strip {
  display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: space-between; align-items: center;
  padding: 8px 16px; font-size: 0.8rem; background: #111; color: #ddd;
}
.demo-strip strong { color: #fff; }
.demo-strip a { color: #fff; font-weight: 700; text-decoration: none; }
.demo-strip a:hover { text-decoration: underline; }

.switcher {
  position: fixed; z-index: 40; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px;
  background: rgb(17 17 17 / 0.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.25); max-width: calc(100% - 100px);
}
.switcher span { color: #aaa; font-size: 0.75rem; font-weight: 700; padding: 0 8px 0 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.switcher button {
  border: 0; border-radius: 999px; padding: 8px 14px; background: transparent; color: #eee;
  font-size: 0.86rem; font-weight: 700; white-space: nowrap;
}
.switcher button[aria-pressed="true"] { background: #fff; color: #111; }

/* ---- Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; border-radius: 14px; border: 1px solid transparent;
  background: var(--ink); color: #fff; font-weight: 700; text-decoration: none;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}
.btn:hover { box-shadow: 0 8px 20px color-mix(in srgb, var(--ink) 25%, transparent); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--card); box-shadow: none; }
.short-name { display: none; }
.btn.small { white-space: nowrap; min-height: 42px; padding: 0 16px; font-size: 0.92rem; }
.btn:disabled { opacity: 0.7; cursor: wait; }

/* ---- Nav --------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; min-width: 0; }
.brand > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mono {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  font-family: var(--display); font-size: 1rem; letter-spacing: -0.02em;
}
.nav nav { display: flex; gap: 22px; margin-left: auto; font-weight: 600; font-size: 0.95rem; }
.nav nav a { text-decoration: none; color: var(--muted); }
.nav nav a:hover { color: var(--ink); }

/* ---- Hero ---------------------------------------------------------------------- */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 72px 0 64px; }
.kicker { font-weight: 700; color: var(--accent); font-size: 0.92rem; letter-spacing: 0.02em; }
.hero h1 {
  font-family: var(--display); font-weight: 800; font-size: clamp(2.3rem, 5.4vw, 4rem);
  line-height: 1.05; letter-spacing: -0.03em; margin: 12px 0 18px;
}
:root[data-serif="yes"] .hero h1 { font-weight: 400; letter-spacing: -0.01em; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 48ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.stats { display: flex; flex-wrap: wrap; gap: 28px; margin: 36px 0 0; }
.stats div { display: grid; }
.stats dt { font-family: var(--display); font-size: 1.5rem; font-weight: 800; }
.stats dd { margin: 0; color: var(--muted); font-size: 0.9rem; }

.hero-art { position: relative; min-height: 420px; }
.orb {
  position: absolute; inset: 6% 4% 8% 10%; border-radius: 42% 58% 55% 45% / 50% 40% 60% 50%;
  background: linear-gradient(140deg, var(--accent-2), var(--accent));
  animation: morph 14s ease-in-out infinite alternate; opacity: 0.95;
}
.orb::after {
  content: ""; position: absolute; inset: 12%; border-radius: inherit; border: 2px dashed rgb(255 255 255 / 0.4);
}
.art-card {
  position: absolute; background: var(--card); border-radius: 20px; box-shadow: 0 20px 50px color-mix(in srgb, var(--ink) 18%, transparent);
}
.main-card {
  left: 50%; top: 50%; transform: translate(-50%, -50%); width: 220px; padding: 26px 20px;
  display: grid; justify-items: center; gap: 6px; text-align: center;
}
.main-card strong { font-family: var(--display); font-size: 1.4rem; }
.main-card span:last-child { color: var(--muted); font-size: 0.9rem; }
.big-icon {
  display: grid; place-items: center; width: 104px; height: 104px; border-radius: 30px; margin-bottom: 8px;
  background: var(--soft); color: var(--accent);
}
.big-icon svg { stroke-width: 1.4; }
.float { display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-size: 0.88rem; font-weight: 700; animation: bob 5s ease-in-out infinite; }
.float.status { left: 0; top: 14%; }
.float.next { right: 0; bottom: 12%; animation-delay: -2.5s; color: var(--ink); }
.float.next svg { color: var(--accent); }
.status i, .status-line i { width: 10px; height: 10px; border-radius: 50%; background: #c0392b; flex: none; box-shadow: 0 0 0 4px rgb(192 57 43 / 0.15); }
.status.is-open i, .status-line.is-open i { background: #1e9e5a; box-shadow: 0 0 0 4px rgb(30 158 90 / 0.18); }

/* ---- Sections ----------------------------------------------------------------- */
.section { padding: 64px 0; }
.section-head { display: grid; gap: 10px; margin-bottom: 28px; max-width: 640px; }
.section-head h2, .band h2, .card h2, .form-intro h2 {
  font-family: var(--display); font-size: clamp(1.8rem, 3.6vw, 2.5rem); line-height: 1.1; letter-spacing: -0.02em; font-weight: 800;
}
:root[data-serif="yes"] :is(.section-head h2, .band h2, .form-intro h2) { font-weight: 400; letter-spacing: 0; }
.section-head p { color: var(--muted); }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service {
  display: grid; align-content: start; gap: 8px; padding: 24px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.service:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 40%, white); box-shadow: 0 16px 40px color-mix(in srgb, var(--ink) 10%, transparent); }
.s-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--soft); color: var(--accent); margin-bottom: 6px; }
.service h3 { font-size: 1.12rem; }
.service p { color: var(--muted); font-size: 0.95rem; }
.price { margin-top: 8px !important; color: var(--ink) !important; }
.price strong { font-size: 1.2rem; }
.price span { color: var(--muted); font-size: 0.88rem; }

.band { background: var(--ink); color: #fff; padding: 72px 0; margin: 24px 0; position: relative; overflow: hidden; }
.band::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%);
}
.band .wrap { position: relative; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 36px; }
.feature { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid rgb(255 255 255 / 0.18); }
.feature .num { font-family: var(--display); color: var(--accent-2); font-size: 1.1rem; font-weight: 800; }
.feature h3 { font-size: 1.2rem; }
.feature p { color: rgb(255 255 255 / 0.72); }

.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.person { padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); display: grid; gap: 4px; }
.avatar {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; margin-bottom: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 800; font-size: 1.2rem;
  filter: hue-rotate(calc(var(--h) * 1deg - 30deg)) saturate(0.9);
}
.person h3 { font-size: 1.05rem; }
.person p { color: var(--muted); font-size: 0.92rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card h2 { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; }
.card h2 svg { color: var(--accent); }
.hours-card { padding: 28px; }
.status-line { display: flex; align-items: center; gap: 10px; margin: 12px 0 16px; font-weight: 700; }
.hours-card table { width: 100%; border-collapse: collapse; }
.hours-card th, .hours-card td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); font-weight: 500; }
.hours-card td { text-align: right; font-variant-numeric: tabular-nums; }
.hours-card tr.today { background: var(--soft); font-weight: 800; }
.hours-card tr.today th, .hours-card tr.today td { font-weight: 800; }
.hours-card tr.today small { color: var(--accent); font-weight: 700; margin-left: 6px; }
.map { position: relative; height: 220px; }
.map svg { width: 100%; height: 100%; display: block; }
.map .pin {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -100%); color: #fff;
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50% 50% 50% 0; rotate: -45deg;
  background: var(--accent); box-shadow: 0 10px 20px color-mix(in srgb, var(--accent) 40%, transparent);
  animation: drop 0.6s cubic-bezier(0.2, 0.8, 0.3, 1.3);
}
.map .pin svg { rotate: 45deg; stroke-width: 2; width: 26px; height: 26px; }
.map-body { padding: 24px 28px 28px; display: grid; gap: 10px; }
.map-body p { color: var(--muted); }
.row { display: flex; gap: 8px; flex-wrap: wrap; }

.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); transition: rotate 0.2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { color: var(--muted); padding-bottom: 18px; }

/* ---- Lead form ------------------------------------------------------------------ */
.form-card {
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; padding: 40px;
  background: var(--card); border: 1px solid var(--line); border-radius: 28px;
  box-shadow: 0 30px 60px color-mix(in srgb, var(--ink) 8%, transparent);
}
.form-intro { display: grid; align-content: start; gap: 14px; }
.form-intro p { color: var(--muted); }
.form-intro ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; font-size: 0.94rem; }
.form-intro li { display: flex; gap: 10px; align-items: flex-start; }
.form-intro li svg { color: var(--accent); margin-top: 2px; }
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead-form[hidden] { display: none; }
.wide { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; font-weight: 700; font-size: 0.9rem; }
.field small { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 60%, white); font-weight: 500; resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
[aria-invalid="true"] { border-color: #c0392b !important; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.consent input[aria-invalid="true"] { outline: 2px solid #c0392b; }
.form-error { color: #c0392b; font-weight: 700; font-size: 0.92rem; }
.form-done { display: grid; justify-items: center; align-content: center; text-align: center; gap: 12px; padding: 24px; animation: rise 0.4s ease-out; }
.form-done[hidden] { display: none; }
.form-done p { color: var(--muted); max-width: 44ch; }
.form-done strong { color: var(--ink); }
.done-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--soft); color: var(--accent); }
.form-done h3 { font-family: var(--display); font-size: 1.8rem; }

/* ---- Footer, WhatsApp, toast --------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding: 32px 0 110px; margin-top: 40px; font-size: 0.92rem; }
.foot-row { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.wa {
  position: fixed; z-index: 41; right: 18px; bottom: 18px; width: 58px; height: 58px; border-radius: 50%; border: 0;
  display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 10px 24px rgb(37 211 102 / 0.4);
  transition: transform 0.2s;
}
.wa:hover { transform: scale(1.06); }
.toast {
  position: fixed; z-index: 50; left: 50%; top: 18px; transform: translateX(-50%); max-width: calc(100% - 32px);
  padding: 12px 18px; border-radius: 14px; background: #111; color: #fff; font-weight: 600; font-size: 0.94rem;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.3); animation: drop-t 0.25s ease-out;
}
.toast[hidden] { display: none; }

/* ---- Motion ---------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.hero-copy > * { animation: rise 0.7s both; }
.hero-copy > :nth-child(2) { animation-delay: 0.06s; }
.hero-copy > :nth-child(3) { animation-delay: 0.12s; }
.hero-copy > :nth-child(4) { animation-delay: 0.18s; }
.hero-copy > :nth-child(5) { animation-delay: 0.24s; }
.hero-art { animation: rise 0.9s 0.1s both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes bob { 50% { transform: translateY(-8px); } }
@keyframes morph { to { border-radius: 58% 42% 45% 55% / 40% 60% 40% 60%; rotate: 8deg; } }
@keyframes drop { from { opacity: 0; transform: translate(-50%, -160%); } }
@keyframes drop-t { from { opacity: 0; transform: translate(-50%, -10px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---- Responsive -------------------------------------------------------------------- */
@media (max-width: 960px) {
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding: 40px 0 48px; gap: 28px; }
  .hero-art { min-height: 340px; max-width: 460px; width: 100%; margin: 0 auto; }
  .services { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr; gap: 20px; }
  .split, .form-card { grid-template-columns: 1fr; }
  .form-card { padding: 28px; gap: 24px; }
}
@media (max-width: 600px) {
  .nav-row { height: 64px; gap: 12px; }
  .brand { font-size: 0.95rem; }
  .nav .full-name { display: none; }
  .nav .short-name { display: inline; }
  .nav .btn { padding: 0 12px; font-size: 0.85rem; }
  .services { grid-template-columns: 1fr; }
  .lead-form { grid-template-columns: 1fr; }
  .form-card { padding: 22px 18px; border-radius: 22px; }
  .section { padding: 48px 0; }
  .switcher { left: 16px; transform: none; max-width: calc(100% - 96px); overflow-x: auto; scrollbar-width: none; }
  .switcher span { display: none; }
  .switcher button { padding: 8px 11px; font-size: 0.8rem; }
  .hero-art { min-height: 300px; }
  .main-card { width: 190px; padding: 20px 16px; }
  .big-icon { width: 84px; height: 84px; }
  .float { font-size: 0.8rem; padding: 10px 12px; }
}
