/* =========================================================
   BURNEX - JAUNS GLOBAL CSS
   Vienkāršs CSS bez var() un clamp()
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #111827;
    font-size: 17px;
    line-height: 1.7;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    background: #0b1220;
    border-bottom: 1px solid #243149;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 25px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    width: 165px;
    max-height: 58px;
    object-fit: contain;
}

.main-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav a {
    color: #d7deea;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
}

.main-nav a:hover,
.main-nav a.active {
    color: #ffffff;
    background: #182338;
}

.header-phone {
    background: #f97316;
    color: #ffffff;
    text-decoration: none;
    padding: 11px 17px;
    border-radius: 9px;
    font-weight: 700;
    white-space: nowrap;
}

.header-phone:hover {
    background: #ea580c;
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 27px;
    height: 3px;
    margin: 5px 0;
    background: #ffffff;
    border-radius: 5px;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    background:
        linear-gradient(90deg, rgba(8,13,24,0.96), rgba(8,13,24,0.75)),
        url("../images/betona-urbsana-1.jpg") center center / cover no-repeat;
    min-height: 650px;
    display: flex;
    align-items: center;
    color: #ffffff;
}

.hero-content {
    padding: 90px 0;
    max-width: 900px;
}

.eyebrow,
.section-label {
    display: inline-block;
    color: #f97316;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}

.hero h1 {
    font-size: 64px;
    line-height: 1.1;
    max-width: 900px;
    margin-bottom: 25px;
}

.hero-text {
    color: #d6dce6;
    max-width: 750px;
    font-size: 21px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 23px;
    border-radius: 9px;
    text-decoration: none;
    border: 1px solid transparent;
    font-weight: 700;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: #f97316;
    color: #ffffff;
}

.btn-primary:hover {
    background: #ea580c;
}

.btn-whatsapp {
    background: #25d366;
    color: #ffffff;
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border-color: #526078;
}

.btn-secondary:hover {
    background: #182338;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 30px;
    color: #dce3ed;
    font-size: 15px;
}


/* =========================================================
   GENERAL SECTIONS
========================================================= */

.section {
    padding: 95px 0;
}

.section-dark {
    background: #0b1220;
    color: #ffffff;
}

.section-light {
    background: #f5f7fa;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 55px;
    text-align: center;
}

.section-heading h2,
.split-content h2,
.cta-section h2 {
    font-size: 44px;
    line-height: 1.15;
    margin-bottom: 18px;
}

.section-heading p {
    color: #5d6675;
}

.section-dark .section-heading p {
    color: #aeb7c5;
}

.center-button {
    display: flex;
    justify-content: center;
    margin-top: 45px;
}


/* =========================================================
   CARDS
========================================================= */

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.card {
    background: #ffffff;
    border: 1px solid #e5e9ef;
    border-radius: 16px;
    padding: 30px;
}

.section-dark .card {
    background: #121c2d;
    border-color: #243149;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 45px rgba(0,0,0,0.18);
    border-color: #f97316;
}

.card-icon {
    font-size: 30px;
    margin-bottom: 15px;
}

.card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.card p {
    color: #5d6675;
}

.section-dark .card p {
    color: #aeb7c5;
}


/* =========================================================
   SPLIT
========================================================= */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.split-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.18);
}

.split-content p {
    margin-bottom: 20px;
    color: #5d6675;
}


/* =========================================================
   STEPS
========================================================= */

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.step {
    position: relative;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e3e7ed;
    border-radius: 16px;
}

.step-number {
    color: #f97316;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.step h3 {
    margin-bottom: 10px;
}

.step p {
    color: #5d6675;
}


/* =========================================================
   GALLERY
========================================================= */

.gallery-preview,
.gallery-full {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.gallery-preview a,
.gallery-full a {
    overflow: hidden;
    border-radius: 14px;
    background: #111827;
}

.gallery-preview img,
.gallery-full img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.gallery-preview a:hover img,
.gallery-full a:hover img {
    transform: scale(1.05);
}


/* =========================================================
   LIGHTBOX
========================================================= */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0,0,0,0.96);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox:target {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    color: #ffffff;
    text-decoration: none;
    z-index: 2;
}

.lightbox-close {
    top: 20px;
    right: 30px;
    font-size: 42px;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    font-size: 65px;
    padding: 20px;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}


/* =========================================================
   VIDEO
========================================================= */

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.video-card {
    background: #ffffff;
    border: 1px solid #e3e7ed;
    border-radius: 16px;
    padding: 20px;
}

