/* ============================================
   LOGO TEXT
============================================ */
.logo-text {
  display: flex !important;
  flex-direction: column;
  gap: 0.25rem;
}

.logo-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #fff;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: #aaa;
}

/* ============================================
   NAVBAR
============================================ */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
}

/* NAV CONTENT */
.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  gap: 2rem;
}

/* LOGO */
.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-img {
  height: 50px;
  object-fit: contain;
}

/* ============================================
   DESKTOP NAV LINKS
============================================ */
.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: #fff;
  font-size: 1rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.5rem;
  transition: 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
color: hsl(var(--primary));
}


.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: hsl(var(--primary));
  transition: width var(--transition-base);
}


.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
/* ===========================
   MOBILE NAV BASE
=========================== */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    margin-top: 0.5rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.mobile-nav.active {
    display: flex;
    text-align: left;
    background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--glass-border);
    opacity: 1;
    max-height: 500px;
}

/* Remove the duplicate .hidden rule and use only one approach */
.hidden {
    display: none !important;
}

/* ===========================
   MOBILE RESPONSIVE RULES
=========================== */
/* Phones/Tablets */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; background-color: var(--glass-bg);  border: none; color: white;} /* Changed to flex for icon alignment */

  /* Remove any forced display: none on mobile-nav */
}

.menu-icon {
  width: 1.5rem;
  height: 1.5rem;
}

/* ============================================
   CONTRACT TABS
============================================ */
.contract-tabs-container {
  width: 100%;
  background: var(--glass-bg);
  padding: 1rem 0;
  /* margin-top: 80px; To avoid hiding under navbar */
  overflow-x: auto;
}

.contract-tabs-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

.contract-tabs {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contract-tab {
  padding: 0.75rem 1.5rem;
  background: #333;
  color: #ccc;
  border: 1px solid #444;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
  white-space: nowrap;
  font-weight: 500;
}

.contract-tab:hover {
  background: #3a3a3a;
  color: #fff;
  transform: translateY(-2px);
}

.contract-tab.active {
  background: #008cff;
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,140,255,0.4);
}

/* ============================================
   FORM BOXES
============================================ */
.forms-wrapper {
  padding: 2rem 1rem;
  background: var(--glass-bg);
}

.form-container {
  display: none;
  animation: fadeIn 0.3s ease;
}

.form-container.active {
  display: block;
}

.form-box {
  max-width: 1100px;
  background: #fff;
  padding: 2rem 1.5rem;
  margin: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESPONSIVE MEDIA QUERIES
============================================ */

/* Tablets + Mobiles */
@media (max-width: 768px) {

  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }

  .logo-img { height: 42px; }

  .mobile-nav {
    display: flex;
  }

  .contract-tabs {
    gap: 0.5rem;
  }

  .contract-tab {
    flex: 1;
    min-width: calc(50% - 0.25rem);
    font-size: 0.85rem;
    padding: 0.65rem;
  }
}

/* Extra Small Screens */
@media (max-width: 400px) {

  .logo-img { height: 36px; }
  .logo-title { font-size: 1rem; }
  .logo-subtitle { font-size: 0.65rem; }

  .mobile-nav a {
    font-size: 0.9rem;
    display: flex;
    margin-left: 10%;
  }
}

/* Desktop */
@media (min-width: 768px) {

  .mobile-menu-btn { display: none !important; }
  .mobile-nav { display: none !important; }

  .nav-links {
    display: flex;
    gap: 2.5rem;
  }
}

/* Large Desktop */
@media (min-width: 1024px) {
  .contract-tab {
    padding: 0.9rem 2rem;
    font-size: 1rem;
  }
}

/* Landscape */
@media (max-height: 600px) and (orientation: landscape) {
  .contract-tab {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }
}
