/* ========================================
   SITE HEADER — PREMIUM REDESIGN
   ======================================== */

/* ① Site Header wrapper — sticky */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

/* ② Utility Bar */
.header-utility-bar {
    background: #0f172a;
    color: rgba(255,255,255,0.75);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-bottom: 1px solid #1e293b;
}


.header-utility-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 38px;
    gap: 1rem;
}

.utility-left,
.utility-right {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.utility-left { display: none; }

@media (min-width: 768px) {
    .utility-left { display: flex; }
}

.utility-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.utility-item:hover { color: #ffffff; }
.utility-hours { cursor: default; }

.utility-sep {
    color: #334155;
    font-size: 0.8rem;
}

/* Social icons in utility bar */
.utility-social {
    color: rgba(255,255,255,0.55);
    display: flex;
    align-items: center;
    transition: color 0.2s ease, transform 0.2s ease;
}

.utility-social:hover {
    color: #60a5fa;
    transform: translateY(-1px);
}

/* Emergency pulse */
.utility-emergency {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #f87171;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: color 0.2s ease;
}

.utility-emergency:hover { color: #fca5a5; }

.utility-pulse {
    width: 7px;
    height: 7px;
    background: #ef4444;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.utility-pulse::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: rgba(239,68,68,0.4);
    animation: pulse-ring 1.4s ease-out infinite;
}

@keyframes pulse-ring {
    0%   { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2);   opacity: 0; }
}

/* ③ Main Navigation Bar */
.header-main-bar {
    background: #ffffff;
    box-shadow: 0 1px 0 #f1f5f9;
    transition: box-shadow 0.3s ease;
}

/* Scroll-shrink state added by JS */
.header-main-bar.scrolled {
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.header-main-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    height: 70px;
    transition: height 0.3s ease;
}

.header-main-bar.scrolled .header-main-inner {
    height: 60px;
}

/* Logo */
.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}

.header-logo-icon {
    font-size: 2rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.header-logo:hover .header-logo-icon { transform: rotate(-8deg) scale(1.1); }

.header-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.header-logo-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.header-logo-tag {
    font-size: 0.65rem;
    font-weight: 700;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 2px;
}

/* Desktop Nav Links */
.header-nav-links {
    display: none;
    flex: 1;
}

@media (min-width: 1024px) {
    .header-nav-links { display: flex; justify-content: center; }
}

.header-nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-nav-item {
    position: relative;
}

.header-nav-link {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.55rem 0.875rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.header-nav-link:hover {
    background: #f0f7ff;
    color: #3b82f6;
}

/* Active link indicator */
.header-nav-item.active > .header-nav-link {
    color: #3b82f6;
}

.header-nav-item.active > .header-nav-link::after {
    content: '';
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: #3b82f6;
    border-radius: 2px;
}

.nav-chevron {
    transition: transform 0.25s ease;
    flex-shrink: 0;
    margin-top: 1px;
}

.header-nav-item.has-sub:hover .nav-chevron {
    transform: rotate(180deg);
}

/* ---- Dropdown ---- */
.header-dropdown {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 240px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
    padding: 0.625rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100;
}

/* Arrow tip */
.header-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 2px;
    transform: translateX(-50%) rotate(45deg);
    box-shadow: -2px -2px 5px rgba(0,0,0,0.04);
}

.header-nav-item.has-sub:hover .header-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.header-dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.header-dropdown-link:hover {
    background: #f0f7ff;
    color: #3b82f6;
}

.dropdown-link-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cbd5e1;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.header-dropdown-link:hover .dropdown-link-dot {
    background: #3b82f6;
}

/* Services button (hover-only, no navigation) */
.header-nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* "View All Services →" footer inside dropdown */
.dropdown-view-all {
    display: block;
    margin: 0.5rem 0.375rem 0.25rem;
    padding: 0.6rem 1rem;
    font-size: 0.78rem;
    font-weight: 800;
    color: #3b82f6;
    text-decoration: none;
    border-top: 1px solid #f1f5f9;
    text-align: right;
    letter-spacing: 0.02em;
    transition: color 0.2s;
}
.dropdown-view-all:hover { color: #2563eb; }

/* ---- Header Actions ---- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Call button */
.header-call-btn {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .header-call-btn { display: flex; }
}

.header-call-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #f0f7ff;
}

/* Quote button */
.header-quote-btn {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(59,130,246,0.35);
}

@media (min-width: 900px) {
    .header-quote-btn { display: flex; }
}

.header-quote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59,130,246,0.45);
}

