/* Voodrilaua paigaldus — full-fidelity rebuild of /voodrilaua-paigaldus/.
   Loaded only when is_page('voodrilaua-paigaldus'), gated in inc/enqueue.php.
   All rules scoped under .nh-vp; uses tokens from main.css :root. */

/* BREADCRUMB ------------------------------------------------------ */
.nh-vp .woocommerce-breadcrumb {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 500;
    color: var(--ink-500);
    letter-spacing: 0.04em;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
}
.nh-vp .woocommerce-breadcrumb a { color: var(--ink-500); }
.nh-vp .woocommerce-breadcrumb a:hover { color: var(--green-800); }
.nh-vp .nh-cat-crumbs {
    padding-top: 24px;
    padding-bottom: 20px;
    position: relative;
}
.nh-vp .nh-cat-crumbs::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: calc(50% - 50vw);
    right: calc(50% - 50vw);
    height: 1px;
    background: var(--bone-300);
    pointer-events: none;
}

/* SHARED SECTION HEAD --------------------------------------------- */
.nh-vp .vp-section-head { margin-bottom: 32px; max-width: 760px; }
.nh-vp .vp-section-head .eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--terra-600);
    margin-bottom: 12px;
    font-weight: 600;
}
.nh-vp .vp-section-head h2 {
    font-size: clamp(28px, 3.6vw, 44px);
    line-height: 1.05;
    letter-spacing: -0.025em;
    font-weight: 800;
    margin: 0 0 14px;
    color: var(--ink-900);
    text-wrap: balance;
}
.nh-vp .vp-section-head p {
    font-size: 15px;
    color: var(--ink-700);
    line-height: 1.6;
    margin: 0;
    max-width: 640px;
}

/* HERO ------------------------------------------------------------ */
.nh-vp .vp-hero {
    padding: 56px 0 64px;
    background: var(--bone-100);
    border-bottom: 1px solid var(--bone-300);
}
.nh-vp .vp-hero__row {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 56px;
    align-items: center;
}
.nh-vp .vp-hero h1 {
    font-size: clamp(40px, 5.6vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.03em;
    font-weight: 800;
    margin: 0 0 20px;
    color: var(--ink-900);
    text-wrap: balance;
}
.nh-vp .vp-hero .dek {
    font-size: 18px;
    line-height: 1.55;
    color: var(--ink-700);
    margin: 0 0 28px;
    max-width: 560px;
}
/* Hero CTA — canonical .btn-primary (terra-500 → terra-600 hover).
   Anchors to #kalkulaator at the bottom of the page. Smooth scroll
   handled by html { scroll-behavior } below, gated on prefers-reduced-motion. */
.nh-vp .vp-hero__cta-row {
    margin: 0 0 36px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.nh-vp .vp-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--terra-500);
    color: #fff;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 14.5px;
    font-weight: 600;
    transition: background 0.15s, transform 0.15s;
}
.nh-vp .vp-hero__cta:hover {
    background: var(--terra-600);
    color: #fff;
    transform: translateY(-1px);
}
.nh-vp .vp-hero__cta svg { transition: transform 0.15s; }
.nh-vp .vp-hero__cta:hover svg { transform: translateX(2px); }

.nh-vp .vp-hero__badges {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 24px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--ink-500);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding-top: 24px;
    border-top: 1px solid var(--bone-300);
}

