/* =========================================
   MAP INTERNATIONAL
   Premium Consultancy Website CSS
========================================= */

:root {
    --navy: #123B5D;
    --navy-deep: #0A2943;
    --navy-light: #1B4F7A;
    --emerald: #007F5F;
    --emerald-dark: #005B43;
    --gold: #A97B14;
    --gold-deep: #865F0C;
    --white: #ffffff;
    --off-white: #F7F8F6;
    --grey: #4F5D6A;
    --dark: #101820;
    --border: rgba(18, 59, 93, .12);
    --shadow: 0 20px 50px rgba(0, 0, 0, .08);
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Lato", sans-serif;
    background: var(--white);
    color: var(--dark);
    line-height: 1.7;
    font-size: 18px;
}

body.nav-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3 {
    font-family: "Montserrat", sans-serif;
    color: var(--navy);
    letter-spacing: 0;
}

h2 {
    font-size: 2.7rem;
    line-height: 1.18;
}

p {
    color: var(--grey);
    font-size: 1.12rem;
}

a {
    text-decoration: none;
}

.container {
    width: min(90%, var(--max-width));
    margin: auto;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 90px;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    z-index: 999;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--navy);
    white-space: nowrap;
    line-height: 1.1;
}

.logo-tagline {
    display: block;
    font-family: "Montserrat", sans-serif;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold);
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 32px;
}

.navbar a {
    color: var(--navy);
    font-weight: 500;
    transition: .3s;
}

.navbar a:hover {
    color: var(--emerald);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--white);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--navy);
    display: block;
    transition: .3s;
}

.gold-button,
.primary-button,
.secondary-button {
    min-height: 50px;
    padding: 14px 28px;
    border: 0;
    border-radius: 4px;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: .35s;
    cursor: pointer;
}

.gold-button {
    background: var(--gold);
    color: var(--white);
}

.gold-button:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    background: var(--gold-deep);
}

.primary-button {
    background: var(--emerald);
    color: var(--white);
}

.primary-button:hover {
    background: var(--emerald-dark);
    transform: translateY(-4px);
}

.secondary-button {
    border: 1px solid rgba(255, 255, 255, .8);
    color: var(--white);
}

.secondary-button:hover {
    background: rgba(255, 255, 255, .12);
}

.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 110px;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-color: var(--navy);
    background-size: cover;
    background-position: center;
}

.hero-map-visual {
    background:
        radial-gradient(circle at 22% 38%, rgba(0, 127, 95, .28), transparent 26%),
        radial-gradient(circle at 78% 30%, rgba(201, 162, 39, .22), transparent 24%),
        linear-gradient(130deg, rgba(7, 29, 53, .96), rgba(18, 50, 82, .78)),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 78px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 96px);
}

.hero-image-home {
    background-image:
        linear-gradient(105deg, rgba(7, 29, 53, .92) 0%, rgba(7, 29, 53, .7) 46%, rgba(7, 29, 53, .36) 100%),
        url("../images/man_overlooking_city.jpg");
}

.hero-image-services {
    background-image:
        linear-gradient(105deg, rgba(7, 29, 53, .9) 0%, rgba(7, 29, 53, .66) 50%, rgba(7, 29, 53, .26) 100%),
        url("../images/modern_boardroom.jpg");
}

.hero-image-about {
    background-image:
        linear-gradient(105deg, rgba(7, 29, 53, .9) 0%, rgba(7, 29, 53, .64) 48%, rgba(7, 29, 53, .28) 100%),
        url("../images/muscat_oman.jpg");
}

.hero-image-contact {
    background-image:
        linear-gradient(105deg, rgba(7, 29, 53, .9) 0%, rgba(7, 29, 53, .66) 48%, rgba(7, 29, 53, .22) 100%),
        url("../images/airport.jpg");
}

.hero-background::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(7, 29, 53, .62);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(90%, 1000px);
    margin: auto;
}

