/* Homepage polish: slider readability, equal-height cards, section rhythm */

/* —— Revolution slider: cover + contrast —— */
#rev_slider_one_wrapper {
    position: relative;
}

/* Readability scrim: text stays legible on bright stock photos (does not block clicks). */
#rev_slider_one_wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        105deg,
        rgba(4, 18, 22, 0.88) 0%,
        rgba(4, 18, 22, 0.5) 45%,
        rgba(4, 18, 22, 0.15) 68%,
        transparent 85%
    );
}

/* Entire slider (layers + captions) above the scrim */
#rev_slider_one_wrapper #rev_slider_one {
    position: relative;
    z-index: 2;
}

#rev_slider_one .rev-slidebg {
    object-fit: cover;
    filter: brightness(0.46) contrast(1.1) saturate(1.06);
}

#rev_slider_one .tp-caption.slider-tag-line,
#rev_slider_one .tp-caption:not(.rev-btn) {
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.home-rev-ctas {
    white-space: normal !important;
    max-width: 640px;
}

.home-rev-ctas .octf-btn.btn-border.border-white {
    border-color: rgba(255, 255, 255, 0.85) !important;
    color: #fff !important;
    margin-left: 0.35rem;
}

.home-rev-ctas .octf-btn.btn-border.border-white:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
}

@media (max-width: 767px) {
    .home-rev-ctas .octf-btn {
        display: block !important;
        width: 100%;
        margin-left: 0 !important;
        margin-bottom: 0.65rem !important;
        text-align: center;
    }
}

/* —— Section headings (centred, consistent width) —— */
.home-section-head {
    text-align: center;
    max-width: 52rem;
    margin-left: auto;
    margin-right: auto;
}

.home-section-head .main-heading {
    margin-left: auto;
    margin-right: auto;
}

.home-section-head-left {
    text-align: left;
}

@media (min-width: 768px) {
    .home-section-head-left-md {
        text-align: left;
    }
}

/* —— Why choose us: equal-height cards, aligned CTAs —— */
.home-why-grid > [class*="col-"] {
    display: flex;
    margin-bottom: 1.5rem;
}

.home-why-grid .serv-box-2 {
    flex: 1 1 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding-bottom: 2rem;
}

.home-why-grid .serv-box-2 .content-box {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding-bottom: 0.5rem;
}

.home-why-grid .serv-box-2 .content-box h5 {
    min-height: 3.1rem;
    display: flex;
    align-items: flex-start;
    line-height: 1.35;
}

.home-why-grid .serv-box-2 .content-box > div:not(.btn-details) {
    flex: 1 1 auto;
}

.home-why-grid .serv-box-2 .content-box .btn-details {
    margin-top: auto;
    align-self: flex-start;
}

/* —— Services grid: equal height + links —— */
.home-services-grid > [class*="col-"] {
    display: flex;
    margin-bottom: 1.5rem;
}

.home-services-grid .icon-box-s2 {
    flex: 1 1 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-bottom: 1.25rem;
}

.home-services-grid .icon-box-s2 .content-box {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.home-services-grid .icon-box-s2 .content-box p {
    flex: 1 1 auto;
}

.home-services-grid .icon-box-s2 .content-box .home-service-link {
    margin-top: auto;
    padding-top: 0.75rem;
}

/* —— Services row title + CTA alignment —— */
.home-services-header {
    align-items: flex-end;
}

@media (max-width: 575px) {
    .home-services-header {
        text-align: center;
    }

    .home-services-header .ot-button {
        text-align: center !important;
        margin-top: 1rem;
    }
}

/* —— Trends row (under core services) —— */
.home-trends-grid > [class*="col-"] {
    display: flex;
    margin-bottom: 1.5rem;
}

.home-trend-card {
    flex: 1 1 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-bottom: 1.25rem;
}

.home-trend-card .content-box {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.home-trend-card .content-box p {
    flex: 1 1 auto;
}

.home-trend-card .home-service-link {
    margin-top: auto;
    padding-top: 0.75rem;
}

/* —— Projects intro row —— */
.home-projects-header {
    align-items: flex-start;
}

.home-projects-header-v2 .home-projects-eyebrow {
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 600;
    color: #19a49e;
    margin-bottom: 0.5rem;
}

.home-projects-header-v2 .home-projects-main-title {
    line-height: 1.2;
}

.home-projects-header-v2 .home-projects-deck {
    font-size: 1.05rem;
    line-height: 1.55;
    color: rgba(15, 28, 35, 0.78);
    max-width: 28rem;
}

.home-projects-header-v2 .home-projects-aside {
    border-left: 1px solid rgba(25, 164, 158, 0.22);
    padding-left: 1.75rem;
}

.home-projects-header-v2 .home-projects-lead {
    line-height: 1.7;
    opacity: 0.92;
}

.home-projects-header .home-section-head-left {
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .home-projects-header-v2 .home-projects-aside {
        border-left: none;
        padding-left: 0;
        margin-top: 1.5rem;
        padding-top: 1.25rem;
        border-top: 1px solid rgba(25, 164, 158, 0.18);
    }
}

@media (max-width: 767px) {
    .home-projects-header {
        text-align: center;
    }

    .home-projects-header-v2 .home-projects-title-stack {
        text-align: center;
    }

    .home-projects-header-v2 .home-projects-deck {
        margin-left: auto;
        margin-right: auto;
    }

    .home-projects-header .home-section-head-left {
        text-align: center;
        margin-bottom: 1rem;
    }

    .home-projects-header-v2 .home-projects-aside {
        text-align: center;
    }
}

/* —— Hero / About panel —— */
.home-hero-visual {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(15, 28, 35, 0.15);
    background: linear-gradient(135deg, #0d3d3a 0%, #19a49e 45%, #0a2a28 100%);
    min-height: 280px;
}

.home-hero-visual-img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: middle;
    opacity: 0.95;
}

.home-hero-visual-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.25rem 1.5rem 1.5rem;
    background: linear-gradient(180deg, transparent 0%, rgba(8, 18, 22, 0.88) 100%);
}

.home-hero-visual-overlay .badge-pill {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(25, 164, 158, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #e8fffc;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.home-hero-visual-overlay p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.65rem;
}

.home-hero-actions .btn-details {
    margin-right: 0;
    margin-bottom: 0;
}

.home-hero-actions .octf-btn {
    margin-right: 0;
    margin-bottom: 0;
}

/*
 * Theme .btn-border is white border + transparent + inherited white text from .octf-btn,
 * which disappears on light section backgrounds. Use brand outline on the About hero.
 */
.home-hero-actions .octf-btn.btn-border {
    color: #19a49e !important;
    border-color: #19a49e !important;
    background-color: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.home-hero-actions .octf-btn.btn-border:hover,
.home-hero-actions .octf-btn.btn-border:focus {
    color: #fff !important;
    background-color: #19a49e !important;
    border-color: #19a49e !important;
}

/* —— CTA band consistency —— */
.home-cta-band .ot-heading span {
    display: block;
    margin-bottom: 0.35rem;
}
