/* hlvaot.co.il — single hand-written stylesheet. Zero frameworks.
 * Brand: orange-red (#FE4500) + warm cream (#FDF1EC) + ink black.
 * Hebrew RTL, mobile-first, optimized for SEO + readability.
 */

:root {
  --primary:        #FE4500;
  --primary-dk:     #D63A00;
  --primary-lt:     #FF6B33;
  --primary-soft:   rgba(254,69,0,0.08);
  --cream:          #FDF1EC;
  --ink:            #1A1A1A;
  --text:           #2D2D2D;
  --muted:          #6B7280;
  --border:         #E8E0DA;
  --border-strong:  #D9CCC0;
  --accent:         #229136;
  --bg:             #FFFFFF;
  --bg-alt:         #FAF7F4;
  --black:          #0A0A0A;

  --radius:         12px;
  --radius-lg:      18px;
  --radius-sm:      8px;
  --shadow-sm:      0 1px 2px rgba(254,69,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md:      0 4px 16px rgba(254,69,0,0.10), 0 2px 6px rgba(0,0,0,0.05);
  --shadow-lg:      0 12px 32px rgba(254,69,0,0.14), 0 4px 12px rgba(0,0,0,0.06);

  --font:           'Heebo', 'Assistant', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container:      1180px;
  --container-narrow: 800px;
  --header-h:       72px;
}

/* ═══ RESET ═══ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body {
  min-height: 100%;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}
@supports (overflow-x: clip) { html, body { overflow-x: clip; } }

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  transform: translateZ(0);
  scroll-padding-top: var(--header-h);
}

img, picture, video, iframe { max-width: 100%; height: auto; display: block; }
iframe { border: 0; }
a { color: var(--primary); text-decoration: none; transition: color .12s ease; }
a:hover { color: var(--primary-dk); }
ul, ol { padding-inline-start: 22px; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

/* ═══ LAYOUT ═══ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: var(--container-narrow); }
.site-main { min-height: 60vh; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 24px;
}

/* ═══ TYPOGRAPHY ═══ */
h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: .5em;
}
h1 { font-size: clamp(28px, 4.2vw, 44px); font-weight: 800; }
h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 700; margin-top: 1.6em; }
h3 { font-size: clamp(18px, 2.2vw, 22px); font-weight: 700; margin-top: 1.4em; }
h4 { font-size: 17px; font-weight: 600; }

.section-title { font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin-bottom: 8px; }
.section-sub { color: var(--muted); margin-bottom: 28px; font-size: 17px; }

