body {
    margin: 0;
    font-family: "Metric Light", Arial, sans-serif;
    background-color: #f7f7f7;
    color: #333;
}

.header-nav {
    background: #292d3a;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-radius: 0 0 8px 8px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Metric Semibold", Arial, sans-serif;
    font-size: 24px;
    color: white;
    text-decoration: none;
}


.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
    margin-left: auto;
    flex-wrap: nowrap;
}

.nav-links a {
    color: #c6c9ca;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    padding: 5px 10px;
    border-radius: 4px;
}

.nav-links a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.nav-links a.active {
    color: white;
    border-bottom: 2px solid #01a982;
}

.mw-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.mw-section {
    padding: 48px 0;
}

#faq {
    background: #ffffff;
}

.mw-hero {
    padding: 28px 0 48px;
    background: #ffffff;
}

.mw-hero .mw-container {
    max-width: 100%;
    padding: 0 24px;
}

.mw-hero-carousel {
    max-width: 100%;
    margin: 0;
    position: relative;
}


.mw-hero-carousel .carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    justify-content: space-between;
    padding: 0 12px;
    transform: translateY(-50%);
    margin-top: 0;
    pointer-events: none;
}

.mw-hero-carousel .carousel-btn {
    pointer-events: auto;
}

.mw-hero-carousel .carousel-dots {
    justify-content: center;
}

.mw-hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    align-items: center;
}

.mw-hero-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.mw-section-title {
    margin-bottom: 16px;
}

.mw-section-subtitle {
    margin-bottom: 24px;
}

.mw-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.mw-content-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
    margin-bottom: 24px;
}

.mw-content-block.reverse {
    grid-template-columns: 1fr;
}

.mw-content-block.reverse .mw-content-text,
.mw-content-block.reverse .mw-content-media {
    order: initial;
}

.mw-content-text h3 {
    margin-top: 0;
    margin-bottom: 16px;
}

.mw-content-text p {
    margin-bottom: 16px;
}

.mw-service-cta {
    margin-top: 16px;
}

.mw-card-grid.tight {
    margin-bottom: 24px;
}
.mw-section-stack {
    margin-top: 32px;
}
.mw-form-group.full {
    grid-column: 1 / -1;
}

.mw-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.mw-inline-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mw-inline-list li {
    background: #e6e8e9;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 14px;
}

.accordion-container {
    max-width: 1200px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

.accordion-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f7f7f7;
    border: 1px solid #e9e9e9;
    transition: all 0.3s ease;
    font-family: "Metric Semibold", Arial, sans-serif;
    font-size: 18px;
    color: #292d3a;
    touch-action: manipulation;
}

.accordion-header:hover {
    background: #f0f0f1;
}

.accordion-header.active {
    background: #e6e8e9;
    border-color: #01a982;
}

.accordion-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #01a982;
    color: white;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, padding 0.3s;
    font-family: "Metric Light", Arial, sans-serif;
    font-size: 16px;
    color: #67686e;
    background: #fff;
}

.accordion-content.active {
    padding: 20px;
}

.mw-faq-search {
    max-width: 1200px;
    margin: 0 auto 24px;
}

.mw-faq-search__input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #cfd8dc;
    border-radius: 8px;
    background: #ffffff;
    font-family: "Metric Regular", Arial, sans-serif;
    font-size: 16px;
    color: #292d3a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mw-faq-search__input:focus {
    outline: none;
    border-color: #01a982;
    box-shadow: 0 0 0 3px rgba(1, 169, 130, 0.14);
}

.mw-faq-search-empty {
    max-width: 720px;
    margin: 0 auto 24px;
    padding: 14px 16px;
    border: 1px solid #d9e1e3;
    border-radius: 8px;
    background: #f7f9f9;
    color: #566066;
}

.mw-faq-hidden {
    display: none !important;
}

.carousel-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

