/* ==========================================================================
   PORTFOLIO STYLES
   ========================================================================== */

/* Hero Landing */
.hero-landing {
    padding: clamp(5rem, 10vw, 8rem) 0;
    text-align: center;
}
.hero-landing h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: var(--fw-bold);
    color: var(--nws-text);
    margin-bottom: var(--space-4);
    line-height: var(--lh-tight);
}
.hero-landing p {
    font-size: var(--fs-lg);
    color: var(--nws-text-soft);
    max-width: 700px;
    margin: 0 auto var(--space-8) auto;
}

/* Presentation Block */
.presentation-block {
    margin-top: var(--space-10);
    position: relative;
}
.collage-img {
    width: 100%;
    border-radius: 30px;
    box-shadow: var(--shadow-xl);
    margin-bottom: var(--space-12);
    display: block;
    object-fit: cover;
}

/* Intro Split */
.intro-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    align-items: center;
    margin-bottom: var(--space-12);
    text-align: left;
}
@media(min-width: 992px) {
    .intro-split { 
        grid-template-columns: 1fr 1fr; 
        gap: var(--space-12); 
    }
}
.intro-split h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
    margin-bottom: var(--space-4);
    color: var(--nws-text);
}
.intro-split p {
    font-size: var(--fs-base);
    color: var(--nws-text-soft);
    line-height: var(--lh-relaxed);
}

.intro-img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

/* Timeline Rows */
.portfolio-timeline {
    display: flex;
    flex-direction: column;
    gap: var(--space-10);
    padding: var(--space-10) 0;
}
.timeline-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    background: var(--nws-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--nws-border);
    align-items: center;
    transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out);
}
.timeline-row:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
@media(min-width: 768px) {
    .timeline-row { 
        grid-template-columns: 250px 1fr; 
        padding: var(--space-8); 
        gap: var(--space-10); 
    }
}

.client-logo-box {
    background: var(--nws-bg);
    border-radius: var(--radius-md);
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--nws-border);
    font-family: var(--font-heading);
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--nws-text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}
.timeline-content h3 {
    font-family: var(--font-heading);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    margin-bottom: var(--space-2);
    color: var(--nws-text);
}
.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}
.tag-badge {
    background: rgba(var(--nws-primary-rgb), 0.1);
    color: var(--nws-primary);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    padding: 4px 12px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.timeline-content p {
    color: var(--nws-text-soft);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-6);
}
.timeline-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: var(--fw-bold);
    color: var(--nws-primary);
    text-decoration: none;
    transition: gap var(--duration-fast) var(--ease-out);
}
.timeline-link:hover { 
    gap: var(--space-3);
}

/* Masonry Grid */
.masonry-gallery {
    column-count: 1;
    column-gap: var(--space-6);
    margin-top: var(--space-8);
}
@media(min-width: 640px) { .masonry-gallery { column-count: 2; } }
@media(min-width: 1024px) { .masonry-gallery { column-count: 3; } }

.masonry-item {
    break-inside: avoid;
    margin-bottom: var(--space-6);
    border-radius: var(--radius-lg);
    background: var(--nws-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nws-text-light);
    font-weight: var(--fw-semibold);
    text-align: center;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: transform var(--duration-normal) var(--ease-out);
}

.masonry-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Partner Strip */
.partner-strip {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    flex-wrap: wrap;
    padding: var(--space-8) 0;
    border-top: 1px solid var(--nws-border);
    border-bottom: 1px solid var(--nws-border);
    margin: var(--space-10) 0;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: filter var(--duration-normal) var(--ease-out), opacity var(--duration-normal) var(--ease-out);
}
.partner-strip:hover { filter: grayscale(0%); opacity: 1; }
.partner-strip svg {
    height: 32px;
    width: auto;
    color: var(--nws-text);
}

/* Bottom CTA */
.cta-bottom-block {
    background: var(--nws-text);
    color: #fff;
    border-radius: 30px;
    padding: clamp(3rem, 6vw, 5rem);
    margin: var(--space-12) 0;
    position: relative;
    overflow: hidden;
}
.cta-bottom-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    position: relative;
    z-index: 1;
}
@media(min-width: 992px) {
    .cta-bottom-grid { 
        grid-template-columns: 1fr 1fr; 
        align-items: center; 
        gap: var(--space-12); 
    }
}
.cta-bottom-block h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--fw-bold);
    margin-bottom: var(--space-4);
    color: #fff;
}
.cta-feature-list {
    list-style: none;
    padding: 0;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}
.cta-feature-list li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--fs-base);
}

/* Form Container */
.cta-form-container {
    background: #fff;
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    color: var(--nws-text);
}
.cta-form-container h3 {
    font-family: var(--font-heading);
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    margin-bottom: var(--space-4);
}
.cta-input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--nws-border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-3);
    font-family: inherit;
    font-size: var(--fs-base);
    transition: border-color var(--duration-fast) var(--ease-out);
}
.cta-input:focus {
    outline: none;
    border-color: var(--nws-primary);
}

.portfolio-list {
    padding-left: 1.25rem;
    color: var(--nws-text-soft);
    line-height: var(--lh-normal);
}
.portfolio-list li {
    margin-bottom: var(--space-2);
}
.portfolio-banner {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}
.w-full {
    width: 100%;
}

/* ============================================================
   DARK MODE OVERRIDES FOR PORTFOLIO CTA
   ============================================================ */
[data-theme="dark"] .cta-bottom-block {
    background: var(--nws-surface-2) !important;
}
[data-theme="dark"] .cta-bottom-block h2 {
    color: var(--nws-text) !important;
}
[data-theme="dark"] .cta-bottom-block p {
    color: var(--nws-text-soft) !important;
}
[data-theme="dark"] .cta-feature-list {
    color: var(--nws-text-soft) !important;
}
[data-theme="dark"] .cta-form-container {
    background: var(--nws-surface) !important;
}
[data-theme="dark"] .cta-form-container h3 {
    color: var(--nws-text) !important;
}
[data-theme="dark"] .cta-input {
    background: var(--nws-surface-3) !important;
    border-color: var(--nws-border) !important;
    color: var(--nws-text) !important;
}

/* ============================================================
   DARK MODE PENTRU PAGINA DE STUDII DE CAZ VECHE (STATIC)
   ============================================================ */
[data-theme="dark"] .cs-card,
[data-theme="dark"] .cs-service-item {
    background: var(--nws-surface) !important;
    border-color: var(--nws-border) !important;
}
[data-theme="dark"] .cs-card-title,
[data-theme="dark"] .cs-step,
[data-theme="dark"] .cs-service-title,
[data-theme="dark"] .cs-service-subtitle {
    color: var(--nws-text) !important;
}
[data-theme="dark"] .cs-card-desc,
[data-theme="dark"] .cs-service-text {
    color: var(--nws-text-soft) !important;
}
[data-theme="dark"] .cs-services-wrap {
    background: var(--nws-surface-2) !important;
}
[data-theme="dark"] .cs-intro-title {
    color: var(--nws-text) !important;
}