/* ═══ HEADER ═══ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img {
  height: 48px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}
@media (max-width: 640px) {
  .brand img { height: 38px; max-width: 140px; }
}
.primary-nav {
  display: flex;
  gap: 4px;
  flex: 1;
  flex-wrap: wrap;
}
.nav-link {
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: background .12s ease, color .12s ease;
}
.nav-link:hover { background: var(--primary-soft); color: var(--primary); }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dk));
  color: #fff !important;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  direction: ltr;
  font-feature-settings: "tnum" 1;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.header-phone:hover {
  color: #fff !important;
  background: linear-gradient(135deg, var(--primary-dk), var(--primary));
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.header-phone span {
  direction: ltr;
  unicode-bidi: embed;
}
.mobile-toggle { display: none; background: transparent; border: 0; padding: 8px; }
.mobile-toggle span {
  display: block; width: 24px; height: 2px; background: var(--ink);
  margin: 5px 0; border-radius: 2px; transition: transform .2s ease;
}

@media (max-width: 1024px) {
  .header-inner { gap: 16px; }
  .nav-link { padding: 8px 10px; font-size: 14px; }
}
@media (max-width: 860px) {
  .primary-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 16px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    transition: transform .25s ease;
    box-shadow: var(--shadow-md);
    gap: 0;
  }
  .primary-nav.is-open { transform: translateY(0); }
  .nav-link { padding: 14px 16px; border-radius: 0; border-bottom: 1px solid var(--border); }
  .mobile-toggle { display: block; }
  .header-phone span { display: none; }
  .header-phone { padding: 10px 12px; }
}

/* ═══ HERO FORM CARD — primary conversion point below H1 of every page ═══ */
.hero-form {
  margin: 24px 0 32px;
}
.hero-form-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.hero-form-card::before {
  content: "";
  position: absolute;
  inset: auto -60px -60px auto;
  width: 180px; height: 180px;
  background: radial-gradient(circle, var(--primary-soft) 0%, transparent 70%);
  pointer-events: none;
}
.hero-form-head { position: relative; margin-bottom: 18px; }
.hf-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.hf-title {
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
  margin: 0 0 8px;
}
.hf-sub {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}
.hf-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
  position: relative;
}
.hero-form .lf-field { margin-bottom: 0; }
.hero-form .lf-field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.hero-form .lf-field input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  background: #fff;
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  transition: border-color .12s ease, box-shadow .12s ease;
  height: 50px;
}
.hero-form .lf-field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(254,69,0,0.15);
}
.hero-form .lf-field input[type="tel"] {
  direction: ltr; text-align: right;
  font-feature-settings: "tnum" 1;
}
.hero-form .lf-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
  cursor: pointer;
  position: relative;
}
.hero-form .lf-consent input[type="checkbox"] {
  margin-top: 3px;
  width: 18px; height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}
.hero-form .lf-consent a { color: var(--primary); font-weight: 600; }
.hf-submit {
  width: 100%;
  margin-top: 16px;
  padding: 16px 28px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dk));
  color: #fff !important;
  border: 0;
  border-radius: 12px;
  font-family: var(--font);
  font-weight: 800;
  font-size: 17px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
  position: relative;
}
.hf-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.hf-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.hf-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  position: relative;
}
.hf-trust-item { display: inline-flex; align-items: center; gap: 6px; }
.hf-trust-item .ico { font-size: 15px; }

.hero-form .lf-err {
  display: none;
  margin-top: 6px;
  color: #C92A2A;
  font-size: 13px;
  font-weight: 500;
}
.hero-form .lf-err.show { display: block; }

@media (max-width: 640px) {
  .hf-fields { grid-template-columns: 1fr; gap: 12px; }
  .hero-form-card { padding: 22px 18px; }
  .hf-title { font-size: 19px; }
}

/* ═══ VIDEO EMBED (article body — YouTube etc.) ═══ */
.article-body .video-embed,
.section--longform .video-embed {
  margin: 1.5em 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-sm);
}
.article-body .video-embed iframe,
.section--longform .video-embed iframe {
  width: 100%;
  aspect-ratio: 16/9;
  height: auto;
  display: block;
  border: 0;
}

/* ═══ BREADCRUMBS ═══ */
.breadcrumbs { background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 12px 0; }
.breadcrumbs ol {
  list-style: none;
  padding: 0 24px;
  margin: 0 auto;
  max-width: var(--container);
  display: flex; flex-wrap: wrap; gap: 6px;
  font-size: 14px; color: var(--muted);
}
.breadcrumbs li { display: inline-flex; align-items: center; }
.breadcrumbs li:not(:last-child)::after {
  content: "›";
  margin: 0 8px;
  color: var(--muted);
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 500; }

/* ═══ HERO ═══ */
.hero {
  padding: clamp(48px, 8vw, 96px) 0;
  background: linear-gradient(135deg, var(--cream) 0%, #fff 60%);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% -10%, rgba(254,69,0,0.10), transparent 50%),
    radial-gradient(circle at -10% 100%, rgba(254,69,0,0.06), transparent 40%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
}
.hero h1 {
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero-text .lead { font-size: 19px; max-width: 540px; }
.hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0;
}
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  list-style: none; padding: 0; margin: 24px 0 0;
  font-size: 15px; color: var(--text); font-weight: 500;
}
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .ico {
  display: inline-flex; width: 20px; height: 20px;
  border-radius: 50%; background: var(--accent); color: #fff;
  align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
}
.hero-form-wrap {
  position: relative;
}
.hero-form-wrap .hero-form { margin: 0; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, color .12s ease;
  white-space: nowrap;
  text-decoration: none !important;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dk));
  color: #fff !important;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { box-shadow: var(--shadow-md); color: #fff !important; }
