/* SVAN Homes Ltd — site styles
   One stylesheet for every page, light theme only. Colours are tokens on :root. */

:root {
  --bg: #fcfaf8;
  --surface: #ffffff;
  --surface-2: #f6f1ec;
  --text: #1c1917;
  --muted: #57534e;
  --line: #ece4dc;
  --brand: #c2410c;          /* orange: text, links and buttons (AA contrast on white) */
  --brand-strong: #9a3412;   /* hover */
  --brand-bright: #f97316;   /* decoration: glows, gradients */
  --brand-soft: #ffedd5;
  --accent: #4f46e5;         /* indigo: SVAN IT Services / InvoPeppol */
  --accent-soft: #e6e5fd;
  --warn-soft: #fff7ed;
  --warn-line: #fdba74;
  --shadow: 0 1px 2px rgba(28, 25, 23, .05), 0 8px 24px rgba(28, 25, 23, .06);
  --shadow-lg: 0 24px 60px rgba(28, 25, 23, .12);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1160px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 28px; } }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow.indigo { color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); color: var(--text); }
.btn-indigo { background: var(--accent); color: #fff; }
.btn-indigo:hover { filter: brightness(1.08); color: #fff; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; letter-spacing: -.01em; }
.brand:hover { color: var(--text); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand small { display: block; font-weight: 600; font-size: .7rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; line-height: 1; }
.brand span { line-height: 1.1; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .93rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer;
}
.icon-btn svg { width: 18px; height: 18px; }
.menu-toggle { display: none; }

@media (max-width: 880px) {
  .menu-toggle { display: inline-grid; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px; box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; border-radius: 10px; }
  .nav-actions .btn { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 680px; z-index: -1;
  background:
    radial-gradient(40% 50% at 20% 40%, color-mix(in srgb, var(--brand-bright) 26%, transparent), transparent 70%),
    radial-gradient(35% 45% at 80% 30%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
  filter: blur(10px);
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }
.hero h1 .grad {
  background: linear-gradient(90deg, var(--brand-bright), var(--brand) 45%, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: 20px;
}
.pill b { background: var(--brand-soft); color: var(--brand); padding: 2px 8px; border-radius: 999px; font-size: .75rem; }

.hero-visual { position: relative; min-height: 380px; }
.glass {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.hv-card-a { position: relative; padding: 20px; z-index: 1; }
.hv-card-b { position: absolute; right: -8px; bottom: -28px; width: 62%; padding: 16px; z-index: 2; }
@media (max-width: 560px) { .hv-card-b { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 16px; } }
.hv-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-weight: 700; font-size: .9rem; }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.prop-row { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: .88rem; }
.prop-thumb { width: 52px; height: 40px; border-radius: 8px; background: linear-gradient(135deg, var(--brand-soft), var(--surface-2)); display: grid; place-items: center; color: var(--brand); }
.prop-thumb svg { width: 22px; height: 22px; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); white-space: nowrap; }
.tag.indigo { background: var(--accent-soft); color: var(--accent); }
.tag.grey { background: var(--surface-2); color: var(--muted); }
.inv-line { display: flex; justify-content: space-between; font-size: .84rem; padding: 6px 0; color: var(--muted); }
.inv-line strong { color: var(--text); }
.status-track { display: flex; gap: 6px; margin-top: 12px; }
.status-track span { flex: 1; height: 6px; border-radius: 999px; background: var(--accent); }
.status-track span.off { background: var(--line); }

/* ---------- sections ---------- */
section { padding: 88px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 44px; }

.logos { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: center; color: var(--muted); font-weight: 700; font-size: .9rem; padding: 28px 0 0; }
.logos span { display: inline-flex; align-items: center; gap: 8px; }
.logos svg { width: 18px; height: 18px; color: var(--brand); }

.grid-2 { display: grid; gap: 24px; }
.grid-3 { display: grid; gap: 20px; }
.grid-4 { display: grid; gap: 20px; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--brand-soft); color: var(--brand);
}
.card .icon.indigo { background: var(--accent-soft); color: var(--accent); }
.card .icon svg { width: 22px; height: 22px; }

.division { position: relative; overflow: hidden; padding: 34px; }
.division::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand-bright) 20%, transparent), transparent);
}
.division.it::after { background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent); }
.division ul { padding: 0; margin: 18px 0 24px; list-style: none; display: grid; gap: 10px; }
.division li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.division li svg { width: 20px; height: 20px; flex: none; color: var(--brand); margin-top: 2px; }
.division.it li svg { color: var(--accent); }

.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } .split.reverse > :first-child { order: 2; } }

