/* ============================================================
   edu4incluzion@UBc — foaie de stil custom (fără framework)
   Design: academic & sobru — culori plate, forme curbe blânde
   Paletă restrânsă: violet de brand + accent auriu discret
   ============================================================ */

:root {
    /* Brand (paletă restrânsă) */
    --brand:      #5b3fd1;   /* violet-indigo principal */
    --brand-deep: #3f2aa6;
    --brand-soft: #efeafc;   /* tentă deschisă pentru fundaluri */
    --gold:       #c98a1e;   /* accent cald, folosit rar */
    --gold-soft:  #f7edd8;

    /* Neutre */
    --ink:      #191340;     /* fundaluri închise */
    --ink-2:    #221a54;
    --slate:    #4c4668;
    --muted:    #726c92;
    --line:     #e9e5f4;
    --paper:    #ffffff;
    --paper-2:  #f8f6fd;

    /* Formă */
    --r-sm: 12px;
    --r:    18px;
    --r-lg: 24px;
    --r-xl: 32px;
    --shadow-sm: 0 4px 14px rgba(25, 19, 64, .07);
    --shadow:    0 16px 36px rgba(25, 19, 64, .12);
    --shadow-lg: 0 28px 64px rgba(25, 19, 64, .18);

    --maxw: 1160px;
    --header-h: 76px;

    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --sans:  "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
    font-size: clamp(16px, 1.05vw, 17.5px);
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.1; font-weight: 600; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.section { padding-block: clamp(1.75rem, 4vw, 3.25rem); }
.muted { color: var(--muted); }

/* Accente de text — culoare plată, fără gradient */
.grad-text { color: var(--brand); }
.grad-text.alt { color: var(--gold); }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 200;
    background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Forme curbe decorative ---------- */
.blob { position: absolute; display: block; }
.blob, .shape-soft {
    border-radius: 58% 42% 47% 53% / 55% 48% 52% 45%;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }

.brand { display: flex; align-items: center; }
.brand-logo { height: 52px; width: auto; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; }
.brand-text small { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }

.primary-nav ul { display: flex; align-items: center; gap: .35rem; }
.primary-nav a {
    display: block; padding: .55rem .9rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
    color: var(--slate); transition: color .2s, background .2s;
}
.primary-nav a:hover { color: var(--brand); background: var(--brand-soft); }
.primary-nav a.is-active { color: #fff; background: var(--brand); }

.nav-toggle {
    display: none; width: 46px; height: 46px; border: 0; background: var(--paper-2);
    border-radius: 12px; cursor: pointer; padding: 0; position: relative;
}
.nav-toggle span {
    position: absolute; left: 12px; right: 12px; height: 2.5px; background: var(--ink); border-radius: 3px;
    transition: transform .3s, opacity .2s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 29px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1rem;
    padding: .85rem 1.5rem; border-radius: 999px; cursor: pointer; border: 2px solid transparent;
    transition: transform .18s, box-shadow .25s, background .25s, color .2s;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px rgba(91, 63, 209, .28); }
.btn-primary:hover { background: var(--brand-deep); }
.btn-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-light { background: #fff; color: var(--brand); box-shadow: var(--shadow); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }

/* ---------- Pills / eyebrows ---------- */
.pill {
    display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .82rem;
    letter-spacing: .04em; padding: .45rem .95rem; border-radius: 999px;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); color: #fff;
    text-transform: uppercase; margin-bottom: 1.4rem;
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

.eyebrow {
    display: inline-block; font-weight: 800; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
    color: var(--brand); margin-bottom: .6rem;
}
.section-head { max-width: 620px; margin-bottom: 2.6rem; }
.section-head h2 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
.section-head-center { max-width: 40rem; margin-inline: auto; text-align: center; }
.section-sub { color: var(--slate); margin: .75rem 0 0; font-size: 1.05rem; }
.lead-text,
.split-main > p {
    font-family: var(--sans);
    font-size: clamp(1.12rem, 1.5vw, 1.25rem);
    font-weight: 400;
    line-height: 1.7;
    color: var(--slate);
    max-width: 70ch;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    margin: 0 0 .9rem;
}
.split-main > p:last-child,
.about-copy .lead-text:last-child {
    margin-bottom: 0;
}
.obj-card p,
.act-item p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}


.text-link {
    display: inline-flex; align-items: center; gap: .45rem;
    margin-top: 1.4rem; font-weight: 700; color: var(--brand);
    transition: gap .2s, color .2s;
}
.text-link:hover { gap: .7rem; color: var(--brand-deep); }

/* ---------- Hero (home) — container + animated bg ---------- */
.hero-shell {
    width: 100%;
    margin: 0;
}

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    min-height: clamp(420px, 62vw, 560px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(3.2rem, 8vw, 5.5rem) clamp(1.5rem, 4vw, 3rem);
    text-align: center;
    border-radius: 0;
    box-shadow: none;
}

.hero-visual {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: scale(1.14) translate3d(0, 0, 0);
    will-change: transform;
    animation: hero-pan 24s ease-in-out infinite alternate;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(18, 14, 42, .38) 0%, rgba(18, 14, 42, .52) 50%, rgba(18, 14, 42, .62) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 58rem;
    margin-inline: auto;
}

.hero-kicker {
    display: inline-block;
    font-size: clamp(1.15rem, 2.2vw, 1.5rem);
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 1rem;
    animation: hero-rise .9s cubic-bezier(.22, 1, .36, 1) both;
}

.hero-title {
    font-size: clamp(1.85rem, 4.2vw, 3.15rem);
    font-weight: 600;
    line-height: 1.12;
    margin: 0 0 1.1rem;
    color: rgba(255, 255, 255, .94);
    animation: hero-rise .9s cubic-bezier(.22, 1, .36, 1) .12s both;
}

.hero-cta {
    display: flex;
    gap: .85rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.75rem;
    animation: hero-rise .9s cubic-bezier(.22, 1, .36, 1) .24s both;
}

.hero .btn-primary {
    box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
}

.hero .btn-ghost {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

@keyframes hero-pan {
    0%   { transform: scale(1.14) translate3d(-2.2%, 0, 0); }
    100% { transform: scale(1.2) translate3d(2.2%, -1.2%, 0); }
}

@keyframes hero-rise {
    from {
        opacity: 0;
        transform: translateY(1.25rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg { animation: none; transform: scale(1.08); }
    .hero-kicker, .hero-title, .hero-cta { animation: none; }
}

/* ---------- Stats band ---------- */
.stats-band {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem;
    margin-top: -2.4rem; position: relative; z-index: 5;
}
.stat-card {
    background: #fff; border-radius: var(--r-lg); padding: 1.8rem 1.4rem; text-align: center;
    box-shadow: var(--shadow); border: 1px solid var(--line);
    transition: transform .25s, box-shadow .25s;
}
.stat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.stat-num {
    display: block; font-family: var(--serif); font-weight: 700; font-size: clamp(2rem, 4vw, 2.9rem);
    line-height: 1; color: var(--brand);
}
.stat-card:nth-child(3) .stat-num { color: var(--gold); }
.stat-label { display: block; margin-top: .5rem; font-weight: 600; color: var(--muted); font-size: .92rem; }

/* ---------- About block (home) ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: stretch;
}
.about-copy .lead-text { margin-bottom: .9rem; }
.about-copy .lead-text:last-child { margin-bottom: 0; }

.counsel-banner {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-xl);
    min-height: 100%;
    background:
        linear-gradient(155deg, rgba(25, 19, 64, .92) 0%, rgba(63, 42, 166, .88) 55%, rgba(91, 63, 209, .82) 100%),
        url("../img/photos/counseling.jpg") center / cover no-repeat;
    color: #fff;
    box-shadow: var(--shadow);
}
.counsel-banner-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: clamp(1.8rem, 4vw, 2.4rem);
}
.counsel-eyebrow {
    display: inline-block;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #e7bd6b;
    margin-bottom: .9rem;
}
.counsel-banner h3 {
    font-family: var(--serif);
    font-size: clamp(1.45rem, 2.4vw, 1.85rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 .85rem;
    color: #fff;
}
.counsel-banner p {
    margin: 0 0 1.5rem;
    color: rgba(255, 255, 255, .82);
    font-size: .98rem;
    line-height: 1.55;
}
.counsel-banner .btn-light {
    align-self: flex-start;
    color: var(--brand-deep);
}
.counsel-banner .btn-light:hover {
    transform: translateY(-2px);
}

/* ---------- Services band (Digiplus-inspired) ---------- */
.services-band {
    background: var(--paper-2);
    border-block: 1px solid var(--line);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--line);
    background: var(--paper);
    border-radius: var(--r-lg);
    overflow: hidden;
}
.service-item {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    padding: 2rem 1.6rem 1.8rem;
    border-right: 1px solid var(--line);
    background: var(--paper);
    transition: background .3s, color .3s, transform .3s;
}
.service-item:last-child { border-right: 0; }
.service-num {
    font-family: var(--serif);
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1;
    color: var(--brand);
    margin-bottom: 1.4rem;
    transition: color .3s;
}
.service-item h3 {
    font-family: var(--sans);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    transition: color .3s;
}
.service-go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-top: auto;
    border: 1px solid var(--line);
    border-radius: 50%;
    font-size: 1.15rem;
    color: var(--brand);
    transition: background .3s, border-color .3s, color .3s, transform .3s;
}
.service-item:hover {
    background: var(--ink);
    color: #fff;
}
.service-item:hover .service-num,
.service-item:hover h3 { color: #fff; }
.service-item:hover .service-go {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    transform: translateX(4px);
}

/* ---------- Legacy feature grid (unused on home; keep for safety) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.feature-card {
    position: relative; overflow: hidden; padding: 2rem; border-radius: var(--r-lg);
    background: var(--paper-2); border: 1px solid var(--line);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feature-card::before {
    content: ""; position: absolute; inset: 0 auto auto 0; width: 5px; height: 100%; background: var(--brand);
}
.feature-card.fc-2::before, .feature-card.fc-4::before { background: var(--gold); }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.feature-card h3 { font-size: 1.5rem; }
.feature-card p { color: var(--slate); margin-bottom: 1rem; }
.fc-more { font-weight: 700; color: var(--brand); }

/* ---------- Icon badges (SVG line icons) ---------- */
.icon-badge {
    width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
    margin-bottom: 1.1rem; background: var(--brand-soft); border: 1px solid var(--line);
}
.icon-badge svg {
    width: 28px; height: 28px; fill: none; stroke: var(--brand);
    stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.feature-card.fc-2 .icon-badge, .feature-card.fc-4 .icon-badge { background: var(--gold-soft); }
.feature-card.fc-2 .icon-badge svg, .feature-card.fc-4 .icon-badge svg { stroke: var(--gold); }

/* ---------- CTA panel ---------- */
.cta-panel {
    position: relative; overflow: hidden; text-align: center; color: #fff;
    background: var(--ink-2); border-radius: var(--r-xl); padding: clamp(2.6rem, 6vw, 4.5rem);
}
.cta-panel h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.cta-panel p { color: rgba(255,255,255,.8); max-width: 54ch; margin-inline: auto; margin-bottom: 1.8rem; }
.cta-panel .hero-cta { margin-top: 0; }
.cta-panel-glow {
    position: absolute; width: 360px; height: 360px; background: #33298a; opacity: .55;
    top: -140px; right: -110px; border-radius: 60% 40% 45% 55% / 50% 55% 45% 50%;
}
.cta-panel::after {
    content: ""; position: absolute; width: 220px; height: 220px; background: var(--gold); opacity: .12;
    bottom: -120px; left: -70px; border-radius: 50% 50% 55% 45% / 55% 45% 55% 45%;
}
.cta-panel.has-photo { background: var(--ink); }
.cta-panel .cta-photo { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.cta-panel .cta-overlay { position: absolute; inset: 0; z-index: 1; background: rgba(21,16,54,.55); }
.cta-panel h2, .cta-panel p, .cta-panel .btn, .cta-panel .hero-cta { position: relative; z-index: 2; }

/* ---------- Page hero (interior) ---------- */
.page-hero {
    position: relative; color: #fff; overflow: hidden; background: var(--ink);
    padding-block: clamp(3.4rem, 9vw, 6rem);
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero::before {
    content: ""; position: absolute; width: 460px; height: 460px; background: #322785; opacity: .5;
    top: -190px; right: -120px; border-radius: 58% 42% 47% 53% / 55% 48% 52% 45%;
}
.page-hero::after {
    content: ""; position: absolute; width: 200px; height: 200px; background: var(--gold); opacity: .13;
    bottom: -110px; left: 8%; border-radius: 52% 48% 55% 45% / 50% 52% 48% 50%;
}
.page-hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 700; }
.page-hero h1 .grad-text { color: #b6a4f5; }
.page-hero-lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(255,255,255,.8); max-width: 60ch; }

/* ---------- Split (despre) ---------- */
.split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2.6rem; align-items: start; }
.split-main h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.info-card {
    background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 1.8rem; box-shadow: var(--shadow-sm); position: sticky; top: calc(var(--header-h) + 1rem);
}
.info-card h3 { font-size: 1.3rem; }
.def-list > div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed var(--line); }
.def-list > div:last-child { border-bottom: 0; }
.def-list dt { color: var(--muted); font-weight: 600; margin: 0; }
.def-list dd { margin: 0; font-weight: 700; text-align: right; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.pillar {
    padding: 2rem; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line);
    box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s;
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pillar-num { font-family: var(--serif); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--brand); }
.pillar:nth-child(2) .pillar-num { color: var(--gold); }
.pillar h3 { font-size: 1.35rem; margin-top: .6rem; }
.pillar p { color: var(--slate); margin: 0; }

/* ---------- Obiective grid ---------- */
.obj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.obj-card {
    position: relative; overflow: hidden; padding: 1.9rem; border-radius: var(--r-lg);
    background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    transition: transform .25s, box-shadow .25s;
    animation: rise .6s both; animation-delay: calc(var(--i) * .07s);
}
.obj-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.obj-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.obj-code {
    font-weight: 800; font-size: .95rem; letter-spacing: .05em; color: #fff;
    background: var(--brand); padding: .35rem .8rem; border-radius: 999px;
}
.obj-index { font-family: var(--serif); font-weight: 700; font-size: 2.6rem; color: var(--line); line-height: 1; }
.obj-card p { color: var(--slate); margin: 0; font-size: 1.02rem; }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Timeline (legacy) ---------- */
.timeline { position: relative; padding-left: 0; }
.timeline::before {
    content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 3px;
    background: var(--line); border-radius: 3px;
}
.tl-item {
    position: relative; display: grid; grid-template-columns: 58px 1fr; gap: 1.2rem; align-items: start;
    margin-bottom: 1.4rem; animation: rise .6s both; animation-delay: calc(var(--i) * .06s);
}
.tl-marker {
    position: relative; z-index: 2; width: 56px; height: 56px; border-radius: 50%;
    display: grid; place-items: center; font-weight: 800; color: #fff; font-size: .95rem;
    background: var(--brand); border: 4px solid #fff; box-shadow: var(--shadow-sm);
}
.tl-item:nth-child(even) .tl-marker { background: var(--ink); }
.tl-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem 1.6rem;
    box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.tl-card:hover { transform: translateX(5px); box-shadow: var(--shadow); }
.tl-card h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.tl-card p { color: var(--slate); margin: 0; }

/* ---------- Activities compact grid ---------- */
.page-hero-compact {
    padding-block: clamp(1.8rem, 4.5vw, 2.8rem);
}
.page-hero-compact h1 {
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    margin-bottom: .4rem;
}
.page-hero-compact .page-hero-lead {
    font-size: 1rem;
    margin: 0;
    max-width: 48ch;
}
.section-tight {
    padding-block: clamp(1.4rem, 3vw, 2.2rem);
}
.act-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.act-item {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 1.15rem 1.25rem;
    transition: border-color .2s, box-shadow .2s, transform .2s;
    animation: rise .45s both;
    animation-delay: calc(var(--i) * .04s);
}
.act-item:hover {
    border-color: transparent;
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}
.act-code {
    display: inline-block;
    font-family: var(--sans);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brand);
    background: var(--brand-soft);
    padding: .28rem .55rem;
    border-radius: 6px;
    margin-bottom: .7rem;
}
.act-item:nth-child(3n+2) .act-code {
    color: var(--gold);
    background: var(--gold-soft);
}
.act-item:nth-child(3n) .act-code {
    color: var(--ink);
    background: var(--line);
}
.act-item h3 {
    font-family: var(--sans);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 .45rem;
    line-height: 1.25;
}
.act-item p {
    margin: 0;
    color: var(--slate);
    font-size: .9rem;
    line-height: 1.5;
}

/* ---------- Buget ---------- */
.budget-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-bottom: 2rem; }
.bs-card { border-radius: var(--r-lg); padding: 1.8rem; color: #fff; box-shadow: var(--shadow-sm); }
.bs-a { background: var(--brand); }
.bs-b { background: var(--gold); }
.bs-c { background: var(--ink); }
.bs-label { display: block; font-weight: 700; font-size: .9rem; letter-spacing: .04em; opacity: .9; text-transform: uppercase; }
.bs-value { display: block; font-family: var(--serif); font-weight: 700; font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-top: .3rem; }
.bs-value small { font-size: .55em; opacity: .85; font-family: var(--sans); }

.split-bar { display: flex; height: 46px; border-radius: 999px; overflow: hidden; box-shadow: var(--shadow-sm); font-weight: 800; color: #fff; }
.split-bar span { display: grid; place-items: center; font-size: .95rem; }
.sb-solicitata { background: var(--brand); }
.sb-cofinantare { background: var(--gold); }
.split-bar-legend { display: flex; gap: 1.6rem; margin-top: .9rem; font-weight: 600; color: var(--slate); font-size: .92rem; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: .4rem; vertical-align: middle; }
.dot-a { background: var(--brand); }
.dot-b { background: var(--gold); }

.table-scroll { overflow-x: auto; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.budget-table { width: 100%; border-collapse: collapse; min-width: 620px; background: #fff; }
.budget-table th, .budget-table td { padding: 1rem 1.2rem; text-align: left; }
.budget-table thead th { background: var(--ink); color: #fff; font-family: var(--sans); font-weight: 700; font-size: .9rem; }
.budget-table thead th.num, .budget-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.budget-table tbody tr { border-top: 1px solid var(--line); transition: background .15s; }
.budget-table tbody tr:hover { background: var(--paper-2); }
.budget-table td.nr { font-weight: 800; color: var(--brand); }
.budget-table tr.is-sub { background: var(--paper-2); font-style: italic; color: var(--muted); }
.budget-table tr.is-sub td.nr { color: var(--gold); }
.budget-table tfoot .total-solicitat td { border-top: 2px solid var(--ink); font-weight: 800; }
.budget-table tfoot .total-general td { background: var(--brand); color: #fff; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; }
.table-note { color: var(--muted); font-size: .88rem; margin-top: .9rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-bottom: 3rem; }
.contact-card {
    padding: 2rem; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line);
    box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s;
}
.contact-card:not(.static):hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.contact-card h3 { font-size: 1.3rem; }
.contact-card p { font-weight: 700; color: var(--ink); margin-bottom: .8rem; word-break: break-word; }
.cc-more { font-weight: 700; color: var(--brand); font-size: .95rem; }

.contact-panel {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.4rem; align-items: center;
    background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(2rem, 5vw, 3.4rem);
}
.cp-text h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
.cp-text p { color: var(--slate); }
.cp-visual { display: flex; flex-direction: column; gap: .8rem; }
.chat-bubble { padding: .9rem 1.2rem; border-radius: var(--r); font-weight: 600; max-width: 90%; box-shadow: var(--shadow-sm); }
.chat-bubble.in { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 5px; }
.chat-bubble.out { background: var(--brand); color: #fff; align-self: flex-end; border-bottom-right-radius: 5px; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--paper-2);
    color: var(--slate);
    margin-top: 2rem;
    border-top: 1px solid var(--line);
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; padding-block: clamp(2.6rem, 6vw, 4rem); }
.footer-cobrand { margin-bottom: 1.1rem; }
.footer-logo { height: 56px; width: auto; margin: 0; }
.footer-brand p { max-width: 40ch; }
.footer-brand strong { color: var(--ink); }
.footer-col h4 {
    color: var(--ink);
    font-family: var(--sans);
    font-size: .85rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.footer-col li { margin-bottom: .55rem; }
.footer-col a { color: var(--slate); transition: color .2s; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid var(--line); background: var(--paper); }
.footer-bottom .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding-block: 1.4rem; font-size: .88rem; }
.footer-bottom strong { color: var(--ink); }
.footer-bottom .muted { color: var(--muted); }

/* ---------- Tratament foto: glass · decupaje · blur ---------- */
.glass {
    background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
    backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-radius: var(--r-lg); color: #fff;
}

/* Bandă imagine full-width cu overlay plat + card glass */
.image-band {
    position: relative; overflow: hidden; border-radius: var(--r-xl);
    min-height: clamp(340px, 40vw, 440px); display: flex; align-items: flex-end; padding: clamp(1.4rem, 4vw, 2.4rem);
}
.image-band .band-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.image-band .band-overlay { position: absolute; inset: 0; background: rgba(21,16,54,.5); }
.image-band .band-overlay.soft { background: rgba(21,16,54,.34); }
.image-band .glass { position: relative; z-index: 2; max-width: 480px; padding: clamp(1.4rem, 3vw, 2rem); }
.image-band .glass .eyebrow { color: #e7bd6b; }
.image-band .glass h2, .image-band .glass h3 { color: #fff; }
.image-band .glass h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .5rem; }
.image-band .glass p { color: rgba(255,255,255,.9); margin: 0; }
.band-tr .glass { margin-left: auto; }

/* Page hero cu fotografie (blur + overlay) */
.page-hero.has-photo { background: var(--ink-2); }
.page-hero .ph-photo {
    position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: .34; filter: blur(2px);
}
.page-hero .ph-overlay { position: absolute; inset: 0; z-index: 1; background: rgba(21,16,54,.45); }

/* Decupaj foto + bule glass (contact) */
.cp-visual { position: relative; min-height: 360px; }
.cp-photo {
    width: 100%; height: 360px; object-fit: cover;
    border-radius: 58% 42% 45% 55% / 55% 42% 58% 45%;
    box-shadow: 0 24px 60px rgba(25,19,64,.3);
}
.cp-visual .blur-ring {
    position: absolute; inset: -14px; z-index: -1; border-radius: 58% 42% 45% 55% / 55% 42% 58% 45%;
    background: var(--brand); opacity: .25; filter: blur(30px);
}
.cp-visual .chat-bubble { position: absolute; z-index: 2; max-width: 62%; }
.cp-visual .chat-bubble.in { top: 8%; left: -6%; background: rgba(255,255,255,.85); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cp-visual .chat-bubble.out { bottom: 10%; right: -4%; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero {
        min-height: clamp(380px, 70vw, 480px);
        padding-block: clamp(2.8rem, 7vw, 4.2rem);
    }
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .service-item {
        min-height: 180px;
        border-right: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
    }
    .service-item:nth-child(2n) { border-right: 0; }
    .service-item:nth-child(n+3) { border-bottom: 0; }
    .service-item:last-child { border-right: 0; }
    .act-grid { grid-template-columns: repeat(2, 1fr); }
    .split, .contact-panel { grid-template-columns: 1fr; }
    .info-card { position: static; }
    .pillars, .obj-grid, .budget-summary, .contact-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
    .nav-toggle { display: block; }
    .primary-nav {
        position: fixed; inset: var(--header-h) 0 auto 0; background: rgba(255,255,255,.98);
        backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
        transform: translateY(-120%); transition: transform .35s cubic-bezier(.4,0,.2,1); visibility: hidden;
    }
    .primary-nav.open { transform: translateY(0); visibility: visible; }
    .primary-nav ul { flex-direction: column; align-items: stretch; gap: .3rem; padding: 1rem 1.25rem 1.6rem; }
    .primary-nav a { padding: .85rem 1rem; font-size: 1.05rem; }
    .stats-band { grid-template-columns: repeat(2, 1fr); }
    .feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .brand-text small { display: none; }
    .brand-logo { height: 42px; }
    .services-grid { grid-template-columns: 1fr; }
    .service-item {
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
    .service-item:last-child { border-bottom: 0; }
    .act-grid { grid-template-columns: 1fr; }
    .pillars, .obj-grid, .budget-summary, .contact-grid, .stats-band { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; justify-content: center; }
    .tl-item { grid-template-columns: 46px 1fr; gap: .8rem; }
    .tl-marker { width: 44px; height: 44px; font-size: .8rem; }
    .timeline::before { left: 21px; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; scroll-behavior: auto; }
    .btn:hover, .stat-card:hover, .feature-card:hover, .pillar:hover, .obj-card:hover, .service-item:hover .service-go { transform: none; }
}
