
/* ==========================================
   SIA DABAS ROKA — GALVENAIS DIZAINS
========================================== */

:root {
    --green: #315c46;
    --green-dark: #193d2c;
    --green-light: #eaf1e9;
    --green-accent: #8fb79a;
    --background: #fafbf8;
    --white: #ffffff;
    --text: #1d2c24;
    --muted: #6e7971;
    --border: #e2e9e2;

    --radius: 18px;
    --shadow: 0 15px 45px rgba(25, 61, 44, 0.07);
}

/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: "DM Sans", sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, .logo {
    font-family: "Manrope", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(1160px, 90%);
    margin-inline: auto;
}

.section {
    padding: 110px 0;
}

/* ==========================================
   NAVIGĀCIJA
========================================== */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(250, 251, 248, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
}

.navbar {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -1.2px;
    color: var(--green-dark);
    white-space: nowrap;
}

.logo-icon {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    border-radius: 12px;
    background: var(--green);
    color: white;
    font-size: 27px;
    line-height: 1;
}

.logo-accent {
    color: #78a989;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links > a {
    font-size: 14px;
    font-weight: 600;
    transition: color 0.25s;
}

.nav-links > a:hover {
    color: #609471;
}

.nav-links .nav-contact {
    background: var(--green);
    color: white;
    padding: 12px 22px;
    border-radius: 9px;
    transition: background 0.25s, transform 0.25s;
}

.nav-links .nav-contact:hover {
    background: var(--green-dark);
    color: white;
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
}

/* ==========================================
   POGAS
========================================== */

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    min-height: 53px;
    padding: 13px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    transition:
        transform 0.25s,
        background 0.25s,
        box-shadow 0.25s;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background: var(--green);
    color: white;
}

.btn-primary:hover {
    background: var(--green-dark);
    box-shadow: 0 10px 25px rgba(49, 92, 70, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--green-dark);
    border: 1px solid #b9c9bd;
}

.btn-outline:hover {
    background: var(--green-light);
}

/* ==========================================
   HERO
========================================== */

.hero {
    padding: 85px 0 100px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 65px;
}