.eyebrow,
.section-kicker {
    font-family: "Montserrat", sans-serif;
    letter-spacing: 0;
    font-size: .9rem;
    font-weight: 700;
    text-transform: uppercase;
}

.eyebrow {
    color: var(--white);
    margin-bottom: 25px;
    line-height: 1.5;
}

.hero-brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.hero-brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.hero-brand .eyebrow {
    font-size: .78rem;
    margin: 0;
}

.section-kicker {
    color: var(--emerald);
    margin-bottom: 12px;
}

.hero h1 {
    color: var(--white);
    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: 1.05;
    margin-bottom: 30px;
}

.hero-description {
    color: var(--white);
    max-width: 700px;
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.trust-text {
    color: rgba(255, 255, 255, .86);
    margin-top: 26px;
}

.page-hero {
    min-height: 75vh;
}

.route-animation {
    position: absolute;
    inset: auto 4% 9% auto;
    width: min(52vw, 620px);
    opacity: .78;
    z-index: 1;
    pointer-events: none;
}

.route-line {
    fill: none;
    stroke: var(--gold);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 980;
    stroke-dashoffset: 980;
    animation: drawRoute 3s ease forwards;
}

.route-point {
    fill: var(--emerald);
    opacity: 0;
    animation: fadePoint .6s ease forwards;
}

.route-point-one {
    animation-delay: 1s;
}

.route-point-two {
    animation-delay: 1.85s;
}

.route-point-three {
    animation-delay: 2.75s;
}

@keyframes drawRoute {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fadePoint {
    to {
        opacity: 1;
    }
}

.intro,
.services,
.global-section,
.insights-section,
.journey,
.why-map {
    padding: 110px 0;
}

.intro,
.insights-section,
.journey,
.why-map,
.global-section {
    text-align: center;
}

.intro p {
    max-width: 850px;
    margin: 30px auto;
    font-size: 1.2rem;
}

.journey,
.why-map,
.global-section {
    background: var(--off-white);
}

.journey-path {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin-top: 60px;
}

.journey-step {
    position: relative;
    flex: 1 1 180px;
    max-width: 220px;
    min-height: 240px;
    background: var(--white);
    padding: 30px 20px 26px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    transition: .4s;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.journey-step:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 1.8rem;
    font-weight: 700;
}

.journey-step h3 {
    margin-bottom: 12px;
    font-size: 1.15rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--navy);
}

.journey-step span {
    display: block;
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 14px;
    line-height: 1;
}

.journey-step p {
    font-size: .96rem;
    color: var(--grey);
    line-height: 1.7;
}

.journey-step:hover {
    transform: translateY(-10px);
    border-color: var(--emerald);
}

.service-grid,
.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: .4s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.service-card h3,
.insight-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.service-card a {
    color: var(--emerald);
    font-weight: 700;
}

.why-map p {
    max-width: 800px;
    margin: 25px auto;
}

.editorial-image {
    width: 100%;
    height: 550px;
    margin-bottom: 40px;
    border-radius: 6px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    background: var(--off-white);
}

.editorial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.editorial-image::before,
.editorial-image::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.muscat-visual::before {
    background: linear-gradient(to top, rgba(7, 29, 53, .56), transparent 58%);
}

.muscat-visual::after {
    inset: 18% 8% auto 12%;
    height: 54%;
    border-top: 2px solid rgba(201, 162, 39, .72);
    border-right: 2px solid rgba(201, 162, 39, .52);
    border-radius: 50%;
    transform: rotate(-9deg);
}

.global-visual::before {
    background: linear-gradient(115deg, rgba(7, 29, 53, .26), rgba(0, 127, 95, .08));
}

.global-visual::after {
    inset: 20% 10%;
    border: 2px solid rgba(201, 162, 39, .7);
    border-left-color: transparent;
    border-bottom-color: transparent;
    border-radius: 50%;
    box-shadow:
        110px 70px 0 -58px var(--emerald),
        430px 52px 0 -58px var(--gold),
        660px 190px 0 -58px var(--emerald);
}

.oman-visual::before,
.high-rise-visual::before {
    background: linear-gradient(to top, rgba(7, 29, 53, .5), transparent 60%);
}

.high-rise-visual img {
    object-position: center top;
}

.insights-section {
    background: var(--white);
}

.insights-grid {
    margin-top: 48px;
    text-align: left;
}

.insight-card {
    border-top: 3px solid var(--gold);
    padding: 30px 0 0;
}

.contact-form {
    max-width: 750px;
    margin: 50px auto 0;
    text-align: left;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-family: "Montserrat", sans-serif;
    color: var(--navy);
    font-weight: 600;
    margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: "Lato", sans-serif;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--emerald);
}

