/* Phase 2 design refresh - additive polish layered on the existing theme.
   Loaded after style.css/responsive.css so these rules win without
   editing the legacy stylesheet's 4800+ existing declarations. */

/* Service cards: give them a real surface instead of bare text-in-a-column */
.services-block .inner-box {
    background: #ffffff;
    border-radius: 10px;
    padding: 34px 24px 30px;
    box-shadow: 0 1px 2px rgba(19, 38, 34, 0.05), 0 10px 24px -12px rgba(19, 38, 34, 0.12);
    transition: transform 250ms ease, box-shadow 250ms ease;
    margin-bottom: 30px;
}
.services-block .inner-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 10px rgba(19, 38, 34, 0.08), 0 18px 34px -14px rgba(19, 38, 34, 0.22);
}

/* Buttons: subtle lift instead of a flat color swap on hover */
.theme-btn.btn-style-one {
    box-shadow: 0 6px 16px -6px rgba(15, 168, 126, 0.55);
}
.theme-btn.btn-style-one:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -6px rgba(15, 168, 126, 0.6);
}

/* Section titles: a touch more breathing room and consistent tracking */
.sec-title h3,
.sec-title-two h3 {
    letter-spacing: 0.06em;
}
.sec-title h2 {
    margin-top: 8px;
}

/* Gallery / project overlay cards: soften the hard corners */
.gallery-item .inner-box .image,
.gallery-block .inner-box .image-box {
    border-radius: 8px;
    overflow: hidden;
}

/* Footer widget headings: align with the refreshed accent */
.footer-widget h2 {
    position: relative;
    padding-bottom: 10px;
}
.footer-widget h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 2px;
    background: #0fa87e;
}

/* ===================================================================
   Equal-height service cards - the text length differs card to card,
   so without stretching the row the cards end at ragged, mismatched
   bottoms and the "Learn More" links float at different heights.
   =================================================================== */
.services-section .row.clearfix,
.services-section .row {
    display: flex;
    flex-wrap: wrap;
}
.services-block {
    display: flex;
}
.services-block .inner-box {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.services-block .inner-box .text {
    flex: 1 0 auto;
}
.services-block .inner-box > div[style*="margin-top:16px"] {
    margin-top: auto !important;
    padding-top: 16px;
}

/* ===================================================================
   Recent Projects: force every project image to the same footprint
   regardless of its native size, so a row of tiles lines up cleanly.
   =================================================================== */
.recent-projects .gallery-block .inner-box .image-box,
.recent-projects .gallery-block .inner-box .image-box img {
    height: 220px;
    width: 100%;
    object-fit: cover;
    display: block;
}
.recent-projects .gallery-block {
    margin-bottom: 26px;
}

/* Homepage "Recent Projects" bento grid: one large tile + four small
   ones, sized on an explicit grid so they form a clean rectangle
   instead of Bootstrap's float columns drifting out of line. */
.gallery-section .filter-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 6px;
}
.gallery-section .filter-list > .gallery-item {
    float: none;
    width: auto;
    padding: 0;
    height: 100%;
}
.gallery-section .filter-list > .gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
}
.gallery-section .filter-list .inner-box,
.gallery-section .filter-list .image {
    height: 100%;
}
.gallery-section .filter-list .image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}
@media (max-width: 767px) {
    .gallery-section .filter-list {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
    }
    .gallery-section .filter-list > .gallery-item:first-child {
        grid-column: span 2;
        grid-row: span 1;
    }
}

/* ===================================================================
   "What We Do" event carousel: the photo's natural height never
   matched the text column, leaving a gap under the image. Stretch
   both columns to the same height and let the photo cover its box.
   =================================================================== */
.event-block .inner-box {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    border-radius: 10px;
    overflow: hidden;
}
.event-block .inner-box .image-column,
.event-block .inner-box .content-column {
    display: flex;
}
.event-block .inner-box .image-column .image {
    width: 100%;
    min-height: 340px;
}
.event-block .inner-box .image-column .image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.event-block .inner-box .content-column .inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
@media (max-width: 767px) {
    .event-block .inner-box .image-column .image {
        min-height: 220px;
    }
}

/* ===================================================================
   Client logo tiles: equal-size cards with a subtle "water" sheen
   that sweeps across on hover.
   =================================================================== */
.client-logo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    margin-top: 30px;
}
.client-logo-tile {
    position: relative;
    background: #ffffff;
    border: 1px solid #ecf1ef;
    border-radius: 10px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(19, 38, 34, 0.04), 0 8px 20px -14px rgba(19, 38, 34, 0.15);
    transition: transform 250ms ease, box-shadow 250ms ease;
}
.client-logo-tile img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(15%);
    transition: filter 250ms ease;
    position: relative;
    z-index: 1;
}
.client-logo-tile::before {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(120deg, rgba(15, 168, 126, 0) 0%, rgba(15, 168, 126, 0.18) 50%, rgba(15, 168, 126, 0) 100%);
    transform: skewX(-20deg);
    transition: left 650ms ease;
}
.client-logo-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(19, 38, 34, 0.08), 0 16px 28px -14px rgba(19, 38, 34, 0.25);
}
.client-logo-tile:hover::before {
    left: 120%;
}
.client-logo-tile:hover img {
    filter: grayscale(0%);
}
@media (max-width: 991px) {
    .client-logo-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 575px) {
    .client-logo-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===================================================================
   Footer: teal-tinted dark ground instead of flat grey, plus the
   restructured "Social Media" icon row.
   =================================================================== */
.main-footer {
    background: radial-gradient(120% 140% at 15% 0%, #0b3742 0%, #04191f 60%) !important;
}
.footer-social-icons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}
.footer-social-icons a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    transition: background 200ms ease, transform 200ms ease;
}
.footer-social-icons a:hover {
    background: #0fa87e;
    transform: translateY(-3px);
    color: #ffffff;
}
.footer-clients-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}
.footer-clients-row .image-box {
    position: relative;
    background: #ffffff;
    border-radius: 6px;
    padding: 8px;
    width: 72px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 200ms ease;
}
.footer-clients-row .image-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}
.footer-clients-row .image-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(120deg, rgba(15, 168, 126, 0) 0%, rgba(15, 168, 126, 0.35) 50%, rgba(15, 168, 126, 0) 100%);
    transform: skewX(-20deg);
    transition: left 600ms ease;
}
.footer-clients-row .image-box:hover {
    transform: translateY(-2px);
}
.footer-clients-row .image-box:hover::before {
    left: 120%;
}
