/*
* QUAL-IT Website - Navigation Bar Stylesheet
* Version: 2.0
* Last updated: 2025
*/

/* ===== NAVIGATION CONTAINER ===== */
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1em;
}

/* ===== NAVBAR BASE STYLES ===== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary-color);
  color: #fff;
  width: 100%;
  box-shadow: 0 2px 12px rgba(53,52,68,0.08);
  padding: 0.5em 0;
  z-index: 1000;
  border-radius: var(--border-radius);
  transition: background-color 0.4s cubic-bezier(.4,0,.2,1), 
              border-radius 0.4s cubic-bezier(.4,0,.2,1), 
              padding 0.4s cubic-bezier(.4,0,.2,1);
}

.navbar-logo {
  flex: 0 0 auto;
  margin-left: 1.2em;
  margin-right: 2em;
  display: flex;
  align-items: center;
}

.navbar-logo img {
  height: 2.2em;
}

.navbar-links {
  flex: 1 1 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2em;
}

/* ===== HAMBURGER MENU ===== */
.hamburger {
  flex: 0 0 auto;
  margin-left: 2em;
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  justify-content: center;
}

.hamburger span {
  display: block;
  height: 4px;
  width: 100%;
  background: var(--primary-color);
  border-radius: 2px;
  transition: all 0.3s;
  box-shadow: 0 2px 8px #3ecf8e55;
}

.hamburger:focus span, .hamburger:hover span {
  background: #fff176;
  box-shadow: 0 0 8px #fff17699, 0 2px 8px #3ecf8e55;
}

/* ===== MOBILE NAVBAR OVERLAY ===== */
.navbar-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(53,52,68,0.65);
  z-index: 1500;
  transition: opacity 0.3s;
}
.navbar-overlay.active {
  display: block;
}

@media (max-width: 900px) {
  .navbar-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--secondary-color);
    flex-direction: column;
    gap: 0;
    box-shadow: 0 8px 24px rgba(53,52,68,0.12);
    animation: navbarMobileSlideDown 0.35s cubic-bezier(.4,0,.2,1);
  }
  .navbar-links.open {
    display: flex;
  }
  .hamburger {
    display: none;
    margin-left: 0.5em;
    margin-right: 0;
  }
  .navbar.alt .hamburger {
    display: flex;
  }
  .navbar-links a {
    padding: 1.2em 2em;
    font-size: 1.15em;
    width: 100%;
    text-align: left;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .navbar-links a:last-child {
    border-bottom: none;
  }
}

@keyframes navbarMobileSlideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hamburger X always white and centered */
.hamburger[aria-expanded="true"] span {
  background: #fff !important;
}
.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

@media (max-width: 900px) {
  .navbar-links {
    background: var(--secondary-color);
  }
  .navbar-links.open a {
    background: transparent !important;
    color: #fff !important;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    box-shadow: none;
  }
  .navbar-links.open a:hover, .navbar-links.open a:focus {
    background: #3ecf8e22 !important;
    color: var(--primary-color) !important;
  }
  .navbar-cta.navbar-hallofjava {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    display: block;
    margin: 1em 0 0.5em 0;
    font-size: 1.1em;
    padding: 1em 0.5em;
    text-align: center;
    border-radius: 2em;
    box-shadow: 0 2px 12px #a67c5233;
  }
}

/* ===== STICKY NAVBAR STYLES ===== */
.navbar.alt {
  animation: navbarSlideDown 0.7s cubic-bezier(.4,0,.2,1);
  transition: background-color 0.7s cubic-bezier(.4,0,.2,1), 
              border-radius 0.7s cubic-bezier(.4,0,.2,1), 
              padding 0.7s cubic-bezier(.4,0,.2,1);
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw !important;
  max-width: 100vw !important;
  min-width: 100vw !important;
  border-radius: 0 !important;
  z-index: 2000;
  background-color: rgba(53,52,68,0.95);
  padding: 0.5em 1em;
  box-shadow: 0 4px 32px rgba(53,52,68,0.18);
}

@keyframes navbarSlideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.nav-curved {
  border-radius: var(--border-radius) !important;
  transition: none;
}

/* ===== NAVBAR LINKS STYLING ===== */
.navbar-links a {
  text-decoration: none !important;
}

.navbar-links a:not(.navbar-cta):not(.navbar-hallofjava),
.navbar-links a.contact-btn {
  background: #444452;
  color: #fff;
  border-radius: var(--border-radius);
  transition: background 0.2s, color 0.2s;
  padding: 0.8em 2.2em;
  font-size: 1.15em;
}

