/* -------------------------------------------------------------------------- */
/* Service Detail Page Styles
/* -------------------------------------------------------------------------- */

/* Layout Structure */
.service-detail-page {
    background-color: rgba(249, 250, 251, 0.5); /* bg-gray-50/50 */
    min-height: 100vh;
    font-family: 'Montserrat', sans-serif;
}

.service-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ---------------- Hero Section ---------------- */
.service-hero {
    position: relative;
    padding: 8rem 0 4rem 0;
    background-color: #0a0f1c;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .service-hero {
        padding: 10rem 0 6rem 0;
    }
}

.service-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: radial-gradient(circle at 100% 0%, rgba(51, 122, 183, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 0% 100%, rgba(40, 96, 144, 0.15) 0%, transparent 40%);
}

.service-hero__pattern {
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMSIgY3k9IjEiIHI9IjEiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4wNSkiLz48L3N2Zz4=');
    -webkit-mask-image: linear-gradient(to bottom, white, transparent);
    mask-image: linear-gradient(to bottom, white, transparent);
}

.service-hero__inner {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align left */
    gap: 3rem;
}

@media (min-width: 1024px) {
    .service-hero__inner {
        flex-direction: row;
        align-items: center;
        gap: 4rem;
    }
}

.service-hero__content {
    flex: 1;
    width: 100%;
    min-width: 0;
}

/* Breadcrumb in hero — align with content, not centered chip */
.service-hero__content .page-breadcrumb--hero {
    margin-bottom: 1.5rem;
    align-self: flex-start;
    max-width: 100%;
}

.service-hero__content .page-breadcrumb--align-center {
    justify-content: flex-start;
}

.service-hero__labels {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    margin: 0 0 1.25rem;
}

.service-label {
    display: inline-flex;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.38rem 0.7rem;
    border-radius: 8px;
    border: 1px solid transparent;
}

.service-label--featured {
    color: #713f12;
    background: rgb(254 243 199);
    border-color: rgb(250 204 21 / 0.5);
}

.service-label--free {
    color: rgb(4 120 87);
    background: rgb(209 250 229);
    border-color: rgb(16 185 129 / 0.35);
}

.service-label--fixed,
.service-label--from {
    color: #1e4a7a;
    background: rgb(219 234 254);
    border-color: rgb(51 122 183 / 0.35);
}

.service-label--quote {
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}

