/* ============================================================
   Care At Home - public website (careathome.bg)

   Brand tokens mirror frontend/src/assets/app.css and
   app/src/constants/theme.ts: green #4CAF50 = primary, teal #00A8AB =
   accent. Keep hexes here only - never inline them in the pages.

   The site loads NO external resources (fonts, scripts, images) except
   Google Analytics, and that only after the visitor accepts the cookie
   banner (assets/consent.js). Keep it that way when editing.
   ============================================================ */
:root {
  --brand-50: #e8f5e9; --brand-100: #c8e6c9; --brand-200: #a5d6a7;
  --brand-500: #4caf50; --brand-600: #43a047; --brand-700: #388e3c; --brand-800: #2e7d32;
  --accent-50: #e0f6f6; --accent-100: #b3e9ea; --accent-200: #80dcdd;
  --accent-500: #00a8ab; --accent-700: #007d80; --accent-800: #00595c;
  --surface: #ffffff; --surface-muted: #f7faf8; --surface-tinted: #f1f7f3;
  --border-soft: #e2e8e5; --border-strong: #c8d4cc;
  --text: #1f2933; --text-muted: #64707d; --text-subtle: #94a3a4;
  --warning-soft: #fff8e1; --warning-border: #f5e2a8; --warning-dark: #7a5d05;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  font-family: var(--font); color: var(--text); background: var(--surface-muted);
  line-height: 1.55; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-700); text-decoration: none; }
