/* /css/services.css */

/* ==========================================================================
   Hero Section
   ========================================================================== */
.services-hero {
    background-color: var(--deep-navy);
    color: var(--ivory);
    margin-top: 65px;
    /* Start below fixed navbar */
    padding: 6rem 4rem;
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.services-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -8%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.18) 0%, rgba(13, 27, 62, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.services-hero-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
}

.services-hero-image img,
.services-hero-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.services-hero-image iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: none;
}

.services-hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    pointer-events: none;
}

.services-hero-content {
    max-width: 600px;
    pointer-events: auto;
}

.services-hero .hero-eyebrow {
    color: var(--sovereign-gold);
    font-size: 1rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.services-hero h1 {
    color: var(--ivory);
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    position: relative;
    font-weight: 600;
}

.services-hero h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--sovereign-gold);
}

.services-hero p {
    color: rgba(250, 247, 242, 0.8);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 520px;
}

.services-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.services-hero .hero-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 1.75rem;
    border-radius: 50px;
    background-color: var(--sovereign-gold);
    color: var(--deep-navy);
    border: 1.5px solid var(--sovereign-gold);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.25s ease;
}

.services-hero .hero-btn-primary:hover {
    background-color: #d8bb63;
}

.services-hero .hero-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 1.75rem;
    border-radius: 50px;
    background-color: transparent;
    color: var(--ivory);
    border: 1.5px solid rgba(250, 247, 242, 0.4);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.services-hero .hero-btn-ghost:hover {
    background-color: rgba(250, 247, 242, 0.08);
    border-color: var(--ivory);
}

/* ==========================================================================
   Trust Stats Band
   ========================================================================== */
.services-stats {
    background-color: var(--deep-navy);
    border-top: 1px solid rgba(201, 168, 76, 0.18);
    padding: 2.5rem 4rem;
}

.services-stats-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    position: relative;
    padding: 0.25rem 1rem;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 50%;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.12);
}

