/* ==========================================================
   VIVATEH.MD - Blog Pompe de caldura
   CSS dedicat pentru .vht-blog-heatpump
   Culori brand:
   Portocaliu: rgb(243, 146, 0)
   Albastru:   rgb(15, 112, 183)
   ========================================================== */

.vht-blog-heatpump {
    --vht-orange: rgb(243, 146, 0);
    --vht-orange-soft: rgba(243, 146, 0, 0.10);
    --vht-orange-border: rgba(243, 146, 0, 0.28);
    --vht-blue: rgb(15, 112, 183);
    --vht-blue-dark: rgb(10, 86, 145);
    --vht-blue-soft: rgba(15, 112, 183, 0.07);
    --vht-blue-border: rgba(15, 112, 183, 0.20);
    --vht-title: #20262d;
    --vht-text: #4b5563;
    --vht-muted: #6b7280;
    --vht-border: #e2e8f0;
    --vht-light: #f8fafc;
    --vht-white: #ffffff;
    --vht-shadow: 0 8px 28px rgba(31, 51, 73, 0.06);

    width: 100%;
    max-width: 1080px;
    margin: 0 auto 45px;
    padding: 0 20px;
    color: var(--vht-text);
    font-size: 16px;
    line-height: 1.72;
    background: var(--vht-white);
}

.vht-blog-heatpump,
.vht-blog-heatpump * {
    box-sizing: border-box;
}

.vht-blog-heatpump p,
.vht-blog-heatpump ul,
.vht-blog-heatpump ol,
.vht-blog-heatpump table {
    margin-top: 0;
}

.vht-blog-heatpump p {
    margin-bottom: 15px;
}

.vht-blog-heatpump p:last-child,
.vht-blog-heatpump ul:last-child,
.vht-blog-heatpump ol:last-child,
.vht-blog-heatpump table:last-child {
    margin-bottom: 0;
}

.vht-blog-heatpump strong {
    color: #303944;
    font-weight: 700;
}

/* ==========================================================
   HERO / INTRODUCERE
   ========================================================== */

.vht-blog-heatpump > header {
    position: relative;
    overflow: hidden;
    margin: 0 0 26px;
    padding: 34px 36px 30px;
    background:
        linear-gradient(135deg, rgba(15, 112, 183, 0.075) 0%, rgba(255, 255, 255, 0.96) 58%),
        linear-gradient(315deg, rgba(243, 146, 0, 0.07) 0%, rgba(255, 255, 255, 0) 48%);
    border: 1px solid var(--vht-border);
    border-radius: 16px;
    box-shadow: var(--vht-shadow);
}

.vht-blog-heatpump > header::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 5px;
    background: linear-gradient(
        90deg,
        var(--vht-orange) 0%,
        var(--vht-orange) 34%,
        var(--vht-blue) 34%,
        var(--vht-blue) 100%
    );
    content: "";
}

.vht-blog-heatpump > header h1 {
    max-width: 920px;
    margin: 0 0 20px;
    color: var(--vht-title);
    font-size: 30px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.35px;
}

.vht-blog-heatpump > header p {
    max-width: 960px;
    margin-bottom: 14px;
    color: #4a5664;
    font-size: 16px;
    line-height: 1.75;
}

.vht-blog-heatpump > header p:first-of-type {
    color: #354250;
    font-size: 17px;
    font-weight: 500;
}

/* ==========================================================
   CUPRINS
   ========================================================== */

.vht-blog-heatpump > nav[aria-label="Cuprins articol"] {
    position: relative;
    margin: 0 0 28px;
    padding: 24px 28px 25px;
    background: linear-gradient(135deg, #f8fcff 0%, #ffffff 100%);
    border: 1px solid var(--vht-blue-border);
    border-left: 5px solid var(--vht-blue);
    border-radius: 12px;
}

.vht-blog-heatpump > nav h2 {
    margin: 0 0 15px;
    padding: 0;
    color: var(--vht-blue-dark);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    border: 0;
}

.vht-blog-heatpump > nav ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 32px;
    margin: 0;
    padding-left: 24px;
}

.vht-blog-heatpump > nav li {
    padding-left: 3px;
    color: var(--vht-muted);
    line-height: 1.5;
}

.vht-blog-heatpump > nav li::marker {
    color: var(--vht-orange);
    font-weight: 800;
}

.vht-blog-heatpump > nav a {
    color: #374554;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.18s ease;
}

