@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
    --xkl-primary: #15803d;
    --xkl-secondary: #166534;
    --xkl-accent: #e11d48;
    --xkl-background: #f0fdf4;
    --xkl-text: #14532d;
    --xkl-muted: #86efac;
    --xkl-white: #ffffff;
    --xkl-black: #000000;
    --xkl-border-radius: 8px;
    --xkl-spacing-sm: 16px;
    --xkl-spacing-md: 32px;
    --xkl-spacing-lg: 80px;
    --xkl-spacing-xl: 120px;
}

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

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--xkl-text);
    background-color: var(--xkl-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: var(--xkl-accent);
    color: var(--xkl-white);
}

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

a:hover {
    color: var(--xkl-accent);
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--xkl-secondary);
    margin-bottom: var(--xkl-spacing-sm);
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

h3 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}

h4 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

h5 {
    font-size: 1.25rem;
    font-weight: 500;
}

h6 {
    font-size: 1rem;
    font-weight: 500;
}

p {
    margin-bottom: var(--xkl-spacing-sm);
}

/* Utility Classes */
.mx-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--xkl-spacing-sm);
    padding-right: var(--xkl-spacing-sm);
}

.mx-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--xkl-spacing-md);
}

.mx-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--xkl-spacing-sm);
}

.mx-text-center {
    text-align: center;
}

.mx-py-lg {
    padding-top: var(--xkl-spacing-lg);
    padding-bottom: var(--xkl-spacing-lg);
}

.mx-py-md {
    padding-top: var(--xkl-spacing-md);
    padding-bottom: var(--xkl-spacing-md);
}

.mx-bg-primary {
    background-color: var(--xkl-primary);
    color: var(--xkl-white);
}

.mx-bg-secondary {
    background-color: var(--xkl-secondary);
    color: var(--xkl-white);
}

.mx-bg-muted {
    background-color: var(--xkl-muted);
}

/* Buttons */
.mx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--xkl-border-radius);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mx-btn-primary {
    background-color: var(--xkl-primary);
    color: var(--xkl-white);
    border-color: var(--xkl-primary);
}

.mx-btn-primary:hover {
    background-color: var(--xkl-secondary);
    border-color: var(--xkl-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.mx-btn-secondary {
    background-color: var(--xkl-secondary);
    color: var(--xkl-white);
    border-color: var(--xkl-secondary);
}

.mx-btn-secondary:hover {
    background-color: var(--xkl-primary);
    border-color: var(--xkl-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.mx-btn-outline {
    background-color: transparent;
    color: var(--xkl-primary);
    border-color: var(--xkl-primary);
}

.mx-btn-outline:hover {
    background-color: var(--xkl-primary);
    color: var(--xkl-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Header */
.mx-header {
    background-color: var(--xkl-white);
    padding: var(--xkl-spacing-sm) 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.mx-header .mx-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mx-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--xkl-secondary);
}

.mx-logo span {
    color: var(--xkl-primary);
}

.mx-nav-menu {
    list-style: none;
    display: flex;
    gap: var(--xkl-spacing-md);
}

.mx-nav-menu a {
    color: var(--xkl-text);
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
    padding: 5px 0;
}

.mx-nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--xkl-primary);
    transition: width 0.3s ease;
}

.mx-nav-menu a:hover::after {
    width: 100%;
}

.mx-hamburger {
    display: none;
    cursor: pointer;
    font-size: 2rem;
    color: var(--xkl-primary);
}

/* Hero Section */
.mx-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(21, 128, 61, 0.7), rgba(22, 101, 52, 0.7)), url('https://loremflickr.com/1400/800/comparison%2Ccompare/all?lock=1303218868') no-repeat center center/cover;
    color: var(--xkl-white);
}

.mx-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(21, 128, 61, 0.8) 0%, rgba(22, 101, 52, 0.8) 100%);
    z-index: 1;
}

.mx-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: var(--xkl-spacing-md);
}

.mx-hero h1 {
    color: var(--xkl-white);
    margin-bottom: var(--xkl-spacing-sm);
    font-size: 4rem;
}

