/* ==========================================================
   SERVICE_DETAIL.CSS
   Service Detail Pages
========================================================== */


/* ==========================================
   Service Detail Header
========================================== */

.page-header {
    padding: 64px 0 54px;
    background: #131d33;
    color: #ffffff;
    text-align: center;
}

.page-header .container {
    width: min(100% - 32px, 1000px);
    margin: 0 auto;
}

.page-header .page-label {
    margin: 0 0 16px;

    color: var(--lime, #c8f000);

    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.page-header h1 {
    max-width: 850px;
    margin: 0 auto 20px;

    color: #ffffff;

    font-size: clamp(42px, 6vw, 66px);
    line-height: 1.08;
}

.page-header .page-subtitle {
    max-width: 780px;
    margin: 0 auto;

    color: #d1d5db;

    font-size: 18px;
    line-height: 1.65;
}


/* ==========================================
   Service Detail CTA Buttons — Desktop
========================================== */

.page-header .hero-buttons {
    width: 100%;
    max-width: 900px;
    margin: 28px auto 0;

    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
}

.page-header .hero-buttons > a {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 56px;
    margin: 0 !important;
    padding: 14px 18px;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;

    color: inherit;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;

    border-radius: 14px;
}

.page-header .hero-buttons > a:first-child,
.page-header .hero-buttons > a:nth-child(2),
.page-header .hero-buttons > a:nth-child(3) {
    grid-column: auto !important;
    justify-self: stretch !important;
}

.page-header .hero-buttons > a i {
    flex-shrink: 0;
    font-size: 16px;
}


/* ==========================================
   Common Problems Section
========================================== */

.common-problems-section {
    padding: 42px 0 48px;
    background: #f8fafc;
}

.common-problems-section .container {
    width: min(100% - 32px, 1200px);
    margin: 0 auto;
}

.common-problems-section .section-heading {
    max-width: 820px;
    margin: 0 auto 28px;
    text-align: center;
}

.common-problems-section .section-heading p {
    margin: 0 0 8px;

    color: var(--lime, #c8f000);

    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.common-problems-section .section-heading h2 {
    margin: 0 0 12px;

    color: #111827;

    font-size: 38px;
    line-height: 1.15;
}

.common-problems-section .section-heading span {
    display: block;

    color: #4b5563;

    font-size: 17px;
    line-height: 1.65;
}


/* ==========================================
   Common Problems Grid
========================================== */

.problem-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.problem-card {
    min-height: 82px;
    padding: 18px 20px;

    display: flex;
    align-items: center;
    gap: 16px;

    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;

    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.problem-icon {
    flex: 0 0 40px;

    width: 40px;
    height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--lime, #c8f000);
    color: #111827;

    font-size: 16px;
}

.problem-card h3 {
    margin: 0;

    color: #111827;

    font-size: 18px;
    line-height: 1.35;
}


/* ==========================================
   Shared Service Detail Heading
========================================== */

.service-detail-heading {
    max-width: 820px;
    margin: 0 auto 34px;
    text-align: center;
}

.service-detail-heading p {
    margin: 0 0 10px;

    color: var(--lime, #c8f000);

    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.service-detail-heading h2 {
    margin: 0;

    color: #111827;

    font-size: 38px;
    line-height: 1.15;
}


/* ==========================================
   Why Choose Us
========================================== */

.service-benefits-section {
    padding: 58px 0;
    background: #f8fafc;
}

.service-benefits-section .container {
    width: min(100% - 32px, 1200px);
    margin: 0 auto;
}

.service-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.service-benefit-card {
    min-height: 150px;
    padding: 24px;

    display: flex;
    align-items: flex-start;
    gap: 18px;

    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;

    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.service-benefit-icon {
    flex: 0 0 48px;

    width: 48px;
    height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #050713;
    background: var(--lime, #c8f000);

    font-size: 19px;
    border-radius: 14px;
}

.service-benefit-content {
    min-width: 0;
}

.service-benefit-content h3 {
    margin: 1px 0 8px;

    color: #111827;

    font-size: 20px;
    line-height: 1.3;
}

.service-benefit-content p {
    margin: 0;

    color: #4b5563;

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


/* ==========================================
   Repair Process
========================================== */

.service-process-section {
    padding: 58px 0;
    background: #ffffff;
}

.service-process-section .container {
    width: min(100% - 32px, 1100px);
    margin: 0 auto;
}

.service-process-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.service-process-step {
    min-height: 140px;
    padding: 24px;

    display: flex;
    align-items: flex-start;
    gap: 18px;

    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
}

.service-process-number {
    flex: 0 0 46px;

    width: 46px;
    height: 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--lime, #c8f000);
    background: #050713;

    font-size: 21px;
    font-weight: 800;
    border-radius: 14px;
}

.service-process-content {
    min-width: 0;
}

.service-process-content h3 {
    margin: 1px 0 8px;

    color: #111827;

    font-size: 20px;
    line-height: 1.3;
}

.service-process-content p {
    margin: 0;

    color: #4b5563;

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


/* ==========================================
   Tablet
========================================== */

@media (max-width: 900px) {
    .page-header {
        padding: 54px 0 46px;
    }

    .page-header .container {
        width: calc(100% - 28px);
    }

    .page-header h1 {
        max-width: 720px;

        font-size: clamp(38px, 7vw, 54px);
        line-height: 1.1;
    }

    .page-header .page-subtitle {
        font-size: 17px;
    }

    /*
       Required CTA order:
       Schedule Service
       Text Us | Call
    */
    .page-header .hero-buttons {
        width: 100%;
        max-width: 680px;
        margin: 26px auto 0;

        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .page-header .hero-buttons > a:first-child {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: none !important;
        justify-self: stretch !important;
    }

    .page-header .hero-buttons > a:nth-child(2) {
        grid-column: 1 !important;
        width: 100% !important;
        max-width: none !important;
        justify-self: stretch !important;
    }

    .page-header .hero-buttons > a:nth-child(3) {
        grid-column: 2 !important;
        width: 100% !important;
        max-width: none !important;
        justify-self: stretch !important;
    }

    .problem-grid,
    .service-benefits-grid,
    .service-process-list {
        grid-template-columns: 1fr;
    }

    .service-benefit-card,
    .service-process-step {
        min-height: 0;
    }
}


/* ==========================================
   Mobile
========================================== */

@media (max-width: 560px) {
    .page-header {
        padding: 42px 0 34px;
    }

    .page-header .container {
        width: calc(100% - 24px);
    }

    .page-header .page-label {
        margin-bottom: 13px;

        font-size: 13px;
        letter-spacing: 1.8px;
    }

    .page-header h1 {
        max-width: 430px;
        margin-bottom: 18px;

        font-size: clamp(30px, 8vw, 40px);
        line-height: 1.14;
    }

    .page-header .page-subtitle {
        max-width: 470px;

        font-size: 16px;
        line-height: 1.55;
    }

    .page-header .hero-buttons {
        width: 100% !important;
        max-width: 470px !important;
        margin: 26px auto 0 !important;

        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .page-header .hero-buttons > a:first-child {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: none !important;
        justify-self: stretch !important;
    }

    .page-header .hero-buttons > a:nth-child(2) {
        grid-column: 1 !important;
        width: 100% !important;
        max-width: none !important;
        justify-self: stretch !important;
    }

    .page-header .hero-buttons > a:nth-child(3) {
        grid-column: 2 !important;
        width: 100% !important;
        max-width: none !important;
        justify-self: stretch !important;
    }

    .page-header .hero-buttons > a {
        min-width: 0 !important;
        min-height: 50px !important;
        margin: 0 !important;
        padding: 12px 8px !important;

        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 7px;

        font-size: 14px !important;
        line-height: 1.2;

        border-radius: 14px !important;
    }

    .page-header .hero-buttons > a i {
        font-size: 14px;
    }

    .common-problems-section {
        padding: 34px 0 40px;
    }

    .common-problems-section .container,
    .service-benefits-section .container,
    .service-process-section .container {
        width: calc(100% - 20px);
    }

    .common-problems-section .section-heading {
        margin-bottom: 22px;
    }

    .common-problems-section .section-heading p {
        margin-bottom: 8px;

        font-size: 13px;
        letter-spacing: 2.4px;
    }

    .common-problems-section .section-heading h2 {
        margin-bottom: 10px;

        font-size: 30px;
        line-height: 1.15;
    }

    .common-problems-section .section-heading span {
        font-size: 15px;
        line-height: 1.55;
    }

    .problem-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .problem-card {
        min-height: 74px;
        padding: 16px;
        gap: 12px;

        border-radius: 16px;
    }

    .problem-icon {
        flex-basis: 36px;

        width: 36px;
        height: 36px;

        font-size: 14px;
    }

    .problem-card h3 {
        font-size: 16px;
        line-height: 1.3;
    }

    .service-benefits-section,
    .service-process-section {
        padding: 42px 0;
    }

    .service-detail-heading {
        margin-bottom: 24px;
    }

    .service-detail-heading p {
        margin-bottom: 8px;

        font-size: 13px;
        letter-spacing: 2.4px;
    }

    .service-detail-heading h2 {
        font-size: 29px;
        line-height: 1.18;
    }

    .service-benefits-grid,
    .service-process-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .service-benefit-card,
    .service-process-step {
        min-height: 0;
        padding: 17px;

        align-items: center;
        gap: 14px;

        border-radius: 16px;
    }

    .service-benefit-icon,
    .service-process-number {
        flex-basis: 42px;

        width: 42px;
        height: 42px;

        font-size: 17px;
        border-radius: 12px;
    }

    .service-benefit-content h3,
    .service-process-content h3 {
        margin-bottom: 5px;

        font-size: 17px;
        line-height: 1.25;
    }

    .service-benefit-content p,
    .service-process-content p {
        font-size: 14px;
        line-height: 1.5;
    }
}


/* ==========================================
   Small Phones
========================================== */

@media (max-width: 380px) {
    .page-header {
        padding-top: 36px;
    }

    .page-header h1 {
        font-size: 29px;
    }

    .page-header .hero-buttons {
        gap: 9px !important;
    }

    .page-header .hero-buttons > a {
        padding: 11px 5px !important;
        font-size: 13px !important;
    }

    .common-problems-section .section-heading h2 {
        font-size: 27px;
    }

    .service-detail-heading h2 {
        font-size: 26px;
    }

    .service-benefit-card,
    .service-process-step {
        padding: 15px;
        gap: 12px;
    }

    .service-benefit-content h3,
    .service-process-content h3 {
        font-size: 16px;
    }

    .service-benefit-content p,
    .service-process-content p {
        font-size: 13px;
    }
}

/* ==========================================================
   SERVICE DETAIL FAQ
========================================================== */

.service-faq-section {
    padding: 64px 0;
    background: #f8fafc;
}

.service-faq-section .container {
    width: min(100% - 32px, 1000px);
    margin: 0 auto;
}

.service-faq-list {
    display: grid;
    gap: 14px;
}

.service-faq-item {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 16px;

    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.service-faq-item summary {
    position: relative;

    padding: 20px 56px 20px 22px;

    color: #111827;

    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;

    cursor: pointer;
    list-style: none;
}

.service-faq-item summary::-webkit-details-marker {
    display: none;
}

.service-faq-item summary::after {
    content: "+";

    position: absolute;
    right: 22px;
    top: 50%;

    color: #16a34a;

    font-size: 24px;
    font-weight: 700;

    transform: translateY(-50%);
}

.service-faq-item[open] summary::after {
    content: "−";
}

.service-faq-item p {
    margin: 0;

    padding: 0 22px 22px;

    color: #4b5563;

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


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

@media (max-width: 560px) {

    .service-faq-section {
        padding: 44px 0;
    }

    .service-faq-section .container {
        width: calc(100% - 20px);
    }

    .service-faq-list {
        gap: 10px;
    }

    .service-faq-item {
        border-radius: 14px;
    }

    .service-faq-item summary {
        padding: 17px 48px 17px 16px;

        font-size: 16px;
        line-height: 1.35;
    }

    .service-faq-item summary::after {
        right: 16px;

        font-size: 22px;
    }

    .service-faq-item p {
        padding: 0 16px 17px;

        font-size: 14px;
        line-height: 1.55;
    }

}