.section-dark .video-card {
    background: #121c2d;
    border-color: #243149;
    color: #ffffff;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
    background: #000000;
    margin-bottom: 20px;
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-card h3,
.video-card h2 {
    margin-bottom: 8px;
}

.video-card p {
    color: #5d6675;
}


/* =========================================================
   PAGE HERO
========================================================= */

.page-hero {
    padding: 100px 0;
    background: linear-gradient(120deg, #0b1220, #152238);
    color: #ffffff;
}

.page-hero h1 {
    font-size: 60px;
    line-height: 1.1;
    margin-bottom: 18px;
}

.page-hero p {
    color: #c3cad5;
    max-width: 700px;
    font-size: 20px;
}


/* =========================================================
   ABOUT
========================================================= */

.about-text {
    max-width: 850px;
    margin: auto;
}

.about-text p {
    color: #c4ccd7;
    font-size: 19px;
    margin-bottom: 25px;
}


/* =========================================================
   SERVICES
========================================================= */

.service-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.service-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.service-item.reverse .service-image {
    order: 2;
}

.service-item.reverse .service-content {
    order: 1;
}

.service-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.18);
}

.service-number {
    display: block;
    color: #f97316;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.service-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
    line-height: 1.2;
}

.service-content p {
    color: #5d6675;
    margin-bottom: 15px;
}


/* =========================================================
   CONTACT
========================================================= */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2,
.contact-form-wrapper h2 {
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 18px;
}

.contact-info > p,
.contact-form-wrapper > p {
    color: #5d6675;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    gap: 17px;
    align-items: flex-start;
    padding: 18px 0;
    border-bottom: 1px solid #e5e9ef;
}

.contact-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f5f8;
    border-radius: 10px;
    flex-shrink: 0;
}

.contact-item span {
    display: block;
    color: #7b8492;
    font-size: 13px;
}

.contact-item a,
.contact-item strong {
    display: block;
    font-size: 18px;
    text-decoration: none;
}

.contact-item a:hover {
    color: #f97316;
}

.contact-form-wrapper {
    background: #f6f8fb;
    border: 1px solid #e1e6ed;
    border-radius: 16px;
    padding: 35px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid #d7dde6;
    border-radius: 9px;
    padding: 13px 14px;
    background: #ffffff;
    font: inherit;
    color: #111827;
    outline: none;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #f97316;
}

.contact-form button {
    align-self: flex-start;
    border: 0;
    font: inherit;
}


/* =========================================================
   FORM SUCCESS / ERROR
========================================================= */

.form-message {
    margin-top: 20px;
}

.form-success {
    padding: 30px;
    border: 1px solid #d7dde6;
    border-left: 4px solid #f97316;
    border-radius: 14px;
    background: #ffffff;
}

.form-success-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 50%;
    background: #f97316;
    color: #ffffff;
    font-size: 25px;
    font-weight: 800;
}

.form-success h3 {
    margin-bottom: 8px;
    color: #111827;
    font-size: 22px;
}

.form-success p {
    margin: 0;
    color: #4b5563;
}

.form-error {
    padding: 25px;
    border: 1px solid #fecaca;
    border-left: 4px solid #dc2626;
    border-radius: 14px;
    background: #fff7f7;
}

.form-error h3 {
    margin-bottom: 8px;
    color: #991b1b;
}

.form-error p {
    color: #4b5563;
}

.form-error a {
    color: #f97316;
    font-weight: 700;
}


/* =========================================================
   CENU KALKULATORS
========================================================= */

.calc {
    background: #ffffff;
}

.calc .section-head {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 45px;
}

.calc .section-head .eyebrow {
    display: inline-block;
    color: #f97316;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}

.calc .section-head h2 {
    color: #111827;
    font-size: 44px;
    line-height: 1.15;
    margin-bottom: 16px;
    font-weight: 800;
}

.calc .section-head p {
    color: #5d6675;
    font-size: 17px;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}


/* Kalkulatora bloki */

.calc__shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    max-width: 1160px;
    margin: 0 auto;
}

.calc__form,
.calc__result {
    background: #101827;
    color: #ffffff;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.18);
}


/* Cilnes */

.calc__tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.calc__tab {
    flex: 1;
    border: 1px solid #334155;
    background: #182338;
    color: #cbd5e1;
    padding: 13px 18px;
    border-radius: 9px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.calc__tab.is-active {
    background: #f97316;
    border-color: #f97316;
    color: #ffffff;
}


/* Kalkulatora rindas */

.calc__row {
    margin-bottom: 30px;
}

.calc__row label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 10px;
}

