/* LiberLi – Gala dizains (pamata dizains no dizains1, pakalpojumi ar bildēm) */

:root {
    --liberli-blue: #2798d5;
    --liberli-navy: #2a55a0;
    --liberli-green: #7ab93a;
    --liberli-dark-green: #288b3a;
    --text-dark: #1a1a2e;
    --text-muted: #5a5a72;
    --bg-light: #f8fafb;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(42, 85, 160, 0.08);
    --radius: 12px;
    --radius-lg: 20px;

    /* Papildu mainīgie pakalpojumu blokam */
    --bg-card: #f8fafb;
    --surface: #eef3f8;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family:
        "DM Sans",
        -apple-system,
        sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.25rem;
}
.section {
    padding: 4rem 0;
}
.section-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--liberli-navy);
    margin: 0 0 0.5rem;
}
.section-subtitle {
    color: var(--text-muted);
    max-width: 560px;
}

.final-cta .section-subtitle {
    margin: 0 auto 2rem;
}
/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.logo-img {
    height: 100px;
    width: auto;
    display: block;
}

/* Navigation */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(42, 85, 160, 0.08);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 1.5rem;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: var(--liberli-navy);
}
.nav-contact {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.nav-contact a {
    color: var(--liberli-navy);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}
.nav-contact a:hover {
    color: var(--liberli-blue);
}
.nav-toggle {
    display: none;
}

/* Hero */
.hero {
    position: relative;
    padding: 5rem 0 4.5rem;
    text-align: left;
    min-height: 420px;
    display: flex;
    align-items: center;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg {
    background: linear-gradient(135deg, var(--liberli-navy) 0%, #1e3d6d 100%);
}
.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(26, 26, 46, 0.88) 0%,
        rgba(42, 85, 160, 0.75) 45%,
        rgba(26, 26, 46, 0.5) 100%
    );
    z-index: 1;
}
.hero-effect {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}
/* Diagonāls “spīduma” slīpums pāri hero */
.hero-shimmer {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        105deg,
        transparent 0%,
        transparent 40%,
        rgba(255, 255, 255, 0.03) 48%,
        rgba(39, 152, 213, 0.12) 50%,
        rgba(255, 255, 255, 0.03) 52%,
        transparent 60%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: heroShimmer 8s ease-in-out infinite;
}
@keyframes heroShimmer {
    0%,
    100% {
        background-position: 120% 0;
    }
    50% {
        background-position: -20% 0;
    }
}
.hero-inner {
    position: relative;
    z-index: 3;
}
.hero h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--white);
    margin: 0 0 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}
.hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 560px;
    margin: 0 0 1.5rem;
}
.hero .btn-primary {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.btn {
    display: inline-block;
    padding: 0.9rem 1.75rem;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: var(--radius);
    transition:
        transform 0.2s,
        box-shadow 0.2s;
    border: none;
    cursor: pointer;
}
.btn-primary {
    background: linear-gradient(
        135deg,
        var(--liberli-blue),
        var(--liberli-navy)
    );
    color: var(--white);
    box-shadow: 0 4px 16px rgba(39, 152, 213, 0.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(39, 152, 213, 0.4);
}
.btn-outline {
    background: transparent;
    color: var(--liberli-navy);
    border: 2px solid var(--liberli-navy);
}
.btn-outline:hover {
    background: var(--liberli-navy);
    color: var(--white);
    transform: translateY(-2px);
}

/* Stats */
.stats {
    background: var(--liberli-navy);
    color: var(--white);
    padding: 3rem 0;
}
.stats-cta {
    text-align: center;
    margin: 0 0 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.95;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}
.stat-item strong {
    display: block;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--liberli-green);
    margin-bottom: 0.25rem;
}
.stat-item span {
    font-size: 0.95rem;
    opacity: 0.95;
}

/* Why us */
.why-us {
    background: var(--bg-light);
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
.why-card {
    background: var(--white);
    padding: 1.75rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-top: 4px solid var(--liberli-green);
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}
.why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(42, 85, 160, 0.12);
}
.why-card-inner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.why-card-icon {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: var(--liberli-navy);
}
.why-card-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}
.why-card-content {
    flex: 1;
    min-width: 0;
}
.why-card h3 {
    font-size: 1.1rem;
    color: var(--liberli-navy);
    margin: 0 0 0.5rem;
}
.why-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Services – dizains1 stils ar bildēm (kartes ar apmali, noapaļotiem stūriem, ēna) */
.services-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}
.service-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 340px;
    align-items: stretch;
    background: var(--white);
    border: 1px solid rgba(42, 85, 160, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}
