@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Poppins:wght@500&display=swap');
*{
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: "Poppins", sans-serif;
}
html{
    overflow-y: scroll;
}

body.modal-open {
    padding-right: 0px !important; 
}


.navbar {
    transition: top 0.3s;
}
  
.navbar-hidden {
  top: -100px !important; 
  position: fixed !important;
  width: 100% !important;
  z-index: 1000 !important;
}


.custom-dropdown {
    display: none;
    position: absolute;
    background-color: white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    padding: 12px 16px;
    z-index: 1000;
    margin-top: 10px; /* Adjust to control dropdown position */
}

.custom-dropdown{
    margin-top: -5px;
    border-radius: 3px;
}
.custom-dropdown ul {
    list-style: none;
    padding: 0px;
}

.custom-dropdown ul li {
    padding: 10px 40px 10px 0px;
}

.custom-dropdown ul li a {
    text-decoration: none;
    color: var(--brand-ink);
    display: block;
}

.submenu{
    width: 200%;
    border-radius: 3px;
}

.custom-dropdown ul li a:hover {
    color: var(--brand-primary);
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .submenu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background-color: white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    padding: 12px 16px;
}

.dropdown-submenu:hover .submenu {
    display: block;
}

.navbar-nav .nav-item.dropdown-custom:hover .custom-dropdown {
    display: block;
}

/* Ensure the dropdowns don't affect the navbar layout */
.navbar-nav .nav-item {
    position: relative;
}


.navbar-nav{
    font-size: 13px;
}
.nav-item input{
    font-size: 13px; 
    border-radius: 20px;
}
.navbtn{
    font-size: 13px !important; 
    border-radius: 20px !important; 
    margin-left: -35px !important; 
    color: white !important;
}
.modal-dialog{
    max-width: 25% !important;
}
.modal-header{
    border-bottom: none !important;
}
.quick-enquiry-btn{
    position: fixed;
    top: 50%;
    right: 0px;
    font-size: 18px !important;
    padding: 10px 15px 10px 15px !important;
    transform: rotate(270deg);
    transform-origin: bottom right;
    z-index: 1000;
    padding: 10px 20px;
    border-radius: 5px 0 0 5px;
}

.quick-enquiry-btn{
    background-color: var(--brand-accent) !important;
    color: var(--brand-on-primary) !important;
    border-color: var(--brand-accent);
}
.quick-enquiry-btn:hover{
    background-color: var(--brand-accent-hover) !important;
    border-color: var(--brand-accent-hover);
}
.form-group input{
    font-size: 13px;
}
.form-group textarea{
    font-size: 13px;
}
.form-check-label{
    font-size: 13px;
}
.form-control:focus {
    border-color: var(--brand-line) !important;
    box-shadow: none !important;
}
.form-check-input:focus{
    border-color: var(--brand-line) !important;
    box-shadow: none !important;
}
.btn-close:focus{
    border: none;
    box-shadow: none !important;
}
.modal-btn{
    background-color: var(--brand-primary-deep) !important;
}
.destination-search{
    font-size: 13px !important; 
    border-radius: 20px !important;
}
.btn-warning{
    font-size: 13px !important; 
    border-radius: 20px !important; 
    margin-left: -35px !important; 
    color: white !important;
}
.team-header{
    position: relative;
    overflow: hidden;
}
.grundge1{
    position: absolute;
    bottom: -3px;
    left: 0px;
    width: 100%;
}

/* ==========================================================================
   ATRIPS TEAM PAGE
   Four stacked sections: intro, mission & vision, planner roles, why ATrips.
   Class-scoped selectors so they beat brand.css's element-level heading
   colours whatever the stylesheet order, and clamp() sizing so everything
   scales smoothly instead of stepping at breakpoints.
   ========================================================================== */