.mx-hero p {
    font-size: 1.5rem;
    margin-bottom: var(--xkl-spacing-md);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

.mx-trust-badges {
    display: flex;
    justify-content: center;
    gap: var(--xkl-spacing-md);
    margin-top: var(--xkl-spacing-md);
    flex-wrap: wrap;
}

.mx-badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 50px;
    color: var(--xkl-white);
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.mx-badge:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.mx-badge .mx-icon {
    margin-right: 8px;
    font-size: 1.2rem;
}

/* Sections */
.mx-section {
    padding: var(--xkl-spacing-lg) 0;
    position: relative;
}

.mx-section:nth-child(even) {
    background-color: var(--xkl-muted);
}

.mx-section-header {
    text-align: center;
    margin-bottom: var(--xkl-spacing-lg);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.mx-section-header h2 {
    color: var(--xkl-secondary);
    margin-bottom: var(--xkl-spacing-sm);
}

.mx-section-header p {
    font-size: 1.15rem;
    color: var(--xkl-text);
}

/* Cards */
.mx-card {
    background-color: var(--xkl-white);
    border-radius: var(--xkl-border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    padding: var(--xkl-spacing-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.mx-card-icon {
    font-size: 3rem;
    color: var(--xkl-primary);
    margin-bottom: var(--xkl-spacing-sm);
    text-align: center;
}

.mx-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--xkl-border-radius) var(--xkl-border-radius) 0 0;
    margin-bottom: var(--xkl-spacing-sm);
}

.mx-card h3 {
    color: var(--xkl-secondary);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.mx-card p {
    font-size: 0.95rem;
    color: var(--xkl-text);
    flex-grow: 1;
}

/* Testimonials */
.mx-testimonial-card {
    background-color: var(--xkl-white);
    border-radius: var(--xkl-border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    padding: var(--xkl-spacing-md);
    text-align: center;
    font-style: italic;
}

.mx-testimonial-card p {
    font-size: 1.1rem;
    margin-bottom: var(--xkl-spacing-sm);
    color: var(--xkl-text);
}

.mx-testimonial-card .mx-author {
    font-weight: 600;
    color: var(--xkl-secondary);
    font-style: normal;
    font-size: 1rem;
}

.mx-testimonial-card .mx-author-title {
    font-size: 0.9rem;
    color: var(--xkl-primary);
    font-style: normal;
}

/* Certifications */
.mx-certification-logo {
    max-width: 120px;
    height: auto;
    margin: 0 auto;
    display: block;
    filter: grayscale(80%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.mx-certification-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* FAQ */
.mx-faq-item {
    background-color: var(--xkl-white);
    border-radius: var(--xkl-border-radius);
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
}

.mx-faq-q {
    padding: var(--xkl-spacing-sm) var(--xkl-spacing-md);
    font-weight: 600;
    color: var(--xkl-secondary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.mx-faq-q:hover {
    background-color: var(--xkl-background);
}

.mx-faq-q::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--xkl-primary);
    transition: transform 0.3s ease;
}

.mx-faq-item.active .mx-faq-q::after {
    content: '-';
    transform: rotate(180deg);
}

.mx-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 var(--xkl-spacing-md);
    color: var(--xkl-text);
}

.mx-faq-item.active .mx-faq-a {
    max-height: 500px; /* Sufficiently large value */
    padding-top: 10px;
    padding-bottom: var(--xkl-spacing-sm);
}

/* Contact Form */
.mx-form-group {
    margin-bottom: var(--xkl-spacing-sm);
}

.mx-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--xkl-secondary);
}

.mx-form-group input[type="text"],
.mx-form-group input[type="email"],
.mx-form-group input[type="tel"],
.mx-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--xkl-muted);
    border-radius: var(--xkl-border-radius);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--xkl-text);
    background-color: var(--xkl-white);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.mx-form-group input:focus,
.mx-form-group textarea:focus {
    outline: none;
    border-color: var(--xkl-primary);
    box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.2);
}

.mx-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.mx-form-feedback {
    margin-top: var(--xkl-spacing-sm);
    padding: 10px;
    border-radius: var(--xkl-border-radius);
    display: none;
    font-weight: 500;
}

#sbi8uma {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#rnt8n8x {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
.mx-footer {
    background-color: var(--xkl-secondary);
    color: var(--xkl-white);
    padding-top: var(--xkl-spacing-lg);
    padding-bottom: var(--xkl-spacing-md);
    font-size: 0.95rem;
}

.mx-footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--xkl-spacing-md);
    margin-bottom: var(--xkl-spacing-md);
}

