/* ================================================================
   SERVICES.CSS
   Shared styles for all 4 Services sub-pages:
   - page-services-transactions.php
   - page-services-equity-capital-markets.php
   - page-services-mergers-acquisitions.php
   - page-services-valuation.php
   Uses base.css variables throughout.
   Load via enqueue.php on respective pages only.
================================================================ */

/* ----------------------------------------------------------------
   SHARED HERO
---------------------------------------------------------------- */
.services-hero {
    position: relative;
    background: var(--color-blue);
    padding: 160px 20px 120px;
    overflow: hidden;
}

.services-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
            -58deg,
            transparent, transparent 72px,
            rgba(255, 255, 255, 0.015) 72px,
            rgba(255, 255, 255, 0.015) 73px
    );
    pointer-events: none;
}

.services-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-orange);
    margin-bottom: 1.2rem;
}

.services-hero__eyebrow::before {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    background: var(--color-orange);
    flex-shrink: 0;
}

.services-hero__title {
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 600;
    line-height: 1.02;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 1.5rem;
}

.services-hero__title em {
    font-style: normal;
    color: var(--color-orange);
}

.services-hero__sub {
    font-size: clamp(0.9rem, 1.4vw, 1.05rem);
    color: rgba(255, 255, 255, 0.72);
    max-width: 620px;
    line-height: 1.8;
    margin: 0;
}

.services-hero__slice {
    position: absolute;
    bottom: -2px;
    left: -2px;
    right: -2px;
    height: 80px;
    background: #fff;
    clip-path: polygon(0 100%, 100% 30%, 100% 100%);
    pointer-events: none;
}

/* ----------------------------------------------------------------
   BODY
---------------------------------------------------------------- */
.services-body {
    padding: 80px 0 100px;
}

/* ----------------------------------------------------------------
   SUB-NAV — Services pages
---------------------------------------------------------------- */
.services-subnav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.services-subnav__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 18px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    border: 1.5px solid var(--color-border);
    color: var(--color-muted);
    background: #fff;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.services-subnav__link:hover {
    color: var(--color-blue);
    border-color: var(--color-blue);
}

.services-subnav__link.is-active {
    background: var(--color-blue);
    color: #fff;
    border-color: var(--color-blue);
}

/* ----------------------------------------------------------------
   SECTION EYEBROW / TITLE
---------------------------------------------------------------- */
.services-section__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--color-orange);
    margin-bottom: 1rem;
}

.services-section__eyebrow::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-orange);
    flex-shrink: 0;
}

.services-section__title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: var(--color-primary);
    margin: 0 0 0.6rem;
}

.services-section__title em {
    font-style: normal;
    color: var(--color-orange);
}

.services-section__title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--color-orange);
    margin-top: 14px;
}

.services-intro-lead {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--color-primary);
    font-weight: 500;
    margin: 24px 0 1.2em;
    padding-left: 18px;
    border-left: 3px solid var(--color-orange);
}

.services-intro-body {
    font-size: 0.97rem;
    line-height: 1.85;
    color: var(--color-muted);
    margin: 0 0 1.2em;
}

/* ----------------------------------------------------------------
   SERVICE CARDS — individual sub-services
---------------------------------------------------------------- */
.services-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 48px;
}

.service-card {
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    transition: box-shadow 0.28s ease, border-color 0.28s ease, transform 0.28s ease;
}

.service-card:hover {
    box-shadow: 0 8px 36px rgba(4, 47, 101, 0.09);
    border-color: rgba(4, 47, 101, 0.2);
    transform: translateY(-2px);
}

/* Coloured top bar per card */
.service-card__top {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 32px 22px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg-light);
}

.service-card__number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--color-blue);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    letter-spacing: 0;
}

.service-card__heading {
    flex: 1;
}

.service-card__label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-orange);
    margin-bottom: 5px;
}

.service-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-primary);
    margin: 0;
}

.service-card__body {
    padding: 24px 32px 28px;
}

