/**
 * Stiluri pentru pagini de servicii
 */

/* Page Hero Sections */
.page-hero {
    padding: 100px 20px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 75, 141, 0.9) 0%, rgba(0, 51, 102, 0.95) 100%);
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

.page-hero i {
    font-size: 5rem;
    margin-bottom: 20px;
    display: block;
    opacity: 0.9;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 800;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.page-hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    font-weight: 300;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

/* Specific backgrounds for each service */
.page-hero-constructii {
    background-image: url('https://images.unsplash.com/photo-1487958449943-2429e8be8625?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
}

.page-hero-instalatii {
    background-image: url('https://images.unsplash.com/photo-1621905252507-b35492cc74b4?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
}

.page-hero-electrice {
    background-image: url('https://images.unsplash.com/photo-1621905251189-08b45d6a269e?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
}

.page-hero-incendii {
    background-image: url('https://images.unsplash.com/photo-1541976590-713941681591?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
}

.page-hero-automatizari {
    background-image: url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
}

.page-hero-productie {
    background-image: url('https://images.unsplash.com/photo-1581094794329-c8112a89af12?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
}

.page-hero-servicii {
    /* Video background */
}

.page-hero-contact {
    /* Video background */
}

.page-hero-generic {
    background-image: url('https://images.unsplash.com/photo-1487958449943-2429e8be8625?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
}

.page-hero-shop {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.page-hero-shop .animated-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(0, 75, 141, 0.85) 0%, rgba(0, 51, 102, 0.9) 100%);
}

@keyframes backgroundMove {
    0% {
        background-position: 0% 0%;
        transform: scale(1);
    }
    50% {
        background-position: 50% 50%;
        transform: scale(1.05);
    }
    100% {
        background-position: 100% 100%;
        transform: scale(1.1);
    }
}

.page-hero-shop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 75, 141, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 51, 102, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, rgba(0, 75, 141, 0.6) 0%, rgba(0, 51, 102, 0.7) 100%);
    z-index: 2;
    animation: overlayPulse 8s ease-in-out infinite;
}

@keyframes overlayPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.9;
    }
}

.page-hero-shop .page-hero-content {
    position: relative;
    z-index: 3;
}

.page-hero-product-detail {
    background-image: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
}

.page-hero-order {
    background-image: url('https://images.unsplash.com/photo-1554224155-6726b3ff858f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
}

/* Contact Page Styles */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info-section {
    position: sticky;
    top: 100px;
    align-self: start;
}

.contact-info-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 75, 141, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(0, 75, 141, 0.1);
}

.contact-info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-info-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-info-item h3 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.contact-info-item p {
    color: var(--text-light);
    margin: 5px 0;
    line-height: 1.6;
}

.contact-info-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info-item a:hover {
    color: var(--accent-color);
}

.contact-form-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 75, 141, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-form .form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-form .form-group label i {
    color: var(--primary-color);
}

.contact-form input,
.contact-form input[type="password"],
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(0, 75, 141, 0.1);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s;
    background: var(--white);
}

.contact-form input:focus,
.contact-form input[type="password"]:focus,
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 75, 141, 0.1);
}

@media (max-width: 968px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info-section {
        position: static;
    }
}

/* Shop Styles */
.shop-filters-modern {
    margin-bottom: 40px;
}

.filter-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 75, 141, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 500px;
}

.filter-card i {
    font-size: 2rem;
    color: var(--primary-color);
}

.filter-card label {
    font-weight: 600;
    color: var(--primary-color);
}

.filter-select {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid rgba(0, 75, 141, 0.1);
    border-radius: 8px;
    font-size: 16px;
    background: var(--white);
    transition: all 0.3s;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 75, 141, 0.1);
}

.no-products-modern {
    text-align: center;
    padding: 80px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 75, 141, 0.12);
}

.no-products-modern i {
    font-size: 5rem;
    color: var(--text-light);
    margin-bottom: 20px;
    display: block;
    opacity: 0.5;
}

.no-products-modern h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.no-products-modern p {
    color: var(--text-light);
}

/* Product Cards Enhancement */
.product-card {
    text-align: center;
}