.service-card:hover {
    border-color: var(--liberli-blue);
    box-shadow: var(--shadow);
}
/* Nepāra karte: teksts kreisā, attēls labajā */
.service-card:nth-child(odd) .service-card-text {
    grid-column: 1;
}
.service-card:nth-child(odd) .service-card-image {
    grid-column: 2;
}
.service-card:nth-child(odd) .service-card-image img {
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
/* Pāra karte: attēls kreisā, teksts labajā */
.service-card:nth-child(even) .service-card-image {
    grid-column: 1;
}
.service-card:nth-child(even) .service-card-text {
    grid-column: 2;
}
.service-card:nth-child(even) .service-card-image img {
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}
.service-card .service-card-text {
    padding: 2rem 2.5rem;
}
.service-card-text {
    max-width: 52ch;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.service-card h3 {
    font-size: 1.35rem;
    color: var(--liberli-navy);
    margin: 0 0 0.75rem;
}
.service-card .service-intro {
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-dark);
}
.service-card ul {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}
.service-card .benefits {
    font-size: 0.9rem;
    color: var(--liberli-dark-green);
    margin-bottom: 1rem;
}
.service-card .benefits strong {
    color: var(--liberli-navy);
}
.service-card .btn {
    margin-top: 0.5rem;
}
.service-card-image {
    overflow: hidden;
    min-height: 280px;
}
.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* CTA box */
.cta-box {
    background: linear-gradient(135deg, var(--liberli-navy), #1e3d6d);
    color: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin: 2rem 0;
}
.cta-box p {
    margin: 0 0 1rem;
    opacity: 0.95;
}
.cta-box .btn-primary {
    background: var(--liberli-green);
    color: var(--white);
}

/* Trust */
.trust {
    background: var(--bg-light);
}
.trust-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}
.trust-list {
    min-width: 0;
}
.trust-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.trust-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4/3;
}
.trust-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.trust-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-dark);
}
.trust-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.1rem;
    width: 8px;
    height: 8px;
    background: var(--liberli-green);
    border-radius: 50%;
}

/* Final CTA */
.final-cta {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(
        135deg,
        rgba(39, 152, 213, 0.08),
        rgba(122, 185, 58, 0.08)
    );
}
.final-cta .btn {
    margin-top: 0.5rem;
}

/* Footer */
.footer {
    background: var(--liberli-navy);
    color: var(--white);
    padding: 3rem 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.footer h4 {
    font-size: 1rem;
    margin: 0 0 1rem;
    color: var(--liberli-green);
}
.footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}
.footer a:hover {
    color: var(--liberli-green);
}
.footer p {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    opacity: 0.9;
}
.footer-requisites {
    font-size: 0.85rem;
    opacity: 0.85;
    margin-top: 1rem;
}
.footer-map {
    margin-top: 2rem;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/10;
    max-width: 400px;
}
.footer-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
.footer-bottom {
    padding: 1.25rem 0;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .service-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        min-height: auto;
    }
    .service-card:nth-child(odd) .service-card-text,
    .service-card:nth-child(odd) .service-card-image,
    .service-card:nth-child(even) .service-card-text,
    .service-card:nth-child(even) .service-card-image {
        grid-column: 1;
    }
    /* Mobilā skatā vispirms teksts, tad attēls */
    .service-card .service-card-text {
        grid-row: 1;
    }
    .service-card .service-card-image {
        grid-row: 2;
    }
    .service-card-image {
        min-height: 240px;
    }
    /* Mobilā skatā attēlam noapaļoti tikai apakšējie stūri */
    .service-card .service-card-image img {
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }
}
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .nav-contact {
        display: none;
    }
    .nav-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--liberli-navy);
    }
    .nav.open .nav-links,
    .nav.open .nav-contact {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 1.5rem;
        box-shadow: var(--shadow);
        gap: 1rem;
    }
    .nav.open .nav-links {
        flex-direction: column;
    }
    .why-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .trust-inner {
        grid-template-columns: 1fr;
    }
    .section {
        padding: 3rem 0;
    }
    .hero {
        min-height: 360px;
        padding: 3.5rem 0;
    }
    .logo-img {
        height: 60px;
    }
}
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Anchor offset for sticky header */
section[id] {
    scroll-margin-top: 80px;
}

