/* =========================================================
   LEGAL OFFICE
   CITY COLLEGE OF ORMOC
   GAD-STYLE OFFICE DESIGN
   ========================================================= */

:root {

    --legal-blue: #002D4F;
    --legal-cyan: #7EC8E3;
    --legal-light-blue: #A9D6F5;
    --legal-pale-blue: #D6EAF7;

    --legal-background: #F7F9FB;
    --legal-white: #FFFFFF;

    --legal-text: #31465A;

    --legal-border:
        rgba(0, 45, 79, 0.12);

}


/* =========================================================
   PAGE
   ========================================================= */

.legal-page {

    width: 100%;

    overflow: hidden;

    background:
        var(--legal-background);

    color:
        var(--legal-text);

    font-family:
        "Graphik",
        Arial,
        sans-serif;

}


.legal-page *,
.legal-page *::before,
.legal-page *::after {

    box-sizing: border-box;

}


/* =========================================================
   CONTAINER
   ========================================================= */

.legal-container,
.legal-hero-inner {

    width:
        calc(100% - 2in);

    margin-left:
        auto;

    margin-right:
        auto;

}


/* =========================================================
   HERO
   ========================================================= */

.legal-hero {

    position: relative;

    min-height: 430px;

    display: flex;

    align-items: center;

    background:
        var(--legal-blue);

    color:
        var(--legal-white);

    overflow: hidden;

}


.legal-hero-inner {

    position: relative;

    min-height: 430px;

    display: flex;

    align-items: center;

}


.legal-hero-content {

    position: relative;

    z-index: 2;

    max-width: 850px;

    padding:
        55px 0 70px;

}


/* =========================================================
   BACK BUTTON
   ========================================================= */

.legal-back-button {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 28px;

    padding: 9px 15px;

    border:
        1px solid
        rgba(255,255,255,.28);

    border-radius: 6px;

    background:
        rgba(255,255,255,.06);

    color: #FFFFFF;

    font-size: 11px;

    font-weight: 600;

    line-height: 1;

    text-decoration: none;

    transition:
        background-color .25s ease,
        border-color .25s ease,
        color .25s ease,
        transform .25s ease;

}


.legal-back-arrow {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    font-size: 17px;

    line-height: 1;

    transition:
        transform .25s ease;

}


.legal-back-button:hover {

    background:
        var(--legal-light-blue);

    border-color:
        var(--legal-light-blue);

    color:
        var(--legal-blue);

    transform:
        translateX(-2px);

}


.legal-back-button:hover
.legal-back-arrow {

    transform:
        translateX(-3px);

}


/* =========================================================
   HERO TYPOGRAPHY
   ========================================================= */

.legal-eyebrow {

    display: block;

    margin-bottom: 20px;

    color:
        var(--legal-cyan);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 2.5px;

    text-transform: uppercase;

}


.legal-hero h1 {

    max-width: 900px;

    margin: 0;

    color: #FFFFFF;

    font-size:
        clamp(54px, 6vw, 88px);

    line-height: .92;

    letter-spacing: -4px;

    font-weight: 750;

}


.legal-hero h1 span {

    display: block;

    color:
        var(--legal-light-blue);

}


.legal-hero p {

    max-width: 680px;

    margin: 30px 0 0;

    color:
        rgba(255,255,255,.86);

    font-size: 14px;

    line-height: 1.7;

}


/* =========================================================
   HERO DECORATIONS
   ========================================================= */

.legal-hero-decoration {

    position: absolute;

    inset: 0;

    pointer-events: none;

}


.legal-circle {

    position: absolute;

    display: block;

    border:
        1px solid
        rgba(126,200,227,.22);

    border-radius: 50%;

}


.legal-circle-one {

    width: 360px;

    height: 360px;

    top: -155px;

    right: 60px;

}


.legal-circle-two {

    width: 150px;

    height: 150px;

    top: -50px;

    right: 165px;

    background:
        rgba(126,200,227,.035);

}


.legal-circle-three {

    width: 190px;

    height: 190px;

    bottom: -135px;

    right: 270px;

}


