/* ============================================================
   The Elements – Team Experts  |  te-team.css  v1.0.0
   Estetică: spa de lux, neutru cald, tipografie rafinată
   ============================================================ */

/* ── Fonturi Google ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Jost:wght@300;400;500&display=swap');


/* ── Variabile ──────────────────────────────────────────────── */
:root {
    --te-font-display : 'Cormorant Garamond', Georgia, serif;
    --te-font-body    : 'Jost', system-ui, sans-serif;

    --te-cream        : #f7f4f0;
    --te-sand         : #e8e1d7;
    --te-gold         : #b8975a;
    --te-gold-light   : #d4b882;
    --te-dark         : #1e1c1a;
    --te-muted        : #6b6560;
    --te-white        : #ffffff;

    --te-radius-card  : 2px;
    --te-transition   : 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --te-max-width    : 1280px;
    --te-gutter       : clamp(1rem, 4vw, 2.5rem);
}

/* ── Reset minimal ──────────────────────────────────────────── */
.te-experts-wrap *,
.te-single__hero *,
.te-single__bio *,
.te-single__others * {
    box-sizing: border-box;
}

/* ============================================================
   GRIDUL DE EXPERȚI  [te_experts]
   ============================================================ */

.te-experts-wrap {
    width: 100%;
    padding: clamp(2rem, 6vw, 5rem) var(--te-gutter);
    background: var(--te-cream);
}

.te-experts-section-title {
    font-family: var(--te-font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 300;
    letter-spacing: 0.04em;
    color: var(--te-dark);
    text-align: center;
    margin: 0 0 clamp(2rem, 5vw, 4rem);
}

.te-experts-section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 1px;
    background: var(--te-gold);
    margin: 1rem auto 0;
}

/* Grid columns */
.te-experts-grid {
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    max-width: var(--te-max-width);
    margin: 0 auto;
}

.te-experts-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.te-experts-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.te-experts-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .te-experts-grid--cols-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .te-experts-grid--cols-3,
    .te-experts-grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .te-experts-grid--cols-2,
    .te-experts-grid--cols-3,
    .te-experts-grid--cols-4 { grid-template-columns: 1fr; }
}

/* ── Card ────────────────────────────────────────────────────── */
.te-expert-card {
    position: relative;
    background: var(--te-white);
    border-radius: var(--te-radius-card);
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(30, 28, 26, 0.06);
    transition: box-shadow var(--te-transition), transform var(--te-transition);
}

.te-expert-card:hover {
    box-shadow: 0 8px 40px rgba(30, 28, 26, 0.14);
    transform: translateY(-4px);
}

.te-expert-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Media */
.te-expert-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: var(--te-sand);
}

.te-expert-card__image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    transition: transform var(--te-transition);
}

.te-expert-card:hover .te-expert-card__image {
    transform: scale(1.05);
}

/* Overlay hover */
.te-expert-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 28, 26, 0.72) 0%, transparent 55%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 1.5rem;
    opacity: 0;
    transition: opacity var(--te-transition);
}

.te-expert-card:hover .te-expert-card__overlay {
    opacity: 1;
}

.te-expert-card__cta {
    font-family: var(--te-font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--te-white);
    border-bottom: 1px solid var(--te-gold);
    padding-bottom: 2px;
}

/* Body card */
.te-expert-card__body {
    padding: 1.25rem 1.5rem 1.5rem;
    background: var(--te-white);
}

.te-expert-card__name {
    font-family: var(--te-font-display);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 400;
    color: var(--te-dark);
    margin: 0 0 0.25rem;
    line-height: 1.25;
}

.te-expert-card__role {
    font-family: var(--te-font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--te-gold);
    margin: 0 0 0.75rem;
}

.te-expert-card__excerpt {
    font-family: var(--te-font-body);
    font-size: 0.85rem;
    color: var(--te-muted);
    line-height: 1.6;
    margin: 0.5rem 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Separator auriu sub grilă */
.te-experts-wrap + * {
    border-top: 1px solid var(--te-sand);
}

/* ============================================================
   PAGINA SINGLE – EXPERT
   ============================================================ */

/* ── Hero ──────────────────────────────────────────────────── */
.te-single__hero {
    position: relative;
    min-height: clamp(420px, 65vh, 680px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--te-dark);
}

.te-single__hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 20%;
    transform: scale(1.04);
    transition: transform 1.2s ease;
    will-change: transform;
}

.te-single__hero:hover .te-single__hero-bg {
    transform: scale(1.0);
}

