/* ==========================================================================
   home.css — pagina de start (landing)
   Paletă: alb + mov-ul din antet (#764ba2 / #667eea) + gri, linii subțiri, fără animații.
   ========================================================================== */

.home-page {
    --accent: #764ba2;          /* mov-ul secundar din antet */
    --accent-light: #667eea;    /* mov-ul primar din antet */
    --accent-dark: #5b3a80;     /* hover / text pe mov */
    --text: #4a4453;            /* text secundar (înlocuiește fostul navy-soft) */
    --gray: #5f6b7a;
    --line: #e6e3ec;
    --soft: #f7f5fb;
    --btn: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --btn-hover: linear-gradient(135deg, #5a6fd8 0%, #633d8a 100%);
    color: var(--accent);
}

.home-page .hs {
    padding: 60px 0;
    border-top: 1px solid var(--line);
}

.home-page .hs-hero {
    padding: 36px 0 64px;
    border-top: 0;
}

.home-page .hs-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}

/* ---------- tipografie generică în secțiuni ---------- */

.home-page .hs-doc h1 {
    font-size: 3rem;
    line-height: 1.08;
    letter-spacing: -0.02em;
    font-weight: 700;
    margin: 0 0 18px;
    color: var(--accent);
}

.home-page .hs-doc h2 {
    font-size: 1.75rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
    font-weight: 600;
    margin: 0 0 14px;
    color: var(--accent);
}

.home-page .hs-doc h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--accent);
}

.home-page .hs-doc p {
    color: var(--gray);
    font-size: 1.02rem;
    line-height: 1.65;
    margin: 0 0 12px;
}

.home-page .hs-doc a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(118, 75, 162, 0.45);
}

.home-page .hs-doc a:hover {
    border-bottom-color: var(--accent);
}

/* ---------- 1 · HERO ---------- */

.home-page .hs-hero .hs-doc p:nth-of-type(1) {
    font-size: 1.2rem;
    line-height: 1.55;
    color: var(--text);
    max-width: 34em;
    margin-bottom: 22px;
}

.home-page .hs-hero .hs-doc p:nth-of-type(2) {
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 30px;
}

.home-page .hs-hero .hs-doc p:nth-of-type(3) {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0;
}

.home-page .hs-hero .hs-doc p:nth-of-type(3) a {
    display: inline-block;
    padding: 13px 26px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid var(--accent);
    border-radius: 2px;
    line-height: 1.2;
}

.home-page .hs-hero .hs-doc p:nth-of-type(3) a:first-of-type {
    background: var(--btn);
    border-color: transparent;
    color: #fff;
}

.home-page .hs-hero .hs-doc p:nth-of-type(3) a:first-of-type:hover {
    background: var(--btn-hover);
}

.home-page .hs-hero .hs-doc p:nth-of-type(3) a:last-of-type {
    background: #fff;
    color: var(--accent);
}

.home-page .hs-hero .hs-doc p:nth-of-type(3) a:last-of-type:hover {
    background: var(--soft);
}

.home-page .hs-art svg {
    display: block;
    width: 100%;
    height: auto;
}

.home-page .hs-hero-img,
.home-page .hs-art-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 2px;
}

/* ---------- 2 · WHO WE WORK WITH ---------- */

.home-page .hs-audience .hs-doc {
    max-width: 100%;
}

.home-page .hs-audience .hs-doc p {
    max-width: 62ch;
    margin-bottom: 26px;
}

.home-page .hs-audience .hs-doc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 56px;
}

.home-page .hs-audience .hs-doc li {
    padding: 15px 0;
    border-top: 1px solid var(--line);
    color: var(--accent);
    font-size: 1rem;
    break-inside: avoid;
}

/* ---------- 3 · ENGINEERING SERVICES (tabel plat) ---------- */

.home-page .hs-services .hs-doc p {
    max-width: 62ch;
    margin-bottom: 26px;
}

.home-page .hs-services .sticky-table-container {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    max-height: none;
    overflow: visible;
    background: none;
}