a:hover { color: var(--accent-800); text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---- top bar ---------------------------------------------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--brand-700); }
.brand:hover { text-decoration: none; color: var(--brand-800); }
.brand img { height: 40px; width: auto; }
.brand .name { font-weight: 700; font-size: 22px; letter-spacing: -0.01em; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 6px 18px; flex-wrap: wrap; font-size: 14px; font-weight: 600; }
.nav a { color: var(--text-muted); }
.nav a:hover { color: var(--brand-700); text-decoration: none; }
.lang { display: inline-flex; gap: 4px; margin-left: 6px; }
.lang a { padding: 6px 12px; border-radius: 999px; color: var(--brand-700); font-size: 13px; }
.lang a.on { background: var(--brand-500); color: #fff; }
.lang a:not(.on):hover { background: var(--brand-50); text-decoration: none; }
.nav .nav-btn { background: var(--brand-500); color: #fff; padding: 8px 14px; border-radius: 999px; font-size: 13px; white-space: nowrap; }
.nav .nav-btn:hover { background: var(--brand-600); color: #fff; text-decoration: none; }

/* ---- hero ------------------------------------------------- */
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; padding: 40px 0 64px; }
.eyebrow { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; color: var(--accent-700); margin: 0 0 16px; }
.hero h1 { font-size: 50px; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 18px; color: var(--text); text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--brand-600); }
.lead { font-size: 19px; color: var(--text-muted); margin: 0 0 28px; max-width: 40ch; text-wrap: pretty; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cta-main { margin-bottom: 4px; }
.cta-note { margin: 12px 0 20px; font-size: 14px; color: var(--text-muted); max-width: 44ch; text-wrap: pretty; }
.cta-note a { font-weight: 700; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; background: var(--text); color: #fff;
  padding: 10px 16px; border-radius: 12px; transition: transform 0.15s, background 0.15s;
}
.badge:hover { background: #0f172a; color: #fff; text-decoration: none; transform: translateY(-2px); }
.badge-txt { display: flex; flex-direction: column; line-height: 1.1; }
.badge-top { font-size: 10px; opacity: 0.8; letter-spacing: 0.04em; }
.badge-main { font-size: 16px; font-weight: 700; }
.badge.is-soon { opacity: 0.6; cursor: default; }
.badge.is-soon:hover { transform: none; background: var(--text); }
.soon-tag {
  display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px;
  background: var(--warning-soft); border: 1px solid var(--warning-border); color: var(--warning-dark);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; vertical-align: middle;
}
.art {
  position: relative; aspect-ratio: 1; border-radius: 32px; overflow: hidden;
  background: linear-gradient(150deg, var(--brand-50), var(--accent-50));
  display: flex; align-items: center; justify-content: center;
}
.art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(110% 90% at 85% 10%, rgba(0, 168, 171, 0.16), transparent 60%); }
.art img { position: relative; z-index: 1; width: 68%; height: auto; filter: drop-shadow(0 18px 36px rgba(56, 142, 60, 0.25)); }

/* ---- QR strip --------------------------------------------- */
.qr-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 0 0 64px; }
.qr-card { display: flex; gap: 20px; align-items: center; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 20px 22px; }
.qr-card .qr { flex: none; width: 104px; height: 104px; border: 1px solid var(--border-soft); border-radius: 14px; overflow: hidden; background: #fff; }
.qr-card .qr svg, .qr-card .qr img { display: block; width: 100%; height: 100%; }
.qr-card h3 { margin: 0 0 4px; font-size: 17px; color: var(--text); }
.qr-card p { margin: 0; font-size: 14px; color: var(--text-muted); }
.qr-card.is-soon .qr { opacity: 0.35; }
.web-card { color: var(--text); border-color: var(--brand-200); background: linear-gradient(135deg, var(--brand-50), var(--surface) 70%); transition: border-color 0.15s, transform 0.15s; }
.web-card:hover { color: var(--text); text-decoration: none; border-color: var(--brand-500); transform: translateY(-2px); }
.web-card .web-icon { display: flex; align-items: center; justify-content: center; background: var(--brand-500); border-color: var(--brand-500); color: #fff; }
.web-card .web-icon svg { width: 52px; height: 52px; }
.now-tag {
  display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px;
  background: var(--brand-50); border: 1px solid var(--brand-200); color: var(--brand-800);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; vertical-align: middle;
}

/* ---- content sections ------------------------------------- */
section { padding: 0 0 64px; }
.section-h { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--accent-700); margin: 0 0 8px; }
.section-t { font-size: 32px; letter-spacing: -0.02em; margin: 0 0 28px; color: var(--text); text-wrap: balance; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 24px; }
.card .n { width: 34px; height: 34px; border-radius: 10px; background: var(--brand-50); color: var(--brand-700); font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.card .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-50); color: var(--accent-700); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.card .ic svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 8px; font-size: 18px; color: var(--text); }
.card p { margin: 0; font-size: 15px; color: var(--text-muted); text-wrap: pretty; }

.band { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 24px; padding: 36px; }
.band h2 { font-size: 28px; margin: 0 0 12px; letter-spacing: -0.02em; text-wrap: balance; }
.band p { color: var(--text-muted); margin: 0 0 18px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px;
  background: var(--brand-500) 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'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--brand-500); color: #fff; font-weight: 700; padding: 12px 20px; border-radius: 12px; }
.btn:hover { background: var(--brand-600); color: #fff; text-decoration: none; }
.btn-lg { padding: 14px 24px; font-size: 17px; border-radius: 14px; }
.btn-ghost { background: var(--surface); color: var(--brand-700); border: 1px solid var(--border-strong); }
.btn-ghost:hover { background: var(--brand-50); color: var(--brand-800); }

.contact { background: linear-gradient(135deg, var(--brand-50), var(--accent-50)); border-radius: 24px; padding: 36px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.contact h2 { margin: 0 0 6px; font-size: 26px; letter-spacing: -0.02em; }
.contact p { margin: 0; color: var(--text-muted); }
.contact .email { font-size: 18px; font-weight: 700; }

/* ---- footer ----------------------------------------------- */
footer { border-top: 1px solid var(--border-soft); background: var(--surface); }
.foot { display: flex; align-items: center; justify-content: space-between; padding-top: 26px; padding-bottom: 26px; flex-wrap: wrap; gap: 14px; }
.foot .brand img { height: 30px; }
.foot .brand .name { font-size: 18px; }
.foot-links { display: flex; gap: 8px 20px; flex-wrap: wrap; font-size: 14px; font-weight: 600; }
.foot-links a { color: var(--text-muted); }
.foot-links a:hover { color: var(--brand-700); }
.foot-note { width: 100%; font-size: 13px; color: var(--text-subtle); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---- legal pages (generated by website/tools/build-legal.py) ---- */
.legal { max-width: 760px; padding: 16px 24px 64px; }
.legal h1 { font-size: 36px; letter-spacing: -0.02em; margin: 0 0 6px; text-wrap: balance; }
.legal h1 + p { color: var(--text-muted); }
.legal h2 { font-size: 22px; margin: 36px 0 10px; color: var(--brand-800); }
.legal h3 { font-size: 17px; margin: 24px 0 8px; }
.legal p, .legal li { font-size: 16px; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal hr { border: 0; border-top: 1px solid var(--border-soft); margin: 32px 0; }
.legal blockquote { margin: 0 0 20px; padding: 12px 16px; border-left: 4px solid var(--accent-500); background: var(--accent-50); border-radius: 0 12px 12px 0; color: var(--accent-800); }
.legal blockquote p { margin: 0; color: inherit; font-size: 15px; }
mark.todo { background: var(--warning-soft); border: 1px dashed var(--warning-border); color: var(--warning-dark); padding: 0 0.3em; border-radius: 4px; font-weight: 600; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 24px 0 48px; }
  .hero h1 { font-size: 38px; }
  .art { max-width: 340px; }
  .qr-strip, .grid-3, .band { grid-template-columns: 1fr; }
  .band { padding: 24px; }
  .section-t { font-size: 26px; }
  .contact { padding: 28px; }
  .legal h1 { font-size: 28px; }
}
@media print {
  .top, footer { display: none; }
  body { background: #fff; }
  .legal { max-width: none; }
  mark.todo { background: none; border: 0; }
}

/* ---- cookie consent banner (assets/consent.js) --------------- */
body.has-cookie-banner { padding-bottom: 140px; }
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  padding: 14px 24px calc(14px + env(safe-area-inset-bottom, 0px));
  background: var(--surface); border-top: 1px solid var(--border-soft);
  box-shadow: 0 -8px 28px rgba(31, 41, 51, .10);
}
.cookie-banner__inner { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; }
.cookie-banner__text { margin: 0; flex: 1 1 420px; font-size: 14px; color: var(--text-muted); }
.cookie-banner__text strong { color: var(--text); }
.cookie-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-btn {
  font: inherit; font-size: 14px; font-weight: 700; line-height: 1.2;
  min-width: 128px; padding: 11px 18px; border-radius: 10px; cursor: pointer;
  border: 1px solid transparent;
}
.cookie-btn--primary { background: var(--brand-500); color: #fff; }
.cookie-btn--primary:hover { background: var(--brand-600); }
.cookie-btn--secondary { background: var(--surface-tinted); color: var(--text); border-color: var(--border-strong); }
.cookie-btn--secondary:hover { background: var(--border-soft); }
.cookie-btn:focus-visible { outline: 3px solid var(--accent-200); outline-offset: 2px; }
@media (max-width: 600px) {
  .cookie-banner__actions { width: 100%; }
  .cookie-btn { flex: 1 1 0; }
}