.vht-blog-heatpump > nav a:hover,
.vht-blog-heatpump > nav a:focus {
    color: var(--vht-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ==========================================================
   SECTIUNI / BLOCURI ARTICOL
   ========================================================== */

.vht-blog-heatpump > section {
    position: relative;
    margin: 0 0 22px;
    padding: 27px 30px 29px;
    background: var(--vht-white);
    border: 1px solid var(--vht-border);
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(31, 51, 73, 0.045);
    scroll-margin-top: 115px;
}

.vht-blog-heatpump > section::before {
    position: absolute;
    top: 0;
    left: 30px;
    width: 76px;
    height: 3px;
    background: linear-gradient(90deg, var(--vht-orange) 0 42%, var(--vht-blue) 42% 100%);
    border-radius: 0 0 4px 4px;
    content: "";
}

.vht-blog-heatpump > section > h2 {
    margin: 0 0 17px;
    padding-left: 12px;
    color: var(--vht-title);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    border-left: 4px solid var(--vht-orange);
}

.vht-blog-heatpump > section > h3 {
    margin: 23px 0 9px;
    color: var(--vht-blue-dark);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
}

.vht-blog-heatpump > section > h2 + h3 {
    margin-top: 15px;
}

.vht-blog-heatpump > section p {
    color: var(--vht-text);
}

/* ==========================================================
   LINKURI
   ========================================================== */

.vht-blog-heatpump > section a {
    color: var(--vht-blue);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(15, 112, 183, 0.35);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition:
        color 0.18s ease,
        text-decoration-color 0.18s ease;
}

.vht-blog-heatpump > section a:hover,
.vht-blog-heatpump > section a:focus {
    color: var(--vht-orange);
    text-decoration-color: var(--vht-orange);
}

/* ==========================================================
   LISTE
   ========================================================== */

.vht-blog-heatpump > section ul,
.vht-blog-heatpump > section ol {
    margin-bottom: 18px;
    padding-left: 24px;
}

.vht-blog-heatpump > section li {
    margin-bottom: 7px;
    padding-left: 4px;
    color: #485461;
    line-height: 1.62;
}

.vht-blog-heatpump > section li:last-child {
    margin-bottom: 0;
}

.vht-blog-heatpump > section ul li::marker {
    color: var(--vht-orange);
    font-size: 1.05em;
}

.vht-blog-heatpump > section ol li::marker {
    color: var(--vht-blue);
    font-weight: 800;
}

/* ==========================================================
   TABEL COMPARATIV
   ========================================================== */

.vht-blog-heatpump table {
    width: 100%;
    margin: 22px 0 4px;
    overflow: hidden;
    border: 1px solid var(--vht-border);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 11px;
    background: var(--vht-white);
}

.vht-blog-heatpump thead th {
    padding: 13px 15px;
    color: var(--vht-white);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
    vertical-align: middle;
    background: var(--vht-blue);
    border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.vht-blog-heatpump thead th:last-child {
    border-right: 0;
}

.vht-blog-heatpump tbody td {
    padding: 13px 15px;
    color: #475363;
    font-size: 14px;
    line-height: 1.48;
    vertical-align: top;
    border-top: 1px solid var(--vht-border);
    border-right: 1px solid var(--vht-border);
}

.vht-blog-heatpump tbody td:last-child {
    border-right: 0;
}

.vht-blog-heatpump tbody tr:nth-child(even) td {
    background: #f9fbfd;
}

.vht-blog-heatpump tbody tr:hover td {
    background: var(--vht-blue-soft);
}

.vht-blog-heatpump tbody td:first-child {
    color: var(--vht-title);
    font-weight: 700;
}

/* ==========================================================
   BLOCURI CU INFORMATIE MAI TEHNICA
   ========================================================== */

.vht-blog-heatpump #cop-scop,
.vht-blog-heatpump #consum,
.vht-blog-heatpump #dimensionare {
    background:
        linear-gradient(135deg, var(--vht-blue-soft) 0, rgba(255, 255, 255, 0) 220px),
        var(--vht-white);
}

.vht-blog-heatpump #consum > p > strong {
    display: block;
    margin: 19px 0 20px;
    padding: 14px 17px;
    color: var(--vht-blue-dark);
    line-height: 1.5;
    background: #f5faff;
    border: 1px solid var(--vht-blue-border);
    border-left: 4px solid var(--vht-blue);
    border-radius: 8px;
}

/* ==========================================================
   GRESeli FRECVENTE
   ========================================================== */

.vht-blog-heatpump #greseli ol {
    margin-top: 18px;
    padding-left: 29px;
}

