/* ============================================
   CLEANING SERVICE - PROFESSIONAL STYLESHEET
   WITH TAILWIND CSS INTEGRATION
   ============================================ */

/* CSS Variables */
:root {
    --primary-blue: #2D8B6F;
    --safety-green: #3EB489;
    --vibrant-orange: #A8E6C1;
    --light-blue: #D4F1E8;
    --dark-gray: #333;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(62, 180, 137, 0.1);
    --transition: all 0.3s ease;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Montserrat', sans-serif;
    color: var(--dark-gray);
    line-height: 1.6;
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    font-family: 'Poppins', 'Montserrat', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

/* ============================================
   NAVIGATION BAR - MODERN DESIGN
   ============================================ */

.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Desktop Navigation Links */
.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2.5px;
    background: linear-gradient(90deg, #3EB489 0%, #2D8B6F 100%);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: #3EB489 !important;
    transform: translateY(-1px);
}

/* Nav Right Section */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Hamburger Menu - Modern Design */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 0.375rem;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.hamburger:hover {
    opacity: 0.7;
}

.hamburger-line {
    width: 1.5rem;
    height: 0.125rem;
    background-color: #2D8B6F;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

/* Hamburger Animation - Open State */
.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(0.5rem) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-0.5rem);
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-0.5rem) rotate(-45deg);
}

/* Mobile Navigation Menu */
.nav-menu {
    list-style: none;
}

.nav-menu.active {
    animation: slideDown 0.3s ease forwards;
}

.nav-menu.hidden {
    animation: slideUp 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.mobile-nav-link {
    display: block;
    padding: 0.875rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background-color: #3EB489;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}

.mobile-nav-link:hover {
    background-color: rgba(62, 180, 137, 0.1);
    padding-left: 1.25rem;
}

.mobile-nav-link:hover::before {
    transform: scaleY(1);
}

/* ============================================
   WAVE TRANSITION
   ============================================ */

.wave {
    position: relative;
    height: 100px;
    background: linear-gradient(135deg, #2D8B6F 0%, #D4F1E8 100%);
    overflow: hidden;
}

.wave svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ============================================
   RESPONSIVE DESIGN - MODERN MOBILE FIRST
   ============================================ */

@media (max-width: 1024px) {
    .nav-container {
        padding: 0.75rem 1rem;
    }

    .nav-menu {
        gap: 0.5rem;
    }
}

@media (max-width: 1024px) {
    .navbar {
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    }

    .hamburger {
        display: flex;
    }

    .nav-menu.active {
        display: flex !important;
    }

    .nav-menu.hidden {
        display: none !important;
    }

    .wave {
        height: 50px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0.75rem 1rem;
        height: 16rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .nav-menu {
        top: 64px;
        padding: 0.75rem 1rem;
        gap: 0.25rem;
    }

    .mobile-nav-link {
        padding: 0.75rem 0.875rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.6rem 0.75rem;
    }

    .logo {
        font-size: 1rem;
    }

    .hamburger-line {
        width: 1.25rem;
    }

    .nav-menu {
        padding: 0.5rem;
        gap: 0;
    }

    .mobile-nav-link {
        padding: 0.75rem;
        font-size: 0.875rem;
    }

    .mobile-nav-link:hover {
        padding-left: 1rem;
    }
}

/* ============================================
   SERVICES SECTION - RESPONSIVE GRID
   ============================================ */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
    padding: 0 1rem;
}

.service-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(62, 180, 137, 0.15);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: #3EB489;
    font-size: clamp(16px, 3vw, 18px);
    margin: 0 0 0.5rem 0;
    position: relative;
}

.service-card p {
    color: #333;
    font-size: clamp(12px, 2vw, 14px);
    line-height: 1.6;
    margin: 0 0 1rem 0;
    flex-grow: 1;
}

.service-card button {
    background-color: #3EB489;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: clamp(11px, 2vw, 12px);
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.service-card button:hover {
    background-color: #2D8B6F;
    transform: translateY(-2px);
}

/* Tablet - 2 columns */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        padding: 0 0.875rem;
    }

    .service-card {
        padding: 0.875rem;
    }

    .service-card img {
        height: 180px;
        margin-bottom: 0.875rem;
    }

    .service-card button {
        padding: 0.55rem 1rem;
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 0.75rem;
    }

    .service-card {
        padding: 0.75rem;
    }

    .service-card img {
        height: 160px;
        margin-bottom: 0.75rem;
    }

    .service-card h3 {
        font-size: clamp(14px, 2.5vw, 16px);
        margin-bottom: 0.4rem;
    }

    .service-card p {
        font-size: clamp(11px, 1.8vw, 12px);
        margin-bottom: 0.75rem;
    }

    .service-card button {
        padding: 0.5rem 0.875rem;
        font-size: 10px;
    }
}

/* Mobile - 1 column */
@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
        padding: 0 0.625rem;
    }

    .service-card {
        padding: 0.75rem;
    }

    .service-card img {
        height: 150px;
        margin-bottom: 0.75rem;
    }

    .service-card h3 {
        font-size: 15px;
        margin-bottom: 0.35rem;
    }

    .service-card p {
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 0.625rem;
    }

    .service-card button {
        padding: 0.5rem 0.75rem;
        font-size: 11px;
    }
}

/* Small mobile - 1 column with minimal padding */
@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0 0.5rem;
    }

    .service-card {
        padding: 0.625rem;
    }

    .service-card img {
        height: 140px;
        margin-bottom: 0.625rem;
    }

    .service-card h3 {
        font-size: 14px;
        margin-bottom: 0.3rem;
    }

    .service-card p {
        font-size: 11px;
        line-height: 1.4;
        margin-bottom: 0.5rem;
    }

    .service-card button {
        padding: 0.45rem 0.6rem;
        font-size: 10px;
    }
}
