/**
 * Site header + footer styling — Your Hometown Plumber homepage design restyle.
 *
 * Per-site colors come from CSS custom properties (--site-dark, --site-a1,
 * --site-a2, --site-muted) set in a small inline <style> block in header.php,
 * computed from the "Colors and Styles" ACF `color` repeater
 * (0 = dark/navy, 1 = accent1/aqua, 2 = accent2/sky, 3 = muted). Everything
 * else here is static CSS; the extra design tokens below have fixed fallbacks.
 *
 * NOTE: custom.css sets `header#masthead{display:block;position:fixed;...}`.
 * Header rules below use the same ID-level specificity so they win over it.
 */
:root {
    --yht-deep: #0D2F78;
    --yht-royal: #1858A6;
    --yht-peri: #5D7DE9;
    --yht-ink: #272D4A;
    --yht-mist: #F1F7FB;
    --yht-line: #DCE6F0;
    --yht-footer: #0B0C3A;
    --yht-soft: #D6E2F5;
    --yht-fade: #A9B6D3;
}

.site-utility-bar,.site-header,.site-header-mobile,.site-footer,.site-promo-row {
    font-family: 'Public Sans',system-ui,-apple-system,'Segoe UI',sans-serif;
    -webkit-font-smoothing: antialiased
}

.site-utility-bar a:focus-visible,.site-header a:focus-visible,.site-header button:focus-visible,.site-footer a:focus-visible {
    outline: 3px solid var(--site-a2);
    outline-offset: 3px;
    border-radius: 8px
}

/* ---------- Utility bar ---------- */
.site-utility-bar {
    background: var(--site-dark);
    color: #fff;
    font-size: 14px
}

.site-utility-bar .container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px 24px
}

.site-utility-bar a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 600;
    text-decoration: none
}

.site-utility-bar a:hover {
    color: var(--site-a1)
}

.site-utility-bar svg {
    flex: 0 0 auto
}

.site-utility-tagline {
    font-family: 'Archivo',sans-serif;
    font-stretch: 115%;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-size: 13px;
    color: var(--site-a1)
}

.site-utility-loc {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--yht-soft)
}

.site-utility-nav ul {
    list-style: none;
    display: flex;
    gap: 16px;
    margin: 0;
    padding: 0
}

.site-utility-nav a {
    color: var(--yht-soft);
    font-size: 13px;
    font-weight: 600
}

/* ---------- Desktop header ---------- */
header#masthead.site-header {
    display: block;
    position: sticky;
    top: 0;
    z-index: 30;
    width: 100%;
    max-width: none;
    background: #fff;
    border-bottom: 1px solid var(--yht-line);
    padding: 0
}

.site-header .site-header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 14px 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 16px;
}

.site-header .site-logo {
    display: block
}

.site-header .site-logo img {
    height: 66px;
    width: auto;
    transform: scale(1.6);
    display: block;
    position: relative;
    left: 1.8em;
}

.site-header .site-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin: 0;
    padding: 0;
    font-size: 15px;
    font-weight: 600
}

.site-header .site-nav li {
    position: relative
}

.site-header .site-nav a {
    color: var(--site-dark);
    padding: 8px 0;
    display: inline-block;
    text-decoration: none
}

.site-header .site-nav a:hover,.site-header .site-nav li.current-menu-item>a {
    color: var(--yht-royal)
}

.site-header .site-nav li>ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -16px;
    z-index: 40;
    min-width: 290px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--yht-line);
    border-radius: 12px;
    box-shadow: 0 18px 40px -18px rgba(17,18,81,.35)
}

.site-header .site-nav li:hover>ul.sub-menu,.site-header .site-nav li:focus-within>ul.sub-menu {
    display: flex;
}

.site-header .site-nav li>ul.sub-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px
}

.site-header .site-nav li>ul.sub-menu a:hover {
    background: var(--yht-mist)
}

.site-header .site-header-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px
}

.site-header .site-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 10px;
    border: 2px solid transparent;
    font-family: inherit;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease,color .15s ease
}

.site-header .site-btn-outline {
    background: var(--site-dark);
    color: #fff
}

.site-header .site-btn-outline:hover {
    background: var(--yht-deep);
    color: #fff
}

.site-header .site-btn-solid {
    background: var(--site-a1);
    color: var(--site-dark)
}

.site-header .site-btn-solid:hover {
    background: #1BC2C7;
    color: var(--site-dark)
}

/* ---------- Mobile header ---------- */
header#masthead-mobile.site-header-mobile {
    display: none;
    position: relative;
    z-index: 9000;
    background: #fff;
    border-bottom: 1px solid var(--yht-line)
}

