/* PILOT — Pagina Instructori */

:root {
    --inst-bg: #0b0f19;
    --inst-bg-soft: #121827;
    --inst-surface: #ffffff;
    --inst-text: #f8fafc;
    --inst-text-dark: #0f172a;
    --inst-text-soft: #94a3b8;
    --inst-border: rgba(255, 255, 255, 0.08);
    --inst-blue: #3b82f6;
    --inst-teal: #2dd4bf;
    --inst-amber: #fbbf24;
    --inst-violet: #a78bfa;
    --inst-slate: #64748b;
    --inst-accent: #ef4444;
    --inst-radius: 24px;
    --inst-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body.page-instructori {
    background: var(--inst-bg);
    color: var(--inst-text);
}

body.page-instructori .main-content--instructori {
    background: var(--inst-bg);
}

/* Header light pe fundal dark al paginii */
body.page-instructori .inst-site-header {
    position: relative;
    z-index: 30;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
    isolation: isolate;
}

body.page-instructori .inst-site-header .header-tagline {
    color: var(--inst-text-dark);
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-size: 0.95rem;
}

body.page-instructori .inst-site-header .header-tagline span {
    color: #2563eb;
    font-weight: 600;
}

body.page-instructori .inst-site-header .header-phone {
    color: #475569;
}

body.page-instructori .inst-site-header .header-phone i {
    color: #2563eb;
}

body.page-instructori .inst-site-header .header-phone a {
    color: inherit;
}

body.page-instructori .inst-site-header .header-phone a:hover {
    color: #2563eb;
}

body.page-instructori .inst-site-header .header-cta {
    background: #2563eb;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

body.page-instructori .inst-site-header .header-cta:hover {
    background: #1d4ed8;
}

body.page-instructori .inst-mobile-bar {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}

body.page-instructori .inst-mobile-bar .header-tagline {
    color: var(--inst-text-dark);
    font-style: normal;
}

body.page-instructori .inst-mobile-bar .header-tagline span {
    color: #2563eb;
}

@media (max-width: 1024px) {
    body.page-instructori .main-content--instructori {
        padding-top: 112px;
    }
}

/* Hero */
.inst-hero {
    position: relative;
    padding: 48px 24px 56px;
    overflow: hidden;
}

.inst-hero-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 80% 60%, rgba(167, 139, 250, 0.12) 0%, transparent 50%);
    pointer-events: none;
}

.inst-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
}

.inst-breadcrumb {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--inst-text-soft);
    margin-bottom: 20px;
}

.inst-breadcrumb a {
    color: var(--inst-blue);
}

.inst-breadcrumb span {
    margin: 0 8px;
    opacity: 0.4;
}

.inst-hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 16px;
}

.inst-hero-title span {
    background: linear-gradient(135deg, var(--inst-blue), var(--inst-violet));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.inst-hero-desc {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--inst-text-soft);
    max-width: 540px;
    margin-bottom: 32px;
}

.inst-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.inst-stat strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--inst-text);
    line-height: 1;
    margin-bottom: 4px;
}

.inst-stat span {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--inst-text-soft);
}

/* Toolbar */
.inst-grid-section {
    padding: 0 24px 80px;
    max-width: 1140px;
    margin: 0 auto;
}

.inst-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 36px;
}

.inst-toolbar h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--inst-text);
}

.inst-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.inst-filter {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--inst-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--inst-text-soft);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--inst-ease);
}

.inst-filter:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--inst-text);
}

.inst-filter.is-active {
    background: var(--inst-blue);
    border-color: var(--inst-blue);
    color: #fff;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
}

/* Grid */
.inst-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
    perspective: 1200px;
}

.inst-card {
    transition: opacity 0.4s ease, transform 0.4s var(--inst-ease);
}

.inst-card.is-hidden {
    display: none;
}

.inst-card.is-filtering {
    opacity: 0;
    transform: scale(0.92);
}

.inst-card-inner {
    position: relative;
    border-radius: var(--inst-radius);
    overflow: hidden;
    background: var(--inst-bg-soft);
    border: 1px solid var(--inst-border);
    transform-style: preserve-3d;
    transition: box-shadow 0.45s var(--inst-ease), border-color 0.45s;
    will-change: transform;
}

