/* ======================================
   LEGAL SERVICES - full-width split sections. The layout and the colour are set apart:
   layout - image on the left (.lg-ch: Child Custody & Maintenance, Domestic Violence, Finger Print Analysis, Website Tracking,
   Employee Theft Crime) or image on the right (.lg-lc: Labour Court Case, Handwriting / Signature Analysis, Tracing & Suspicious IP,
   Asset Search)
   colour - black (.lg-black) or white (.lg-white); the nine sections alternate black, white, black ... from 01 to 09
   used by legal.html - every rule is scoped under .lg
   Full-width split sections: a photograph that bleeds to the screen edge, a slanted edge with a red strip and a translucent strip
====================================== */

.lg {
    --lg-red: #ee3939;
    --lg-red-ink: #d9231f;         /* the red for small text on white (4.5:1) */
    --lg-black: #000000;
    --lg-white: #ffffff;
    --lg-ink: #111111;
    position: relative;
    display: flex;
    align-items: stretch;
    padding: 0;                    /* the theme gives every <section> 110px of padding */
    overflow: hidden;
    font-family: "DM Sans", sans-serif;
}

.lg *,
.lg *::before,
.lg *::after {
    box-sizing: border-box;
    font-style: normal;
}

/* ---- the picture: it fills a box that is 56% of the section wide; the photograph itself takes the first 50% (the rest is for the slanted strips) ---- */
.lg-media {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    width: 56%;
}

.lg-reveal {
    position: absolute;
    top: 0;
    bottom: 0;
}

.lg-frame {
    position: absolute;
    inset: 0;
    margin: 0;
    overflow: hidden;
    background: #1a1a1a;
}

.lg-img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

.lg-diag {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

/* ---- text ---- */
.lg-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    min-height: clamp(440px, 27.5vw, 540px);
}

.lg-meta {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.1vw, 18px);
    margin: 0 0 clamp(14px, 1.7vw, 24px);
}

/* section 01's label row is the page's H1 (for search); undo the heading defaults so it looks like the others */
h1.lg-meta {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: 1.2;
    letter-spacing: normal;
}

.lg-no {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(22px, 1.9vw, 32px);
    font-weight: 400;
    line-height: 1;
    color: #8c8c8c;
}

.lg-rule {
    flex: 0 0 auto;
    width: clamp(56px, 4.4vw, 84px);
    height: 1px;
}

.lg-cat {
    font-size: clamp(12px, 0.85vw, 14px);
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--lg-red);
}

.lg-redrule {
    flex: 0 0 auto;
    width: clamp(22px, 1.8vw, 32px);
    height: 2px;
    background: var(--lg-red);
}