.navbar-links a:not(.navbar-cta):not(.navbar-hallofjava):hover,
.navbar-links a:not(.navbar-cta):not(.navbar-hallofjava).active {
  background: #5a5a6a;
  color: var(--primary-color);
}

/* ===== CONTACT BUTTON STYLES ===== */
.navbar-links a.contact-btn {
  background: var(--primary-color, #3ecf8e);
  color: #fff !important;
  border-radius: 2em;
  padding: 0.4em 1.2em;
  margin-left: 0.7em;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(62,207,142,0.12);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.navbar-links a.contact-btn:hover, .navbar-links a.contact-btn:focus {
  background: #2fa06a;
  color: #fff;
  box-shadow: 0 4px 16px rgba(62,207,142,0.18);
}

/* ===== HALL OF JAVA BUTTON STYLES ===== */
.navbar-cta.navbar-hallofjava {
  background: var(--hallofjava-color) !important;
  color: #fff !important;
  box-shadow: 0 0 12px 2px rgba(121,83,47,0.6), 0 0 0 2px rgba(255,255,255,0.13);
  border: 2px solid #a67c52;
  text-shadow: 0 2px 8px rgba(121,83,47,0.6);
  position: relative;
  font-weight: 700;
  font-size: 1.1em;
  transition: box-shadow 0.2s, background 0.2s, transform 0.15s;
  margin-left: auto;
  margin-right: 1.2em;
  padding: 0.8em 2.2em;
}

.navbar-cta.navbar-hallofjava:focus {
  box-shadow: 0 0 0 3px rgba(166,124,82,0.53), 0 0 12px 2px rgba(121,83,47,0.6);
}

.navbar-cta.navbar-hallofjava:hover {
  box-shadow: 0 0 24px 4px rgba(121,83,47,0.8), 0 0 0 2px rgba(255,255,255,0.27);
  background: #a67c52 !important;
  color: #fff !important;
  transform: translateY(-2px) scale(1.03);
}

/* ===== RESPONSIVE NAVBAR LINKS ===== */
@media (max-width: 900px) {
  .navbar-links a:not(.navbar-cta):not(.navbar-hallofjava),
  .navbar-links a.contact-btn,
  .navbar-cta.navbar-hallofjava {
    padding: 0.8em 1.2em;
    font-size: 1em;
  }
}

/* ===== NAVBAR ANIMATION EFFECTS ===== */
.navbar.slide-up {
  animation: navbarSlideUp 0.7s cubic-bezier(.4,0,.2,1);
}

@keyframes navbarSlideUp {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-100%);
  }
}

/* ===== HALL OF JAVA MODAL STYLES ===== */
.hallofjava-modal {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0; 
  top: 0; 
  right: 0; 
  bottom: 0;
  width: 100vw; 
  height: 100vh;
  background: rgba(53,52,68,0.85);
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
}

.hallofjava-modal[style*="display: flex"] {
  display: flex !important;
}

.hallofjava-modal-content {
  background: #fff;
  color: #79532f;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(53,52,68,0.18);
  padding: 2.5em 2em 2em 2em;
  max-width: 380px;
  width: 90vw;
  position: relative;
  text-align: center;
  animation: modalPopIn 0.4s cubic-bezier(.4,0,.2,1);
}

@keyframes modalPopIn {
  from { 
    transform: scale(0.92) translateY(40px); 
    opacity: 0; 
  }
  to { 
    transform: scale(1) translateY(0); 
    opacity: 1; 
  }
}

.hallofjava-modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0.5em;
}

.hallofjava-modal-close {
  position: absolute;
  top: 1em;
  right: 1em;
  background: none;
  border: none;
  color: #79532f;
  font-size: 2em;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 1;
}

.hallofjava-modal-close:hover {
  color: #a67c52;
}

.hallofjava-modal-btn {
  display: inline-block;
  background: var(--hallofjava-color);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.8em 2em;
  font-weight: 700;
  font-size: 1.1em;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(121,83,47,0.13);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
  cursor: pointer;
  margin-top: 1em;
}

.hallofjava-modal-btn:hover {
  background: #a67c52;
  color: #fff;
  box-shadow: 0 4px 16px rgba(121,83,47,0.2);
  transform: translateY(-2px) scale(1.03);
} 