/* =====================================================================
   EDGE FITNESS : SERVICES PAGE STYLES (CONCEPT 2 - MODERN ATHLETIC)
   Brand: EDGE FITNESS | Luxury, Bold, Athletic, Modern & Cinematic
   Color Palette:
     - Primary background: White (#FFFFFF) / Off-white (#FAFAFA)
     - Primary text: Black (#111111) / Dark Charcoal (#202020)
     - Primary accent: Golden Yellow (#E5A51B)
     - Supporting accent: Red Geometric (#D32F2F) used sparingly
     - Dark sections: Deep Black (#090A0C)
     - Cards: Dark Translucent Overlays with Golden Accents
   ===================================================================== */

:root {
    --srv-gold: var(--gold, #E5A51B);
    --srv-gold-deep: var(--gold-deep, #C58A13);
    --srv-gold-line: rgba(229, 165, 27, 0.4);
    --srv-red: #D32F2F;
    --srv-black: #090A0C;
    --srv-charcoal: #141619;
    --srv-offwhite: #FAFAFA;
}

/* =====================================================================
   1. HERO SECTION – SERVICES BANNER
   ===================================================================== */
.srv-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 260px;
    padding: calc(var(--topbar-h, 44px) + var(--hdr-h, 84px) + 2.5rem) 1.5rem 3.5rem;
    background-color: var(--srv-black);
    background-image:
        radial-gradient(ellipse at center, rgba(9, 10, 12, 0.72) 0%, rgba(9, 10, 12, 0.94) 85%),
        linear-gradient(180deg, rgba(9, 10, 12, 0.85) 0%, rgba(9, 10, 12, 0.96) 100%),
        url('../assets/images/barbell-on-the-floor.jpg');
    background-size: cover;
    background-position: center 38%;
    background-repeat: no-repeat;
    overflow: hidden;
    isolation: isolate;
    border-bottom: 1px solid rgba(229, 165, 27, 0.25);
}

/* Angular Golden Decorative Lines on Both Sides */
.srv-hero::before,
.srv-hero::after {
    content: "";
    position: absolute;
    top: -20%;
    width: 2px;
    height: 140%;
    background: linear-gradient(180deg, transparent, var(--srv-gold), transparent);
    opacity: 0.55;
    pointer-events: none;
    z-index: 1;
}

.srv-hero::before {
    left: 8%;
    transform: rotate(26deg);
}

.srv-hero::after {
    right: 8%;
    transform: rotate(-26deg);
}

.srv-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.srv-hero__title {
    font-family: var(--ff-display, 'Montserrat', sans-serif);
    font-size: clamp(2.8rem, 6.5vw, 4.4rem);
    line-height: 1.05;
    letter-spacing: 0.08em;
    color: var(--text-white, #FFFFFF);
    text-transform: uppercase;
    margin: 0 0 0.85rem;
}

.srv-hero__title .gold {
    color: var(--srv-gold);
    text-shadow: 0 0 25px rgba(229, 165, 27, 0.35);
}

.srv-hero__crumbs {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--ff-heading, 'Montserrat', sans-serif);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-silver, #B8B8B8);
}

.srv-hero__crumbs a {
    color: var(--text-white, #FFFFFF);
    transition: color 0.3s ease;
}

.srv-hero__crumbs a:hover {
    color: var(--srv-gold);
}

.srv-hero__crumbs .sep {
    color: var(--srv-gold);
    font-weight: 400;
}

.srv-hero__crumbs .current {
    color: var(--srv-gold);
}

/* =====================================================================
   2. SERVICES INTRODUCTION – SPLIT-SCREEN DESIGN
   ===================================================================== */
.srv-intro {
    background-color: #FFFFFF;
    color: var(--light-text, #111111);
    position: relative;
    padding: clamp(5rem, 8.5vw, 8rem) 0;
    overflow: hidden;
}

.srv-intro__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--ff-heading, 'Montserrat', sans-serif);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--charcoal-dark, #141619);
    margin-bottom: 0.9rem;
}

.srv-intro__eyebrow::before {
    content: "";
    display: inline-block;
    width: 28px;
    height: 3px;
    background: var(--srv-gold);
}

.srv-intro__title {
    font-family: var(--ff-display, 'Montserrat', sans-serif);
    font-size: clamp(2.4rem, 4.8vw, 3.8rem);
    line-height: 1.1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--light-text, #111111);
    margin: 0;
}

.srv-intro__title .gold {
    color: var(--srv-gold-deep);
    display: inline;
}

.srv-intro__line {
    width: 68px;
    height: 4px;
    background: var(--srv-gold);
    margin: 1.4rem 0 1.8rem;
    border-radius: 1px;
}

.srv-intro__desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--light-muted, #5A5D64);
    margin-bottom: 2.25rem;
}

/* Angular Image Framing with Red Decorative Shape & Gold Outline */
.srv-intro-frame {
    position: relative;
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    padding: 1.25rem;
}

/* Red rectangular background block */
.srv-intro-frame__red-bg {
    position: absolute;
    top: 2rem;
    right: 0;
    bottom: -1rem;
    left: 2.2rem;
    background-color: var(--srv-red);
    z-index: 0;
    transition: transform 0.4s ease;
}