.btn-secondary {
  background: var(--ink);
  color: #fff !important;
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { background: var(--black); color: #fff !important; }
.btn-ghost {
  background: #fff;
  color: var(--ink) !important;
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--cream); color: var(--ink) !important; }
.btn-lg { padding: 18px 32px; font-size: 18px; }

/* ═══ SECTIONS ═══ */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--cats { background: #fff; }
.section--calc { background: linear-gradient(180deg, #fff 0%, var(--cream) 100%); }
.section--posts { background: var(--bg-alt); }
.section--related { background: var(--bg-alt); padding-top: 64px; padding-bottom: 80px; }
.section--longform {
  background: #fff;
  padding-top: 64px;
  padding-bottom: 80px;
}
.section--longform .article-body { font-size: 17px; line-height: 1.85; }
.section--longform .article-body > p:first-child { font-size: 19px; color: var(--ink); font-weight: 500; }
.section--longform .article-body h2:first-of-type { margin-top: 0; }

.page-header { text-align: right; margin-bottom: 40px; max-width: 820px; }

/* ═══ CATEGORY CARDS ═══ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.cat-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  text-decoration: none !important;
  position: relative;
  overflow: hidden;
}
.cat-card::after {
  content: "";
  position: absolute; inset: auto -40px -40px auto;
  width: 120px; height: 120px;
  background: var(--primary-soft);
  border-radius: 50%;
  transition: transform .25s ease;
}
.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-lt);
}
.cat-card:hover::after { transform: scale(1.4); }
.cat-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dk));
  color: #fff;
  border-radius: 12px;
  font-size: 24px;
  margin-bottom: 16px;
  position: relative; z-index: 1;
}
.cat-card__title { font-size: 19px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.cat-card__desc { font-size: 14px; color: var(--muted); margin-bottom: 16px; flex: 1; }
.cat-card__cta { font-size: 14px; font-weight: 700; color: var(--primary); }

/* ═══ POST CARDS ═══ */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.post-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
  text-decoration: none !important;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post-card__media {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--cream);
}
.post-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; }
.post-card__cat {
  display: inline-block; align-self: flex-start;
  padding: 3px 10px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary);
  font-size: 12px; font-weight: 700; margin-bottom: 10px;
}
.post-card__title {
  font-size: 17px; font-weight: 700; color: var(--ink);
  line-height: 1.4; margin: 0 0 10px; flex: 1;
}
.post-card__cta {
  font-size: 14px; font-weight: 700; color: var(--primary);
  margin-top: auto;
}

/* ═══ ARTICLE ═══ */
.article { padding: 32px 0 64px; }
.article-header { margin-bottom: 24px; }
.article-header h1 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; }
.trust-strip {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  margin: 18px 0 0;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--cream), #fff);
  border: 1px solid var(--border);
  border-right: 4px solid var(--primary);
  border-radius: var(--radius);
  font-size: 14px;
}
.trust-item { display: inline-flex; align-items: center; gap: 8px; }
.trust-item .ico {
  display: inline-flex; width: 20px; height: 20px;
  border-radius: 50%; background: var(--accent); color: #fff;
  align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
}
.article-hero {
  margin: 24px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.article-hero img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* TOC */
.toc {
  margin: 28px 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.toc__header {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dk));
  color: #fff;
  border: 0;
  font-size: 17px;
  font-weight: 700;
  text-align: start;
}
.toc__chev { display: inline-block; transition: transform .2s ease; font-size: 18px; }
.toc[aria-collapsed="true"] .toc__chev { transform: rotate(-90deg); }
.toc__body {
  padding: 18px 22px;
  background: var(--cream);
  max-height: 480px;
  overflow: auto;
  transition: max-height .25s ease, padding .25s ease;
}
.toc[aria-collapsed="true"] .toc__body { max-height: 0; padding-top: 0; padding-bottom: 0; }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: c; }
.toc li { counter-increment: c; margin: 6px 0; }
.toc li a {
  display: block;
  padding: 8px 12px 8px 36px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  transition: background .12s ease, color .12s ease, transform .12s ease;
}
.toc li a::before {
  content: counter(c) ".";
  position: absolute;
  inset-inline-end: 12px;
  color: var(--primary);
  font-weight: 700;
}
.toc li a:hover { background: #fff; color: var(--primary); transform: translateX(-2px); }
.toc li ol { padding-inline-start: 24px; margin: 4px 0; }

/* Article body */
.article-body { font-size: 17px; line-height: 1.85; color: var(--text); }
.article-body > * + * { margin-top: 1em; }
.article-body h2 { margin-top: 2em; padding-bottom: 8px; border-bottom: 2px solid var(--border); }
.article-body h3 { color: var(--ink); margin-top: 1.5em; }
.article-body p { margin: 0; }
.article-body p + p { margin-top: 1em; }
.article-body ul, .article-body ol { padding-inline-start: 28px; }
.article-body li { margin: .35em 0; }
.article-body a { font-weight: 600; }
.article-body a:hover { text-decoration: underline; }
.article-body a.internal-link {
  color: var(--primary);
  border-bottom: 1px dashed var(--primary-lt);
  text-decoration: none;
}
.article-body a.internal-link:hover { background: var(--primary-soft); }
.article-body strong { color: var(--ink); font-weight: 700; }
.article-body img {
  margin: 1.5em 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.article-body blockquote {
  margin: 1.5em 0;
  padding: 16px 24px;
  background: var(--cream);
  border-right: 4px solid var(--primary);
  border-radius: var(--radius);
  font-style: italic;
  color: var(--ink);
}
.article-body iframe {
  width: 100%;
  aspect-ratio: 16/9;
  margin: 1.5em 0;
  border-radius: var(--radius);
}
.article-body table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5em 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.article-body th {
  background: linear-gradient(135deg, var(--primary), var(--primary-dk));
  color: #fff;
  padding: 14px 16px;
  text-align: right;
  font-weight: 700;
  font-size: .95em;
}
.article-body td {
  padding: 14px 16px;
  text-align: right;
  border-bottom: 1px solid var(--border);
  font-size: .96em;
}
.article-body tr:last-child td { border-bottom: 0; }
.article-body tbody tr:nth-child(even) td { background: var(--cream); }

.article-cta {
  margin: 48px 0 0;
  padding: 32px 28px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--black) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  text-align: center;
}
.article-cta h3 { color: #fff; font-size: 22px; margin-bottom: 8px; }
.article-cta p { color: rgba(255,255,255,0.85); margin-bottom: 20px; }

/* ═══ CALCULATOR ═══ */
.calc {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.calc-row { margin-bottom: 24px; }
.calc-row label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.calc-num {
  display: block;
  width: 100%;
  max-width: 200px;
  padding: 10px 14px;
  border: 2px solid var(--primary);
  border-radius: 10px;
  background: #fff;
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  direction: ltr;
  font-feature-settings: "tnum" 1;
  margin-bottom: 12px;
}
.calc-num:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(254,69,0,0.18);
}
input[type="range"].calc-range,
.calc input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: 999px;
  outline: none;
  direction: ltr;
}
.calc input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(to right,
    var(--primary) 0%, var(--primary) var(--v, 0%),
    var(--border) var(--v, 0%), var(--border) 100%);
}
.calc input[type="range"]::-moz-range-track {
  height: 8px; background: var(--border); border-radius: 999px;
}
.calc input[type="range"]::-moz-range-progress {
  height: 8px; background: var(--primary); border-radius: 999px;
}
.calc input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff; border: 3px solid var(--primary);
  cursor: grab; margin-top: -8px;
  box-shadow: 0 2px 8px rgba(254,69,0,0.3);
  transition: transform .1s ease;
}
.calc input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.1); }
.calc input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff; border: 3px solid var(--primary);
  cursor: grab; box-shadow: 0 2px 8px rgba(254,69,0,0.3);
}
.calc-range-labels {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--muted);
  margin-top: 6px;
  direction: ltr;
}