.legal-hero-number {

    position: absolute;

    right: 6%;

    bottom: 5px;

    z-index: 1;

    color:
        rgba(126,200,227,.08);

    font-size:
        clamp(110px, 12vw, 190px);

    line-height: .8;

    font-weight: 800;

    letter-spacing: -8px;

}


/* =========================================================
   SECTIONS
   ========================================================= */

.legal-overview,
.legal-office-head,
.legal-members,
.legal-services {

    padding: 95px 0;

}


.legal-overview,
.legal-members {

    background:
        var(--legal-white);

}


.legal-office-head,
.legal-services {

    background:
        var(--legal-background);

}


/* =========================================================
   SECTION HEADING
   ========================================================= */

.legal-section-heading {

    display: grid;

    grid-template-columns:
        70px
        minmax(0, 760px);

    margin-bottom: 45px;

}


.legal-section-number {

    padding-top: 3px;

    color:
        var(--legal-cyan);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 2px;

}


.legal-kicker {

    display: block;

    margin-bottom: 13px;

    color:
        var(--legal-cyan);

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 2px;

    text-transform: uppercase;

}


.legal-section-heading h2 {

    margin: 0;

    color:
        var(--legal-blue);

    font-size:
        clamp(38px, 4vw, 57px);

    line-height: 1;

    letter-spacing: -2px;

    font-weight: 750;

}


.legal-section-heading p {

    max-width: 700px;

    margin: 18px 0 0;

    font-size: 14px;

    line-height: 1.75;

}


/* =========================================================
   OVERVIEW
   ========================================================= */

.legal-overview-content {

    display: grid;

    grid-template-columns:
        70px
        minmax(0, 760px);

    margin-left: 70px;

}


.legal-overview-line {

    width: 1px;

    min-height: 200px;

    background:
        var(--legal-light-blue);

}


.legal-overview-text {

    padding-left: 35px;

}


.legal-overview-text p {

    max-width: 760px;

    margin:
        0 0 20px;

    color:
        var(--legal-text);

    font-size: 14px;

    line-height: 1.8;

}


.legal-overview-text p:last-child {

    margin-bottom: 0;

}


/* =========================================================
   OFFICE HEAD
   ========================================================= */

.legal-head-card {

    min-height: 320px;

    display: grid;

    grid-template-columns:
        35%
        minmax(0, 1fr);

    margin-left: 70px;

    background:
        var(--legal-white);

    border:
        1px solid
        var(--legal-border);

    border-radius: 8px;

    overflow: hidden;

    transition:
        transform .28s ease,
        box-shadow .28s ease,
        border-color .28s ease;

}


.legal-head-card:hover {

    transform:
        translateY(-4px);

    border-color:
        rgba(126,200,227,.5);

    box-shadow:
        0 18px 40px
        rgba(0,45,79,.10);

}


/* =========================================================
   HEAD IMAGE
   ========================================================= */

.legal-head-image {

    min-height: 320px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        var(--legal-light-blue);

    overflow: hidden;

}


.legal-head-image img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: contain;

    object-position: center center;

}


.legal-image-placeholder {

    width: 100%;

    height: 100%;

    min-height: 320px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        linear-gradient(
            135deg,
            var(--legal-light-blue),
            var(--legal-pale-blue)
        );

}


.legal-image-placeholder span {

    color:
        rgba(0,45,79,.55);

    font-size: 8px;

    font-weight: 700;

    letter-spacing: 2px;

}


/* =========================================================
   HEAD CONTENT
   ========================================================= */

.legal-head-content {

    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 42px;

}


.legal-head-role {

    display: block;

    max-width: 600px;

    margin-bottom: 13px;

    color:
        var(--legal-cyan);

    font-size: 8px;

    line-height: 1.5;

    font-weight: 700;

    letter-spacing: 1.5px;

    text-transform: uppercase;

}


.legal-head-content h3 {

    margin: 0;

    color:
        var(--legal-blue);

    font-size:
        clamp(25px, 3vw, 36px);

    line-height: 1.1;

    letter-spacing: -.8px;

    font-weight: 700;

}


.legal-head-line {

    width: 32px;

    height: 2px;

    margin: 18px 0;

    background:
        var(--legal-cyan);

}


