:root {
    --ink: #172033;
    --muted: #687085;
    --accent: #c46d21;
    --paper: #fcfaf7;
    --line: #e9e4dd;
}


/* =========================
   RESET
========================= */

* {
    box-sizing: border-box;
}


/* =========================
   BODY
========================= */

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Montserrat, Arial, sans-serif;
    line-height: 1.65;
}


/* =========================
   LINKS
========================= */

a {
    color: inherit;
    text-decoration: none;
}


/* =========================
   HEADER
========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid #e5e1db;
    box-shadow: 0 8px 24px rgba(23, 32, 51, 0.12);
}


/* =========================
   CONTACT BAR
========================= */

.contact-bar {
    background: white;
    color: #000000;
}

.contact-bar-inner {
    width: min(1180px, calc(100% - 48px));
    min-height: 38px;
    margin: auto;

    display: flex;
    justify-content: flex-end;
    align-items: center;

    gap: 22px;

    font-size: 15px;
    font-weight: 600;
}

.contact-bar a {
    color: #000000;
}

.contact-bar a:hover {
    color: var(--accent);
}

.contact-note {
    color: #b9c1cf;
}

.consultation-button {
    align-self: stretch;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 18px;

    background: var(--accent);

    font-weight: 800;

    white-space: nowrap;
    flex-shrink: 0;
}

.consultation-button:hover {
    color: #fff !important;
    background: #a95514;
}


/* =========================
   NAVIGATION
========================= */

.nav-shell {
    max-width: 1180px;
    min-height: 84px;
    padding: 10px 16px;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 28px;
}

.brand {
    margin-left: -10px;
}

.brand img {
    content: url('../img/travelmez/logo.png');

    display: block;

    width: 190px;
    height: 60px;

    object-fit: contain;
    object-position: left center;
}

.nav-links {
    display: flex;

    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;

    gap: 9px 40px;

    font-size: 0.76rem;
    font-weight: 700;
}

.nav-links a {
    color: #4d5665;

    padding: 10px 0 8px;

    border-bottom: 2px solid transparent;

    font-size: 15px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
    border-color: var(--accent);
}


/* =========================
   HAMBURGER
========================= */

.hamburger {
    display: none;

    width: 42px;
    height: 42px;

    padding: 8px;
    margin-left: auto;

    border: 0;
    outline: none;

    background: transparent;

    cursor: pointer;

    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 5px;

    z-index: 1001;
}

.hamburger span {
    display: block;

    width: 25px;
    height: 3px;

    background: var(--ink);

    border-radius: 2px;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}


/* =========================
   HAMBURGER OPEN STATE
========================= */

.hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* =========================
   RESOURCE DROPDOWN
========================= */

.resource-dropdown {
    position: relative;

    display: flex;
    align-items: center;

    flex-shrink: 0;
}

.resources-trigger {
    display: inline-flex;
    align-items: center;

    gap: 6px;
}

.resources-caret {
    font-size: 0.9em;

    transition: transform 0.2s ease;
}

.resources-dropdown-menu {
    position: absolute;

    top: calc(100% + 10px);
    right: -130px;
    left: auto;

    z-index: 20;

    display: grid;

    min-width: 220px;

    padding: 12px 0;

    background: #fff;

    border: 1px solid var(--line);

    box-shadow: 0 14px 30px rgba(23, 32, 51, 0.18);

    opacity: 0;
    visibility: hidden;

    transform: translateY(-6px);

    transition:
        opacity 0.18s ease,
        transform 0.18s ease,
        visibility 0.18s ease;
}

.resources-dropdown-menu a {
    display: block;

    padding: 10px 20px;

    border: 0;

    color: var(--ink);

    font-size: 15px;
    font-weight: 700;

    letter-spacing: 0.02em;

    text-transform: uppercase;
}

.resources-dropdown-menu a:hover,
.resources-dropdown-menu a:focus {
    background: #f7f1ea;
    color: var(--accent);
}