.home-page .hs-services .sticky-table {
    font-size: 1rem;
    margin: 0;
}

.home-page .hs-services .sticky-table thead {
    display: none;
}

.home-page .hs-services .sticky-table td {
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    text-align: left;
    white-space: normal;
    vertical-align: top;
    padding: 22px 40px 22px 0;
    border-top: 1px solid var(--line);
    border-bottom: 0;
    color: var(--gray);
    line-height: 1.6;
}

.home-page .hs-services .sticky-table td:first-child {
    width: 34%;
    padding-right: 32px;
}

.home-page .hs-services .sticky-table td.sticky-col {
    position: static;
    background: transparent;
    border-right: 0;
    min-width: 0;
}

.home-page .hs-services .sticky-table td a {
    color: var(--accent);
    font-weight: 600;
    border-bottom: 0;
}

.home-page .hs-services .sticky-table td a:hover {
    border-bottom: 1px solid var(--accent);
}

.home-page .hs-services .sticky-table tbody tr:hover {
    background: transparent !important;
    cursor: default;
}

/* fără zebra Bootstrap: tabelul trebuie să fie plat, doar linii subțiri */
.home-page .hs-services .sticky-table > tbody > tr > td,
.home-page .hs-services .sticky-table > tbody > tr:nth-of-type(odd) > td,
.home-page .hs-services .sticky-table > tbody > tr:nth-of-type(even) > td,
.home-page .hs-services .sticky-table > tbody > tr > th {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* ---------- 4 · ANALYSIS (split) ---------- */

.home-page .hs-split {
    grid-template-columns: 1fr 0.85fr;
    gap: 64px;
    align-items: start;
}

.home-page .hs-analysis .hs-doc h2 {
    max-width: 20em;
}

.home-page .hs-analysis .hs-doc ul {
    list-style: none;
    padding: 0;
    margin: 8px 0 26px;
}

.home-page .hs-analysis .hs-doc li {
    position: relative;
    padding: 9px 0 9px 20px;
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.55;
}

.home-page .hs-analysis .hs-doc li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    width: 7px;
    height: 1px;
    background: var(--accent);
}

.home-page .hs-analysis .hs-doc p:last-of-type a {
    display: inline-block;
    padding: 12px 24px;
    background: var(--btn);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    border-radius: 2px;
    line-height: 1.2;
}

.home-page .hs-analysis .hs-doc p:last-of-type a:hover {
    background: var(--btn-hover);
}

.home-page .hs-art-panel {
    border: 1px solid var(--line);
    background: #fbfcfd;
    padding: 24px;
}

/* ---------- 5 · STUDIES (listă numerotată, linii subțiri) ---------- */

.home-page .hs-studies .hs-doc p {
    max-width: 68ch;
}

.home-page .hs-studies .hs-doc ol {
    list-style: none;
    counter-reset: study;
    padding: 0;
    margin: 26px 0 22px;
}

.home-page .hs-studies .hs-doc li {
    counter-increment: study;
    position: relative;
    padding: 20px 0 20px 58px;
    border-top: 1px solid var(--line);
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.6;
}