.checklist { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.checklist .tick { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.checklist .tick svg { width: 16px; height: 16px; }
.checklist b { display: block; }
.checklist span { color: var(--muted); font-size: .95rem; }

.steps { counter-reset: step; }
.step { position: relative; padding-top: 52px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0; font-weight: 800; font-size: 1.6rem; color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.mock-app { padding: 0; overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: .8rem; color: var(--muted); }
.mock-body { padding: 18px; display: grid; gap: 10px; }
.mock-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: .88rem; }
.mock-row .amt { font-variant-numeric: tabular-nums; font-weight: 700; }
@media (max-width: 480px) { .mock-row { grid-template-columns: 1fr auto; } .mock-row .amt { display: none; } }

.notice {
  border: 1px solid var(--warn-line); background: var(--warn-soft); border-radius: var(--radius-sm);
  padding: 14px 16px; font-size: .9rem; color: var(--text);
}

/* ---------- newsletter ---------- */
.newsletter {
  position: relative; overflow: hidden; border-radius: 24px; padding: 48px 28px;
  /* deep oranges so the white text keeps its contrast */
  background: linear-gradient(135deg, #c2410c 0%, #9a3412 60%, #7c2d12 100%);
  color: #fff;
}
.newsletter h2 { color: #fff; }
.newsletter p { color: rgba(255, 255, 255, .86); }
.newsletter-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .newsletter { padding: 56px; } .newsletter-grid { grid-template-columns: 1.1fr 1fr; } }
.nl-form { display: grid; gap: 12px; }
.nl-fields { display: flex; gap: 10px; flex-wrap: wrap; }
.nl-fields input[type="email"] {
  flex: 1 1 220px; min-width: 0; padding: 14px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .14); color: #fff; font: inherit;
}
.nl-fields input::placeholder { color: rgba(255, 255, 255, .7); }
.nl-fields input:focus { outline: 3px solid rgba(255, 255, 255, .6); outline-offset: 2px; }
.nl-fields .btn { background: #fff; color: #9a3412; }
.nl-fields .btn:hover { background: #fff7ed; color: #7c2d12; }
.nl-topics { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; }
.nl-topics label, .nl-consent { display: inline-flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.nl-consent { font-size: .82rem; color: rgba(255, 255, 255, .86); }
.nl-consent a { color: #fff; }
.nl-form input[type="checkbox"] { width: 16px; height: 16px; margin-top: 3px; accent-color: #fff; flex: none; }
.nl-msg { min-height: 1.4em; font-weight: 600; font-size: .92rem; }
.nl-msg.error { color: #ffe1e1; }
.nl-sample { font-size: .75rem; opacity: .75; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .9fr 1.1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.contact-list .icon { margin: 0; width: 40px; height: 40px; }
.contact-list b { display: block; font-size: .85rem; color: var(--muted); font-weight: 600; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.form input, .form select, .form textarea {
  font: inherit; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); width: 100%;
}
.form textarea { min-height: 140px; resize: vertical; }
.form .row { display: grid; gap: 14px; }
@media (min-width: 600px) { .form .row { grid-template-columns: 1fr 1fr; } }

/* ---------- legal pages ---------- */
.page-hero { padding: 64px 0 32px; border-bottom: 1px solid var(--line); background: var(--surface); }
.page-hero p { color: var(--muted); margin: 0; }
.legal { display: grid; gap: 40px; padding: 48px 0 88px; }
@media (min-width: 960px) { .legal { grid-template-columns: 240px 1fr; } }
.toc { position: sticky; top: 92px; align-self: start; font-size: .9rem; }
.toc b { display: block; margin-bottom: 10px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--text); }
@media (max-width: 959px) { .toc { position: static; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; } }
.prose { max-width: 74ch; }
.prose h2 { font-size: 1.45rem; margin-top: 2em; scroll-margin-top: 92px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 1em 0 1.5em; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--surface-2); font-weight: 700; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 64px 0 28px; font-size: .92rem; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr repeat(4, 1fr); } }
.footer-grid > :first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-grid > :first-child { grid-column: auto; } }
.footer-grid h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--text); text-decoration: none; }
.footer-grid a:hover { color: var(--brand); }
.social { display: flex; gap: 8px; margin-top: 18px; }
.social a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--muted); }
.social a:hover { color: var(--brand); border-color: var(--brand); }
.social svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: var(--muted); font-size: .82rem; }
.footer-bottom p { margin: 0; max-width: 80ch; }

/* ---------- cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 520px;
  padding: 18px; display: none; gap: 12px; font-size: .9rem;
}
.cookie-banner.show { display: grid; }
.cookie-banner p { margin: 0; color: var(--muted); }
.cookie-banner .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-banner .btn { padding: 9px 16px; font-size: .85rem; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn { transition: none; }
}
