/* =========================================================
   ANASCRIPTS
   UNIVERSAL SERVICE PAGE
========================================================= */


/* =========================================================
   PAGE
========================================================= */

.service-page {
    width: 100%;
}


/* =========================================================
   INTRO
========================================================= */

.service-intro {
    width: min(900px, calc(100% - 60px));

    margin: 0 auto;

    padding: 60px 0 45px;

    text-align: center;
}


.service-intro h1 {
    margin: 0 0 28px;

    color: var(--text-color);

    font-size: 42px;
    font-weight: 400;
    line-height: 1.2;
}


.service-description {
    width: min(760px, 100%);

    margin: 0 auto;

    color: var(--muted-text);
}


.service-description p:last-child {
    margin-bottom: 0;
}

/* =========================================================
   SERVICE RICH TEXT
========================================================= */

.service-description p {
    margin: 0 0 20px;

    line-height: 1.75;
}


/* First highlighted sentence */

.service-description .service-lead {
    margin-bottom: 28px;

    font-size: 1.08em;

    color: var(--text-color);
}


/* Headings inside editable text */

.service-description h2 {
    margin: 34px 0 20px;

    font-family: inherit;

    font-size: 1.25em;
    font-weight: 400;
    line-height: 1.35;

    color: var(--text-color);
}


.service-description h3 {
    margin: 24px 0 6px;

    font-family: inherit;

    font-size: 1.05em;
    font-weight: 600;
    line-height: 1.4;

    color: var(--text-color);
}


/* Lists */

.service-description ul {
    margin: 0 0 28px;

    padding-left: 24px;
}


.service-description li {
    margin-bottom: 8px;

    line-height: 1.6;
}


.service-description li:last-child {
    margin-bottom: 0;
}


/* Bold */

.service-description strong {
    font-weight: 600;

    color: var(--text-color);
}


/* Italic */

.service-description em {
    font-style: italic;
}

/* =========================================================
   EDITABLE DESCRIPTION SETTINGS
========================================================= */


/* =========================
   ALIGNMENT
========================= */

.description-align-left {
    text-align: left;
}

.description-align-center {
    text-align: center;
}

.description-align-right {
    text-align: right;
}


/* =========================
   FONT
========================= */

.description-font-serif {
    font-family:
        Georgia,
        "Times New Roman",
        serif;
}


.description-font-elegant {
    font-family:
        "Palatino Linotype",
        "Book Antiqua",
        Palatino,
        serif;
}


.description-font-sans {
    font-family:
        Arial,
        Helvetica,
        sans-serif;
}


/* =========================
   SIZE
========================= */

.description-size-small {
    font-size: 14px;
}


.description-size-normal {
    font-size: 16px;
}


.description-size-large {
    font-size: 18px;
}



/* =========================================================
   BRANDS
========================================================= */

.service-brands-section {
    width: min(1100px, calc(100% - 60px));

    margin: 0 auto;

    padding: 35px 0 55px;

    text-align: center;
}


.service-brands-section h2 {
    margin: 0 0 34px;

    color: var(--text-color);

    font-size: 28px;
    font-weight: 400;
}



/* Grid */

.service-brands-grid {
    display: flex;

    flex-wrap: wrap;

    justify-content: center;
    align-items: center;

    gap: 18px 22px;
}



/* =========================================================
   UNIFIED BRAND SIZE
========================================================= */

.service-brand-item {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 228px;
    height: 126px;

    padding: 10px 14px;

    background: transparent;
}


.service-brand-item img {
    display: block;

    width: auto;
    height: auto;

    max-width: 198px;
    max-height: 94px;

    object-fit: contain;
}

/* =========================================================
   GALLERY
========================================================= */

.service-gallery-section {
    width: min(1400px, calc(100% - 60px));

    margin: 0 auto;

    padding: 50px 0 90px;

    border-top: 1px solid var(--line-color);
}


.service-gallery-section h2 {
    margin: 0 0 36px;

    text-align: center;

    color: var(--text-color);

    font-size: 32px;
    font-weight: 400;
}



/* Masonry gallery */

.service-gallery-grid {
    width: 100%;

    column-count: 4;

    column-gap: 18px;
}


.service-gallery-item {
    display: block;

    width: 100%;

    margin: 0 0 18px;
    padding: 0;

    border: none;
    border-radius: 8px;

    background: transparent;

    overflow: hidden;

    break-inside: avoid;

    cursor: pointer;
}


.service-gallery-item img {
    display: block;

    width: 100%;
    height: auto;

    border-radius: 8px;

    transition:
        transform 0.35s ease,
        opacity 0.25s ease;
}


.service-gallery-item:hover img {
    transform: scale(1.025);

    opacity: 0.92;
}



/* =========================================================
   PHOTO MODAL
========================================================= */