.calc-result {
  margin: 32px 0 24px;
  padding: 24px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--black) 100%);
  border-radius: var(--radius);
  color: #fff;
}
.calc-result__row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.calc-result__row:last-child { border-bottom: 0; padding-bottom: 0; }
.calc-result__row:first-child { padding-top: 0; }
.calc-result__row span { color: rgba(255,255,255,0.85); font-size: 16px; }
.calc-result__row strong {
  color: var(--primary-lt);
  font-size: 24px;
  font-weight: 800;
  font-feature-settings: "tnum" 1;
}
.calc-result__row:first-child strong { font-size: 28px; }

.calc-actions {
  display: flex; gap: 12px;
}
.calc-actions .btn { flex: 1; }

.calc-amort {
  margin-top: 24px;
  max-height: 400px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.calc-amort:empty { display: none; }
.calc-amort table {
  width: 100%; border-collapse: collapse; margin: 0;
}
.calc-amort thead { position: sticky; top: 0; }
.calc-amort th {
  background: var(--ink); color: #fff;
  padding: 10px 8px; font-size: 13px; font-weight: 700;
  text-align: center; border: 0;
}
.calc-amort td {
  padding: 8px 8px; font-size: 13px; text-align: center;
  border-bottom: 1px solid var(--border); color: var(--text);
}
.calc-amort tbody tr:nth-child(even) td { background: var(--cream); }

@media (max-width: 640px) {
  .calc { padding: 22px 18px; }
  .calc-actions { flex-direction: column; }
  .calc-result__row { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ═══════════════════════════════════════════════════════════
 * LEAD FORM — appears on every page
 * ═══════════════════════════════════════════════════════════ */
.lead-form-section {
  padding: clamp(48px, 6vw, 80px) 0;
  background: linear-gradient(135deg, var(--cream) 0%, #fff 100%);
}
.lead-form-section .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.lead-form-intro h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin-bottom: 12px; }
.lead-form-intro p { font-size: 17px; line-height: 1.7; color: var(--text); margin-bottom: 16px; }
.lead-form-intro .bullets {
  list-style: none; padding: 0; margin: 24px 0 0;
}
.lead-form-intro .bullets li {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 10px 0; font-size: 15px; color: var(--ink);
}
.lead-form-intro .bullets .ico {
  display: inline-flex; flex-shrink: 0; width: 22px; height: 22px;
  background: var(--accent); color: #fff; border-radius: 50%;
  align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}

.lead-form {
  background: #fff;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  position: relative;
}
.lead-form h3.lf-title {
  font-size: 21px; font-weight: 800; color: var(--ink);
  margin-bottom: 6px;
}
.lead-form p.lf-subtitle {
  font-size: 14px; color: var(--muted); margin-bottom: 18px;
}
.lf-field { margin-bottom: 14px; }
.lf-field label {
  display: block; font-size: 14px; font-weight: 600;
  color: var(--ink); margin-bottom: 6px;
}
.lf-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 16px;
  background: #fff;
  color: var(--ink);
  transition: border-color .12s ease, box-shadow .12s ease;
}
.lf-field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(254,69,0,0.15);
}
.lf-field input[type="tel"] {
  direction: ltr; text-align: right;
  font-feature-settings: "tnum" 1;
}
.lf-err {
  display: none; color: #C92A2A;
  font-size: 13px; margin-top: 4px;
}
.lf-err.show { display: block; }

.lf-consent {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 14px 0 4px;
  font-size: 13px; color: var(--text); line-height: 1.5;
  cursor: pointer;
}
.lf-consent input[type="checkbox"] {
  margin-top: 3px;
  width: 18px; height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}
.lf-consent a { color: var(--primary); }

.lf-submit {
  width: 100%;
  padding: 16px 24px;
  margin-top: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dk));
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
.lf-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.lf-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.lf-secure {
  display: flex; gap: 12px; justify-content: center;
  margin-top: 14px;
  font-size: 12px; color: var(--muted);
}
.lf-secure span::before { content: "✓"; margin-inline-end: 4px; color: var(--accent); }

