
:root {
    /* Primary */
    --anchor-blue: #2F4F6F;
    
    /* Secondary */
    --coastal-blue: #6FA3CB;
    --sea-mist: #AFCAD6;
    
    /* Neutrals */
    --linen-white: #FAFAF8;
    --sand-driftwood: #D6CFC4;
    --soft-grey: #E4E7EA;
    --charcoal: #3A3F45;
    
    /* Typography */
    --font-inter: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --weight-regular: 400;
    --weight-bold: 700;
    
    /* Spacing */
    --section-spacing: 5rem;
    --container-padding: clamp(1rem, 4vw, 2rem);
    --card-spacing: 2rem;
    --grid-gap: 1.5rem;
}

/* GLOBAL RESETS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-inter);
    font-weight: var(--weight-regular);
    background-color: var(--linen-white);
    color: var(--anchor-blue);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    width: 100%;
}

/* GLOBAL TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    color: var(--anchor-blue);
    letter-spacing: 0.5px;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
}

h2, .section-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 2rem;
}

h3 {
    font-size: clamp(1.125rem, 3vw, 1.75rem);
    line-height: 1.3;
    margin-bottom: 1rem;
}

p, li, span, div {
    font-weight: var(--weight-regular);
    color: var(--charcoal);
    text-transform: none;
    font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
}

a {
    text-decoration: none;
    color: var(--anchor-blue);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--coastal-blue);
}

strong {
    font-weight: var(--weight-bold);
}

/* NO ITALICS ANYWHERE */
em, i, .italic {
    font-style: normal !important;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

main {
    margin-top: 80px;
    flex: 1;
    width: 100%;
}

/* ===================================
   GLOBAL NAVIGATION BAR
   =================================== */
.global-nav {
    background-color: var(--linen-white);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 100px;
    display: flex;
    align-items: center;
    padding: 0 var(--container-padding);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo container */
.nav-logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-logo {
    height: 90px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-logo {
    font-family: var(--font-inter);
    font-weight: var(--weight-regular);
    font-size: 0.875rem;
    text-transform: uppercase;
    color: var(--anchor-blue);
    letter-spacing: 1px;
    white-space: nowrap;
    line-height: 1.2;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    font-family: var(--font-inter);
    font-weight: var(--weight-regular);
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--anchor-blue);
    letter-spacing: 1px;
    white-space: nowrap;
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropbtn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-dropbtn .fa-chevron-down {
    font-size: 0.625rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-dropbtn .fa-chevron-down {
    transform: rotate(180deg);
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--linen-white);
    min-width: 200px;
    z-index: 1001;
    top: 100%;
    left: 0;
}

.nav-dropdown-content a {
    color: var(--anchor-blue);
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    display: block;
}

.nav-dropdown-content a:hover {
    color: var(--coastal-blue);
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block;
}

.nav-phone {
    font-family: var(--font-inter);
    font-weight: var(--weight-regular);
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--anchor-blue);
    letter-spacing: 1px;
    white-space: nowrap;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--anchor-blue);
    transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===================================
   GLOBAL FOOTER
   =================================== */
   .footer-column {
    white-space: nowrap;
}


.global-footer {
    margin-top: auto;
    width: 100%;
}

.footer-breathing-space {
    height: 60px;
    background-color: var(--linen-white);
}

.footer-content {
    background-color: var(--anchor-blue);
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    align-items: start;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-column h4,
.footer-column a,
.footer-column p {
    font-family: var(--font-inter);
    font-weight: var(--weight-regular);
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--linen-white);
    letter-spacing: 1px;
    line-height: 1.5;
}

.linkedin-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.linkedin-icon {
    color: var(--linen-white);
    font-size: 0.75rem;
}



/* Tablet */
@media (max-width: 1024px) {
    :root {
        --section-spacing: 4rem;
        --grid-gap: 1.25rem;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .service-content-grid,
    .service-tiles-grid,
    .care-levels-grid,
    .cleaning-grid,
    .contracts-grid,
    .why-choose-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Mobile */
@media (max-width: 767px) {
    /* Mobile Navigation */
    .mobile-toggle {
        display: flex;
    }
    
     .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--linen-white);

        display: flex;              /* ✅ REQUIRED */
        flex-direction: column;
        justify-content: flex-start;

        padding: 2rem;
        gap: 0;

        transition: left 0.3s ease;

        z-index: 9999;              /* ✅ CRITICAL FIX */
        overflow-y: auto;
        pointer-events: auto;       /* ✅ ensures clicks work */
    }

    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu a,
    .nav-phone {
        padding: 1rem 0;
        width: 100%;
        text-align: center;
        font-size: 0.875rem;
        margin: 0;
    }
    
    .nav-phone {
        margin-top: 1rem;
        font-size: 0.875rem;
    }
    
    /* Mobile dropdown */
    .nav-dropdown {
        width: 100%;
        text-align: center;
    }
    
    .nav-dropbtn {
        justify-content: center;
        width: 100%;
    }
    
    .nav-dropdown-content {
        position: static;
        display: none;
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .nav-dropdown-content a {
        padding: 0.75rem 0;
        font-size: 0.875rem;
    }
    
    .nav-dropdown.active .nav-dropdown-content {
        display: block;
    }
    
    /* Logo adjustments */
    .nav-logo-container {
        gap: 0.75rem;
    }
    
    .site-logo {
        height: 40px;
    }
    
    .nav-logo {
        font-size: 0.75rem;
    }
    
    /* Hero adjustments */
    .home-hero {
        height: 70vh;
        min-height: 400px;
    }
    
    .cleaning-hero {
        height: 40vh;
        min-height: 350px;
    }
    
    /* Section spacing */
    :root {
        --section-spacing: 3rem;
        --container-padding: 1.25rem;
        --card-spacing: 1.5rem;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-breathing-space {
        height: 3rem;
    }
    
    .footer-content {
        padding: 2rem 0;
    }
    
    .footer-column {
        align-items: center;
    }
    
    .linkedin-link {
        justify-content: center;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    :root {
        --section-spacing: 2.5rem;
        --container-padding: 1rem;
        --card-spacing: 1.25rem;
    }
    
    .home-hero {
        height: 60vh;
        min-height: 350px;
    }
    
    .cleaning-hero {
        height: 35vh;
        min-height: 300px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .nav-logo {
        font-size: 0.6875rem;
    }
    
    .site-logo {
        height: 35px;
    }
    
    .service-content-grid,
    .service-tiles-grid,
    .care-levels-grid,
    .cleaning-grid,
    .contracts-grid,
    .why-choose-grid {
        grid-template-columns: 1fr;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .nav-logo {
        font-size: 0.625rem;
    }
    
    .site-logo {
        height: 30px;
    }
    
    :root {
        --section-spacing: 2rem;
        --card-spacing: 1rem;
    }
}

/* Print styles */
@media print {
    .global-nav,
    .global-footer,
    .mobile-toggle {
        display: none !important;
    }
    
    body {
        margin-top: 0;
        background: white !important;
        color: black !important;
    }
    
    main {
        margin-top: 0;
    }
    
    a {
        color: black !important;
    }
    
    .home-hero,
    .cleaning-hero {
        height: auto;
        min-height: auto;
        background: none !important;
    }
}

@media (max-width: 767px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: left; /* KEY FIX */
    }

    .footer-column {
        align-items: flex-start; /* KEY FIX */
    }

    .linkedin-link {
        justify-content: flex-start; /* KEY FIX */
    }
}