/* Smooth scroll only on this page (CSS is loaded only here), and only when
   the visitor hasn't asked the OS for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}
.nh-vp .vp-hero__badges strong { color: var(--ink-900); font-weight: 700; }
.nh-vp .vp-hero__media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
}

/* PRODUCTS -------------------------------------------------------- */
.nh-vp .vp-products { padding: 80px 0; background: #fff; }
.nh-vp .vp-products__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
.nh-vp .vp-product {
    display: flex;
    flex-direction: column;
    background: var(--bone-100);
    border: 1px solid var(--bone-300);
    border-radius: 4px;
    overflow: hidden;
    color: inherit;
    transition: border-color 0.15s, transform 0.15s;
}
.nh-vp .vp-product:hover {
    border-color: var(--ink-900);
    transform: translateY(-2px);
}
.nh-vp .vp-product__media {
    aspect-ratio: 1 / 1;
    background: #fff;
    overflow: hidden;
}
.nh-vp .vp-product__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.nh-vp .vp-product__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.nh-vp .vp-product__brand {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-500);
    font-weight: 600;
    margin-bottom: 4px;
}
.nh-vp .vp-product h3 {
    font-size: 17px;
    line-height: 1.3;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink-900);
}
.nh-vp .vp-product__spec {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--ink-500);
    letter-spacing: 0.02em;
}
.nh-vp .vp-product__desc {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--ink-700);
    margin: 0;
    flex-grow: 1;
}
.nh-vp .vp-product__cta {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-900);
    border-bottom: 1.5px solid var(--ink-900);
    padding-bottom: 2px;
    align-self: flex-start;
    transition: color 0.15s, border-color 0.15s;
}
.nh-vp .vp-product:hover .vp-product__cta {
    color: var(--terra-600);
    border-color: var(--terra-600);
}

/* INTRO ----------------------------------------------------------- */
.nh-vp .vp-intro {
    padding: 80px 0;
    background: var(--bone-100);
    border-top: 1px solid var(--bone-300);
    border-bottom: 1px solid var(--bone-300);
}
.nh-vp .vp-intro__head {
    margin-bottom: 32px;
    max-width: 720px;
}
.nh-vp .vp-intro__head .eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--terra-600);
    margin-bottom: 12px;
    font-weight: 600;
}
.nh-vp .vp-intro__head h2 {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.05;
    letter-spacing: -0.025em;
    font-weight: 800;
    margin: 0;
    color: var(--ink-900);
    text-wrap: balance;
}
.nh-vp .vp-intro__body {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}
.nh-vp .vp-intro__body > p {
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink-700);
    margin: 0;
    max-width: 640px;
}
.nh-vp .vp-intro__pillars {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--ink-900);
}
.nh-vp .vp-intro__pillars li {
    padding: 18px 0;
    border-bottom: 1px solid var(--bone-300);
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 16px;
    align-items: baseline;
}
.nh-vp .vp-intro__pillar-k {
    grid-column: 1;
    grid-row: 1 / span 2;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-500);
    font-weight: 600;
    align-self: start;
    margin-top: 4px;
}
.nh-vp .vp-intro__pillar-v {
    grid-column: 2;
    grid-row: 1;
    font-size: 17px;
    font-weight: 700;
    color: var(--ink-900);
    letter-spacing: -0.01em;
}
.nh-vp .vp-intro__pillar-s {
    grid-column: 2;
    grid-row: 2;
    font-size: 13px;
    color: var(--ink-500);
    margin-top: 3px;
}

/* PATTERNS (Lap, Click) + CORNERS ---------------------------------- */
.nh-vp .vp-patterns,
.nh-vp .vp-corners { padding: 88px 0; background: #fff; }
.nh-vp .vp-patterns + .vp-patterns,
.nh-vp .vp-patterns + .vp-corners { padding-top: 0; }
.nh-vp .vp-patterns__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.nh-vp .vp-patterns__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nh-vp .vp-pattern {
    display: flex;
    flex-direction: column;
    background: var(--bone-100);
    border: 1px solid var(--bone-300);
    border-radius: 4px;
    overflow: hidden;
}
.nh-vp .vp-pattern__media {
    aspect-ratio: 4 / 3;
    background: var(--bone-200);
    overflow: hidden;
}
.nh-vp .vp-pattern__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.nh-vp .vp-pattern__body { padding: 22px 22px 24px; }
.nh-vp .vp-pattern__num {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--terra-600);
    font-weight: 600;
    margin-bottom: 10px;
}
.nh-vp .vp-pattern h3 {
    font-size: 19px;
    line-height: 1.25;
    margin: 0 0 10px;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--ink-900);
}
.nh-vp .vp-pattern p {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--ink-700);
    margin: 0;
}

