
/* SECTION SPACING */
.service-page-top {
    padding: 80px;
    width: 100%;
}

/* CONTAINER */
.service-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    padding-top: 130px;
}

/* LEFT SIDE */
.service-top-left {
    flex: 1;
    max-width: 737px;
}

.service-top-left h1 {
    font-size: 72px;
    line-height: 80px;
    font-family: var(--font-secondary);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    margin-bottom: 80px;
}

.service-top-left p {
    font-size: 16px;
    line-height: 24px;
    font-family: var(--font-main);
    color: var(--color-tertiary);
    max-width: 737px;
    padding: 0 16px;
}

/* RIGHT SIDE (IMAGE) */
.service-top-right img {
    width: 100%;
    max-width: 360px;
    height: auto;
    object-fit: contain;
}

/* RESPONSIVE */
@media(max-width: 992px) {
    .service-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .service-top-right {
        margin-top: 40px;
    }

    .service-top-right img {
        max-width: 80%;
    }
}

@media(max-width: 600px) {
    .service-top-left h1 {
        font-size: 48px;
        line-height: 54px;
        margin-bottom: 40px;
    }
}

/* Paslauga */
.service-second {
    padding: 80px 0;
}

/* IMAGE WRAPPER */
.service-second-left {
    aspect-ratio: 628 / 870;
    overflow: hidden;
    border-radius: 12px;
}

/* IMAGE */
.service-second-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* TEXT */
.service-second-right {
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {

    /* VISA SEKCIJA */
    .service-second {
        padding: 64px 0;
    }

    /* IMAGE – FULL WIDTH */
    .service-second-left {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        border-radius: 0;
        aspect-ratio: 375 / 318;
        margin-bottom: 64px;
    }

    .service-second-left img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* TARPAI PO IMAGE */
    .service-second-left {
        margin-bottom: 64px;
    }

    /* DEŠINĖ DALIS – KONTEINERIS */
    .service-second-right {
        padding: 0 24px;
        text-align: center;
        align-items: center;
    }

    /* TITLE BACKGROUND CONTAINER */
    .service-title-gradient {
        width: 100%;
        padding: 24px;
        margin-bottom: 24px;
    }

    .service-title-gradient h2 {
        font-size: 40px;
        font-weight: 700;
        margin: 0;
        text-align: center;
    }

    /* CARD */
    .service-description-card {
        width: 100%;
        background: var(--color-neutral);
        border-radius: 8px;
        box-shadow: 0px 0px 7px rgba(51, 51, 51, 0.11);
        padding: 32px;
        text-align: center;
    }

    .service-second .container,
    .service-second .container-fluid {
        padding-left: 0;
        padding-right: 0;
    }

}


@media (max-width: 768px) {

    /* VISA SEKCIJA */
    .service-page-top {
        padding: 64px 0;
    }

    /* KONTEINERIS – STACK */
    .service-container {
        flex-direction: column;
        gap: 0;
        padding: 0 24px;
        align-items: center;
        padding-top: 60px;
    }

    /* IKONA – PIRMAS ELEMENTAS */
    .service-top-right {
        order: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 64px;
    }

    /* IKONA – FULL WIDTH */
    .service-top-right img {
        max-width: 46%;
        height: auto;
        display: block;
        margin-left: -24px;
        margin-right: -24px;
    }

    /* TEKSTAS */
    .service-top-left {
        order: 2;
        width: 100%;
        text-align: center;
    }

    /* TITLE */
    .service-top-left h1 {
        font-size: 35px;
        line-height: 42px;
        font-weight: 700;
        margin-bottom: 32px;
    }

    /* INTRO TEKSTAS */
    .service-top-left p {
        font-size: 16px;
        line-height: 24px;
        padding: 0;
        margin-bottom: 64px;
    }
}



/* GRADIENTO ANTRAŠTĖ */
.service-title-gradient {
    background: linear-gradient(289.8deg, #485461 11.53%, #404A56 55.87%, #2D3845 99.73%);
    border-radius: 12px;
    padding: 40px 32px;
    margin-bottom: 24px;
}

.service-title-gradient h2 {
    margin: 0;
    font-size: 64px;
    line-height: 1.2;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
}

/* PASLAUGŲ SĄRAŠAS */
.services-list {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.service-card h3 {
    margin: 0 0 12px 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--color-tertiary);
}

.service-card p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-tertiary);
}

/* RESPONSIVE */
@media (max-width: 1359px) {
    .service-second-container {
        flex-direction: column;
        align-items: center;
    }

    .service-second-left,
    .service-second-right {
        flex: 0 0 auto;
        width: 628px;
        max-width: 100%;
    }

    .service-second-left {
        aspect-ratio: 628 / 870;
    }
}

@media (max-width: 767px) {
    .service-second {
        padding: 60px 0;
    }

    .service-title-gradient {
        padding: 32px 24px;
    }

    .service-title-gradient h2 {
        font-size: 38px;
    }

    .services-list {
        padding: 24px;
    }

    .service-second-left,
    .service-second-right {
        width: 100%;
    }
}

@media (max-width: 320px) {
    .service-title-gradient h2 {
        font-size: 32px;
    }
}


/* BENDRA SEKCIJA */
.contact-banner {
    padding: 80px;
    background-size: cover;
    background-position: center;
}

/* VIDINIS FLEX */
.contact-banner-inner {
    display: flex;
    justify-content: space-between;
}

/* KAIRĖ */
.contact-banner-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-banner-left h2 {
    font-family: var(--font-secondary);
    font-size: 56px;
    line-height: 64px;
    font-weight: var(--font-weight-bold);
    color: var(--color-neutral);
    text-transform: uppercase;
}

