/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Roboto+Flex:opsz,wght@8..144,100..1000&display=swap');

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

/* Theme variables */
:root {
    --primary-color: #2A6F97;
    --secondary-color: #F8F9FA;
    --tertiary-color: #CED4DA;
    --text-color: #212529;
}

/* Base */
body {
    font-family: 'PT Sans', sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='7' height='7' viewBox='0 0 5 5'><circle cx='2.5' cy='2.5' r='2.5' fill='%23d16002'/></svg>") 3.5 3.5, auto;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Crimson Text', serif;
    color: var(--primary-color);
    margin-bottom: 10px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

/* -------------------------------------------------------
   Header area: logo + social icons + navbar
   ------------------------------------------------------- */

.logo_bar {
    background-color: var(--primary-color);
    color: white;
    
    position: sticky;
    top: 0;
    z-index: 999;
}

.logo_bar .top_section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo img {
    height: 50px;
    display: block;
}
.social_links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social_links img {
    height: 30px;
    /* margin-left: 15px; */
    display: inline-block;
    filter: invert(1)
}

/* center hr */
.hr {
    width: 75%;
    margin: 5px auto;
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
}

/* Top full menu */
.top-full-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
}

.top-full-menu nav ul {
    list-style: none;
    display: flex;
    gap: 10px;
    align-items: center;
}

.top-full-menu nav ul li {
    margin: 0 5px;
    font-size: 1.05rem;
    padding: 0;
    color: white;
    position: relative;
    /* for dropdown positioning */
}

.top-full-menu nav ul li a {
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    display: inline-block;
    transition: background-color 0.2s, color 0.2s;
}

/* top-level links only */
.top-full-menu nav ul>li>a {
    color: white;
}

/* hover effect on top-level */
.top-full-menu nav ul>li>a:hover,
.top-full-menu nav ul>li>a:focus {
    background: rgba(255, 255, 255, 0.06);
    outline: none;
}

.more-info>ul.dropdown {
    display: none;
}
.more-info:hover>ul.dropdown {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 40px;
    left: 0;
    background: var(--primary-color);
    border-radius: 0px 5px 10px 10px;
    gap: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    flex-wrap: wrap;
    align-items: left;
}
.more-info>ul.dropdown li {
    margin-top: 0 !important;
    /* padding: 8px 5px; */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);

    animation: slideInRight 0.3s ease-in-out both;
}

.more-info>ul.dropdown li:nth-child(1) { animation-delay: 0.05s; }
.more-info>ul.dropdown li:nth-child(2) { animation-delay: 0.1s; }
.more-info>ul.dropdown li:nth-child(3) { animation-delay: 0.15s; }
.more-info>ul.dropdown li:nth-child(4) { animation-delay: 0.2s; }
.more-info>ul.dropdown li:nth-child(5) { animation-delay: 0.25s; }
.more-info>ul.dropdown li:nth-child(6) { animation-delay: 0.3s; }

.more-info>ul.dropdown li:hover {
    background: rgba(255, 255, 255, 0.06);
}
.more-info>ul.dropdown li a:hover {
    background: none;
}
.more-info>ul.dropdown li a {
    min-width: 150px;
}

/* ------------------------------
    Services Dropdown Multi-column
------------------------------ */

.all-services-menu>ul.services-dropdown {
    display: none;
}
.all-services-menu>ul.services-dropdown>li>ul.multi-coloum-dropdown-menu {
    display: none;
}
.all-services-menu:hover>ul.services-dropdown {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 40px;
    left: 10;
    background: var(--primary-color);
    border-radius: 0px 5px 10px 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    /* padding: 15px 20px; */
}
.all-services-menu>ul.services-dropdown>li {
    position: relative;
    animation: slideInRight 0.3s ease-in-out both;
}
.all-services-menu>ul.services-dropdown>li>a{
    position: relative;
    animation: slideInRight 0.3s ease-in-out both;
    min-width: 150px;
}
.all-services-menu>ul.services-dropdown>li:nth-child(1) { animation-delay: 0.05s; }
.all-services-menu>ul.services-dropdown>li:nth-child(2) { animation-delay: 0.1s; }
.all-services-menu>ul.services-dropdown>li:nth-child(3) { animation-delay: 0.15s; }


.all-services-menu>ul.services-dropdown>li:hover>ul.multi-coloum-dropdown-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 150px;
    background: var(--primary-color);
    border-radius: 0px 5px 10px 10px;
    gap: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}
.all-services-menu>ul.services-dropdown>li>ul.multi-coloum-dropdown-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideInRight 0.2s ease-in-out both;
}
.all-services-menu>ul.services-dropdown>li>ul.multi-coloum-dropdown-menu>li>a {
    min-width: 150px;
}

.all-services-menu>ul.services-dropdown>li>ul.multi-coloum-dropdown-menu>li:nth-child(1) { animation-delay: 0.05s; }
.all-services-menu>ul.services-dropdown>li>ul.multi-coloum-dropdown-menu>li:nth-child(3) { animation-delay: 0.1s; }
.all-services-menu>ul.services-dropdown>li>ul.multi-coloum-dropdown-menu>li:nth-child(2) { animation-delay: 0.15s; }
.all-services-menu>ul.services-dropdown>li>ul.multi-coloum-dropdown-menu>li:nth-child(4) { animation-delay: 0.05s; }
.all-services-menu>ul.services-dropdown>li>ul.multi-coloum-dropdown-menu>li:nth-child(5) { animation-delay: 0.1s; }
.all-services-menu>ul.services-dropdown>li>ul.multi-coloum-dropdown-menu>li:nth-child(6) { animation-delay: 0.15s; }
.all-services-menu>ul.services-dropdown>li>ul.multi-coloum-dropdown-menu>li:nth-child(9) { animation-delay: 0.05s; }
.all-services-menu>ul.services-dropdown>li>ul.multi-coloum-dropdown-menu>li:nth-child(7) { animation-delay: 0.1s; }
.all-services-menu>ul.services-dropdown>li>ul.multi-coloum-dropdown-menu>li:nth-child(8) { animation-delay: 0.15s; }



