/* Kontaktu sakumlapas kopiga struktura un kartites. */

/* ===== ANIMĀCIJAS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kategorija-card,
.quick-contact-item,
.map-container {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.kategorija-card:nth-child(1) { animation-delay: 0.1s; }
.kategorija-card:nth-child(2) { animation-delay: 0.15s; }
.kategorija-card:nth-child(3) { animation-delay: 0.2s; }
.kategorija-card:nth-child(4) { animation-delay: 0.25s; }
.kategorija-card:nth-child(5) { animation-delay: 0.3s; }

.quick-contact-item:nth-child(1) { animation-delay: 0.35s; }
.quick-contact-item:nth-child(2) { animation-delay: 0.4s; }
.quick-contact-item:nth-child(3) { animation-delay: 0.45s; }

.map-container { animation-delay: 0.5s; }

/* ===== KONTAKTU LAPA ===== */
.kontakti-page {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Atpakaļ saite */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #520505;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 30px;
    transition: all 0.2s;
    background: white;
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid #520505;
    box-shadow: 0 2px 8px rgba(82,5,5,0.1);
    position: relative;
    z-index: 3;
}

.back-link:hover {
    background: #520505;
    color: white;
    transform: translateX(-5px);
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 3;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #520505;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #ffcc00, #ffd700);
    border-radius: 2px;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 20px auto 0;
}

.section-heading {
    font-size: 2rem;
    font-weight: 700;
    color: #520505;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #ffcc00;
    border-radius: 2px;
}

/* ===== KATEGORIJU REŽĢIS ===== */
.kategorijas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
    position: relative;
    z-index: 3;
}

.kategorija-card {
    background: white;
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(82,5,5,0.05);
    border: 1px solid rgba(82,5,5,0.1);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.kategorija-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(82,5,5,0.15);
    border-color: #ffcc00;
}

.kategorija-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #520505, #ffcc00);
    transform: translateX(-100%);
    transition: transform 0.4s;
}

.kategorija-card:hover::before {
    transform: translateX(0);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: #520505;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    transition: all 0.3s;
}

.kategorija-card:hover .card-icon {
    background: #ffcc00;
    color: #520505;
    transform: scale(1.1);
}

.kategorija-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #520505;
    margin-bottom: 10px;
}

.kategorija-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-arrow {
    display: inline-block;
    color: #520505;
    font-size: 1rem;
    transition: transform 0.3s;
}

.kategorija-card:hover .card-arrow {
    transform: translateX(8px);
    color: #ffcc00;
}

/* ===== ĀTRĀ KONTAKTINFORMĀCIJA - BORDO KARTES ===== */
.quick-contact {
    margin-bottom: 60px;
    position: relative;
    z-index: 3;
}

.quick-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.quick-contact-item {
    background: #520505;
    border-radius: 20px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 15px 35px rgba(82,5,5,0.25);
    border: 2px solid #ffcc00;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.quick-contact-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,204,0,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
}

.quick-contact-item i {
    font-size: 2.5rem;
    color: #ffcc00;
    transition: all 0.3s;
}

.quick-contact-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 5px;
}

.quick-contact-item a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
}

.quick-contact-item a:hover {
    color: #ffcc00;
    text-decoration: underline;
}

.quick-contact-item p {
    color: white;
    font-size: 1rem;
}

/* ===== KARTE ===== */
.map-section {
    margin-bottom: 40px;
    position: relative;
    z-index: 3;
}

.map-container {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(82,5,5,0.1);
    border: 1px solid rgba(82,5,5,0.1);
    overflow: hidden;
    position: relative;
}

.map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #520505, #ffcc00);
}

.map-container iframe {
    border-radius: 12px;
    width: 100%;
    height: 450px;
}

/* ===== RESPONSĪVAIS DIZAINS ===== */
@media (max-width: 992px) {
    .page-title {
        font-size: 2.2rem;
    }
    
    .quick-contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .section-heading {
        font-size: 1.8rem;
    }
    
    .kategorijas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-contact-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-contact-item {
        padding: 20px;
    }
    
    .map-container iframe {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 1.8rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .section-heading {
        font-size: 1.6rem;
    }
    
    .kategorijas-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-contact-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .map-container iframe {
        height: 300px;
    }
}