.service-photo-modal {
    position: fixed;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    visibility: hidden;
    opacity: 0;

    pointer-events: none;

    z-index: 5000;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}


.service-photo-modal.open {
    visibility: visible;
    opacity: 1;

    pointer-events: auto;
}


.service-photo-modal-backdrop {
    position: absolute;

    inset: 0;

    background:
        rgba(35, 30, 26, 0.65);
}


.service-photo-modal-window {
    position: relative;

    z-index: 1;

    display: grid;

    grid-template-columns:
        minmax(300px, 2fr) minmax(260px, 1fr);

    width: min(1100px, calc(100% - 80px));
    max-height: 85vh;

    background: var(--page-bg);

    border-radius: 12px;

    overflow: hidden;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.25);
}

/* =========================================================
   MODAL IMAGE
========================================================= */

.service-modal-image-container {
    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 500px;

    background: #eee8df;

    overflow: hidden;
}


.service-modal-image-container img {
    display: block;

    max-width: 100%;
    max-height: 82vh;

    width: auto;
    height: auto;

    object-fit: contain;
}



/* =========================================================
   MODAL INFORMATION
========================================================= */

.service-modal-info {
    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 50px 40px;

    text-align: left;
}


.service-modal-info h2 {
    margin: 0 0 20px;

    color: var(--text-color);

    font-size: 28px;
    font-weight: 400;
    line-height: 1.25;
}


.service-modal-info p {
    margin: 0;

    color: var(--muted-text);

    font-size: 15px;
    line-height: 1.7;
}

/* Close */

.service-photo-modal-close {
    position: absolute;

    top: 15px;
    right: 15px;

    z-index: 10;

    width: 40px;
    height: 40px;

    padding: 0;

    border: none;
    border-radius: 50%;

    background:
        rgba(247, 241, 232, 0.94);

    color: var(--text-color);

    font-size: 28px;

    cursor: pointer;
}



/* Arrows */

.service-photo-modal-arrow {
    position: absolute;

    top: 50%;

    z-index: 10;

    width: 44px;
    height: 58px;

    transform:
        translateY(-50%);

    border: none;
    border-radius: 8px;

    background:
        rgba(247, 241, 232, 0.92);

    color: var(--text-color);

    font-size: 38px;

    cursor: pointer;
}


.service-photo-modal-arrow-left {
    left: 15px;
}


.service-photo-modal-arrow-right {
    right: 15px;
}


body.modal-open {
    overflow: hidden;
}



/* =========================================================
   ACTIVE SERVICES MENU
========================================================= */

.nav-dropdown-button.active::after {
    width: 100%;
}


.nav-dropdown-menu a.active-service {
    background:
        rgba(180, 148, 103, 0.10);
}


.mobile-services-list a.active-service {
    color: var(--text-color);

    font-weight: 600;
}



/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .service-gallery-grid {
        column-count: 3;
    }

}



/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 800px) {

    .service-photo-modal-window {
        grid-template-columns: 1fr;

        width: calc(100% - 24px);

        max-height: 90vh;

        overflow-y: auto;
    }


    .service-modal-image-container {
        min-height: 0;
    }


    .service-modal-image-container img {
        max-height: 60vh;
    }


    .service-modal-info {
        padding: 24px 24px 32px;
    }


    .service-modal-info h2 {
        font-size: 23px;
    }

    .service-intro {
        width: calc(100% - 40px);

        padding: 40px 0 30px;
    }


    .service-intro h1 {
        margin-bottom: 22px;

        font-size: 34px;
    }


    .service-description p {
        line-height: 1.65;
    }


    .service-brands-section {
        width: calc(100% - 40px);

        padding: 25px 0 40px;
    }


    .service-brands-section h2 {
        margin-bottom: 25px;

        font-size: 24px;
    }


    .service-brands-grid {
        gap: 16px 10px;
    }


    .service-brand-item {
        width: 174px;
        height: 98px;

        padding: 8px;
    }

    .service-brand-item img {
        max-width: 150px;
        max-height: 70px;
    }


    .service-gallery-section {
        width: calc(100% - 30px);

        padding: 40px 0 60px;
    }


    .service-gallery-section h2 {
        margin-bottom: 25px;

        font-size: 28px;
    }


    .service-gallery-grid {
        column-count: 2;

        column-gap: 10px;
    }


    .service-gallery-item {
        margin-bottom: 10px;
    }


    .service-photo-modal-window {
        width: calc(100% - 24px);

        height: 82vh;
    }

}



/* =========================================================
   SMALL PHONE
========================================================= */

@media (max-width: 420px) {

    .service-intro h1 {
        font-size: 30px;
    }


    .service-brand-item {
        width: 125px;
        height: 68px;
    }


    .service-brand-item img {
        max-width: 105px;
        max-height: 44px;
    }

}