.legal-head-content > p {

    margin: 0;

    color:
        var(--legal-text);

    font-size: 12px;

    line-height: 1.6;

}


.legal-head-description {

    margin-top: 24px;

    padding-top: 20px;

    border-top:
        1px solid
        var(--legal-border);

}


.legal-head-description > span {

    display: block;

    margin-bottom: 7px;

    color:
        var(--legal-blue);

    font-size: 8px;

    font-weight: 700;

    letter-spacing: 1.5px;

}


.legal-head-description p {

    max-width: 650px;

    margin: 0;

    color:
        var(--legal-text);

    font-size: 12px;

    line-height: 1.65;

}


/* =========================================================
   MEMBERS
   ========================================================= */

.legal-members-grid {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;

    margin-left: 70px;

}


.legal-member-card {

    background:
        var(--legal-background);

    border:
        1px solid
        var(--legal-border);

    border-radius: 8px;

    overflow: hidden;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;

}


.legal-member-card:hover {

    transform:
        translateY(-4px);

    border-color:
        rgba(126,200,227,.55);

    box-shadow:
        0 15px 35px
        rgba(0,45,79,.10);

}


/* =========================================================
   MEMBER IMAGE
   ========================================================= */

.legal-member-image {

    width: 100%;

    height: 250px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        var(--legal-light-blue);

    overflow: hidden;

}


.legal-member-image img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: contain;

    object-position: center center;

}


.legal-member-image
.legal-image-placeholder {

    min-height: 250px;

}


/* =========================================================
   MEMBER CONTENT
   ========================================================= */

.legal-member-content {

    min-height: 115px;

    padding: 20px;

    background:
        var(--legal-white);

}


.legal-member-role {

    display: block;

    margin-bottom: 8px;

    color:
        var(--legal-cyan);

    font-size: 7px;

    font-weight: 700;

    line-height: 1.5;

    letter-spacing: 1.3px;

    text-transform: uppercase;

}


.legal-member-content h3 {

    margin: 0;

    color:
        var(--legal-blue);

    font-size: 14px;

    line-height: 1.25;

    letter-spacing: -.2px;

    font-weight: 700;

}


/* =========================================================
   LEGAL SERVICES
   ========================================================= */

.legal-services-grid {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;

    margin-left: 70px;

}


.legal-service-card {

    position: relative;

    min-height: 190px;

    display: grid;

    grid-template-columns:
        50px
        minmax(0, 1fr);

    gap: 18px;

    padding: 30px;

    background:
        var(--legal-white);

    border:
        1px solid
        var(--legal-border);

    border-radius: 8px;

    transition:
        transform .25s ease,
        background-color .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;

}


.legal-service-card:hover {

    transform:
        translateY(-4px);

    background:
        var(--legal-pale-blue);

    border-color:
        rgba(126,200,227,.55);

    box-shadow:
        0 15px 35px
        rgba(0,45,79,.08);

}


.legal-service-number {

    color:
        var(--legal-cyan);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1px;

}


.legal-service-label {

    display: block;

    margin-bottom: 9px;

    color:
        var(--legal-cyan);

    font-size: 7px;

    font-weight: 700;

    letter-spacing: 1.5px;

}


.legal-service-card h3 {

    margin: 0 0 10px;

    color:
        var(--legal-blue);

    font-size: 21px;

    line-height: 1.2;

    font-weight: 700;

}


.legal-service-card p {

    max-width: 550px;

    margin: 0;

    color:
        var(--legal-text);

    font-size: 12px;

    line-height: 1.7;

}


/* =========================================================
   CLOSING
   ========================================================= */

.legal-closing {

    position: relative;

    padding: 110px 0;

    background:
        var(--legal-blue);

    overflow: hidden;

}


.legal-closing-kicker {

    display: block;

    margin-bottom: 20px;

    color:
        var(--legal-cyan);

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 2px;

}


.legal-closing h2 {

    position: relative;

    z-index: 2;

    max-width: 900px;

    margin: 0;

    color: #FFFFFF;

    font-size:
        clamp(40px, 5vw, 70px);

    line-height: .98;

    letter-spacing: -3px;

    font-weight: 750;

}