.stat-value {
    display: block;
    font-family: 'Inter', sans-serif;
    color: var(--sovereign-gold);
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.stat-label {
    display: block;
    color: rgba(250, 247, 242, 0.7);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

/* ==========================================================================
   Sticky Category Quick-Nav
   ========================================================================== */
.services-quicknav {
    position: sticky;
    top: 65px;
    z-index: 900;
    background-color: rgba(250, 247, 242, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(13, 27, 62, 0.06);
}

.services-quicknav-track {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 4rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.services-quicknav-track::-webkit-scrollbar {
    display: none;
}

.quicknav-pill {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.1rem;
    border-radius: 50px;
    border: 1px solid rgba(13, 27, 62, 0.12);
    color: var(--charcoal);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.quicknav-pill i,
.quicknav-pill svg {
    width: 15px;
    height: 15px;
    color: var(--sovereign-gold);
}

.quicknav-pill:hover {
    border-color: var(--sovereign-gold);
    color: var(--deep-navy);
    background-color: rgba(201, 168, 76, 0.08);
}

/* ==========================================================================
   Category Section
   ========================================================================== */
.service-category {
    padding: 5rem 4rem;
    background-color: var(--ivory);
    scroll-margin-top: 130px;
    /* offset for sticky navbar + quicknav when jumping via anchors */
}

.service-category.is-navy {
    background-color: var(--deep-navy);
}

.service-category-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.category-head {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3.5rem;
    align-items: center;
    margin-bottom: 4rem;
}

.category-head-text .category-eyebrow {
    color: var(--sovereign-gold);
    font-size: 1rem;
    font-weight: 600;
    display: block;
    margin-bottom: 1rem;
}

.category-head-text h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    color: var(--deep-navy);
}

.is-navy .category-head-text h2 {
    color: var(--ivory);
}

.category-head-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    max-width: 520px;
    margin-bottom: 1.75rem;
}

.is-navy .category-head-text p {
    color: rgba(250, 247, 242, 0.8);
}

.category-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 46px;
    padding: 0 1.6rem;
    border-radius: 50px;
    background-color: transparent;
    color: var(--midnight-navy);
    border: 1.5px solid var(--midnight-navy);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.category-cta i,
.category-cta svg {
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
}

.category-cta:hover {
    background-color: var(--midnight-navy);
    color: var(--ivory);
}

.category-cta:hover i,
.category-cta:hover svg {
    transform: translateX(3px);
}

.is-navy .category-cta {
    color: var(--sovereign-gold);
    border-color: var(--sovereign-gold);
}

.is-navy .category-cta:hover {
    background-color: var(--sovereign-gold);
    color: var(--deep-navy);
}

.category-head-image {
    position: relative;
    height: 340px;
    border-radius: 8px;
    overflow: hidden;
}

.category-count {
    position: absolute;
    bottom: 1.25rem;
    left: 1.25rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background-color: rgba(13, 27, 62, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(201, 168, 76, 0.5);
    color: var(--ivory);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.category-head-image img,
.category-head-image video,
.category-head-image iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-head-image::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to top, rgba(13, 27, 62, 0.35) 0%, rgba(13, 27, 62, 0) 55%);
}

/* ==========================================================================
   Treatment Slider & Cards
   ========================================================================== */
.treatment-slider-container {
    position: relative;
}

.treatment-slider-container .slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--sovereign-gold);
    border: 1px solid var(--sovereign-gold);
    color: var(--deep-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.is-navy .treatment-slider-container .slider-nav {
    background-color: var(--sovereign-gold);
    border-color: var(--sovereign-gold);
    color: var(--deep-navy);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.treatment-slider-container .slider-nav:hover {
    background-color: #d8bb63;
    color: var(--deep-navy);
    border-color: #d8bb63;
    transform: translateY(-50%) scale(1.05);
}

.treatment-slider-container .slider-prev {
    left: -24px;
}

.treatment-slider-container .slider-next {
    right: -24px;
}

@media (max-width: 992px) {
    .treatment-slider-container .slider-nav {
        display: none;
    }
}

.treatment-grid.is-dragging {
    user-select: none;
}

.treatment-grid.is-dragging * {
    pointer-events: none;
}

.treatment-grid {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    flex-wrap: nowrap;
    gap: 1rem;
    margin-left: -4rem;
    margin-right: -4rem;
    padding-left: 4rem;
    padding-right: 4rem;
}

.treatment-grid::-webkit-scrollbar {
    display: none;
}

.treatment-card {
    position: relative;
    flex: 0 0 auto;
    width: 340px;
    background-color: #ffffff;
    border: 1px solid rgba(13, 27, 62, 0.06);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: border-color 0.35s ease;
    overflow: hidden;
}

.is-navy .treatment-card {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.treatment-card:hover {
    border-color: rgba(201, 168, 76, 0.45);
}

/* --- Card media (image + icon badge) --- */
.treatment-card-media {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.treatment-card-media img,
.treatment-card-media video,
.treatment-card-media iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.treatment-card:hover .treatment-card-media img,
.treatment-card:hover .treatment-card-media video,
.treatment-card:hover .treatment-card-media iframe {
    transform: scale(1.05);
}

.treatment-card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 27, 62, 0.55) 0%, rgba(13, 27, 62, 0.05) 50%);
}

.treatment-badge {
    position: absolute;
    top: 175px;
    /* media is 200px tall; offset by half the 50px badge so it straddles the edge */
    left: 1.5rem;
    z-index: 3;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--sovereign-gold);
    color: var(--deep-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s ease, background-color 0.35s ease;
}

.treatment-badge i,
.treatment-badge svg {
    width: 22px;
    height: 22px;
}

.treatment-card:hover .treatment-badge {
    transform: scale(1.12) rotate(-6deg);
    background-color: var(--ivory);
}

/* --- Card body --- */
.treatment-card-body {
    padding: 2.25rem 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex-grow: 1;
}

.treatment-card-body h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--deep-navy);
    line-height: 1.3;
    margin: 0;
}

.is-navy .treatment-card-body h3 {
    color: var(--ivory);
}

.treatment-card-body p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
    flex-grow: 1;
}

