/* =========================================================
   SMARTLINK FLORIDA - SERVICE DETAIL PAGES
   Use with reusable header.php and footer.php
========================================================= */

.slf-service-detail-page {
    background:
        radial-gradient(circle at top left, rgba(0, 128, 128, 0.09), transparent 34%),
        linear-gradient(180deg, #f7f8f8 0%, #eeeeee 100%);
    color: #2b2f35;
}


/* Page-specific hero backgrounds moved out of inline PHP for easier maintenance. */
.device-setup-service-page .slf-service-hero {
    --service-hero-image: var(--slf-media-device-setup-hero, linear-gradient(145deg, #101820, #243b55, #008080));
    --service-hero-position: var(--slf-media-device-setup-hero-position, center center);
}

.small-office-service-page .slf-service-hero {
    --service-hero-image: var(--slf-media-small-office-hero, linear-gradient(145deg, #101820, #1d2a33, #008080));
    --service-hero-position: var(--slf-media-small-office-hero-position, center center);
}

.tv-service-page .slf-service-hero {
    --service-hero-image: var(--slf-media-tv-hero, linear-gradient(145deg, #111827, #203a43, #006666));
    --service-hero-position: var(--slf-media-tv-hero-position, center center);
}

.surveillance-service-page .slf-service-hero {
    --service-hero-image: var(--slf-media-surveillance-hero, linear-gradient(145deg, #0b1417, #1f2933, #006666));
    --service-hero-position: var(--slf-media-surveillance-hero-position, center center);
}

.smart-home-service-page .slf-service-hero {
    --service-hero-image: var(--slf-media-smart-home-hero, linear-gradient(145deg, #081214, #203a43, #008080));
    --service-hero-position: var(--slf-media-smart-home-hero-position, center center);
}

.home-theater-service-page .slf-service-hero {
    --service-hero-image: var(--slf-media-home-theater-hero, linear-gradient(145deg, #0f172a, #1f2933, #006666));
    --service-hero-position: var(--slf-media-home-theater-hero-position, center center);
}

.router-service-page .slf-service-hero {
    --service-hero-image: var(--slf-media-router-hero, linear-gradient(145deg, #0b1320, #203a43, #007878));
    --service-hero-position: var(--slf-media-router-hero-position, center center);
}

.slf-service-hero {
    position: relative;
    min-height: 390px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(5, 15, 18, 0.94), rgba(5, 15, 18, 0.76), rgba(5, 15, 18, 0.52)),
        var(--service-hero-image, linear-gradient(145deg, #0f2027, #203a43, #2c5364));
    background-size: cover;
    background-position: center, var(--service-hero-position, center center);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

.slf-service-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.34));
    pointer-events: none;
}

.slf-service-hero-inner {
    position: relative;
    z-index: 1;
    width: min(92%, var(--slf-layout-container));
    margin: 0 auto;
    padding: 58px 0;
    display: grid;
    grid-template-columns: minmax(0, 680px) minmax(260px, 360px);
    gap: 34px;
    align-items: center;
}

.slf-service-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 13px;
    color: #dffbfb;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.slf-service-eyebrow::before {
    content: "";
    width: 38px;
    height: 3px;
    border-radius: 999px;
    background: #008080;
}

.slf-service-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(2.55rem, 5.4vw, 4.25rem);
    line-height: 1.02;
    letter-spacing: -1.3px;
    color: #ffffff;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.68);
}

.slf-service-hero p {
    max-width: 700px;
    margin: 0;
    color: #f5ffff;
    font-size: 1.1rem;
    line-height: 1.58;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.62);
}

.slf-service-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.slf-service-hero-card {
    padding: 24px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.20);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(13px);
    -webkit-backdrop-filter: blur(13px);
}

.slf-service-hero-card strong {
    display: block;
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 1.15rem;
    line-height: 1.25;
}

.slf-service-hero-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.slf-service-hero-card li {
    position: relative;
    padding-left: 25px;
    color: #ecffff;
    font-size: 0.95rem;
    line-height: 1.35;
}

.slf-service-hero-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #83eeee;
    font-weight: 900;
}

.slf-service-btn-primary,
.slf-service-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--slf-button-height);
    padding: 0 24px;
    border-radius: var(--slf-button-radius);
    text-decoration: none;
    font-weight: var(--slf-weight-button);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.slf-service-btn-primary {
    color: #ffffff;
    background: linear-gradient(145deg, #006666, #008080);
    box-shadow: 0 12px 25px rgba(0, 102, 102, 0.36);
}

.slf-service-btn-secondary {
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.72);
    background: rgba(0, 0, 0, 0.22);
}

.slf-service-btn-primary:hover,
.slf-service-btn-secondary:hover {
    transform: translateY(-2px);
}

.slf-service-main {
    width: min(92%, var(--slf-layout-container));
    margin: var(--slf-section-gap) auto;
}

.slf-service-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 24px;
    align-items: stretch;
    margin-bottom: 24px;
}

.slf-service-card,
.slf-service-side-card,
.slf-service-cta {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--slf-card-radius);
    box-shadow: var(--slf-card-shadow);
}

.slf-service-card {
    padding: 30px;
}

.slf-service-card h2,
.slf-service-section h2,
.slf-service-side-card h2 {
    color: #20252b;
    font-size: clamp(1.65rem, 3vw, 2.2rem);
    line-height: 1.15;
    margin: 0 0 13px;
}

.slf-service-card p,
.slf-service-side-card p,
.slf-service-section p {
    color: #424950;
    line-height: 1.62;
    margin: 0 0 14px;
}

.slf-service-side-card {
    padding: 26px;
    background:
        linear-gradient(180deg, #ffffff, #f7fbfb);
}

.slf-service-side-card h2 {
    font-size: 1.35rem;
}

.slf-service-highlight-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: grid;
    gap: 12px;
}

.slf-service-highlight-list li {
    position: relative;
    padding: 13px 13px 13px 43px;
    border-radius: 12px;
    background: #edfafa;
    color: #263035;
    line-height: 1.38;
    font-weight: 700;
}

.slf-service-highlight-list li::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 14px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #008080;
    box-shadow: 0 0 0 5px rgba(0, 128, 128, 0.14);
}

.slf-service-section {
    margin-top: 24px;
}

.slf-service-section-title {
    text-align: center;
    margin-bottom: 20px;
}

.slf-service-section-title p {
    max-width: 720px;
    margin: 0 auto;
}

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

.slf-service-feature-card {
    min-height: 225px;
    padding: 24px;
    border-radius: var(--slf-card-radius);
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--slf-card-shadow);
}

.slf-service-icon {
    width: 62px;
    height: 62px;
    margin-bottom: 18px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #008080;
    background: #e6f7f8;
}

.slf-service-icon svg {
    width: 34px;
    height: 34px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.slf-service-feature-card h3 {
    margin: 0 0 9px;
    color: #20252b;
    font-size: 1.1rem;
    line-height: 1.25;
}

.slf-service-feature-card p {
    margin: 0;
    color: #4c545c;
    font-size: 0.95rem;
    line-height: 1.5;
}

.slf-service-process {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.slf-service-step {
    position: relative;
    padding: 22px 18px;
    border-radius: var(--slf-card-radius);
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--slf-card-shadow);
}

.slf-service-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: linear-gradient(145deg, #006666, #008080);
    color: #ffffff;
    font-weight: 900;
}

.slf-service-step h3 {
    margin: 0 0 7px;
    color: #20252b;
    font-size: 1rem;
}

.slf-service-step p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
}

.slf-service-cta {
    margin-top: 28px;
    padding: 30px;
    color: #ffffff;
    background:
        linear-gradient(145deg, rgba(0, 102, 102, 0.98), rgba(0, 128, 128, 0.96)),
        linear-gradient(145deg, #006666, #008080);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
}

.slf-service-cta h2 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 1.75rem;
    line-height: 1.15;
}

.slf-service-cta p {
    margin: 0;
    color: #ecffff;
}

.slf-service-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--slf-button-height);
    min-width: 190px;
    padding: 0 24px;
    border-radius: var(--slf-button-radius);
    background: #ffffff;
    color: #006666;
    text-decoration: none;
    font-weight: var(--slf-weight-button);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

@media (max-width: 980px) {
    .slf-service-hero-inner,
    .slf-service-intro-grid {
        grid-template-columns: 1fr;
    }

    .slf-service-hero-card {
        max-width: 560px;
    }

    .slf-service-feature-grid,
    .slf-service-process {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .slf-service-hero {
        min-height: auto;
    }

    .slf-service-hero-inner {
        width: 90%;
        padding: 42px 0;
        gap: 24px;
    }

    .slf-service-hero p {
        font-size: 1rem;
    }

    .slf-service-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        max-width: 340px;
    }

    .slf-service-btn-primary,
    .slf-service-btn-secondary {
        width: 100%;
    }

    .slf-service-main {
        width: 90%;
        margin: 24px auto;
    }

    .slf-service-card,
    .slf-service-side-card,
    .slf-service-feature-card,
    .slf-service-step,
    .slf-service-cta {
        border-radius: 13px;
    }

    .slf-service-card,
    .slf-service-side-card {
        padding: 22px 18px;
    }

    .slf-service-feature-grid,
    .slf-service-process {
        grid-template-columns: 1fr;
    }

    .slf-service-feature-card {
        min-height: auto;
        padding: 22px 18px;
    }

    .slf-service-cta {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 26px 18px;
    }

    .slf-service-cta a {
        width: 100%;
    }
}
