/**
 * Heaven Four - Header Styles
 * Mobile-first, sticky header - CLEAN VERSION
 */

/* ===== HIDE PAGE TITLES (ALL PAGES) ===== */
.entry-title,
.page-title,
.entry-header {
  display: none !important;
}

/* ===== STICKY HEADER (ALWAYS VISIBLE) ===== */
.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0;
  right: 0;
  z-index: 1000 !important;
  background: var(--h4-white) !important;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* ===== BODY SPACING FOR STICKY HEADER ===== */
body {
  padding-top: 60px !important;
}

body.admin-bar {
  padding-top: 106px !important;
}

body.admin-bar .site-header {
  top: 46px !important;
}

@media (min-width: 768px) {
  body {
    padding-top: 85px !important;
  }
  
  body.admin-bar {
    padding-top: 117px !important;
  }
  
  body.admin-bar .site-header {
    top: 32px !important;
  }
}

/* Prevent scroll when mobile menu open */
body.menu-open {
  overflow: hidden;
}

/* ===== HEADER LAYOUT ===== */
.site-header-row {
  padding: 12px 20px;
}

.site-header-row-container-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  gap: 20px;
}

/* ===== LOGO & BRANDING ===== */
.site-branding {
  flex-shrink: 0;
  z-index: 10;
}

.site-branding .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.site-branding .brand img {
  display: block;
  height: 38px;
  width: auto;
}

.site-branding .brand .h4-brand-text {
  font-family: var(--h4-font-serif);
  font-size: 15px;
  font-weight: 300;
  color: var(--h4-text);
  letter-spacing: 0.03em;
  white-space: nowrap;
  opacity: 0.85;
  transition: opacity 0.2s;
}

/* ===== MOBILE MENU TOGGLE ===== */
.mobile-menu-toggle {
  min-width: 48px;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  z-index: 10;
  transition: all 0.3s;
}

.mobile-menu-toggle span {
  width: 28px;
  height: 3px;
  background: var(--h4-text);
  transition: all 0.3s;
  display: block;
}

/* Hamburger animation */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* ===== NAVIGATION (HIDDEN ON MOBILE BY DEFAULT) ===== */
.header-navigation {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--h4-white);
  padding: 30px 20px;
  overflow-y: auto;
  z-index: 999;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s, transform 0.3s;
}

.header-navigation.mobile-open {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.header-navigation .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.header-navigation .menu > li {
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.header-navigation .menu > li > a {
  font-family: var(--h4-font-sans);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--h4-text);
  padding: 18px 0;
  transition: color 0.2s;
  text-decoration: none;
  display: block;
}

.header-navigation .menu > li > a:hover,
.header-navigation .menu > li.current-menu-item > a {
  color: var(--h4-peach);
}

.header-button {
  display: none;
}

/* ===== DESKTOP (768px+) ===== */
@media (min-width: 768px) {
  .site-header-row {
    padding: 18px 30px;
  }
  
  .site-branding .brand img {
    height: 48px;
  }
  
  .site-branding .brand .h4-brand-text {
    font-size: 17px;
  }
  
  .mobile-menu-toggle {
  min-width: 48px;
  min-height: 48px;
    display: none;
  }
  
  .header-navigation {
    display: flex !important;
    position: static;
    flex: 1;
    justify-content: center;
    padding: 0;
    background: transparent;
    opacity: 1;
    transform: none;
  }
  
  .header-navigation .menu {
    flex-direction: row;
    gap: 6px;
  }
  
  .header-navigation .menu > li {
    border-bottom: none;
  }
  
  .header-navigation .menu > li > a {
    font-size: 10px;
    letter-spacing: 0.1em;
    padding: 10px 14px;
    border-radius: 2px;
  }
  
  .header-navigation .menu > li > a:hover,
  .header-navigation .menu > li.current-menu-item > a {
    background: rgba(227, 150, 126, 0.06);
  }
  
  .header-button {
    flex-shrink: 0;
    display: block;
  }
  
  .header-button .button {
    background-color: var(--h4-peach);
    color: var(--h4-white);
    border-radius: 0;
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 10px 18px;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    border: none;
  }
  
  .header-button .button:hover {
    background-color: var(--h4-peach-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(227, 150, 126, 0.3);
  }
}

/* ===== LARGER DESKTOP (1024px+) ===== */
@media (min-width: 1024px) {
  .site-header-row {
    padding: 20px 40px;
  }
  
  .site-header-row-container-inner {
    gap: 40px;
  }
  
  .site-branding .brand img {
    height: 50px;
  }
  
  .site-branding .brand .h4-brand-text {
    font-size: 18px;
  }
  
  .header-navigation .menu {
    gap: 8px;
  }
  
  .header-navigation .menu > li > a {
    font-size: 11px;
    padding: 10px 18px;
  }
  
  .header-button .button {
    font-size: 10px;
    padding: 12px 24px;
  }
}