.is-navy .treatment-card-body p {
    color: rgba(250, 247, 242, 0.65);
}

.treatment-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    color: var(--sovereign-gold);
    font-size: 0.85rem;
    font-weight: 600;
    transition: gap 0.25s ease, color 0.25s ease;
}

.treatment-link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 10;
}

.treatment-link i,
.treatment-link svg {
    width: 14px;
    height: 14px;
    transition: transform 0.25s ease;
}

.treatment-card:hover .treatment-link {
    color: var(--sovereign-gold);
    gap: 0.7rem;
}

.treatment-card:hover .treatment-link i,
.treatment-card:hover .treatment-link svg {
    transform: translateX(3px);
}

/* ==========================================================================
   Closing CTA Section
   ========================================================================== */
.services-cta {
    padding: 0 4rem 5rem;
    background-color: var(--ivory);
}

.services-cta-inner {
    margin: 0 auto;
    background: linear-gradient(135deg, var(--deep-navy) 0%, var(--midnight-navy) 100%);
    border-radius: 14px;
    padding: 4rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.services-cta-inner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.18) 0%, rgba(13, 27, 62, 0) 70%);
    border-radius: 50%;
}

.services-cta-inner>* {
    position: relative;
    z-index: 1;
}

.services-cta .cta-eyebrow {
    color: var(--sovereign-gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    margin-bottom: 1rem;
}

.services-cta h2 {
    color: var(--ivory);
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.services-cta p {
    color: rgba(250, 247, 242, 0.8);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 620px;
    margin: 0 auto 2rem;
}

.services-cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.services-cta .cta-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 2rem;
    border-radius: 50px;
    background-color: var(--sovereign-gold);
    color: var(--deep-navy);
    border: 1.5px solid var(--sovereign-gold);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.25s ease;
}

.services-cta .cta-btn-primary:hover {
    background-color: #d8bb63;
}

.services-cta .cta-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 2rem;
    border-radius: 50px;
    background-color: transparent;
    color: var(--ivory);
    border: 1.5px solid rgba(250, 247, 242, 0.4);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.services-cta .cta-btn-ghost:hover {
    background-color: rgba(250, 247, 242, 0.08);
    border-color: var(--ivory);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .services-hero {
        flex-direction: column-reverse;
        padding: 4rem 2rem 0;
        text-align: center;
        min-height: auto;
    }

    .services-hero-container {
        padding-bottom: 4rem;
    }

    .services-hero h1::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .services-hero-content {
        margin: 0 auto;
    }

    .services-hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .services-hero-actions {
        justify-content: center;
    }

    .services-hero-image {
        position: relative;
        width: 100%;
        height: 280px;
    }

    .category-head {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .category-head-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .category-head-image {
        height: 260px;
        order: -1;
    }

    .services-stats {
        padding: 2rem 0;
    }

    .services-stats-inner {
        display: flex;
        overflow-x: auto;
        scrollbar-width: none;
        gap: 2rem;
        padding-bottom: 0.5rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .services-stats-inner::-webkit-scrollbar {
        display: none;
    }

    .stat-item {
        flex: 0 0 auto;
        min-width: 150px;
    }

    .stat-item:nth-child(2)::after {
        display: block;
    }
}

@media (max-width: 768px) {
    .services-hero {
        padding: 3.5rem 1rem 0;
    }

    .services-quicknav-track {
        padding: 1.5rem 1rem;
    }

    .service-category {
        padding: 4rem 1rem;
    }

    .services-cta {
        padding: 0 1rem 4rem;
    }

    .services-cta-inner {
        padding: 3rem 1.5rem;
    }

    .treatment-grid {
        gap: 1rem;
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .treatment-card {
        width: 85vw;
        max-width: 320px;
    }
}

@media (max-width: 600px) {
    .services-hero h1 {
        font-size: 2.2rem !important;
    }

    .category-head-text h2,
    .services-cta h2 {
        font-size: 1.8rem !important;
    }
}