/* =================================================================
   WEB-DESIGN.CSS — ECOSOFT WordPress Theme
   ================================================================= */

/* ----------------------------------------------------------------
   HERO
   ---------------------------------------------------------------- */

#wd-hero {
    background: linear-gradient(135deg, #1a7a96 0%, #2193b0 55%, #4fc3d8 100%);
    position: relative;
    overflow: hidden;
}

#wd-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M50 50v-10h-4v10h-10v4h10v10h4v-10h10v-4H50zM50 10V0h-4v10H36v4h10v10h4V14h10v-4H50zM10 50v-10H6v10H-4v4h10v10h4v-10h10v-4H10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

#wd-hero::after {
    content: '';
    position: absolute;
    width: 40vw;
    height: 40vw;
    background: rgba(255,255,255,0.05);
    transform: rotate(45deg);
    right: -14vw;
    bottom: -14vw;
    pointer-events: none;
}

.wd-hero-overlay {
    padding: 160px 0 80px;
    position: relative;
    z-index: 1;
}

.wd-hero-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 48px;
}

.wd-hero-left {
    flex: 0 0 55%;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.wd-hero-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wd-hero-img {
    width: 100%;
    max-width: 480px;
    height: auto;
    display: block;
    filter: drop-shadow(0 24px 48px rgba(0,0,0,0.25));
    animation: wd-float 4s ease-in-out infinite;
}

@keyframes wd-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-12px); }
}

.wd-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 18px;
    backdrop-filter: blur(4px);
}

.wd-hero-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    color: #fff;
    margin: 0 0 24px;
    line-height: 1.15;
}

.wd-hero-lead {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(255,255,255,0.92);
    line-height: 1.7;
    margin: 0 0 16px;
    max-width: 720px;
}

.wd-hero-body {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.78);
    line-height: 1.8;
    margin: 0 0 32px;
    max-width: 680px;
}

.wd-hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Stats cards */
.wd-hero-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.wd-stat-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(6px);
    border-radius: 16px;
    padding: 24px 32px;
    text-align: center;
    flex: 1 1 120px;
    max-width: 200px;
}

.wd-stat-num {
    display: inline;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 2.4rem;
    color: #fff;
    line-height: 1;
}

.wd-stat-suffix {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: #6dd5ed;
}

.wd-stat-label {
    display: block;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.75);
    margin-top: 8px;
    letter-spacing: 0.3px;
}

/* ----------------------------------------------------------------
   BUTTONS
   ---------------------------------------------------------------- */

.wd-btn {
    display: inline-flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.5px;
    padding: 13px 28px;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.wd-btn-white {
    background: #fff;
    color: #1a7a96;
    box-shadow: 0 6px 24px rgba(0,0,0,0.15);
}

.wd-btn-white:hover {
    background: #f0fafd;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
    color: #1a7a96;
}

.wd-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
}

.wd-btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    transform: translateY(-2px);
    color: #fff;
}

.wd-btn-sm {
    padding: 10px 22px;
    font-size: 0.82rem;
    margin-top: 16px;
}

/* ----------------------------------------------------------------
   SERVICII
   ---------------------------------------------------------------- */

#wd-servicii {
    padding: 88px 0;
    background: #f8fbfd;
    position: relative;
    overflow: hidden;
}

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

.wd-section-intro {
    text-align: center;
    margin-bottom: 52px;
}

.wd-section-intro .tm-section-title::after {
    margin: 14px auto 0;
}

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

.wd-service-card {
    background: #fff;
    border: 1px solid #e4eff5;
    border-radius: 16px;
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

.wd-service-card::after {
    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;
}

.wd-service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 56px rgba(33,147,176,0.13);
}

.wd-service-card:hover::after {
    transform: scaleX(1);
}

/* CTA card — gradient background */
.wd-service-card--cta {
    background: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%);
    border-color: transparent;
}

.wd-service-card--cta::after {
    display: none;
}

.wd-service-card--cta .wd-service-title,
.wd-service-card--cta .wd-service-text {
    color: #fff;
}

.wd-service-card--cta .wd-service-text {
    color: rgba(255,255,255,0.85);
}

.wd-service-card--cta .wd-service-icon {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.wd-service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 22px;
    flex-shrink: 0;
}

.wd-service-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: #2c3e50;
    margin: 0 0 12px;
    line-height: 1.4;
}

.wd-service-text {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.87rem;
    color: #6a8090;
    line-height: 1.7;
    margin: 0;
    flex: 1;
}

/* ----------------------------------------------------------------
   CTA FINAL
   ---------------------------------------------------------------- */

#wd-cta {
    padding: 48px 40px;
    background: linear-gradient(135deg, #1a7a96 0%, #2193b0 50%, #6dd5ed 100%);
    position: relative;
    overflow: hidden;
}

#wd-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

#wd-cta::after {
    content: '';
    position: absolute;
    width: 24vw;
    height: 24vw;
    background: rgba(255,255,255,0.06);
    transform: rotate(45deg);
    right: -8vw;
    top: -8vw;
    pointer-events: none;
}

.wd-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.wd-cta-text h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(1.2rem, 2.2vw, 1.8rem);
    color: #fff;
    margin: 0 0 8px;
}

.wd-cta-text p {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
    margin: 0;
}

/* ----------------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------------- */

@media (max-width: 1024px) {
    .wd-hero-inner {
        flex-direction: column-reverse;
        gap: 32px;
    }
    .wd-hero-left {
        flex: none;
        width: 100%;
    }
    .wd-hero-img {
        max-width: 360px;
    }
    .wd-servicii-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .wd-hero-img {
        max-width: 260px;
    }
    .wd-hero-stats {
        gap: 12px;
    }
    .wd-stat-card {
        padding: 18px 20px;
    }
    .wd-servicii-grid {
        grid-template-columns: 1fr;
    }
    .wd-cta-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .wd-hero-btns {
        flex-direction: column;
    }
    .wd-btn {
        text-align: center;
        justify-content: center;
    }
}
