/* ============================================================
   Linna Kinnisvara — CMS template stylesheet
   Ported from the standalone /linnakinnisvara build.
   ============================================================ */
:root {
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    --ink: #0F172A;
    --ink-light: #334155;
    --ink-muted: #64748B;
    --blue: #7BA7D9;
    --blue-dark: #5A85B5;
    --brass: #C5A059;
    --line: rgba(15, 23, 42, 0.05);
    --line-strong: rgba(15, 23, 42, 0.1);
    --font-main: 'Manrope', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container--narrow { max-width: 900px; }

/* ---------- Nav ---------- */
.site-nav {
    background-color: var(--bg-white);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: box-shadow .3s;
}
.site-nav.scrolled { box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06); }
.nav-container { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 80px; width: auto; object-fit: contain; }
.logo-text { font-weight: 800; font-size: 1.25rem; color: var(--ink); }
.nav-links { display: flex; align-items: center; }
.nav-links a, .nav-cta {
    color: var(--ink-light); text-decoration: none; margin-left: 2rem;
    font-size: 0.9rem; font-weight: 600; transition: color 0.3s; position: relative;
}
.nav-links a:hover, .nav-cta:hover { color: var(--blue); }
.nav-links a.is-active, .nav-cta.is-active { color: var(--blue); }
.nav-links a.is-active::after, .nav-cta.is-active::after {
    content: ''; position: absolute; left: 0; bottom: -8px; width: 100%; height: 2px; background-color: var(--blue);
}

.nav-toggle {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; background: none; border: none; cursor: pointer; padding: 10px;
}
.nav-toggle-bar { display: block; width: 100%; height: 2px; background-color: var(--ink); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle.open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 1rem 2.5rem; font-weight: 800; font-size: 0.95rem; text-transform: uppercase;
    letter-spacing: 1px; border-radius: 4px; text-decoration: none; transition: all 0.3s ease;
    cursor: pointer; border: 2px solid transparent; font-family: inherit;
}
.btn-lg { padding: 1.1rem 2.75rem; }
.btn-primary { background-color: var(--blue); color: var(--bg-white); }
.btn-primary:hover { background-color: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(123, 167, 217, 0.25); color: #fff; }
.btn-brass { background-color: var(--brass); color: var(--bg-white); }
.btn-brass:hover { background-color: #b08e4a; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(197, 160, 89, 0.25); color: #fff; }
.btn-secondary { background-color: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-secondary:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-light); transform: translateY(-2px); color: #fff; }

/* ---------- Hero (skyline) ---------- */
.hero-skyline { position: relative; }
.skyline-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 700px; z-index: 0; pointer-events: none; overflow: hidden; }
.skyline-svg { width: 100%; height: 100%; }
.hero-header { position: relative; z-index: 2; padding: 8rem 0 4rem; text-align: center; }
.hero-title { font-size: 4rem; font-weight: 800; color: var(--ink); margin-bottom: 1rem; letter-spacing: -1px; line-height: 1.05; }
.hero-subtitle { font-size: 1.25rem; color: var(--ink-light); max-width: 600px; margin: 0 auto; }

/* ---------- Two doors ---------- */
.two-doors-fork { position: relative; z-index: 2; padding: 2rem 0 6rem; }
.doors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.door-panel {
    background-color: var(--bg-white); border: 1px solid var(--line); padding: 4rem 3rem;
    text-decoration: none; color: var(--ink); border-radius: 4px;
    transition: transform 0.3s, box-shadow 0.3s; position: relative; overflow: hidden;
}
.door-panel::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background-color: var(--blue); }
.door-panel.accent-brass::before { background-color: var(--brass); }
.door-panel:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08); }
.door-label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 800; color: var(--blue); display: block; margin-bottom: 1.5rem; }
.door-panel.accent-brass .door-label { color: var(--brass); }
.door-title { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; line-height: 1.2; }
.door-desc { font-size: 1.05rem; color: var(--ink-light); margin-bottom: 2.5rem; }
.door-action { font-weight: 600; font-size: 1rem; display: inline-flex; align-items: center; color: var(--blue); }
.door-panel.accent-brass .door-action { color: var(--brass); }

