/* ============================================================
   Organic SEO Services London — page-specific styles.
   Shared location components (hero, service cards, quick answer,
   pricing, why-grid, areas, process, comparison) come from
   location-bromley.css; this file only styles the sections unique
   to this page: specialist-service cards, case-study cards, and
   the team gallery wall.
   ============================================================ */

/* ---------- Core-services grid: internal links on selected cards ---------- */
.osl-service-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
    font-size: 14.5px;
    font-weight: 600;
    color: #d32027;
    text-decoration: none;
    transition: color .25s ease;
}

.osl-service-link svg {
    width: 15px;
    height: 15px;
    transition: transform .25s ease;
}

.osl-service-link:hover {
    color: #b8000a;
}

.osl-service-link:hover svg {
    transform: translateX(4px);
}

/* ---------- Industries grid: linked industry card ---------- */
.osl-industry-card-link {
    text-decoration: none;
    color: inherit;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.osl-industry-card-link:hover {
    color: inherit;
    transform: translateY(-4px);
    border-color: rgba(211, 32, 39, .4);
    box-shadow: 0 20px 40px -26px rgba(11, 11, 15, .35);
}

.osl-industry-card-link .bromley-industry-title::after {
    content: " \2192";
    color: #d32027;
    font-weight: 700;
}

/* ---------- Specialist services (penalty removal / international
   SEO / multilingual PPC) ---------- */
.osl-specialist-sec {
    padding: 90px 0;
}

.osl-spec-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 18px;
    padding: 34px 30px;
    position: relative;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.osl-spec-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d32027, #ff6b5b);
    opacity: 0;
    transition: opacity .3s ease;
}

.osl-spec-card:hover {
    transform: translateY(-6px);
    border-color: rgba(211, 32, 39, .35);
    box-shadow: 0 28px 56px -28px rgba(11, 11, 15, .3);
}

.osl-spec-card:hover::before {
    opacity: 1;
}

.osl-spec-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #d32027;
    margin-bottom: 14px;
}

.osl-spec-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    color: #1f2329;
    margin: 0 0 14px;
}

.osl-spec-desc {
    font-size: 15px;
    line-height: 1.75;
    color: #5a6270;
    margin: 0 0 20px;
}

.osl-spec-points {
    list-style: none;
    margin: 0 0 26px;
    padding: 0;
}

.osl-spec-points li {
    position: relative;
    padding-left: 26px;
    font-size: 14.5px;
    line-height: 1.6;
    color: #1f2329;
    font-weight: 500;
    margin-bottom: 10px;
}

.osl-spec-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(211, 32, 39, .12);
    box-shadow: inset 0 0 0 4.5px rgba(211, 32, 39, .9);
}

.osl-spec-cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 22px;
    border: 1.5px solid #d32027;
    border-radius: 999px;
    background: transparent;
    color: #d32027;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .25s ease, color .25s ease;
}

.osl-spec-cta svg {
    width: 17px;
    height: 17px;
    transition: transform .25s ease;
}

.osl-spec-cta:hover {
    background: #d32027;
    color: #fff;
}

.osl-spec-cta:hover svg {
    transform: translateX(4px);
}

/* ---------- Case studies ---------- */
.osl-case-sec {
    padding: 90px 0;
}

.osl-case-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 18px;
    padding: 28px 24px;
    transition: transform .3s ease, border-color .3s ease, background .3s ease;
}

.osl-case-card:hover {
    transform: translateY(-6px);
    border-color: rgba(211, 32, 39, .55);
    background: rgba(255, 255, 255, .06);
}

.osl-case-cat {
    display: inline-block;
    align-self: flex-start;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .65);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    padding: 5px 12px;
    margin-bottom: 20px;
}

.osl-case-metric {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
}

.osl-case-number {
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(90deg, #ff4d55, #ff8a5b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #ff4d55;
}

.osl-case-label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, .75);
    margin-top: 6px;
}

.osl-case-client {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px;
}

.osl-case-body {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .65);
    margin: 0 0 22px;
}

.osl-case-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.osl-case-timeline {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, .55);
}

