/* --- GENERAL NAVBAR LAYOUT --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(6, 50, 50, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo img {
  height: 50px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  color: #063232;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #DC8327;
}

.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  z-index: 1001;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #063232;
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* --- SERVICES DROPDOWN SYSTEM --- */

/* Desktop Base */
.nav-dropdown {
    position: relative;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.dropdown-trigger i {
    font-size: 0.75em;
    transition: transform 0.3s ease;
}

/* Dropdown Menu - Desktop */
.dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #ffffff;
    min-width: 240px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    list-style: none;
    margin: 15px 0 0 0;
    border: 1px solid rgba(6, 50, 50, 0.05);
}

/* Triangle Arrow */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #ffffff;
}

/* Desktop Hover */
@media screen and (min-width: 1025px) {
    .nav-dropdown:hover .dropdown-content {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
    
    .nav-dropdown:hover .dropdown-trigger i {
        transform: rotate(180deg);
        color: #DC8327;
    }
}

.dropdown-content li a {
    display: block;
    padding: 10px 24px;
    color: #063232;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-content li a:hover {
    background-color: #f4f8f8;
    color: #DC8327 !important;
    padding-left: 28px;
}

/* --- MOBILE RESPONSIVENESS --- */
@media screen and (max-width: 1024px) {
    .nav-burger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        left: auto !important; /* Ensure it never shifts to the left */
        width: 300px;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 40px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s, box-shadow 0.4s;
        box-shadow: -10px 0 30px rgba(0,0,0,0.05);
        gap: 20px;
        overflow-y: auto;
        visibility: hidden; /* Hide from screen readers and interaction when closed */
        z-index: 1000;
    }

    .nav-links.open {
        right: 0;
        visibility: visible;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-dropdown {
        width: 100%;
    }

    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        transform: none;
        box-shadow: none;
        background: #f8fbfb;
        margin-top: 10px;
        opacity: 1;
        visibility: visible;
        border: none;
        padding: 0;
    }

    .nav-dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown-trigger {
        justify-content: space-between;
        padding: 10px 0;
        width: 100%;
    }

    .dropdown-content li a {
        padding: 12px 20px;
        border-bottom: 1px solid rgba(6, 50, 50, 0.05);
    }
    
    .dropdown-content li:last-child a {
        border-bottom: none;
    }
}