footer {
    background: var(--white);
    padding: 60px 5%;
    border-top: 1px solid var(--border);
}

.footer-container {
    max-width: var(--max-width);
    margin: auto;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: center;
}

footer p {
    color: var(--grey);
    max-width: 600px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.footer-logos {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    margin-top: 20px;
}

.footer-logo {
    max-height: 52px;
    width: auto;
    object-fit: contain;
}

footer a {
    color: var(--navy);
    margin-left: 20px;
}

footer a:hover {
    color: var(--gold);
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: .8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1000px) {
    .navbar ul {
        gap: 20px;
    }

    .hero h1 {
        font-size: 4rem;
    }
}

@media (max-width: 900px) {
    .navbar {
        height: 76px;
    }

    .navbar nav {
        display: none;
        position: fixed;
        left: 0;
        right: 0;
        top: 76px;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        padding: 24px 5% 32px;
    }

    body.nav-open .navbar nav {
        display: block;
    }

    .navbar ul {
        flex-direction: column;
        gap: 18px;
    }

    .menu-toggle {
        display: flex;
        margin-left: auto;
    }

    body.nav-open .menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    body.nav-open .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    body.nav-open .menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-cta {
        display: none;
    }

    .hero {
        min-height: 92vh;
    }

    .page-hero {
        min-height: 64vh;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-description {
        font-size: 1.05rem;
    }

    .journey-path {
        display: grid;
        grid-template-columns: 1fr;
    }

    .journey-step {
        max-width: none;
        min-height: unset;
    }

    .journey-step:not(:last-child)::after {
        display: none;
    }

    .service-grid,
    .insights-grid {
        grid-template-columns: 1fr;
    }

    .route-animation {
        width: 86vw;
        right: -12%;
        bottom: 6%;
        opacity: .38;
    }

    .intro,
    .services,
    .global-section,
    .insights-section,
    .journey,
    .why-map {
        padding: 80px 0;
    }

    .editorial-image {
        height: 360px;
    }

    .footer-container {
        flex-direction: column;
    }

    footer a {
        margin-left: 0;
        margin-right: 20px;
    }
}

@media (max-width: 520px) {
    .navbar {
        padding-right: 16px;
        padding-left: 16px;
    }

    .logo {
        gap: 8px;
    }

    .logo-mark {
        width: 34px;
        height: 34px;
    }

    .logo a {
        font-size: .96rem;
    }

    .logo-tagline {
        letter-spacing: .08em;
        font-size: .52rem;
    }

    .hero {
        min-height: auto;
        padding-top: 110px;
        padding-bottom: 50px;
    }

    .hero h1 {
        font-size: 2.45rem;
    }

    h2 {
        font-size: 1.9rem;
    }

    .hero-buttons {
        align-items: stretch;
        flex-direction: column;
    }

    .primary-button,
    .secondary-button,
    .gold-button {
        width: 100%;
        text-align: center;
    }

    .service-card {
        padding: 30px;
    }

    .footer-container {
        align-items: flex-start;
    }

    .footer-links {
        align-items: flex-start;
    }

    .footer-logos {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}
