/* =========================================================
   ### Început: Variabile globale ###
   ========================================================= */

:root {
    /* Fundaluri */
    --color-bg: #11161a;
    --color-surface: #181e22;
    --color-surface-light: #20272c;
    --color-surface-dark: #0c1013;

    /* Text */
    --color-text: #f4f5f6;
    --color-text-muted: #aeb6bc;

    /* Borduri */
    --color-border: #343c42;

    /* Accent Geva */
    --color-accent: #e30613;
    --color-accent-hover: #bd0711;
    --color-accent-soft: rgba(227, 6, 19, 0.12);

    /* Culori auxiliare */
    --color-dark: #0c1013;
    --color-white: #ffffff;

    /* Layout */
    --container-width: 1180px;

    /* Colțuri */
    --radius-small: 8px;
    --radius-medium: 14px;

    /* Umbre */
    --shadow-soft:
        0 14px 35px rgba(0, 0, 0, 0.28);

    --shadow-accent:
        0 10px 28px rgba(227, 6, 19, 0.18);
}

/* =========================================================
   ### Sfârșit: Variabile globale ###
   ========================================================= */


/* =========================================================
   ### Început: Reset și bază document ###
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 16px;
    line-height: 1.6;

    color: var(--color-text);
    background: var(--color-bg);

    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

/* =========================================================
   ### Sfârșit: Reset și bază document ###
   ========================================================= */


/* =========================================================
   ### Început: Container global ###
   ========================================================= */

.container {
    width: min(
        calc(100% - 32px),
        var(--container-width)
    );

    margin-inline: auto;
}

/* =========================================================
   ### Sfârșit: Container global ###
   ========================================================= */


/* =========================================================
   ### Început: Header site ###
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background:
        linear-gradient(
            90deg,
            rgba(18, 24, 28, 0.98) 0%,
            rgba(13, 18, 22, 0.98) 55%,
            rgba(10, 14, 17, 0.98) 100%
        );

    border-bottom:
        1px solid rgba(255, 255, 255, 0.12);

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.22);

    backdrop-filter: blur(12px);
}

.header-inner {
    min-height: 82px;

    display: flex;
    align-items: center;

    gap: 30px;
}

.site-logo {
    display: flex;
    align-items: center;

    margin-right: auto;

    flex-shrink: 0;
}

.site-logo img {
    display: block;

    width: 190px;
    height: auto;

    filter:
        drop-shadow(
            0 3px 7px rgba(0, 0, 0, 0.45)
        );
}

/* =========================================================
   ### Sfârșit: Header site ###
   ========================================================= */

/* =========================================================
   ### Început: Management consimțământ cookies ###
   ========================================================= */

/*
 * Blocăm scroll-ul paginii când dialogul de preferințe
 * este deschis.
 */
body.cookie-preferences-open {
    overflow: hidden;
}


/* ---------------------------------------------------------
   Banner principal
   --------------------------------------------------------- */

.cookie-consent {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1000;
    width: min(520px, calc(100% - 48px));
    padding: 0;
}

.cookie-consent[hidden] {
    display: none;
}

.cookie-consent-inner {
    padding: 24px;
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 3px solid var(--color-accent);
    border-radius: 12px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.45),
        0 4px 16px rgba(0, 0, 0, 0.25);
}

.cookie-consent-content h2 {
    margin: 0 0 10px;
    color: var(--color-text);
    font-size: 1.15rem;
    line-height: 1.3;
}