/* Hero carousel should span full available width.
   The element has both classes: `carousel-container mw-hero-carousel`.
   This more-specific selector overrides the generic `.carousel-container` cap. */
.carousel-container.mw-hero-carousel {
    max-width: 100%;
    margin: 0;
}

.mw-service-carousel {
    max-width: 520px;
    margin: 0;
}

.carousel-slide {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #f7f7f7 0%, #e6e8e9 100%);
    border-radius: 8px;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide.inactive {
    opacity: 0;
    height: 0;
    overflow: hidden;
    padding: 0;
}

.carousel-image {
    width: 100%;
    max-width: 520px;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    background: #fff;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.carousel-btn {
    border: none;
    background: #01a982;
    color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #c8c9cc;
    cursor: pointer;
}

.carousel-dot.active {
    background: #01a982;
}

/* Contact form */
.mw-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.mw-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mw-form-group input,
.mw-form-group select,
.mw-form-group textarea {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #d5d7da;
    font-family: inherit;
    font-size: 14px;
}

.mw-form-actions {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.mw-status {
    margin-bottom: 20px;
    padding: 16px;
    border-radius: 8px;
    font-weight: 500;
}

.mw-status.success {
    background: #dff7ef;
    color: #05603a;
    border: 1px solid #9ce7cc;
}

.mw-status.error {
    background: #fde9e9;
    color: #8a1f1f;
    border: 1px solid #f5b5b5;
}

/* Floating contact */
.floating-contact {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
}

.floating-contact button {
    background: #01a982;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 12px 18px;
    cursor: pointer;
    font-weight: 600;
}

.floating-contact-panel {
    position: absolute;
    bottom: 54px;
    right: 0;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    padding: 16px;
    min-width: 220px;
    display: none;
}

.floating-contact-panel.active {
    display: block;
}

.floating-contact-panel a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #292d3a;
    text-decoration: none;
    font-size: 14px;
}

.floating-contact-panel img {
    width: 20px;
    height: 20px;
}

@media (max-width: 767px) {
    .mw-section {
        padding: 32px 0;
    }

    .mw-hero-carousel .carousel-controls {
        position: static;
        transform: none;
        justify-content: center;
        margin-top: 16px;
        pointer-events: auto;
    }

    .mw-hero {
        padding: 40px 0 32px;
    }

    .accordion-header {
        padding: 14px;
        font-size: 16px;
    }

    .accordion-content.active {
        padding: 14px;
    }

    .floating-contact {
        right: 16px;
        bottom: 16px;
    }

    .nav-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .logo {
        display: none;
    }


    .nav-links {
        margin-left: 0;
    }

    .mw-content-block {
        grid-template-columns: 1fr;
    }

    .mw-content-block.reverse .mw-content-text,
    .mw-content-block.reverse .mw-content-media {
        order: initial;
    }
}

@media (min-width: 768px) {
    .mw-content-block {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .mw-content-block.reverse {
        grid-template-columns: 1fr 1fr;
    }

    .mw-content-block.reverse .mw-content-text {
        order: 2;
    }

    .mw-content-block.reverse .mw-content-media {
        order: 1;
    }
}

/* Desktop hero refinements (keep smartphone/tablet behavior unchanged) */
@media (min-width: 992px) {
    /* Desktop: vertically center the hero content (text + buttons), keep image rules unchanged. */
    .mw-hero-grid {
        align-items: center;
    }

    /* Center ONLY the left column's content (title/subtitle/buttons).
       This intentionally does not affect the right-side image column. */
    .mw-hero-grid > div:first-child {
        text-align: center;
    }

    .mw-hero-grid > div:first-child .btn-cta-group {
        justify-content: center;
    }

    /* Improve readability on wide screens by limiting subtitle line length. */
    .mw-hero-grid > div:first-child .mw-section-subtitle {
        max-width: 46ch;
        margin-left: auto;
        margin-right: auto;
    }
}
