/* =========================================================
   MORIPE HOLDINGS
   ENQUIRIES PAGE
========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap");


/* =========================================================
   ROOT
========================================================= */

:root {
    --navy: #08273D;
    --red: #ff0808;
    --white: #ffffff;
    --black: #111111;
    --light: #f5f5f5;
    --grey: #666666;
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    width: 100%;
    margin: 0;

    font-family: "Inter", sans-serif;

    background: var(--white);
    color: var(--black);

    line-height: 1.7;

    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Manrope", sans-serif;
    font-weight: 700;
    line-height: 1.1;
}

p {
    color: var(--grey);
}

.main-container,
.body-container {
    width: 100%;
}


/* =========================================================
   NAVIGATION
========================================================= */

.nav-bar {
    position: sticky;
    top: 0;

    z-index: 1000;

    width: 100%;
    min-height: 88px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 6%;

    background: var(--navy);

    border-bottom:
        1px solid rgba(255, 255, 255, 0.08);

    box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.10);
}

.nav-bar > a {
    display: flex;
    align-items: center;
}

.nav-bar .logo {
    width: auto;
    height: 67px;

    object-fit: contain;
}


/* =========================================================
   NAVIGATION LINKS
========================================================= */

.nav-bar ul {
    display: flex;
    align-items: center;

    gap: 30px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.nav-bar ul li {
    position: relative;
}

.nav-bar ul li a {
    position: relative;

    display: inline-flex;
    align-items: center;

    gap: 7px;

    padding: 13px 0;

    color: var(--white);

    font-size: 14px;
    font-weight: 600;

    transition: 0.3s ease;
}

.nav-bar ul li a i {
    font-size: 13px;
}

.nav-bar ul li a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 5px;

    width: 0;
    height: 2px;

    background: var(--red);

    transition: width 0.3s ease;
}

.nav-bar ul li a:hover,
.nav-bar ul li a.active {
    color: var(--red);
}

.nav-bar ul li a:hover::after,
.nav-bar ul li a.active::after {
    width: 100%;
}


/* =========================================================
   HAMBURGER
========================================================= */

.hamburger {
    display: none;

    padding: 4px;

    background: transparent;

    border: none;

    color: var(--white);

    font-size: 27px;

    cursor: pointer;
}


/* =========================================================
   ENQUIRIES
========================================================= */

.form-section {
    width: 100%;

    display: grid;

    grid-template-columns:
        0.85fr 1.15fr;

    gap: 70px;

    align-items: start;

    padding:
        105px
        max(
            6%,
            calc((100% - 1200px) / 2)
        );

    background: var(--white);
}

.form-section > .col-1,
.form-section > .col-2 {
    width: 100%;

    padding: 0;

    background: transparent;
}

.form-section > .col-1 {
    padding-top: 18px;
}

.form-section h2 {
    margin-bottom: 24px;

    color: var(--navy);

    font-size: clamp(40px, 4.5vw, 54px);

    letter-spacing: -1px;
}

.form-section h2::after {
    content: "";

    display: block;

    width: 45px;
    height: 4px;

    margin-top: 18px;

    background: var(--red);
}

.form-section p {
    max-width: 460px;

    color: var(--grey);

    font-size: 16px;

    line-height: 1.8;
}


/* =========================================================
   FORM
========================================================= */

.form-container {
    position: relative;

    width: 100%;
    min-height: 540px;

    overflow: hidden;

    background: var(--white);

    border:
        1px solid rgba(8, 39, 61, 0.11);

    box-shadow:
        0 10px 30px rgba(8, 39, 61, 0.06);
}

.form-container iframe {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    border: none;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    width: 100%;

    background: var(--navy);

    color: var(--white);
}


/* =========================================================
   FOOTER GRID
========================================================= */

.footer-columns {
    width: min(92%, 1300px);

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        1.25fr
        1fr
        1.45fr
        0.75fr;

    gap: 45px;

    align-items: start;

    padding: 70px 0 55px;
}

.footer-columns > .col-1,
.footer-columns > .col-2,
.footer-columns > .col-3,
.footer-columns > .col-4 {
    width: 100%;
    min-width: 0;
}


/* =========================================================
   FOOTER HEADINGS
========================================================= */

.footer-columns h4 {
    margin: 0 0 22px;

    color: var(--white);

    font-family: "Manrope", sans-serif;

    font-size: 17px;
    font-weight: 700;

    line-height: 1.3;
}

.footer-columns h4::after {
    content: "";

    display: block;

    width: 32px;
    height: 2px;

    margin-top: 9px;

    background: var(--red);
}


/* =========================================================
   FOOTER LOGO
========================================================= */

.footer-logo-link {
    display: inline-block;

    margin-bottom: 18px;
}

