/* ========================================
   LOCAL PAGES — HEADER & FOOTER
   Prefixed with hg-local- to avoid conflicts
   ======================================== */

/* --- Variables (scoped to local pages) --- */
.hg-local-page {
    --hg-charcoal: #2D2926;
    --hg-charcoal-light: #3D3936;
    --hg-sand-light: #F5F1EA;
    --hg-rust: #D4622B;
    --hg-rust-hover: #B85420;
    --hg-white: #FFFFFF;
    --hg-gray-200: #EBEBEB;
    --hg-gray-400: #A0A0A0;
    --hg-radius-md: 8px;
    --hg-font-body: 'Source Sans 3', sans-serif;
}

/* ========================================
   HEADER
   ======================================== */
.hg-local-header {
    background-color: var(--hg-white);
    border-bottom: 1px solid var(--hg-gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
}

.hg-local-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.hg-local-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.hg-local-logo-img {
    height: 72px;
    width: auto;
}

.hg-local-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hg-local-btn-estimate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #F26522;
    color: var(--hg-white);
    padding: 12px 24px;
    border-radius: var(--hg-radius-md);
    font-weight: 600;
    font-size: 0.9375rem;
    font-family: var(--hg-font-body);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.hg-local-btn-estimate:hover {
    background-color: #d9571d;
    color: var(--hg-white);
}

/* Header Responsive */
@media (max-width: 768px) {
    .hg-local-logo-img {
        height: 48px;
    }

    .hg-local-btn-estimate {
        padding: 10px 16px;
        font-size: 0.875rem;
        min-height: 44px;
    }
}

/* ========================================
   FOOTER
   ======================================== */
.hg-local-footer {
    background-color: var(--hg-charcoal, #2D2926);
    color: var(--hg-white, #FFFFFF);
    padding: 60px 0 40px;
    font-family: var(--hg-font-body, 'Source Sans 3', sans-serif);
}

.hg-local-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.hg-local-footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px !important;
}

.hg-local-footer-brand .hg-local-logo-inverted {
    height: 72px;
    width: auto;
    filter: brightness(0) invert(1);
}

.hg-local-footer-brand p {
    color: var(--hg-gray-400, #A0A0A0);
    font-size: 0.9375rem;
    margin-top: 16px;
    line-height: 1.6;
}

.hg-local-footer-heading {
    font-family: var(--hg-font-body, 'Source Sans 3', sans-serif);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
    color: var(--hg-white, #FFFFFF);
}

.hg-local-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hg-local-footer-links li {
    margin-bottom: 12px;
}

.hg-local-footer-links a {
    color: var(--hg-gray-400, #A0A0A0);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
    display: inline-block;
    padding: 4px 0;
}

.hg-local-footer-links a:hover {
    color: var(--hg-white, #FFFFFF);
}

/* Trust Badges */
.hg-local-footer-trust-badges {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 64px;
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 24px !important;
    flex-wrap: wrap;
}

.hg-local-footer-trust-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hg-local-footer-trust-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--hg-gray-400, #A0A0A0);
    font-weight: 600;
    margin-bottom: 2px;
}

.hg-local-payment-badges {
    display: flex;
    gap: 8px;
    align-items: center;
}

.hg-local-payment-badge {
    width: 44px;
    height: 28px;
    border-radius: 4px;
    overflow: hidden;
    background: white;
}

.hg-local-payment-badge svg {
    width: 100%;
    height: 100%;
}

.hg-local-review-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 14px;
    border-radius: 6px;
}

.hg-local-review-badge svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.hg-local-review-badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    gap: 1px;
}

.hg-local-review-badge-text strong {
    color: white;
    font-size: 0.9375rem;
}

.hg-local-review-badge-text span {
    color: var(--hg-gray-400, #A0A0A0);
    font-size: 0.6875rem;
}

/* Footer Bottom */
.hg-local-footer-bottom {
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 0px !important;
}

.hg-local-footer-bottom p {
    color: var(--hg-gray-400, #A0A0A0);
    font-size: 0.875rem;
    margin: 0;
}

/* Footer Responsive */
@media (min-width: 1200px) {
    .hg-local-footer {
        padding: 80px 0 48px;
    }

    .hg-local-footer-content {
        gap: 64px;
    }
}

@media (max-width: 768px) {
    .hg-local-footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .hg-local-footer-trust-badges {
        flex-direction: column;
        gap: 24px;
    }

    .hg-local-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hg-local-footer-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        text-align: center;
    }

    .hg-local-footer-brand {
        text-align: center;
    }
}

/* ========================================
   GLOBAL OVERRIDES FOR LOCAL PAGES
   Hide the default theme header/footer
   ======================================== */
.hg-local-page .hg_header,
.hg-local-page > footer:not(.hg-local-footer) {
    display: none;
}