.service-hero__title-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-hero__title-icon {
    width: 4rem;
    height: 4rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.service-hero__title-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.service-hero__title {
    font-size: clamp(1.375rem, 4.5vw + 0.35rem, 2.5rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin: 0;
    min-width: 0;
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

@media (min-width: 640px) {
    .service-hero__title {
        font-size: clamp(1.75rem, 3vw + 0.5rem, 3rem);
        line-height: 1.2;
    }
}

@media (min-width: 1024px) {
    .service-hero__title {
        font-size: 3.5rem;
    }
}

.service-hero__desc {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 42rem;
}

.service-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
}

/* Hero book CTA — global fh-btn primary */
.service-hero .fh-btn.service-hero__cta {
    width: auto;
    min-width: 220px;
    padding: 0.875rem 1.5rem;
    gap: 0.625rem;
    box-shadow: 0 4px 18px rgba(51, 122, 183, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.service-hero .fh-btn.service-hero__cta:hover {
    box-shadow: 0 8px 24px rgba(51, 122, 183, 0.5);
}

.service-hero .fh-btn__leading {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.service-hero .fh-btn__leading-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.service-hero .fh-btn.service-hero__cta .fh-btn__icon {
    transition: transform 0.2s ease;
}

html:not([dir="rtl"]) .service-hero .fh-btn.service-hero__cta:hover .fh-btn__icon {
    transform: rotate(180deg) translateX(3px);
}

[dir="rtl"] .service-hero .fh-btn.service-hero__cta:hover .fh-btn__icon {
    transform: translateX(-3px);
}

.service-hero__price {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    padding-inline-start: 1.5rem;
    border-inline-start: 1px solid rgba(255, 255, 255, 0.1);
}

.service-hero__price-label {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.service-hero__price-value {
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
}

.service-hero__price-hint {
    margin-top: 0.35rem;
    max-width: 18rem;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.48);
}

/* Optional right-side featured image layout (if used) */
.service-hero__visual {
    width: 100%;
    max-width: 400px;
    flex-shrink: 0;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .service-hero__visual {
        margin: 0;
    }
}

.service-hero__visual-inner {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    aspect-ratio: 4 / 3;
    display: flex;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.service-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------------- Service hero — mobile / tablet ---------------- */
@media (max-width: 767px) {
    .service-hero {
        padding: 5.5rem 0 2.5rem;
    }

    .service-container {
        padding: 0 1rem;
    }

    .service-hero__inner {
        gap: 2rem;
    }

    .service-hero__content .page-breadcrumb--hero {
        margin-bottom: 1.25rem;
        font-size: 12px;
    }

    .service-hero__title-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1rem;
        width: 100%;
    }

    .service-hero__title-icon {
        width: 3rem;
        height: 3rem;
        padding: 0.65rem;
        border-radius: 0.75rem;
    }

    .service-hero__title {
        flex: none;
        width: 100%;
        font-size: clamp(1.25rem, 6.5vw, 1.625rem);
        line-height: 1.3;
    }

    .service-hero__desc {
        font-size: 0.9375rem;
        line-height: 1.55;
        margin-bottom: 1.5rem;
    }

    .service-hero__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .service-hero .fh-btn.service-hero__cta {
        width: 100%;
        min-width: 0;
        justify-content: center;
    }

    .service-hero__price {
        padding-inline-start: 0;
        border-inline-start: none;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        width: 100%;
    }
}

@media (max-width: 480px) {
    .service-hero {
        padding: 5rem 0 2rem;
    }

    .service-hero__content .page-breadcrumb--hero {
        font-size: 11px;
    }
}


/* ---------------- Main Content Section ---------------- */
.service-body {
    padding: 5rem 0;
}

@media (min-width: 1024px) {
    .service-body {
        padding: 7rem 0;
    }
}

.service-body__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .service-body__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4rem;
    }
}

.service-body__main {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .service-body__main {
        grid-column: span 2 / span 2;
        gap: 2.5rem;
    }
}

/* Scoped so home.css listing `.service-card` rules do not break this page */
.service-detail-page .service-card {
    display: block;
    min-height: 0;
    align-items: unset;
    gap: 0;
    background-color: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
    padding: 2rem;
    margin-bottom: 0;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-detail-page .service-card::before {
    content: none;
    display: none;
}

@media (min-width: 640px) {
    .service-detail-page .service-card {
        padding: 3rem;
    }
}

.service-detail-page .service-card:hover {
    transform: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-color: #f3f4f6;
}

.service-detail-page .service-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.service-detail-page .service-card__header svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #337ab7;
    flex-shrink: 0;
}

.service-detail-page .service-prose {
    font-size: 1.125rem;
    color: #4b5563;
    line-height: 1.75;
}

.service-detail-page .service-prose h3,
.service-detail-page .service-prose h4 {
    font-weight: 700;
    color: #111827;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.service-detail-page .service-prose a {
    color: #337ab7;
    text-decoration: none;
    font-weight: 500;
}

.service-detail-page .service-prose a:hover {
    text-decoration: underline;
}

/* Features Grid (own service-card; no extra top divider) */
.service-detail-page .service-features {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.service-detail-page .service-features__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .service-detail-page .service-features__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.service-detail-page .feature-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 1rem;
    background-color: #f9fafb;
    border: 1px solid #f3f4f6;
    transition: border-color 0.3s ease;
}

.service-detail-page .feature-item:hover {
    border-color: rgba(51, 122, 183, 0.3);
}

.service-detail-page .feature-item__icon {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    color: #337ab7;
}

.service-detail-page .feature-item__icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.service-detail-page .feature-item__title {
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
}

.service-detail-page .feature-item__desc {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Gallery Grid */
.service-gallery__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .service-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.service-gallery__item {
    aspect-ratio: 4 / 3;
    border-radius: 1rem;
    overflow: hidden;
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.service-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-gallery__item:hover img {
    transform: scale(1.05);
}


/* ---------------- Sidebar ---------------- */
.service-sidebar {
    grid-column: span 1;
}

.service-sidebar__inner {
    position: sticky;
    top: 8rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-widget {
    background-color: #337ab7;
    border-radius: 1.5rem;
    padding: 2rem;
    color: #fff;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.contact-widget__glow {
    position: absolute;
    top: -2.5rem;
    right: -2.5rem;
    width: 10rem;
    height: 10rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(24px);
}

.contact-widget__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.contact-widget__desc {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.contact-widget__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem;
    background-color: #fff;
    color: #337ab7;
    font-weight: 700;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
    position: relative;
    z-index: 1;
}

.contact-widget__btn:hover {
    background-color: #f9fafb;
    color: #337ab7;
}

.meta-widget {
    background-color: #fff;
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid #f3f4f6;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.meta-widget__label {
    font-size: 0.875rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.meta-widget__value {
    font-weight: 500;
    color: #111827;
}


/* ---------------- Mobile CTA ---------------- */
.mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    border-top: 1px solid #f3f4f6;
    padding: 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    z-index: 50;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.05);
}

@media (min-width: 1024px) {
    .mobile-cta {
        display: none;
    }
}

.mobile-cta__price {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.mobile-cta__price-label {
    color: #9ca3af;
    font-weight: 500;
    font-size: 0.625rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.mobile-cta__price-value {
    color: #111827;
    font-weight: 700;
    font-size: 1.125rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.mobile-cta__btn {
    flex: 1;
    background-color: #337ab7;
    color: #fff;
    text-align: center;
    padding: 0.875rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    box-shadow: 0 10px 15px -3px rgba(51, 122, 183, 0.3);
}
