/**
 * Orion Hero Widget Styles
 * 
 * @package Orion_Construction
 * @since 1.0.0
 */

/* Orion Hero Widget */
.orion-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.orion-hero__main {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.orion-hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
	 transform: none !important;
    transition: opacity 0.8s ease;
}

.orion-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 42, 29, 0.7);
    z-index: 2;
}

.orion-hero__text-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
   	padding: 60px;
   	margin-left: 100px;
	background-color:rgba(0, 0, 0, 0.35);
	max-width:800px;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.orion-hero__category {
   font-weight: 500;
    font-size: 20px;
    text-transform: uppercase;
    line-height: 100%;
    letter-spacing: 4px;
    opacity: 0.9;
	margin-bottom:55px;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.orion-hero__main-heading {
/*     font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 10px 0; */
	margin-bottom : 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.orion-hero__sub-heading {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Service Cards Section */
.orion-hero__service-cards {
/*     position: relative; */
    z-index: 4;
/*     margin-top: -50px; */
	position: absolute;
    bottom: 40px;
    left: 100px;
    padding: 0 20px;
}

.orion-hero__cards-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
    max-width: 1720px;
    margin: 0 auto;
}

/* Slider mode */
.orion-hero__cards-container[data-slider="1"] {
    display: flex;
    gap: 26px;
    overflow: hidden;
}

.orion-hero__cards-container[data-slider="1"] .orion-hero__service-card {
    flex: 0 0 410px;
}

.orion-hero__cards-nav {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 5;
    pointer-events: none; /* allow clicks only on buttons */
}

.orion-hero__nav-btn {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(0,0,0,0.15);
    background: #fff;
    color: #1a2a1d;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    pointer-events: auto; /* re-enable on buttons */
}

.orion-hero__nav-btn[disabled] {
    opacity: .35;
    cursor: default;
}

.orion-hero__service-card {
    background: #ffffff;
/*     border-radius: 8px; */
/*     padding: 24px; */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
/*     flex-direction: column; */
	flex-direction:row;
	gap:30px;
    justify-content: space-between;
	align-items:center;
/*     min-height: 140px; */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
	max-width:410px;
	width:100%;
}

.orion-hero__service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Active card state */
.orion-hero__service-card.active {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(24, 111, 101, 0.3);
    border: 2px solid #186F65;
    background: linear-gradient(135deg, #ffffff 0%, #f8fffe 100%);
}

.orion-hero__service-card.active .orion-hero__card-title {
    color: #186F65;
    font-weight: 600;
}

.orion-hero__service-card.active .orion-hero__card-desc {
    color: #186F65;
    font-weight: 400;
}

.orion-hero__card-content {
    flex: 1;
	margin: 28px 0 25px 29px;
}

.orion-hero__card-title{
/*     font-size: 1.25rem; */
/*     font-weight: 600; */
    color: #1a2a1d;
/*     margin: 0 0 8px 0; */
/* 	 margin-bottom: 18px; */
	margin-bottom:10px;
}

.orion-hero__card-desc {
    color: #666666;
    margin: 0;
/*     line-height: 1.4; */
	font-size:16px;
	font-family:Lexend;
	text-transform:capitalize;
	font-weight:300;
	line-height:26px;
	
}

.orion-hero__card-image {
/*     margin-top: 16px; */
	max-width: 125px;
    width: 100%;
    text-align: right;
	margin: 16px 16px 16px 0;
}

.orion-hero__card-image img {
		height:86px !important;
     width: 100%;
    object-fit: cover;
    display: block;

/*     border-radius: 6px; */
	
}

/* Layout-specific styles */
.orion-hero.layout_1 .orion-hero__text-content {
    text-align: left;
}
.orion-hero.layout_1 .orion-hero__text-content h1, .orion-hero.layout_1 .orion-hero__text-content h2, .orion-hero.layout_1 .orion-hero__text-content h3,.orion-hero.layout_1 .orion-hero__text-content h4{
        color: #ffffff !important;
}

.orion-hero.layout_2 .orion-hero__text-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.orion-hero.layout_3 .orion-hero__text-content {
    text-align: left;
}

.orion-hero.layout_4 .orion-hero__text-content {
    text-align: left;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .orion-hero__cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .orion-hero__service-card {
        min-height: 120px;
    }
}

@media (max-width: 768px) {
    .orion-hero__main {
        min-height: 500px;
    }
    
    .orion-hero__text-content {
        padding: 0 30px;
        text-align: center;
    }
    
    .orion-hero__main-heading,
    .orion-hero__sub-heading {
        font-size: 2.5rem;
    }
    
    .orion-hero__service-cards {
        margin-top: -30px;
        padding: 0 15px;
    }
    
    .orion-hero__cards-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .orion-hero__service-card {
        min-height: auto;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .orion-hero__main-heading,
    .orion-hero__sub-heading {
        font-size: 2rem;
    }
    
    .orion-hero__text-content {
        padding: 0 20px;
    }
    
    .orion-hero__service-cards {
        padding: 0 10px;
    }
}

/* Animation Effects */
.orion-hero__heading,
.orion-hero__sub-heading,
.orion-hero__description,
.orion-hero__button {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.orion-hero__heading {
    animation-delay: 0.2s;
}

.orion-hero__sub-heading {
    animation-delay: 0.4s;
}

.orion-hero__description {
    animation-delay: 0.6s;
}

.orion-hero__button {
    animation-delay: 0.8s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover Effects */
.orion-hero:hover .orion-hero__overlay {
    background-color: rgba(26, 42, 29, 0.7);
    transition: background-color 0.3s ease;
}

/* Focus States for Accessibility */
.orion-hero__button:focus {
    outline: 3px solid #186F65;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .orion-hero {
        min-height: auto;
        page-break-inside: avoid;
    }
    
    .orion-hero__background,
    .orion-hero__overlay {
        display: none;
    }
    
    .orion-hero__content {
        color: #000000;
        text-shadow: none;
    }
    
    .orion-hero__button {
        background-color: #cccccc;
        color: #000000;
        border: 1px solid #000000;
        box-shadow: none;
    }
}