.te-single__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(20, 18, 16, 0.82) 0%,
        rgba(20, 18, 16, 0.35) 50%,
        rgba(20, 18, 16, 0.1) 100%
    );
}

.te-single__hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--te-max-width);
    margin: 0 auto;
    padding: 2rem var(--te-gutter) clamp(2.5rem, 6vw, 5rem);
}

.te-single__breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--te-font-body);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: clamp(2rem, 5vw, 4rem);
}

.te-single__breadcrumb a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.2s;
}

.te-single__breadcrumb a:hover { color: var(--te-gold-light); }

.te-single__hero-text {
    max-width: 640px;
}

.te-single__role {
    font-family: var(--te-font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--te-gold-light);
    margin: 0 0 0.6rem;
}

.te-single__name {
    font-family: var(--te-font-display);
    font-size: clamp(2.4rem, 6vw, 5rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.1;
    color: var(--te-white);
    margin: 0;
    letter-spacing: -0.01em;
}

/* ── Bio ─────────────────────────────────────────────────────── */
.te-single__bio {
    background: var(--te-white);
    padding: clamp(3rem, 8vw, 7rem) var(--te-gutter);
}

.te-single__bio-inner {
    max-width: var(--te-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: clamp(2.5rem, 5vw, 6rem);
    align-items: start;
}

@media (max-width: 860px) {
    .te-single__bio-inner {
        grid-template-columns: 1fr;
    }
}

/* Portret */
.te-single__portrait {
    position: sticky;
    top: 2rem;
}

.te-single__portrait-img {
    width: 100%;
    display: block;
    border-radius: 2px;
    box-shadow: 0 12px 48px rgba(30, 28, 26, 0.12);
}

@media (max-width: 860px) {
    .te-single__portrait {
        position: static;
        max-width: 360px;
    }
    .type-te_expert .elementor-top-section.elementor-element.elementor-element-de1bd58{
       padding: 0px;
    }
}

/* Content */
.te-single__content-role {
    font-family: var(--te-font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--te-gold);
    margin: 0 0 1.5rem;
}

.te-single__content-role::before {
    content: '——  ';
    letter-spacing: 0;
}

.te-single__text {
    font-family: var(--te-font-body);
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    line-height: 1.85;
    color: var(--te-muted);
}

.te-single__text p {
    margin: 0 0 1.4em;
}

.te-single__text p:last-child {
    margin-bottom: 0;
}

.te-single__text strong {
    color: var(--te-dark);
    font-weight: 500;
}

.te-single__back {
    margin-top: 2.5rem;
}

/* ── Buton ───────────────────────────────────────────────────── */
.te-btn {
    display: inline-block;
    font-family: var(--te-font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.85em 2.2em;
    border-radius: 0;
    transition: background var(--te-transition), color var(--te-transition), border-color var(--te-transition);
    cursor: pointer;
}

.te-btn--outline {
    color: var(--te-dark);
    border: 1px solid var(--te-dark);
    background: transparent;
}

.te-btn--outline:hover {
    background: var(--te-dark);
    color: var(--te-white);
}

/* ── Secțiunea "Alege alt expert" ───────────────────────────── */
.te-single__others {
    background: var(--te-cream);
    padding: clamp(3rem, 8vw, 7rem) 0 clamp(3rem, 8vw, 5rem);
}

.te-single__others-inner {
    max-width: var(--te-max-width);
    margin: 0 auto;
    padding: 0 var(--te-gutter);
}

/* Reutilizăm .te-experts-wrap dar fără padding propriu în this context */
.te-single__others .te-experts-wrap {
    background: transparent;
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
}

.te-single__others-header {
    text-align: center;
    margin-bottom: clamp(2rem, 5vw, 4rem);
}

.te-single__others-title {
    font-family: var(--te-font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 300;
    letter-spacing: 0.04em;
    color: var(--te-dark);
    margin: 0 0 0.75rem;
}

.te-single__others-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--te-gold);
    margin: 0.8rem auto 0;
}

.te-single__others-subtitle {
    font-family: var(--te-font-body);
    font-size: 0.95rem;
    color: var(--te-muted);
    margin: 0;
}

/* ============================================================
   UTILITARE
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .te-expert-card,
    .te-expert-card__image,
    .te-expert-card__overlay,
    .te-single__hero-bg {
        transition: none !important;
        transform: none !important;
    }
}


.te_expert-template-default #qodef-page-inner{
   padding-top: 0px;
   padding-bottom: 0px;
}