.site-header-mobile .mobile-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px
}

.site-header-mobile .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--yht-line);
    border-radius: 12px;
    background: #fff;
    color: var(--site-dark);
    font-size: 20px;
    cursor: pointer
}

.site-header-mobile .mobile-menu-btn:hover {
    background: var(--yht-mist)
}

.site-header-mobile img {
    height: 102px;
    width: auto;
    object-fit: contain
}

.site-header-mobile .mobile-call-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--site-a1);
    color: var(--site-dark);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 10px;
    line-height: 1.05;
    letter-spacing: .04em;
    text-align: center;
    text-decoration: none
}

.site-quick-nav {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    background: var(--site-dark)
}

.site-quick-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 6px;
    color: #fff;
    font-weight: 600;
    font-size: 12px;
    border-right: 1px solid rgba(255,255,255,.18);
    min-height: 56px;
    text-decoration: none
}

.site-quick-nav a:hover {
    background: var(--yht-deep)
}

.site-quick-nav a:last-child {
    border-right: 0
}

@media (max-width: 1080px) {
    header#masthead.site-header {
        display:none
    }

    header#masthead-mobile.site-header-mobile {
        display: block
    }
}

@media (max-width: 720px) {
    .site-utility-tagline,.site-utility-loc,.site-utility-nav {
        display:none
    }
}

/* ---------- Promo row (inner pages only) ---------- */
.site-promo-row {
    display: flex;
    flex-wrap: wrap
}

.site-promo-row>a,.site-promo-row>button {
    flex: 1 1 320px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 32px;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    text-align: left
}

.site-promo-row .promo-call {
    background: var(--site-dark);
    color: #fff
}

.site-promo-row .promo-schedule {
    background: var(--site-a1);
    color: var(--site-dark)
}

.site-promo-row .promo-icon {
    font-size: 26px
}

.site-promo-row strong {
    display: block;
    font-family: 'Archivo',sans-serif;
    font-weight: 800;
    letter-spacing: .02em;
    font-size: 17px
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--yht-footer);
    color: var(--yht-soft);
    font-size: 15px
}

.site-footer .footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 72px 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 48px
}

.site-footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 40px;
    align-items: start
}

.site-footer .footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px
}

.site-footer .footer-logo-wrap {
    display: inline-flex;
    background: #fff;
    border-radius: 14px;
    padding: 10px 14px;
    align-self: flex-start
}

.site-footer img.footer-logo {
    height: 64px;
    width: auto;
    display: block
}

.site-footer .footer-brand {
    margin: 0;
    line-height: 1.5;
    color: #fff
}

.site-footer .footer-brand span {
    display: block;
    color: var(--site-a1);
    font-weight: 600
}

.site-footer h4 {
    margin: 0 0 4px;
    font-family: 'Archivo',sans-serif;
    font-stretch: 115%;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #fff
}

.site-footer a {
    color: var(--yht-soft);
    text-decoration: none
}

.site-footer a:hover {
    color: var(--site-a1)
}

.site-footer .footer-line {
    display: flex;
    gap: 10px;
    line-height: 1.5
}

.site-footer .footer-line svg {
    flex: 0 0 auto;
    margin-top: 3px
}

.site-footer .footer-line.is-phone a {
    color: #fff;
    font-weight: 600
}

.site-footer .footer-line.is-email a {
    word-break: break-all
}

.site-footer .footer-dot {
    display: flex;
    align-items: center;
    gap: 10px
}

.site-footer .footer-dot:before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--site-a1);
    flex: 0 0 auto
}

.site-footer .socialmedia ul {
    list-style: none;
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0
}

.site-footer .socialmedia a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #343A7A;
    color: #fff;
    font-size: 17px
}

.site-footer .socialmedia a:hover {
    background: var(--site-a1);
    color: var(--site-dark);
    border-color: var(--site-a1)
}

.site-footer .we-accept-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--yht-fade);
    padding-top: 4px
}

.site-footer .we-accept p {
    margin: 0
}

.site-footer .footer-areas {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 32px;
    border-top: 1px solid #262A66
}

.site-footer .footer-areas ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.site-footer .footer-areas li {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #343A7A;
    font-size: 14px
}

.site-footer .footer-areas li:first-child {
    background: var(--site-a1);
    border-color: var(--site-a1);
    color: var(--site-dark);
    font-weight: 700
}

.site-footer .footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid #262A66;
    font-size: 13.5px;
    color: var(--yht-fade)
}

.site-footer .footer-bottom a {
    color: var(--yht-fade)
}