.vht-blog-heatpump #greseli li {
    margin-bottom: 10px;
    padding: 2px 0 2px 5px;
}

.vht-blog-heatpump #greseli li::marker {
    color: var(--vht-orange);
    font-weight: 800;
}

/* ==========================================================
   FAQ
   ========================================================== */

.vht-blog-heatpump #faq {
    padding-bottom: 18px;
}

.vht-blog-heatpump #faq > h2 {
    margin-bottom: 21px;
}

.vht-blog-heatpump #faq > h3 {
    margin: 0;
    padding: 13px 16px;
    color: var(--vht-title);
    background: #f7fafd;
    border: 1px solid var(--vht-border);
    border-left: 4px solid var(--vht-blue);
    border-radius: 8px 8px 0 0;
}

.vht-blog-heatpump #faq > h3 + p {
    margin: 0 0 15px;
    padding: 14px 17px 16px;
    background: var(--vht-white);
    border: 1px solid var(--vht-border);
    border-top: 0;
    border-radius: 0 0 8px 8px;
}

.vht-blog-heatpump #faq > h3:nth-of-type(even) {
    border-left-color: var(--vht-orange);
}

/* ==========================================================
   CONCLUZIE / CTA FINAL
   ========================================================== */

.vht-blog-heatpump #concluzie {
    overflow: hidden;
    padding: 30px;
    background:
        linear-gradient(135deg, rgba(15, 112, 183, 0.085) 0%, rgba(255, 255, 255, 0.98) 54%),
        linear-gradient(315deg, rgba(243, 146, 0, 0.10) 0%, rgba(255, 255, 255, 0) 46%);
    border-color: var(--vht-blue-border);
    box-shadow: 0 10px 30px rgba(15, 112, 183, 0.08);
}

.vht-blog-heatpump #concluzie::before {
    right: 0;
    left: 0;
    width: auto;
    height: 4px;
    background: linear-gradient(90deg, var(--vht-orange) 0 34%, var(--vht-blue) 34% 100%);
    border-radius: 0;
}

.vht-blog-heatpump #concluzie > h2 {
    color: var(--vht-blue-dark);
}

/* ==========================================================
   ACCESIBILITATE / FOCUS
   ========================================================== */

.vht-blog-heatpump a:focus-visible {
    outline: 3px solid rgba(243, 146, 0, 0.36);
    outline-offset: 3px;
    border-radius: 3px;
}

/* ==========================================================
   TABLETA
   ========================================================== */

@media (max-width: 900px) {
    .vht-blog-heatpump {
        padding: 0 16px;
    }

    .vht-blog-heatpump > header {
        padding: 30px 28px 26px;
    }

    .vht-blog-heatpump > header h1 {
        font-size: 27px;
    }

    .vht-blog-heatpump > nav[aria-label="Cuprins articol"] {
        padding: 22px 24px;
    }

    .vht-blog-heatpump > nav ol {
        gap: 7px 25px;
    }

    .vht-blog-heatpump > section {
        padding: 25px 25px 27px;
    }

    .vht-blog-heatpump > section::before {
        left: 25px;
    }
}

/* ==========================================================
   MOBIL
   ========================================================== */