.resource-dropdown:hover .resources-dropdown-menu,
.resource-dropdown:focus-within .resources-dropdown-menu {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}

.resource-dropdown:hover .resources-caret,
.resource-dropdown:focus-within .resources-caret {
    transform: rotate(180deg);
}


/* =========================
   PRODUCT DROPDOWN
========================= */

.product-dropdown {
    position: relative;

    display: flex;
    align-items: center;

    flex-shrink: 0;
}

.products-trigger {
    display: inline-flex;
    align-items: center;

    gap: 6px;
}

.products-caret {
    font-size: 0.9em;

    transition: transform 0.2s ease;
}

.products-dropdown-menu {
    position: absolute;

    top: calc(100% + 10px);
    right: -130px;
    left: auto;

    z-index: 20;

    display: grid;

    min-width: 220px;

    padding: 12px 0;

    background: #fff;

    border: 1px solid var(--line);

    box-shadow: 0 14px 30px rgba(23, 32, 51, 0.18);

    opacity: 0;
    visibility: hidden;

    transform: translateY(-6px);

    transition:
        opacity 0.18s ease,
        transform 0.18s ease,
        visibility 0.18s ease;
}

.products-dropdown-menu a {
    display: block;

    padding: 10px 20px;

    border: 0;

    color: var(--ink);

    font-size: 15px;
    font-weight: 700;

    letter-spacing: 0.02em;

    text-transform: none;
}

.products-dropdown-menu a:hover,
.products-dropdown-menu a:focus {
    background: #f7f1ea;
    color: var(--accent);
}

.product-dropdown:hover .products-dropdown-menu,
.product-dropdown:focus-within .products-dropdown-menu {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}

.product-dropdown:hover .products-caret,
.product-dropdown:focus-within .products-caret {
    transform: rotate(180deg);
}


/* =========================
   HERO
========================= */

.page-hero {
    min-height: 700px;

    display: grid;
    align-items: end;

    color: white;

    background:
        linear-gradient(
            90deg,
            rgba(16, 22, 34, 0.1),
            rgba(16, 22, 34, 0.1)
        ),
        url('../img/travelmez/hotel-hero.jpg') center/cover;
}

.page-hero .inner {
    width: min(1180px, calc(100% - 48px));

    margin: 0 auto;

    padding: 76px 0;

    max-width: 1180px;
}


/* =========================
   TYPOGRAPHY
========================= */

.eyebrow {
    color: #c46d21;

    font-size: 0.76rem;
    font-weight: 800;

    letter-spacing: 0.13em;

    text-transform: uppercase;
}

h1,
h2,
h3 {
    line-height: 1.15;

    margin: 0 0 18px;

    letter-spacing: -0.035em;
}

h1 {
    font-size: clamp(2.45rem, 6vw, 5rem);

    max-width: 780px;
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.9rem);
}

h3 {
    font-size: 1.12rem;

    letter-spacing: -0.015em;
}

.hero-copy {
    max-width: 650px;

    font-size: clamp(1rem, 2vw, 1.22rem);
}


/* =========================
   SECTIONS
========================= */

.section {
    width: min(1180px, calc(100% - 48px));

    margin: auto;

    padding: 86px 0;
}

.section-title {
    max-width: 1180px;

    margin-bottom: 48px;
}

.section-title h2 {
    max-width: 900px;

    margin-bottom: 24px;
}

.section-title p {
    color: var(--muted);
}


/* =========================
   GRID
========================= */

.grid {
    display: grid;

    gap: 28px;
}

.grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    align-items: center;
}

.grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 32px;
}


/* =========================
   CARDS
========================= */

.card {
    background: #fff;

    border: 1px solid var(--line);

    padding: 32px;

    border-radius: 10px;
}

.card h3 {
    margin-bottom: 22px;
}

.card p {
    margin-bottom: 0;

    color: var(--muted);
}


/* =========================
   FLEXIBLE SOLUTIONS
========================= */

.flexible-solutions {
    margin-top: 40px;

    max-width: 1180px;
}