/* Thin golden outline offset */
.srv-intro-frame__gold-border {
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 2.2rem);
    height: calc(100% - 1.25rem);
    border: 2px solid var(--srv-gold);
    z-index: 2;
    pointer-events: none;
    transition: transform 0.4s ease;
}

/* Image wrapper */
.srv-intro-frame__img-wrap {
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: var(--srv-black);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
}

.srv-intro-frame__img-wrap img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform 0.65s var(--ease-smooth, ease);
}

.srv-intro-frame:hover .srv-intro-frame__img-wrap img {
    transform: scale(1.04);
}

.srv-intro-frame:hover .srv-intro-frame__red-bg {
    transform: translate(4px, 4px);
}

.srv-intro-frame:hover .srv-intro-frame__gold-border {
    transform: translate(-3px, -3px);
}

/* =====================================================================
   3. FITNESS HIGHLIGHTS STRIP (ANGLED EDGES)
   ===================================================================== */
.srv-highlights {
    position: relative;
    background: var(--srv-black);
    color: var(--text-white, #FFFFFF);
    padding: clamp(5.5rem, 8.5vw, 7.5rem) 0;
    clip-path: polygon(0 3.2vw, 100% 0, 100% calc(100% - 3.2vw), 0 100%);
    margin: -1.5rem 0;
    z-index: 3;
    overflow: hidden;
}

.srv-highlights::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(229, 165, 27, 0.08), transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(211, 47, 47, 0.06), transparent 50%),
        radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 28px 28px;
    pointer-events: none;
}

.srv-highlights__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative;
    z-index: 1;
}

.srv-highlight-item {
    position: relative;
    text-align: center;
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.srv-highlight-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--srv-gold-line), transparent);
}

.srv-highlight-item__icon {
    font-size: 2.4rem;
    color: var(--srv-gold);
    margin-bottom: 1rem;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.srv-highlight-item:hover .srv-highlight-item__icon {
    transform: translateY(-4px) scale(1.1);
    filter: drop-shadow(0 0 12px rgba(229, 165, 27, 0.6));
}

.srv-highlight-item__label {
    font-family: var(--ff-heading, 'Montserrat', sans-serif);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-white, #FFFFFF);
    margin: 0;
    line-height: 1.35;
}

/* =====================================================================
   4. MAIN SERVICES GRID
   ===================================================================== */
.srv-grid-sec {
    background-color: var(--srv-offwhite);
    color: var(--light-text, #111111);
    position: relative;
    padding: clamp(5.5rem, 9vw, 8.5rem) 0;
    overflow: hidden;
}

/* Subtle background watermark */
.srv-grid-sec::before {
    content: "SERVICES";
    position: absolute;
    right: -2vw;
    bottom: -4vw;
    font-family: var(--ff-display, 'Montserrat', sans-serif);
    font-size: clamp(8rem, 20vw, 20rem);
    line-height: 1;
    color: rgba(9, 10, 12, 0.025);
    pointer-events: none;
    z-index: 0;
    user-select: none;
}

.srv-grid-sec .container {
    position: relative;
    z-index: 1;
}

/* Section Header with Golden Lines on Both Sides */
.srv-grid__head {
    text-align: center;
    margin-bottom: clamp(3rem, 5.5vw, 4.5rem);
}

.srv-grid__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--ff-heading, 'Montserrat', sans-serif);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--srv-gold-deep);
    margin-bottom: 0.85rem;
}

.srv-grid__eyebrow::before,
.srv-grid__eyebrow::after {
    content: "";
    display: inline-block;
    width: 24px;
    height: 2px;
    background: var(--srv-gold);
}

.srv-grid__title {
    font-family: var(--ff-display, 'Montserrat', sans-serif);
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--light-text, #111111);
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
}

.srv-grid__title::before,
.srv-grid__title::after {
    content: "";
    display: inline-block;
    width: clamp(30px, 6vw, 60px);
    height: 3px;
    background: var(--srv-gold);
    vertical-align: middle;
}

.srv-grid__title .gold {
    color: var(--srv-gold-deep);
}

/* 3x3 Grid of Equal-Sized Cards */
.srv-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 2.8vw, 2.25rem);
}

/* Individual Service Card Design */
.srv-card {
    position: relative;
    height: 300px;
    border-radius: 3px;
    overflow: hidden;
    isolation: isolate;
    background-color: var(--srv-black);
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
    cursor: default;
    transition: transform 0.4s var(--ease-smooth, ease),
                box-shadow 0.4s var(--ease-smooth, ease),
                border-color 0.4s var(--ease-smooth, ease);
}

/* Card Background Image */
.srv-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    transition: transform 0.65s var(--ease-smooth, ease);
}

/* Dark Translucent Gradient Overlay */
.srv-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(9, 10, 12, 0.35) 0%,
        rgba(9, 10, 12, 0.65) 50%,
        rgba(9, 10, 12, 0.94) 100%
    );
    z-index: 1;
    transition: background 0.4s ease;
}