.footer-logo {
    width: auto;
    height: auto;

    max-width: 180px;
    max-height: 85px;

    object-fit: contain;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

.footer-logo-link:hover .footer-logo {
    transform: scale(1.03);

    opacity: 0.90;
}


/* =========================================================
   FOOTER DEDICATION
========================================================= */

.footer-columns .col-1 p {
    max-width: 280px;

    margin: 0;

    color:
        rgba(255, 255, 255, 0.70);

    font-size: 14px;

    line-height: 1.75;
}


/* =========================================================
   FOOTER CONTACT
========================================================= */

.footer-contact-link {
    display: flex;

    align-items: center;

    gap: 11px;

    width: fit-content;

    margin-bottom: 15px;

    color:
        rgba(255, 255, 255, 0.78);

    font-size: 14px;

    line-height: 1.5;

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

.footer-contact-link i {
    width: 18px;

    flex-shrink: 0;

    color: var(--red);

    font-size: 15px;

    text-align: center;
}

.footer-contact-link span {
    word-break: break-word;
}

.footer-contact-link:hover {
    color: var(--white);

    transform: translateX(4px);
}


/* =========================================================
   FOOTER LOCATIONS
========================================================= */

.footer-location {
    width: 100%;

    margin-bottom: 19px;
}

.footer-location:last-child {
    margin-bottom: 0;
}

.location-label {
    display: block;

    margin-bottom: 6px;

    color: var(--white);

    font-size: 14px;
    font-weight: 700;
}

.location-link {
    display: flex;

    align-items: flex-start;

    gap: 10px;

    width: fit-content;

    color:
        rgba(255, 255, 255, 0.67);

    font-size: 13px;

    line-height: 1.65;

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

.location-link i {
    flex-shrink: 0;

    margin-top: 5px;

    color: var(--red);

    font-size: 13px;
}

.location-link span {
    display: block;
}

.location-link:hover {
    color: var(--white);

    transform: translateX(4px);
}


/* =========================================================
   FOOTER SOCIALS
========================================================= */

.social-links {
    margin: 0;
    padding: 0;

    list-style: none;
}

.social-links li {
    margin: 0 0 14px;
    padding: 0;

    list-style: none;
}

.social-link a {
    display: inline-flex;

    align-items: center;

    gap: 11px;

    white-space: nowrap;

    color:
        rgba(255, 255, 255, 0.78);

    font-size: 14px;

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

.social-link a i {
    width: 18px;

    flex-shrink: 0;

    color: var(--red);

    font-size: 16px;

    text-align: center;
}

.social-link a:hover {
    color: var(--white);

    transform: translateX(4px);
}


/* =========================================================
   FOOTER BOTTOM
========================================================= */

.footer-bottom {
    width: min(92%, 1300px);

    margin: 0 auto;

    padding: 21px 0;

    border-top:
        1px solid rgba(255, 255, 255, 0.10);

    color:
        rgba(255, 255, 255, 0.55);

    font-size: 12px;

    text-align: center;
}


/* =========================================================
   SCROLL TO TOP
========================================================= */

.scroll-top-btn {
    position: fixed;

    right: 25px;
    bottom: 25px;

    z-index: 999;

    width: 46px;
    height: 46px;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 0;

    background: var(--red);

    border: none;

    border-radius: 50%;

    color: var(--white);

    cursor: pointer;

    box-shadow:
        0 8px 22px rgba(255, 8, 8, 0.24);

    transition: 0.3s ease;
}

.scroll-top-btn:hover {
    background: var(--navy);

    transform: translateY(-3px);
}


/* =========================================================
   RESPONSIVE - MATCHES INDEX PAGE
========================================================= */

@media (max-width: 1050px) {
    .nav-bar { padding: 0 4%; }
    .nav-bar ul { gap: 19px; }
    .nav-bar ul li a { font-size: 13px; }

    .footer-columns {
        width: 92%;
        grid-template-columns: 1.15fr 1fr 1.35fr 0.75fr;
        gap: 28px;
    }

    .footer-columns .col-1 p { font-size: 13px; }
    .footer-contact-link, .social-link a { font-size: 13px; }
    .location-link { font-size: 12px; }
}

@media (max-width: 900px) {
    .nav-bar {
        min-height: 76px;
        padding: 0 24px;
        flex-wrap: wrap;
    }

    .nav-bar .logo { height: 58px; }
    .hamburger { display: block; }

    .nav-bar ul {
        width: 100%;
        max-height: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        overflow: hidden;
        background: var(--navy);
        transition: max-height 0.4s ease, padding 0.4s ease;
    }

    .nav-bar ul.active {
        max-height: 550px;
        padding: 12px 0 22px;
    }

    .nav-bar ul li { width: 100%; }
    .nav-bar ul li a { width: 100%; padding: 13px 0; }

    .form-section {
        grid-template-columns: 1fr;
        gap: 45px;
        padding: 80px 6%;
    }
}

@media (max-width: 850px) {
    .footer-columns {
        width: 90%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 45px 50px;
        padding: 60px 0 45px;
    }

    .footer-columns > .col-1 { grid-column: 1; grid-row: 1; }
    .footer-columns > .col-2 { grid-column: 2; grid-row: 1; }
    .footer-columns > .col-3 { grid-column: 1; grid-row: 2; }
    .footer-columns > .col-4 { grid-column: 2; grid-row: 2; }
}

@media (max-width: 600px) {
    .footer-columns {
        width: calc(100% - 40px);
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 55px 0 40px;
    }

    .footer-columns > .col-1,
    .footer-columns > .col-2,
    .footer-columns > .col-3,
    .footer-columns > .col-4 {
        grid-column: 1;
        grid-row: auto;
    }

    .footer-columns h4 { margin-bottom: 18px; }
    .footer-logo { max-width: 155px; }
    .footer-columns .col-1 p { max-width: 100%; }
    .footer-contact-link { width: fit-content; font-size: 13px; }
    .location-link { width: fit-content; font-size: 12.5px; }
    .social-link a { font-size: 13px; }
    .footer-bottom { width: calc(100% - 40px); font-size: 11px; }
}

@media (max-width: 560px) {
    .nav-bar { min-height: 70px; padding: 0 18px; }
    .nav-bar .logo { height: 52px; }
    .hamburger { font-size: 24px; }

    .form-section { padding: 65px 20px; }
    .form-section h2 { font-size: 36px; }
    .form-container { min-height: 430px; }

    .scroll-top-btn {
        right: 17px;
        bottom: 17px;
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 380px) {
    .form-section h2 { font-size: 31px; }
}
