/* 
 * Galvenais stils nudefyLV.pw 
 * Latvijas karoga krāsas: tumši sarkans #9E3039, balts #FFFFFF
 */

/* Reset un pamatstili */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #FFFFFF;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    margin-bottom: 0.8em;
    line-height: 1.2;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5em;
    color: #9E3039;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 1em;
    position: relative;
    display: inline-block;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #9E3039;
}

h2 span {
    color: #9E3039;
    font-weight: 900;
}

h3 {
    font-size: 1.5rem;
    color: #444;
}

p {
    margin-bottom: 1em;
    color: #555;
}

a {
    text-decoration: none;
    color: #9E3039;
    transition: all 0.3s ease;
}

a:hover {
    color: #7a252c;
}

.section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: #666;
}

/* Pogas */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn.primary {
    background-color: #9E3039;
    color: white;
    box-shadow: 0 4px 15px rgba(158, 48, 57, 0.3);
}

.btn.primary:hover {
    background-color: #8a2930;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(158, 48, 57, 0.4);
}

.btn.secondary {
    background-color: transparent;
    border: 2px solid #9E3039;
    color: #9E3039;
}

.btn.secondary:hover {
    background-color: rgba(158, 48, 57, 0.1);
}

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

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

.logo a {
    display: block;
}

nav {
    display: flex;
    align-items: center;
}

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

.menu li {
    margin-left: 2rem;
}

.menu li a {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    color: #444;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
}

.menu li a:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #9E3039;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}

.menu li a:hover:before {
    transform: scaleX(1);
    transform-origin: left;
}

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

/* Heroja sadaļa */
.hero {
    padding: 6rem 0 5rem;
    background: linear-gradient(135deg, #f9f9f9 0%, rgba(158, 48, 57, 0.05) 100%);
    border-bottom: 5px solid rgba(158, 48, 57, 0.2);
}

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

.hero-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    margin-right: 2rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: #555;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

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

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

.stat-number {
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    color: #9E3039;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Kā Tas Darbojas sadaļa */
.how-it-works {
    padding: 6rem 0;
    background-color: #ffffff;
}

.steps {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    flex-wrap: wrap;
    margin: 4rem 0;
}

.step {
    flex: 1;
    min-width: 280px;
    max-width: 320px;
    margin: 1rem;
    text-align: center;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #9E3039;
}

.step:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

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

.connector {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
}

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

/* Funkcijas sadaļa */
.features {
    padding: 6rem 0;
    background-color: #f9f9f9;
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #9E3039 0%, #9E3039 50%, #FFFFFF 50%, #FFFFFF 100%);
    background-size: 20px 100%;
}

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

.feature-card {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 3px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-bottom-color: #9E3039;
}

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

.feature-card h3 {
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.feature-card h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #9E3039;
}

/* Par Mums sadaļa */
.about {
    padding: 6rem 0;
    background-color: #ffffff;
}

.about .container {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.about-content {
    flex: 1;
    min-width: 300px;
}

.about h2 {
    text-align: left;
}

.about h2:after {
    left: 0;
    transform: none;
}

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

.about-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

/* Kājene */
footer {
    background-color: #f2f2f2;
    padding: 4rem 0 2rem;
    color: #444;
    border-top: 5px solid rgba(158, 48, 57, 0.2);
}

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

.footer-logo {
    flex: 1;
    min-width: 200px;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.footer-nav {
    flex: 2;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.footer-column {
    min-width: 180px;
    margin-bottom: 2rem;
}

.footer-column h4 {
    color: #9E3039;
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #9E3039;
}

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

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

.footer-column ul li a {
    color: #666;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.footer-column ul li a:hover {
    color: #9E3039;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
    font-size: 0.9rem;
    color: #777;
}

/* Responsīvie stili */
@media (max-width: 992px) {
    h1 {
        font-size: 2.4rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        margin-right: 0;
        margin-bottom: 3rem;
        text-align: center;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .stats {
        justify-content: center;
    }
    
    .about .container {
        flex-direction: column;
    }
    
    .about-content {
        text-align: center;
    }
    
    .about h2 {
        text-align: center;
    }
    
    .about h2:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .cta-left {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
        text-align: center;
    }
    
    .menu.active {
        display: flex;
    }
    
    .menu li {
        margin: 1rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .steps {
        flex-direction: column;
        align-items: center;
    }
    
    .connector {
        transform: rotate(90deg);
        margin: 1rem 0;
    }
    
    .footer-top {
        flex-direction: column;
    }
    
    .footer-nav {
        flex-direction: column;
    }
}