/* ---- Hamburger ---- */
.header-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    cursor: pointer;
    padding: 0 10px;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .header-hamburger { display: none; }
}

.header-hamburger:hover { background: #f0f7ff; }

.ham-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: #0f172a;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

/* Open state */
.header-hamburger.open .ham-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header-hamburger.open .ham-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.header-hamburger.open .ham-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ③ Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(360px, 90vw);
    height: 100dvh;
    background: #ffffff;
    z-index: 1200;
    box-shadow: -8px 0 40px rgba(0,0,0,0.12);
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mobile-drawer.open {
    transform: translateX(0);
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.mobile-drawer-close {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.mobile-drawer-close:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #ef4444;
}

/* Mobile Nav */
.mobile-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0 0.75rem;
}

.mobile-nav-item {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    border-radius: 12px;
    transition: background 0.2s ease, color 0.2s ease;
}

.mobile-nav-link:hover {
    background: #f0f7ff;
    color: #3b82f6;
}

.mobile-acc-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    color: #94a3b8;
}

.mobile-nav-item.has-acc.sub-open .mobile-acc-icon {
    transform: rotate(180deg);
}

/* Sub-list accordion */
.mobile-sub-list {
    list-style: none;
    padding: 0 0 0.5rem 0.5rem;
    margin: 0;
    display: none;
    flex-direction: column;
    gap: 0.125rem;
}

.mobile-nav-item.sub-open .mobile-sub-list {
    display: flex;
}

.mobile-sub-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.65rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-sub-link::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #cbd5e1;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.mobile-sub-link:hover {
    background: #f0f7ff;
    color: #3b82f6;
}

.mobile-sub-link:hover::before { background: #3b82f6; }

/* Drawer Footer */
.mobile-drawer-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-shrink: 0;
}

.mobile-contact-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    padding: 0.625rem 0;
}

.mobile-contact-item svg { color: #3b82f6; flex-shrink: 0; }

.mobile-quote-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(59,130,246,0.35);
}

.mobile-quote-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(59,130,246,0.4); }

/* Overlay */
.mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
    z-index: 1199;
    opacity: 0;
    visibility: hidden;
    transition: all 0.38s ease;
}

.mobile-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}



/* ========================================
   FOOTER — PREMIUM REDESIGN
   ======================================== */

/* Wave Divider */
.footer-wave {
    line-height: 0;
    overflow: hidden;
    background: #f8fafc; /* parent section bg above footer */
}

.footer-wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* Main Footer Body */
.footer-redesign {
    background-color: #0f172a;
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-main {
    padding: 5rem 0 3.5rem;
}

.footer-main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.5rem;
}

@media (min-width: 640px) {
    .footer-main-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .footer-main-grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 4rem; }
}

/* Brand Column */

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1.5rem;
}

.footer-logo-icon {
    font-size: 2.25rem;
    line-height: 1;
}

.footer-logo-name {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
}

.footer-logo-tag {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.25rem;
}

.footer-brand-desc {
    line-height: 1.8;
    color: #94a3b8;
    font-size: 0.875rem;
    margin-bottom: 2rem;
    max-width: 280px;
}

.footer-socials-row {
    display: flex;
    gap: 0.75rem;
}

.footer-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1e293b;
    border: 1px solid #334155;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-social-btn:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59,130,246,0.35);
}

/* Generic Columns */

.footer-col-heading {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #ffffff;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-col-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: #3b82f6;
    border-radius: 2px;
}

.footer-col-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.25s ease;
}

.footer-col-links a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.footer-link-arrow {
    color: #3b82f6;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}

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

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.6;
}

.footer-contact-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.footer-contact-item a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-contact-item a:hover {
    color: #3b82f6;
}

.footer-contact-item em {
    font-style: normal;
    color: #64748b;
    font-size: 0.8rem;
}

/* Bottom Bar */
.footer-bottom-bar {
    border-top: 1px solid #1e293b;
    padding: 1.25rem 0;
}

.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: #64748b;
}

.footer-bottom-inner p strong {
    color: #94a3b8;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-bottom-links a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-bottom-links a:hover { color: #3b82f6; }

.footer-bottom-sep {
    color: #334155;
}

