/* =========================================================
   Responsive Header
   ========================================================= */

.responsive-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background-color: var(--color-white, #ffffff);
  box-shadow: 0 2px 10px rgba(11, 61, 68, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

/* Logo */
.logo-container img {
  height: auto;
  width: 140px;
}

/* Desktop Navigation */
.desktop-nav {
  display: none;
}

.desktop-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
  font-size: 1rem;
}

.desktop-nav a {
  position: relative;
  font-family: var(--font-body, "Montserrat", sans-serif);
  font-weight: 600;
  color: var(--color-ink, #1f2a2e);
  text-decoration: none;
  padding: 0.4em 0.1em;
  transition: color 0.2s ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background-color: var(--color-copper-500, #cf7a3f);
  transition: right 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: var(--color-teal-700, #0f5c6b);
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  right: 0;
}

.desktop-nav a[aria-current="page"] {
  color: var(--color-copper-600, #b8632f);
}

/* Call button in header (desktop) */
.header-cta {
  display: none;
}

/* Hamburger Button */
.hamburger-button {
  display: flex;
  width: 44px;
  height: 44px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.hamburger-icon {
  position: relative;
  width: 24px;
}

.hamburger-icon span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--color-teal-900, #0b3d44);
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Mobile Navigation Overlay */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(11, 61, 68, 0.55);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Mobile Navigation Menu */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 80%;
  max-width: 320px;
  background-color: var(--color-white, #ffffff);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding-top: calc(72px + 1.5rem);
  padding-left: 1.75rem;
  padding-right: 1.75rem;
  padding-bottom: 1.5rem;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav li {
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border, #e4ddcd);
  padding-bottom: 1.25rem;
}

.mobile-nav li:last-child {
  border-bottom: none;
}

.mobile-nav a {
  display: block;
  font-family: var(--font-heading, "Roboto Slab", serif);
  font-size: 1.15rem;
  color: var(--color-teal-900, #0b3d44);
  text-decoration: none;
  transition: color 0.2s ease;
}

.mobile-nav a:hover {
  color: var(--color-copper-600, #b8632f);
}

/* Active States */
body.menu-open {
  overflow: hidden;
}

body.menu-open .mobile-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.menu-open .mobile-nav {
  transform: translateX(0);
}

body.menu-open .hamburger-icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.menu-open .hamburger-icon span:nth-child(2) {
  opacity: 0;
}

body.menu-open .hamburger-icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Media Queries */
@media (min-width: 850px) {
  .logo-container img {
    width: 170px;
  }

  .desktop-nav {
    display: block;
  }

  .header-cta {
    display: inline-flex;
  }

  .hamburger-button {
    display: none;
  }

  .mobile-nav,
  .mobile-overlay {
    display: none;
  }
}
