/* =========================================================
   PJ TRAVEL & TOURS
   Global Styles
   ========================================================= */


/* =========================================================
   1. GOOGLE FONTS
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Manrope:wght@400;500;600;700;800&display=swap');


/* =========================================================
   2. ROOT VARIABLES
   ========================================================= */

:root {

    /* -----------------------------------------
       Brand Colours
       ----------------------------------------- */

    --color-primary: #102A43;

    --color-primary-dark: #0A1E30;

    --color-secondary: #1F6F8B;

    --color-secondary-dark: #18596F;

    --color-accent: #D6A64F;

    --color-accent-dark: #B88732;

    --color-accent-light: #E7C67D;


    /* -----------------------------------------
       Neutral Colours
       ----------------------------------------- */

    --color-white: #FFFFFF;

    --color-off-white: #FAF9F6;

    --color-sand: #F3EBDD;

    --color-sand-dark: #E8DDC9;

    --color-text: #263238;

    --color-text-muted: #66737C;

    --color-border: rgba(16, 42, 67, 0.12);


    /* -----------------------------------------
       Typography
       ----------------------------------------- */

    --font-display:
        "DM Serif Display",
        Georgia,
        serif;

    --font-body:
        "Manrope",
        Arial,
        sans-serif;


    --text-xs: 0.75rem;

    --text-sm: 0.875rem;

    --text-base: 1rem;

    --text-lg: 1.125rem;

    --text-xl: 1.25rem;

    --text-2xl: 1.5rem;

    --text-3xl: 2rem;

    --text-4xl: 2.75rem;

    --text-5xl: 4rem;


    /* -----------------------------------------
       Layout
       ----------------------------------------- */

    --container-width: 1240px;

    --container-padding: 1.5rem;

    --section-padding: clamp(
        5rem,
        9vw,
        8rem
    );


    /* -----------------------------------------
       Border Radius
       ----------------------------------------- */

    --radius-sm: 6px;

    --radius-md: 14px;

    --radius-lg: 24px;

    --radius-pill: 999px;


    /* -----------------------------------------
       Shadows
       ----------------------------------------- */

    --shadow-sm:
        0 5px 20px rgba(16, 42, 67, 0.06);

    --shadow-md:
        0 15px 45px rgba(16, 42, 67, 0.10);

    --shadow-lg:
        0 25px 70px rgba(16, 42, 67, 0.14);


    /* -----------------------------------------
       Transitions
       ----------------------------------------- */

    --transition-fast:
        180ms ease;

    --transition:
        300ms ease;

    --transition-slow:
        600ms cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );

}


/* =========================================================
   3. RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;

    margin: 0;
    padding: 0;
}


html {
    scroll-behavior: smooth;

    font-size: 16px;
}


body {
    min-height: 100vh;

    background: var(--color-off-white);

    color: var(--color-text);

    font-family: var(--font-body);

    font-size: var(--text-base);

    line-height: 1.6;

    -webkit-font-smoothing: antialiased;

    text-rendering: optimizeLegibility;
}


body.menu-open {
    overflow: hidden;
}


/* =========================================================
   4. ELEMENT DEFAULTS
   ========================================================= */

img,
picture,
video,
canvas,
svg {
    display: block;

    max-width: 100%;
}


img {
    width: 100%;

    height: auto;
}


button,
input,
textarea,
select {
    font: inherit;
}


button {
    border: 0;

    cursor: pointer;
}


a {
    color: inherit;

    text-decoration: none;
}


ul,
ol {
    list-style: none;
}


h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-primary);

    font-family: var(--font-display);

    font-weight: 400;

    line-height: 1.1;

    text-wrap: balance;
}


p {
    text-wrap: pretty;
}


/* =========================================================
   5. CONTAINER
   ========================================================= */

.container {
    width: min(
        calc(100% - 3rem),
        var(--container-width)
    );

    margin-inline: auto;
}


/* =========================================================
   6. SECTION
   ========================================================= */

.section {
    padding-block: var(--section-padding);
}


/* =========================================================
   7. SECTION LABEL
   ========================================================= */

.section-label {
    display: inline-flex;

    align-items: center;

    gap: 0.75rem;

    margin-bottom: 1.25rem;

    color: var(--color-accent);

    font-family: var(--font-body);

    font-size: var(--text-xs);

    font-weight: 800;

    letter-spacing: 0.16em;

    line-height: 1;

    text-transform: uppercase;
}


.section-label::before {
    content: "";

    width: 28px;
    height: 1px;

    background: currentColor;
}