@media (max-width: 700px) {
    .vht-blog-heatpump {
        margin-bottom: 32px;
        padding: 0 10px;
        font-size: 15px;
        line-height: 1.68;
    }

    .vht-blog-heatpump > header {
        margin-bottom: 18px;
        padding: 25px 18px 20px;
        border-radius: 11px;
    }

    .vht-blog-heatpump > header h1 {
        margin-bottom: 15px;
        font-size: 23px;
        line-height: 1.3;
        letter-spacing: -0.2px;
    }

    .vht-blog-heatpump > header p,
    .vht-blog-heatpump > header p:first-of-type {
        font-size: 15px;
        line-height: 1.68;
    }

    .vht-blog-heatpump > nav[aria-label="Cuprins articol"] {
        margin-bottom: 18px;
        padding: 19px 18px 19px 20px;
        border-left-width: 4px;
        border-radius: 10px;
    }

    .vht-blog-heatpump > nav h2 {
        font-size: 18px;
    }

    .vht-blog-heatpump > nav ol {
        grid-template-columns: 1fr;
        gap: 6px;
        padding-left: 22px;
    }

    .vht-blog-heatpump > nav li,
    .vht-blog-heatpump > nav a {
        font-size: 14px;
        line-height: 1.5;
    }

    .vht-blog-heatpump > section {
        margin-bottom: 15px;
        padding: 22px 18px 23px;
        border-radius: 10px;
        box-shadow: 0 3px 14px rgba(31, 51, 73, 0.04);
        scroll-margin-top: 95px;
    }

    .vht-blog-heatpump > section::before {
        left: 18px;
        width: 62px;
    }

    .vht-blog-heatpump > section > h2 {
        margin-bottom: 14px;
        padding-left: 10px;
        font-size: 18px;
        line-height: 1.4;
        border-left-width: 3px;
    }

    .vht-blog-heatpump > section > h3 {
        margin-top: 20px;
        font-size: 16px;
    }

    .vht-blog-heatpump > section ul,
    .vht-blog-heatpump > section ol {
        padding-left: 21px;
    }

    /* Tabelul devine card pe mobil, fara scroll lateral. */
    .vht-blog-heatpump table,
    .vht-blog-heatpump thead,
    .vht-blog-heatpump tbody,
    .vht-blog-heatpump tr,
    .vht-blog-heatpump th,
    .vht-blog-heatpump td {
        display: block;
        width: 100%;
    }

    .vht-blog-heatpump table {
        overflow: visible;
        background: transparent;
        border: 0;
        border-radius: 0;
    }

    .vht-blog-heatpump thead {
        position: absolute;
        overflow: hidden;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .vht-blog-heatpump tbody tr {
        overflow: hidden;
        margin-bottom: 12px;
        background: var(--vht-white);
        border: 1px solid var(--vht-border);
        border-top: 3px solid var(--vht-blue);
        border-radius: 9px;
    }

    .vht-blog-heatpump tbody tr:nth-child(even) td,
    .vht-blog-heatpump tbody tr:hover td {
        background: var(--vht-white);
    }

    .vht-blog-heatpump tbody td {
        position: relative;
        padding: 9px 12px 9px 42%;
        min-height: 40px;
        font-size: 13px;
        border: 0;
        border-bottom: 1px solid var(--vht-border);
    }

    .vht-blog-heatpump tbody td:last-child {
        border-bottom: 0;
    }

    .vht-blog-heatpump tbody td::before {
        position: absolute;
        top: 9px;
        left: 12px;
        width: calc(42% - 20px);
        color: var(--vht-blue-dark);
        font-size: 12px;
        font-weight: 700;
        line-height: 1.35;
    }

    .vht-blog-heatpump tbody td:nth-child(1)::before {
        content: "Tip sistem";
    }

    .vht-blog-heatpump tbody td:nth-child(2)::before {
        content: "Sursa";
    }

    .vht-blog-heatpump tbody td:nth-child(3)::before {
        content: "Avantaj";
    }

    .vht-blog-heatpump tbody td:nth-child(4)::before {
        content: "De verificat";
    }

    .vht-blog-heatpump #faq {
        padding-bottom: 12px;
    }

    .vht-blog-heatpump #faq > h3 {
        padding: 11px 12px;
        font-size: 15px;
    }

    .vht-blog-heatpump #faq > h3 + p {
        margin-bottom: 12px;
        padding: 12px 13px 14px;
    }

    .vht-blog-heatpump #concluzie {
        padding: 24px 18px;
    }
}

/* ==========================================================
   TELEFOANE FOARTE INGUSTE
   ========================================================== */

@media (max-width: 420px) {
    .vht-blog-heatpump {
        padding: 0 6px;
    }

    .vht-blog-heatpump > header h1 {
        font-size: 21px;
    }

    .vht-blog-heatpump > section {
        padding-right: 15px;
        padding-left: 15px;
    }

    .vht-blog-heatpump > section::before {
        left: 15px;
    }

    .vht-blog-heatpump tbody td {
        padding-left: 44%;
    }

    .vht-blog-heatpump tbody td::before {
        width: calc(44% - 18px);
    }
}

/* ==========================================================
   PRINT / PDF
   ========================================================== */

@media print {
    .vht-blog-heatpump {
        max-width: none;
        padding: 0;
        color: #222;
        background: #fff;
    }

    .vht-blog-heatpump > header,
    .vht-blog-heatpump > nav[aria-label="Cuprins articol"],
    .vht-blog-heatpump > section {
        box-shadow: none;
        break-inside: avoid-page;
    }

    .vht-blog-heatpump a {
        color: #222;
    }
}
