/* ===== CLEANWORLD NAVIGATION + FOOTER SYSTEM ===== */
/* Shared styles for all pages */

/* Color variables */
:root {
    --navy: #264B6F;
    --navy-deep: #0B1D33;
    --navy-light: #264B6F;
    --navy-surface: #0e2540;
    --amber: #C99B27;
    --amber-light: #DDB93A;
    --amber-dark: #A8811C;
    --amber-glow: rgba(201, 155, 39, 0.15);
    --cream: #F8F6F2;
    --white: #FFFFFF;
    --gray-100: #F4F1EC;
    --gray-200: #E8E4DD;
    --gray-300: #C8C2B8;
    --gray-500: #7A7467;
    --gray-700: #4A453D;
    --red: #C0392B;
    --red-light: #E74C3C;
    --green: #27AE60;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-light: rgba(255, 255, 255, 0.06);
    --gold: #C99B27;
    --steel: #264B6F;
}

/* ===== EMERGENCY BAR (TOP) ===== */
.emergency-bar {
    background: var(--navy-deep);
    color: var(--white);
    padding: 0.6rem 2rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border-bottom: 1px solid rgba(201,155,39,0.2);
}

.emergency-bar-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.emergency-bar-center {
    text-align: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.78rem;
}

.emergency-bar-right {
    text-align: right;
    font-weight: 700;
}

.emergency-bar-right a {
    color: var(--amber);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
}

.emergency-bar-right a:hover {
    color: var(--amber-light);
}

.emergency-bar a {
    color: var(--white);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.emergency-bar .pulse-dot {
    width: 8px;
    height: 8px;
    background: #FF6B6B;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(255, 107, 107, 0.4);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

@media (max-width: 768px) {
    .emergency-bar {
        grid-template-columns: 1fr;
        gap: 0.15rem;
        text-align: center;
        padding: 0.5rem 1rem;
    }
    .emergency-bar-left,
    .emergency-bar-center {
        display: none;
    }
    .emergency-bar-right {
        text-align: center;
    }
}

/* ===== NAVIGATION ===== */
nav {
    position: fixed;
    top: 38px;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 33, 55, 0.8);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.3s, padding 0.3s, top 0.3s;
}

nav.scrolled {
    background: rgba(15, 33, 55, 0.95);
    padding: 0.75rem 2.5rem;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-logo {
    font-family: 'DM Serif Display', serif;
    font-size: 1.4rem;
    color: var(--white);
    letter-spacing: -0.02em;
    cursor: pointer;
}

.nav-logo span {
    color: var(--amber);
}

.nav-links {
    display: flex;
    gap: 1.75rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.25s;
    letter-spacing: 0.01em;
}

.nav-links a:hover {
    color: var(--amber);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-phone {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.25s;
}

.nav-phone:hover {
    color: var(--white);
}

/* Button styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.6rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--amber) 0%, var(--amber-dark) 100%);
    color: var(--navy-deep);
    box-shadow: 0 4px 20px rgba(245, 183, 49, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--amber-light) 0%, var(--amber) 100%);
    color: var(--navy-deep);
    transform: translateY(-2px);
    box-shadow: 0 10px 35px rgba(245, 183, 49, 0.3);
}

.btn-secondary {
    background: var(--navy);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--navy-light);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2.25rem;
    font-size: 0.95rem;
    border-radius: 12px;
    letter-spacing: 0.02em;
}

.btn-emergency {
    background: var(--red);
    color: var(--white);
}

.btn-emergency:hover {
    background: var(--red-light);
    transform: translateY(-2px);
}

/* ===== MOBILE MENU ===== */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    margin: 6px 0;
    transition: all 0.3s;
}

.mobile-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translateY(11px);
}

.mobile-toggle.open span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translateY(-11px);
}

.mobile-menu {
    position: fixed;
    top: 38px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 29, 51, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 99;
    display: none;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.mobile-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--white);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-links {
    list-style: none;
    padding: 1rem;
}

.mobile-menu-links li {
    margin-bottom: 0;
}

.mobile-menu-links a {
    display: block;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: color 0.2s;
}

.mobile-menu-links a:hover {
    color: var(--amber);
}

.mobile-menu-footer {
    padding: 1rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ===== STICKY MOBILE CALL BAR ===== */
.sticky-call-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 98;
    background: linear-gradient(135deg, var(--amber) 0%, var(--amber-dark) 100%);
    padding: 0;
    display: none;
    grid-template-columns: 1fr 1fr;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15);
}

.sticky-call-bar.show {
    display: grid;
}

.sticky-call-bar a {
    padding: 1rem;
    text-align: center;
    color: var(--navy-deep);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    border-right: 1px solid rgba(11, 29, 51, 0.15);
    transition: background 0.2s;
}

.sticky-call-bar a:last-child {
    border-right: none;
}

.sticky-call-bar a:hover {
    background: rgba(11, 29, 51, 0.1);
}

@media (max-width: 768px) {
    nav {
        top: 38px;
        padding: 0.75rem 1rem;
    }

    .nav-left {
        gap: 1rem;
    }

    .nav-logo {
        font-size: 1rem;
    }

    .nav-links {
        display: none;
    }

    .nav-right {
        gap: 0.5rem;
    }

    .nav-phone {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .btn-estimate {
        display: none;
    }

    .sticky-call-bar {
        display: grid;
    }
}

/* ===== FOOTER ===== */
.footer-mega {
    background: var(--navy-deep);
    border-top: 1px solid rgba(201,155,39,0.15);
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-mega-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr 1.2fr;
    gap: 3rem;
}

.footer-brand h3 {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.1rem;
}

.footer-brand h3 span {
    color: var(--amber);
}

.footer-brand .tagline {
    font-size: 0.7rem;
    color: var(--amber);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.65;
    margin-bottom: 1rem;
}

.footer-brand .phone-link {
    color: var(--amber);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
}

.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.55rem;
}

.footer-col ul li a {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--amber);
}

.footer-emergency {
    background: rgba(201,155,39,0.06);
    border: 1px solid rgba(201,155,39,0.15);
    border-radius: 12px;
    padding: 1.25rem;
}

.footer-emergency h4 {
    color: var(--amber) !important;
    border-color: rgba(201,155,39,0.15) !important;
}

.footer-emergency .phone-big {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--amber);
    display: block;
    margin: 0.75rem 0 0.25rem;
    text-decoration: none;
}

.footer-emergency p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
}

.footer-mega-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-mega-bottom p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.3);
}

.footer-mega-bottom .footer-links {
    display: flex;
    gap: 1.25rem;
}

.footer-mega-bottom .footer-links a {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.35);
    text-decoration: none;
}

.footer-mega-bottom .footer-links a:hover {
    color: var(--amber);
}

@media (max-width: 1000px) {
    .footer-mega-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-mega {
        padding: 2rem 1rem 1rem;
    }

    .footer-mega-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .footer-mega-bottom .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Ensure body has top padding for fixed nav */
body {
    padding-top: 38px; /* Emergency bar height */
}

/* Adjust for nav below emergency bar */
main, .page-content, #app {
    margin-top: 60px; /* nav height */
}

@media (max-width: 768px) {
    body {
        padding-top: 38px;
    }

    main, .page-content, #app {
        margin-top: 50px;
    }
}
