/* ========================================
   Master Carpet Cleaning SA — Custom Styles
   ======================================== */

/* --- Custom Properties --- */
:root {
    --color-mint-300: #6EE7B7;
    --color-mint-400: #34D399;
    --color-mint-500: #10B981;
    --color-mint-100: #D1FAE5;
    --color-midnight-800: #0D1B2A;
    --color-midnight-900: #070F18;
    --font-heading: 'Nunito', sans-serif;
    --font-body: 'Quicksand', sans-serif;
}

/* --- Base --- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* --- Hero Gradient --- */
.hero-section {
    background: linear-gradient(135deg, #E0F2FE 0%, #D1FAE5 30%, #A7F3D0 60%, #6EE7B7 100%);
    min-height: 100vh;
}

/* --- Hero Blobs --- */
.hero-blob {
    animation: float 8s ease-in-out infinite;
}

.blob-1 {
    animation-delay: 0s;
}

.blob-2 {
    animation-delay: -3s;
    animation-duration: 10s;
}

.blob-3 {
    animation-delay: -5s;
    animation-duration: 12s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -20px) scale(1.05); }
    50% { transform: translate(-10px, 20px) scale(0.95); }
    75% { transform: translate(15px, 10px) scale(1.02); }
}

/* --- Scroll Indicator --- */
.scroll-indicator {
    opacity: 0.5;
    animation: fadeInUp 1s ease-out 1.5s both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to { opacity: 0.5; transform: translate(-50%, 0); }
}

/* --- Navbar --- */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-mint-400);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* --- Mobile Menu --- */
.mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-nav-link {
    position: relative;
    padding-left: 0;
    transition: color 0.2s ease;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 100%;
    background: var(--color-mint-100);
    border-radius: 8px;
    transition: width 0.2s ease;
}

.mobile-nav-link:hover::before {
    width: 100%;
}

.mobile-nav-link:hover {
    color: var(--color-mint-500);
}

/* --- Buttons --- */
.btn-primary {
    background: var(--color-midnight-800);
    color: white;
    border-radius: 1rem;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 27, 42, 0.2);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: var(--color-mint-500);
    color: var(--color-midnight-800);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--color-midnight-800);
    border-radius: 1rem;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: var(--color-midnight-800);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 27, 42, 0.2);
}

.btn-primary-inverse {
    background: var(--color-mint-400);
    color: var(--color-midnight-800);
    border-radius: 1rem;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 211, 153, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary-inverse:hover {
    background: white;
    color: var(--color-midnight-800);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.btn-secondary-inverse {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary-inverse:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* --- Service Cards --- */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* --- Process Steps --- */
.process-step {
    transition: transform 0.3s ease;
}

.process-step:hover {
    transform: translateY(-4px);
}

/* --- Testimonial Cards --- */
.testimonial-card {
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

/* --- Input Fields --- */
.input-field {
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--color-midnight-800);
    transition: all 0.2s ease;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.input-field:focus {
    border-color: var(--color-mint-400);
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.15);
}

.input-field::placeholder {
    color: #9CA3AF;
}

.input-field option {
    color: var(--color-midnight-800);
}

/* --- Scroll Reveal Animations --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-blob {
        animation: none;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 8rem 0 4rem;
    }

    .hero-section h1 {
        font-size: 2.25rem;
    }

    .hero-section h1 br {
        display: none;
    }

    .scroll-indicator {
        display: none;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .hero-section {
        padding-top: 6rem;
    }
}
