
/* =========================================
   BROPLAC — REFORMA INTEGRAL
   DESKTOP BASE
========================================= */

.service-detail-page {
    --service-bg: #eee7df;
    --service-text: #211914;
    --service-brown: #65442f;
    --service-muted: #766c64;

    background: var(--service-bg);
    color: var(--service-text);
    width: 100%;
}

/* =========================================
   HERO
========================================= */

.service-detail-hero {
    height: 100vh;
    min-height: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
}

/* =========================================
   MAIN CONTAINER
========================================= */

.service-detail-container {
    width: 100%;
    flex: 1;
    min-height: 0;

    display: grid;
    grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
    gap: 30px;

    padding: 30px 4% 25px;
    box-sizing: border-box;
}

/* =========================================
   LEFT CONTENT
========================================= */

.service-detail-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-right: 15px;
}

.service-detail-heading {
    width: 100%;
}

.service-detail-eyebrow {
    display: block;
    margin-bottom: 20px;
    color: var(--service-brown);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.service-detail-heading h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(40px, 4.2vw, 76px);
    font-weight: 400;
    line-height: 1.06;
    letter-spacing: -1.8px;
    margin: 0 0 25px;
}

.service-detail-description {
    max-width: 440px;
    margin: 0;
    color: #4c443e;
    font-size: clamp(14px, 1.05vw, 17px);
    line-height: 1.7;
}

/* =========================================
   CTA BUTTON
========================================= */

.service-detail-cta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;
    margin-top: 28px;
    padding: 15px 25px;

    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;

    background: var(--service-brown);
    color: #fff;

    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.3;

    transition: background 0.3s ease,
                transform 0.3s ease;
}

.service-detail-cta:hover {
    background: #49301f;
    transform: translateY(-2px);
}

.service-detail-cta svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* =========================================
   STATS
========================================= */

.service-detail-stats {
    display: flex;
    width: 100%;
    margin-top: 35px;
    padding-top: 22px;
    border-top: 1px solid rgba(33, 25, 20, 0.15);
}

.service-detail-stat {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0 12px;
    border-right: 1px solid rgba(33, 25, 20, 0.15);
}

.service-detail-stat:first-child {
    padding-left: 0;
}

.service-detail-stat:last-child {
    padding-right: 0;
    border-right: none;
}

.service-detail-stat strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(22px, 2vw, 32px);
    font-weight: 400;
    white-space: nowrap;
}

.service-detail-stat span {
    color: var(--service-muted);
    font-size: 11px;
    line-height: 1.4;
}

/* =========================================
   PHOTO COLLAGE — SINGLE IMAGE
========================================= */

.service-detail-gallery {
    min-width: 0;
    min-height: 0;
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
}

.service-detail-gallery > .service-detail-photo {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    object-fit: cover;
    object-position: center;
}

/* =========================================
   BOTTOM SERVICES NAVIGATION
========================================= */

.service-detail-navigation {
    width: 100%;
    flex-shrink: 0;
    padding: 20px 4%;
    box-sizing: border-box;
    border-top: 1px solid rgba(33, 25, 20, 0.15);
}

.service-detail-navigation-inner {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 12px;
}

.service-detail-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--service-text);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.service-detail-nav-item:hover {
    opacity: 0.65;
}

.service-detail-nav-image {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
}

.service-detail-nav-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-detail-nav-item span {
    min-width: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
    line-height: 1.3;
}

.service-detail-nav-item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--service-brown);
}

.service-detail-nav-item.active span {
    color: var(--service-brown);
}

/* =========================================
   DESKTOP RESPONSIVE
   1025px - 1400px
========================================= */