/* ---------- Trust beat ---------- */
.trust-beat { background-color: var(--bg-white); padding: 6rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); text-align: center; gap: 2rem; }
.trust-value { display: block; font-size: 2.5rem; font-weight: 800; color: var(--ink); margin-bottom: 0.5rem; }
.trust-label { font-size: 0.9rem; color: var(--ink-light); text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Page header (dark clip) ---------- */
.page-header { padding: 6rem 0 8rem; background-color: var(--ink); color: var(--bg-white); position: relative; z-index: 2; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 4vw)); margin-bottom: 3rem; }
.page-label { display: block; font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: var(--brass); margin-bottom: 1rem; }
.page-title { font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -1px; color: var(--bg-white); }
.page-desc { font-size: 1.15rem; color: #94A3B8; max-width: 700px; line-height: 1.8; }

/* ---------- General sections ---------- */
.section-pad { padding: 5rem 0; }
.bg-white { background-color: var(--bg-white); }
.section-title { font-size: 2.25rem; font-weight: 800; margin-bottom: 3rem; letter-spacing: -0.5px; line-height: 1.15; }
.section-intro { color: var(--ink-light); font-size: 1.1rem; margin-bottom: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.grid-2.media-left { direction: rtl; }
.grid-2.media-left > * { direction: ltr; }

/* ---------- Feature split ---------- */
.feat-list { list-style: none; padding: 0; color: var(--ink-light); font-size: 1.05rem; margin-top: 1.5rem; }
.feat-list li { display: flex; gap: 0.75rem; margin-bottom: 1rem; align-items: flex-start; }
.feat-list svg { flex-shrink: 0; width: 22px; height: 22px; stroke: var(--blue); margin-top: 2px; }
.feat-list strong { color: var(--ink); }
.split-img { width: 100%; height: auto; border-radius: 4px; box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1); }

/* ---------- Process steps (editorial timeline: pidev joon + terav sõlm + suur number) ---------- */
.section-eyebrow { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 800; color: var(--ink-light); margin-bottom: .8rem; }
.section-eyebrow--blue { color: var(--blue); }
.section-title--flush { text-align: left; margin-bottom: 3.5rem; }

.process-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 3.5rem); position: relative; }
.process-track::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: rgba(15, 23, 42, 0.1); }
.process-step { position: relative; padding-top: 2.2rem; }
.process-step::before { content: ''; position: absolute; top: -5px; left: 0; width: 12px; height: 12px; background: var(--blue); }
.process-num { display: block; font-size: clamp(2.4rem, 4vw, 3rem); font-weight: 800; line-height: 1; letter-spacing: -1px; color: var(--blue); margin-bottom: 1rem; font-variant-numeric: tabular-nums; }
.process-h3 { font-size: 1.3rem; font-weight: 800; color: var(--ink); margin-bottom: .6rem; }
.process-p { color: var(--ink-light); font-size: 1rem; }