.service-card__text {
    font-size: 0.92rem;
    line-height: 1.82;
    color: var(--color-muted);
    margin: 0 0 16px;
}

.service-card__text:last-child { margin-bottom: 0; }

.service-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-blue);
    text-decoration: none;
    border-bottom: 1.5px solid rgba(4, 47, 101, 0.3);
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease, gap 0.2s ease;
}

.service-card__cta:hover {
    color: var(--color-orange);
    border-color: var(--color-orange);
    gap: 11px;
}

.service-card__cta svg { flex-shrink: 0; }

/* ----------------------------------------------------------------
   SIDEBAR — sticky quick-links & CTA
---------------------------------------------------------------- */
.services-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.services-sidebar-card {
    border: 1px solid var(--color-border);
    border-radius: 10px;
    overflow: hidden;
}

.services-sidebar-card__header {
    padding: 18px 22px;
    background: var(--color-bg-light);
    border-bottom: 1px solid var(--color-border);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-primary);
}

/* Quick-links list */
.services-quicklinks {
    list-style: none;
    margin: 0;
    padding: 0;
}

.services-quicklinks li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--color-border);
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.services-quicklinks li:last-child a { border-bottom: none; }

.services-quicklinks li a:hover {
    background: var(--color-bg-light);
    color: var(--color-orange);
    padding-left: 28px;
}

.services-quicklinks li a::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-orange);
    flex-shrink: 0;
}

/* CTA card */
.services-cta-card {
    background: var(--color-blue);
    border-radius: 10px;
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
}

.services-cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
            -58deg,
            transparent, transparent 50px,
            rgba(255,255,255,0.02) 50px,
            rgba(255,255,255,0.02) 51px
    );
    pointer-events: none;
}

.services-cta-card__label {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-orange);
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.services-cta-card__text {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.5;
    margin: 0 0 20px;
    position: relative;
    z-index: 1;
}

.services-cta-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 22px;
    background: var(--color-orange);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    position: relative;
    z-index: 1;
    transition: background 0.22s ease, transform 0.22s ease, gap 0.22s ease;
}

.services-cta-card__btn:hover {
    background: #fff;
    color: var(--color-orange);
    transform: translateY(-2px);
    gap: 12px;
}

/* ----------------------------------------------------------------
   BRAND BAND — bottom of each page
---------------------------------------------------------------- */
.services-brand-band {
    background: var(--color-blue);
    border-radius: 12px;
    padding: 48px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 60px;
}

.services-brand-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
            -58deg,
            transparent, transparent 72px,
            rgba(255,255,255,0.02) 72px,
            rgba(255,255,255,0.02) 73px
    );
    pointer-events: none;
}

.services-brand-band__label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-orange);
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.services-brand-band__headline {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin: 0 0 24px;
    position: relative;
    z-index: 1;
}

.services-brand-band__headline em {
    font-style: normal;
    color: var(--color-orange);
}

.services-brand-band__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 0 32px;
    background: var(--color-orange);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    position: relative;
    z-index: 1;
    transition: background 0.22s ease, color 0.22s ease, gap 0.22s ease, transform 0.22s ease;
}

.services-brand-band__btn:hover {
    background: #fff;
    color: var(--color-orange);
    gap: 16px;
    transform: translateY(-2px);
}

/* ----------------------------------------------------------------
   RESPONSIVE
---------------------------------------------------------------- */
@media (max-width: 1279px) {
    .services-hero { padding: 130px 0 100px; }
}

@media (max-width: 991px) {
    .services-sidebar { position: static; }
    .services-brand-band { padding: 36px 28px; }
}

@media (max-width: 768px) {
    .services-hero { padding: 110px 20px 80px; }
    .services-hero__slice { height: 48px; }
    .services-body { padding: 50px 20px 80px; }
    .service-card__top { padding: 20px 20px 16px; }
    .service-card__body { padding: 18px 20px 22px; }
    .services-subnav { gap: 6px; }
    .services-brand-band { padding: 28px 20px; }
}