/* Golden Numbered Label in Top-Right Corner */
.srv-card__num {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    z-index: 2;
    font-family: var(--ff-display, 'Montserrat', sans-serif);
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    color: var(--srv-gold);
    background: rgba(9, 10, 12, 0.78);
    border: 1px solid var(--srv-gold);
    padding: 0.2rem 0.65rem;
    border-radius: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

/* Card Content (Icon & Title at the Bottom) */
.srv-card__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.75rem 1.5rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Golden Service Icon */
.srv-card__icon {
    font-size: 2rem;
    color: var(--srv-gold);
    margin-bottom: 0.75rem;
    transition: transform 0.35s ease, filter 0.35s ease;
}

/* Bold White Service Title */
.srv-card__title {
    font-family: var(--ff-heading, 'Montserrat', sans-serif);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #FFFFFF;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* Subtle Golden Decorative Accent Bar at the Bottom */
.srv-card__accent-bar {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background: var(--srv-gold);
    z-index: 3;
    transition: width 0.4s var(--ease-smooth, ease);
}

/* Hover Interactions */
.srv-card:hover {
    transform: translateY(-6px);
    border-color: var(--srv-gold);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25), 0 0 20px rgba(229, 165, 27, 0.2);
}

.srv-card:hover .srv-card__img {
    transform: scale(1.08);
}

.srv-card:hover .srv-card__overlay {
    background: linear-gradient(
        180deg,
        rgba(9, 10, 12, 0.2) 0%,
        rgba(9, 10, 12, 0.6) 45%,
        rgba(9, 10, 12, 0.96) 100%
    );
}

.srv-card:hover .srv-card__num {
    background: var(--srv-gold);
    color: var(--srv-black);
    transform: scale(1.06);
}

.srv-card:hover .srv-card__icon {
    transform: translateY(-3px) scale(1.08);
    filter: drop-shadow(0 0 10px rgba(229, 165, 27, 0.7));
}

.srv-card:hover .srv-card__accent-bar {
    width: 100%;
}

/* =====================================================================
   5. ATHLETIC CTA STRIP
   ===================================================================== */
.srv-cta-strip {
    background: var(--srv-charcoal);
    color: #FFFFFF;
    position: relative;
    padding: clamp(4.5rem, 7vw, 6.5rem) 0;
    border-top: 1px solid rgba(229, 165, 27, 0.25);
    text-align: center;
    overflow: hidden;
}

.srv-cta-strip::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(229, 165, 27, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.srv-cta-strip__title {
    font-family: var(--ff-display, 'Montserrat', sans-serif);
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    line-height: 1.1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #FFFFFF;
    margin: 0 0 1rem;
}

.srv-cta-strip__title .gold {
    color: var(--srv-gold);
}

.srv-cta-strip__sub {
    font-size: 1.1rem;
    color: var(--text-silver, #B8B8B8);
    max-width: 650px;
    margin: 0 auto 2.25rem;
    line-height: 1.7;
}

/* =====================================================================
   6. RESPONSIVE DESIGN BREAKPOINTS
   ===================================================================== */
@media (max-width: 1199.98px) {
    .srv-cards-grid {
        gap: 1.5rem;
    }

    .srv-card {
        height: 280px;
    }
}

@media (max-width: 991.98px) {
    .srv-hero {
        min-height: 230px;
        padding-top: calc(var(--hdr-h, 84px) + 2rem);
    }

    .srv-hero::before,
    .srv-hero::after {
        opacity: 0.3;
    }

    .srv-highlights {
        clip-path: polygon(0 2.5vw, 100% 0, 100% calc(100% - 2.5vw), 0 100%);
    }

    .srv-highlights__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 0;
    }

    .srv-highlight-item:nth-child(2)::after {
        display: none;
    }

    .srv-highlight-item:not(:last-child)::after {
        top: 20%;
        height: 60%;
    }

    .srv-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .srv-intro-frame {
        margin-top: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    .srv-hero {
        min-height: 200px;
        padding-bottom: 2.5rem;
    }

    .srv-highlights {
        clip-path: none;
        margin: 0;
        padding: 4rem 0;
    }

    .srv-highlights__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem 0.5rem;
    }

    .srv-highlight-item:not(:last-child)::after {
        display: none;
    }

    .srv-highlight-item {
        padding: 0.75rem 0.5rem;
    }

    .srv-highlight-item__icon {
        font-size: 2rem;
    }

    .srv-highlight-item__label {
        font-size: 0.78rem;
    }

    .srv-grid__title::before,
    .srv-grid__title::after {
        display: none;
    }

    .srv-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .srv-card {
        height: 260px;
    }

    .srv-intro-frame {
        max-width: 100%;
        padding: 0.75rem;
    }

    .srv-intro-frame__red-bg {
        left: 1.5rem;
        top: 1.5rem;
    }

    .srv-intro-frame__gold-border {
        width: calc(100% - 1.5rem);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .srv-card,
    .srv-card__img,
    .srv-card__icon,
    .srv-card__num,
    .srv-card__accent-bar,
    .srv-intro-frame img {
        transition: none !important;
        transform: none !important;
    }
}
