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

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img {
  max-width: 100%;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 700;
  line-height: 1.2;
}

.brand-tag {
  font-size: 12px;
  line-height: 1.3;
}

/* Desktop Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  white-space: nowrap;
}

.nav-ctas {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-phone {
  text-decoration: none;
  white-space: nowrap;
}

.nav-cta {
  text-decoration: none;
  white-space: nowrap;
}

/* ================================
   MOBILE MENU BUTTON
================================ */

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: currentColor;
  transition: all 0.3s ease;
}

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

@media (max-width: 1100px) {

  .nav-menu {
    gap: 15px;
  }

  .nav-links {
    gap: 13px;
  }

  .nav-links a {
    font-size: 14px;
  }

  .nav-ctas {
    gap: 10px;
  }

  .nav-phone {
    font-size: 13px;
  }

  .nav-cta {
    font-size: 13px;
  }
}

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

@media (max-width: 900px) {

  .nav {
    min-height: 70px;
    position: relative;
  }

  /* Show hamburger */
  .menu-toggle {
    display: flex;
  }

  /* Hide desktop menu initially */
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    width: 100%;

    padding: 20px;

    background: #0b0b0a;

    flex-direction: column;
    align-items: stretch;

    gap: 0;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);

    z-index: 1000;
  }

  /* Open menu */
  .nav-menu.active {
    display: flex;
  }

  /* Navigation links */
  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;

    padding: 13px 5px;

    border-bottom: 1px solid #eee;

    font-size: 15px;
  }

  /* CTA area */
  .nav-ctas {
    display: flex;
    flex-direction: column;
    align-items: stretch;

    width: 100%;

    gap: 10px;

    margin-top: 15px;
  }

  .nav-phone,
  .nav-cta {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 15px;
  }

  /* Hamburger animation */
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

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

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

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

@media (max-width: 600px) {

  .nav {
    min-height: 65px;
  }

  .brand img {
    max-width: 55px;
  }

  .brand-name {
    font-size: 16px;
  }

  .brand-tag {
    font-size: 9px;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .nav-menu {
    padding: 15px;
  }
}

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

@media (max-width: 400px) {

  .brand-tag {
    display: none;
  }

  .brand-name {
    font-size: 15px;
  }

  .brand img {
    max-width: 48px;
  }
}