.hero-content {
    padding: 30px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: 50px;
    background: var(--green-light);
    color: var(--green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #70a783;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(112, 167, 131, 0.14);
}

.hero h1 {
    margin-top: 30px;
    font-size: clamp(38px, 4.1vw, 59px);
    line-height: 1.17;
    font-weight: 800;
    letter-spacing: -2.8px;
    color: var(--green-dark);
}

.hero h1 span {
    color: #7da98b;
}

.hero-description {
    max-width: 485px;
    margin-top: 26px;
    font-size: 16px;
    line-height: 1.9;
    color: var(--muted);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 33px;
}

.hero-bottom {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 58px;
    font-size: 12px;
    color: var(--muted);
}

.hero-line {
    width: 35px;
    height: 1px;
    background: var(--green-accent);
}

.hero-image {
    position: relative;
    height: 550px;
    border-radius: 24px;
}

.hero-image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.image-label {
    position: absolute;
    left: -25px;
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px 22px;
    border-radius: 13px;
    background: white;
    box-shadow: var(--shadow);
    font-size: 13px;
    font-weight: 700;
    color: var(--green-dark);
}

.image-label span {
    font-size: 23px;
}

/* ==========================================
   SADAĻU VIRSRAKSTI
========================================== */

.section-tag {
    display: inline-block;
    margin-bottom: 18px;
    color: #6c9a79;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 35px;
    margin-bottom: 45px;
}

.section-heading h2,
.about h2,
.contact h2 {
    font-size: clamp(31px, 3.5vw, 46px);
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -1.8px;
    color: var(--green-dark);
}

.section-heading h2 span,
.about h2 span,
.contact h2 span {
    color: #83ac8e;
}

.section-heading > p {
    max-width: 370px;
    color: var(--muted);
    font-size: 14px;
}

/* ==========================================
   PAKALPOJUMI
========================================== */

.services {
    background: #f0f5ef;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 330px;
    padding: 28px 23px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
    transition:
        transform 0.3s,
        box-shadow 0.3s,
        border-color 0.3s;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: #b8d1bd;
}

.service-number {
    font-size: 12px;
    font-weight: 800;
    color: #a1b7a5;
}

.service-icon {
    display: grid;
    place-items: center;
    width: 55px;
    height: 55px;
    margin: 22px 0;
    background: var(--green-light);
    border-radius: 14px;
    font-size: 26px;
}

.service-card h3 {
    margin-bottom: 12px;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 800;
    color: var(--green-dark);
}

.service-card p {
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.service-card a {
    margin-top: auto;
    font-size: 13px;
    font-weight: 800;
    color: var(--green);
}

.service-card a:hover {
    text-decoration: underline;
}

/* ==========================================
   PAR MUMS
========================================== */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 95px;
}

.about-image {
    height: 510px;
    border-radius: 22px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content p {
    margin-top: 23px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.95;
}

.about-content .btn {
    margin-top: 32px;
}

/* ==========================================
   KONTAKTI
========================================== */

.contact {
    padding-top: 40px;
}

.contact-box {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 70px;
    align-items: center;
    padding: 75px;
    background: #e8f0e6;
    border-radius: 25px;
}

.contact-box p {
    max-width: 450px;
    margin-top: 20px;
    color: var(--muted);
    font-size: 15px;
}

.contact-box .btn {
    margin-top: 30px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-left: 35px;
    border-left: 1px solid #c7d8c9;
}

.contact-details > span {
    margin-top: 15px;
    font-size: 11px;
    letter-spacing: 1.5px;
    font-weight: 800;
    color: #7a9a82;
}

.contact-details a {
    font-size: clamp(14px, 1.5vw, 18px);
    font-weight: 800;
    color: var(--green-dark);
    overflow-wrap: anywhere;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-details p {
    margin-top: 0;
    font-weight: 700;
    color: var(--green-dark);
}

/* ==========================================
   FOOTER
========================================== */

.footer {
    padding: 35px 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.footer-content .logo {
    font-size: 21px;
}

.footer-content p,
.footer-content > a:last-child {
    color: var(--muted);
    font-size: 12px;
}

/* ==========================================
   PLANŠETES
========================================== */

@media (max-width: 1050px) {
    .hero-grid {
        gap: 35px;
    }

    .hero h1 {
        font-size: 43px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        gap: 45px;
    }

    .contact-box {
        padding: 50px;
        gap: 30px;
    }
}

/* ==========================================
   MOBILĀ VERSIJA
========================================== */

@media (max-width: 768px) {
    .container {
        width: min(100% - 36px, 560px);
    }

    .section {
        padding: 75px 0;
    }

    .navbar {
        min-height: 72px;
    }

    .logo {
        font-size: 21px;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 10px;
        background: transparent;
        border: 0;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--green-dark);
        border-radius: 2px;
        transition: transform 0.25s, opacity 0.25s;
    }

    .menu-toggle.active span:first-child {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:last-child {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 15px 20px 25px;
        background: var(--background);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links > a {
        padding: 14px;
    }

    .nav-links .nav-contact {
        margin-top: 10px;
        text-align: center;
    }

    .hero {
        padding: 45px 0 70px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-content {
        padding: 0;
    }

    .hero h1 {
        font-size: clamp(34px, 8vw, 48px);
        letter-spacing: -1.8px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-bottom {
        margin-top: 35px;
    }

    .hero-image {
        height: 370px;
    }

    .image-label {
        left: 15px;
        bottom: 15px;
    }

    .section-heading {
        display: block;
    }

    .section-heading > p {
        margin-top: 18px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 13px;
    }

    .service-card {
        min-height: 330px;
        padding: 22px 17px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .about-image {
        height: 350px;
    }

    .contact-box {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 35px 25px;
    }

    .contact-details {
        padding-left: 0;
        padding-top: 20px;
        border-left: 0;
        border-top: 1px solid #c7d8c9;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 260px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-image {
        height: 300px;
    }

    .eyebrow {
        font-size: 9px;
    }

    .contact-box {
        padding: 30px 20px;
    }
}

/* ==========================================
   PIEKĻŪSTAMĪBA
========================================== */

:focus-visible {
    outline: 3px solid #80a98a;
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
