/* =================================================================
   DESPRE-NOI.CSS — ECOSOFT WordPress Theme
   ================================================================= */

/* ----------------------------------------------------------------
   SHARED UTILITY
   ---------------------------------------------------------------- */

.dn-section-title-centered {
    text-align: center;
    margin-bottom: 48px;
}

.dn-section-title-centered::after {
    margin-left: auto;
    margin-right: auto;
}

/* =================================================================
   SECTIUNEA 1 — WELCOME
   ================================================================= */

#dn-welcome {
    padding: 160px 0 80px;
    background: #fff;
    position: relative;
    overflow: hidden;
}

#dn-welcome::before {
    content: '';
    position: absolute;
    width: 28vw;
    height: 28vw;
    background: rgba(33,147,176,0.05);
    transform: rotate(45deg);
    left: -10vw;
    bottom: -10vw;
    pointer-events: none;
}

.dn-welcome-split {
    display: flex;
    align-items: center;
    gap: 72px;
}

.dn-welcome-text {
    flex: 1 1 0;
    min-width: 0;
}

.dn-welcome-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 3.5vw, 3rem);
    color: #2c3e50;
    margin: 0 0 20px;
    line-height: 1.2;
}

.dn-welcome-accent {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #2193b0, #6dd5ed);
    border-radius: 2px;
    margin-bottom: 28px;
}

.dn-welcome-lead {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #2193b0;
    line-height: 1.7;
    margin: 0 0 18px;
}

.dn-welcome-body {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    color: #5a6a7a;
    line-height: 1.8;
    margin: 0;
}

.dn-welcome-image {
    flex: 0 0 42%;
    max-width: 42%;
}

.dn-welcome-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* =================================================================
   SECTIUNEA 2 — SERVICII
   ================================================================= */

#dn-servicii {
    padding: 80px 0;
    background: #f0fafd;
    position: relative;
    overflow: hidden;
}

#dn-servicii::before {
    content: '';
    position: absolute;
    width: 22vw;
    height: 22vw;
    background: rgba(33,147,176,0.06);
    transform: rotate(45deg);
    right: -7vw;
    top: -7vw;
    pointer-events: none;
}

.dn-servicii-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.dn-serviciu-item {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(33,147,176,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.dn-serviciu-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(33,147,176,0.16);
}

.dn-serviciu-img {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.dn-serviciu-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.dn-serviciu-item:hover .dn-serviciu-img img {
    transform: scale(1.05);
}

.dn-serviciu-body {
    padding: 20px 20px 24px;
    flex: 1;
}

.dn-serviciu-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #2c3e50;
    margin: 0 0 10px;
}

.dn-serviciu-text {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    color: #6a8090;
    line-height: 1.6;
    margin: 0;
}

/* =================================================================
   SECTIUNEA 3 — CTA BANNER
   ================================================================= */

#dn-cta-banner {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.dn-cta-overlay {
    background: linear-gradient(135deg, rgba(33,147,176,0.82), rgba(44,62,80,0.78));
    padding: 72px 0;
    text-align: center;
}

.dn-cta-tagline {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(1.2rem, 2.5vw, 1.9rem);
    color: #fff;
    margin: 0 0 28px;
    letter-spacing: 0.5px;
}

/* =================================================================
   SECTIUNEA 4 — SOFTURI DE GESTIUNE
   ================================================================= */

#dn-softuri {
    padding: 80px 0;
    background: #fff;
}

.dn-softuri-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.dn-soft-card {
    padding: 32px 24px;
    border: 1px solid #e4eff5;
    border-radius: 14px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

.dn-soft-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #2193b0, #6dd5ed);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.dn-soft-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(33,147,176,0.13);
}

.dn-soft-card:hover::before {
    transform: scaleX(1);
}

.dn-soft-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.4rem;
    color: #fff;
}

.dn-soft-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #2c3e50;
    margin: 0 0 12px;
    line-height: 1.4;
}

.dn-soft-text {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    color: #6a8090;
    line-height: 1.65;
    margin: 0;
}

/* =================================================================
   SECTIUNEA 5 — CARUSEL SOFTWARE
   ================================================================= */

#dn-carousel {
    padding: 80px 0;
    background: #f0fafd;
}

.dn-carousel-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dn-carousel-viewport {
    flex: 1;
    overflow: hidden;
    border-radius: 12px;
}

.dn-carousel-track {
    display: flex;
    gap: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.dn-carousel-slide {
    flex: 0 0 25%;
    padding: 12px;
    box-sizing: border-box;
}

.dn-carousel-slide img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    display: block;
    background: #fff;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 4px 18px rgba(33,147,176,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dn-carousel-slide img:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(33,147,176,0.18);
}

.dn-carousel-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: #fff;
    border: 2px solid #e4eff5;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #2193b0;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 12px rgba(33,147,176,0.1);
}

.dn-carousel-btn:hover {
    background: #2193b0;
    border-color: #2193b0;
    color: #fff;
    transform: scale(1.08);
}

.dn-carousel-dots {
    display: none;
}

.dn-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c8dde6;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    border: none;
    padding: 0;
}

.dn-carousel-dot.active {
    background: #2193b0;
    transform: scale(1.3);
}

/* =================================================================
   RESPONSIVE
   ================================================================= */

@media (max-width: 1024px) {
    .dn-servicii-grid,
    .dn-softuri-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dn-carousel-slide {
        flex: 0 0 33.333%;
    }
}

@media (max-width: 768px) {
    .dn-welcome-split {
        flex-direction: column;
        gap: 40px;
    }
    .dn-welcome-image {
        flex: none;
        max-width: 100%;
    }
    .dn-servicii-grid,
    .dn-softuri-grid {
        grid-template-columns: 1fr;
    }
    .dn-carousel-slide {
        flex: 0 0 50%;
    }
}

@media (max-width: 480px) {
    .dn-carousel-slide {
        flex: 0 0 100%;
    }
}