.lg .lg-title {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(28px, 3.15vw, 56px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.012em;
    -webkit-text-wrap: balance;
    text-wrap: balance;
}

.lg-underline {
    display: block;
    width: clamp(44px, 3.2vw, 58px);
    height: 4px;
    margin: clamp(14px, 1.5vw, 22px) 0 clamp(16px, 1.7vw, 26px);
    background: var(--lg-red);
    transform-origin: 0 50%;
}

.lg-texts .lg-text + .lg-text {
    margin-top: 12px;
}

.lg-text {
    margin: 0;
    font-size: clamp(14.5px, 1.02vw, 16.5px);
    line-height: 1.85;
}

/* ======================================
   LAYOUT 1 - .lg-ch (image on the left 48%)
====================================== */

.lg-ch .lg-media {
    left: 0;
}

.lg-ch .lg-reveal {
    left: 0;
    width: 89.29%;                 /* 50% of the section */
}

.lg-ch .lg-frame {
    clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
}

.lg-ch .lg-img {
    object-position: 34% 50%;
}

.lg-ch .lg-content {
    width: 50%;
    margin-left: 50%;
    padding: clamp(36px, 3.6vw, 62px) 3.6vw clamp(36px, 3.6vw, 62px) 5.6vw;
}

/* ======================================
   LAYOUT 2 - .lg-lc (text on the left 52%, image on the right)
====================================== */

.lg-lc .lg-media {
    right: 0;
}

.lg-lc .lg-reveal {
    left: 0;
    right: 0;
}

.lg-lc .lg-frame {
    clip-path: polygon(37.5% 0, 100% 0, 100% 100%, 16.1% 100%);
}

.lg-lc .lg-img {
    object-position: 62% 50%;
}

.lg-lc .lg-content {
    width: 52%;
    padding: clamp(36px, 3.6vw, 62px) 4.6vw clamp(36px, 3.6vw, 62px) 60px;
}

/* ======================================
   COLOUR - black or white, whichever the layout (.lg-black / .lg-white)
====================================== */

.lg-black {
    background: var(--lg-black);
    color: #ffffff;
}

.lg-black .lg-no {
    color: rgba(255, 255, 255, 0.65);
}

.lg-black .lg-rule {
    background: rgba(255, 255, 255, 0.16);
}

.lg-black .lg-title {
    color: #ffffff;
}

.lg-black .lg-text {
    color: rgba(255, 255, 255, 0.8);
}

.lg-white {
    background: var(--lg-white);
    color: var(--lg-ink);
}

.lg-white .lg-no {
    color: #6f6f6f;
}

.lg-white .lg-rule {
    background: #c4c4c4;
}

.lg-white .lg-cat {
    color: var(--lg-red-ink);
}

.lg-white .lg-title {
    color: var(--lg-ink);
}

.lg-white .lg-text {
    color: #666666;
}

/* where each picture is framed */
.lg-ch .lg-img-dv {
    object-position: 30% 55%;
}

.lg-lc .lg-img-hw {
    object-position: 70% 70%;
}

.lg-ch .lg-img-fp {
    object-position: 36% 48%;
}

.lg-lc .lg-img-ip {
    object-position: 72% 40%;
}

.lg-ch .lg-img-wt {
    object-position: 42% 40%;
}

/* ---- tablet ---- */
@media (max-width: 1199px) {
    .lg-ch .lg-content {
        padding-left: 6vw;
    }

    .lg-lc .lg-content {
        padding-left: 47px;
    }
}

/* ---- phones: the picture is a band above (Child Custody) or below (Labour Court) the text, with a straight edge and a thin red line ---- */
@media (max-width: 767px) {
    .lg {
        display: block;
    }

    .lg-media {
        position: relative;
        width: 100%;
        height: clamp(220px, 60vw, 340px);
    }

    .lg-ch .lg-reveal,
    .lg-lc .lg-reveal {
        left: 0;
        right: 0;
        width: auto;
    }

    .lg-ch .lg-frame,
    .lg-lc .lg-frame {
        clip-path: none;
    }

    .lg-diag {
        display: none;
    }

    .lg-media::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        z-index: 2;
        height: 4px;
        background: var(--lg-red);
    }

    .lg-ch .lg-media::after {
        bottom: 0;
    }

    .lg-lc .lg-media::after {
        top: 0;
    }

    /* a section that ends with its picture (.lg-lc) and the next one that starts with one (.lg-ch): a red line keeps them apart */
    .lg-lc + .lg-ch .lg-media {
        border-top: 4px solid var(--lg-red);
    }

    .lg-ch .lg-content,
    .lg-lc .lg-content {
        width: auto;
        min-height: 0;
        margin-left: 0;
        padding: 36px 27px 44px;
    }
}

/* ======================================
   LEGAL INVESTIGATION SUPPORT IN MUMBAI (local SEO, after the pinned section stack)
   heading + dark brief-us box stay in a left column; the four client groups sit in a
   plain two-by-two grid on the right, each under a thin line. Scoped under .lgl;
   uses the site's plain .container for the navbar edges.
====================================== */

