/* ================================================================
   MAP Water Well Service — Shared Site Styles
   Header · Navigation · Footer enhancements
   ================================================================ */

/* ── Header ───────────────────────────────────────────────────── */
#trueHeader {
    background: #ffffff;
    box-shadow: 0 2px 16px rgba(2, 44, 91, 0.10);
    position: relative;
    z-index: 100;
}

#trueHeader .wrapper {
    padding: 0;
}

#trueHeader .container {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    min-height: 80px;
}

/* Logo column */
#trueHeader .one_half:first-child {
    float: none !important;
    width: auto !important;
    display: flex;
    align-items: center;
}

#trueHeader .one_half:first-child a img {
    max-height: 72px;
    width: auto;
    display: block;
}

/* Nav column */
#trueHeader .one_half.last {
    float: none !important;
    width: auto !important;
    display: flex;
    align-items: center;
    gap: 24px;
    justify-content: flex-end;
    flex: 1;
}

/* ── Navigation menu ──────────────────────────────────────────── */
#trueHeader nav#access {
    display: flex;
    align-items: center;
}

#trueHeader .menu ul#tiny {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

#trueHeader .menu ul#tiny li a {
    display: inline-block;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.18s, color 0.18s;
    letter-spacing: 0.2px;
}

#trueHeader .menu ul#tiny li a:hover,
#trueHeader .menu ul#tiny li a[aria-current="page"] {
    background: #022c5b;
    color: #ffffff;
}

/* Phone button in header */
#trueHeader .header-phone {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #022c5b 0%, #0369a1 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: opacity 0.18s, transform 0.15s;
    white-space: nowrap;
}

#trueHeader .header-phone:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ── CTA Band (homepage) ──────────────────────────────────────── */
.cta-band {
    background: linear-gradient(135deg, #022c5b 0%, #0369a1 100%);
    border-radius: 12px;
    padding: 36px 40px;
    text-align: center;
    margin-bottom: 40px;
}

.cta-band h2 {
    color: #ffffff;
    font-size: 22px;
    margin: 0 0 8px;
}

.cta-band p {
    color: #bae6fd;
    font-size: 15px;
    margin: 0 0 22px;
}

.cta-band-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Primary button: white bg, dark text */
.cta-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #022c5b !important;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none !important;
    transition: background 0.18s, transform 0.15s, color 0.18s;
    border: 2px solid #ffffff;
}

.cta-btn-primary:hover {
    background: #dbeafe;
    color: #022c5b !important;
    transform: translateY(-1px);
}

/* Secondary button: outlined white */
.cta-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.7);
    color: #ffffff !important;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none !important;
    transition: background 0.18s, border-color 0.18s, transform 0.15s;
}

.cta-btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    border-color: #ffffff;
    transform: translateY(-1px);
}

