/* ==============================
   SERVICES PAGE
   ClearShine Auto Care
============================== */

.services-hero,
.services-intro,
.services-list,
.services-cta {
    overflow-x: clip;
}

.services-label {
    margin: 0 0 18px;
    color: #b98b35;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.22em;
}

/* Hero */

.services-hero {
    position: relative;
    min-height: calc(82svh - var(--header-height, 78px));
    display: flex;
    align-items: center;
    color: #ffffff;
    background-image: url("../images/about-hero.webp");
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

.services-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg,
            rgba(5, 7, 10, 0.96) 0%,
            rgba(5, 7, 10, 0.86) 38%,
            rgba(5, 7, 10, 0.52) 68%,
            rgba(5, 7, 10, 0.76) 100%),
        radial-gradient(circle at 75% 20%, rgba(216, 184, 106, 0.16), transparent 30%);
}

.services-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 96px 0;
}

.services-hero__content {
    max-width: 780px;
    min-width: 0;
}

.services-hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(56px, 7vw, 98px);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.075em;
}

.services-hero h1 span {
    color: #d8b86a;
}

.services-hero p:not(.services-label) {
    max-width: 720px;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.48;
}

/* Intro */

.services-intro {
    padding: 86px 0 64px;
    text-align: center;
    background: #ffffff;
}

.services-intro__inner {
    max-width: 920px;
}

