:root {
    /* Înlocuiește doar fișierul hero.webp pentru fotografia finală. */
    --hero-image: url('/images/orar/hero.webp?v=20260825-1');
    --ink: #07111e;
    --blue: #1677c8;
    --blue-dark: #0d5f9f;
    --gold: #eea52b;
    --gold-dark: #cb7816;
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
    margin: 0;
    min-width: 320px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #fff;
    background: var(--ink);
}

.home-shell {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    background-image:
        linear-gradient(115deg, rgba(3, 12, 22, .82) 0%, rgba(5, 20, 35, .68) 48%, rgba(4, 13, 24, .8) 100%),
        var(--hero-image),
        linear-gradient(135deg, #071523, #153b55);
    background-position: center;
    background-size: cover;
}

.home-shell::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        radial-gradient(circle at 18% 20%, rgba(25, 119, 200, .24), transparent 38%),
        radial-gradient(circle at 84% 78%, rgba(238, 165, 43, .12), transparent 30%);
}

.school-brand {
    display: flex;
    align-items: center;
    gap: .9rem;
    width: min(1180px, calc(100% - 3rem));
    margin: 1.5rem auto 0;
}

.school-brand img {
    width: 76px;
    height: 76px;
    object-fit: contain;
    padding: .35rem;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 10px 32px rgba(0, 0, 0, .26);
}

.school-brand__text { display: grid; line-height: 1.22; text-shadow: 0 2px 12px #000; }
.school-brand__text span { color: rgba(255, 255, 255, .76); font-size: .86rem; letter-spacing: .06em; text-transform: uppercase; }
.school-brand__text strong { margin: .12rem 0; font-family: Georgia, serif; font-size: 1.15rem; font-weight: 600; }

.hero {
    display: grid;
    align-content: center;
    width: min(1040px, calc(100% - 3rem));
    margin: 2rem auto;
}

.hero__heading { margin-bottom: 2.6rem; text-align: center; }
.hero__eyebrow { margin: 0 0 .55rem; color: #9dc9ec; font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.hero h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.4rem, 9vw, 6.6rem); font-weight: 500; letter-spacing: -.055em; line-height: .95; text-shadow: 0 8px 30px rgba(0, 0, 0, .55); }
.hero h1 span { color: #f3b64e; }
.hero__subtitle { max-width: 660px; margin: 1.15rem auto 0; color: rgba(255, 255, 255, .78); font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.55; }

.access-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }

.access-card {
    position: relative;
    overflow: hidden;
    padding: 1.7rem;
    color: #122033;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 24px 65px rgba(0, 0, 0, .3);
    backdrop-filter: blur(14px);
    transition: transform .25s ease, box-shadow .25s ease;
}

.access-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--accent); }
.access-card:hover { transform: translateY(-6px); box-shadow: 0 30px 75px rgba(0, 0, 0, .42); }
.access-card--teachers { --accent: var(--gold); --accent-dark: var(--gold-dark); --soft: #fff4df; }
.access-card--admin { --accent: var(--blue); --accent-dark: var(--blue-dark); --soft: #e8f4fc; }

.access-card__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; color: var(--accent-dark); background: var(--soft); }
.access-card__icon svg, .live-clock svg { width: 27px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.access-card__label { margin: 1.2rem 0 .35rem; color: var(--accent-dark); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.access-card h2 { margin: 0; font-size: clamp(1.3rem, 2.2vw, 1.65rem); }
.access-card__description { margin: .55rem 0 1.4rem; color: #5b6878; }

.access-card__button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: .85rem 1rem;
    color: #fff;
    font-weight: 750;
    text-decoration: none;
    border-radius: .8rem;
    background: var(--accent-dark);
    transition: filter .2s ease, transform .2s ease;
}

.access-card__button:hover { filter: brightness(1.08); }
.access-card__button:active { transform: scale(.99); }
.access-card__button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.home-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    width: min(1180px, calc(100% - 3rem));
    margin: 0 auto 1.5rem;
    color: rgba(255, 255, 255, .65);
    font-size: .8rem;
}

.live-clock { display: flex; align-items: center; gap: .7rem; padding: .65rem 1rem; color: rgba(255, 255, 255, .9); border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; background: rgba(3, 10, 18, .5); backdrop-filter: blur(10px); }
.live-clock svg { width: 19px; color: #f3b64e; }
.live-clock__separator { width: 1px; height: 1rem; background: rgba(255, 255, 255, .24); }

@media (max-width: 720px) {
    .home-shell { overflow: auto; }
    .school-brand { width: min(100% - 2rem, 34rem); margin-top: 1rem; }
    .school-brand img { width: 60px; height: 60px; }
    .school-brand__text span { font-size: .68rem; }
    .school-brand__text strong { font-size: 1rem; }
    .hero { width: min(100% - 2rem, 34rem); margin: 3rem auto; }
    .hero__heading { margin-bottom: 2rem; }
    .access-grid { grid-template-columns: 1fr; }
    .access-card { padding: 1.4rem; }
    .home-meta { flex-direction: column; width: calc(100% - 2rem); margin-bottom: 1rem; text-align: center; }
    .live-clock { order: -1; }
}

@media (max-height: 760px) and (min-width: 721px) {
    .school-brand img { width: 60px; height: 60px; }
    .hero { margin-block: 1rem; }
    .hero__heading { margin-bottom: 1.3rem; }
    .hero h1 { font-size: 4rem; }
    .access-card { padding: 1.25rem; }
    .access-card__icon { width: 45px; height: 45px; }
    .access-card__label { margin-top: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
