/*
==================================================================

ELVEA WEBSITE - SERVICE COMPONENTS

Version: 1.0.0
Created: 2025-09-30
Last Modified: 2025-09-30 09:00 CEST
Description: Komponenty pre servis stránku - service types, ROI calculator, process steps
Features: Interactive ROI calculator, service pricing table, emergency styling
Author: ELVEA Development Team

==================================================================
*/

/* ============================================
SERVICE TYPES COMPONENTS
============================================ */

.service-types {
    padding: 80px 0;
    background: var(--bg-light);
}

.service-types__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-type {
    background: var(--color-white);
    border-radius: var(--border-radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition-standard);
    border: 3px solid transparent;
    position: relative;
}

.service-type:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--color-primary);
}

.service-type--recommended {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-medium);
}

.service-type--recommended:hover {
    border-color: var(--color-primary);
}

.service-type--emergency {
    border-color: #dc3545;
}

.service-type--emergency:hover {
    border-color: #dc3545;
    box-shadow: 0 15px 40px rgba(220, 53, 69, 0.3);
}

.service-type__badge {
    position: absolute;
    top: -1px;
    right: 20px;
    background: var(--color-accent);
    color: var(--color-white);
    padding: 8px 16px;
    border-radius: 0 0 12px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
}

.service-type__header {
    padding: 30px 30px 25px;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-light) 0%, #ffffff 100%);
}

.service-type--emergency .service-type__header {
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}

.service-type__icon {
    color: var(--color-primary);
    margin-bottom: 15px;
}

.service-type--emergency .service-type__icon {
    color: #dc3545;
}

.service-type__title {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.service-type--emergency .service-type__title {
    color: #dc3545;
}

.service-type__price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-accent);
}

.service-type--emergency .service-type__price {
    color: #dc3545;
}

.service-type__content {
    padding: 0 30px 25px;
}

.service-type__features {
    list-style: none;
    margin: 0;
    padding: 0;
}

.service-type__features li {
    padding: 8px 0;
    color: var(--color-text-secondary);
    position: relative;
    padding-left: 25px;
    line-height: 1.5;
    border-bottom: 1px solid var(--bg-light);
}

.service-type__features li:last-child {
    border-bottom: none;
}

.service-type__features li::before {
    content: "✓";
    color: var(--color-accent);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 8px;
}

.service-type--emergency .service-type__features li::before {
    content: "⚡";
    color: #dc3545;
}

.service-type__footer {
    padding: 20px 30px 30px;
    border-top: 2px solid var(--bg-light);
    text-align: center;
}

.service-type__interval {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 15px;
    font-weight: 600;
}

.service-type__cta {
    display: inline-block;
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-standard);
    width: 100%;
    box-sizing: border-box;
}

.service-type__cta:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

.service-type__cta--emergency {
    background: #dc3545;
    color: var(--color-white);
    border-color: #dc3545;
}

.service-type__cta--emergency:hover {
    background: #c82333;
    border-color: #c82333;
}

/* ============================================
ROI CALCULATOR COMPONENTS
============================================ */

.roi-calculator {
    padding: 80px 0;
    background: var(--color-white);
}

.roi-calculator__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.roi-calculator__inputs {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
}

.roi-calculator__inputs h3 {
    color: var(--color-primary);
    margin-bottom: 30px;
    font-size: 1.3rem;
    font-weight: 700;
}

.roi-calculator__results {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.roi-result {
    background: var(--bg-light);
    padding: 25px;
    border-radius: var(--border-radius-large);
    border: 3px solid transparent;
    transition: var(--transition-standard);
}

.roi-result:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-light);
}

