/* OHS CONSTRUCTION - Main Stylesheet */

:root {
    --primary-color: #002B5B;
    /* Deep Navy */
    --secondary-color: #E85D04;
    /* Construction Orange */
    --accent-color: #FCA311;
    /* Yellow/Gold */
    --text-dark: #1F1F1F;
    --text-light: #666666;
    --text-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--text-white);
}

.btn-primary:hover {
    background-color: #d65200;
}

.btn-outline {
    border: 2px solid var(--text-white);
    color: var(--text-white);
}

.btn-outline:hover {
    background-color: var(--text-white);
    color: var(--primary-color);
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Header & Nav */
header {
    background-color: var(--text-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 1rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 90vh;
    /* Increased height for better impact */
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-white);
    padding-top: 80px;
    overflow: hidden;
}

.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    /* Smooth transition */
}

.hero-slide.active {
    opacity: 1;
    animation: zoomEffect 20s infinite alternate;
    /* Subtle zoom effect */
}

@keyframes zoomEffect {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 43, 91, 0.7), rgba(0, 43, 91, 0.5));
    /* Balanced transparency */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* Hero Brand Animation */
.hero-brand-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}



.hero-logo-placeholder {
    max-width: 150px;
    width: 100%;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.hero-logo-placeholder img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.hero-company-name {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 1s forwards;
    /* 0.5s delay after logo */
}

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

/* Featured Services Section */
.featured-services-section {
    background-color: var(--bg-white);
    padding: 80px 0;
}

.featured-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 50px;
}

.featured-service-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    height: 350px;
}

.featured-service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.featured-service-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.featured-service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.featured-service-card:hover .featured-service-image img {
    transform: scale(1.1);
}

.featured-service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 43, 91, 0.3) 0%,
            rgba(0, 43, 91, 0.7) 100%);
    transition: background 0.4s ease;
}

.featured-service-card:hover .featured-service-overlay {
    background: linear-gradient(to bottom,
            rgba(232, 93, 4, 0.4) 0%,
            rgba(232, 93, 4, 0.8) 100%);
}

.featured-service-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px 20px;
    z-index: 10;
    text-align: center;
}

.featured-service-content h3 {
    color: var(--text-white);
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* About Preview */
.about-preview .content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: 5px;
    box-shadow: var(--shadow);
}

/* Services Preview */
.services-section {
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--text-white);
    padding: 40px 30px;
    border-radius: 5px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Stats Counter */
.stats {
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 20px;
}

.stat-item h2 {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

/* Footer */
footer {
    background-color: #001A36;
    color: #DDDDDD;
    padding-top: 60px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #ffffff1a;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col h4 {
    color: var(--text-white);
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .about-preview .content {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .featured-service-card {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--text-white);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        text-align: center;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .hero {
        padding-left: 20px;
        padding-right: 20px;
        height: auto;
        min-height: 500px;
        /* Reduced min-height for mobile */
    }

    .hero-content h1 {
        font-size: 2rem;
        /* Reduced from 2.5rem */
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 30px;
    }

    .hero-company-name {
        font-size: 1.8rem;
        /* Reduced for mobile */
        letter-spacing: 1px;
    }

    .hero-logo-placeholder {
        max-width: 100px;
        /* Smaller logo for mobile */
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .featured-services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .featured-service-card {
        height: 200px;
    }

    .featured-service-content h3 {
        font-size: 1.1rem;
    }
}

/* Dropdown Menu Styles */
.dropdown-container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 900px;
    /* Wide dropdown */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 10px 10px;
    border-top: 3px solid var(--secondary-color);
    padding: 20px;
    z-index: 1100;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-top: 10px;
    /* Gap for hover intent, handled by pseudo-element usually or just modifying logic */
}

/* Connect the dropdown so it doesn't disappear when moving cursor */
.dropdown-container::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
    /* Bridge the gap */
    background: transparent;
}

.dropdown-container:hover .dropdown-content {
    display: grid;
    opacity: 1;
    visibility: visible;
    margin-top: 0;
}

.dropdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s ease;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.dropdown-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dropdown-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-bottom: 2px solid var(--secondary-color);
}

.dropdown-item span {
    padding: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.2;
}

/* Responsive adjustment for dropdown */
@media (max-width: 992px) {
    .dropdown-content {
        display: none !important;
        /* Hide on mobile/tablet for now or use different style */
    }

    .dropdown-container .fa-chevron-down {
        display: none !important;
    }

    /* On mobile, we might just want regular links, so we hide the dropdown mechanism */
    .dropdown-container:hover .dropdown-content {
        display: none;
    }
}

@media (max-width: 768px) {
    .dropdown-container {
        display: block;
        text-align: center;
    }

    .dropdown-container>a {
        display: inline-block;
    }
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background: #f0f0f0;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease-in-out;
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 600px;
    width: 100%;
    /* Ensure width */
    position: relative;
    /* For blurred background */
    overflow: hidden;
}

.carousel-slide img {
    /* Mobile Default: Cover */
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    /* Content above blur */
}

/* Desktop: Uncropped with Blur Fill */
@media (min-width: 769px) {
    .carousel-slide img {
        object-fit: contain;
    }

    .carousel-slide::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: var(--bg-image);
        background-size: cover;
        background-position: center;
        filter: blur(20px) brightness(0.7);
        z-index: 1;
        /* Behind content */
        transform: scale(1.1);
        /* Remove blur edges */
    }
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.4);
    /* Slightly transparent white/light */
    color: var(--primary-color);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.carousel-btn:hover {
    background: rgba(232, 93, 4, 0.8);
    /* Secondary color */
    color: white;
}

.carousel-btn.prev {
    left: 15px;
}

.carousel-btn.next {
    right: 15px;
}

.carousel-counter {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    z-index: 10;
    font-weight: 500;
}

/* Mobile Swipe Hint Animation */
@keyframes swipeHint {

    0%,
    100% {
        transform: translateX(0);
    }

    30% {
        transform: translateX(-15%);
        /* Move left to peek next slide */
    }

    60% {
        transform: translateX(0);
    }
}

.carousel-track.animate-hint {
    animation: swipeHint 1.2s ease-in-out;
}

@media (max-width: 768px) {
    .carousel-slide {
        height: 250px;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        background: rgba(255, 255, 255, 0.3);
    }
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    /* Hidden by default */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 2010;
    padding: 10px;
    line-height: 1;
}