.product-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-light);
}

.product-placeholder i {
    font-size: 3rem;
    opacity: 0.5;
}

.product-category {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.product-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.product-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.product-actions .btn i {
    margin-right: 5px;
}

/* Product Detail Styles */
.product-detail {
    max-width: 1200px;
    margin: 0 auto;
}

.product-detail-image-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.product-detail-image {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 75, 141, 0.15);
    border: 1px solid rgba(0, 75, 141, 0.1);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

.product-image-caption {
    margin-top: 20px;
    padding: 15px 20px;
    background: rgba(0, 75, 141, 0.05);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
    max-width: 100%;
    border: 1px solid rgba(0, 75, 141, 0.1);
}

.product-image-caption i {
    color: var(--primary-color);
    margin-right: 8px;
}

.product-detail-info {
    padding: 0 20px;
}

.product-price-large {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-description {
    margin: 30px 0;
    padding: 25px;
    background: rgba(242, 242, 242, 0.5);
    border-radius: 12px;
}

.product-description h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-detail-features {
    display: flex;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.detail-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(0, 75, 141, 0.05);
    border-radius: 8px;
    color: var(--primary-color);
    font-weight: 600;
}

.detail-feature i {
    font-size: 1.3rem;
}

/* Button styles for light backgrounds */
.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 75, 141, 0.3);
}

.product-placeholder-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--text-light);
    padding: 60px;
}

.product-placeholder-large i {
    font-size: 5rem;
    opacity: 0.5;
}

/* Order Page Styles */
.success-card-modern {
    text-align: center;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 75, 141, 0.12);
    max-width: 600px;
    margin: 0 auto;
}

.success-card-modern i {
    font-size: 5rem;
    color: var(--success);
    margin-bottom: 20px;
    display: block;
}

.success-card-modern h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.order-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.order-product-summary {
    margin-bottom: 30px;
}

.order-product-summary h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-summary-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 75, 141, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.product-summary-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-summary-image {
    max-width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
}

.order-form-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 75, 141, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.order-form-card h3 {
    color: var(--primary-color);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: rgba(242, 242, 242, 0.5);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.radio-label:hover {
    background: rgba(0, 75, 141, 0.05);
}

.radio-label input[type="radio"]:checked + span {
    color: var(--primary-color);
    font-weight: 600;
}

.radio-label:has(input[type="radio"]:checked) {
    background: rgba(0, 75, 141, 0.1);
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr !important;
    }
    
    .product-summary-card {
        flex-direction: column;
    }
    
    .product-detail-features {
        flex-direction: column;
    }
}

/* Page Section */
.page-section {
    padding: 80px 20px;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(242, 242, 242, 0.95) 100%);
    min-height: 400px;
}

/* Features Grid */
.page-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.feature-item {
    text-align: center;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 75, 141, 0.12);
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 48px rgba(0, 75, 141, 0.25);
}

.feature-item i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 75, 141, 0.2));
}

.feature-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 700;
}

.feature-item p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Page Body Content */
.page-body-content {
    max-width: 900px;
    margin: 0 auto 50px;
}

.content-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.content-text p {
    margin-bottom: 20px;
}

.content-text strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* CTA Button with Icon */
.page-cta {
    text-align: center;
    margin-top: 40px;
}

.page-cta .btn i {
    margin-right: 8px;
}

/* Services Grid Enhancement */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.service-card i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 75, 141, 0.2));
}

/* Responsive */
@media (max-width: 768px) {
    .page-hero {
        padding: 80px 20px;
        background-attachment: scroll;
    }
    
    .page-hero i {
        font-size: 4rem;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .page-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .page-features {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .feature-item i {
        font-size: 3rem;
    }
    
    .filter-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .filter-card i {
        font-size: 1.5rem;
    }
    
    .filter-card label {
        font-size: 0.95rem;
    }
    
    .filter-select {
        width: 100%;
        box-sizing: border-box;
        font-size: 16px; /* Previne zoom pe iOS */
        padding: 12px 15px;
    }
    
    .shop-filters-modern {
        margin-bottom: 30px;
    }
}