.cookie-consent-content p {
    margin: 0 0 10px;
    color: var(--color-text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.cookie-consent-content a {
    color: var(--color-text);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--color-accent);
    text-underline-offset: 3px;
}

.cookie-consent-content a:hover,
.cookie-consent-content a:focus-visible {
    color: var(--color-accent);
}


/* ---------------------------------------------------------
   Acțiuni banner
   --------------------------------------------------------- */

.cookie-consent-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.cookie-consent-actions .btn {
    min-height: 42px;
    padding: 10px 16px;
    font-size: 0.86rem;
}

.cookie-preferences-button {
    min-height: 42px;
    padding: 8px 4px;
    background: transparent;
    border: 0;
    color: var(--color-text-muted);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
}

.cookie-preferences-button:hover,
.cookie-preferences-button:focus-visible {
    color: var(--color-accent);
}


/* ---------------------------------------------------------
   Fereastră preferințe
   --------------------------------------------------------- */

.cookie-preferences {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.cookie-preferences[hidden] {
    display: none;
}

.cookie-preferences-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(4px);
}

.cookie-preferences-dialog {
    position: relative;
    z-index: 1;
    width: min(680px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 28px;
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 3px solid var(--color-accent);
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.cookie-preferences-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.cookie-preferences-header h2 {
    margin: 0;
    color: var(--color-text);
    font-size: 1.4rem;
    line-height: 1.3;
}

.cookie-preferences-close {
    display: flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    color: var(--color-text-muted);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.cookie-preferences-close:hover,
.cookie-preferences-close:focus-visible {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

#cookie-preferences-description {
    margin: 16px 0 24px;
    color: var(--color-text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}


/* ---------------------------------------------------------
   Categorii cookie
   --------------------------------------------------------- */

.cookie-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-category-content {
    flex: 1;
}

.cookie-category-content h3 {
    margin: 0 0 6px;
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.4;
}

.cookie-category-content p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

.cookie-category-status {
    flex: 0 0 auto;
    color: var(--color-accent);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}


/* ---------------------------------------------------------
   Switch categorie Analytics
   --------------------------------------------------------- */

.cookie-switch {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    cursor: pointer;
}

.cookie-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.cookie-switch-control {
    position: relative;
    display: block;
    width: 48px;
    height: 26px;
    background: #333333;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.cookie-switch-control::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #ffffff;
    border-radius: 50%;
    content: "";
    transition: transform 0.2s ease;
}

.cookie-switch input:checked + .cookie-switch-control {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.cookie-switch input:checked + .cookie-switch-control::after {
    transform: translateX(22px);
}

.cookie-switch input:focus-visible + .cookie-switch-control {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
}


/* ---------------------------------------------------------
   Footer dialog preferințe
   --------------------------------------------------------- */

.cookie-preferences-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-preferences-footer a {
    color: var(--color-text-muted);
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--color-accent);
    text-underline-offset: 3px;
}

.cookie-preferences-footer a:hover,
.cookie-preferences-footer a:focus-visible {
    color: var(--color-accent);
}


/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 640px) {

    .cookie-consent {
        right: 12px;
        bottom: 12px;
        width: calc(100% - 24px);
    }

    .cookie-consent-inner {
        padding: 20px;
    }

    .cookie-consent-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .cookie-consent-actions .btn,
    .cookie-preferences-button {
        width: 100%;
    }

    .cookie-preferences {
        padding: 12px;
    }

    .cookie-preferences-dialog {
        max-height: calc(100vh - 24px);
        padding: 20px;
    }

    .cookie-category {
        align-items: flex-start;
        gap: 16px;
    }

    .cookie-category-status {
        white-space: normal;
        text-align: right;
    }

    .cookie-preferences-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .cookie-preferences-footer .btn {
        width: 100%;
    }

}

/* =========================================================
   ### Sfârșit: Management consimțământ cookies ###
   ========================================================= */

/* =========================================================
   ### Început: Buton meniu mobil ###
   ========================================================= */

.menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

    align-items: center;
    justify-content: center;
    flex-direction: column;

    gap: 5px;

    padding: 0;

    color: var(--color-white);
    background: transparent;

    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);

    cursor: pointer;
}

.menu-toggle span {
    display: block;

    width: 20px;
    height: 2px;

    background: var(--color-white);

    transition:
        transform 0.2s ease,
        opacity 0.2s ease,
        background-color 0.2s ease;
}

.menu-toggle:hover {
    border-color: var(--color-accent);
}

.menu-toggle:hover span {
    background: var(--color-accent);
}

/* =========================================================
   ### Început: Animație hamburger -> X ###
   ========================================================= */

.menu-toggle.is-active span:nth-child(1) {
    transform:
        translateY(7px)
        rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
    transform:
        translateY(-7px)
        rotate(-45deg);
}

/* =========================================================
   ### Sfârșit: Animație hamburger -> X ###
   ========================================================= */

/* =========================================================
   ### Sfârșit: Buton meniu mobil ###
   ========================================================= */


/* =========================================================
   ### Început: Navigație principală ###
   ========================================================= */

.main-nav {
    display: flex;
    align-items: center;

    gap: 26px;
}

.main-nav a {
    position: relative;

    font-size: 0.95rem;
    font-weight: 600;

    color: var(--color-text);

    transition: color 0.2s ease;
}

.main-nav a::after {
    content: "";

    position: absolute;

    left: 0;
    right: 100%;
    bottom: -8px;

    height: 2px;

    background: var(--color-accent);

    transition: right 0.2s ease;
}

.main-nav a:hover {
    color: var(--color-white);
}

.main-nav a:hover::after {
    right: 0;
}

/* =========================================================
   ### Sfârșit: Navigație principală ###
   ========================================================= */


/* =========================================================
   ### Început: Selector limbă ###
   ========================================================= */

.language-nav {
    display: flex;
    align-items: center;

    gap: 8px;
}

.language-nav a {
    padding: 6px 9px;

    font-size: 0.8rem;
    font-weight: 700;

    color: var(--color-text);

    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.language-nav a:hover {
    color: var(--color-white);

    border-color: var(--color-accent);
    background: var(--color-accent-soft);
}

/* =========================================================
   ### Sfârșit: Selector limbă ###
   ========================================================= */


/* =========================================================
   ### Început: Butoane globale ###
   ========================================================= */

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 46px;

    padding: 0 20px;

    border: 0;
    border-radius: var(--radius-small);

    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: var(--color-white);
    background: var(--color-accent);

    box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
    background: var(--color-accent-hover);

    box-shadow:
        0 12px 30px rgba(227, 6, 19, 0.25);
}

.btn-outline {
    color: var(--color-white);

    background: transparent;

    border: 1px solid rgba(255, 255, 255, 0.55);
}

.btn-outline:hover {
    color: var(--color-white);

    border-color: var(--color-accent);

    background: var(--color-accent-soft);
}

/* =========================================================
   ### Sfârșit: Butoane globale ###
   ========================================================= */


/* =========================================================
   ### Început: Footer site ###
   ========================================================= */

.site-footer {
    margin-top: 80px;

    padding:
        64px
        0
        24px;

    color: var(--color-white);

    background:
        linear-gradient(
            180deg,
            #11161a 0%,
            #090c0e 100%
        );

    border-top:
        1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.4fr)
        minmax(180px, 0.7fr)
        minmax(220px, 0.9fr);

    gap: 56px;

    align-items: start;
}

.footer-logo {
    display: inline-flex;
    align-items: center;

    margin-bottom: 20px;
}

.footer-logo img {
    display: block;

    width: 180px;
    height: auto;
}

.footer-brand p {
    max-width: 420px;

    margin: 0;

    color: var(--color-text-muted);
}

.footer-nav,
.footer-services {
    display: flex;
    flex-direction: column;

    gap: 10px;
}

.footer-nav strong,
.footer-services strong {
    margin-bottom: 8px;

    font-size: 0.95rem;

    color: var(--color-white);
}

.footer-nav a,
.footer-services a {
    font-size: 0.92rem;

    color: var(--color-text-muted);

    transition: color 0.2s ease;
}

.footer-nav a:hover,
.footer-services a:hover {
    color: var(--color-accent);
}

/* =========================================================
   ### Început: Footer inferior ###
   ========================================================= */

.footer-bottom {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 24px;

    margin-top: 48px;
    padding-top: 24px;

    border-top:
        1px solid rgba(255, 255, 255, 0.10);
}

.footer-bottom p {
    margin: 0;

    font-size: 0.85rem;

    color: #89939b;
}

.footer-languages {
    display: flex;
    align-items: center;

    gap: 8px;
}

.footer-languages a {
    min-width: 36px;

    padding: 5px 8px;

    text-align: center;

    font-size: 0.75rem;
    font-weight: 700;

    color: var(--color-text-muted);

    border:
        1px solid rgba(255, 255, 255, 0.15);

    border-radius: var(--radius-small);

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.footer-languages a:hover {
    color: var(--color-white);

    border-color: var(--color-accent);

    background: var(--color-accent-soft);
}

/* =========================================================
   ### Sfârșit: Footer inferior ###
   ========================================================= */

/* =========================================================
   ### Sfârșit: Footer site ###
   ========================================================= */


/* =========================================================
   ### Început: Buton revenire sus ###
   ========================================================= */

.back-to-top {
    position: fixed;

    right: 24px;
    bottom: 24px;
    z-index: 900;

    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;

    color: var(--color-white);
    background: var(--color-accent);

    border: 0;
    border-radius: 50%;

    box-shadow:
        0 8px 24px rgba(227, 6, 19, 0.25);

    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transform: translateY(12px);

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease,
        background-color 0.2s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-accent-hover);

    transform: translateY(-2px);
}

.back-to-top:focus-visible {
    outline:
        3px solid rgba(227, 6, 19, 0.35);

    outline-offset: 3px;
}

/* =========================================================
   ### Sfârșit: Buton revenire sus ###
   ========================================================= */


/* =========================================================
   ### Început: Responsive ###
   ========================================================= */

@media (max-width: 900px) {

    /* =====================================================
       ### Început: Header mobil ###
       ===================================================== */

    .header-inner {
        position: relative;

        min-height: 72px;

        flex-wrap: nowrap;

        padding-block: 12px;
    }

    .site-logo {
        margin-right: auto;
    }

    .site-logo img {
        width: 165px;
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;

        top: calc(100% + 1px);
        left: 16px;
        right: 16px;

        display: none;

        flex-direction: column;
        align-items: stretch;

        gap: 0;

        padding: 10px;

        background: #151b1f;

        border: 1px solid var(--color-border);
        border-radius: var(--radius-medium);

        box-shadow: var(--shadow-soft);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 13px 14px;

        color: var(--color-text);

        border-radius: var(--radius-small);
    }

    .main-nav a:hover {
        color: var(--color-white);

        background: var(--color-accent-soft);
    }

    .main-nav a::after {
        display: none;
    }

    .language-nav {
        margin-left: 0;
    }

    /* =====================================================
       ### Sfârșit: Header mobil ###
       ===================================================== */


    /* =====================================================
       ### Început: Footer tabletă ###
       ===================================================== */

    .footer-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 36px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    /* =====================================================
       ### Sfârșit: Footer tabletă ###
       ===================================================== */
}


@media (max-width: 640px) {

    /* =====================================================
       ### Început: Header telefon ###
       ===================================================== */

    .header-inner {
        gap: 14px;
    }

    .site-logo img {
        width: 145px;
    }

    .language-nav {
        gap: 4px;

        margin-left: 0;
    }

    .language-nav a {
        padding: 5px 7px;
    }

    /* =====================================================
       ### Sfârșit: Header telefon ###
       ===================================================== */


    /* =====================================================
       ### Început: Footer telefon ###
       ===================================================== */

    .site-footer {
        padding-top: 48px;
    }

    .footer-grid {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;

        align-items: flex-start;

        gap: 16px;
    }

    /* =====================================================
       ### Sfârșit: Footer telefon ###
       ===================================================== */
}

/* =========================================================
   ### Început: Linkuri juridice footer ###
   ========================================================= */

.footer-legal {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.footer-legal a {
    color: var(--color-text-muted);
    font-size: 0.88rem;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
    color: var(--color-accent);
}

/* =========================================================
   ### Început: Setări cookie-uri footer ###
   ========================================================= */

.footer-cookie-settings {
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--color-text-muted);
    font: inherit;
    font-size: 0.88rem;
    line-height: 1.4;
    cursor: pointer;
    transition: color 0.2s ease;
}

.footer-cookie-settings:hover,
.footer-cookie-settings:focus-visible {
    color: var(--color-accent);
}

/* =========================================================
   ### Sfârșit: Setări cookie-uri footer ###
   ========================================================= */

@media (max-width: 768px) {

    .footer-legal {
        width: 100%;
        gap: 8px 14px;
    }
}

/* =========================================================
   ### Sfârșit: Linkuri juridice footer ###
   ========================================================= */
/* =========================================================
   ### Sfârșit: Responsive ###
   ========================================================= */