.inst-card:hover .inst-card-inner {
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.06);
}

.inst-card-photo {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.inst-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.7s var(--inst-ease), filter 0.5s;
    filter: saturate(0.92);
}

.inst-card:hover .inst-card-photo img {
    transform: scale(1.08);
    filter: saturate(1.05);
}

.inst-card-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.15) 0%,
        transparent 40%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.45s;
    pointer-events: none;
}

.inst-card:hover .inst-card-shine {
    opacity: 1;
}

.inst-card-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 15, 25, 0.95) 0%, transparent 55%);
    pointer-events: none;
}

.inst-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.inst-card--blue .inst-card-badge {
    background: rgba(59, 130, 246, 0.25);
    color: #93c5fd;
}

.inst-card--teal .inst-card-badge {
    background: rgba(45, 212, 191, 0.2);
    color: #5eead4;
}

.inst-card--amber .inst-card-badge {
    background: rgba(251, 191, 36, 0.2);
    color: #fde68a;
}

.inst-card--violet .inst-card-badge {
    background: rgba(167, 139, 250, 0.25);
    color: #c4b5fd;
}

.inst-card--slate .inst-card-badge {
    background: rgba(100, 116, 139, 0.35);
    color: #cbd5e1;
}

.inst-card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 24px 22px 22px;
    transform: translateY(8px);
    transition: transform 0.45s var(--inst-ease);
}

.inst-card:hover .inst-card-body {
    transform: translateY(0);
}

.inst-card-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.inst-card-role {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.45;
}

.inst-card-bar {
    height: 3px;
    border-radius: 2px;
    margin-top: 14px;
    width: 0;
    transition: width 0.5s var(--inst-ease);
}

.inst-card:hover .inst-card-bar {
    width: 48px;
}

.inst-card--blue .inst-card-bar { background: var(--inst-blue); }
.inst-card--teal .inst-card-bar { background: var(--inst-teal); }
.inst-card--amber .inst-card-bar { background: var(--inst-amber); }
.inst-card--violet .inst-card-bar { background: var(--inst-violet); }
.inst-card--slate .inst-card-bar { background: var(--inst-slate); }

/* CTA */
.inst-cta {
    padding: 0 24px 88px;
}

.inst-cta-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 36px 40px;
    border-radius: var(--inst-radius);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(167, 139, 250, 0.08) 100%);
    border: 1px solid var(--inst-border);
}

.inst-cta-text h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.inst-cta-text p {
    font-size: 0.9rem;
    color: var(--inst-text-soft);
}

.inst-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    flex-shrink: 0;
}

.inst-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    transition: all 0.3s var(--inst-ease);
}

.inst-btn--primary {
    background: var(--inst-blue);
    color: #fff;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
}

.inst-btn--primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.inst-btn--outline {
    border: 1px solid var(--inst-border);
    color: var(--inst-text);
    background: rgba(255, 255, 255, 0.04);
}

.inst-btn--outline:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
}

/* Reveal */
.inst-reveal {
    opacity: 0;
    transition: opacity 0.7s var(--inst-ease), transform 0.7s var(--inst-ease);
    transition-delay: var(--inst-delay, 0s);
}

.inst-reveal[data-reveal="up"] {
    transform: translateY(32px);
}

.inst-reveal[data-reveal="fade"] {
    transform: translateY(12px);
}

.inst-reveal[data-reveal="scale"] {
    transform: scale(0.9) translateY(20px);
}

.inst-reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Footer pe pagina dark */
body.page-instructori .site-footer {
    margin-top: 0;
}

@media (max-width: 768px) {
    .inst-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .inst-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }

    .inst-cta-inner {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
    }

    .inst-cta-actions {
        justify-content: center;
        width: 100%;
    }

    .inst-btn {
        flex: 1;
        justify-content: center;
        min-width: 140px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .inst-reveal,
    .inst-card-inner,
    .inst-card-photo img {
        transition: none;
    }

    .inst-reveal {
        opacity: 1;
        transform: none;
    }
}

@media (hover: none) {
    .inst-card-body {
        transform: none;
    }

    .inst-card-bar {
        width: 48px;
    }
}