/* =========================================================
   8. SECTION TITLES
   ========================================================= */

.section-title {
    max-width: 800px;

    margin-bottom: 1.5rem;

    font-size: clamp(
        2.75rem,
        5vw,
        4.5rem
    );

    letter-spacing: -0.025em;
}


.section-description {
    max-width: 650px;

    color: var(--color-text-muted);

    font-size: var(--text-lg);

    line-height: 1.8;
}


/* =========================================================
   9. BUTTONS
   ========================================================= */

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 0.7rem;

    min-height: 52px;

    padding: 0.8rem 1.4rem;

    border: 1px solid transparent;

    border-radius: var(--radius-sm);

    font-size: var(--text-sm);

    font-weight: 800;

    line-height: 1;

    white-space: nowrap;

    transition:
        transform var(--transition-fast),
        background var(--transition),
        border-color var(--transition),
        color var(--transition),
        box-shadow var(--transition);
}


.btn:hover {
    transform: translateY(-2px);
}


.btn:active {
    transform: translateY(0);
}


/* Primary */

.btn-primary {
    background: var(--color-primary);

    color: var(--color-white);

    box-shadow:
        0 8px 25px rgba(16, 42, 67, 0.15);
}


.btn-primary:hover {
    background: var(--color-primary-dark);

    box-shadow:
        0 12px 30px rgba(16, 42, 67, 0.20);
}


/* Accent */

.btn-accent {
    background: var(--color-accent);

    color: var(--color-primary);

    box-shadow:
        0 8px 25px rgba(214, 166, 79, 0.18);
}


.btn-accent:hover {
    background: var(--color-accent-light);

    box-shadow:
        0 12px 30px rgba(214, 166, 79, 0.25);
}


/* Outline */

.btn-outline {
    border-color: rgba(16, 42, 67, 0.22);

    background: transparent;

    color: var(--color-primary);
}


.btn-outline:hover {
    border-color: var(--color-primary);

    background: var(--color-primary);

    color: var(--color-white);
}


/* Light */

.btn-light {
    background: var(--color-white);

    color: var(--color-primary);

    box-shadow: var(--shadow-sm);
}


.btn-light:hover {
    background: var(--color-off-white);

    box-shadow: var(--shadow-md);
}


/* Dark */

.btn-dark {
    background: var(--color-primary-dark);

    color: var(--color-white);
}


/* =========================================================
   10. HEADER
   ========================================================= */

.site-header {
    position: fixed;

    z-index: 1000;

    top: 0;
    left: 0;

    width: 100%;

    background: transparent;

    color: var(--color-white);

    transition:
        background var(--transition),
        box-shadow var(--transition),
        color var(--transition);
}


.site-header.scrolled {
    background: rgba(
        250,
        249,
        246,
        0.96
    );

    color: var(--color-primary);

    box-shadow:
        0 8px 30px rgba(
            16,
            42,
            67,
            0.08
        );

    backdrop-filter: blur(14px);
}


.navbar {
    position: relative;

    min-height: 88px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 2rem;
}


/* =========================================================
   11. LOGO
   ========================================================= */

.logo {
    display: inline-flex;

    flex-direction: column;

    flex-shrink: 0;

    line-height: 1;
}


.logo__name {
    color: currentColor;

    font-family: var(--font-body);

    font-size: 1.2rem;

    font-weight: 800;

    letter-spacing: 0.12em;
}


.logo__subtitle {
    margin-top: 0.35rem;

    color: var(--color-accent);

    font-size: 0.55rem;

    font-weight: 800;

    letter-spacing: 0.2em;

    text-transform: uppercase;
}


/* =========================================================
   12. NAVIGATION
   ========================================================= */

.nav-menu {
    display: flex;

    align-items: center;

    gap: 2rem;

    margin-left: auto;
}


.nav-link {
    position: relative;

    padding-block: 0.5rem;

    color: currentColor;

    font-size: 0.78rem;

    font-weight: 700;

    letter-spacing: 0.04em;

    transition:
        color var(--transition-fast);
}


.nav-link::after {
    content: "";

    position: absolute;

    bottom: 0;
    left: 0;

    width: 0;
    height: 2px;

    background: var(--color-accent);

    transition:
        width var(--transition);
}


.nav-link:hover,
.nav-link.active {
    color: var(--color-accent);
}


.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}


/* =========================================================
   13. NAV ACTIONS
   ========================================================= */

.nav-actions {
    display: flex;

    align-items: center;

    gap: 0.75rem;
}


