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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #161616;
    line-height: 1.6;
}

header {
    height: 80px;
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #eee;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
}


.logo span {
    color: #006b4a;
}


nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: #222;
    text-decoration: none;
    font-size: 15px;
}

nav a:hover {
    color: #0abf83;
}


/* HERO */

.hero {
    min-height: 650px;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.88),
            rgba(0,0,0,.35)
        ),
        url("https://images.unsplash.com/photo-1504215680853-026ed2a45def?auto=format&fit=crop&w=1200&q=75");

    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;

    padding: 80px 7%;
}

.hero-content {
    max-width: 750px;
    color: white;
}

.tag,
.title > p,
.green-text {
    color: #0abf83;
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 13px;
}

/* Tumšāka zaļā krāsa uz gaiša fona */
.light .tag,
.light .title > p,
.light .green-text,
.benefits-section .title > p,
#auto .green-text,
.how-it-works .tag,
.how-it-works .title > p,
.how-it-works .green-text {
    color: #006b4a;
}

.hero h1 {
    font-size: 68px;
    line-height: 1.05;
    margin: 20px 0;
}

.hero h1 span {
    color: #0abf83;
}

.hero-text {
    max-width: 650px;
    font-size: 20px;
    color: #ddd;
}

.buttons {
    margin-top: 35px;
    display: flex;
    gap: 15px;
}


/* BUTTONS */

.btn {
    display: inline-block;
    padding: 15px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

.primary {
    background: #0abf83;
    color: #111;
}

.primary:hover {
    background: #08a973;
}

.secondary {
    color: white;
    border: 1px solid #aaa;
}

.secondary:hover {
    background: white;
    color: #111;
}

.dark-button {
    background: #111;
    color: white;
    margin-top: 20px;
}


/* SECTIONS */

section {
    padding: 100px 7%;
}

.title {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 55px;
}

.title h2,
.two-columns h2 {
    font-size: 42px;
    line-height: 1.15;
    margin-top: 10px;
}


/* HOW IT WORKS */

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

.box {
    border: 1px solid #ddd;
    padding: 35px;
    border-radius: 8px;
}

.box span {
    color: #0abf83;
    font-weight: bold;
}

.box h3 {
    font-size: 21px;
    margin: 15px 0;
}


/* DARK */

.dark {
    background: #101313;
    color: white;
}

.two-columns {
    max-width: 1200px;
    margin: auto;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.two-columns p {
    margin: 20px 0;
}

.two-columns ul {
    list-style: none;
    margin: 25px 0 35px;
}

.two-columns li {
    padding: 7px 0;
}

.big-number {
    background: #0abf83;
    color: #111;
    padding: 70px 40px;
    text-align: center;
    font-size: 25px;
}

.big-number strong {
    display: block;
    font-size: 55px;
}


/* STEPS */

.steps div {
    border-bottom: 1px solid #ddd;
    padding: 22px 0;
    display: flex;
    align-items: center;
    gap: 25px;
}

.steps b {
    color: #0abf83;
    font-size: 18px;
}

.steps span {
    font-size: 19px;
}


/* ABOUT */

.light {
    background: #f4f5f5;
}

.center-text {
    max-width: 800px;
    margin: auto;
    text-align: center;
    font-size: 19px;
}


/* CONTACT */

.contact {
    background: #101313;
    color: white;
}

.contact form {
    max-width: 650px;
    margin: auto;
}

input,
select,
textarea {
    width: 100%;
    padding: 16px;
    margin-bottom: 14px;

    border: 1px solid #444;
    border-radius: 5px;

    background: #191d1c;
    color: white;

    font-size: 16px;
}

button {
    width: 100%;
    border: none;
    padding: 17px;

    background: #0abf83;
    color: #111;

    font-size: 16px;
    font-weight: bold;

    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    background: #08a973;
}


/* FOOTER */

footer {
    padding: 45px 7%;
    background: #080909;
    color: #aaa;
    text-align: center;
}

footer .logo {
    color: white;
    margin-bottom: 15px;
}

footer p {
    margin: 8px;
}


/* MOBILE */

@media (max-width: 850px) {

    header {
        height: auto;
        padding: 20px;
        flex-direction: column;
        gap: 15px;
    }

    nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px 20px;
    }

    .hero {
        min-height: 600px;
    }

    .hero h1 {
        font-size: 45px;
    }

    .three-columns,
    .two-columns {
        grid-template-columns: 1fr;
    }

    .buttons {
        flex-direction: column;
    }

    .btn {
        text-align: center;
    }

    section {
        padding: 70px 7%;
    }

    .title h2,
    .two-columns h2 {
        font-size: 34px;
    }
}


html {
    scroll-behavior: smooth;
}

#ka-tas-darbojas {
    scroll-margin-top: 100px;
}

.how-it-works {
    padding: 90px 8%;
    background: #f8faf9;
    text-align: center;
}

.how-it-works h2 {
    font-size: clamp(30px, 4vw, 42px);
    color: #111827;
    margin-bottom: 20px;
}

.section-description {
    max-width: 700px;
    margin: 0 auto 45px;
    color: #555;
    line-height: 1.7;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.step-card {
    background: white;
    padding: 30px 24px;
    border-radius: 16px;
    text-align: left;
    box-shadow: 0 6px 25px rgba(0,0,0,0.06);
    transition: transform 0.3s;
}

.step-card:hover {
    transform: translateY(-6px);
}

.step-card h3 {
    color: #006b4a;
    margin-bottom: 15px;
    font-size: 19px;
}

.step-card p {
    color: #555;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .how-it-works {
        padding: 60px 6%;
    }
}

#autoForma,
#uznemumaForma {
    scroll-margin-top: 120px;
}

textarea {
    resize: none;
}


.animated-ad {
    position: relative;
    overflow: hidden;
    padding-bottom: 90px;
}

.animated-ad strong {
    animation: glowText 3s ease-in-out infinite;
}

.moving-car {
    position: absolute;
    bottom: 25px;
    left: 0;
    font-size: 45px;
    line-height: 1;

    transform: scaleX(-1);

    animation: driveCar 5s linear infinite;
}

.road-line {
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        #10b981,
        transparent
    );
}

@keyframes driveCar {
    0% {
        left: -65px;
    }
    100% {
        left: 100%;
    }
}

@keyframes glowText {
    0%, 100% {
        opacity: 1;
        text-shadow: none;
    }
    50% {
        opacity: 0.85;
        text-shadow: 0 0 22px rgba(16,185,129,0.5);
    }
}

@media (prefers-reduced-motion: reduce) {
    .moving-car,
    .animated-ad strong {
        animation: none;
    }
}

.contact select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font: inherit;
    background: white;
    color: #333;
    box-sizing: border-box;
}



/* Privātuma informācija pieteikuma formās */
.privacy-notice {
    font-size: 13px;
    line-height: 1.6;
    color: #d1d5db;
    margin: 12px 0 18px;
    text-align: left;
}

.privacy-notice a {
    color: #34d399;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.privacy-notice a:hover {
    color: #6ee7b7;
}


@media (max-width: 600px) {
    .privacy-notice {
        font-size: 13px;
        line-height: 1.7;
    }
}

footer a {
    color: #0abf83;
    text-decoration: underline;
}

footer a:hover {
    color: #08a973;
}