.flexible-solutions h3 {
    color: #02050c;

    font-size: 1.08rem;

    margin-bottom: 22px;
}


/*
   IMPORTANT:
   Use the browser's native bullet instead of
   manually inserting "•" through ::before.

   This prevents encoding problems such as:
   â€¢
*/

.flexible-solutions ul {
    list-style-type: disc;

    padding-left: 22px;

    margin: 0;
}

.flexible-solutions li {
    padding: 10px 0;

    color: var(--muted);

    font-size: 1rem;
}


/* =========================
   RESOURCE MENU
========================= */

.resource-menu {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 24px;
}

.resource-menu a {
    padding: 9px 13px;

    border: 1px solid var(--line);

    border-radius: 999px;

    color: var(--ink);

    font-size: 0.78rem;
    font-weight: 700;

    background: white;
}

.resource-menu a:hover {
    border-color: var(--accent);

    color: var(--accent);
}

.resource-section {
    scroll-margin-top: 100px;
}

.resource-meta {
    color: var(--accent);

    font-size: 0.74rem;
    font-weight: 800;

    letter-spacing: 0.09em;

    text-transform: uppercase;
}


/* =========================
   IMAGES
========================= */

.photo {
    width: 100%;
    height: 100%;

    min-height: 340px;

    display: block;

    object-fit: cover;

    border-radius: 10px;
}


/* =========================
   FEATURE LIST
========================= */

.feature-list {
    padding: 0;

    list-style: none;

    color: var(--muted);
}

.feature-list li {
    padding: 11px 0;

    border-bottom: 1px solid var(--line);
}

.feature-list li::before {
    content: '•';

    color: var(--accent);

    font-weight: 800;

    margin-right: 10px;
}


/* =========================
   MUTED TEXT
========================= */

.muted {
    color: var(--muted);
}


/* =========================
   TINT SECTION
========================= */

.tint {
    background: #f2ede6;

    padding: 86px 0;
}

.tint .section {
    padding: 0;
}


/* =========================
   CTA
========================= */

.cta {
    background: var(--ink);

    color: white;

    text-align: center;

    padding: 82px 24px;
}

.cta p {
    color: #d9dee7;
}


/* =========================
   BUTTON
========================= */

.button {
    display: inline-block;

    margin-top: 14px;

    padding: 13px 22px;

    border-radius: 5px;

    background: var(--accent);

    color: white;

    font-weight: 800;

    font-size: 0.86rem;
}

.button:hover {
    background: #a95514;
}


/* =========================
   FORMS
========================= */

.form-card {
    max-width: 700px;

    margin: 0 auto;

    background: white;

    padding: 34px;

    border: 1px solid var(--line);

    border-radius: 10px;
}

label {
    display: block;

    margin: 16px 0 6px;

    font-size: 0.83rem;
    font-weight: 700;
}

input,
textarea {
    width: 100%;

    padding: 13px;

    border: 1px solid #d8d2ca;

    border-radius: 5px;

    font: inherit;
}

textarea {
    min-height: 135px;

    resize: vertical;
}

button {
    border: 0;

    cursor: pointer;
}


/* =========================
   FOOTER
========================= */

.site-footer {
    background: #121a29;

    color: #e6e9ef;
}

.footer-inner {
    width: min(1180px, calc(100% - 48px));

    margin: auto;

    padding: 38px 0;

    display: flex;

    justify-content: space-between;

    gap: 30px;

    align-items: center;

    font-size: 0.85rem;
}

.footer-inner p {
    margin: 0;

    color: #aeb5c2;

    max-width: 560px;
}

.footer-inner a {
    color: white;
}


/* =========================
   MAP
========================= */

.map-container {
    width: 100%;
    height: 100%;

    min-height: 500px;

    overflow: hidden;

    border: 1px solid var(--line);

    border-radius: 10px;

    background: #fff;
}

.map-container iframe {
    display: block;

    width: 100%;
    height: 100%;

    min-height: 500px;

    border: 0;
}


