/* Globālie mainīgie */
:root {
    /* Pamatīpašības - Latvijas karoga sarkanie toņi */
    --primary-color: #9E2B2F;
    --primary-light: #B33B3F;
    --primary-dark: #8A252A;
    --accent-color: #853539;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-light: #f5f5f5;
    --border-radius: 8px;
    --transition-speed: 0.3s;
    --container-width: 1200px;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Pamata stili */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

h2 span {
    color: var(--primary-color);
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed);
}

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

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--text-light);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.btn.primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.btn.primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(158, 43, 47, 0.3);
}

.btn.secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn.secondary:hover {
    background-color: rgba(158, 43, 47, 0.05);
    transform: translateY(-3px);
}

/* Galvene */
header {
    position: sticky;
    top: 0;
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
}

nav ul.menu {
    display: flex;
    list-style: none;
}

nav ul.menu li {
    margin-left: 1.5rem;
}

nav ul.menu li a {
    color: var(--text-color);
    font-weight: 600;
    position: relative;
    padding: 0.5rem 0;
}

nav ul.menu li a:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

nav ul.menu li a:hover:after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-color);
    transition: all var(--transition-speed);
}

/* Galvenā sadaļa */
.hero {
    padding: 5rem 0 0;
    position: relative;
    background-color: var(--bg-light);
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
}

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-text {
    font-size: 0.9rem;
    color: var(--text-light);
}

.hero-wave {
    position: relative;
    height: 100px;
    margin-top: -1px;
}

.hero-wave svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Sadaļa "Kā Darbojas" */
.how-it-works {
    padding: 5rem 0;
    background-color: var(--bg-color);
}

.steps {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin: 3rem 0;
}

.step {
    flex: 1;
    text-align: center;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed);
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.step-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.step h3 {
    margin: 1rem 0;
    color: var(--primary-color);
}

.cta-center {
    text-align: center;
    margin-top: 3rem;
}

/* Sadaļa "Iespējas" */
.features {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all var(--transition-speed);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Sadaļa "Par Mums" */
.about {
    padding: 5rem 0 0;
    background-color: var(--bg-color);
    position: relative;
}

.about .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.about-content {
    flex: 1;
    padding-right: 2rem;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.cta-left {
    margin-top: 2rem;
}

.about-wave {
    position: relative;
    height: 100px;
    margin-top: 3rem;
}

.about-wave svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Kājene */
footer {
    background-color: var(--bg-light);
    padding: 4rem 0 2rem;
    color: var(--text-light);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.footer-branding {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-favicon {
    margin-left: 1rem;
}

.footer-nav {
    display: flex;
    justify-content: flex-end;
    gap: 3rem;
    flex-wrap: wrap;
    flex: 1;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    color: var(--primary-color);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: var(--text-light);
    transition: color var(--transition-speed);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
}

/* Reaģējošs dizains */
@media (max-width: 992px) {
    html {
        font-size: 14px;
    }
    
    .hero .container,
    .about .container {
        flex-direction: column;
    }
    
    .hero-content,
    .about-content {
        padding-right: 0;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .stats {
        justify-content: center;
    }
    
    .cta-left {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .steps {
        flex-direction: column;
    }
    
    .step {
        margin-bottom: 2rem;
    }
    
    .footer-top {
        flex-direction: column;
    }
    
    .footer-branding {
        margin-bottom: 2rem;
        text-align: center;
        max-width: 100%;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-nav {
        justify-content: space-around;
    }
}

@media (max-width: 576px) {
    .menu-toggle {
        display: block;
    }
    
    nav ul.menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-color);
        flex-direction: column;
        align-items: center;
        padding-top: 2rem;
        transition: all var(--transition-speed);
        z-index: 999;
    }
    
    nav ul.menu.active {
        left: 0;
    }
    
    nav ul.menu li {
        margin: 1.5rem 0;
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-column {
        text-align: center;
    }
}
