/* ============================================
   MOTOR EXPERT - Service Page Styles
   Autoservis, ceník, kontakt
   ============================================ */

/* =============================================
   PAGE HEADER (same as courses/shop)
   ============================================= */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 60px 20px 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%23ffffff"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="%23ffffff"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%23ffffff"/></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.08;
    pointer-events: none;
}

.page-header > * {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    color: var(--white);
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 12px;
    animation: fadeInUp 0.6s ease;
}

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

.page-header p {
    opacity: 0.9;
    font-size: 17px;
    margin-bottom: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.breadcrumb a {
    color: var(--white);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    opacity: 0.7;
}

/* =============================================
   SECTION TITLES
   ============================================= */
.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: 40px;
}

/* =============================================
   INTRO SECTION
   ============================================= */
.service-intro {
    padding: 60px 20px;
    background: var(--white);
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 18px;
    line-height: 1.8;
    color: var(--gray-700);
}

/* =============================================
   SERVICES SECTION
   ============================================= */
.service-sections {
    padding: 60px 20px 80px;
    background: var(--gray-50);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(45, 95, 63, 0.15);
    border-color: var(--primary);
}

.service-card-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin: 0 auto 15px;
    display: block;
}

.service-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
    line-height: 1.3;
}

.service-card p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.5;
    flex-grow: 1;
}

/* =============================================
   MODAL
   ============================================= */
/* Modal overridy (základ v components.css) */
.modal-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.modal-header-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.modal-header-content {
    flex-grow: 1;
}

.modal-header,
.modal-header * {
    color: var(--white);
}

.modal-header h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.modal-body p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: 15px;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

.modal-footer {
    align-items: center;
}

/* Service Detail Content */
.service-detail-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--gray-700);
}

.service-detail-content p {
    margin-bottom: 15px;
}

.service-detail-content p:last-child {
    margin-bottom: 0;
}

.service-detail-content ul {
    margin: 15px 0;
    padding-left: 25px;
}

.service-detail-content li {
    margin-bottom: 8px;
}

.service-detail-content li::marker {
    color: var(--primary);
}

/* =============================================
   PRICE LIST SECTION
   ============================================= */
.service-prices {
    padding: 80px 20px;
    background: var(--white);
}

.price-list {
    max-width: 900px;
    margin: 0 auto;
}

.price-category {
    margin-bottom: 40px;
}

.price-category-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
}

.price-table tr {
    border-bottom: 1px solid var(--gray-200);
}

.price-table tr:last-child {
    border-bottom: none;
}

.price-table td {
    padding: 15px 10px;
    vertical-align: top;
}

.price-table td:first-child {
    padding-left: 0;
}

.price-table td:last-child {
    padding-right: 0;
    text-align: right;
    white-space: nowrap;
}

.price-name {
    font-weight: 600;
    color: var(--gray-800);
}

.price-description {
    font-size: 14px;
    color: var(--gray-500);
    margin-top: 4px;
}

.price-duration {
    font-size: 13px;
    color: var(--gray-400);
    margin-top: 4px;
}

.price-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
}

.price-value.free {
    color: var(--primary);
}

.price-value.on-request {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-500);
}

/* Empty state */
.price-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
}

.price-empty-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

/* =============================================
   CONTACT INFO SECTION - with Map
   ============================================= */
.service-contact {
    padding: 80px 20px;
    background: var(--gray-50);
}

.service-contact .section-title {
    margin-bottom: 40px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    min-height: 450px;
}

.contact-map {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    min-height: 400px;
    background: var(--gray-100);
}

.contact-map iframe {
    display: block;
}

/* Map as clickable link */
.map-link {
    display: block;
    height: 100%;
    min-height: 400px;
    text-decoration: none;
}

.map-placeholder {
    height: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    transition: all 0.3s ease;
    position: relative;
}

.map-placeholder:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.map-placeholder:hover .map-icon,
.map-placeholder:hover .map-text,
.map-placeholder:hover .map-arrow {
    color: var(--white);
}

.map-icon {
    font-size: 80px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.map-placeholder:hover .map-icon {
    transform: scale(1.1);
}

.map-text {
    text-align: center;
    color: var(--gray-700);
    transition: color 0.3s ease;
}

.map-text strong {
    display: block;
    font-size: 20px;
    margin-bottom: 8px;
}

.map-text span {
    font-size: 14px;
    opacity: 0.8;
}

.map-arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 24px;
    color: var(--gray-400);
    transition: all 0.3s ease;
}

.map-placeholder:hover .map-arrow {
    transform: translateX(5px);
}

/* Address note */
.address-note {
    font-size: 13px;
    color: var(--gray-500);
    font-style: italic;
    margin-top: 8px;
}

/* Email link */
.contact-email-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--gray-100);
    color: var(--gray-700) !important;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 10px;
    transition: all 0.2s ease;
}

.contact-email-link:hover {
    background: var(--gray-200);
    color: var(--primary) !important;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    background: var(--white);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(45, 95, 63, 0.12);
    border-color: var(--primary-light);
}

.contact-card-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.contact-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-card p {
    color: var(--gray-600);
    margin: 4px 0;
    font-size: 15px;
}

.contact-card p strong {
    color: var(--gray-800);
}

/* Hours list */
.hours-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--gray-50);
    border-radius: 8px;
    font-size: 14px;
}

.hours-row span:first-child {
    color: var(--gray-600);
}

.hours-row span:last-child {
    font-weight: 600;
    color: var(--gray-800);
}

.hours-row .closed {
    color: var(--error);
}

/* Contact links */
.contact-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-phone-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white) !important;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.contact-phone-link:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(45, 138, 78, 0.3);
}

.contact-phone-link .phone-icon {
    font-size: 20px;
}

.contact-email {
    display: block;
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    margin-top: 10px;
    transition: color 0.2s;
}

.contact-email:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* =============================================
   CTA SECTION
   ============================================= */
.service-cta {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
}

.service-cta h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.service-cta p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 25px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =============================================
   FOOTER (same as shop)
   ============================================= */
.footer {
    background-color: #2d2d2d;
    color: #ccc;
    padding: 60px 20px 30px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    margin-top: 15px;
    line-height: 1.7;
    font-size: 14px;
}

.footer h4 {
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid #444;
    text-align: center;
    color: #888;
    font-size: 14px;
}

/* =============================================
   SKELETON
   ============================================= */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-map {
        min-height: 300px;
        order: 2;
    }
    
    .contact-cards {
        order: 1;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .contact-card {
        flex: 1 1 calc(50% - 10px);
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 30px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-cards {
        flex-direction: column;
    }
    
    .contact-card {
        flex: 1 1 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .price-table td {
        padding: 12px 5px;
    }
    
    .price-value {
        font-size: 16px;
    }
}