/* ======================================
   LEGAL SERVICES - full-width split sections: dark with the image on the left (.lg-ch: Child Custody & Maintenance, Domestic Violence,
   Finger Print Analysis, Website Tracking) and off-white with the image on the right (.lg-lc: Labour Court Case,
   Handwriting / Signature Analysis, Tracing & Suspicious IP)
   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: #d9231f;
    --lg-black: #111111;
    --lg-cream: #f5f3f0;
    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;
}

/* ======================================
   1 - CHILD CUSTODY & MAINTENANCE (black, image on the left 48%)
====================================== */

.lg-ch {
    background: var(--lg-black);
    color: #ffffff;
}

.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;
}

.lg-ch .lg-rule {
    background: rgba(255, 255, 255, 0.42);
}

.lg-ch .lg-title {
    color: #ffffff;
}

.lg-ch .lg-text {
    color: #d0d0d0;
}

/* ======================================
   2 - LABOUR COURT CASE (off-white, text on the left 52%, image on the right)
====================================== */

.lg-lc {
    background: var(--lg-cream);
    color: var(--lg-black);
}

.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;
}

.lg-lc .lg-rule {
    background: #bdbab5;
}

.lg-lc .lg-title {
    color: var(--lg-black);
}

.lg-lc .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;
    }

    /* an off-white section ends with its picture and the next dark section starts with one: 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 + 4 client cards in a row + a dark brief-us strip. Scoped under .lgl;
   uses the site's plain .container for the navbar edges.
====================================== */

.lgl {
    --lgl-red: #d9231f;
    --lgl-black: #111111;
    --lgl-muted: #5f5f5f;
    --lgl-cream: #f5f3f0;
    --lgl-line: #e8e4de;
    position: relative;
    padding: clamp(64px, 7vw, 100px) 0;
    background: #ffffff;
    color: var(--lgl-black);
    font-family: "DM Sans", sans-serif;
}

.lgl-head {
    max-width: 860px;
    margin: 0 auto 44px;
    text-align: center;
}

.lgl-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--lgl-red);
}

.lgl-eyebrow i {
    display: block;
    width: 38px;
    height: 2px;
    background: var(--lgl-red);
}

.lgl-title {
    margin: 0 0 18px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(30px, 3.4vw, 52px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.012em;
    color: var(--lgl-black);
}

.lgl-title em {
    font-style: normal;
    color: var(--lgl-red);
}

.lgl-lead {
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
    color: var(--lgl-muted);
}

/* ---- client cards ---- */
.lgl-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.lgl-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 26px 28px;
    border: 1px solid var(--lgl-line);
    border-top: 3px solid var(--lgl-red);
    background: var(--lgl-cream);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.lgl-card:hover {
    background: #ffffff;
    box-shadow: 0 18px 36px -24px rgba(17, 17, 17, 0.4);
    transform: translateY(-3px);
}

.lgl-no {
    margin-bottom: 14px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 26px;
    line-height: 1;
    color: #8c8c8c;
}

.lgl-card-h {
    margin: 0 0 12px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 23px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0;
    color: var(--lgl-black);
}

.lgl-card-p {
    flex: 1;
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.75;
    color: var(--lgl-muted);
}

.lgl-go {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding-bottom: 2px;
    border-bottom: 1px solid currentColor;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--lgl-red);
}

.lgl-go i {
    transition: transform 0.25s ease;
}

.lgl-go:hover,
.lgl-go:focus {
    color: #a81a17;
}

.lgl-go:hover i,
.lgl-go:focus i {
    transform: translateX(4px);
}

/* ---- brief-us strip ---- */
.lgl-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px 30px;
    padding: 28px 34px;
    background: var(--lgl-black);
    color: rgba(255, 255, 255, 0.75);
}

.lgl-strip-text {
    max-width: 680px;
}

.lgl-strip-text strong {
    display: block;
    margin-bottom: 4px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 25px;
    font-weight: 500;
    line-height: 1.25;
    color: #ffffff;
}

.lgl-strip-text span {
    font-size: 14.5px;
    line-height: 1.6;
}

.lgl-strip-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.lgl-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border: 1px solid var(--lgl-red);
    border-radius: 999px;
    font-size: 15px;
    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.5);
    background: transparent;
    color: #ffffff;
}

.lgl-btn-ghost:hover,
.lgl-btn-ghost:focus {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--lgl-black);
}

@media (max-width: 1199px) {
    .lgl-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .lgl-head {
        margin-bottom: 30px;
        text-align: left;
    }
    .lgl-cards {
        grid-template-columns: minmax(0, 1fr);
    }
    .lgl-card,
    .lgl-strip {
        padding: 24px 22px;
    }
    .lgl-strip-text strong {
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lgl-card,
    .lgl-go i,
    .lgl-btn {
        transition: none;
    }
    .lgl-card:hover {
        transform: none;
    }
}
