/* =========================================================
   CITY COLLEGE OF ORMOC
   MAYOR'S MESSAGE PAGE
   PAGE-SPECIFIC STYLES ONLY
========================================================= */


/* =========================================================
   FONT FACES
========================================================= */

@font-face {
    font-family: "Graphik";
    src: url("../fonts/Graphik-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Graphik";
    src: url("../fonts/Graphik-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "Graphik";
    src: url("../fonts/Graphik-Semibold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: "Graphik";
    src: url("../fonts/Graphik-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "Graphik";
    src: url("../fonts/Graphik-Black.woff2") format("woff2");
    font-weight: 900;
    font-style: normal;
}


/* =========================================================
   PAGE VARIABLES
========================================================= */

:root {
    --mayor-off-white: #F7F9FB;
    --mayor-white: #FFFFFF;

    --mayor-dark: #102A43;
    --mayor-text: #31465A;

    --mayor-295: #002D4F;
    --mayor-2122: #A9D6F5;
    --mayor-2120: #7EC8E3;
    --mayor-657: #D6EAF7;
}


/* =========================================================
   PAGE RESET
========================================================= */

html,
body {
    margin: 0;
    padding: 0;
}

body {
    overflow-x: hidden;
}

.mayor-page {
    font-family:
        "Graphik",
        Arial,
        sans-serif;

    background: var(--mayor-off-white);
    color: var(--mayor-dark);

    overflow-x: hidden;
}

.mayor-page *,
.mayor-page *::before,
.mayor-page *::after {
    box-sizing: border-box;
}

.mayor-page a {
    color: inherit;
    text-decoration: none;
}

.mayor-page button {
    font-family: inherit;
}


/* =========================================================
   MAYOR HERO
========================================================= */

.mayor-hero {
    position: relative;

    min-height: 560px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(
            120deg,
            var(--mayor-295),
            #075579
        );
}

.mayor-hero::before {
    content: "";

    position: absolute;

    width: 600px;
    height: 600px;

    right: -250px;
    top: -300px;

    border-radius: 50%;

    border: 1px solid
        rgba(214, 234, 247, 0.2);

    box-shadow:
        0 0 0 80px
        rgba(214, 234, 247, 0.03),

        0 0 0 160px
        rgba(214, 234, 247, 0.025);
}

.mayor-hero::after {
    content: "";

    position: absolute;

    left: -200px;
    bottom: -350px;

    width: 700px;
    height: 700px;

    border-radius: 50%;

    border: 1px solid
        rgba(169, 214, 245, 0.16);
}

.mayor-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 45, 79, 0.98),
            rgba(0, 45, 79, 0.72),
            rgba(0, 45, 79, 0.88)
        );
}

.mayor-hero-container {
    position: relative;
    z-index: 2;

    width: min(1400px, 90%);

    margin: 0 auto;

    padding: 100px 0;
}

.mayor-hero-content {
    max-width: 820px;
}

.page-label {
    display: inline-block;

    margin-bottom: 25px;

    color: var(--mayor-2122);

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 3px;
    text-transform: uppercase;
}

.mayor-hero h1 {
    margin: 0;

    color: var(--mayor-white);

    font-size:
        clamp(55px, 7vw, 100px);

    line-height: 0.95;

    font-weight: 700;

    letter-spacing: -4px;
}

.mayor-hero h1 span {
    display: block;

    color: var(--mayor-2120);
}

.mayor-hero-content p {
    max-width: 620px;

    margin: 35px 0 0;

    color:
        rgba(255, 255, 255, 0.78);

    font-size: 16px;
    line-height: 1.8;
}

.hero-scroll {
    display: flex;
    align-items: center;

    gap: 15px;

    margin-top: 70px;

    color:
        rgba(255, 255, 255, 0.55);

    font-size: 9px;

    font-weight: 600;

    letter-spacing: 2px;
}

.scroll-line {
    width: 65px;
    height: 1px;

    background:
        var(--mayor-2120);
}


/* =========================================================
   SECTION 2
   MAYOR'S MESSAGE
========================================================= */

.mayor-message-section {
    position: relative;

    padding: 120px 0 140px;

    background:
        var(--mayor-off-white);
}

.mayor-message-container {
    width: min(1250px, 88%);

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        0.95fr 1.05fr;

    gap: 90px;

    align-items: center;
}


/* =========================================================
   MAYOR IMAGE
========================================================= */

.mayor-image-wrapper {
    position: relative;

    display: flex;

    justify-content: center;
    align-items: flex-end;

    min-height: 650px;

    padding: 0 25px;

    overflow: visible;
}


/* Decorative circle */

.image-accent {
    position: absolute;

    width: 410px;
    height: 410px;

    left: 50%;
    bottom: 30px;

    transform:
        translateX(-50%);

    border-radius: 50%;

    background:
        var(--mayor-657);

    z-index: 0;
}


/* Mayor image */

.mayor-image {
    position: relative;

    z-index: 2;

    display: block;

    width: 100%;
    max-width: 510px;

    height: 680px;

    object-fit: contain;
    object-position: bottom center;

    filter:
        drop-shadow(
            0 25px 35px
            rgba(0, 45, 79, 0.16)
        );

    transition:
        transform 0.4s ease;
}

.mayor-image-wrapper:hover .mayor-image {
    transform:
        translateY(-5px);
}


/* =========================================================
   MESSAGE CONTENT
========================================================= */

.mayor-message-content {
    position: relative;

    padding: 20px 0;
}

.section-number {
    position: absolute;

    top: -65px;
    right: 0;

    color:
        rgba(0, 45, 79, 0.06);

    font-size: 110px;

    line-height: 1;

    font-weight: 700;

    pointer-events: none;
}

.section-label {
    display: inline-block;

    color:
        var(--mayor-295);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 3px;
}

.section-line {
    width: 45px;
    height: 3px;

    margin-top: 13px;

    background:
        var(--mayor-2120);
}

.mayor-message-content h2 {
    margin: 30px 0 0;

    color:
        var(--mayor-dark);

    font-size:
        clamp(42px, 5vw, 68px);

    line-height: 1;

    font-weight: 700;

    letter-spacing: -2.5px;
}

.mayor-message-content h2 span {
    color:
        var(--mayor-295);
}

.mayor-message-content p {
    max-width: 680px;

    margin: 25px 0 0;

    color:
        var(--mayor-text);

    font-size: 15px;

    line-height: 1.9;
}

.mayor-message-content .message-intro {
    color:
        var(--mayor-295);

    font-size: 18px;

    line-height: 1.8;

    font-weight: 500;
}


/* =========================================================
   MESSAGE CLOSING
========================================================= */

.message-closing {
    display: flex;

    align-items: center;

    gap: 18px;

    margin-top: 45px;
}

.closing-line {
    flex-shrink: 0;

    width: 55px;
    height: 2px;

    background:
        var(--mayor-2120);
}

.message-closing p {
    margin: 0;

    color:
        var(--mayor-295);

    font-size: 11px;

    line-height: 1.5;

    font-weight: 700;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}


/* =========================================================
   SECTION 3
   CLOSING
========================================================= */

.mayor-closing {
    position: relative;

    overflow: hidden;

    padding: 130px 0 140px;

    background:
        var(--mayor-295);

    color:
        var(--mayor-white);
}


/* Decorative large circle */

.mayor-closing::before {
    content: "";

    position: absolute;

    width: 650px;
    height: 650px;

    right: -300px;
    top: -330px;

    border-radius: 50%;

    border: 1px solid
        rgba(214, 234, 247, 0.12);

    box-shadow:
        0 0 0 80px
        rgba(214, 234, 247, 0.025),

        0 0 0 160px
        rgba(214, 234, 247, 0.018);
}


/* Second decorative circle */

.mayor-closing::after {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    left: -280px;
    bottom: -350px;

    border-radius: 50%;

    border: 1px solid
        rgba(126, 200, 227, 0.12);
}


/* Closing content */

.closing-container {
    position: relative;

    z-index: 2;

    width: min(1100px, 88%);

    margin: 0 auto;

    text-align: center;
}


/* Label */

.closing-label {
    display: inline-block;

    color:
        var(--mayor-2120);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 4px;

    text-transform: uppercase;
}


/* Small line */

.closing-container::before {
    content: "";

    display: block;

    width: 45px;
    height: 2px;

    margin: 0 auto 25px;

    background:
        var(--mayor-2120);
}


/* Closing heading */

.closing-container h2 {
    max-width: 850px;

    margin: 25px auto 0;

    color:
        var(--mayor-white);

    font-size:
        clamp(48px, 7vw, 86px);

    line-height: 0.98;

    font-weight: 700;

    letter-spacing: -3px;
}

.closing-container h2 span {
    display: block;

    color:
        var(--mayor-2120);
}


/* Back home button */

.back-home {
    display: inline-flex;

    align-items: center;

    gap: 18px;

    margin-top: 45px;

    padding: 14px 22px;

    border: 1px solid
        rgba(214, 234, 247, 0.35);

    border-radius: 4px;

    color:
        var(--mayor-white);

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 1.5px;

    text-transform: uppercase;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.back-home span {
    font-size: 18px;

    line-height: 1;
}

.back-home:hover {
    background:
        var(--mayor-2122);

    border-color:
        var(--mayor-2122);

    color:
        var(--mayor-295);

    transform:
        translateY(-3px);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .mayor-message-container {
        grid-template-columns:
            0.9fr 1.1fr;

        gap: 55px;
    }

    .mayor-image-wrapper {
        min-height: 600px;
    }

    .mayor-image {
        height: 620px;

        max-width: 460px;
    }

    .image-accent {
        width: 360px;
        height: 360px;
    }

    .closing-container h2 {
        font-size:
            clamp(45px, 7vw, 72px);
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 900px) {

    .mayor-hero {
        min-height: 520px;
    }

    .mayor-hero-container {
        padding: 80px 0;
    }

    .mayor-hero h1 {
        font-size:
            clamp(48px, 13vw, 75px);

        letter-spacing: -3px;
    }


    /* -----------------------------------------
       MESSAGE SECTION
    ----------------------------------------- */

    .mayor-message-section {
        padding: 90px 0 100px;
    }

    .mayor-message-container {
        grid-template-columns: 1fr;

        gap: 65px;
    }


    /* -----------------------------------------
       MAYOR IMAGE
    ----------------------------------------- */

    .mayor-image-wrapper {
        min-height: 560px;

        width: 100%;
        max-width: 600px;

        margin: 0 auto;

        padding: 0;
    }

    .mayor-image {
        width: 100%;

        max-width: 440px;

        height: 570px;
    }

    .image-accent {
        width: 350px;
        height: 350px;

        bottom: 20px;
    }


    /* -----------------------------------------
       MESSAGE
    ----------------------------------------- */

    .section-number {
        top: -40px;

        font-size: 75px;
    }


    /* -----------------------------------------
       CLOSING
    ----------------------------------------- */

    .mayor-closing {
        padding: 100px 0 110px;
    }

    .closing-container h2 {
        letter-spacing: -2px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 500px) {

    .mayor-hero-container {
        width: 88%;
    }

    .mayor-hero-content p {
        font-size: 14px;
    }


    /* MESSAGE */

    .mayor-message-container {
        width: 88%;

        gap: 50px;
    }


    /* IMAGE */

    .mayor-image-wrapper {
        min-height: 470px;
    }

    .mayor-image {
        height: 480px;

        max-width: 370px;
    }

    .image-accent {
        width: 280px;
        height: 280px;
    }


    /* MESSAGE TEXT */

    .mayor-message-content h2 {
        font-size: 45px;
    }

    .mayor-message-content .message-intro {
        font-size: 16px;
    }

    .mayor-message-content p {
        font-size: 14px;
    }


    /* CLOSING */

    .mayor-closing {
        padding: 85px 0 95px;
    }

    .closing-label {
        font-size: 9px;

        letter-spacing: 3px;
    }

    .closing-container h2 {
        font-size: 45px;

        letter-spacing: -1.5px;
    }

    .back-home {
        margin-top: 35px;

        padding: 13px 18px;

        font-size: 10px;
    }

}