/* Kontaktu sadaLa: atbalsta personala bloku stili. */

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

.intro-section,
.atbalsta-card,
.pakalpojums-card,
.pieteikums-container,  /* Pievienots konteiners */
.step,
.pieteikums-piezime,
.kontakti-box {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.intro-section { animation-delay: 0.1s; }

.atbalsta-card:nth-child(1) { animation-delay: 0.15s; }
.atbalsta-card:nth-child(2) { animation-delay: 0.2s; }
.atbalsta-card:nth-child(3) { animation-delay: 0.25s; }
.atbalsta-card:nth-child(4) { animation-delay: 0.3s; }
.atbalsta-card:nth-child(5) { animation-delay: 0.35s; }
.atbalsta-card:nth-child(6) { animation-delay: 0.4s; }

.pakalpojums-card:nth-child(1) { animation-delay: 0.15s; }
.pakalpojums-card:nth-child(2) { animation-delay: 0.2s; }
.pakalpojums-card:nth-child(3) { animation-delay: 0.25s; }
.pakalpojums-card:nth-child(4) { animation-delay: 0.3s; }
.pakalpojums-card:nth-child(5) { animation-delay: 0.35s; }
.pakalpojums-card:nth-child(6) { animation-delay: 0.4s; }

.pieteikums-container {  /* Pievienots delay konteineram */
    animation-delay: 0.2s;
}

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

.pieteikums-piezime { animation-delay: 0.45s; }
.kontakti-box { animation-delay: 0.5s; }

/* ===== ATBALSTA PERSONĀLA LAPA ===== */
.atbalsts-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: 40px;
    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;
}

/* ===== IEVADA SEKCIJA ===== */
.intro-section {
    background: white;
    border-radius: 30px;
    padding: 40px;
    margin-bottom: 50px;
    box-shadow: 0 15px 35px rgba(82,5,5,0.1);
    border: 1px solid rgba(82,5,5,0.1);
    position: relative;
    overflow: hidden;
    z-index: 3;
}

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

.intro-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.intro-icon {
    width: 100px;
    height: 100px;
    background: #520505;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    flex-shrink: 0;
    box-shadow: 0 15px 30px rgba(82,5,5,0.2);
}

.intro-text {
    flex: 1;
}

.intro-text h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #520505;
    margin-bottom: 15px;
}

.intro-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2d3748;
}

/* ===== ATBALSTA PERSONĀLA REŽĢIS ===== */
.atbalsta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 60px;
    position: relative;
    z-index: 3;
}

.atbalsta-card {
    background: white;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(82,5,5,0.05);
    border: 1px solid rgba(82,5,5,0.1);
    transition: all 0.3s;
    display: flex;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

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

.card-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #520505, #7a0f0f);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(82,5,5,0.2);
    transition: all 0.3s;
}

.atbalsta-foto-trigger {
    border: none;
    padding: 0;
    cursor: zoom-in;
}