/* COMPARE TABLE --------------------------------------------------- */
.nh-vp .vp-compare {
    padding: 88px 0;
    background: var(--green-900);
    color: var(--bone-100);
}
.nh-vp .vp-compare .vp-section-head .eyebrow { color: var(--terra-400); }
.nh-vp .vp-compare .vp-section-head h2 { color: #fff; }
.nh-vp .vp-compare .vp-section-head p { color: rgba(255, 255, 255, 0.7); }
.nh-vp .vp-compare__table {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.nh-vp .vp-compare__head,
.nh-vp .vp-compare__row {
    display: grid;
    grid-template-columns: 1.2fr minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    align-items: baseline;
}
.nh-vp .vp-compare__head { padding: 14px 0; }
.nh-vp .vp-compare__h {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--terra-400);
    font-weight: 600;
}
.nh-vp .vp-compare__h--k { color: rgba(255, 255, 255, 0.5); }
.nh-vp .vp-compare__k {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 600;
}
.nh-vp .vp-compare__v {
    font-size: 15px;
    color: #fff;
    font-weight: 600;
    letter-spacing: -0.005em;
}

/* FAQ ------------------------------------------------------------- */
.nh-vp .vp-faq { padding: 88px 0; background: #fff; }
.nh-vp .vp-faq__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 56px;
    align-items: start;
}
.nh-vp .vp-faq__side .eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--terra-600);
    margin-bottom: 12px;
    font-weight: 600;
}
.nh-vp .vp-faq__side h2 {
    font-size: clamp(26px, 3.4vw, 36px);
    line-height: 1.05;
    letter-spacing: -0.025em;
    font-weight: 800;
    margin: 0 0 16px;
    color: var(--ink-900);
    text-wrap: balance;
}
.nh-vp .vp-faq__side p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink-700);
    margin: 0;
    max-width: 380px;
}

/* FAQ list — same shape as kontakt page (.faq-* classes) */
.nh-vp .faq-list { border-top: 1px solid var(--ink-900); }
.nh-vp .faq-item { border-bottom: 1px solid var(--bone-300); }
.nh-vp .faq-q { list-style: none; cursor: pointer; }
.nh-vp .faq-q::-webkit-details-marker { display: none; }
.nh-vp .faq-q {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 28px;
    gap: 16px;
    align-items: baseline;
    padding: 22px 0;
}
.nh-vp .faq-q .n {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-400);
    letter-spacing: 0.04em;
}
.nh-vp .faq-q .t {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink-900);
    line-height: 1.35;
}
.nh-vp .faq-q .pm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--bone-400);
    display: grid;
    place-items: center;
    color: var(--ink-700);
    transition: all 0.15s;
    align-self: center;
}
.nh-vp .faq-q .pm svg { transition: transform 0.2s; }
.nh-vp .faq-item[open] .faq-q .pm {
    background: var(--ink-900);
    color: #fff;
    border-color: var(--ink-900);
}
.nh-vp .faq-item[open] .faq-q .pm svg { transform: rotate(45deg); }
.nh-vp .faq-item:hover .faq-q .t { color: var(--terra-600); }
.nh-vp .faq-a {
    padding: 0 0 24px 52px;
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--ink-700);
    max-width: 720px;
}
.nh-vp .faq-a p { margin: 0 0 12px; }
.nh-vp .faq-a p:last-child { margin-bottom: 0; }
.nh-vp .faq-a ol,
.nh-vp .faq-a ul { margin: 0 0 0 18px; padding: 0; }
.nh-vp .faq-a li { margin-bottom: 8px; }

/* CALCULATOR ------------------------------------------------------ */
/* Section paints its own band (bone-100, top hairline). Calculator widget
   ([cedral_configurator]) renders inside .container — no inner editorial
   2-col split. */
.nh-vp .vp-calc {
    padding: 88px 0;
    background: var(--bone-100);
    border-top: 1px solid var(--bone-300);
}
.nh-vp .vp-calc .vp-section-head { margin-bottom: 32px; }
.nh-vp .vp-calc__widget { margin-top: 8px; }
/* The plugin shortcode renders <div class="cedral-configurator"> with no
   width control of its own; constrain it the same way basic.css does for
   /fassaadikalkulaator/. .container is already capped — but the widget's
   own padding/margin rules can drift, so explicit bounds are insurance. */
