/* Shared design system for the portfolio demo sites. Each site sets its own brand colours on :root. */
:root {
  --brand: #2563eb;
  --brand-ink: #1e3a8a;
  --brand-soft: #eff6ff;
  --accent: #f59e0b;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.alt { background: var(--bg-alt); }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); margin-bottom: 0.6em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Demo notice */
.demo-bar { background: var(--ink); color: #e2e8f0; font-size: 0.85rem; text-align: center; padding: 8px 16px; }
.demo-bar a { color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 1.1rem; }
.nav-links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav-links { display: none; } }
@media (max-width: 520px) {
  .nav { min-height: 60px; }
  .nav > .btn { padding: 9px 14px; font-size: 0.88rem; white-space: nowrap; }
  .logo { font-size: 0.98rem; gap: 8px; }
  .logo-mark { width: 30px; height: 30px; font-size: 0.95rem; flex: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-accent { background: var(--accent); color: #111827; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Hero */
.hero { padding: clamp(56px, 9vw, 110px) 0; background: radial-gradient(1200px 500px at 85% -10%, var(--brand-soft), transparent), linear-gradient(180deg, #fff, var(--bg-alt)); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.hero-card h3 { margin-bottom: 14px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before { content: "✓"; color: #fff; background: var(--brand); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem; flex: none; margin-top: 2px; }
.trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: var(--muted); font-size: 0.95rem; }
.trust strong { color: var(--ink); }

/* Cards */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: box-shadow 0.2s ease, transform 0.2s ease; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card .icon { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 14px; }
.card p { color: var(--muted); margin: 0; }
.price { font-weight: 800; color: var(--brand); margin-top: 10px; }

/* Testimonials */
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.quote p { font-size: 1.05rem; }
.quote footer { color: var(--muted); font-size: 0.9rem; }
.stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 8px; }

/* FAQ */
.faq { max-width: 780px; margin: 32px auto 0; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* Contact / booking */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.form label { font-weight: 600; font-size: 0.92rem; display: grid; gap: 6px; }
.form input, .form select, .form textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-alt); color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--brand-soft); border-color: var(--brand); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.85rem; color: var(--muted); margin: 0; }
.form-success { display: none; background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; border-radius: 10px; padding: 12px 14px; font-weight: 600; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 12px; }
.info-list .icon { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft); display: grid; place-items: center; }
.hours { width: 100%; border-collapse: collapse; margin-top: 8px; }
.hours td { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.hours td:last-child { text-align: right; color: var(--muted); }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--brand), var(--brand-ink)); color: #fff; border-radius: 20px; padding: clamp(28px, 5vw, 48px); display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.cta-band h2 { margin: 0; }
.cta-band p { margin: 6px 0 0; opacity: 0.9; }

/* Footer */
.site-footer { background: var(--ink); color: #cbd5e1; padding: 40px 0; font-size: 0.92rem; }
.site-footer a { color: #fff; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }

/* ── Chatbot widget ─────────────────────────────────────────────── */
.cb-launcher { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 62px; height: 62px; border-radius: 50%; border: none; background: var(--brand); color: #fff; font-size: 1.6rem; box-shadow: 0 12px 28px rgba(15, 23, 42, 0.25); cursor: pointer; }
.cb-launcher:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.cb-badge { position: absolute; top: -4px; right: -4px; background: var(--accent); color: #111827; font-size: 0.7rem; font-weight: 800; border-radius: 999px; padding: 2px 7px; }
.cb-panel { position: fixed; right: 20px; bottom: 94px; z-index: 50; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 130px)); background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28); display: none; flex-direction: column; overflow: hidden; border: 1px solid var(--line); }
.cb-panel.open { display: flex; }
.cb-head { background: var(--brand); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.cb-head strong { display: block; }
.cb-head small { opacity: 0.85; }
.cb-close { margin-left: auto; background: transparent; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; line-height: 1; }
.cb-avatar { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); display: grid; place-items: center; }
.cb-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-alt); }
.cb-msg { max-width: 85%; padding: 10px 13px; border-radius: 14px; font-size: 0.95rem; white-space: pre-line; }
.cb-msg.bot { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.cb-msg.user { background: var(--brand); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.cb-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; background: var(--bg-alt); }
.cb-quick button { border: 1px solid var(--brand); background: #fff; color: var(--brand); border-radius: 999px; padding: 6px 12px; font-size: 0.85rem; cursor: pointer; }
.cb-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.cb-form input { flex: 1; font: inherit; padding: 10px 12px; border-radius: 999px; border: 1px solid var(--line); }
.cb-form button { border: none; background: var(--brand); color: #fff; border-radius: 999px; padding: 0 16px; font-weight: 700; cursor: pointer; }
.cb-foot { font-size: 0.72rem; color: var(--muted); text-align: center; padding: 0 12px 10px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