.mx-footer-col h5 {
    color: var(--xkl-primary);
    margin-bottom: var(--xkl-spacing-sm);
    font-size: 1.2rem;
}

.mx-footer-col p,
.mx-footer-col a {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    display: block;
}

.mx-footer-col a:hover {
    color: var(--xkl-muted);
}

.mx-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--xkl-spacing-sm);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.mx-social-links {
    list-style: none;
    display: flex;
    gap: var(--xkl-spacing-sm);
    justify-content: center;
    margin-top: var(--xkl-spacing-sm);
}

.mx-social-links a {
    color: var(--xkl-white);
    font-size: 1.5rem;
}

.mx-social-links a:hover {
    color: var(--xkl-muted);
    transform: scale(1.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mx-animate {
    opacity: 0;
}

.mx-animate.mx-fade-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.mx-animate.mx-slide-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .mx-hero h1 {
        font-size: 3rem;
    }
    .mx-hero p {
        font-size: 1.2rem;
    }
    h1 {
        font-size: 3rem;
    }
    h2 {
        font-size: 2rem;
    }
    .mx-nav-menu {
        gap: var(--xkl-spacing-sm);
    }
}

@media (max-width: 768px) {
    .mx-nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--xkl-white);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        padding: var(--xkl-spacing-sm) 0;
        border-top: 1px solid var(--xkl-muted);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }

    .mx-nav-menu.active {
        max-height: 300px; /* Adjust as needed */
    }

    .mx-nav-menu li {
        text-align: center;
        margin: 10px 0;
    }

    .mx-nav-menu a {
        padding: 10px 0;
        display: block;
    }

    .mx-hamburger {
        display: block;
    }

    .mx-hero h1 {
        font-size: 2.5rem;
    }

    .mx-hero p {
        font-size: 1rem;
    }

    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    .mx-section-header {
        margin-bottom: var(--xkl-spacing-md);
    }
    .mx-footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .mx-social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    .mx-hero h1 {
        font-size: 2rem;
    }
    .mx-hero p {
        font-size: 0.9rem;
    }
    .mx-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 1rem;
    }
    .mx-spacing-lg {
        padding-top: var(--xkl-spacing-md);
        padding-bottom: var(--xkl-spacing-md);
    }
    .mx-card {
        padding: var(--xkl-spacing-sm);
    }
    .mx-trusted-by-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--xkl-spacing-sm);
    }
}

/* Trust Section */
.mx-trust-strip {
    background-color: var(--xkl-secondary);
    color: var(--xkl-white);
    text-align: center;
    padding: var(--xkl-spacing-sm) 0;
}
.mx-trust-strip .mx-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}
.mx-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
}
.mx-trust-item .mx-icon {
    font-size: 2.5rem;
    color: var(--xkl-primary);
    margin-bottom: 5px;
}
.mx-trust-item p {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

/* Comparison Table Styling (Conceptual - can be expanded) */
.mx-comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--xkl-spacing-md);
    background-color: var(--xkl-white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-radius: var(--xkl-border-radius);
    overflow: hidden;
}
.mx-comparison-table th,
.mx-comparison-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--xkl-muted);
}
.mx-comparison-table th {
    background-color: var(--xkl-primary);
    color: var(--xkl-white);
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
}
.mx-comparison-table tr:nth-child(even) {
    background-color: var(--xkl-background);
}
.mx-comparison-table tr:hover {
    background-color: var(--xkl-muted);
}
.mx-rating-stars {
    color: #ffc107; /* Gold star color */
    font-size: 1.2rem;
}
.mx-pros-badge, .mx-cons-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 3px;
}
.mx-pros-badge {
    background-color: #d4edda;
    color: #155724;
}
.mx-cons-badge {
    background-color: #f8d7da;
    color: #721c24;
}
.mx-image-wrapper {
    overflow: hidden;
    border-radius: var(--xkl-border-radius);
}


/* === Quality polish === */
button, [class*="btn"], [class*="cta"] { transition: all 0.3s ease; cursor: pointer; }
button:hover, [class*="btn"]:hover, [class*="cta"]:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); filter: brightness(1.05); }

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