.services-intro h2 {
    margin: 0;
    color: #11151b;
    font-size: clamp(38px, 5.2vw, 70px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.07em;
}

.services-intro__rating {
    margin: 20px 0 0;
    color: #b98b35;
    font-size: 22px;
    font-weight: 900;
}

.services-intro p:not(.services-label):not(.services-intro__rating) {
    max-width: 760px;
    margin: 22px auto 0;
    color: #67615a;
    font-size: 20px;
    line-height: 1.62;
}

.services-intro .home-btn {
    margin-top: 32px;
}

/* List */

.services-list {
    padding: 54px 0 110px;
    background: #ffffff;
}

.services-list__head {
    margin-bottom: 48px;
    text-align: center;
}

.services-list__head h2 {
    margin: 0;
    color: #11151b;
    font-size: clamp(42px, 5.8vw, 76px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.07em;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 42px;
}

.service-tile {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
    min-height: 300px;
    overflow: hidden;
    border-radius: 0;
    background: linear-gradient(180deg, #4b4b4b 0%, #f2f2f2 100%);
    box-shadow: 0 22px 54px rgba(17, 21, 27, 0.08);
    transform: translateY(0) scale(1);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.service-tile:hover {
    transform: translateY(-7px);
    box-shadow: 0 30px 74px rgba(17, 21, 27, 0.15);
}

.service-tile:focus-within {
    outline: 3px solid rgba(202, 168, 92, 0.72);
    outline-offset: 5px;
}

.service-tile:active {
    transform: translateY(-2px) scale(0.992);
}

.service-tile__media {
    min-width: 0;
    overflow: hidden;
    background: #11151b;
}

.service-tile__media img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    transform: scale(1.01);
    transition:
        transform 0.45s ease,
        filter 0.45s ease;
}

.service-tile:hover .service-tile__media img,
.service-tile:focus-within .service-tile__media img {
    transform: scale(1.075);
    filter: saturate(1.08) contrast(1.05);
}

.service-tile__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 42px 40px;
}

.service-tile__body h3 {
    margin: 0 0 18px;
    color: #11151b;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.service-tile__body p {
    max-width: 360px;
    margin: 0;
    color: rgba(17, 21, 27, 0.68);
    font-size: 17px;
    line-height: 1.55;
}

.service-tile__link {
    width: fit-content;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: 0 26px;
    color: #ffffff;
    background: #11151b;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.02em;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.service-tile__link:hover,
.service-tile__link:focus-visible {
    color: #11151b;
    background: linear-gradient(135deg, #c89b3c, #f0d486);
    transform: translateY(-2px);
    outline: none;
}

.service-tile__link:active {
    transform: translateY(0) scale(0.97);
}

/* CTA */

.services-cta {
    padding: 96px 0;
    text-align: center;
    background: #f3efe7;
}

.services-cta__inner {
    max-width: 980px;
    padding: 52px;
    border: 1px solid rgba(202, 168, 92, 0.28);
    border-radius: 24px;
    background:
        radial-gradient(circle at 85% 18%, rgba(216, 184, 106, 0.16), transparent 32%),
        #ffffff;
    box-shadow: 0 24px 60px rgba(17, 21, 27, 0.08);
}

.services-cta h2 {
    margin: 0;
    color: #11151b;
    font-size: clamp(36px, 5vw, 62px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.065em;
}

.services-cta p:not(.services-label) {
    max-width: 720px;
    margin: 24px auto 0;
    color: #67615a;
    font-size: 19px;
    line-height: 1.6;
}

.services-cta .home-btn {
    margin-top: 34px;
}

/* Responsive */

@media (max-width: 1180px) {
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 860px;
        margin: 0 auto;
    }
}

@media (max-width: 760px) {
    .services-hero {
        min-height: calc(100svh - var(--header-height, 78px));
        background-position: center;
    }

    .services-hero__overlay {
        background:
            linear-gradient(180deg,
                rgba(5, 7, 10, 0.76) 0%,
                rgba(5, 7, 10, 0.82) 42%,
                rgba(5, 7, 10, 0.96) 100%);
    }

    .services-hero__inner {
        padding: 72px 0;
    }

    .services-hero h1 {
        font-size: clamp(48px, 14vw, 76px);
        letter-spacing: -0.06em;
    }

    .services-hero p:not(.services-label) {
        font-size: 18px;
    }

    .services-intro {
        padding: 68px 0 44px;
    }

    .services-intro h2 {
        font-size: clamp(38px, 12vw, 58px);
        letter-spacing: -0.055em;
    }

    .services-intro__rating {
        font-size: 19px;
    }

    .services-intro p:not(.services-label):not(.services-intro__rating) {
        font-size: 17px;
    }

    .services-list {
        padding: 44px 0 72px;
    }

    .services-list__head {
        margin-bottom: 34px;
    }

    .services-list__head h2 {
        font-size: clamp(40px, 12vw, 58px);
    }

    .services-grid {
        gap: 22px;
    }

    .service-tile {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .service-tile__media img {
        min-height: 250px;
        max-height: 330px;
    }

    .service-tile__body {
        padding: 30px 24px;
        min-height: 240px;
    }

    .service-tile__body p {
        max-width: none;
        font-size: 16px;
    }

    .service-tile__link {
        margin-top: 34px;
    }

    .services-cta {
        padding: 72px 0;
    }

    .services-cta__inner {
        padding: 34px 24px;
        border-radius: 20px;
    }

    .services-cta .home-btn {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .services-label {
        font-size: 11px;
        letter-spacing: 0.18em;
    }

    .services-hero h1 {
        font-size: 44px;
    }

    .service-tile__media img {
        min-height: 220px;
    }

    .service-tile__body {
        padding: 26px 20px;
    }

    .service-tile__body h3 {
        font-size: 22px;
    }

    .service-tile__link {
        width: 100%;
    }
}
/*  */
/* ==============================
   SERVICE MODAL
============================== */

.service-tile__link {
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.service-modal {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
    padding: 24px;
}

.service-modal.is-open {
    display: block;
}

.service-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 7, 10, 0.74);
    backdrop-filter: blur(12px);
}

.service-modal__dialog {
    position: relative;
    z-index: 2;
    width: min(100%, 980px);
    max-height: min(860px, calc(100svh - 48px));
    margin: 0 auto;
    overflow: auto;
    border: 1px solid rgba(202, 168, 92, 0.34);
    border-radius: 24px;
    background: #f7f3ed;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
    animation: serviceModalIn 0.24s ease both;
}

@keyframes serviceModalIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.service-modal__close {
    position: sticky;
    top: 18px;
    left: calc(100% - 62px);
    z-index: 4;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin: 18px 18px 0 auto;
    border: 1px solid rgba(202, 168, 92, 0.34);
    border-radius: 50%;
    color: #11151b;
    background: #ffffff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(17, 21, 27, 0.12);
}

.service-modal__close:hover,
.service-modal__close:focus-visible {
    background: linear-gradient(135deg, #c89b3c, #f0d486);
    outline: none;
}

.service-modal__header {
    padding: 18px 52px 34px;
    border-bottom: 1px solid rgba(202, 168, 92, 0.22);
}

.service-modal__label,
.service-modal-section__label {
    margin: 0 0 16px;
    color: #b98b35;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.service-modal__header h2 {
    margin: 0;
    color: #11151b;
    font-size: clamp(42px, 5vw, 72px);
    font-weight: 900;
    line-height: 0.96;
    letter-spacing: -0.07em;
}

.service-modal__header p:not(.service-modal__label) {
    max-width: 820px;
    margin: 24px 0 0;
    color: #67615a;
    font-size: 19px;
    line-height: 1.62;
}

.service-modal__content {
    padding: 42px 52px;
}

.service-modal-section {
    margin: 0 0 42px;
}

.service-modal-section:last-child {
    margin-bottom: 0;
}

.service-modal-section h3 {
    margin: 0 0 18px;
    color: #11151b;
    font-size: clamp(28px, 3.2vw, 42px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.service-modal-section p {
    margin: 0 0 18px;
    color: #67615a;
    font-size: 17px;
    line-height: 1.72;
}

.service-modal-section p:last-child {
    margin-bottom: 0;
}

.service-modal-list {
    display: grid;
    gap: 14px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.service-modal-list li {
    position: relative;
    padding-left: 34px;
    color: #67615a;
    font-size: 17px;
    line-height: 1.55;
}

.service-modal-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 2px;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #11151b;
    background: linear-gradient(135deg, #c89b3c, #f0d486);
    font-size: 12px;
    font-weight: 900;
}

.service-modal-process {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.service-modal-process article {
    padding: 22px;
    border: 1px solid rgba(202, 168, 92, 0.26);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
}

.service-modal-process article strong {
    display: block;
    margin-bottom: 8px;
    color: #11151b;
    font-size: 18px;
}

.service-modal-prices {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.service-modal-price {
    padding: 22px;
    border: 1px solid rgba(202, 168, 92, 0.28);
    border-radius: 18px;
    background: #ffffff;
}

.service-modal-price strong {
    display: block;
    color: #11151b;
    font-size: 24px;
    font-weight: 900;
}

.service-modal-price span {
    display: block;
    margin-top: 6px;
    color: #b98b35;
    font-size: 22px;
    font-weight: 900;
}

.service-modal-faq {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.service-modal-faq details {
    border: 1px solid rgba(202, 168, 92, 0.26);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    overflow: hidden;
}

.service-modal-faq summary {
    position: relative;
    display: block;
    padding: 18px 54px 18px 20px;
    color: #11151b;
    font-size: 17px;
    font-weight: 900;
    cursor: pointer;
}

.service-modal-faq summary::-webkit-details-marker {
    display: none;
}

.service-modal-faq summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 20px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border-radius: 50%;
    background: linear-gradient(135deg, #c89b3c, #f0d486);
}

.service-modal-faq details[open] summary::after {
    content: "−";
}

.service-modal-faq details p {
    margin: 0;
    padding: 0 20px 20px;
}

.service-modal__footer {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 26px 52px 46px;
    border-top: 1px solid rgba(202, 168, 92, 0.22);
}

.service-modal__secondary {
    min-height: 54px;
    padding: 0 24px;
    border: 1px solid rgba(17, 21, 27, 0.16);
    border-radius: 999px;
    color: #11151b;
    background: #ffffff;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
}

.service-modal__secondary:hover,
.service-modal__secondary:focus-visible {
    border-color: rgba(202, 168, 92, 0.7);
    outline: none;
}

body.service-modal-lock {
    overflow: hidden;
}

@media (max-width: 760px) {
    .service-modal {
        padding: 12px;
    }

    .service-modal__dialog {
        max-height: calc(100svh - 24px);
        border-radius: 20px;
    }

    .service-modal__header,
    .service-modal__content,
    .service-modal__footer {
        padding-left: 24px;
        padding-right: 24px;
    }

    .service-modal__header {
        padding-top: 10px;
    }

    .service-modal__header h2 {
        font-size: 40px;
    }

    .service-modal__header p:not(.service-modal__label),
    .service-modal-section p,
    .service-modal-list li {
        font-size: 16px;
    }

    .service-modal-prices {
        grid-template-columns: 1fr;
    }

    .service-modal__footer {
        display: grid;
    }

    .service-modal__footer .home-btn,
    .service-modal__secondary {
        width: 100%;
    }
}