.home-page .hs-studies .hs-doc li::before {
    content: counter(study, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 20px;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    color: #9aa3b0;
    font-variant-numeric: tabular-nums;
}

.home-page .hs-studies .hs-doc li strong {
    color: var(--accent);
    font-weight: 600;
}

/* studiile care au deja o notă publicată: titlul e link, deci se subliniază discret */
.home-page .hs-studies .hs-doc li a strong {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    text-decoration-color: rgba(118, 75, 162, 0.35);
}

.home-page .hs-studies .hs-doc li a:hover strong,
.home-page .hs-studies .hs-doc li a:focus-visible strong {
    text-decoration-color: currentColor;
    color: var(--accent-dark);
}

.home-page .hs-studies .hs-doc p:last-of-type {
    font-size: 0.9rem;
    color: #8a94a3;
    font-style: italic;
    max-width: 62ch;
}

.home-page .hs-studies .hs-doc p:last-of-type a {
    font-style: normal;
    font-weight: 600;
}

/* ---------- 6 · TOOLS (panou compact, secundar) ---------- */

.home-page .hs-tools .hs-panel {
    background: var(--soft);
    border: 1px solid var(--line);
    padding: 40px 44px;
}

.home-page .hs-tools .hs-doc h2 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.home-page .hs-tools .hs-doc p {
    font-size: 0.95rem;
    max-width: 70ch;
    margin-bottom: 16px;
}

.home-page .hs-tools .hs-doc ul {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
}

.home-page .hs-tools .hs-doc li {
    font-size: 0.95rem;
    color: var(--accent);
    padding-left: 14px;
    position: relative;
}

.home-page .hs-tools .hs-doc li::before {
    content: "·";
    position: absolute;
    left: 0;
    color: #9aa3b0;
}

.home-page .hs-tools .hs-doc p:last-of-type a {
    font-weight: 600;
    border-bottom: 1px solid rgba(118, 75, 162, 0.45);
}

/* ---------- 7 · ABOUT ---------- */

.home-page .hs-about .hs-doc {
    max-width: 900px;
}

.home-page .hs-about .hs-doc ul {
    list-style: none;
    padding: 0;
    margin: 26px 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 56px;
}

.home-page .hs-about .hs-doc li {
    padding: 14px 0;
    border-top: 1px solid var(--line);
    color: var(--gray);
    font-size: 0.98rem;
    line-height: 1.55;
}

.home-page .hs-about .hs-doc li strong {
    color: var(--accent);
    font-weight: 600;
}

.home-page .hs-about .hs-doc p:last-of-type a {
    font-weight: 600;
}

/* ---------- 8 · CONTACT ---------- */

.home-page .hs-contact {
    padding: 64px 0 72px;
}

.home-page .hs-contact .hs-doc {
    max-width: 640px;
}

.home-page .hs-contact .hs-doc h2 {
    font-size: 2rem;
}

.home-page .hs-contact .hs-doc p:last-of-type {
    margin: 22px 0 0;
}

.home-page .hs-contact .hs-doc p:last-of-type a {
    display: inline-block;
    padding: 14px 30px;
    background: var(--btn);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid transparent;
    border-radius: 2px;
    line-height: 1.2;
}

.home-page .hs-contact .hs-doc p:last-of-type a:hover {
    background: var(--btn-hover);
}

.home-page .hs-mail {
    margin: 16px 0 0;
    font-size: 0.95rem;
    color: var(--gray);
}

.home-page .hs-mail a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(118, 75, 162, 0.45);
}

/* ---------- responsive ---------- */

@media (max-width: 991px) {
    .home-page .hs {
        padding: 44px 0;
    }

    .home-page .hs-grid,
    .home-page .hs-split,
    .home-page .hs-about .hs-doc ul {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .home-page .hs-doc h1 {
        font-size: 2.15rem;
    }

    .home-page .hs-doc h2 {
        font-size: 1.45rem;
    }

    .home-page .hs-audience .hs-doc ul {
        columns: 1;
    }

    .home-page .hs-hero .hs-art {
        max-width: 420px;
    }

    .home-page .hs-tools .hs-panel {
        padding: 28px 22px;
    }

    .home-page .hs-services .sticky-table td,
    .home-page .hs-services .sticky-table td:first-child {
        display: block;
        width: 100%;
        padding: 14px 0 4px;
    }

    .home-page .hs-services .sticky-table td:last-child {
        padding-bottom: 18px;
    }

    .home-page .hs-services .sticky-table tr {
        display: block;
        border-top: 1px solid var(--line);
    }

    .home-page .hs-services .sticky-table td {
        border-top: 0;
    }
}

@media (max-width: 575px) {
    .home-page .hs-doc h1 {
        font-size: 1.85rem;
    }

    .home-page .hs-hero .hs-doc p:nth-of-type(3) {
        flex-direction: column;
        align-items: stretch;
    }

    .home-page .hs-hero .hs-doc p:nth-of-type(3) a {
        text-align: center;
    }
}
