/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.1rem 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 65px;
    width: auto;
}

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

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a:hover::after {
    width: 100%;
}

.navbar .btn {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    flex-shrink: 0;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

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

.site-footer {
    background: #2f2f2f;
    color: #d9d9d9;
}

.footer-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 60px 20px 0;
}

/* -------------------------------
   MAIN GRID
-------------------------------- */
.footer-main {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 48px;
    align-items: start;
    padding-bottom: 48px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

/* -------------------------------
   BRAND COLUMN
-------------------------------- */
.footer-brand {
    gap: 24px;
}

.footer-logo img {
    max-width: 160px;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(77, 170, 167, 0.2);
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.footer-social img {
    width: 18px;
    height: 18px;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 1;
}

.footer-social a:hover {
    background: #4DAAA7;
    transform: translateY(-2px);
}

.footer-social a:hover img {
    opacity: 1;
}

/* -------------------------------
   TITLES
-------------------------------- */
.footer-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 18px;
    letter-spacing: 0.3px;
}

/* -------------------------------
   LINKS
-------------------------------- */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    text-decoration: none;
    color: #cfcfcf;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    position: relative;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 1px;
    background: #4DAAA7;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.footer-links a:hover::after {
    transform: scaleX(1);
}

/* -------------------------------
   CONTACT
-------------------------------- */
.footer-contact p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
    transition: color 0.25s ease;
}

.footer-contact p:hover {
    color: #ffffff;
}

.footer-contact strong {
    color: #ffffff;
    font-weight: 600;
}

/* -------------------------------
   FOOTER BOTTOM
-------------------------------- */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copy {
    font-size: 0.85rem;
    color: #bcbcbc;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 28px;
}

.footer-legal a {
    font-size: 0.85rem;
    color: #bcbcbc;
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
}

.footer-legal a:hover {
    color: var(--primary-color);
}

.footer-legal a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 1px;
    background: #4DAAA7;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.footer-legal a:hover::after {
    transform: scaleX(1);
}

/* Accessibility */
.footer-links a:focus-visible,
.footer-legal a:focus-visible,
.footer-social a:focus-visible {
    outline: 2px solid #4DAAA7;
    outline-offset: 4px;
    border-radius: 4px;
}

/* Cursor clarity */
.footer-links a,
.footer-legal a,
.footer-social a {
    cursor: pointer;
}

/* ============================================
   RESPONSIVE - LAYOUT
   ============================================ */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }
}

@media (max-width: 768px) {
    /* Navbar fixed at top - light gray background */
    .navbar {
        height: 60px;
        display: flex;
        align-items: center;
        background-color: #F5F5F5;
        box-shadow: none;
    }

    .nav-wrapper {
        padding: 0 16px;
        position: relative;
        justify-content: center;
        height: 100%;
        width: 100%;
        display: flex;
        align-items: center;
    }

    /* Logo centered on mobile */
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .logo img {
        height: 32px;
    }

    .navbar .btn {
        display: none;
    }

    /* Hamburger on the LEFT for mobile - teal color */
    .hamburger {
        display: flex;
        order: -1;
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        gap: 4px;
    }

    .hamburger span {
        width: 22px;
        height: 2px;
        background-color: #4DAAA7;
        border-radius: 1px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .footer-container {
        padding: 50px 20px 0;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-brand {
        align-items: center;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .logo img {
        height: 42px;
    }

    .navbar .btn {
        padding: 9px 18px;
        font-size: 13px;
    }
}
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    right: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: #ffffff;
    flex-direction: column;
    gap: 24px;
    padding: 40px 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .hamburger {
    display: flex;
  }
}

/* ---------- TABLET & BELOW ---------- */
@media (max-width: 1024px) {
  .nav-menu {
    gap: 28px;
  }
}

/* ---------- MOBILE (Figma: 412px) ---------- */
@media (max-width: 768px) {
  .navbar {
    background: #ffffff;
  }

  .nav-wrapper {
    padding: 8px 0;
  }

  .logo img {
    height: 50px;
  }

  /* Show hamburger */
  .hamburger {
    display: flex;
    z-index: 1101;
  }

  .hamburger span {
    width: 24px;
    height: 2px;
  }

  /* Mobile menu container */
  .nav-menu {
    position: fixed;
    top: 66px; /* navbar height */
    right: 0;
    width: 100%;
    height: calc(100vh - 66px);
    display: flex;
    background: #ffffff;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 24px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }

  /* Active state */
  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-menu li a {
    font-size: 16px;
    font-weight: 500;
    color: #353535;
  }

  .nav-menu li a:hover {
    color: #4DAAA7;
  }
}