.legal-closing h2 span {

    display: block;

    color:
        var(--legal-light-blue);

}


.legal-closing-mark {

    position: absolute;

    right: 6%;

    bottom: 15px;

    color:
        rgba(126,200,227,.07);

    font-size:
        clamp(90px, 12vw, 180px);

    line-height: .8;

    font-weight: 800;

    letter-spacing: -8px;

}


/* =========================================================
   1200px
   ========================================================= */

@media (max-width: 1200px) {

    .legal-container,
    .legal-hero-inner {

        width:
            calc(100% - 80px);

    }


    .legal-members-grid {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

    }

}


/* =========================================================
   900px
   ========================================================= */

@media (max-width: 900px) {

    .legal-container,
    .legal-hero-inner {

        width:
            calc(100% - 40px);

    }


    .legal-hero,
    .legal-hero-inner {

        min-height: 400px;

    }


    .legal-hero-content {

        padding:
            50px 0 60px;

    }


    .legal-hero h1 {

        font-size:
            clamp(48px, 8vw, 72px);

    }


    .legal-section-heading {

        grid-template-columns:
            1fr;

        gap: 14px;

    }


    .legal-overview-content {

        margin-left: 0;

        grid-template-columns:
            1px
            minmax(0, 1fr);

    }


    .legal-head-card {

        margin-left: 0;

    }


    .legal-members-grid {

        margin-left: 0;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }


    .legal-services-grid {

        margin-left: 0;

    }

}


/* =========================================================
   650px
   ========================================================= */

@media (max-width: 650px) {

    .legal-container,
    .legal-hero-inner {

        width:
            calc(100% - 30px);

    }


    .legal-hero,
    .legal-hero-inner {

        min-height: 440px;

    }


    .legal-hero-content {

        padding:
            40px 0 55px;

    }


    .legal-back-button {

        margin-bottom: 24px;

        padding:
            8px 12px;

        font-size: 10px;

    }


    .legal-back-arrow {

        font-size: 15px;

    }


    .legal-eyebrow {

        font-size: 8px;

        letter-spacing: 1.7px;

    }


    .legal-hero h1 {

        font-size: 50px;

        letter-spacing: -2.5px;

    }


    .legal-hero p {

        font-size: 12px;

    }


    .legal-hero-number {

        font-size: 100px;

    }


    .legal-overview,
    .legal-office-head,
    .legal-members,
    .legal-services {

        padding:
            70px 0;

    }


    .legal-section-heading {

        margin-bottom: 35px;

    }


    .legal-section-heading h2 {

        font-size: 38px;

        letter-spacing: -1.5px;

    }


    .legal-section-heading p {

        font-size: 13px;

    }


    /* =====================================================
       OVERVIEW
       ===================================================== */

    .legal-overview-text {

        padding-left: 22px;

    }


    .legal-overview-text p {

        font-size: 13px;

    }


    /* =====================================================
       OFFICE HEAD
       ===================================================== */

    .legal-head-card {

        grid-template-columns: 1fr;

        min-height: 0;

    }


    .legal-head-image,
    .legal-image-placeholder {

        min-height: 300px;

        height: 300px;

    }


    .legal-head-content {

        padding: 28px;

    }


    .legal-head-content h3 {

        font-size: 25px;

    }


    /* =====================================================
       MEMBERS
       ===================================================== */

    .legal-members-grid {

        grid-template-columns: 1fr;

    }


    .legal-member-image {

        height: 300px;

    }


    .legal-member-content {

        min-height: 105px;

        padding: 20px;

    }


    .legal-member-content h3 {

        font-size: 15px;

    }


    /* =====================================================
       SERVICES
       ===================================================== */

    .legal-services-grid {

        grid-template-columns: 1fr;

    }


    .legal-service-card {

        min-height: 0;

        padding: 25px;

    }


    /* =====================================================
       CLOSING
       ===================================================== */

    .legal-closing {

        padding:
            80px 0;

    }


    .legal-closing h2 {

        font-size: 42px;

        letter-spacing: -1.5px;

    }

}