/* ---------- shared bits ---------- */
.tm-eyebrow{
    margin: 0 0 12px;
    color: var(--brand-teal-deep);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.4px;
    text-transform: uppercase;
}
.tm-eyebrow-light{
    color: var(--brand-teal);
}
.tm-title{
    margin: 0 0 clamp(18px, 2.4vw, 26px);
    color: var(--brand-ink);
    font-size: clamp(28px, 4.6vw, 46px);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -0.5px;
}
.tm-h2{
    margin: 0 0 clamp(16px, 2vw, 22px);
    color: var(--brand-ink);
    font-size: clamp(25px, 3.4vw, 38px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.3px;
}
.tm-h2-light{
    color: var(--brand-white);
}
.tm-title span,
.tm-h2 span{
    background: linear-gradient(100deg,
        var(--brand-orange) 0%,
        var(--brand-coral) 55%,
        var(--brand-pink) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--brand-coral);
}
.tm-head{
    max-width: 760px;
    margin: 0 auto clamp(28px, 4vw, 44px);
    text-align: center;
}
.tm-sub{
    margin: 0;
    color: var(--brand-body);
    font-size: clamp(14.5px, 1.6vw, 16.5px);
    line-height: 1.7;
}

/* ---------- 1. intro ---------- */
.tm-intro{
    padding: clamp(38px, 6vw, 76px) 0 clamp(28px, 4vw, 50px);
}
.tm-intro .container{
    max-width: 900px;
}
.tm-intro-copy p{
    margin: 0 0 16px;
    color: var(--brand-body);
    font-size: clamp(14.5px, 1.55vw, 16.5px);
    line-height: 1.78;
}
.tm-intro-copy .tm-lead{
    color: var(--brand-ink);
    font-size: clamp(16px, 2vw, 19.5px);
    font-weight: 500;
    line-height: 1.62;
}

/* ---------- 2. mission & vision ---------- */
.tm-mv{
    padding: clamp(30px, 4.5vw, 60px) 0;
    background:
        radial-gradient(110% 90% at 0% 0%, var(--brand-surface) 0%, transparent 62%),
        radial-gradient(100% 90% at 100% 100%, var(--brand-sand-soft) 0%, transparent 60%);
}
.tm-mv-block{
    position: relative;
    margin-top: 20px;
    padding: 18px 20px 18px 22px;
    border-radius: 0 14px 14px 0;
    background-color: var(--brand-white);
    box-shadow: 0 10px 28px rgba(6, 32, 62, .08);
}
.tm-mv-block::before{
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    border-radius: 4px;
    background: var(--brand-gradient);
}
.tm-mv-tag{
    display: inline-block;
    margin-bottom: 8px;
    padding: 3px 12px;
    border-radius: 20px;
    background-color: var(--brand-coral-soft);
    color: var(--brand-coral-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}
.tm-mv-tag-teal{
    background-color: var(--brand-teal-soft);
    color: var(--brand-teal-deep);
}
.tm-mv-block p{
    margin: 0;
    color: var(--brand-body);
    font-size: clamp(14.5px, 1.6vw, 16.5px);
    line-height: 1.72;
}
.tm-mv-block strong{
    color: var(--brand-ink);
    font-weight: 600;
}
.tm-mv-art{
    text-align: center;
}

/* ---------- travel collage ----------
   Three photos, overlapped and tilted, each sitting in a white mount. The
   container carries an aspect-ratio and the shots are placed as percentages
   inside it, so the whole arrangement scales as one piece and the overlaps
   hold at every width instead of coming apart. */
.tm-collage{
    position: relative;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    aspect-ratio: 1 / 1.05;
}
.tm-shot{
    position: absolute;
    margin: 0;
    padding: 8px;                       /* the white border */
    background: var(--brand-white, #fff);
    border-radius: 16px;
    box-shadow: 0 18px 38px rgba(6, 32, 62, .18);
    overflow: hidden;
}
.tm-shot img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 9px;                 /* a touch tighter than the mount */
}

/* Each frame's tilt lives in --tilt, and both the static transform and the
   drift keyframes read it. One value to change per frame, and the phone
   override below cannot fall out of step with the animation. */
.tm-shot{
    transform: rotate(var(--tilt, 0deg));
}
/* adventure, top left - the tallest of the three */
.tm-shot-1{
    --tilt: -3deg;
    left: 0;
    top: 0;
    width: 58%;
    aspect-ratio: 4 / 5;
    z-index: 2;
}
/* the unhurried middle of a trip, pushed right so it breaks the first frame */
.tm-shot-2{
    --tilt: 3deg;
    right: 0;
    top: 26%;
    width: 52%;
    aspect-ratio: 4 / 3;
    z-index: 3;
}
/* local colour, sitting lowest and in front */
.tm-shot-3{
    --tilt: -2deg;
    left: 8%;
    bottom: 0;
    width: 56%;
    aspect-ratio: 3 / 2;
    z-index: 4;
}

/* the same soft brand wash the globe illustration used to sit on, so the
   collage keeps the section's colour rather than floating on bare white */
.tm-collage-glow{
    position: absolute;
    z-index: 0;
    top: 8%;
    left: 6%;
    width: 88%;
    height: 84%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%,
                rgba(35, 196, 207, .22),
                rgba(253, 194, 41, .18) 55%,
                rgba(247, 72, 102, .16));
    filter: blur(6px);
}

/* ---------- 3. planner roles ---------- */
.tm-roles{
    padding: clamp(34px, 5vw, 70px) 0;
}
/* Five cards in a three-across grid leaves a lopsided gap on the second row,
   so this is flex rather than grid: the orphan row centres itself. */
.tm-role-grid{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(14px, 1.8vw, 22px);
    margin: 0;
    padding: 0;
    list-style: none;
}
.tm-role{
    /* the basis has to exceed a quarter of the row, otherwise four cards fit
       and the layout becomes 4 + 1 instead of the intended 3 + 2 */
    flex: 1 1 30%;
    max-width: calc(33.333% - clamp(14px, 1.8vw, 22px));
}
.tm-role{
    padding: clamp(20px, 2.4vw, 28px);
    border: 1px solid var(--brand-line);
    border-radius: 16px;
    background-color: var(--brand-white);
    /* the "subtle shadow" the grid was asked for */
    box-shadow: 0 8px 22px rgba(6, 32, 62, .07);
}
.tm-role-ico{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    border-radius: 14px;
    background-color: var(--brand-coral-soft);
    color: var(--brand-coral-dark);
}
.tm-role-ico svg{
    width: 24px;
    height: 24px;
}
.tm-role[data-tone="orange"] .tm-role-ico{ background-color: #FEEFE0; color: var(--brand-orange-dark); }
.tm-role[data-tone="gold"]   .tm-role-ico{ background-color: #FEF5DA; color: var(--brand-gold-dark); }
.tm-role[data-tone="teal"]   .tm-role-ico{ background-color: var(--brand-teal-soft); color: var(--brand-teal-deep); }
.tm-role[data-tone="navy"]   .tm-role-ico{ background-color: var(--brand-surface); color: var(--brand-primary); }

.tm-role h3{
    margin: 0 0 8px;
    color: var(--brand-ink);
    font-size: clamp(16px, 1.8vw, 18.5px);
    font-weight: 700;
    line-height: 1.3;
}
.tm-role p{
    margin: 0;
    color: var(--brand-body);
    font-size: 14px;
    line-height: 1.68;
}

/* ---------- 4. why atrips ---------- */
.tm-why{
    padding: clamp(38px, 5.5vw, 76px) 0 clamp(42px, 6vw, 84px);
    background-image: linear-gradient(140deg, var(--brand-primary) 0%, var(--brand-navy-900) 100%);
}
.tm-why-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 2vw, 26px);
    margin: 0;
    padding: 0;
    list-style: none;
}
.tm-why-box{
    padding: clamp(22px, 2.6vw, 32px);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 18px;
    background-color: rgba(255, 255, 255, .06);
}
.tm-why-ico{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 16px;
    border-radius: 16px;
    background-color: rgba(255, 255, 255, .1);
    color: var(--brand-coral);
}
.tm-why-ico svg{
    width: 27px;
    height: 27px;
}
.tm-why-ico[data-tone="gold"]{ color: var(--brand-gold); }
.tm-why-ico[data-tone="teal"]{ color: var(--brand-teal); }

.tm-why-box h3{
    margin: 0 0 9px;
    color: var(--brand-white);
    font-size: clamp(16.5px, 1.9vw, 19px);
    font-weight: 700;
    line-height: 1.32;
}
.tm-why-box p{
    margin: 0;
    color: rgba(255, 255, 255, .74);
    font-size: 14px;
    line-height: 1.68;
}

.tm-why-cta{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: clamp(30px, 4vw, 46px);
}
.tm-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 28px;
    border: 2px solid transparent;
    border-radius: 20px;
    color: var(--brand-white);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .3s ease, border-color .3s ease,
                transform .3s ease, box-shadow .3s ease;
}
.tm-btn-primary{
    background-color: var(--brand-accent);
    border-color: var(--brand-accent);
}
.tm-btn-primary:hover,
.tm-btn-primary:focus{
    background-color: var(--brand-accent-hover);
    border-color: var(--brand-accent-hover);
    color: var(--brand-white);
}
.tm-btn-wa{
    background-color: var(--wa-green);
    border-color: var(--wa-green);
}
.tm-btn-wa:hover,
.tm-btn-wa:focus{
    background-color: var(--wa-green-dark);
    border-color: var(--wa-green-dark);
    color: var(--brand-white);
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference){
    .tm-role,
    .tm-why-box{
        transition: transform .35s ease, box-shadow .35s ease,
                    background-color .35s ease, border-color .35s ease;
    }
    .tm-role:hover{
        transform: translateY(-6px);
        box-shadow: 0 18px 38px rgba(6, 32, 62, .14);
    }
    .tm-why-box:hover{
        transform: translateY(-6px);
        background-color: rgba(255, 255, 255, .1);
        border-color: rgba(255, 255, 255, .24);
    }
    .tm-role-ico,
    .tm-why-ico{
        transition: transform .35s ease;
    }
    .tm-role:hover .tm-role-ico,
    .tm-why-box:hover .tm-why-ico{
        transform: scale(1.08) rotate(-4deg);
    }
    .tm-btn:hover{
        transform: translateY(-3px);
        box-shadow: 0 12px 26px rgba(0, 0, 0, .26);
    }
    /* Each frame drifts on its own timing, so the collage breathes instead of
       sliding as one block. The rotation is repeated inside the keyframes
       because transform is a single property - leaving it out would flatten
       the tilt the moment the animation takes over. */
    .tm-shot{
        transition: transform .4s ease, box-shadow .4s ease;
    }
    .tm-shot-1{ animation: tmDrift1 7s ease-in-out infinite; }
    .tm-shot-2{ animation: tmDrift2 8s ease-in-out infinite .6s; }
    .tm-shot-3{ animation: tmDrift3 7.5s ease-in-out infinite .3s; }

    @keyframes tmDrift1{
        0%, 100% { transform: rotate(var(--tilt)) translateY(0); }
        50%      { transform: rotate(var(--tilt)) translateY(-10px); }
    }
    @keyframes tmDrift2{
        0%, 100% { transform: rotate(var(--tilt)) translateY(0); }
        50%      { transform: rotate(var(--tilt)) translateY(-8px); }
    }
    @keyframes tmDrift3{
        0%, 100% { transform: rotate(var(--tilt)) translateY(0); }
        50%      { transform: rotate(var(--tilt)) translateY(-12px); }
    }

    /* Hovering a frame straightens it and lifts it clear of the others; the
       rest of the group holds still while you look at it.
       The hovered one needs `animation: none`, not just a pause - a paused
       animation still applies its current keyframe, and a running keyframe
       outranks a plain rule, so the tilt would win over this transform. */
    .tm-collage:hover .tm-shot{
        animation-play-state: paused;
    }
    .tm-shot:hover{
        animation: none;
        transform: rotate(0deg) translateY(-6px) scale(1.03);
        box-shadow: 0 26px 54px rgba(6, 32, 62, .28);
        z-index: 5;
    }
}