/* Quiz stage 2 */
.lf-progress {
  height: 6px; background: var(--border); border-radius: 999px;
  margin-bottom: 20px; overflow: hidden;
}
.lf-progress-bar {
  height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-lt));
  border-radius: 999px;
  transition: width .25s ease;
}
.lf-step-meta {
  font-size: 13px; color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
}
.lf-step-q {
  font-size: 20px; font-weight: 700;
  color: var(--ink); margin-bottom: 18px;
  line-height: 1.35;
}
.lf-options {
  display: grid; gap: 10px;
}
.lf-option {
  display: block; width: 100%;
  padding: 14px 18px;
  background: #fff;
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  text-align: start;
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease, color .12s ease, transform .12s ease;
}
.lf-option:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
  transform: translateX(-2px);
}

/* Success */
.lf-success-box {
  text-align: center;
  padding: 16px 0;
}
.lf-success-ico {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--accent), #1A7029);
  color: #fff;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 800;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(34,145,54,0.25);
}
.lf-success-box h3 {
  font-size: 22px; color: var(--ink); margin-bottom: 8px;
}
.lf-success-box p { color: var(--text); }
.lf-success-meta { font-size: 14px; color: var(--muted); margin-top: 16px; }
.lf-success-meta a { color: var(--primary); font-weight: 600; }

