/* 1. PAMATA IESTATĪJUMI UN RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden; /* Drošībai, lai nekas neizraisa horizontālo skrollēšanu */
}

/* Attēlu un video pamatnosacījumi responsivitātei */
img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 2. NAVIGĀCIJA */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.logo {
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 1.5px;
    color: #000;
    text-transform: uppercase;
}

/* 3. POGAS */
.cta-btn {
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.cta-btn.small {
    padding: 8px 18px;
    background: #facc15;
    color: #000;
    font-size: 0.9rem;
}

.cta-btn.large {
    padding: 16px 32px;
    background: #facc15;
    color: #000;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(250, 204, 21, 0.3);
}

.cta-btn:hover {
    background: #eab308;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(250, 204, 21, 0.4);
}

/* 4. HERO SEKCIJA */
.hero {
    height: 85vh;
    min-height: 500px;
    background: url('hero-gb.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #fff;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 850px;
    padding: 0 20px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    font-weight: 800;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 35px;
    opacity: 0.9;
}

/* 5. SEKCIJU STILI */
section {
    padding: 80px 0;
    text-align: center;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 50px;
}

/* 6. PAKALPOJUMU REŽĢIS (ESTRICH SADAĻA) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.feature-card {
    background: #f9f9f9;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: left;
    border-bottom: 4px solid transparent;
    transition: 0.3s;
}

.feature-card:hover {
    border-bottom: 4px solid #facc15;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* 7. DARBA GAITAS REŽĢIS (PROCESS) */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.process-step {
    padding: 20px;
    text-align: center;
}

.step-num {
    font-size: 3.5rem;
    font-weight: 900;
    color: #facc15;
    line-height: 1;
    margin-bottom: 15px;
    display: block;
}

/* 8. TUMŠĀ SEKCIJA (PAR MUMS) */
.dark-section {
    background: #1a1a1a;
    color: #fff;
}

.check-list {
    list-style: none;
    max-width: 700px;
    margin: 40px auto 0;
    text-align: left;
}

.check-list li {
    padding: 15px 0 15px 40px;
    position: relative;
    font-size: 1.1rem;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #facc15;
    font-weight: 900;
    font-size: 1.4rem;
}

/* 9. GALERIJAS UN FOTO REŽĢIS (RESPONSĪVS) */
.photo-grid {
    display: grid;
    /* Mainīts: minmax(250px, 1fr) nodrošina, ka pat uz 320px ekrāna bilde ietilps */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px; /* Mazāka sprauga starp bildēm mobilajā versijā */
    width: 100%;
    box-sizing: border-box;
}

.photo-card {
    width: 100%;
    height: 300px; /* Vari saglabāt fiksētu augstumu, ja vēlies vienādas kastes */
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Attēls aizpilda kasti, nezaudējot proporcijas */
    display: block;
    max-width: 100%; /* Papildus drošība */
}

.photo-card:hover img {
    transform: scale(1.05);
}

.video-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
}

/* 10. FOOTER / KĀJENE */
footer {
    background: #111;
    color: rgba(255,255,255,0.8);
    padding: 60px 0; /* Salabots padding */
}

footer h3 {
    color: #facc15;
    margin-bottom: 20px;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

footer p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: left;
}

.footer-link {
    color: #facc15;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.footer-link:hover {
    color: #fff;
    padding-left: 5px;
}

/* 11. MOBILIE PIELĀGOJUMI */
@media (max-width: 768px) {
    nav {
        padding: 15px 20px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .hero {
        height: 70vh;
    }

    .footer-grid {
        text-align: center;
    }
    
    .check-list li {
        font-size: 1rem;
    }
}

/* 12. Papildus drošība mobilajām ierīcēm */
@media (max-width: 480px) {
    .photo-grid {
        grid-template-columns: 1fr; /* Uz maziem telefoniem rādām vienu bildi rindā */
        gap: 10px;
    }
    
    .photo-card {
        height: auto; /* Uz mobila ļaujam bildēm būt dabīgā augstumā */
    }
    
    .photo-card img {
        height: auto;
    }
}

/* Papildinājums galerijas un footera sakārtošanai */
.small-hero {
    height: 40vh !important; /* Piespiež galerijas galvu būt īsāku */
    min-height: 300px;
}

.gallery-section {
    background-color: #f9f9f9;
}

.video-placeholder {
    background: #f4f4f4; 
    width:100%; 
    height:100%; 
    display:flex; 
    align-items:center; 
    justify-content:center;
}

.copyright {
    margin-top: 40px; 
    font-size: 0.8rem; 
    opacity: 0.5; 
    border-top: 1px solid #333; 
    padding-top: 20px; 
    text-align: center;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 900px; /* Video maksimālais platums uz datora */
    margin: 0 auto;
    aspect-ratio: 16 / 9; /* Saglabā standarta video proporciju */
    border-radius: 15px;
    overflow: hidden;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}