.nav-actions .btn {
    min-height: 44px;

    padding-inline: 1.1rem;

    font-size: 0.72rem;
}


/* =========================================================
   14. MOBILE MENU BUTTON
   ========================================================= */

.menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

    align-items: center;
    justify-content: center;

    flex-direction: column;

    gap: 5px;

    background: transparent;

    color: currentColor;
}


.menu-toggle span {
    display: block;

    width: 22px;
    height: 2px;

    background: currentColor;

    transition:
        transform var(--transition),
        opacity var(--transition);
}


.menu-toggle.active span:nth-child(1) {
    transform:
        translateY(7px)
        rotate(45deg);
}


.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}


.menu-toggle.active span:nth-child(3) {
    transform:
        translateY(-7px)
        rotate(-45deg);
}


/* =========================================================
   15. HERO
   ========================================================= */

.hero {
    position: relative;

    min-height: min(
        800px,
        100vh
    );

    display: flex;

    align-items: center;

    overflow: hidden;

    background: var(--color-primary);

    color: var(--color-white);
}


.hero__media {
    position: absolute;

    inset: 0;
}


.hero__media img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


.hero__overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(10, 30, 48, 0.90) 0%,
            rgba(10, 30, 48, 0.62) 42%,
            rgba(10, 30, 48, 0.20) 100%
        );
}


.hero__content {
    position: relative;

    z-index: 2;

    max-width: 800px;

    padding-top: 6rem;
}


.hero__content h1 {
    max-width: 800px;

    margin-bottom: 1.5rem;

    color: var(--color-white);

    font-size: clamp(
        4rem,
        8vw,
        7rem
    );

    letter-spacing: -0.04em;

    line-height: 0.95;
}


.hero__content p {
    max-width: 600px;

    margin-bottom: 2rem;

    color: rgba(
        255,
        255,
        255,
        0.82
    );

    font-size: var(--text-lg);

    line-height: 1.8;
}


.hero__actions {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 0.8rem;
}


/* =========================================================
   16. IMAGE
   ========================================================= */

.image-cover {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


.image-rounded {
    overflow: hidden;

    border-radius: var(--radius-md);
}


/* =========================================================
   17. CARDS
   ========================================================= */

.card {
    background: var(--color-white);

    border: 1px solid var(--color-border);

    border-radius: var(--radius-md);

    box-shadow: var(--shadow-sm);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}


.card:hover {
    transform: translateY(-5px);

    box-shadow: var(--shadow-md);
}


/* =========================================================
   18. DARK SECTION
   ========================================================= */

.section-dark {
    background: var(--color-primary);

    color: var(--color-white);
}


.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--color-white);
}


.section-dark .section-description {
    color: rgba(
        255,
        255,
        255,
        0.70
    );
}


/* =========================================================
   19. GOLD SECTION
   ========================================================= */

.section-sand {
    background: var(--color-sand);
}


/* =========================================================
   20. REVEAL ANIMATION
   ========================================================= */

.reveal {
    opacity: 0;

    transform:
        translateY(30px);

    transition:
        opacity 800ms ease,
        transform 800ms
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );
}


.reveal.visible {
    opacity: 1;

    transform:
        translateY(0);
}


/* =========================================================
   21. STAGGERED REVEAL
   ========================================================= */

.reveal-delay-1 {
    transition-delay: 100ms;
}


.reveal-delay-2 {
    transition-delay: 200ms;
}


.reveal-delay-3 {
    transition-delay: 300ms;
}


.reveal-delay-4 {
    transition-delay: 400ms;
}


/* =========================================================
   22. TEXT LINK
   ========================================================= */

.text-link {
    display: inline-flex;

    align-items: center;

    gap: 0.55rem;

    color: var(--color-primary);

    font-size: var(--text-sm);

    font-weight: 800;
}


.text-link span {
    color: var(--color-accent);

    transition:
        transform var(--transition-fast);
}


.text-link:hover span {
    transform:
        translateX(4px);
}


/* =========================================================
   23. FOOTER
   ========================================================= */

.site-footer {
    padding-top: 5rem;

    background: var(--color-primary-dark);

    color: rgba(
        255,
        255,
        255,
        0.72
    );
}


.site-footer__grid {
    display: grid;

    grid-template-columns:
        1.5fr
        1fr
        1fr
        1.2fr;

    gap: 3rem;

    padding-bottom: 4rem;
}


.site-footer__brand {
    max-width: 320px;
}


.site-footer__brand .logo {
    color: var(--color-white);

    margin-bottom: 1.25rem;
}


.site-footer__brand p {
    font-size: var(--text-sm);

    line-height: 1.8;
}