@media (min-width: 1025px) and (max-width: 1400px) {

    .service-detail-container {
        grid-template-columns: minmax(0, 48fr) minmax(0, 52fr);
        gap: 20px;
        padding: 15px 4% 20px;
    }

    .service-detail-heading h1 {
        font-size: clamp(38px, 4vw, 58px);
        margin-bottom: 15px;
    }

    .service-detail-eyebrow {
        margin-bottom: 12px;
    }

    .service-detail-description {
        max-width: 540px;
        font-size: 14px;
        line-height: 1.5;
    }

    .service-detail-cta {
        margin-top: 18px;
        padding: 12px 20px;
    }

    .service-detail-stats {
        margin-top: 20px;
        padding-top: 15px;
    }

    .service-detail-navigation {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .service-detail-navigation-inner {
        gap: 8px;
    }

    .service-detail-nav-item {
        gap: 6px;
    }

    .service-detail-nav-image {
        width: 38px;
        height: 38px;
    }

    .service-detail-nav-item span {
        font-size: 10px;
    }

    .service-detail-nav-item svg {
        width: 12px;
        height: 12px;
    }
}

/* =========================================
   DESKTOP FIX — 1025px AND ABOVE
========================================= */

@media (min-width: 1025px) {

    .service-detail-page {
        margin-top: 80px;
    }

    .service-detail-hero {
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .service-detail-container {
        grid-template-columns: minmax(0, 48fr) minmax(0, 52fr);
        gap: 20px;
        padding: 20px 4%;
        min-height: 0;
    }

    .service-detail-content {
        justify-content: center;
        min-height: 0;
    }

    .service-detail-gallery {
        height: 520px;
        max-height: 65vh;
        align-self: start;
    }
}

/* =========================================
   MOBILE RESPONSIVE
========================================= */

@media (max-width: 767px) {

    /* MAIN SECTION */

    .service-detail-page {
        width: 100%;
        background: #eee7df;
    }

    .service-detail-hero {
        height: auto;
        min-height: 0;
        overflow: visible;
        display: flex;
        flex-direction: column;
    }

    /* MAIN LAYOUT */

    .service-detail-container {
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "heading"
            "gallery"
            "cta"
            "stats";
        gap: 0;
        padding: 100px 6% 35px;
        box-sizing: border-box;
    }

    .service-detail-content {
        display: contents;
    }

    /* HEADING + DESCRIPTION */

    .service-detail-heading {
        grid-area: heading;
        width: 100%;
        margin-bottom: 25px;
    }

    .service-detail-eyebrow {
        display: block;
        margin-bottom: 14px;
        font-size: 11px;
        letter-spacing: 2.5px;
        color: var(--service-brown);
    }

    .service-detail-heading h1 {
        font-family: Georgia, "Times New Roman", serif;
        font-size: clamp(32px, 8vw, 44px);
        font-weight: 400;
        line-height: 1.12;
        letter-spacing: -1px;
        margin: 0 0 20px;
    }

    .service-detail-description {
        max-width: 100%;
        margin: 0;
        font-size: 14px;
        line-height: 1.7;
        color: #4c443e;
    }

    /* SINGLE PHOTO COLLAGE */

    .service-detail-gallery {
        grid-area: gallery;
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        background: #eee7df;
        overflow: hidden;
        border-radius: 6px;
    }

    .service-detail-gallery > .service-detail-photo {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }

    /* CTA BUTTON */

    .service-detail-cta {
        grid-area: cta;
        display: inline-flex;
        align-items: center;
        justify-content: space-between;

        width: fit-content;
        max-width: 100%;
        height: auto;
        min-height: 0;

        margin: 25px 0 0;
        padding: 15px 25px;
        gap: 30px;

        background: var(--service-brown);
        color: #fff;
        font-size: 14px;
        line-height: 1.3;
        text-decoration: none;
        border-radius: 50px;

        justify-self: start;
        align-self: start;
        box-sizing: border-box;
    }

    .service-detail-cta svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    /* STATS */

    .service-detail-stats {
        grid-area: stats;
        width: 100%;
        display: flex;

        margin: 32px 0 0;
        padding: 22px 0 0;
        border-top: 1px solid rgba(33, 25, 20, 0.15);
    }

    .service-detail-stat {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 0 10px;
        border-right: 1px solid rgba(33, 25, 20, 0.15);
    }

    .service-detail-stat:first-child {
        padding-left: 0;
    }

    .service-detail-stat:last-child {
        border-right: none;
        padding-right: 0;
    }

    .service-detail-stat strong {
        font-family: Georgia, "Times New Roman", serif;
        font-size: clamp(20px, 6vw, 27px);
        font-weight: 400;
        white-space: nowrap;
    }

    .service-detail-stat span {
        font-size: 10px;
        line-height: 1.4;
        color: var(--service-muted);
    }

    /* OTHER SERVICES */

    .service-detail-navigation {
        width: 100%;
        padding: 30px 6% 40px;
        box-sizing: border-box;
        border-top: 1px solid rgba(33, 25, 20, 0.15);
    }

    .service-detail-navigation-inner {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 14px;
    }

    .service-detail-nav-item {
        display: flex;
        align-items: center;
        min-width: 0;
        gap: 8px;
        text-decoration: none;
    }

    .service-detail-nav-image {
        width: 38px;
        height: 38px;
        flex-shrink: 0;
        border-radius: 50%;
        overflow: hidden;
    }

    .service-detail-nav-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .service-detail-nav-item span {
        min-width: 0;
        flex: 1;
        font-family: Georgia, "Times New Roman", serif;
        font-size: 11px;
        line-height: 1.3;
    }

    .service-detail-nav-item svg {
        width: 13px;
        height: 13px;
        flex-shrink: 0;
    }
}

/* =========================================
   VERY SMALL PHONES
========================================= */

@media (max-width: 375px) {

    .service-detail-heading h1 {
        font-size: 31px;
    }

    .service-detail-container {
        padding-left: 5%;
        padding-right: 5%;
    }

    .service-detail-navigation {
        padding-left: 5%;
        padding-right: 5%;
    }

    .service-detail-nav-image {
        width: 32px;
        height: 32px;
    }

    .service-detail-nav-item span {
        font-size: 10px;
    }

    .service-detail-nav-item {
        gap: 5px;
    }
}

/* =========================================
   SERVICE NAVIGATION ICONS
========================================= */

.service-detail-nav-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-detail-nav-image svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    stroke-width: 1.7;
    flex-shrink: 0;
}

/* =========================================
   SERVICE NAVIGATION — DESKTOP ONLY
   4 COLUMNS × 2 ROWS
========================================= */

@media (min-width: 1025px) {

    .service-detail-navigation-inner {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
    }
}

/* =========================================
   DESKTOP — LARGER COLLAGE
========================================= */

@media (min-width: 1025px) {

    .service-detail-gallery {
        height: 600px;
        max-height: none;
        align-self: center;
    }

    .service-detail-gallery > .service-detail-photo {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}


/* =========================================
   MOBILE — REMOVE EXTRA EMPTY SPACE
========================================= */

@media (max-width: 767px) {

    .service-detail-gallery {
        width: 100%;
        height: auto;
        aspect-ratio: auto;
        overflow: hidden;
    }

    .service-detail-gallery > .service-detail-photo {
        display: block;
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .service-detail-cta {
        margin-top: 20px;
    }
}

/* REFORMAS DE COCINAS — DESKTOP ONLY */

@media (min-width: 1025px) {

    .service-cocinas .service-detail-gallery {
        transform: translateY(-25px);
    }
        .desktop-wide {
        max-width: 550px;
    }
}