/* ---------- responsive ---------- */
@media screen and (max-width: 991px){
    .tm-role{
        flex: 1 1 45%;
        max-width: calc(50% - clamp(14px, 1.8vw, 22px));
    }
    .tm-why-grid{
        grid-template-columns: 1fr;
    }
    .tm-mv-art{
        order: -1;                 /* collage above the copy once stacked */
        margin-bottom: 18px;
    }
    .tm-collage{
        max-width: 400px;
    }
}
@media screen and (max-width: 575px){
    .tm-role{
        flex: 1 1 100%;
        max-width: 100%;
    }
    .tm-head{
        text-align: left;
    }
    /* On a phone the mount and the tilt both have to come down, or the frames
       eat the photo and the corners poke past the column. */
    .tm-collage{
        max-width: 300px;
    }
    .tm-shot{
        padding: 5px;
        border-radius: 12px;
        box-shadow: 0 10px 22px rgba(6, 32, 62, .16);
    }
    .tm-shot img{
        border-radius: 8px;
    }
    .tm-shot-1{ --tilt: -2deg; }
    .tm-shot-2{ --tilt: 2deg; }
    .tm-shot-3{ --tilt: -1.5deg; }
    .tm-why-cta .tm-btn{
        flex: 1 1 100%;
    }
}