.roi-result--preventive {
    background: linear-gradient(135deg, #f0f8f0 0%, #ffffff 100%);
    border-color: var(--color-accent);
}

.roi-result h3 {
    color: var(--color-primary);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.roi-result__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.roi-result__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.roi-result__item:last-child {
    border-bottom: none;
}

.roi-result__label {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.roi-result__value {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1rem;
}

.roi-result__total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid var(--color-primary);
}

.roi-result__total .roi-result__value {
    font-size: 1.2rem;
    color: var(--color-accent);
}

.roi-savings {
    background: linear-gradient(135deg, var(--color-accent) 0%, #228B22 100%);
    color: var(--color-white);
    padding: 30px 25px;
    border-radius: var(--border-radius-large);
    text-align: center;
    box-shadow: var(--shadow-medium);
}

.roi-savings h3 {
    color: var(--color-white);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.roi-savings__amount {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 900;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.roi-savings__percentage {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    opacity: 0.9;
}

.roi-savings__payback {
    font-size: 1rem;
    opacity: 0.8;
}

/* ============================================
SERVICE PROCESS COMPONENTS
============================================ */

.service-process {
    padding: 80px 0;
    background: var(--bg-light);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    position: relative;
}

.process-step {
    background: var(--color-white);
    padding: 30px 25px;
    border-radius: var(--border-radius-large);
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition-standard);
    border: 3px solid transparent;
    position: relative;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--color-primary);
}

.process-step__number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 128, 0.3);
}

.process-step__title {
    color: var(--color-primary);
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.process-step__description {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* ============================================
SERVICE PRICING TABLE COMPONENTS
============================================ */

.service-pricing {
    padding: 80px 0;
    background: var(--color-white);
}

.pricing-table-wrapper {
    overflow-x: auto;
    margin: 40px 0;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
}

.pricing-table--service {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-white);
    font-size: 0.95rem;
}

.pricing-table--service thead {
    background: linear-gradient(135deg, var(--color-primary) 0%, #000066 100%);
    color: var(--color-white);
}

.pricing-table--service th,
.pricing-table--service td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.pricing-table--service th {
    font-weight: 700;
    font-size: 1rem;
}

.pricing-table--service tbody tr:hover {
    background: var(--bg-light);
}

.pricing-table--service tbody tr.highlight {
    background: linear-gradient(135deg, rgba(107, 142, 35, 0.1) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-left: 4px solid var(--color-accent);
}

.pricing-table--service tbody tr.highlight:hover {
    background: linear-gradient(135deg, rgba(107, 142, 35, 0.15) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.pricing-notes {
    margin-top: 40px;
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius-large);
}

.pricing-notes h3 {
    color: var(--color-primary);
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 700;
}

.pricing-notes__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pricing-notes__list li {
    padding: 8px 0;
    color: var(--color-text-secondary);
    position: relative;
    padding-left: 20px;
    line-height: 1.5;
}

.pricing-notes__list li::before {
    content: "ℹ";
    color: var(--color-primary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* ============================================
SERVICE FORM COMPONENTS
============================================ */

.service-form {
    padding: 80px 0;
    background: var(--bg-light);
}

.service-form__content {
    max-width: 800px;
    margin: 0 auto;
}

.service-form__form {
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* ============================================
EMERGENCY STYLING
============================================ */

.hero--emergency {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: var(--color-white);
}

.hero--emergency .hero__title,
.hero--emergency .hero__description {
    color: var(--color-white);
}

.hero--emergency .hero__stat-number,
.hero--emergency .hero__stat-label {
    color: var(--color-white);
}

.hero__btn--emergency {
    background: var(--color-white) !important;
    color: #dc3545 !important;
    border-color: var(--color-white) !important;
    font-weight: 800;
    animation: pulse-emergency 2s infinite;
}

.hero__btn--emergency:hover {
    background: #f8f9fa !important;
    color: #dc3545 !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

@keyframes pulse-emergency {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% { 
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}

/* ============================================
ENHANCED ANIMATIONS
============================================ */

.service-type {
    animation: fadeInUp 0.6s ease-out;
}

.service-type:nth-child(1) { animation-delay: 0.1s; }
.service-type:nth-child(2) { animation-delay: 0.2s; }
.service-type:nth-child(3) { animation-delay: 0.3s; }

.process-step {
    animation: fadeInScale 0.6s ease-out;
}

.process-step:nth-child(1) { animation-delay: 0.1s; }
.process-step:nth-child(2) { animation-delay: 0.2s; }
.process-step:nth-child(3) { animation-delay: 0.3s; }
.process-step:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ROI Calculator result updates animation */
.roi-result__value.updated {
    animation: highlight 0.8s ease-out;
}

@keyframes highlight {
    0% { 
        background: rgba(107, 142, 35, 0.3);
        transform: scale(1);
    }
    50% { 
        background: rgba(107, 142, 35, 0.1);
        transform: scale(1.02);
    }
    100% { 
        background: transparent;
        transform: scale(1);
    }
}

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

@media (max-width: 768px) {
    .service-types__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .roi-calculator__content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .roi-calculator__inputs,
    .service-form__form {
        padding: 30px 25px;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .pricing-table-wrapper {
        margin: 30px -20px;
    }
    
    .pricing-table--service th,
    .pricing-table--service td {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .pricing-notes {
        padding: 25px 20px;
    }
}

@media (max-width: 425px) {
    .service-type__header,
    .service-type__content,
    .service-type__footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .roi-calculator__inputs {
        padding: 25px 20px;
    }
    
    .roi-result,
    .roi-savings {
        padding: 20px;
    }
    
    .process-step {
        padding: 25px 20px;
    }
    
    .pricing-table--service th,
    .pricing-table--service td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}

/* ============================================
ACCESSIBILITY & PERFORMANCE
============================================ */

@media (prefers-reduced-motion: reduce) {
    .service-type,
    .process-step,
    .roi-result,
    .hero__btn--emergency {
        transition: none;
        animation: none;
    }
}

.service-type__cta:focus,
.hero__btn--emergency:focus {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

.service-type__cta--emergency:focus {
    outline-color: #dc3545;
}

/* Performance hints */
.service-type,
.process-step,
.roi-result {
    will-change: transform;
}

.hero__btn--emergency {
    will-change: transform, box-shadow;
}

/* ============================================
PRINT STYLES
============================================ */

@media print {
    .roi-calculator {
        display: none;
    }
    
    .service-type,
    .process-step {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .service-type__cta,
    .hero__btn--emergency {
        display: none;
    }
    
    .pricing-table--service {
        font-size: 0.8rem;
    }
    
    .hero--emergency {
        background: #f5f5f5 !important;
        color: #333 !important;
    }
}

/* ============================================
CALCULATOR SPECIFIC STYLES
============================================ */

.calculator__group {
    margin-bottom: 20px;
}

.calculator__label {
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: 0.95rem;
    margin-bottom: 8px;
    display: block;
}

.calculator__select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition-standard);
    background: var(--color-white);
}

.calculator__select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 0, 128, 0.1);
}

/* Special styling for emergency elements */
.emergency-highlight {
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
    border-left: 4px solid #dc3545;
    padding-left: 20px;
}

/* Service type icons hover effects */
.service-type:hover .service-type__icon {
    transform: scale(1.1);
    color: var(--color-accent);
}

.service-type--emergency:hover .service-type__icon {
    color: #dc3545;
}