.lgl {
    --lgl-red: #ee3939;
    --lgl-ink: #171717;
    --lgl-text: #444444;
    --lgl-line: #e5e5e5;
    --lgl-dark: #1d1d1d;
    position: relative;
    background: #ffffff;
    color: var(--lgl-ink);
    font-family: "DM Sans", sans-serif;
}

.lgl-layout {
    display: grid;
    grid-template-columns: minmax(0, 36%) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

/* left column: heading, paragraph and the contact box */
.lgl-side {
    display: grid;
    gap: 24px;
}

.lgl-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lgl-red);
}

.lgl-eyebrow i {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--lgl-red);
}

.lgl-title {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.012em;
    color: var(--lgl-ink);
}

.lgl-title em {
    font-style: normal;
    color: var(--lgl-red);
}

.lgl-lead {
    margin: 0;
    font-size: 15px;
    line-height: 1.75;
    color: var(--lgl-text);
}

/* ---- client groups: plain 2 x 2 grid, thin line above each ---- */
.lgl-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 44px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lgl-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 0;
    border-top: 2px solid var(--lgl-ink);
}

.lgl-no {
    margin-bottom: 6px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1;
    color: var(--lgl-red);
}

.lgl-card-h {
    margin: 0 0 8px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 21px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: 0;
    color: var(--lgl-ink);
}

.lgl-card-p {
    flex: 1;
    margin: 0 0 12px;
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--lgl-text);
}

.lgl-go {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 2px;
    border-bottom: 1px solid currentColor;
    font-size: 14px;
    font-weight: 600;
    color: var(--lgl-red);
}

.lgl-go i {
    transition: transform 0.25s ease;
}

.lgl-go:hover,
.lgl-go:focus {
    color: #c62828;
}

.lgl-go:hover i,
.lgl-go:focus i {
    transform: translateX(4px);
}

/* ---- brief-us box ---- */
.lgl-strip {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 22px;
    background: var(--lgl-dark);
    color: rgba(255, 255, 255, 0.65);
}

.lgl-strip-text strong {
    display: block;
    margin-bottom: 4px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.25;
    color: #ffffff;
}

.lgl-strip-text span {
    display: block;
    font-size: 13.5px;
    line-height: 1.55;
}

.lgl-strip-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.lgl-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border: 1px solid var(--lgl-red);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.lgl-btn-light {
    background: var(--lgl-red);
    color: #ffffff;
}

.lgl-btn-light:hover,
.lgl-btn-light:focus {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--lgl-red);
}

.lgl-btn-ghost {
    border-color: rgba(255, 255, 255, 0.55);
    background: transparent;
    color: #ffffff;
}

.lgl-btn-ghost:hover,
.lgl-btn-ghost:focus {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--lgl-ink);
}

/* the left column stays in view while the groups scroll past, only on screens tall enough to hold it
   (the logo strip at the top of the page scrolls away but the menu bar stays, so the column starts below the bar:
   --hn-bar is its height, set by js/metro-home-nav.js, plus a small gap) */
@media (min-width: 992px) and (min-height: 820px) {
    .lgl-side {
        position: sticky;
        top: calc(var(--hn-bar, 57px) + 24px);
    }
}

@media (max-width: 1199px) {
    .lgl-layout {
        gap: 40px;
    }
    .lgl-cards {
        gap: 0 30px;
    }
}

/* tablet and phone: one column - heading, groups, then the contact box */
@media (max-width: 991px) {
    .lgl-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }
    .lgl-side {
        display: contents;
    }
    .lgl-head {
        order: 1;
    }
    .lgl-cards {
        order: 2;
    }
    .lgl-strip {
        order: 3;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 16px 28px;
        padding: 22px 28px;
    }
    .lgl-strip-text {
        max-width: 560px;
    }
}

@media (max-width: 767px) {
    .lgl-cards {
        grid-template-columns: minmax(0, 1fr);
    }
    .lgl-strip {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lgl-go i,
    .lgl-btn {
        transition: none;
    }
}