/* ── FOOTER ───────────────────────────────────────────────────── */
.site-footer {
    background: linear-gradient(170deg, #010e1f 0%, #011a35 60%, #022c5b 100%);
    border-top: 3px solid #0369a1;
    padding: 56px 0 0;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Column headings */
.footer-col h4 {
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    color: #7dd3fc !important;
    margin: 0 0 18px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid rgba(125, 211, 252, 0.2) !important;
}

/* Brand column */
.footer-brand-name {
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px;
    letter-spacing: 0.3px;
}

.footer-brand-tagline {
    font-size: 12px;
    color: #7dd3fc;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0 0 14px;
}

.footer-brand-desc {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.75;
    margin: 0 0 18px;
}

.footer-license-badges {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #cbd5e1;
    font-weight: 500;
}

.footer-badge .badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0369a1;
    flex-shrink: 0;
}

/* Services column */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-links li:last-child { border-bottom: none; }

.footer-links li a,
.footer-links li span {
    font-size: 13px;
    color: #94a3b8;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.15s;
}

.footer-links li a:hover { color: #7dd3fc; }

.footer-links li a::before,
.footer-links li span::before {
    content: "›";
    color: #0369a1;
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
}

/* Contact column */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.footer-contact-icon {
    font-size: 14px;
    color: #7dd3fc;
    flex-shrink: 0;
    margin-top: 2px;
    width: 16px;
    text-align: center;
}

.footer-contact-list .fc-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #475569;
    display: block;
    margin-bottom: 1px;
}

.footer-contact-list .fc-value {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.5;
}

.footer-contact-list a {
    color: #7dd3fc;
    text-decoration: none;
    transition: color 0.15s;
}

.footer-contact-list a:hover { color: #ffffff; }

/* Social + payments column */
.footer-social-row {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    transition: background 0.18s, border-color 0.18s, transform 0.15s;
    text-decoration: none;
}

.footer-social-link:hover {
    background: #0369a1;
    border-color: #0369a1;
    transform: translateY(-2px);
}

/* FA icon social links */
.footer-social-link .fa {
    font-size: 17px;
    color: #94a3b8;
    transition: color 0.18s;
}

.footer-social-link:hover .fa { color: #ffffff; }

/* Keep img-based social hidden now that FA is used */
.footer-social-link img { display: none; }

.footer-payments-label {
    font-size: 11px;
    color: #475569;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
}

.footer-payments img {
    max-width: 160px;
    width: 100%;
    height: auto;
    opacity: 0.75;
    border-radius: 4px;
    transition: opacity 0.18s;
}

.footer-payments img:hover { opacity: 1; }

/* ── Footer bottom bar ────────────────────────────────────────── */
.footer-bottom {
    margin-top: 44px;
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 16px 24px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-bottom p {
    font-size: 12px !important;
    color: #64748b !important;
    margin: 0 !important;
}

.footer-bottom a {
    color: #94a3b8 !important;
    text-decoration: none;
    transition: color 0.15s;
}

.footer-bottom a:hover { color: #7dd3fc !important; }

/* ── Scroll-to-top button ─────────────────────────────────────── */
a.scrollup {
    background: linear-gradient(135deg, #022c5b 0%, #0369a1 100%) !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    text-align: center !important;
    bottom: 24px !important;
    right: 24px !important;
    font-size: 0 !important;
    box-shadow: 0 4px 14px rgba(2, 44, 91, 0.3) !important;
    transition: transform 0.15s, opacity 0.15s !important;
}

a.scrollup::after {
    content: "↑";
    font-size: 18px;
    line-height: 40px;
    display: block;
}

a.scrollup:hover {
    transform: translateY(-2px) !important;
    opacity: 0.9 !important;
}

/* ── Hamburger button ────────────────────────────────────────── */
.hamburger {
    display: none; /* shown only on mobile */
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 200;
    order: 3; /* push to right end */
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #022c5b;
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}

/* ── Offcanvas overlay ───────────────────────────────────────── */
.oc-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}

.oc-overlay.is-visible {
    display: block;
    opacity: 1;
}

/* ── Offcanvas nav panel ─────────────────────────────────────── */
.offcanvas-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: linear-gradient(170deg, #010e1f 0%, #022c5b 100%);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    padding: 24px 0 32px;
    transition: right 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 24px rgba(0,0,0,0.4);
    overflow-y: auto;
}

.offcanvas-nav.is-open {
    right: 0;
}

.oc-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 20px;
    cursor: pointer;
    align-self: flex-end;
    padding: 0 20px 12px;
    line-height: 1;
    transition: color 0.15s;
}

.oc-close:hover { color: #ffffff; }

.oc-logo {
    padding: 0 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 8px;
}

.oc-logo img {
    max-height: 60px;
    width: auto;
    /* invert logo to white on dark bg */
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.oc-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.oc-links li a {
    display: block;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #cbd5e1;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.15s, color 0.15s;
    letter-spacing: 0.2px;
}

.oc-links li a:hover,
.oc-links li a.oc-active {
    background: rgba(3, 105, 161, 0.25);
    color: #7dd3fc;
}

.oc-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 24px 6px;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-top: auto;
}

.oc-phone .fa { color: #7dd3fc; font-size: 14px; }

.oc-phone a {
    color: #ffffff;
    text-decoration: none;
}

.oc-tagline {
    padding: 4px 24px 0;
    font-size: 11px;
    color: #475569;
    letter-spacing: 0.5px;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 780px) {
    /* Hide desktop nav on mobile */
    #trueHeader .one_half.last {
        display: none !important;
    }

    /* Show hamburger */
    .hamburger {
        display: flex;
    }

    /* Tighten header on mobile */
    #trueHeader .container {
        padding: 10px 16px;
        min-height: 64px;
        position: relative;
    }

    /* Logo smaller on mobile */
    #trueHeader .one_half:first-child a img {
        max-height: 52px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 0 20px;
    }

    .cta-band { padding: 28px 20px; }
    .cta-band h2 { font-size: 18px; }
    .cta-band-buttons { flex-direction: column; align-items: center; }
}
