﻿/* ==========================================================
   Școala Gimnazială Lenauheim – temă (stil inspirat de referință)
   Se încarcă ULTIMA în Site.master.
   Fonturi: Inter. Culori: albastru-petrol + gri-albăstrui deschis.
   ========================================================== */

:root {
    --teal: #1F6E8C;
    --teal-dark: #0E4A60;
    --teal-light: #8FB6C7;
    --navy: #0E2F44; /* titluri */
    --text: #26333D;
    --muted: #5E6E7B;
    --bg: #EEF2F7; /* fundalul paginii */
    --bg-strip: #F6F8FB; /* bara cu date de contact */
    --white: #FFFFFF;
    --line: #E3E9EF;
    --shadow: 0 14px 34px rgba(14, 47, 68, .10);
    --radius-card: 40px 40px 40px 18px;
    --font: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Bază ---------- */
html {
    font-size: 16px;
    scroll-padding-top: 90px;
}

body {
    padding-top: 0 !important;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1240px;
}

h1, h2, h3, h4 {
    font-family: var(--font);
    color: var(--navy);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

h1 {
    font-size: 2.4rem;
    margin: 0 0 20px;
}

h2 {
    font-size: 2rem;
    margin: 32px 0 14px;
}

h3 {
    font-size: 1.4rem;
    margin: 24px 0 10px;
    letter-spacing: -0.02em;
}

p {
    max-width: 80ch;
}

a {
    color: var(--teal);
    text-underline-offset: 3px;
}

    a:hover {
        color: var(--teal-dark);
    }

:focus-visible {
    outline: 3px solid var(--teal);
    outline-offset: 3px;
    border-radius: 6px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 3000;
    background: var(--teal);
    color: #fff;
    padding: 10px 18px;
    font-weight: 700;
}

    .skip-link:focus {
        left: 0;
        color: #fff;
    }

/* ---------- Antet ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

    .site-header .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        min-height: 88px;
        max-width: 1360px;
    }

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    flex: none;
}

    .brand:hover {
        text-decoration: none;
    }

.brand-logo {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line);
    background: #fff;
}

.brand-name {
    display: block;
    color: var(--teal-dark);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.brand-tag {
    display: block;
    color: var(--muted);
    font-size: .8rem;
    margin-top: 3px;
}

/* Meniu: un singur rând, ERP în linie cu celelalte */
.site-nav {
    display: flex;
    align-items: center;
}

    .site-nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        gap: 2px;
    }

    .site-nav li {
        position: relative;
    }

        .site-nav li > a {
            display: block;
            padding: 10px 12px;
            border-radius: 999px;
            white-space: nowrap;
            color: #3A4650;
            font-weight: 500;
            font-size: 1rem;
            text-decoration: none;
            line-height: 1.3;
        }

            .site-nav li > a:hover,
            .site-nav li.open > a {
                background: var(--bg);
                color: var(--teal-dark);
            }

        .site-nav li.active > a {
            color: var(--teal);
            font-weight: 700;
            background: #E4EFF4;
        }

    /* Submeniuri: închise implicit, se deschid la hover sau la click */
    .site-nav .dropdown-toggle::after {
        content: "";
        display: inline-block;
        width: 7px;
        height: 7px;
        margin-left: 8px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: translateY(-3px) rotate(45deg);
    }

    .site-nav .dropdown-menu {
        display: none;
        margin-top: 6px;
        padding: 8px;
        min-width: 230px;
        border: 1px solid var(--line);
        border-radius: 18px;
        box-shadow: var(--shadow);
    }

    .site-nav .dropdown.open > .dropdown-menu {
        display: block;
    }

    .site-nav .dropdown-menu > li > a {
        border-radius: 12px;
        padding: 9px 14px;
        color: #3A4650;
        font-size: .95rem;
        white-space: normal;
    }

        .site-nav .dropdown-menu > li > a:hover {
            background: var(--bg);
            color: var(--teal-dark);
        }

.nav-toggle {
    display: none;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
    padding: 10px 12px;
    cursor: pointer;
}

    .nav-toggle .icon-bar {
        display: block;
        width: 22px;
        height: 2px;
        background: var(--teal-dark);
        border-radius: 2px;
    }

        .nav-toggle .icon-bar + .icon-bar {
            margin-top: 5px;
        }

@media (min-width: 1200px) {
    .site-nav.collapse {
        display: flex !important;
    }

    .site-nav .dropdown:hover > .dropdown-menu {
        display: block;
    }
}

@media (max-width: 1199px) {
    .nav-toggle {
        display: block;
    }

    .site-header {
        position: relative;
    }

        .site-header .container {
            flex-wrap: wrap;
            min-height: 72px;
            padding-top: 10px;
            padding-bottom: 10px;
        }

    .site-nav {
        width: 100%;
        padding-bottom: 12px;
    }

        .site-nav ul {
            flex-direction: column;
            align-items: stretch;
            width: 100%;
            gap: 0;
        }

        .site-nav li > a {
            border-radius: 12px;
        }

        .site-nav .dropdown-menu {
            position: static;
            float: none;
            box-shadow: none;
            border: 0;
            background: var(--bg-strip);
            margin: 4px 0 8px;
        }
}

@media (max-width: 767px) {
    .brand-name {
        font-size: 1.15rem;
    }

    .brand-logo {
        width: 46px;
        height: 46px;
    }
}

/* ---------- Bara de contact (pastile) ---------- */
.contact-strip {
    background: var(--bg-strip);
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
}

.contact-pills {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

    .contact-pills .pill {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 999px;
        padding: 12px 26px;
        color: #26333D;
        font-size: 1rem;
        text-decoration: none;
    }

    .contact-pills a.pill:hover {
        border-color: var(--teal);
        color: var(--teal-dark);
    }

    .contact-pills svg {
        width: 20px;
        height: 20px;
        fill: var(--teal);
        flex: none;
    }

@media (max-width: 767px) {
    .contact-pills {
        flex-direction: column;
        align-items: stretch;
    }

        .contact-pills .pill {
            padding: 10px 18px;
        }
}

/* ---------- Banner (opțional, pagina principală) ---------- */
.hero {
    background: linear-gradient(135deg, #21718F 0%, var(--teal-dark) 100%);
    color: #fff;
    text-align: center;
    padding: 120px 20px;
}

    .hero h1 {
        color: #fff;
        font-size: 3.6rem;
        font-weight: 800;
        letter-spacing: -0.035em;
        margin: 0 auto 22px;
        max-width: 18ch;
    }

    .hero p {
        color: #EAF4F8;
        font-size: 1.4rem;
        margin: 0 auto;
        max-width: 40ch;
    }

@media (max-width: 767px) {
    .hero {
        padding: 70px 16px;
    }

        .hero h1 {
            font-size: 2.3rem;
        }

        .hero p {
            font-size: 1.1rem;
        }
}

/* ---------- Conținut ---------- */
.container.body-content {
    padding-top: 40px;
    padding-bottom: 56px;
    min-height: 40vh;
}

.section-title {
    margin: 0 0 34px;
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

    .section-title::after {
        content: "";
        display: block;
        width: 100px;
        height: 6px;
        margin-top: 14px;
        border-radius: 6px;
        background: linear-gradient(90deg, var(--teal), var(--teal-light));
    }

.section-divider {
    height: 5px;
    border: 0;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--teal-light), #C9D9E2);
    margin: 48px 0;
}

@media (max-width: 767px) {
    .section-title {
        font-size: 2rem;
    }
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: 40px;
}

/* Card de anunț */
.news-card {
    background: #fff;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.news-card-media {
    height: 280px;
    overflow: hidden;
    background: var(--bg-strip);
}

    .news-card-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top;
        display: block;
    }

.news-card-body {
    padding: 28px 30px 32px;
}

    .news-card-body h3 {
        margin: 0 0 10px;
        font-size: 1.6rem;
    }

.news-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--teal);
    font-size: .95rem;
    margin-bottom: 14px;
}

    .news-date svg {
        width: 16px;
        height: 16px;
        fill: currentColor;
    }

