/* ================================================================
   Gatsby Realty Group – Header Styling
   Certified Launch v12.1A Compact Modern Layout
   ================================================================ */

/* Base Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #0b3a36; /* Emerald */
  border-bottom: 2px solid #b4975a;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  line-height: 1;
}

/* Brand */
.brand-left {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}

.crest-logo {
  height: 44px;
  width: auto;
  margin-top: -2px;
  image-rendering: -webkit-optimize-contrast;
}

.brand-name {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-weight: 600;
  color: #b4975a;
  letter-spacing: 0.4px;
  text-transform: none;
  text-decoration: none !important;
  line-height: 1;
}


/* Nav + Button Right Section */
.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Navigation Menu */
.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
}

.main-navigation a {
  text-decoration: none;
  font-family: "Lato", sans-serif;
  color: #b4975a; /* Gold text */
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
}


.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: #f6f0e6; /* White hover */
}

.main-navigation a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: #b4975a;
  transition: width 0.3s ease;
}

.main-navigation a:hover::after {
  width: 100%;
}

/* Hide legacy Saved Homes / Saved Searches */
.main-navigation a[href*="saved-homes"],
.main-navigation a[href*="saved-search"] {
  display: none !important;
}

/* Sign Up / Login Button */
.btn-login {
  background-color: #b4975a;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-login:hover {
  background-color: #967f47;
  transform: translateY(-1px);
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #f8f3ea;
  border: 2px solid #b4975a;
  border-radius: 10px;
  padding: 30px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  position: relative;
  animation: fadeIn 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 22px;
  color: #0b3a36;
  cursor: pointer;
}

.modal-tabs {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
}

.tablink {
  background: none;
  border: none;
  font-weight: 600;
  color: #0b3a36;
  cursor: pointer;
  font-family: "Lato", sans-serif;
  padding: 6px 10px;
  border-bottom: 2px solid transparent;
}

.tablink.active {
  border-color: #b4975a;
  color: #b4975a;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.tab-content form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tab-content input {
  border: 1px solid #0b3a36;
  padding: 10px;
  border-radius: 4px;
  font-size: 15px;
}

.btn-submit {
  background-color: #b4975a;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px;
  font-weight: 600;
  cursor: pointer;
}

.btn-submit:hover { background-color: #967f47; }

/* ------------------------------
   Responsive
   ------------------------------ */
@media (max-width: 900px) {
  .nav-right {
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
  }

  .main-navigation ul {
    flex-direction: column;
    background: #0b3a36;
    border-left: 2px solid #b4975a;
    border-bottom: 2px solid #b4975a;
    padding: 10px 20px;
    display: none;
  }

  .main-navigation ul.show { display: flex; }

  .btn-login {
    width: 100%;
  }
}