@media (max-width: 720px) {
    .process-track { grid-template-columns: 1fr; gap: 0; }
    .process-track::before { display: none; }
    .process-step { padding: 1.6rem 0 1.6rem 2rem; }
    .process-step::before { top: 1.9rem; }
    .process-step + .process-step { border-top: 1px solid rgba(15, 23, 42, 0.08); }
}

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.team-member img { width: 100%; height: 350px; object-fit: cover; border-radius: 4px; margin-bottom: 1rem; background-color: #e2e8f0; }
.team-ph { width: 100%; height: 350px; display: flex; align-items: center; justify-content: center; background: #e2e8f0; color: var(--ink-muted); font-weight: 600; border-radius: 4px; margin-bottom: 1rem; }
.team-name { font-weight: 800; font-size: 1.25rem; margin-bottom: 0.25rem; }
.team-role { color: var(--blue); font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- CTA band ---------- */
.cta-band { padding: 6rem 0; text-align: center; }
.cta-inner { max-width: 600px; margin: 0 auto; }
.cta-band h2 { font-size: 2.25rem; font-weight: 800; margin-bottom: 1.25rem; letter-spacing: -0.5px; }
.cta-band p { color: var(--ink-light); font-size: 1.15rem; margin-bottom: 2.5rem; }

/* ---------- Contact form ---------- */
/* Pulled up under the page-header diagonal (top) and the photo bleeds 150px below
   so it also fills the footer diagonal (bottom) — matches the standalone build. */
.contact-hero { position: relative; width: 100%; display: flex; padding: 4rem 0; margin-top: calc(-4vw - 3rem); }
.contact-hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: -150px; background-size: cover; background-position: center; z-index: 0; }
.contact-hero .overlay { position: absolute; top: 0; left: 0; right: 0; bottom: -150px; background: rgba(15, 23, 42, 0.55); z-index: 1; }
.contact-hero-inner { position: relative; width: 100%; display: flex; justify-content: flex-end; z-index: 10; }
.contact-card { width: 100%; max-width: 560px; background: #fff; box-shadow: -10px 0 30px rgba(0,0,0,0.12); border-radius: 4px; overflow: hidden; }
.contact-card-head { padding: 3rem 3rem 1rem; }
.contact-card-head h2 { font-size: 2.25rem; color: var(--ink); font-weight: 800; margin-bottom: 0.5rem; line-height: 1.1; letter-spacing: -0.5px; }
.contact-card-head p { color: var(--ink-light); }
.contact-meta { margin-top: 1.5rem; font-size: 0.95rem; line-height: 1.9; color: var(--ink-light); }
.contact-meta strong { color: var(--ink); }
.contact-meta a { color: var(--blue); text-decoration: none; }
.contact-form { padding: 1.5rem 3rem 3rem; display: flex; flex-direction: column; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.field input, .field textarea, .field select {
    border: 1px solid var(--line-strong); border-radius: 4px; padding: 0.9rem 1rem;
    font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff; outline: none; transition: all 0.25s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(123, 167, 217, 0.15); }
.field textarea { resize: vertical; min-height: 120px; }
.field input.input-error, .field textarea.input-error { border-color: #DC2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12); }
.field-error { color: #DC2626; font-size: 0.85rem; font-weight: 600; }
.form-msg { padding: 1rem 1.25rem; border-radius: 4px; font-weight: 600; }
.form-msg.ok { background: rgba(22, 163, 74, 0.1); color: #15803D; }
.form-msg.err { background: rgba(220, 38, 38, 0.1); color: #B91C1C; }
.contact-editor-ph { background: var(--bg-light); border: 1px solid var(--line); border-radius: 8px; padding: 2rem; text-align: center; font-weight: 600; color: var(--ink-muted); margin: 1.5rem 3rem 3rem; }

/* ---------- Footer (dark clip) ---------- */
.site-footer { background: var(--ink); color: #fff; padding: 150px 0 50px; clip-path: polygon(0 20%, 100% 0, 100% 100%, 0 100%); position: relative; }
.footer-container { display: flex; flex-wrap: wrap; gap: 50px; justify-content: space-between; }
.f-brand { flex: 2; min-width: 280px; }
.footer-logo { height: 56px; width: auto; margin-bottom: 20px; filter: brightness(0) invert(1); opacity: 0.9; }
.f-brand .logo-text { color: #fff; display: block; margin-bottom: 20px; }
.f-brand p { font-size: 1.05rem; color: #94A3B8; max-width: 400px; }
.f-links { flex: 3; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.f-col h4 { font-size: 1.05rem; margin-bottom: 22px; color: var(--bg-light); border-bottom: 2px solid var(--blue); padding-bottom: 10px; display: inline-block; font-weight: 800; }
.f-col ul { list-style: none; }
.f-col li { margin-bottom: 14px; }
.f-col a { color: #fff; text-decoration: none; opacity: 0.8; transition: opacity 0.3s, transform 0.3s, color 0.3s; display: inline-block; }
.f-col a:hover { opacity: 1; transform: translateX(5px); color: var(--blue); }
.f-contact { color: #bae6fd; line-height: 1.9; }
.f-bottom { width: 100%; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; margin-top: 50px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; color: #94A3B8; font-size: 0.9rem; }

/* Ideearendus backlink */
.footer-credit { display: inline-flex; flex-direction: column; align-items: flex-end; text-decoration: none; line-height: 1.2; }
.footer-credit-name {
    font-weight: 800; font-size: 1rem;
    background:
        linear-gradient(100deg, transparent 40%, rgba(255,255,255,.9) 50%, transparent 60%),
        linear-gradient(90deg, var(--blue), var(--brass));
    background-size: 200% 100%, 100% 100%;
    background-position: 200% 0, 0 0;
    background-clip: text; -webkit-background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
}
.footer-credit-sub { font-size: 0.75rem; color: #64748B; font-weight: 400; }
.footer-credit:hover .footer-credit-name { animation: credit-glimmer 0.9s ease forwards; }
@keyframes credit-glimmer { from { background-position: 200% 0, 0 0; } to { background-position: -100% 0, 0 0; } }
@media (prefers-reduced-motion: reduce) { .footer-credit:hover .footer-credit-name { animation: none; } }

/* ---------- Blog (Turuülevaated) ---------- */
.blog-hero { background: var(--ink); color: #fff; padding: 5rem 0 7rem; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 4vw)); margin-bottom: 3rem; }
.blog-hero h1 { font-size: 3rem; font-weight: 800; letter-spacing: -1px; margin-bottom: 1rem; }
.blog-hero p { color: #94A3B8; max-width: 640px; font-size: 1.1rem; }
.blog-breadcrumb { display: flex; gap: 0.5rem; font-size: 0.85rem; color: #94A3B8; margin-bottom: 1.5rem; }
.blog-breadcrumb a { color: var(--blue); text-decoration: none; }
.blog-section { padding: 1rem 0 5rem; }
.blog-cats { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.5rem; }
.blog-cat-chip { padding: 0.5rem 1.25rem; border: 1px solid var(--line-strong); border-radius: 99px; font-size: 0.9rem; font-weight: 600; text-decoration: none; color: var(--ink-light); transition: all 0.25s; }
.blog-cat-chip:hover { border-color: var(--blue); color: var(--blue); }
.blog-cat-chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; }
.blog-card { background: var(--bg-white); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; transition: box-shadow 0.3s, transform 0.3s; display: flex; flex-direction: column; }
.blog-card:hover { box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08); transform: translateY(-3px); }
.blog-card__img-link img { width: 100%; height: 200px; object-fit: cover; }
.blog-card__body { padding: 1.75rem; display: flex; flex-direction: column; flex: 1; }
.blog-card__cat { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--brass); }
.blog-card__date { font-size: 0.85rem; color: var(--ink-muted); margin: 0.35rem 0; }
.blog-card__title { font-size: 1.25rem; font-weight: 800; margin-bottom: 0.5rem; line-height: 1.3; }
.blog-card__title a { color: var(--ink); text-decoration: none; }
.blog-card__title a:hover { color: var(--blue); }
.blog-card__excerpt { color: var(--ink-light); font-size: 1rem; margin-bottom: 1rem; }
.blog-card__more { margin-top: auto; color: var(--blue); font-weight: 700; text-decoration: none; }
.blog-pagination { display: flex; gap: 0.5rem; justify-content: center; margin-top: 3rem; }
.blog-page-btn { padding: 0.6rem 1rem; border: 1px solid var(--line-strong); border-radius: 4px; text-decoration: none; color: var(--ink-light); font-weight: 700; }
.blog-page-btn.is-active { background: var(--blue); color: #fff; border-color: var(--blue); }
.blog-empty { text-align: center; padding: 4rem 0; color: var(--ink-light); }
.blog-post-cat { display: inline-block; font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--brass); margin-bottom: 0.75rem; }
.blog-post-wrap { max-width: 820px; }
.blog-post-cover img { width: 100%; height: auto; border-radius: 4px; margin-bottom: 2.5rem; }
.blog-post-body { font-size: 1.15rem; line-height: 1.85; color: var(--ink-light); }
.blog-post-body h2 { color: var(--ink); font-size: 1.9rem; margin: 2.5rem 0 1.25rem; font-weight: 800; letter-spacing: -0.5px; }
.blog-post-body p { margin-bottom: 1.5rem; }
.blog-related { margin-top: 4rem; }
.blog-related__title { font-size: 1.75rem; font-weight: 800; margin-bottom: 1.5rem; }
.blog-post-cta { margin-top: 4rem; background: var(--bg-white); border: 1px solid var(--line); border-radius: 8px; padding: 2.5rem; }
.blog-post-cta h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.75rem; }
.blog-post-cta p { color: var(--ink-light); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .f-links { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .nav-toggle { display: flex; }
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
        background-color: var(--bg-white); border-bottom: 1px solid var(--line-strong);
        box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08); padding: 0.5rem 0;
    }
    .nav-links.open { display: flex; }
    .nav-links a { margin-left: 0; padding: 0.9rem 2rem; font-size: 1rem; min-height: 44px; display: flex; align-items: center; }
    .nav-links a.is-active::after, .nav-cta.is-active::after { display: none; }
    .nav-links a.is-active, .nav-cta.is-active { background-color: rgba(123, 167, 217, 0.1); }
    .nav-cta { margin-left: 0; padding: 0.9rem 2rem; font-size: 1rem; min-height: 44px; display: flex; align-items: center; }
    .hero-title { font-size: 2.75rem; }
}
@media (max-width: 768px) {
    .grid-2, .grid-2.media-left { grid-template-columns: 1fr; gap: 2rem; direction: ltr; }
    .page-title { font-size: 2.25rem; }
    .blog-hero h1 { font-size: 2.25rem; }
    .contact-hero { padding: 0; margin-top: 0; }
    .contact-hero .overlay { display: none; }
    .contact-hero::before { display: none; }
    .contact-card { max-width: 100%; box-shadow: none; }
    .contact-card-head, .contact-form { padding-left: 2rem; padding-right: 2rem; }
}
/* ---------- Müügivihje (vihjetasu panel) ---------- */
.vihje-home { background: var(--bg-light); padding: clamp(3.5rem, 7vw, 6rem) 0; }
.vihje-panel {
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    padding: clamp(2.5rem, 5vw, 4rem);
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}
/* Neutral ink accent — deliberately distinct from both doors (blue=seller, brass=land) */
.vihje-panel::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--ink); }
.vihje-eyebrow { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 800; color: var(--ink); margin-bottom: 1.5rem; }
.vihje-title { font-size: clamp(1.8rem, 3.2vw, 2.35rem); font-weight: 800; line-height: 1.18; color: var(--ink); margin-bottom: 1.2rem; }
.vihje-lead { font-size: 1.05rem; color: var(--ink-light); margin-bottom: 2.2rem; }
.btn-ink { background-color: var(--ink); color: var(--bg-white); }
.btn-ink:hover { background-color: #1e293b; color: var(--bg-white); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2); }
.vihje-flow { list-style: none; margin: 0; padding: 0; }
.vihje-flow li { display: flex; gap: 1.3rem; padding: 1.15rem 0; align-items: baseline; border-top: 1px solid rgba(15, 23, 42, 0.08); }
.vihje-flow li:first-child { border-top: 0; padding-top: 0; }
.vihje-step-n { flex: none; min-width: 2.3rem; font-size: 1.7rem; font-weight: 800; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.vihje-step-txt h3 { font-size: 1.1rem; font-weight: 800; color: var(--ink); margin-bottom: .2rem; }
.vihje-step-txt p { font-size: .95rem; color: var(--ink-light); margin: 0; }
.vihje-terms { font-size: .85rem; color: var(--ink-muted); line-height: 1.6; max-width: 820px; margin: 1.8rem auto 0; }
@media (max-width: 820px) {
    .vihje-panel { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .container { padding: 0 1.25rem; }
    .site-footer { clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%); padding: 80px 0 30px; }
    .footer-container { flex-direction: column; gap: 40px; }
    .f-brand { min-width: 100%; }
    .f-links { grid-template-columns: 1fr; gap: 30px; }
    .f-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
    .footer-credit { align-items: flex-start; }
    .hero-header { padding: 5rem 0 3rem; }
    .door-panel { padding: 2.5rem 2rem; }
}

/* ==========================================================================
   CMS compatibility
   The Ideearendus CMS wraps every block in <section class="cms-block cms-block--TYPE">.
   A global `section { padding }` rule on the platform otherwise double-spaces
   every block (extra gaps, off paddings, clip-path/negative-margin seams like
   the page-header diagonal and the contact-hero pull-up breaking). Neutralise
   the wrapper so each block controls its own spacing — see koikpuhtaks build.
   ========================================================================== */
.cms-block { padding: 0; }

/* The sticky header expects to be a direct child of the page, but the CMS
   nests it inside .cms-block--navbar. On the public site, collapse that
   wrapper so the header's sticky positioning works page-wide. In the editor
   we keep the wrapper box so block selection still works. */
body:not(.cms-edit-mode) .cms-block--navbar { display: contents; }
