/**
 * HQ Cleaning Service - Main Stylesheet
 *
 * @package HQ_Cleaning
 */

/* ============================================
   Color Variables
   ============================================ */
:root {
    --color-primary: #3871C1;      /* Primary Blue */
    --color-secondary: #80CC28;     /* Secondary Green */
    --color-tertiary: #51ADE5;      /* Light Blue */
    --color-text: #333333;
    --color-text-light: #555555;
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-bg-light: #F9FAFB;
    --color-bg-gradient-start: #EAF3FA;
    --color-bg-gradient-end: #C2E0F5;
    /* Green color variations for better design */
    --color-green-dark: #6BA820;   /* Darker green for hover states */
    --color-green-light: #9FE050;  /* Lighter green for accents */
}

/* ============================================
   Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-secondary);
}

/* ============================================
   Page Header & Title
   ============================================ */
.page-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, #2a5a9a 100%);
    padding: 80px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.3;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-white);
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .page-header {
        padding: 60px 20px 40px;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
}

/* Global Button Styles */
.btn-primary,
button.btn-primary,
input[type="submit"].btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-white) !important;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.btn-primary:hover,
button.btn-primary:hover,
input[type="submit"].btn-primary:hover {
    background-color: var(--color-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
    color: var(--color-white) !important;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.skip-to-content {
    position: absolute;
    left: -9999px;
    z-index: 999999;
}

.skip-to-content:focus {
    left: 6px;
    top: 7px;
    padding: 8px 16px;
    background: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
}

/* ============================================
   Site Container
   ============================================ */
.site-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   Header Styles
   ============================================ */
.primary-header {
    background-color: var(--color-white);
    padding: 20px 0 0 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.branding {
    display: flex;
    align-items: center;
}

.logo-link {
    display: block;
    text-decoration: none;
    line-height: 0;
}

.site-logo,
.branding .custom-logo-link img {
    max-width: 110px;
    max-height: 110px;
    width: auto;
    height: auto;
    display: block;
}

.primary-navigation {
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none;
    background: none;
    border: 2px solid var(--color-primary);
    border-radius: 4px;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    position: relative;
}

.menu-toggle:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.menu-toggle:hover .hamburger-line {
    background-color: var(--color-white);
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.page-listing {
    display: flex;
    list-style: none;
    gap: 35px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.page-listing li a {
    color: var(--color-primary);
    font-weight: 400;
    font-size: 17px;
    padding: 10px 0;
    display: block;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    border-bottom: 2px solid transparent;
    line-height: 1.2;
}

.page-listing li a:hover,
.page-listing li a.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.header-separator {
    height: 4px;
    background-color: var(--color-primary);
    width: 100%;
    margin: 5px 0 0 0;
    display: block;
}

/* ============================================
   Main Content
   ============================================ */
.site-main {
    flex: 1;
}

/* ============================================
   Footer Styles
   ============================================ */
.site-footer {
    background: linear-gradient(135deg, var(--color-primary) 0%, #2a5a9a 100%);
    color: var(--color-white);
    padding: 80px 20px 40px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.site-footer .site-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
    width: 100%;
}

.footer-section {
    color: var(--color-white);
}

.footer-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 25px;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.footer-about-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-about-text p {
    margin-bottom: 15px;
}

.footer-about-text p:last-child {
    margin-bottom: 0;
}

.footer-licensed {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-style: italic;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.footer-contact-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contact-label {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.footer-contact-value {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.7;
}

.footer-contact-value a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-value a:hover {
    color: var(--color-secondary);
}

/* WhatsApp Link Styling */
.footer-whatsapp .footer-whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(37, 211, 102, 0.15);
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.footer-whatsapp .footer-whatsapp-link:hover {
    background: rgba(37, 211, 102, 0.25);
    border-color: rgba(37, 211, 102, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.footer-whatsapp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.footer-whatsapp-icon svg {
    width: 100%;
    height: 100%;
    fill: #25D366; /* WhatsApp green */
}

.footer-whatsapp-text {
    font-weight: 500;
}

.footer-copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: auto; /* Push to bottom */
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    width: 100%;
}

.footer-copyright p {
    margin: 0;
}

/* ============================================
   Sticky WhatsApp Button
   ============================================ */
.sticky-whatsapp-btn {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25D366; /* WhatsApp green */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    border: none;
}

.sticky-whatsapp-btn svg {
    width: 32px;
    height: 32px;
    fill: var(--color-white);
}

.sticky-whatsapp-btn:hover {
    background: #20BA5A; /* Darker green on hover */
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

.sticky-whatsapp-btn.pulse {
    animation: whatsappPulse 1.5s ease-in-out infinite;
}

@keyframes whatsappPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
    }
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(56, 113, 193, 0.3);
    z-index: 999;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    color: var(--color-white);
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-white);
}

.back-to-top-btn:hover {
    background: var(--color-secondary);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 20px rgba(56, 113, 193, 0.4);
}

.back-to-top-btn:active {
    transform: translateY(-3px) scale(1.05);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .primary-header {
        padding: 12px 0;
    }

    .site-logo,
    .branding .custom-logo-link img {
        max-width: 90px;
        max-height: 90px;
    }

    .menu-toggle {
        display: flex;
    }

    .primary-navigation {
        position: relative;
    }

    .primary-navigation .page-listing {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        min-width: 200px;
        z-index: 1001;
    }

    .primary-navigation.active .page-listing {
        display: flex;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-title {
        font-size: 1.6rem;
        text-align: center;
    }
    
    .footer-about-text {
        font-size: 0.95rem;
        text-align: center;
    }
    
    .footer-licensed {
        text-align: center;
    }
    
    .footer-contact {
        align-items: center;
    }
    
    .footer-contact-item {
        gap: 10px;
        text-align: center;
        align-items: center;
    }
    
    .footer-contact-label {
        text-align: center;
    }
    
    .footer-contact-value {
        text-align: center;
    }
    
    .footer-whatsapp-link {
        justify-content: center;
    }
    
    .site-footer {
        padding: 60px 20px 30px;
    }
    
    /* Sticky buttons on mobile */
    .sticky-whatsapp-btn {
        width: 55px;
        height: 55px;
        bottom: 90px;
        right: 15px;
    }
    
    .sticky-whatsapp-btn svg {
        width: 28px;
        height: 28px;
    }
    
    .back-to-top-btn {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
    }
    
    .back-to-top-btn svg {
        width: 20px;
        height: 20px;
    }
    
    /* WhatsApp button position adjustment handled in JS */
}

