/* ===========================
   MFV Cleaning - Global Styles
   Warm, friendly, easy to read
   =========================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===========================
   Theme Variables
   =========================== */
:root,
[data-theme="light"] {
    --color-bg: #fefefe;
    --color-bg-alt: #f8fafc;
    --color-bg-warm: #fdf8f4;
    --color-text: #1c1c2e;
    --color-text-secondary: #555570;
    --color-primary: #2563eb;
    --color-primary-hover: #1d4ed8;
    --color-primary-soft: #eff6ff;
    --color-accent: #f59e0b;
    --color-accent-soft: #fffbeb;
    --color-border: #e8ecf2;
    --color-card-bg: #ffffff;
    --color-card-shadow: rgba(30, 41, 59, 0.06);
    --color-card-shadow-hover: rgba(30, 41, 59, 0.12);
    --color-header-bg: rgba(255, 255, 255, 0.95);
    --color-header-shadow: rgba(0, 0, 0, 0.04);
    --color-hero-bg: linear-gradient(160deg, #f0f7ff 0%, #fef9f3 40%, #f0fdf4 100%);
    --color-footer-bg: #1a2332;
    --color-footer-text: #b0bec5;
    --color-footer-heading: #ffffff;
    --color-success: #16a34a;
    --color-trust-bg: #ffffff;
    --toggle-bg: #f1f5f9;
    --blob-color-1: rgba(37, 99, 235, 0.06);
    --blob-color-2: rgba(245, 158, 11, 0.06);
}

[data-theme="dark"] {
    --color-bg: #0d1117;
    --color-bg-alt: #161b22;
    --color-bg-warm: #1a1f2e;
    --color-text: #e6edf3;
    --color-text-secondary: #8b949e;
    --color-primary: #79b8ff;
    --color-primary-hover: #a5d6ff;
    --color-primary-soft: #1a2744;
    --color-accent: #fbbf24;
    --color-accent-soft: #2a2210;
    --color-border: #30363d;
    --color-card-bg: #161b22;
    --color-card-shadow: rgba(0, 0, 0, 0.2);
    --color-card-shadow-hover: rgba(0, 0, 0, 0.35);
    --color-header-bg: rgba(13, 17, 23, 0.95);
    --color-header-shadow: rgba(0, 0, 0, 0.2);
    --color-hero-bg: linear-gradient(160deg, #0d1117 0%, #161b22 40%, #0d1117 100%);
    --color-footer-bg: #010409;
    --color-footer-text: #8b949e;
    --color-footer-heading: #e6edf3;
    --color-success: #56d364;
    --color-trust-bg: #161b22;
    --toggle-bg: #21262d;
    --blob-color-1: rgba(121, 184, 255, 0.05);
    --blob-color-2: rgba(251, 191, 36, 0.05);
}

/* ===========================
   Base Typography
   =========================== */
html {
    font-size: 18px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.75;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.25;
    color: var(--color-text);
}

h4 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    color: var(--color-text);
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-primary-hover);
}

/* ===========================
   Layout
   =========================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

.section-title {
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 0.6rem;
}

.left-title {
    text-align: left;
}

.section-subtitle {
    font-size: 1.15rem;
    text-align: center;
    color: var(--color-text-secondary);
    margin-bottom: 3rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* ===========================
   Header
   =========================== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 8px var(--color-header-shadow);
    transition: background-color 0.4s ease;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-icon {
    font-size: 1.6rem;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--color-primary);
    white-space: nowrap;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    padding: 0.3rem 0;
    position: relative;
    transition: color 0.2s ease;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav a:hover {
    color: var(--color-primary);
}

.nav a:hover::after {
    width: 100%;
}

/* Theme Toggle */
.theme-toggle {
    background: var(--toggle-bg);
    border: 2px solid var(--color-border);
    border-radius: 50%;
    cursor: pointer;
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.theme-toggle:hover {
    border-color: var(--color-primary);
    transform: scale(1.05);
}

.theme-toggle:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
}

.theme-icon.sun { display: block; }
.theme-icon.moon { display: none; }
[data-theme="dark"] .theme-icon.sun { display: none; }
[data-theme="dark"] .theme-icon.moon { display: block; }

/* ===========================
   Hero Section
   =========================== */