.footer{
    background-color: var(--brand-primary);
    position: relative;
}
.grundge2{
    position: absolute;
    transform: rotateX(180deg);
    width: 100%;
    top: -4px;
}
.text-heading{
    font-size: 16px;
    letter-spacing: 1px;
}
.text-content a{
    text-decoration: none;
    color: var(--brand-white);
    font-size: 14px;
}
.text-content a span{
    margin-left: 31px;
}
.footer-shade{
    position: relative;
    background-color: var(--brand-primary-deep);
    height: 80px;
    bottom: 0px;
}

@media screen and (max-width:1400px) {
    
    .modal-dialog{
        max-width: 30% !important;
    }
}
@media screen and (max-width:1200px) {

    .footer-logo{
        position: relative;
        left: -25px;
    }
    .modal-dialog{
        max-width: 35% !important;
    }
}
@media screen and (max-width:1100px){
    .modal-dialog{
        max-width: 40% !important;
    }
    .contact-us-page{
        align-items: center;
        justify-content: center;
        font-size: 14px;
    }
}
@media screen and (max-width:992px) and (min-width:768px) {
 
    .footer-logo{
        position: relative;
        left: -40px;
    }
    .text-heading{
        font-size: 14px;
    }
    .text-content a{
        font-size: 11px;
    }
    .text-content a span{
        margin-left: 28px;
    }
    .quick-link{
        position: relative;
        left: 70px;
    }
    .contact{
        position: relative;
        left: 40px;
    }
    .social{
        position: relative;
        left: 24px;
    }
    .modal-dialog{
        max-width: 45% !important;
    }
}
@media screen and (max-width:500px) {
 
    .footer-logo{
        text-align: center;
    }
    .quick-link h6{
        font-size: 15px;
    }
    .quick-link h6 a{
        font-size: 12px;
    }
    .contact{
        padding-left: 50px !important;
    }
    .contact h6{
        position: relative;
        left: 12px;
        font-size: 15px;
    }
    .contact h6 a{
        font-size: 11px;
    }
    .social{
        text-align: center;
    }
    .social h6{
        font-size: 15px;
        display: flex;
        justify-content: center;
        justify-content: space-around;
    }
    .social h6 a{
        margin-top: 10px;
    }
    .modal-dialog{
        position: absolute;
        top: 100px;
        left: 40px;
        max-width: 100% !important;
    }
}
@media screen and (max-width:406px) {
 
    .quick-link h6{
        font-size: 15px;
    }
    .quick-link h6 a{
        font-size: 12px;
    }
    .contact{
        padding-left: 30px !important;
    }
    .contact h6{
        position: relative;
        left: 12px;
        font-size: 15px;
    }
    .contact h6 a{
        font-size: 11px;
    }
    .social{
        text-align: center;
    }
    .social h6{
        font-size: 15px;
        display: flex;
        justify-content: center;
        justify-content: space-around;
    }
    .social h6 a{
        margin-top: 10px;
    }
    .modal-dialog{
        position: absolute;
        top: 100px;
        left: 12px;
        max-width: 100% !important;
    }
    
}