.site-footer__column {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 0.75rem;
}


.site-footer__column h3 {
    margin-bottom: 0.75rem;

    color: var(--color-white);

    font-family: var(--font-body);

    font-size: var(--text-sm);

    font-weight: 800;
}


.site-footer__column a {
    color: rgba(
        255,
        255,
        255,
        0.65
    );

    font-size: var(--text-sm);

    transition:
        color var(--transition-fast);
}


.site-footer__column a:hover {
    color: var(--color-accent);
}


.site-footer__column p {
    max-width: 230px;

    font-size: var(--text-sm);

    line-height: 1.7;
}


.site-footer__column .text-link {
    color: var(--color-accent);
}


/* =========================================================
   24. FOOTER BOTTOM
   ========================================================= */

.site-footer__bottom {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 1rem;

    padding-block: 1.5rem;

    border-top:
        1px solid
        rgba(
            255,
            255,
            255,
            0.10
        );

    color: rgba(
        255,
        255,
        255,
        0.45
    );

    font-size: 0.72rem;
}


.site-footer__bottom strong {
    color: var(--color-accent);

    font-weight: 700;
}


/* =========================================================
   25. FOCUS ACCESSIBILITY
   ========================================================= */

:focus-visible {
    outline: 3px solid
        rgba(
            214,
            166,
            79,
            0.55
        );

    outline-offset: 4px;
}


/* =========================================================
   26. TABLET
   ========================================================= */

@media (max-width: 1024px) {

    :root {
        --container-padding: 1.25rem;
    }


    .navbar {
        min-height: 80px;
    }


    .nav-menu {
        gap: 1.25rem;
    }


    .nav-actions .btn {
        padding-inline: 0.9rem;
    }


    .site-footer__grid {
        grid-template-columns:
            1.5fr
            1fr
            1fr;
    }

}


/* =========================================================
   27. MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .container {
        width: min(
            calc(100% - 2rem),
            var(--container-width)
        );
    }


    /* -------------------------
       Navigation
       ------------------------- */

    .navbar {
        min-height: 76px;
    }


    .nav-actions {
        display: none;
    }


    .menu-toggle {
        display: flex;
    }


    .nav-menu {
        position: fixed;

        z-index: -1;

        top: 0;
        left: 0;

        width: 100%;
        height: 100vh;

        display: flex;

        flex-direction: column;

        align-items: flex-start;

        justify-content: center;

        gap: 1.5rem;

        padding: 6rem 2rem 3rem;

        background:
            var(--color-primary-dark);

        color: var(--color-white);

        opacity: 0;

        visibility: hidden;

        transform:
            translateY(-15px);

        transition:
            opacity var(--transition),
            visibility var(--transition),
            transform var(--transition);
    }


    .nav-menu.active {
        z-index: -1;

        opacity: 1;

        visibility: visible;

        transform:
            translateY(0);
    }


    .nav-link {
        font-family: var(--font-display);

        font-size: 2.2rem;

        font-weight: 400;
    }


    /* -------------------------
       Hero
       ------------------------- */

    .hero {
        min-height: 680px;
    }


    .hero__overlay {
        background:
            linear-gradient(
                90deg,
                rgba(10, 30, 48, 0.88),
                rgba(10, 30, 48, 0.52)
            );
    }


    .hero__content {
        padding-top: 5rem;
    }


    .hero__content h1 {
        font-size: clamp(
            3.5rem,
            14vw,
            5rem
        );
    }


    /* -------------------------
       Footer
       ------------------------- */

    .site-footer__grid {
        grid-template-columns:
            1fr 1fr;

        gap: 3rem 2rem;
    }


    .site-footer__brand {
        grid-column: 1 / -1;

        max-width: 500px;
    }


    .site-footer__bottom {
        flex-direction: column;

        align-items: flex-start;
    }

}


/* =========================================================
   28. SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .container {
        width: min(
            calc(100% - 1.5rem),
            var(--container-width)
        );
    }


    .hero {
        min-height: 620px;
    }


    .hero__content h1 {
        font-size: 3.4rem;
    }


    .hero__actions {
        flex-direction: column;

        align-items: stretch;
    }


    .hero__actions .btn {
        width: 100%;
    }


    .site-footer__grid {
        grid-template-columns: 1fr;
    }


    .site-footer__brand {
        grid-column: auto;
    }

}


/* =========================================================
   29. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }


    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;

        scroll-behavior: auto !important;
    }


    .reveal {
        opacity: 1;

        transform: none;
    }

}