.nh-vp .cedral-configurator {
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* RESPONSIVE — tablet 640–1023 ------------------------------------ */
@media (max-width: 1023px) {
    .nh-vp .nh-cat-crumbs { padding-top: 18px; padding-bottom: 16px; }

    .nh-vp .vp-hero { padding: 48px 0 56px; }
    .nh-vp .vp-hero__row {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }
    .nh-vp .vp-hero .dek { font-size: 17px; }

    .nh-vp .vp-products { padding: 64px 0; }
    .nh-vp .vp-products__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .nh-vp .vp-intro { padding: 64px 0; }
    .nh-vp .vp-intro__body {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .nh-vp .vp-patterns,
    .nh-vp .vp-corners { padding: 64px 0; }
    .nh-vp .vp-patterns__grid,
    .nh-vp .vp-patterns__grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .nh-vp .vp-compare { padding: 64px 0; }
    .nh-vp .vp-compare__head,
    .nh-vp .vp-compare__row {
        grid-template-columns: 1fr minmax(0, 1fr) minmax(0, 1fr);
        gap: 16px;
    }

    .nh-vp .vp-faq { padding: 64px 0; }
    .nh-vp .vp-faq__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .nh-vp .vp-calc { padding: 64px 0; }
}

/* RESPONSIVE — mobile <640 ---------------------------------------- */
@media (max-width: 639px) {
    .nh-vp .nh-cat-crumbs { padding-top: 14px; padding-bottom: 12px; }
    .nh-vp .woocommerce-breadcrumb { font-size: 11px; }

    .nh-vp .vp-hero { padding: 36px 0 40px; }
    .nh-vp .vp-hero h1 { letter-spacing: -0.02em; line-height: 1.04; }
    .nh-vp .vp-hero .dek { font-size: 16px; margin-bottom: 24px; }
    .nh-vp .vp-hero__cta-row { margin-bottom: 28px; }
    .nh-vp .vp-hero__cta { width: 100%; justify-content: center; padding: 12px 20px; min-height: 44px; font-size: 14px; }
    .nh-vp .vp-hero__badges { gap: 10px 22px; padding-top: 20px; }

    .nh-vp .vp-products { padding: 48px 0; }
    .nh-vp .vp-products__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }

    .nh-vp .vp-intro { padding: 48px 0; }
    .nh-vp .vp-intro__body > p { font-size: 16px; }
    .nh-vp .vp-intro__pillars li {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto auto;
        gap: 4px;
        padding: 16px 0;
    }
    .nh-vp .vp-intro__pillar-k { grid-row: 1; grid-column: 1; margin: 0; }
    .nh-vp .vp-intro__pillar-v { grid-row: 2; grid-column: 1; }
    .nh-vp .vp-intro__pillar-s { grid-row: 3; grid-column: 1; }

    .nh-vp .vp-patterns,
    .nh-vp .vp-corners { padding: 48px 0; }
    .nh-vp .vp-patterns__grid,
    .nh-vp .vp-patterns__grid--3 { grid-template-columns: minmax(0, 1fr); }

    .nh-vp .vp-compare { padding: 48px 0; }
    .nh-vp .vp-compare__head { display: none; }
    .nh-vp .vp-compare__row {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
        padding: 16px 0;
    }
    .nh-vp .vp-compare__k::after { content: ""; }
    .nh-vp .vp-compare__v::before {
        content: attr(data-label);
        display: block;
        font-family: var(--font-mono);
        font-size: 9.5px;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--terra-400);
        margin-bottom: 2px;
    }
    .nh-vp .vp-compare__v:nth-of-type(2)::before { content: "Cedral"; }
    .nh-vp .vp-compare__v:nth-of-type(3)::before { content: "James Hardie"; }

    .nh-vp .vp-faq { padding: 48px 0; }
    .nh-vp .vp-faq__side h2 { font-size: 24px; }
    .nh-vp .faq-q {
        grid-template-columns: 28px minmax(0, 1fr) 28px;
        gap: 12px;
        padding: 18px 0;
    }
    .nh-vp .faq-q .t { font-size: 15.5px; }
    .nh-vp .faq-a { padding-left: 40px; padding-bottom: 20px; }

    .nh-vp .vp-calc { padding: 48px 0 56px; }
}