.osl-case-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 600;
    color: #ff6b5b;
    text-decoration: none;
    transition: color .25s ease;
}

.osl-case-link svg {
    width: 15px;
    height: 15px;
    transition: transform .25s ease;
}

.osl-case-link:hover {
    color: #ffffff;
}

.osl-case-link:hover svg {
    transform: translateX(4px);
}

/* ---------- Team gallery wall (mirrors the homepage tbsc section) ---------- */
.osl-team-sec {
    padding: 96px 0;
    position: relative;
    overflow: hidden;
}

.osl-team-header {
    max-width: 760px;
    margin: 0 0 44px;
}

.osl-team-title {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.02em;
    color: #0b0b0b;
    margin: 14px 0 16px;
}

.osl-team-title-accent {
    background: linear-gradient(90deg, #e50914, #ff6b5b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #e50914;
}

.osl-team-sub {
    font-size: clamp(15px, 1.2vw, 18px);
    line-height: 1.7;
    color: #5a5a5a;
    margin: 0;
}

.osl-team-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.osl-team-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 16px;
    border: 1px solid #e7e7e7;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: #101010;
    background: #fff;
}

.osl-team-chip::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e50914;
    flex: none;
}

.osl-team-wall {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 168px;
    grid-auto-flow: dense;
    gap: 16px;
}

.osl-team-ph {
    position: relative;
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #eee;
    box-shadow: 0 22px 44px -30px rgba(11, 11, 15, .5);
    isolation: isolate;
}

.osl-team-ph img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.2, .65, .3, 1);
}

.osl-team-ph::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 16px;
    box-shadow: inset 0 0 0 0 rgba(229, 9, 20, 0);
    transition: box-shadow .35s ease;
    pointer-events: none;
}

.osl-team-ph:hover img {
    transform: scale(1.05);
}

.osl-team-ph:hover::before {
    box-shadow: inset 0 0 0 3px rgba(229, 9, 20, .85);
}

.osl-team-ph--feat {
    grid-column: span 2;
    grid-row: span 2;
}

.osl-team-ph--tall {
    grid-row: span 2;
}

.osl-team-band {
    grid-column: span 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.osl-team-bph {
    position: relative;
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #eee;
    box-shadow: 0 22px 44px -30px rgba(11, 11, 15, .5);
    isolation: isolate;
}

.osl-team-bph img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.2, .65, .3, 1);
}

.osl-team-bph::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 16px;
    box-shadow: inset 0 0 0 0 rgba(229, 9, 20, 0);
    transition: box-shadow .35s ease;
    pointer-events: none;
}

.osl-team-bph:hover img {
    transform: scale(1.05);
}

.osl-team-bph:hover::before {
    box-shadow: inset 0 0 0 3px rgba(229, 9, 20, .85);
}

.osl-team-ph--feat::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent 55%);
    pointer-events: none;
}

.osl-team-cap {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    border-radius: 999px;
    background: rgba(11, 11, 15, .5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.osl-team-cap::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, .6);
    animation: oslTeamPulse 2.2s ease-out infinite;
}

@keyframes oslTeamPulse {
    70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .osl-specialist-sec,
    .osl-case-sec {
        padding: 70px 0;
    }

    .osl-spec-title {
        font-size: 21px;
    }

    .osl-case-number {
        font-size: 38px;
    }

    .osl-team-wall {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 152px;
    }
}

@media (max-width: 575px) {
    .osl-specialist-sec,
    .osl-case-sec {
        padding: 56px 0;
    }

    .osl-spec-card {
        padding: 26px 22px;
    }

    .osl-spec-title {
        font-size: 19px;
    }

    .osl-case-number {
        font-size: 34px;
    }

    .osl-team-wall {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 130px;
        gap: 12px;
    }

    .osl-team-ph {
        border-radius: 13px;
    }

    .osl-team-band {
        grid-column: 1 / -1;
        gap: 8px;
    }

    .osl-team-bph {
        border-radius: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .osl-team-ph img,
    .osl-team-bph img {
        transition: none;
    }

    .osl-team-cap::before {
        animation: none;
    }

    .osl-spec-card,
    .osl-case-card {
        transition: none;
    }
}
