/* ===========================
   CSS RESET & BASE STYLES
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* ===========================
   CONTAINER & LAYOUT
   =========================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* ===========================
   TYPOGRAPHY
   =========================== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none; /* no outline */
    text-align: center;
    background: #f6f7f8; /* soft off-white */
    color: #1f2937; /* softer black */
    box-shadow: 0 1px 6px rgba(15, 23, 42, 0.04);
}

.btn:hover {
    background: #eef2f6; /* subtle hover */
    color: #0f1720;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.btn-primary {
    background: #f6f7f8;
    color: #1f2937;
    border: none;
}

.btn-primary:hover {
    background: #eef2f6;
    color: #0f1720;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.btn-whatsapp {
    background: #f6f7f8;
    color: #1f2937; /* text remains soft black; icon stays brand-colored */
    border: none;
}

.btn-whatsapp:hover {
    background: #25D366; /* whatsapp green on hover */
    color: #ffffff;
}

.btn-instagram {
    background: #f6f7f8;
    color: #1f2937;
    border: none;
}

.btn-instagram:hover {
    background: linear-gradient(45deg, #f58529, #dd2a7b, #515bd4);
    color: #ffffff;
}

/* WhatsApp icon colour control (keep icon brand green while text is soft black) */
.btn-whatsapp .btn-social-icon { color: #25D366; }
.btn-whatsapp:hover .btn-social-icon { color: #ffffff; }

.btn-large {
    padding: 18px 36px;
    font-size: 1.1rem;
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.1rem;
}

.btn-icon {
    font-size: 1.2em;
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2563eb;
    background-image: url('assets/images/Cleaning.jpg');
    background-size: cover;
    background-position: top center;
    background-attachment: scroll;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    line-height: 1.6;
    opacity: 0.95;
}

.hero-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
    color: white;
    font-size: 0.9rem;
    opacity: 0.8;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg);
    margin: 10px auto;
    animation: bounce 2s infinite;
}

/* ===========================
   WHY CHOOSE US SECTION
   =========================== */
.why-choose {
    background: #f8f9fa;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.benefit-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.benefit-card p {
    color: #666;
    line-height: 1.7;
}

/* ===========================
   SERVICES SECTION
   =========================== */
.services {
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.service-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image {
    transform: scale(1.1);
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: #1a1a1a;
}

.service-content p {
    color: #666;
    line-height: 1.7;
}

/* ===========================
   GALLERY SECTION
   =========================== */
.gallery {
    background: #f8f9fa;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.gallery-item.visible {
    opacity: 1;
    transform: scale(1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(37, 99, 235, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay p {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

/* ===========================
   TESTIMONIALS SECTION
   =========================== */
.testimonials {
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: #f8f9fa;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.stars {
    color: #ffc107;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: #333;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.testimonial-author strong {
    color: #1a1a1a;
    font-size: 1.1rem;
}

.testimonial-author span {
    color: #666;
    font-size: 0.9rem;
}

/* ===========================
   FINAL CTA SECTION
   =========================== */
.final-cta {
    position: relative;
    overflow: hidden;
    background: #2563eb;
    background-image: url('assets/images/cleaningImage1.jpg');
    background-size: cover;
    background-position: bottom center;
    background-attachment: scroll;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    padding: 100px 0;
}

.final-cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.final-cta .container {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===========================
   FLOATING ACTION BUTTON
   =========================== */
.floating-action {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.fab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #ffffff;
    color: #16a34a; /* green phone icon color */
    border-radius: 50%;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(22, 163, 74, 0.25); /* green-tinted shadow */
    transition: all 0.25s ease;
    animation: pulse 2s infinite;
    border: none;
}

.fab-btn:hover {
    background: #16a34a;
    color: #ffffff;
    transform: translateY(-3px);
}

.fab-icon {
    width: 24px;
    height: 24px;
    display: block;
}

.btn-social-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
}

/* Footer social spacing when showing icon-only links */
.footer-contact a.footer-social {
    display: inline-flex;
    align-items: center;
    margin-left: 12px;
    gap: 6px;
}

.footer-contact a.footer-social .btn-social-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
}

/* ===========================
   FOOTER SECTION
   =========================== */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 50px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: #aaa;
}

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

.footer-contact a {
    color: white;
    transition: color 0.3s ease;
    font-size: 1.1rem;
}

.footer-contact a:hover {
    color: #2563eb;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    color: #aaa;
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(-45deg);
    }
    40% {
        transform: translateY(-10px) rotate(-45deg);
    }
    60% {
        transform: translateY(-5px) rotate(-45deg);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 99, 235, 0.6);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
    }
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

/* Tablets */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero {
        background-attachment: scroll;
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .benefits-grid,
    .services-grid,
    .gallery-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-contact {
        align-items: center;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    section {
        padding: 60px 0;
    }
    
    .hero {
        background-attachment: scroll;
        background-position: center center;
        min-height: 450px;
    }
    
    .hero-overlay {
        background: rgba(0, 0, 0, 0.7);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .benefit-card,
    .service-card,
    .testimonial-card {
        padding: 25px 20px;
    }
    
    .floating-action {
        bottom: 20px;
        right: 20px;
    }
    
    .fab-btn {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .btn-large {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

/* Large Desktops */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .hero-title {
        font-size: 4rem;
    }
}
