/* Header and Navigation Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 122px;
  border-bottom: 1px solid #e2dacd;
  background: rgba(250, 247, 242, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 24px rgba(42, 40, 31, 0.08);
  transition:
    top 0.25s ease,
    var(--transition);
}

body {
  padding-top: 122px;
}

/* Announcement Bar */
.announcement-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  height: 44px;
  background: linear-gradient(90deg, #3c3012, #504018);
  color: #ffffff;
  display: flex;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(42, 40, 31, 0.18);
  animation: ann-fadein 0.35s ease;
}

@keyframes ann-fadein {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0 3rem 0 1rem;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

.announcement-icon {
  font-size: 1rem;
  flex-shrink: 0;
  line-height: 1;
}

.announcement-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.announcement-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.85rem;
  background: #faf7f2;
  color: #504018;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.announcement-cta:hover,
.announcement-cta:focus-visible {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(42, 40, 31, 0.2);
  color: #3c3012;
}

.announcement-close {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.45rem;
  border-radius: 4px;
  transition:
    color 0.18s ease,
    background 0.18s ease;
}

.announcement-close:hover,
.announcement-close:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}

/* Shift header down when announcement bar is visible */
body.has-announcement {
  padding-top: calc(122px + 44px);
}

body.has-announcement .header {
  top: 44px;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.4rem;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1.05rem;
  text-decoration: none;
  min-width: 0;
  padding: 0.2rem 0;
}

.logo img {
  max-height: 96px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

.brand-name {
  max-width: 330px;
  color: #2a281f;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: 0.012em;
}

.nav {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.95rem, 1.75vw, 1.5rem);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: 0.35rem;
}

.nav-links a {
  text-decoration: none;
  color: #2a281f;
  font-size: 0.94rem;
  font-weight: 650;
  position: relative;
  padding: 0.62rem 0.1rem;
  letter-spacing: 0.008em;
  transition: color var(--anim-duration) ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0.1rem;
  right: 0.1rem;
  bottom: -0.02rem;
  height: 2px;
  border-radius: 999px;
  background: var(--brand-grad-primary-alt);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--anim-duration) ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #3c3012;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.nav .btn {
  min-width: 0;
  min-height: 44px;
  padding: 0.78rem 1.25rem;
  font-size: 0.88rem;
  letter-spacing: 0.012em;
  border-radius: var(--btn-radius);
}

.nav .nav-cta {
  background: linear-gradient(145deg, #504018, #6b5424);
  color: #faf7f2;
  border-color: #3c3012;
  box-shadow: 0 9px 18px rgba(42, 40, 31, 0.14);
}

.nav .nav-cta:hover {
  background: linear-gradient(145deg, #5c491d, #7a6030);
  box-shadow: 0 12px 22px rgba(42, 40, 31, 0.18);
}

.nav .nav-admin {
  background: rgba(250, 247, 242, 0.9);
  color: #504018;
  border-color: #c8c0b3;
}

.nav .nav-admin:hover {
  background: #eee6d7;
  border-color: #b9b1a3;
}

/* Hamburger Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 42px;
  height: 42px;
  padding: 11px 9px;
  border-radius: 12px;
  border: 1px solid #c8c0b3;
  background: rgba(250, 247, 242, 0.94);
  cursor: pointer;
  z-index: 1001;
}

.header-quick-call {
  display: none;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 3px;
  background: #3c3012;
  transition: var(--transition);
}

/* Mobile Navigation */
@media (max-width: 1140px) {
  .header {
    height: 102px;
  }

  body {
    padding-top: 102px;
  }

  body.has-announcement {
    padding-top: calc(102px + 44px);
  }

  .brand-name {
    max-width: 230px;
    font-size: 0.84rem;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(87vw, 400px);
    height: 100vh;
    background: linear-gradient(
      180deg,
      rgba(250, 247, 242, 0.99),
      rgba(238, 231, 219, 0.99)
    );
    border-left: 1px solid #d5cdc0;
    box-shadow: -16px 0 36px rgba(42, 40, 31, 0.12);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 7.35rem 1.2rem 2rem;
    transition: var(--transition);
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-y: auto;
  }

  .nav.active {
    right: 0;
  }

  .nav-links,
  .nav-actions {
    display: grid;
    gap: 0.45rem;
    margin: 0;
  }

  .nav-actions {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #ded5c6;
  }

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

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

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

  .nav a {
    width: 100%;
    text-align: left;
    border-radius: 12px;
  }

  .nav-links a {
    padding: 0.88rem 0.9rem;
    border: 1px solid #ded5c6;
    background: rgba(255, 255, 255, 0.74);
  }

  .nav-links a::after {
    display: none;
  }

  .nav .btn {
    width: 100%;
    justify-content: center;
    min-height: 49px;
  }

  .nav .nav-cta {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .header {
    height: 94px;
  }

  body {
    padding-top: 94px;
  }

  body.has-announcement {
    padding-top: calc(94px + 44px);
  }

  .announcement-text {
    font-size: 0.8rem;
    max-width: calc(100vw - 7rem);
  }

  .announcement-inner {
    padding: 0 2.75rem 0 0.75rem;
    gap: 0.5rem;
  }

  .logo img {
    max-height: 78px;
  }

  .brand-name {
    display: none;
  }

  .header-content {
    gap: 0.7rem;
  }
}