.atbalsta-foto-trigger img {
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

@media (hover: hover) {
    .atbalsta-foto-trigger:hover img {
        transform: scale(1.06);
        filter: brightness(1.05);
        box-shadow: 0 0 0 4px rgba(82, 5, 5, 0.25);
    }
}

.atbalsta-foto-trigger:focus-visible {
    outline: 3px solid #ffcc00;
    outline-offset: 3px;
}

.card-content {
    flex: 1;
}

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

.amats {
    font-size: 1rem;
    color: #ffcc00;
    font-weight: 500;
    margin-bottom: 15px;
}

.kontakti {
    margin-bottom: 12px;
}

.kontakti p {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2d3748;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.kontakti i {
    color: #ffcc00;
    width: 16px;
}

.kontakti a {
    color: #520505;
    text-decoration: none;
    transition: color 0.2s;
}

.kontakti a:hover {
    color: #7a0f0f;
    text-decoration: underline;
}

.darba-laiki {
    margin-bottom: 12px;
    padding: 8px 0;
    border-top: 1px dashed rgba(82,5,5,0.1);
    border-bottom: 1px dashed rgba(82,5,5,0.1);
}

.darba-laiki p {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2d3748;
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.darba-laiki i {
    color: #ffcc00;
    width: 16px;
}

.apraksts {
    color: #666;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* ===== PAKALPOJUMI - BORDO KARTES (Kā mēs varam palīdzēt?) ===== */
.pakalpojumi-section {
    margin-bottom: 60px;
    position: relative;
    z-index: 3;
}

.pakalpojumi-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.pakalpojums-card {
    background: #520505;
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(82,5,5,0.25);
    border: 2px solid #ffcc00;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    flex: 0 1 calc((100% - 50px) / 3);
    max-width: calc((100% - 50px) / 3);
}

.pakalpojums-card::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;
}

.pakalpojums-card i {
    font-size: 2.5rem;
    color: #ffcc00;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.pakalpojums-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 10px;
}

.pakalpojums-card p {
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* ===== PIETEIKUMS - BALTA KARTE ===== */
.pieteikums-section {
    margin-bottom: 60px;
    position: relative;
    z-index: 3;
}

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

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

.pieteikums-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    background: #520505;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.step:hover .step-number {
    background: #ffcc00;
    color: #520505;
    transform: scale(1.1);
}

.step-text h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #520505;
    margin-bottom: 5px;
}

.step-text p {
    color: #666;
    line-height: 1.5;
    font-size: 0.9rem;
}

.pieteikums-piezime {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255,204,0,0.1);
    border-radius: 16px;
    border-left: 4px solid #ffcc00;
}

.pieteikums-piezime i {
    color: #ffcc00;
    font-size: 1.5rem;
}

.pieteikums-piezime p {
    color: #2d3748;
    line-height: 1.6;
    font-weight: 500;
}

/* ===== KONTAKTINFORMĀCIJA - BALTA KARTE ===== */
.kontakti-info {
    margin-bottom: 40px;
    position: relative;
    z-index: 3;
}

.kontakti-box {
    background: white;
    border-radius: 20px;
    padding: 30px;
    border-left: 5px solid #ffcc00;
    box-shadow: 0 10px 25px rgba(82,5,5,0.1);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.kontakti-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255,204,0,0.1) 0%, transparent 70%);
}

.kontakti-box h3 {
    font-size: 1.3rem;
    color: #520505;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.kontakti-box p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2d3748;
    margin-bottom: 10px;
    line-height: 1.6;
}

.kontakti-box i {
    color: #ffcc00;
    width: 20px;
}

.kontakti-box a {
    color: #520505;
    text-decoration: none;
    transition: color 0.2s;
}

.kontakti-box a:hover {
    color: #7a0f0f;
    text-decoration: underline;
}

/* ===== RESPONSĪVAIS DIZAINS ===== */
@media (max-width: 992px) {
    .page-title {
        font-size: 2.2rem;
    }
    
    .intro-content {
        flex-direction: column;
        text-align: center;
    }
    
    .atbalsta-grid {
        grid-template-columns: 1fr;
    }
    
    .pakalpojums-card {
        flex-basis: calc((100% - 25px) / 2);
        max-width: calc((100% - 25px) / 2);
    }
    
    .pieteikums-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .section-heading {
        font-size: 1.8rem;
    }
    
    .intro-section {
        padding: 25px;
    }
    
    .intro-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .intro-text h2 {
        font-size: 1.5rem;
    }
    
    .intro-text p {
        font-size: 1rem;
    }
    
    .atbalsta-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 25px;
    }
    
    .kontakti p,
    .darba-laiki p {
        justify-content: center;
    }
    
    .pakalpojums-card {
        flex-basis: 100%;
        max-width: 100%;
    }
    
    .pieteikums-steps {
        grid-template-columns: 1fr;
    }
    
    .pieteikums-piezime {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 1.8rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .section-heading {
        font-size: 1.6rem;
    }
    
    .intro-section {
        padding: 20px;
    }
    
    .atbalsta-card {
        padding: 20px;
    }
    
    .pieteikums-container {
        padding: 25px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .kontakti-box {
        padding: 20px;
    }
}