﻿/* ============================================================
   layout.css — stiluri pentru header + footer global
   ----
   Folosit de _Layout.cshtml (NU de _LayoutBare.cshtml care e folosit pe pagini
   full-screen ca Hartă).
   Folosește variabilele CSS din site.css. Trebuie inclus DUPĂ site.css.
   ============================================================ */


/* ============================================================
   HEADER GLOBAL — alb cu border-bottom
   Logo stânga + 2 butoane CTA dreapta. Fără meniu (cum ai cerut).
   ============================================================ */

.er-layout-header {
    background: var(--er-bg-surface);
    border-bottom: 1px solid var(--er-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.er-layout-header-inner {
    max-width: var(--er-container-max);
    margin: 0 auto;
    padding: 14px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Logo header — folosește imaginea din /images/logo.png */
.er-layout-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

    .er-layout-logo:hover {
        text-decoration: none;
    }

.er-layout-logo-img {
    height: 44px;
    width: auto;
    display: block;
}

/* Butoane CTA dreapta */
.er-layout-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.er-layout-btn-link {
    color: var(--er-text-soft);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 14px;
    transition: color 0.2s ease;
}

    .er-layout-btn-link:hover {
        color: var(--er-color-primary);
        text-decoration: none;
    }

.er-layout-btn-cta {
    color: var(--er-text-on-dark);
    background: var(--er-color-secondary);
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    padding: 9px 18px;
    border-radius: var(--er-radius-full);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

    .er-layout-btn-cta:hover {
        background: var(--er-color-secondary-hover);
        color: var(--er-text-on-dark);
        text-decoration: none;
        transform: translateY(-1px);
        box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
    }


/* ============================================================
   FOOTER GLOBAL — albastru închis, 4 coloane
   Pattern preluat din CDB
   ============================================================ */

.er-layout-footer {
    background: var(--er-bg-footer);
    color: #94A3B8;
    padding: 48px 32px 24px;
}

.er-layout-footer-inner {
    max-width: var(--er-container-max);
    margin: 0 auto;
}

/* Grid 4 coloane: Brand (2fr) + Platformă + Legal + Despre */
.er-layout-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 36px;
}

/* Logo footer — folosește aceeași imagine, mai mare pentru vizibilitate pe fundal închis */
.er-layout-footer-brand {
    display: inline-block;
    background: var(--er-bg-surface);
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 18px;
}

.er-layout-footer-logo-img {
    height: 56px;
    width: auto;
    display: block;
}

.er-layout-footer-col-brand p {
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 16px;
    max-width: 320px;
}

    .er-layout-footer-col-brand p strong {
        color: var(--er-color-accent);
        font-weight: 700;
    }

.er-layout-footer-contact {
    font-size: 12px !important;
    line-height: 1.6;
    opacity: 0.8;
}

/* Coloane cu link-uri */
.er-layout-footer-grid h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--er-text-on-dark);
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.er-layout-footer-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.er-layout-footer-grid a {
    color: #94A3B8;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease;
}

    .er-layout-footer-grid a:hover {
        color: var(--er-text-on-dark);
        text-decoration: none;
    }


/* Bara de jos — copyright */
.er-layout-footer-bottom {
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
}

    .er-layout-footer-bottom p {
        margin: 0;
    }

        .er-layout-footer-bottom p:last-child {
            opacity: 0.7;
        }


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 992px) {

    .er-layout-header-inner {
        padding: 12px 20px;
    }

    /* Footer: 4 col → 2 col pe tablet */
    .er-layout-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .er-layout-footer-col-brand {
        grid-column: span 2;
    }

    .er-layout-footer {
        padding: 40px 20px 20px;
    }
}

@media (max-width: 600px) {

    .er-layout-header-inner {
        padding: 10px 14px;
    }

    /* Pe mobile, ascunde linkul „Autentificare" — păstrează doar CTA-ul */
    .er-layout-btn-link {
        display: none;
    }

    .er-layout-btn-cta {
        font-size: 12.5px;
        padding: 8px 14px;
    }

    .er-layout-logo-img {
        height: 36px;
    }

    /* Footer: 2 col → 1 col pe mobile */
    .er-layout-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .er-layout-footer-col-brand {
        grid-column: span 1;
    }
}
