:root {
    --zap-teal: #39a5c6;
    --zap-teal-light: #9adfe0;
    --zap-dark: #222020;
    --zap-text: #5b5b5b;
    --zap-muted: #f6f7f8;
    --zap-border: #e6e7e8;
    --zap-max: 1170px;
}

html { scroll-behavior: smooth; }
body.zapalean-modern {
    margin: 0;
    color: #6c6a67;
    background: #fff;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

body.admin-bar .zapalean-header { top: 32px; }
a { color: inherit; }

.zapalean-header {
    position: relative;
    z-index: 1000;
    height: 76px;
    background: rgba(255, 255, 255, .98);
    border-bottom: 0;
}
.zapalean-header-inner {
    width: min(calc(100% - 72px), var(--zap-max));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0;
}
.zapalean-logo { width: 28.453px; height: 27px; display: block; overflow: hidden; }
.zapalean-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.zapalean-nav { flex: 1; margin-left: 30px; }
.zapalean-menu,
.zapalean-footer-menu { list-style: none; margin: 0; padding: 0; }
.zapalean-menu { display: flex; align-items: center; gap: 0; }
.zapalean-menu > li { position: relative; }
.zapalean-menu a {
    display: block;
    height: 76px;
    padding: 0 28px 0 0;
    color: #4a4847;
    font-size: 14px;
    font-weight: 400;
    line-height: 76px;
    text-decoration: none;
    transition: color .2s ease;
}
.zapalean-menu a:hover,
.zapalean-menu .current-menu-item > a,
.zapalean-menu .current-menu-ancestor > a { color: #a7a9ab; }
.zapalean-menu .sub-menu {
    position: absolute;
    left: -22px;
    top: 68px;
    min-width: 260px;
    margin: 0;
    padding: 12px 22px;
    list-style: none;
    visibility: hidden;
    opacity: 0;
    transform: translateY(8px);
    background: #fff;
    box-shadow: 0 16px 42px rgba(0, 0, 0, .12);
    transition: .2s ease;
}
.zapalean-menu li:hover > .sub-menu,
.zapalean-menu li:focus-within > .sub-menu { visibility: visible; opacity: 1; transform: translateY(0); }
.zapalean-menu .sub-menu a { height: auto; padding: 10px 0; line-height: 1.2; }
.zapalean-contact-icon {
    display: flex;
    width: 45px;
    height: 76px;
    margin-left: auto;
    box-sizing: border-box;
    align-items: center;
    justify-content: flex-end;
    color: #4a4847;
    font-size: 20px;
    text-decoration: none;
}
.zapalean-menu-toggle { display: none !important; visibility: visible !important; opacity: 1 !important; margin-left: auto; padding: 8px; border: 0; background: transparent !important; }
.zapalean-menu-toggle > span:not(.screen-reader-text) { display: block; width: 24px; height: 2px; margin: 5px 0; background: #222; }

#grve-content { min-height: 0; }
#grve-main-content { overflow: hidden; }
.zapalean-fallback-content,
.zapalean-container,
.zapalean-index-inner { width: min(calc(100% - 48px), var(--zap-max)); margin: 0 auto; }
.grve-row.grve-columns-gap-30 { margin-right: -15px; margin-left: -15px; }
.grve-row.grve-columns-gap-30 > .grve-column { padding-right: 15px; padding-left: 15px; }

/* Snapshot compatibility without the legacy runtime. */
.grve-svg-icon svg { width: 100%; height: auto; }
.grve-carousel-wrapper,
.grve-carousel { max-width: 100%; }
.grve-carousel-wrapper { position: relative; }
.owl-carousel:not(.owl-loaded) { display: flex; gap: 24px; overflow-x: auto; }
.owl-carousel:not(.owl-loaded) > * { min-width: min(350px, 82vw); }
.grve-carousel-element,
.grve-flexible-carousel-element {
    --zap-carousel-gap: 30px;
    --zap-carousel-basis: calc((100% - 60px) / 3);
    display: flex !important;
    gap: var(--zap-carousel-gap);
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    touch-action: pan-x;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
}
.grve-carousel-element::-webkit-scrollbar,
.grve-flexible-carousel-element::-webkit-scrollbar { display: none; }
.grve-carousel-element .grve-carousel-item {
    position: relative !important;
    flex: 0 0 var(--zap-carousel-basis);
    width: var(--zap-carousel-basis) !important;
    min-width: 0;
    scroll-snap-align: start;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
}
.grve-flexible-carousel-element > .grve-element {
    position: relative !important;
    flex: 0 0 var(--zap-carousel-basis);
    width: var(--zap-carousel-basis) !important;
    min-width: 0;
    scroll-snap-align: start;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
}
.grve-carousel-navigation { display: block !important; }
.grve-carousel-buttons {
    position: absolute;
    z-index: 12;
    top: 50%;
    right: -18px;
    left: -18px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    transform: translateY(-50%);
}
.grve-carousel-prev,
.grve-carousel-next {
    display: grid;
    width: 36px !important;
    height: 36px !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #555;
    background: transparent !important;
    box-shadow: none !important;
    cursor: pointer;
    place-items: center;
    pointer-events: auto;
}
.grve-carousel-prev::before { content: '\2039'; font-size: 28px; line-height: 1; transform: translateY(-1px); }
.grve-carousel-next::before { content: '\203A'; font-size: 28px; line-height: 1; transform: translateY(-1px); }
.grve-carousel-navigation.grve-light .grve-carousel-prev,
.grve-carousel-navigation.grve-light .grve-carousel-next { color: #fff; }
.grve-carousel-prev i,
.grve-carousel-next i { display: none; }
.grve-carousel-prev:focus-visible,
.grve-carousel-next:focus-visible { outline: 2px solid var(--zap-teal); outline-offset: 2px; }
.zapalean-logo-carousel .grve-carousel-item,
.zapalean-logo-carousel .grve-carousel-item figure,
.zapalean-logo-carousel .grve-carousel-item .grve-media {
    display: flex;
    min-height: 97.5px;
    align-items: center;
    justify-content: center;
}
.zapalean-logo-carousel .grve-carousel-item img {
    display: block;
    width: auto !important;
    max-width: min(100%, 140px) !important;
    height: auto !important;
    max-height: 97.5px !important;
    margin: 0 auto;
    object-fit: contain;
}
.zapalean-devops-metrics {
    height: auto !important;
}
.zapalean-devops-metrics .grve-column-wrapper {
    height: auto !important;
    min-height: 0 !important;
    padding: 28px 22px !important;
}
.zapalean-devops-metrics h4.grve-title {
    margin-bottom: 14px !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
}
.zapalean-devops-metrics .stats {
    box-sizing: border-box;
    width: 126px;
    height: 126px;
    margin-bottom: 16px;
    padding-top: 30px;
}
.zapalean-devops-metrics .stats h1 {
    margin-bottom: 2px;
    font-size: 38px !important;
    line-height: 1.05 !important;
}
.zapalean-devops-metrics .stats h3,
.zapalean-devops-metrics .grve-flexible-carousel-element > .grve-element h3 {
    font-size: 15px !important;
    line-height: 1.35 !important;
}
.zapalean-devops-metrics .grve-flexible-carousel-element > .grve-element h3 { margin-bottom: 6px !important; }
.zapalean-devops-metrics .grve-flexible-carousel-element > .grve-element p {
    margin: 0 !important;
    font-size: 13px !important;
}
.grve-tab-content:not(.active) { display: none; }
.grve-tab-content.active { display: block; }
.grve-bg-image { opacity: 1 !important; }
.grve-animated-item { opacity: 1 !important; transform: none !important; }
#grve-main-content .grve-image img,
#grve-main-content .grve-single-image img { opacity: 1 !important; visibility: visible !important; transform: none !important; }
#grve-main-content .grve-section { visibility: visible !important; }

/* Replace the retired Isotope initializer with a responsive story-card grid. */
.grve-blog-grid.grve-isotope .grve-isotope-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 30px;
    padding-bottom: 30px;
    height: auto !important;
    opacity: 1 !important;
}
.grve-blog-grid.grve-isotope .grve-isotope-container > .grve-isotope-item {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    box-sizing: border-box;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}
.grve-blog-grid.grve-isotope .grve-isotope-item-inner {
    height: 100%;
}

body.home .zapalean-logo-carousel .grve-carousel-item,
body.home .zapalean-logo-carousel .grve-carousel-item figure,
body.home .zapalean-logo-carousel .grve-carousel-item .grve-media { min-height: 106.664px; }
body.home .zapalean-logo-carousel .grve-carousel-item img { max-height: 106.664px !important; }

.zapalean-legacy-title { width: 100%; }
.zapalean-legacy-title.grve-bg-primary-2 { background-color: #7cc2c3; }
.zapalean-legacy-title.grve-bg-dark { background-color: #000; }
.zapalean-legacy-title > .grve-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
}
.zapalean-legacy-title .grve-content { width: 100%; }
.zapalean-legacy-title h1.grve-title {
    margin: 0;
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 60px;
}
@media (max-width: 1200px) {
    .grve-blog-grid.grve-isotope .grve-isotope-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 767px) {
    .grve-blog-grid.grve-isotope .grve-isotope-container {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Preserve the legacy equal-height service grid without its retired layout script. */
@media (min-width: 768px) {
    .grve-section.grve-custom-height > .grve-container > .grve-row {
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
    }
    .grve-section.grve-custom-height > .grve-container > .grve-row > .grve-column {
        display: flex;
        float: none;
        align-items: stretch;
    }
    .grve-section.grve-custom-height > .grve-container > .grve-row > .grve-column > .grve-column-wrapper {
        width: 100%;
        height: 100%;
    }
    .grve-section.grve-custom-height.grve-middle-content > .grve-container > .grve-row > .grve-column > .grve-column-wrapper {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

.zapalean-contact-page .grve-section { min-height: 896px; padding-top: 120px; padding-bottom: 120px; }
.zapalean-contact-page .grve-title {
    margin: 0 0 60px;
    color: #231f20;
    font-family: "Roboto", sans-serif;
    font-size: 48px;
    font-weight: 100;
    line-height: 54px;
}
.zapalean-contact-form { color: #6c6a67; font-size: 13px; line-height: 20px; }
.zapalean-contact-form input:not([type="submit"]),
.zapalean-contact-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 2px;
    border: 0;
    border-bottom: 1px solid #bbb;
    border-radius: 0;
    background: transparent;
}
.zapalean-contact-form input[type="submit"] {
    padding: 16px 38px;
    border: 0;
    border-radius: 2px;
    color: #fff;
    background: var(--zap-dark);
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    cursor: pointer;
}
.zapalean-contact-form .f12-captcha.template-2 {
    display: flex;
    flex-direction: column;
    text-align: left;
}
.zapalean-contact-form .f12-captcha.template-2 .c-label { display: none; }
.zapalean-contact-form .f12-captcha.template-2 .c-header {
    order: 2;
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 5px;
}
.zapalean-contact-form .f12-captcha.template-2 > div:not(.c-header) { order: 1; }
.zapalean-contact-form .f12-captcha.template-2 .captcha-reload {
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.zapalean-index { padding: 90px 0 120px; }
.zapalean-index-header h1 { color: #333; font-size: 52px; font-weight: 100; }
.zapalean-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.zapalean-card { background: #fff; border: 1px solid var(--zap-border); }
.zapalean-card img { width: 100%; height: 220px; object-fit: cover; }
.zapalean-card h2,
.zapalean-card p { margin: 24px; }
.zapalean-card h2 { color: #333; font-size: 24px; font-weight: 400; }
.zapalean-card a { text-decoration: none; }

#grve-footer { position: relative; color: #6c6a67; }
#grve-footer .grve-footer-wrapper { position: relative; background-color: #0d0f10; }
#grve-footer .grve-widget-area {
    position: relative;
    z-index: 2;
    min-height: 345px;
    color: #a7a9ab;
    background-color: #0d0f10;
    background-image: url('/wp-content/uploads/2018/02/footer-bg.jpg') !important;
    background-position: center bottom;
    background-size: cover;
}
#grve-footer .grve-widget-area .grve-container { padding-top: 90px; padding-bottom: 90px; border: 0; }
#grve-footer .grve-widget-area .grve-widget-title { margin-bottom: 20px; color: #fff; font-size: 13px; line-height: 24px; }
#grve-footer .grve-widget-area .widget,
#grve-footer .grve-widget-area p { color: #a7a9ab; font-size: 13px; line-height: 20px; }
#grve-footer .grve-widget-area p { margin: 0; }
#grve-footer .grve-widget-area a { color: #a7a9ab; text-decoration: none; }
#grve-footer .grve-footer-bar { position: relative; z-index: 3; padding-top: 30px; padding-bottom: 30px; color: #6c6a67; background: #fff; }
#grve-footer .grve-footer-bar p { margin: 0; }
#grve-footer .grve-footer-bar a { color: #6c6a67; text-decoration: none; }
#grve-footer .grve-background-wrapper { z-index: 1; }
#grve-footer .zapalean-footer-menu { margin: 0; padding: 0; list-style: none; }
#grve-footer .zapalean-footer-menu li { display: inline-block; margin-left: 15px; }
#grve-footer .zapalean-footer-menu a { font-size: 12px; }

@media (max-width: 900px) {
    body.admin-bar .zapalean-header { top: 46px; }
    .zapalean-header-inner { width: min(calc(100% - 34px), var(--zap-max)); }
    .zapalean-menu-toggle { display: block !important; }
    .zapalean-contact-icon { display: none; }
    .zapalean-nav {
        position: absolute;
        top: 76px;
        left: 0;
        width: 100%;
        margin-left: 0;
        max-height: 0;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 14px 30px rgba(0,0,0,.08);
        transition: max-height .25s ease;
    }
    .zapalean-nav.is-open { max-height: 80vh; overflow-y: auto; }
    .zapalean-menu { display: block; padding: 12px 24px 24px; }
    .zapalean-menu a { height: auto; padding: 12px 0; line-height: 1.4; }
    .zapalean-menu .sub-menu { position: static; min-width: 0; padding: 0 0 0 18px; visibility: visible; opacity: 1; transform: none; box-shadow: none; }
    .grve-row.grve-columns-gap-30 { margin-right: 0; margin-left: 0; }
    .grve-row.grve-columns-gap-30 > .grve-column { padding-right: 0; padding-left: 0; }
    .zapalean-card-grid { grid-template-columns: 1fr 1fr; }
    #grve-main-content .zapalean-devops-metrics {
        clear: both !important;
        float: none !important;
        height: auto !important;
        width: min(calc(100% - 48px), 360px) !important;
        margin: 36px auto 0 !important;
        padding: 0 !important;
    }
}

@media (max-width: 620px) {
    .zapalean-card-grid { grid-template-columns: 1fr; }
    .grve-carousel-buttons { right: -8px; left: -8px; }
}