/* Container so it aligns properly in nav */
.search-bar {
    list-style: none;
}

/* Wrapper */
.search-bar {
    list-style: none;
}

/* Glassy form */
.search-bar form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(12px);
    padding: 0;
    border-radius: 40px;
    /* pill shape */
    overflow: hidden;
    /* ensures button attaches cleanly */
}

/* Input styling */
.search-bar input[type="search"] {
    border: none;
    outline: none;
    padding: 10px 16px;
    font-size: 15px;
    width: 180px;
    background: transparent;
    color: white;
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.85);
}

/* Button (attached to right) */
.search-bar button {
    background: rgba(44, 61, 79, 0.7);
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.25s ease;
}

.search-bar button:hover {
    background: rgba(26, 38, 51, 0.85);
}

/* Icon */
.search-bar button img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
    /* make SVG white */
}


/* -------------------------------------------------------
   Sticky Contact
   ------------------------------------------------------- */

.contact-sticky {
    position: fixed;
    z-index: 1000;
    top: 90%;
    right: 25px;
    background-color: var(--primary-color);
}
.contact-sticky a {
    color: white;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    font-size: 1rem;
    border-radius: 5px 0 0 5px;
    transition: background-color 0.2s, color 0.2s;
}

/* Animation: hidden by default, reveal with `.show` class */
.contact-sticky {
    transform: translateY(20px) scale(1);
    opacity: 0;
    visibility: hidden;
    transition: transform 320ms cubic-bezier(.2,.9,.2,1), opacity 320ms ease, visibility 0s linear 320ms;
    will-change: transform, opacity;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.contact-sticky.show {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
    transition: transform 320ms cubic-bezier(.2,.9,.2,1), opacity 320ms ease;
    animation: slideUpFade 340ms cubic-bezier(.2,.9,.2,1);
}

/* subtle pulse on hover */
.contact-sticky.show:hover {
    animation: pulseScale 700ms ease-in-out;
}

@keyframes slideUpFade {
    from {
        transform: translateY(20px) scale(0.98);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes pulseScale {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(0) scale(1.06); }
    100% { transform: translateY(0) scale(1); }
}

/* ------------------------
    Hamburger Menu
-------------------------*/

.hamburger {
    width: 30px;
    height: 17px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    display: none;
    margin-bottom: 4px;
}

.hamburger span {
    height: 3px;
    width: 100%;
    background: #ffffff;
    /* border-radius: 2px; */
    transition: 0.4s;
}

/* ----- ANIMATION WHEN ACTIVE ----- */
.hamburger.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}
/* ----- KEYFRAME ANIMATIONS FOR MOBILE MENU ----- */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}
/* Mobile Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    background-color: var(--primary-color);
    position: absolute;
    top: 70px;
    right: 20px;
    width: 200px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 9999;

    animation: slideOutRight 0.4s ease-in-out forwards;

}
.mobile-menu ul {
    list-style: none;
    padding: 10px 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}
.mobile-menu ul li {
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideInRight 0.4s ease-in-out both;
}

.mobile-menu ul li:nth-child(1) { animation-delay: 0.05s; }
.mobile-menu ul li:nth-child(2) { animation-delay: 0.1s; }
.mobile-menu ul li:nth-child(3) { animation-delay: 0.15s; }
.mobile-menu ul li:nth-child(4) { animation-delay: 0.2s; }
.mobile-menu ul li:nth-child(5) { animation-delay: 0.25s; }
.mobile-menu ul li:nth-child(6) { animation-delay: 0.3s; }
.mobile-menu ul li:nth-child(7) { animation-delay: 0.35s; }
.mobile-menu ul li:nth-child(8) { animation-delay: 0.4s; }
.mobile-menu ul li:nth-child(9) { animation-delay: 0.45s; }
.mobile-menu ul li:nth-child(10) { animation-delay: 0.5s; }
.mobile-menu ul li:nth-child(11) { animation-delay: 0.55s; }

.mobile-menu ul li a {
    color: white;
    font-size: 1rem;
    display: block;
}
.mobile-menu ul li a:hover {
    background: rgba(255, 255, 255, 0.06);
}





/* -------------------------------------------------------
   Home page: full-screen video, navbar hidden until scroll to bottom
   ------------------------------------------------------- */

/* Remove any padding so hero can fill the viewport */
body.home-page {
    overflow-x: hidden;
}
body.home-page .main,
body.home-page .content {
    padding: 0;
    margin: 0;
    max-width: none;
}

/* Hero: full browser area, above other content; in flow so it scrolls under navbar */
.home-hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    left: 50%;
    margin-left: -50vw;
    overflow: hidden;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
    z-index: 10;
}

.home-hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-scroll-sentinel {
    height: 0;
    pointer-events: none;
}

/* On home page: navbar hidden by default, revealed when user scrolls to bottom; sits above video */
body.home-page .logo_bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transform: translateY(-100%);
    transition: transform 0.35s ease-out;
    z-index: 1000;
}

body.home-page .logo_bar.navbar-visible {
    transform: translateY(0);
}

/* Other pages: keep default sticky navbar (no change) */

/* Media query to only show hamburger if device width is less than 1000px */
@media (max-width: 1000px) {
    .hamburger {
        display: flex;
    }
    .top-full-menu {
        display: none;
    }
    .mobile-menu.active{
        display: flex;
        animation: slideInRight 0.4s ease-in-out forwards;
    }
}