.hero {
    background: var(--color-hero-bg);
    padding: 6rem 2rem 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.hero-tagline {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.hero h2 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Decorative elements */
.hero-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.sparkle {
    position: absolute;
    font-size: 1.8rem;
    opacity: 0.25;
    animation: float 7s ease-in-out infinite;
}

.sparkle-1 { top: 15%; left: 8%; animation-delay: 0s; }
.sparkle-2 { top: 55%; right: 10%; animation-delay: 2.5s; }
.sparkle-3 { bottom: 15%; left: 20%; animation-delay: 5s; }

.hero-blob {
    position: absolute;
    border-radius: 50%;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--blob-color-1);
    top: -100px;
    right: -100px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: var(--blob-color-2);
    bottom: -80px;
    left: -80px;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.25; }
    50% { transform: translateY(-12px) rotate(8deg); opacity: 0.4; }
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary-soft);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.15rem 2.4rem;
    font-size: 1.1rem;
    border-radius: 14px;
}

/* ===========================
   Trust Banner
   =========================== */
.trust-banner {
    background: var(--color-trust-bg);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 1.5rem 0;
    transition: background-color 0.4s ease;
}

.trust-items {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.trust-icon {
    font-size: 1.3rem;
}

/* ===========================
   Services Section
   =========================== */
.services {
    padding: 5.5rem 0;
    background: var(--color-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    padding: 2.5rem 1.75rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.4s ease;
    box-shadow: 0 2px 8px var(--color-card-shadow);
}



.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px var(--color-card-shadow-hover);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.2rem;
    display: block;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
}

/* ===========================
   About Section
   =========================== */
.about {
    padding: 5.5rem 0;
    background: var(--color-bg-warm);
    transition: background-color 0.4s ease;
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text .section-title {
    margin-bottom: 1.2rem;
}

.about-description {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 1.4rem 1.5rem;
    transition: background-color 0.4s ease, border-color 0.3s ease, transform 0.2s ease;
}

.feature:hover {
    transform: translateX(4px);
    border-color: var(--color-primary);
}

.feature-check {
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: bold;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-success);
    border-radius: 50%;
}

.feature h4 {
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.feature p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* ===========================
   Contact Section
   =========================== */
.contact {
    padding: 5.5rem 0;
    background: var(--color-bg);
}

.contact-card {
    max-width: 500px;
    margin: 0 auto;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 3.5rem 3rem;
    text-align: center;
    box-shadow: 0 8px 30px var(--color-card-shadow);
    transition: background-color 0.4s ease, border-color 0.3s ease;
}

.contact-main {
    margin-bottom: 2rem;
}

.contact-icon-large {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.phone-link {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 1rem;
}

.phone-link:hover {
    color: var(--color-primary-hover);
}

.phone-secondary {
    font-size: 1.3rem;
    opacity: 0.75;
}

.contact-note {
    font-size: 1rem;
    color: var(--color-text-secondary);
    font-style: italic;
}

.contact-btn {
    width: 100%;
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: var(--color-footer-bg);
    padding: 4rem 0 2rem;
    transition: background-color 0.4s ease;
}

.footer-top {
    text-align: center;
    margin-bottom: 3rem;
}

.footer-brand {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-footer-heading);
    margin-bottom: 0.3rem;
}

.footer-tagline {
    font-size: 1rem;
    color: var(--color-footer-text);
}

.footer-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    padding: 2.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-footer-heading);
    margin-bottom: 1rem;
    font-family: 'Open Sans', sans-serif;
}

.footer-col a,
.footer-col p {
    display: block;
    font-size: 1rem;
    color: var(--color-footer-text);
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: #ffffff;
}

.footer-phone {
    font-size: 1.15rem !important;
    font-weight: 600;
    color: var(--color-accent) !important;
}

.footer-phone-secondary {
    font-size: 0.95rem !important;
    opacity: 0.7;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--color-footer-text);
    opacity: 0.6;
}

/* ===========================
   Scroll Reveal Animation
   =========================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 900px) {
    .about-features {
        grid-template-columns: 1fr 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 16px;
    }

    .header-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
        padding: 0.75rem 1.5rem;
    }

    .nav {
        gap: 1.5rem;
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .hero {
        padding: 4rem 1.5rem 3.5rem;
    }

    .hero h2 {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    .trust-items {
        gap: 1.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.9rem;
    }

    .contact-card {
        padding: 2.5rem 1.5rem;
    }

    .footer-details {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0.6rem 1rem;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    .nav a {
        font-size: 0.9rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .trust-items {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .phone-link {
        font-size: 1.5rem;
    }
}

/* ===========================
   Accessibility
   =========================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: 4px;
}