.contact-banner-left h3 {
    font-family: var(--font-main);
    font-size: 32px;
    line-height: 40px;
    color: var(--color-neutral);
}

/* DEŠINĖ */
.contact-banner-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* MYGTUKAS */
.contact-banner-button {
    background: var(--color-neutral);
    color: var(--color-tertiary);
    text-decoration: none;

    padding: 12px 24px;

    font-size: 16px;
    line-height: 24px;
    font-family: var(--font-main);
    font-weight: var(--font-weight-bold);

    border-radius: 4px;
    display: inline-block;

    transition: 0.2s ease-in-out;
}

.contact-banner-button:hover {
    opacity: 0.85;
}

@media (max-width: 768px) {

    /* VISA SEKCIJA */
    .contact-banner {
        padding: 64px 24px;
        text-align: center;
    }

    /* FLEX → COLUMN */
    .contact-banner-inner {
        flex-direction: column;
        align-items: center;
    }

    /* KAIRĖ */
    .contact-banner-left {
        align-items: center;
        gap: 0;
    }

    .contact-banner-left h2 {
        font-size: 40px;
        line-height: 48px;
        font-weight: 700;
        margin-bottom: 16px;
    }

    .contact-banner-left h3 {
        font-size: 24px;
        line-height: 32px;
        font-weight: 600;
        margin-bottom: 40px;
    }

    /* DEŠINĖ */
    .contact-banner-right {
        width: 100%;
        justify-content: center;
    }

    /* FULL WIDTH MYGTUKAS */
    .contact-banner-button {
        width: 100%;
        text-align: center;
        padding: 14px 24px;
    }
}


/* service nav */
.service-nav {
    padding: 80px;
}

.service-nav-top h2 {
    font-family: var(--font-secondary);
    font-weight: var(--font-weight-bold);
    font-size: 72px;
    line-height: 80px;
    padding-bottom: 64px;
    text-transform: uppercase;
}

.service-nav-bottom {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 32px;
}

.service-nav-item {
    /* max-width: 200px; removed to let grid control width */
    padding: 24px;
    border-radius: 8px;
    background-color: var(--color-primary);
    min-height: 220px;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none; /* remove underline from link */
    transition: opacity 0.2s;
}

.service-nav-item:hover {
    opacity: 0.9;
}

.service-nav-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    margin-bottom: 24px;
    display: block;
}

.service-nav-item p {
    margin: 0;
    padding-top: 16px;
    border-top: 1px solid var(--color-neutral);
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    line-height: 24px;
    color: var(--color-neutral);
    text-align: center;
    width: 100%;
}

.service-nav-item.active {
    opacity: 50%;
}

@media (max-width: 768px) {

    .service-nav {
        padding: 64px 24px;
    }

    .service-nav-top h2 {
        font-size: 40px;
        line-height: 48px;
        padding-bottom: 40px;
        text-align: center;
    }

    .service-nav-bottom {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .service-nav-item {
        max-width: none;
        width: 100%;
        min-height: auto;        /* <-- svarbu */
        padding: 12px;           /* <-- sumažinta */
    }

    .service-nav-img {
        height: 64px;
        width: auto;
        margin-bottom: 12px;
        display: block;
        object-fit: contain;
        margin-left: auto;
        margin-right: auto;
    }

    .service-nav-item p {
        padding-top: 12px;       /* <-- sumažinta */
    }
}


/* --- ULTRA-WIDE OPTIMIZATIONS (1800px+) --- */
@media (min-width: 1800px) {
    .service-page-top {
        padding: 100px 0;
    }

    .service-container.main-layout-container {
        padding-top: 15vh;
        gap: 10vw;
    }

    .service-top-left {
        max-width: none;
        flex: 1;
    }

    .service-top-left h1 {
        font-size: 6rem;
        line-height: 1.1;
        margin-bottom: 60px;
    }

    .service-intro-text {
        font-size: 1.75rem; /* Increased from 1.5rem */
        line-height: 1.6;
        max-width: 1100px;
        padding: 0;
    }

    .service-top-right img {
        max-width: 500px;
    }

    .service-second {
        padding: 120px 0;
    }

    .service-title-gradient {
        padding: 60px 48px;
    }

    .service-title-gradient h2 {
        font-size: 5rem;
    }

    .service-description-card {
        padding: 60px;
    }

    .service-card h3 {
        font-size: 2.25rem; /* Scaled up */
    }

    .service-card p {
        font-size: 1.35rem; /* Scaled up */
    }

    .service-nav-top h2 {
        font-size: 6rem;
    }

    /* Reduce image height on ultra-wide */
    .service-second-left {
        aspect-ratio: 1 / 1; /* Change from 628/870 to square */
        max-height: 800px;
    }
}

/* --- EXTREME-WIDE OPTIMIZATIONS (2300px+) --- */
@media (min-width: 2300px) {
    .service-top-left h1 {
        font-size: 8rem;
    }

    .service-intro-text {
        font-size: 2.25rem;
        max-width: 1400px;
    }

    .service-top-right img {
        max-width: 700px;
    }

    .service-title-gradient h2 {
        font-size: 7rem;
    }

    .service-card h3 {
        font-size: 3rem;
    }

    .service-card p {
        font-size: 1.75rem;
    }

    .service-nav-top h2 {
        font-size: 8rem;
    }

    /* Further reduce image height on extreme-wide */
    .service-second-left {
        aspect-ratio: 4 / 3; /* Even more horizontal */
        max-height: 900px;
    }
}
