/* BudgetSpaceAI — static SEO landing pages (frontend/public/hr/**). Standalone stylesheet: these pages are
   plain HTML served straight from nginx (no React, no bundle), so this file carries the whole look. It mirrors
   the app's warm-stone / navy / copper brand from src/styles.css, but is self-contained on purpose.
   No inline JavaScript anywhere on these pages — CSP allows only self scripts, and there are none. */

:root {
  --font-display: 'Bricolage Grotesque', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;

  /* Warm interior palette — same family as the app. Navy is the one action colour; copper is the small brand
     accent and the "budget fill"; sage marks positive/covered. */
  --bg: #ECE6DC;
  --surface: #FBF9F5;
  --surface-2: #F3EEE4;
  --ink: #1B1813;
  --ink-soft: #3B362E;
  --muted: #6E675C;
  --navy: #22303C;
  --navy-hover: #1A2732;
  --navy-soft: #4E6373;
  --copper: #A5623F;
  --copper-strong: #8A4E30;
  --copper-tint: #C98A63;
  --copper-soft: #EAD6C6;
  --sage: #5F6E52;
  --sage-tint: #7C8A6C;
  --border: #D9CFC0;
  --border-strong: #C4B7A4;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --reading: min(760px, 100% - 40px);

  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  /* A very soft warm depth so large empty areas don't read as a flat beige slab — low-contrast, never yellow. */
  background:
    radial-gradient(circle at 0 0, rgba(165, 98, 63, 0.05), transparent 30rem),
    linear-gradient(180deg, #F1ECE3 0%, var(--bg) 46%, #E4DDD2 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

a { color: inherit; }

strong { font-weight: 600; }

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ── Header ───────────────────────────────────────────────────────────────── */
/* The header sits on a copper "budget fill" edge — the app's signature line, carried onto the landing pages. */
.site-header {
  border-bottom: 1px solid var(--border);
  box-shadow: inset 0 -3px 0 var(--copper);
  background: rgba(251, 249, 245, 0.7);
  backdrop-filter: blur(8px);
}

.site-header-inner {
  width: var(--reading);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  height: 34px;
  width: auto;
  display: block;
  border-radius: 6px;
}

.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-word .accent { color: var(--copper); }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 13px 20px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn .arrow { transition: transform 0.18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--navy);
  color: #F7F2EA;
}
.btn-primary:hover { background: var(--navy-hover); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--navy); background: var(--surface); }

.btn-header {
  padding: 10px 16px;
  font-size: 0.94rem;
  background: var(--navy);
  color: #F7F2EA;
  border-radius: var(--r-sm);
}
.btn-header:hover { background: var(--navy-hover); }

/* ── Layout / sections ────────────────────────────────────────────────────── */
main { display: block; }

.wrap {
  width: var(--reading);
  margin: 0 auto;
}

.hero { padding: 56px 0 8px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-strong);
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(2rem, 4.6vw + 0.6rem, 2.95rem);
  line-height: 1.08;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-top: 18px;
  max-width: 40ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.section { padding: 30px 0; }

.section + .section { border-top: 1px solid var(--border); }

h2 {
  font-size: clamp(1.4rem, 2.4vw + 0.4rem, 1.85rem);
  line-height: 1.15;
  margin-bottom: 6px;
}

.section-lede {
  color: var(--muted);
  margin-bottom: 18px;
}

/* Vertical rhythm inside prose blocks without per-element margins fighting each other. */
.prose > * + * { margin-top: 14px; }
.prose h3 {
  font-size: 1.12rem;
  margin-top: 24px;
  letter-spacing: -0.01em;
}

/* ── Budget-allocation signature ──────────────────────────────────────────── */
/* The one bold element: an honest, example split of a budget across a space. Each segment's flex-grow IS its
   euro figure, so the widths are literally proportional to the money — set inline on each page. */
.alloc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  margin: 26px 0 4px;
  box-shadow: 0 1px 2px rgba(45, 31, 14, 0.05), 0 12px 26px rgba(45, 31, 14, 0.06);
}

.alloc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 14px;
}

.alloc-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.alloc-total {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.alloc-bar {
  display: flex;
  width: 100%;
  height: 34px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--border-strong);
}

.alloc-bar span {
  display: block;
  min-width: 3px;
}

.seg-navy { background: var(--navy); }
.seg-copper { background: var(--copper); }
.seg-sage { background: var(--sage); }
.seg-clay { background: var(--copper-tint); }
.seg-slate { background: var(--navy-soft); }

.alloc-legend {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px 20px;
}

.alloc-legend li {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-size: 0.96rem;
}

.swatch {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  transform: translateY(1px);
}

.alloc-legend .room { color: var(--ink-soft); }

.alloc-legend .amount {
  margin-left: auto;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.alloc-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ── Two-column key/value cards (used for "kupi odmah / uskoro / kasnije" summaries) ── */
.cardgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px 18px 20px;
}

.card h3 {
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
}

.card li + li { margin-top: 5px; }

.card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.tag-now { background: var(--copper-soft); color: var(--copper-strong); }
.tag-soon { background: #E5E1D3; color: var(--ink-soft); }
.tag-later { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }

/* ── Timeline (page 3: odmah / uskoro / kasnije is a real sequence) ─────────── */
.timeline {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  counter-reset: step;
}

.timeline > li {
  position: relative;
  padding: 0 0 22px 40px;
  counter-increment: step;
}

.timeline > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--navy);
  color: #F7F2EA;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  display: grid;
  place-items: center;
}

.timeline > li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 12.5px;
  top: 30px;
  bottom: 2px;
  width: 1px;
  background: var(--border-strong);
}

.timeline h3 {
  font-size: 1.08rem;
  margin: 2px 0 6px;
}

.timeline p { color: var(--ink-soft); }

/* ── Closing CTA band ─────────────────────────────────────────────────────── */
.cta-band {
  margin: 34px 0 0;
  background: var(--navy);
  color: #EFE7DB;
  border-radius: var(--r-lg);
  padding: 34px 30px;
  text-align: center;
}

.cta-band h2 { color: #FBF6EE; }

.cta-band p {
  color: #CFCabd;
  margin: 10px auto 22px;
  max-width: 44ch;
}

.cta-band .btn-primary {
  background: var(--copper);
  color: #FBF6EE;
}
.cta-band .btn-primary:hover { background: var(--copper-strong); }

/* ── Related pages (internal links) ───────────────────────────────────────── */
.related { padding: 34px 0 10px; }

.related-title {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.related-list a {
  display: block;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 15px 16px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.related-list a:hover {
  border-color: var(--navy);
  transform: translateY(-1px);
}

.related-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 3px;
}

.related-list span {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 44px;
  padding: 26px 0 40px;
}

.site-footer-inner {
  width: var(--reading);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }
.site-footer a:hover { color: var(--navy); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 560px) {
  body { font-size: 1.02rem; }
  .hero { padding: 38px 0 4px; }
  .alloc { padding: 18px; }
  .alloc-total { font-size: 1.3rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cta-band { padding: 26px 20px; }
}

/* ── Motion / accessibility floor ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
