/*
 Theme Name: Frost Child
 Template: frost
*/

/* Base: Navigation link styling */
.wp-block-navigation a {
  position: relative;
  text-decoration: none;
  transition: color 200ms ease;
  font-weight: 300; /* lighter look for menu */
  outline: none;
}

/* Animated underline (hover/focus) */
.wp-block-navigation a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background: #9b880c;
  transition: width 200ms ease;
}
.wp-block-navigation a:hover::after,
.wp-block-navigation a:focus-visible::after {
  width: 100%;
}

/* Accessibility: Respect reduced motion users */
@media (prefers-reduced-motion: reduce) {
  .wp-block-navigation a,
  .wp-block-navigation a::after {
    transition: none;
  }
}

/* Header layout */
.fc-header .wp-block-columns { align-items: center; }
.fc-header .wp-block-column:nth-child(1) { display: flex; align-items: center; justify-content: flex-start; }
.fc-header .fc-header__middle { display: flex; align-items: center; justify-content: center; }
.fc-header .wp-block-column:nth-child(3) { display: flex; align-items: center; justify-content: flex-end; }

/* Navigation container spacing */
.fc-header .wp-block-navigation .wp-block-navigation__container {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: var(--wp--preset--spacing--70, 16px);
}

/* Link color on black header */
.fc-header .wp-block-navigation a { color: #fff; }

/* Highlight current item for orientation */
.fc-header .wp-block-navigation .current-menu-item > a,
.fc-header .wp-block-navigation .wp-block-navigation-item--active > a {
  color: #ffd768; /* subtle highlight */
}
.fc-header .wp-block-navigation .current-menu-item > a::after,
.fc-header .wp-block-navigation .wp-block-navigation-item--active > a::after {
  width: 100%;
  background: #ffd768;
}

/* Submenu indicators inherit color */
.fc-header .wp-block-navigation .wp-block-navigation__submenu-icon svg {
  fill: currentColor;
}

/* Right column Account button */
.fc-header .wp-block-button.fc-account .wp-block-button__link {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  background: #9b880c;
  color: #ffffff;
  font-weight: 400;
  line-height: 1.25;
  box-shadow: 0 0 0 0 transparent;
}
.fc-header .wp-block-button.fc-account .wp-block-button__link:hover,
.fc-header .wp-block-button.fc-account .wp-block-button__link:focus {
  opacity: 0.9;
}

/* Focus visible for keyboard users */
.fc-header .wp-block-navigation a:focus-visible,
.fc-header .wp-block-button.fc-account .wp-block-button__link:focus-visible {
  outline: 2px solid #ffd768;
  outline-offset: 2px;
}

/* Site Logo sizing + alignment */
.fc-header .wp-block-site-logo { line-height: 0; }
.fc-header .wp-block-site-logo img {
  width: 76px !important; /* your current size */
  height: auto !important;
  max-width: none !important;
  display: block; /* avoid inline baseline quirks */
}

/* Overlay menu panel (mobile) */
.fc-header .wp-block-navigation__responsive-container-open,
.fc-header .wp-block-navigation__responsive-container-close { color: #fff; }
.fc-header .wp-block-navigation__responsive-container {
  background: #000;
  padding: 16px; /* improve tap targets around items */
}

/* Reduce accidental taps: increase tap target for overlay items */
.fc-header .wp-block-navigation__responsive-container .wp-block-navigation a {
  padding: 8px 4px;
}

/* New header layout (works with the new header.html) */
.fc-header .fc-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between; 
  width: 100%;                   
  gap: 16px;
}

.fc-header .fc-header__nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.fc-header .wp-block-navigation__responsive-container-open,
.fc-header .wp-block-navigation__responsive-container-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transform: none; 
}

@media (max-width: 782px) {
  .fc-header {
    display: flex;
    align-items: center;

    padding-top: 6px !important;
    padding-bottom: 6px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;

    min-height: 72px; /
  }


  .fc-header {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .fc-header .fc-header__inner {
    min-height: 72px; /* adjust to taste */
  }

  .fc-header .fc-header__nav {
    justify-content: flex-end;
  }

  .fc-header .fc-header__actions {
    display: none;
  }

  .fc-header .wp-block-site-title,
  .fc-header .wp-block-navigation {
    margin: 0;
  }

    .fc-header .wp-block-navigation__responsive-container-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    color: #111;
    background: transparent;        
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 10px;
    box-shadow: none;                
    cursor: pointer;
  }

  .fc-header .wp-block-navigation__responsive-container-close:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.55);
  }

  .fc-header .wp-block-navigation__responsive-container-close:focus-visible {
    outline: 2px solid #ffd768;
    outline-offset: 2px;
  }

  .fc-header .wp-block-navigation__responsive-container-close svg {
    fill: currentColor;
    width: 24px;
    height: 24px;
  }

  .fc-header .wp-block-navigation__responsive-container .fc-nav-account > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-top: 12px;
    padding: 10px 14px;

   
    color: black;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
  }

  .fc-header .wp-block-navigation__responsive-container .fc-nav-account > a:hover,
  .fc-header .wp-block-navigation__responsive-container .fc-nav-account > a:focus-visible {
    opacity: 0.92;
  }
}

.fc-header .wp-block-navigation__responsive-container-open,
.fc-header .wp-block-navigation__responsive-container-close {
  align-items: center;
  justify-content: center;
  line-height: 1;
  transform: none;
}

@media (max-width: 782px) {
  .fc-header .wp-block-navigation__responsive-container-open,
  .fc-header .wp-block-navigation__responsive-container-close {
    display: inline-flex;
  }
}

@media (min-width: 783px) {
  .fc-header .wp-block-navigation__responsive-container-open {
    display: none !important;
  }
}

@media (min-width: 783px) {
  .fc-header .wp-block-navigation .fc-nav-account {
    display: none !important;
  }
}

@media (max-width: 782px) {
  .fc-header .wp-block-navigation__responsive-container .fc-nav-account {
    display: block;
  }
}