.calc__row output {
    color: #f97316;
    font-weight: 800;
    white-space: nowrap;
}


/* Slīdņi */

.calc__range {
    width: 100%;
    height: 7px;
    appearance: none;
    -webkit-appearance: none;
    background: #4b5563;
    border-radius: 10px;
    outline: none;
}

.calc__range::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: #f97316;
    cursor: pointer;
}

.calc__range::-moz-range-thumb {
    width: 21px;
    height: 21px;
    border-radius: 50%;
    border: 0;
    background: #f97316;
    cursor: pointer;
}


/* Cena */

.calc__price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 20px 0 30px;
    color: #f97316;
    font-size: 68px;
    line-height: 1;
    font-weight: 900;
}

.calc__price .cur {
    color: #f97316;
    font-size: 36px;
    font-weight: 800;
}

.calc__price span {
    color: #f97316;
}


/* Rezultāta tabula */

.calc__bd {
    border-top: 1px solid #2b3950;
}

.calc__bd-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 0;
    border-bottom: 1px solid #2b3950;
}

.calc__bd-row span {
    color: #cbd5e1;
}

.calc__bd-row b {
    color: #ffffff;
    text-align: right;
}


/* Piezīme */

.calc__note {
    color: #aeb7c5;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 20px;
}


/* Ja cena tiek rādīta kā "pēc pieprasījuma" */

.calc__price.is-request {
    color: #f97316;
    font-size: 42px;
}


/* =========================================================
   CTA
========================================================= */

.cta-section {
    padding: 100px 0;
    text-align: center;
    color: #ffffff;
    background: linear-gradient(120deg, #101827, #0b1220);
}

.cta-section p {
    max-width: 650px;
    margin: 0 auto;
    color: #bfc8d5;
}

.cta-section .hero-actions {
    justify-content: center;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    background: #070d17;
    color: #ffffff;
    padding: 65px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 50px;
}

.footer-brand img {
    width: 180px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: #909bab;
    max-width: 300px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.footer-column h3 {
    margin-bottom: 10px;
}

.footer-column a {
    color: #aeb7c5;
    text-decoration: none;
}

.footer-column span {
    color: #aeb7c5;
}

.footer-column a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 22px 0;
    color: #737e8e;
    font-size: 14px;
}


/* =========================================================
   RESPONSIVE - TABLETE
========================================================= */

@media screen and (max-width: 1050px) {

    .main-nav {
        gap: 0;
    }

    .main-nav a {
        padding: 9px 7px;
        font-size: 14px;
    }

    .header-phone {
        display: none;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================================================
   RESPONSIVE - TELEFONS
========================================================= */

@media screen and (max-width: 800px) {

    .navbar {
        min-height: 72px;
        justify-content: space-between;
    }

    .logo img {
        width: 145px;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .main-nav {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #0b1220;
        border-bottom: 1px solid #243149;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px 4%;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        padding: 13px;
    }

    .hero {
        min-height: 590px;
    }

    .hero-content {
        padding: 70px 0;
    }

    .hero h1 {
        font-size: 45px;
    }

    .hero-text {
        font-size: 18px;
    }

    .split,
    .service-item,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .service-item.reverse .service-image,
    .service-item.reverse .service-content {
        order: initial;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .gallery-preview,
    .gallery-full {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }

    .calc__shell {
        grid-template-columns: 1fr;
    }

    .calc__form,
    .calc__result {
        padding: 25px;
    }

    .calc__price {
        font-size: 58px;
    }

    .calc__row label {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

}


/* =========================================================
   RESPONSIVE - MAZS TELEFONS
========================================================= */

@media screen and (max-width: 560px) {

    body {
        font-size: 16px;
    }

    .section {
        padding: 70px 0;
    }

    .page-hero {
        padding: 70px 0;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero-features {
        flex-direction: column;
        gap: 8px;
    }

    .cards,
    .steps,
    .gallery-preview,
    .gallery-full {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 25px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .lightbox {
        padding: 15px;
    }

    .lightbox img {
        max-width: 96vw;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 45px;
    }

    .calc__shell {
        gap: 18px;
    }

    .calc__form,
    .calc__result {
        padding: 22px;
        border-radius: 14px;
    }

    .calc .section-head {
        margin-bottom: 30px;
    }

    .calc .section-head h2 {
        font-size: 30px;
    }

    .calc .section-head p {
        font-size: 16px;
    }

    .calc__price {
        font-size: 48px;
    }

    .calc__price .cur {
        font-size: 28px;
    }

}