@media (max-width: 860px) {
  .lead-form-section .container { grid-template-columns: 1fr; gap: 32px; }
  .lead-form-intro { order: -1; text-align: center; }
  .lead-form-intro .bullets li { justify-content: flex-start; text-align: start; }
  .lead-form { padding: 22px 18px; }
}

/* ═══ COMPACT LEAD FORM (inner pages) ═══ */
.lead-form-section--compact {
  background: #fff;
  padding: 28px 0;
}
.lead-form-section--compact .container { display: block; max-width: 920px; }
.lead-form--compact {
  background: linear-gradient(135deg, var(--cream) 0%, #fff 100%);
  border: 1px solid var(--border);
  border-right: 5px solid var(--primary);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
}
.lf-compact-head { margin-bottom: 14px; }
.lf-compact-head .lf-title { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.lf-compact-head .lf-subtitle { font-size: 14px; color: var(--muted); margin: 0; }
.lf-compact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}
.lf-compact-grid .lf-field { margin-bottom: 0; }
.lf-compact-grid .lf-submit {
  margin-top: 0;
  padding: 13px 22px;
  font-size: 15px;
  white-space: nowrap;
  height: 47px;
}
.lead-form--compact .lf-consent {
  margin-top: 14px;
  font-size: 12px;
}
.lead-form--compact .lf-secure {
  margin-top: 10px;
  font-size: 11px;
}
@media (max-width: 680px) {
  .lf-compact-grid { grid-template-columns: 1fr; gap: 10px; }
  .lf-compact-grid .lf-submit { width: 100%; height: auto; padding: 14px 22px; }
}

/* ═══ CATEGORY HERO ═══ */
.section--cat-hero {
  padding: clamp(40px, 6vw, 64px) 0 clamp(24px, 4vw, 32px);
  background: linear-gradient(135deg, var(--cream) 0%, #fff 80%);
}

/* ═══ QUIZ PAGE (25-step funnel matching loan-portfolio sites) ═══ */
.quiz-section {
  padding: clamp(40px, 6vw, 72px) 0;
  background: linear-gradient(180deg, var(--cream) 0%, #fff 100%);
  min-height: 70vh;
}
.quiz-progress {
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  margin-bottom: 18px;
  overflow: hidden;
}
.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-lt));
  border-radius: 999px;
  transition: width .3s ease;
  width: 0;
}
.quiz-meta {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: 0.06em;
}
.quiz-title {
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 10px;
  scroll-margin-top: 96px;
}
.quiz-sub {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.55;
}
.quiz-body { margin-top: 20px; }
.quiz-secure {
  margin-top: 32px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* ─── Buttons (simple choice list) ─── */
.quiz-options {
  display: grid;
  gap: 10px;
}
.quiz-opt {
  display: block;
  width: 100%;
  padding: 16px 20px;
  background: #fff;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-align: start;
  cursor: pointer;
  transition: all .12s ease;
}
.quiz-opt:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
  transform: translateX(-3px);
  box-shadow: var(--shadow-sm);
}