/* =========================
   TABLET
========================= */

@media (max-width: 1000px) {

    .nav-links {
        gap: 9px 20px;
    }

    .grid.four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 800px) {

    /* =========================
       CONTACT BAR - MOBILE
    ========================= */

    .contact-bar-inner {
        width: 100%;

        min-height: 36px;

        padding: 0 12px;

        display: flex;

        align-items: center;

        justify-content: flex-start;

        gap: 8px;

        font-size: 12px;

        font-weight: 600;

        overflow: hidden;

        white-space: nowrap;
    }

    /*
       Email and phone can shrink
       when screen width is limited.
    */

    .contact-bar-inner > a {
        flex-shrink: 1;

        min-width: 0;

        white-space: nowrap;

        overflow: hidden;

        text-overflow: clip;
    }

    .contact-note {
        display: none;
    }

    /*
       IMPORTANT:
       Consultation button must NEVER shrink.
       This keeps "Free Consultation" visible.
    */

    .consultation-button {
        flex: 0 0 auto;

        flex-shrink: 0;

        margin-left: auto;

        min-height: 36px;

        padding: 0 10px;

        display: inline-flex;

        align-items: center;

        justify-content: center;

        white-space: nowrap;

        font-size: 12px;

        font-weight: 800;
    }


    /* =========================
       MOBILE NAVIGATION
    ========================= */

    .nav-shell {
        position: relative;

        min-height: 72px;

        align-items: center;

        flex-direction: row;

        gap: 12px;
    }

    .brand {
        margin-left: 0;
    }

    .brand img {
        width: 170px;

        height: 56px;
    }


    /* =========================
       HAMBURGER
    ========================= */

    .hamburger {
        display: flex;
    }


    /* =========================
       DESKTOP NAVIGATION HIDDEN
    ========================= */

    .nav-links {
        display: none;

        position: absolute;

        top: 100%;
        left: 0;

        width: 100%;

        padding: 10px 20px 20px;

        background: #ffffff;

        border-top: 1px solid var(--line);

        box-shadow: 0 12px 24px rgba(23, 32, 51, 0.12);

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        z-index: 1000;
    }


    /* =========================
       MOBILE MENU OPEN
    ========================= */

    .nav-links.mobile-open {
        display: flex;
    }


    /* =========================
       MAIN NAVIGATION LINKS
    ========================= */

    .nav-links > a {
        display: block;

        width: 100%;

        padding: 14px 8px;

        border-bottom: 1px solid var(--line);

        font-size: 15px;
    }


    /* =========================
       PRODUCT DROPDOWN
    ========================= */

    .product-dropdown {
        display: block;

        width: 100%;
    }

    .products-trigger {
        display: flex;

        width: 100%;

        align-items: center;

        justify-content: space-between;

        padding: 14px 8px;
    }


    /* =========================
       PRODUCT DROPDOWN MOBILE
    ========================= */

    .products-dropdown-menu {
        position: static;

        width: 100%;

        min-width: 0;

        padding: 0;

        border: 0;

        border-top: 1px solid var(--line);

        box-shadow: none;

        background: #faf9f7;

        display: none;

        opacity: 1;

        visibility: visible;

        transform: none;
    }


    /*
       IMPORTANT:
       On mobile the submenu is hidden by default.
       JavaScript adds .open to .product-dropdown.
    */

    .product-dropdown.open .products-dropdown-menu {
        display: grid;
    }

    .products-dropdown-menu a {
        display: block;

        width: 100%;

        padding: 12px 20px;

        border-bottom: 1px solid var(--line);

        font-size: 14px;

        text-transform: none;
    }

    .product-dropdown.open .products-caret {
        transform: rotate(180deg);
    }


    /* =========================
       RESOURCE DROPDOWN
    ========================= */

    .resource-dropdown {
        display: block;

        width: 100%;
    }

    .resources-trigger {
        display: flex;

        width: 100%;

        justify-content: space-between;
    }

    .resources-dropdown-menu {
        position: static;

        width: 100%;

        min-width: 0;

        padding: 0;

        border: 0;

        border-top: 1px solid var(--line);

        box-shadow: none;

        background: #faf9f7;
    }

    .resources-dropdown-menu a {
        padding: 12px 20px;

        border-bottom: 1px solid var(--line);

        font-size: 14px;
    }


    /* =========================
       GRIDS
    ========================= */

    .grid.two,
    .grid.three,
    .grid.four {
        grid-template-columns: 1fr;
    }


    /* =========================
       HERO
    ========================= */

    .page-hero {
        min-height: 390px;
    }

    .page-hero .inner {
        width: min(100% - 36px, 1180px);

        padding: 56px 0;
    }


    /* =========================
       SECTIONS
    ========================= */

    .section {
        width: min(100% - 36px, 1180px);

        padding: 62px 0;
    }

    .section-title {
        margin-bottom: 36px;
    }

    .section-title h2 {
        max-width: 100%;
    }

    .section-title p {
        max-width: 100%;
    }


    /* =========================
       CARDS
    ========================= */

    .card {
        padding: 26px;
    }


    /* =========================
       FLEXIBLE SOLUTIONS
    ========================= */

    .flexible-solutions {
        margin-top: 36px;
    }

    .flexible-solutions ul {
        list-style-type: disc;

        padding-left: 22px;
    }

    .flexible-solutions li {
        padding: 9px 0;

        font-size: 0.95rem;

        line-height: 1.7;
    }


    /* =========================
       IMAGES
    ========================= */

    .photo {
        min-height: 260px;
    }


    /* =========================
       FOOTER
    ========================= */

    .footer-inner {
        align-items: flex-start;

        flex-direction: column;
    }


    /* =========================
       MAPS
    ========================= */

    .map-container {
        min-height: 350px;
    }

    .map-container iframe {
        min-height: 350px;
    }

}