.news-card-body p {
    font-style: italic;
    color: #4A5864;
    margin-bottom: 20px;
}

.news-link {
    font-weight: 700;
    color: var(--teal);
    text-decoration: none;
}

    .news-link:hover {
        color: var(--teal-dark);
        text-decoration: underline;
    }

/* Card de program (orar) */
.schedule-card {
    background: #fff;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.schedule-head {
    background: linear-gradient(135deg, #21718F 0%, var(--teal-dark) 100%);
    color: #fff;
    text-align: center;
    padding: 28px 24px;
    border-radius: 40px 40px 0 0;
}

    .schedule-head svg {
        width: 46px;
        height: 46px;
        fill: #fff;
        margin-bottom: 8px;
    }

    .schedule-head h3 {
        color: #fff;
        margin: 0;
        font-size: 1.45rem;
        letter-spacing: -0.02em;
    }

.schedule-list {
    list-style: none;
    margin: 0;
    padding: 18px 30px 26px;
}

    .schedule-list li {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 0;
        border-bottom: 1px solid var(--line);
        max-width: none;
    }

    .schedule-list strong {
        color: var(--teal);
        font-weight: 700;
        font-size: 1.1rem;
    }

    .schedule-list span {
        color: #26333D;
        font-size: 1.1rem;
    }

/* Butoane, formulare, tabele */
.btn {
    border-radius: 999px;
    font-weight: 600;
    padding: 9px 22px;
}

.btn-primary, .btn-success {
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    border: 0;
    color: #fff;
}

    .btn-primary:hover, .btn-primary:focus, .btn-success:hover, .btn-success:focus {
        background: var(--teal-dark);
        color: #fff;
    }

.btn-default {
    background: #fff;
    border: 1px solid var(--line);
    color: var(--teal-dark);
}

    .btn-default:hover {
        background: var(--bg-strip);
        color: var(--teal-dark);
    }

.form-control {
    border-radius: 14px;
    border: 1px solid #C7D3DD;
    box-shadow: none;
    height: auto;
    padding: 10px 14px;
    font-family: var(--font);
}

    .form-control:focus {
        border-color: var(--teal);
        box-shadow: 0 0 0 4px rgba(31, 110, 140, .18);
    }

.container.body-content table {
    background: #fff;
    max-width: 100%;
}

    .table > thead > tr > th, .container.body-content table th {
        background: var(--teal-dark);
        color: #fff;
        border-color: var(--teal-dark);
        font-weight: 600;
    }

.table > tbody > tr > td {
    border-color: var(--line);
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background: var(--bg-strip);
}

.container.body-content img {
    max-width: 100%;
    height: auto;
}

/* ---------- Subsol ---------- */
.site-footer {
    background: var(--teal-dark);
    color: #CFE0E8;
    padding: 48px 0 22px;
    font-size: .95rem;
}

    .site-footer h4 {
        color: #fff;
        font-size: 1.05rem;
        font-weight: 700;
        letter-spacing: -0.01em;
        margin: 0 0 14px;
    }

    .site-footer p {
        margin: 0 0 6px;
    }

    .site-footer ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .site-footer li {
        margin-bottom: 9px;
    }

    .site-footer a {
        color: #fff;
        text-decoration: underline;
        text-decoration-color: rgba(255, 255, 255, .35);
    }

        .site-footer a:hover {
            color: #BFE0EE;
        }

    .site-footer .footer-name {
        color: #fff;
        font-size: 1.3rem;
        font-weight: 800;
        letter-spacing: -0.03em;
        margin-bottom: 10px;
    }

    .site-footer .col-sm-4 {
        margin-bottom: 22px;
    }

    .site-footer .footer-bottom {
        border-top: 1px solid rgba(255, 255, 255, .18);
        margin-top: 8px;
        padding-top: 16px;
        color: #A9C4D1;
        font-size: .85rem;
    }

/* ---------- Buton de accesibilitate ---------- */
.a11y {
    position: fixed;
    right: 26px;
    bottom: 26px;
    z-index: 2500;
}

.a11y-btn {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    border: 0;
    cursor: pointer;
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    box-shadow: 0 10px 26px rgba(14, 47, 68, .35);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .a11y-btn svg {
        width: 34px;
        height: 34px;
        fill: #fff;
    }

.a11y-panel {
    position: absolute;
    right: 0;
    bottom: 78px;
    width: 230px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: none;
}

.a11y.open .a11y-panel {
    display: block;
}

.a11y-panel button {
    display: block;
    width: 100%;
    text-align: left;
    margin: 0 0 6px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg-strip);
    color: var(--navy);
    font-family: var(--font);
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
}

    .a11y-panel button:last-child {
        margin-bottom: 0;
    }

    .a11y-panel button[aria-pressed="true"] {
        background: var(--teal);
        border-color: var(--teal);
        color: #fff;
    }

html.a11y-text {
    font-size: 125%;
}

html.a11y-links a {
    text-decoration: underline !important;
}

html.a11y-contrast body {
    background: #fff;
    color: #000;
}

html.a11y-contrast .hero, html.a11y-contrast .schedule-head, html.a11y-contrast .site-footer {
    background: #000;
}

html.a11y-contrast .news-card, html.a11y-contrast .schedule-card, html.a11y-contrast .pill {
    border: 2px solid #000;
    box-shadow: none;
}

html.a11y-contrast a, html.a11y-contrast .schedule-list strong, html.a11y-contrast .news-date {
    color: #003A8C;
}

html.a11y-contrast .site-footer a {
    color: #fff;
}

/* ---------- Pagina Profesori ---------- */
.teacher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.teacher-card {
    background: #fff;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
    overflow: hidden;
    text-align: center;
    max-width: none;
}

.teacher-photo {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    /* siluetă neagră de om pe fundal alb (SVG încorporat, fără fișier de imagine) */
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Ccircle cx='100' cy='70' r='34'/%3E%3Cpath d='M30 200c0-46 31-76 70-76s70 30 70 76z'/%3E%3C/svg%3E") center bottom / cover no-repeat;
}

    .teacher-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.teacher-name {
    margin: 0;
    padding: 18px 14px 4px;
    color: var(--navy);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.teacher-role {
    margin: 0;
    padding: 0 14px 20px;
    color: var(--teal);
    font-size: .9rem;
}

.teacher-card .teacher-name:last-child {
    padding-bottom: 20px;
}

/* GridView-ul de profesori afișat ca grilă de carduri (cu poză neagră) */
.container.body-content table.teacher-gv {
    display: block;
    width: 100%;
    background: transparent;
    border: 0;
}

.teacher-gv > tbody {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 28px;
}

    .teacher-gv > tbody > tr {
        display: block;
        background: #fff;
        border-radius: var(--radius-card);
        box-shadow: var(--shadow);
        overflow: hidden;
        text-align: center;
    }

        .teacher-gv > tbody > tr > td {
            display: block;
            padding: 0;
            border: 0;
            background: transparent;
        }

        .teacher-gv > tbody > tr.pager {
            grid-column: 1 / -1;
            background: transparent;
            box-shadow: none;
            border-radius: 0;
            text-align: left;
        }

            .teacher-gv > tbody > tr.pager > td {
                padding: 8px 0;
            }

            .teacher-gv > tbody > tr.pager table {
                background: transparent;
            }

.teacher-empty {
    color: var(--muted);
    padding: 24px;
}

/* ---------- Pagini informative (înscrieri) ---------- */
.page-lead {
    color: var(--muted);
    font-size: 1.15rem;
    margin: -10px 0 28px;
    max-width: 70ch;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

    .quick-actions .btn {
        padding: 12px 24px;
        font-size: 1rem;
    }

.info-card {
    background: #fff;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
    padding: 30px 34px 32px;
    margin-bottom: 30px;
}

.info-card-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

    .info-card-head .num {
        flex: none;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, var(--teal), var(--teal-dark));
        color: #fff;
        font-weight: 800;
        font-size: 1.1rem;
    }

    .info-card-head h2 {
        margin: 0;
        font-size: 1.45rem;
        letter-spacing: -0.02em;
    }

.info-card p {
    margin: 0 0 10px;
}

    .info-card p:last-child {
        margin-bottom: 0;
    }

.alpha-list {
    margin: 10px 0 0;
    padding-left: 1.6rem;
    list-style: lower-alpha;
}

    .alpha-list li {
        padding-left: 6px;
        margin-bottom: 10px;
        max-width: 80ch;
    }

        .alpha-list li::marker {
            color: var(--teal);
            font-weight: 700;
        }

.gpn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
    margin-top: 14px;
}

.gpn-card {
    background: var(--bg-strip);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 20px 22px;
}

    .gpn-card h3 {
        margin: 0 0 10px;
        font-size: 1.1rem;
        color: var(--teal-dark);
    }

    .gpn-card ul {
        margin: 0 0 12px;
        padding-left: 1.2rem;
    }

    .gpn-card .gpn-hours {
        margin: 0;
        font-weight: 600;
        color: var(--navy);
    }

.doc-list {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

    .doc-list li {
        max-width: none;
    }

.doc-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: var(--bg-strip);
    border: 1px solid var(--line);
    border-radius: 16px;
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
}

    .doc-link:hover {
        border-color: var(--teal);
        background: #fff;
        color: var(--teal-dark);
    }

    .doc-link::before {
        content: attr(data-type);
        flex: none;
        min-width: 48px;
        text-align: center;
        padding: 4px 8px;
        border-radius: 8px;
        background: var(--teal);
        color: #fff;
        font-size: .72rem;
        font-weight: 800;
        letter-spacing: .04em;
    }

.contact-person {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    align-items: baseline;
}

    .contact-person strong {
        color: var(--navy);
    }

@media (max-width: 767px) {
    .info-card {
        padding: 22px 20px 24px;
    }
}

/* Linkuri încă necompletate (href="#"): vizibile, dar neclicabile */
.doc-link.is-empty {
    opacity: .65;
    pointer-events: none;
    cursor: default;
    background: transparent;
}

    .doc-link.is-empty::before {
        background: #9AA8B4;
    }

    .doc-link.is-empty::after {
        content: "în curând";
        margin-left: auto;
        font-size: .8rem;
        font-weight: 500;
        color: var(--muted);
        white-space: nowrap;
    }

.info-card h3 {
    margin: 26px 0 4px;
    font-size: 1.1rem;
    color: var(--teal-dark);
    letter-spacing: -0.01em;
}

    .info-card h3:first-of-type {
        margin-top: 10px;
    }