/* ─── Cards (BDI question) ─── */
.quiz-cards {
  display: grid;
  gap: 10px;
}
.quiz-card {
  display: block; width: 100%;
  padding: 16px 20px;
  background: #fff;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius);
  text-align: start;
  cursor: pointer;
  font-family: var(--font);
  transition: all .12s ease;
}
.quiz-card:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  transform: translateX(-3px);
  box-shadow: var(--shadow-sm);
}
.qc-label { font-size: 18px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.qc-sub { font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 4px; direction: ltr; }
.qc-desc { font-size: 13px; color: var(--muted); line-height: 1.4; }
.quiz-card:hover .qc-label { color: var(--primary); }

/* ─── Buttons + "other" text input ─── */
.quiz-other-wrap {
  display: flex; gap: 10px; margin-top: 14px;
}
.quiz-other-wrap input { flex: 1; }
.quiz-other-wrap button { flex-shrink: 0; }

/* ─── Date of birth (DD MM YYYY) ─── */
.quiz-dob {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 10px;
  direction: ltr;
  max-width: 360px;
}
.quiz-dob input {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  padding: 16px 0;
}

/* ─── Generic input ─── */
.quiz-input {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 17px;
  color: var(--ink);
  background: #fff;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.quiz-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(254,69,0,0.12);
}
.quiz-input[type="tel"], .quiz-input[type="email"] {
  direction: ltr; text-align: right;
  font-feature-settings: "tnum" 1;
}
.quiz-err {
  display: none;
  margin-top: 8px;
  color: #C92A2A;
  font-size: 14px;
  font-weight: 500;
}
.quiz-err.show { display: block; }

/* ─── Currency input ─── */
.quiz-currency {
  position: relative;
  max-width: 320px;
}
.quiz-currency .qc-prefix {
  position: absolute;
  inset-inline-end: 16px;
  top: 50%; transform: translateY(-50%);
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  pointer-events: none;
}
.quiz-currency input {
  padding-inline-end: 40px;
  font-size: 20px;
  font-weight: 700;
  direction: ltr;
  text-align: right;
  font-feature-settings: "tnum" 1;
}

/* ─── Amount slider ─── */
.quiz-slider {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 24px 20px;
  margin-bottom: 16px;
}
.qs-display {
  text-align: center;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 18px;
  font-feature-settings: "tnum" 1;
  direction: ltr;
}
.quiz-slider input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: 999px;
  outline: none;
  direction: ltr;
}
.quiz-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(to right,
    var(--primary) 0%, var(--primary) var(--v, 0%),
    var(--border) var(--v, 0%), var(--border) 100%);
}
.quiz-slider input[type="range"]::-moz-range-track {
  height: 8px; background: var(--border); border-radius: 999px;
}
.quiz-slider input[type="range"]::-moz-range-progress {
  height: 8px; background: var(--primary); border-radius: 999px;
}
.quiz-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 28px; height: 28px; border-radius: 50%;
  background: #fff; border: 4px solid var(--primary);
  cursor: grab; margin-top: -10px;
  box-shadow: 0 2px 8px rgba(254,69,0,0.3);
}
.quiz-slider input[type="range"]::-moz-range-thumb {
  width: 28px; height: 28px; border-radius: 50%;
  background: #fff; border: 4px solid var(--primary);
  cursor: grab; box-shadow: 0 2px 8px rgba(254,69,0,0.3);
}
.qs-range-labels {
  display: flex; justify-content: space-between;
  margin-top: 8px;
  font-size: 12px; color: var(--muted);
  direction: ltr;
  font-feature-settings: "tnum" 1;
}