/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 500px) {

    .nav-shell {
        padding: 10px 12px;
    }

    .brand img {
        width: 100px;

        height: 40px;
    }

    .hamburger {
        width: 40px;

        height: 40px;
    }

    .hamburger span {
        width: 24px;

        height: 3px;
    }


    /* =========================
       CONTACT BAR - SMALL MOBILE
    ========================= */

    .contact-bar-inner {
        padding: 0 10px;

        gap: 5px;

        font-size: 10px;
    }

    .contact-bar-inner > a {
        flex-shrink: 1;

        min-width: 0;

        white-space: nowrap;

        overflow: hidden;
    }

    .consultation-button {
        flex: 0 0 auto;

        flex-shrink: 0;

        margin-left: auto;

        min-height: 36px;

        padding: 0 8px;

        font-size: 10px;

        white-space: nowrap;
    }


    /* =========================
       MOBILE NAVIGATION
    ========================= */

    .nav-links {
        padding-left: 14px;

        padding-right: 14px;
    }

    .nav-links > a,
    .products-trigger {
        font-size: 14px;
    }


    /* =========================
       HERO
    ========================= */

    .page-hero {
        min-height: 340px;
    }

    .page-hero .inner {
        padding: 42px 0;
    }


    /* =========================
       TYPOGRAPHY
    ========================= */

    h2 {
        font-size: 1.8rem;
    }


    /* =========================
       SECTIONS
    ========================= */

    .section {
        padding: 50px 0;
    }


    /* =========================
       CARDS
    ========================= */

    .card {
        padding: 24px;
    }


    /* =========================
       FLEXIBLE SOLUTIONS
    ========================= */

    .flexible-solutions ul {
        padding-left: 20px;
    }

    .flexible-solutions li {
        padding: 8px 0;
    }


    /* =========================
       TINT
    ========================= */

    .tint {
        padding: 55px 0;
    }


    /* =========================
       CTA
    ========================= */

    .cta {
        padding: 60px 20px;
    }


    /* =========================
       FOOTER
    ========================= */

    .footer-inner {
        width: min(100% - 36px, 1180px);
    }

}