/* custom-header.css */
/* --- Base / Layout --- */
#mobile-menu-container {
    position: relative;
    width: 100%;
    z-index: 10;
}

#mobile-menu {
    display: flex;
    justify-content: flex-start; /* hamburger left */
    padding: 8px 15px;
}

#mobile-menu a.left-menu {
    order: 0; /* hamburger on left */
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
}

.custom-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 8px 15px 1px 15px;
    line-height: 1.1;
}

.header-left,
.header-center,
.header-right {
    flex: 1 1 100%;
    text-align: center;
    margin: 2px 0;
}

.header-left a,
.header-info-link a,
.header-phone a {
    display: block;
    color: #000;
    font-weight: normal;
    text-decoration: none;
    margin: 1px 0;
    line-height: 1.3;
    padding: 0;
}

.header-center img {
    max-height: 60px;
    height: auto;
    width: auto;
    margin: 0 auto;
}

.header-right span {
    display: block;
    color: #000;
    font-weight: normal;
    margin-top: 1px;
    white-space: pre-line;
    line-height: 1.1;
    padding: 0;
}

#nav-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    display: none;
    background: #fff;
    z-index: 9;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
#nav-wrapper.show-menu {
    display: block;
}

.custom-header {
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    background-color: #FAF9F6;
}

.header-banner {
    background-color: #003366;
    width: 100%;
    padding: 0;
}

/* --- Link Styles --- */
a {
    text-decoration: none;
    transition: opacity .15s ease-in-out;
}

/* Fade only text links (not image links) */
a:not(:has(img)):hover,
a:not(:has(img)):focus-visible {
    opacity: .6;
}

/* Header-left links explicit */
.header-left a,
.header-info-link a {
    opacity: 1;
}
.header-left a:hover,
.header-info-link a:hover,
.header-left a:focus-visible,
.header-info-link a:focus-visible {
    opacity: .6;
}

/* Remove theme underlines from titles */
.post h2 a,
.post .entry-title a,
.entry-title a,
.wrapper .post h2 a,
.post h2 a:link,
.post h2 a:visited {
    text-decoration: none !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    background-image: none !important;
}

/* Content links (including "View All Blog Posts") */
.entry-content a,
.entry-content a:link,
.entry-content a:visited,
.viewall a,
.viewall a:link,
.viewall a:visited {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    background-image: none !important;
}

/* Footer links */
footer a,
#footer a,
.site-footer a,
.footer a {
    text-decoration: none !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    font-weight: bold;
}

/* Paragraph links bold */
p a {
    font-weight: bold;
}

/* Full-bleed header background and divider without changing HTML */
.custom-header {
  position: relative;
  background: none;   /* moved to ::before */
  border: 0;
  box-shadow: none;   /* moved to ::before */
  z-index: 1;
}

/* Background + shadow spans the entire viewport width */
.custom-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  background: #F2F2F2; /* slightly darker gray */
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  z-index: -1;
}

/* 1px bottom border spans full width too */
.custom-header::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100vw;
  height: 1px;
  background: #ddd;
  z-index: -1;
}

/* --- Responsive (desktop >= 600px) --- */
@media (min-width: 600px) {
    #mobile-menu-container {
        display: none;
    }
    #nav-wrapper {
        display: block !important;
        position: static !important;
        width: auto;
        background: transparent;
    }

    .custom-header {
        flex-wrap: nowrap;
    }
    .header-left,
    .header-center,
    .header-right {
        flex: 0 0 auto;
        text-align: left;
        margin: 0;
    }
    .header-left {
        flex: 0 0 35%;
    }
    .header-center {
        flex: 0 0 30%;
        text-align: center;
    }
    .header-right {
        flex: 0 0 35%;
        text-align: right;
    }
    .header-left a {
        display: inline-block;
        margin-right: 10px;
        margin-bottom: 1px;
    }
    .header-info-link a {
        margin-left: 0;
        margin-top: 1px;
        display: inline-block;
    }
}