/* ─── Next button + back link ─── */
.quiz-next-btn {
  margin-top: 16px;
  width: 100%;
  padding: 16px 28px;
  font-size: 17px;
  font-weight: 700;
}
.quiz-back-link {
  display: block;
  margin: 24px auto 0;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-family: var(--font);
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
}
.quiz-back-link:hover { color: var(--primary); }

@media (max-width: 640px) {
  .quiz-other-wrap { flex-direction: column; }
}

/* ═══ THANKS PAGE ═══ */
.thanks-section {
  padding: clamp(64px, 10vw, 120px) 0;
  background: linear-gradient(180deg, var(--cream) 0%, #fff 100%);
  min-height: 70vh;
}
.thanks-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.thanks-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dk));
  color: #fff;
  border-radius: 50%;
  font-size: 44px;
  font-weight: 800;
  margin-bottom: 24px;
  box-shadow: 0 12px 32px rgba(34,145,54,0.30);
}
.thanks-card h1 { font-size: clamp(26px, 3.6vw, 36px); margin-bottom: 12px; }
.thanks-card .lead { font-size: 18px; max-width: 540px; margin: 0 auto 28px; }
.thanks-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 28px;
  max-width: 460px;
  text-align: start;
}
.thanks-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--cream);
  border-radius: var(--radius);
  margin: 8px 0;
  font-size: 15px;
  color: var(--ink);
}
.thanks-list .ico {
  display: inline-flex; flex-shrink: 0;
  width: 24px; height: 24px;
  background: var(--accent); color: #fff;
  border-radius: 50%;
  align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.thanks-cta {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* ═══ COOKIE CONSENT BANNER (thin bottom strip) ═══ */
.cookie-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 200;
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  border-top: 2px solid var(--primary);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
  animation: cookie-slide-up .35s ease-out;
}
@keyframes cookie-slide-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.cookie-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cookie-text {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  flex: 1;
}
.cookie-ok {
  flex-shrink: 0;
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dk));
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(254, 69, 0, 0.35);
  transition: transform .12s ease, box-shadow .12s ease;
}
.cookie-ok:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(254, 69, 0, 0.45);
}
@media (max-width: 640px) {
  .cookie-inner { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 16px; }
  .cookie-text { font-size: 13px; }
  .cookie-ok { width: 100%; }
}

/* ═══ FOOTER ═══ */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.85);
  padding: 56px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col h3 {
  color: var(--primary);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-col p { color: rgba(255,255,255,0.7); font-size: 14px; line-height: 1.7; }
.footer-list { list-style: none; padding: 0; }
.footer-list li { padding: 4px 0; font-size: 14px; }
.footer-list li + li { margin-top: 2px; }
.footer-list a { color: rgba(255,255,255,0.85); }
.footer-list a:hover { color: var(--primary-lt); }
.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

/* ═══ UTILS ═══ */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
