body {
    background: #004225;
    color: #fff;
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Global responsive helpers */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Ensure images never force horizontal overflow */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Prevent accidental horizontal scroll on small devices caused by large fixed elements */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 30px auto;
    background: #004225;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

/* Full-width thumbnails hero strip. The background image fills the full viewport width
   (no border-radius, no overlay/transparency). The inner .container stays centered and
   constrained; it will be transparent so the photo is visible behind the cards. */
.thumbs-hero-wrap {
    /* use full width but avoid vw-based offsets which can cause horizontal scroll on mobile */
    width: 100%;
    position: relative;
    padding: 30px 0;
}

@media (max-width: 480px) {
    .thumbs-hero-wrap {
        padding-left: 10px;
        padding-right: 10px;
    }
}

.thumbs-hero-wrap .container {
    background: transparent;
    /* show the image behind */
    border-radius: 0;
    /* remove radius so image is flush to edges */
    /* keep max-width from the global .container (1100px) so cards don't stretch */
}

/* ensure the inner container stays constrained and centered */
.thumbs-hero-wrap .container {
    max-width: 1100px;
    margin: 30px auto;
}

@media (max-width: 480px) {
    .thumbs-hero-wrap {
        background: #004225;
        /* fallback on small screens */
    }
}

header {
    text-align: center;
    padding: 40px 0 10px 0;
    background: #004225;
}

.olc-logo {
    width: 160px;
    margin: 0 auto 10px;
    display: block;
}

.banner {
    background: #F37021;
    color: #fff;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 18px 0;
    letter-spacing: 1px;
}

.main,
main {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    /* force both columns to equal height */
    gap: 30px;
    padding: 40px 30px;
    background: #fff;
    color: #004225;
    align-items: stretch;
    /* ensure grid items stretch */
    justify-items: stretch;
    /* make grid items fill the column to avoid offsets */
}

/* Make whole card clickable when wrapped in .card-link */
.card-link {
    color: inherit;
    text-decoration: none;
    display: block;
}

.card-link:hover {
    cursor: pointer;
}

.card-link:focus {
    outline: none;
}

.card.left .jetmail-logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 18px;
}

.card.right .eclipse-logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 18px;
}

/* Keep logo area consistent so .desc starts at same height */
.logo-container {
    height: 120px;
    /* fixed logo area so cards align visually */
    display: flex;
    /* align logos to the bottom so the description starts on the same line */
    align-items: flex-end;
    justify-content: center;
    width: 100%;
}

.logo-container img {
    display: block;
    height: 80px;
    /* force same visible logo height so descriptions align */
    width: auto;
    object-fit: contain;
}

/* Single, consolidated .card rule so both cards match height */
.card {
    display: flex;
    /* ensure anchors with .card act like block cards */
    flex-direction: column;
    justify-content: flex-start;
    /* stack logo and desc from the top so desc baseline aligns */
    align-items: center;
    /* Do not allow the cards to grow beyond their calculated width */
    flex: 0 0 48%;
    /* ensure both cards share available width equally */
    width: auto;
    background: #fff;
    border: 3px solid #F37021;
    border-radius: 8px;
    padding: 20px 18px;
    text-align: center;
    box-sizing: border-box;
    align-self: stretch;
    /* allow the card to fill the grid cell so both cards are equal height */
    height: 100%;
    min-height: 0;
    /* fill the grid cell so both cards match */
    margin: 0;
    /* remove any offset margins */
    justify-self: stretch;
    /* ensure the card fills the grid column */
}

.footer-left {
    flex: 1;
    /* left side grows so right side stays to the right */
}

/* Footer layout: keep contact link and address on the right */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 30px;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: auto;
    /* anchor to right */
}

/* Ensure card content layout forces equal heights */
.card>.logo-container {
    /* fixed logo area so card content baseline aligns */
    flex: 0 0 120px;
}

.card>.desc {
    /* take remaining vertical space and align text to the top so desc starts at same row */
    flex: 1 1 auto;
    display: block;
    /* avoid rearranging text inside */
    text-align: center;
    padding-top: 12px;
    margin: 0;
}

/* Improve text wrapping and spacing inside descriptions */
.card .desc {
    line-height: 1.45;
    white-space: normal;
}

.card .desc .customer {
    display: inline-block;
    margin: 4px 0;
}

.contact-form-link {
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: underline;
}

.email-icon {
    font-size: 22px;
    vertical-align: middle;
    width: auto;
    height: auto;
    display: inline-block;
}

.address {
    font-size: 1rem;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: #fff;
    color: #004225;
    margin: 8% auto;
    padding: 30px 30px 20px 30px;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.close {
    color: #F37021;
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
}

/* Form styles (apply to old #contactForm and new #fs3_responder) */
#contactForm label,
#fs3_responder label {
    display: block;
    margin-top: 18px;
    margin-bottom: 6px;
    font-weight: 600;
}

#contactForm input,
#contactForm textarea,
#fs3_responder input,
#fs3_responder textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #004225;
    border-radius: 4px;
    font-size: 1rem;
    margin-bottom: 10px;
    box-sizing: border-box;
}

#contactForm button,
#fs3_responder button {
    background: #F37021;
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
    font-weight: 600;
}

#contactForm button:hover,
#fs3_responder button:hover {
    background: #d95e1a;
}

/* Hidden success message style (used by form JS) */
#formSuccess {
    display: none;
    color: green;
    margin-top: 10px;
}

/* Honeypot catcher - visually hidden but present in DOM for bots */
.catcher {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 800px) {

    .main,
    main {
        grid-template-columns: 1fr;
        /* single column on small screens */
        gap: 20px;
        padding: 30px 10px;
    }

    .card {
        width: 100%;
        height: auto;
        /* let card height be determined by content */
        padding: 18px 14px;
    }

    /* Remove horizontal offset between adjacent card links on mobile */
    .card-link+.card-link {
        margin-left: 0 !important;
    }

    /* Align logos to the bottom of the fixed logo area so desc text starts at same height */
    .logo-container {
        align-items: flex-end;
    }

    /* Ensure logos are horizontally centered on mobile */
    .logo-container {
        justify-content: center;
    }

    .card .logo-container img {
        height: 64px;
        /* slightly smaller on mobile */
        width: auto;
        margin: 0 auto;
        /* center image horizontally */
        object-fit: contain;
        object-position: center;
        display: block;
    }

    footer {
        flex-direction: column;
        gap: 10px;
        padding: 18px 10px;
        align-items: flex-start;
    }

    /* Stack footer right-side items under each other and left align them */
    .footer-right {
        margin-left: 0;
        display: block;
        width: 100%;
    }

    .footer-right .contact-form-link,
    .footer-right .address {
        display: block;
        margin-top: 8px;
    }
}

.hr-color {
    border: none;
    height: 2px;
    /* Set the hr color */
    color: #F37021;
    /* old IE */
    background-color: #F37021;
    /* Modern Browsers */
    margin: 0px;
    opacity: 1;
}