/* Common/shared styles moved to `css/common.css` */

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: url("../assets/Banner.webp");
    z-index: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(
            135deg,
            rgba(242, 168, 78, 0.75) 0%,
            rgba(186, 87, 23, 0.75) 100%
        );
    z-index: 2;
    display: flex;
    align-items: center;
    padding: 0 60px;
    padding-left: 180px;
    clip-path: circle(100% at 10% 20%);
}

.hero-content {
    color: #fff;
    max-width: 500px;
}

.hero-content h1 {
    font-size: 60px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-appointment {
    background: #fff;
    color: #ba5717;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s;
    display: inline-block;
    text-decoration: none;
}

.btn-appointment:hover {
    transform: translateY(-2px);
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
}

.slider-btn {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 20px;
    transition: background 0.3s;
}

.slider-btn:hover {
    background: #fff;
}

/* Feature Cards */
.feature-cards {
    background: #fff;
    padding: 60px 0;
}

.feature-cards .container {
    display: flex;
    gap: 30px;
}

.feature-card {
    flex: 1;
    background: #2c2c2c;
    padding: 40px;
    position: relative;
    border-top: 4px solid #ba5717;
}

.feature-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.feature-header i {
    font-size: 40px;
    color: #fff;
}

.feature-number {
    font-size: 48px;
    font-weight: bold;
    color: #fff;
    opacity: 0.3;
}

.feature-card h3 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 15px;
}

.feature-card p {
    color: #ccc;
    line-height: 1.8;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: #fff;
}

.services-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.services-images {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.services-img-large {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    background-image: url("../assets/Services large.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.services-img-small {
    width: 100%;
    height: 260px;
    background: linear-gradient(135deg, #ba5717 0%, #f2a84e 100%);
    border-radius: 8px;
    background-image: url("../assets/Services small.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.services-text {
    flex: 1;
}

.services-text h2 {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 25px;
    color: #2c2c2c;
}

.services-text > p {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

.service-point {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.check-icon {
    width: 40px;
    height: 40px;
    background: #ba5717;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.service-point h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #2c2c2c;
}

.service-point p {
    color: #666;
    line-height: 1.8;
}

.btn-read-more {
    background: #ba5717;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-read-more:hover {
    background: #a04a12;
}

/* Newsletter Section */
.newsletter {
    background: linear-gradient(135deg, #f2a84e 0%, #ba5717 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 200"><polygon fill="%23ffffff" fill-opacity="0.05" points="0,0 200,50 400,0 600,50 800,0 1000,50 1200,0 1200,200 1000,150 800,200 600,150 400,200 200,150 0,200"/></svg>');
    background-size: cover;
    opacity: 0.3;
}

.newsletter-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.newsletter-text h2 {
    font-size: 36px;
    color: #fff;
    margin-bottom: 10px;
}

.newsletter-text p {
    color: #fff;
    opacity: 0.9;
    font-size: 16px;
}

.newsletter-form {
    display: flex;
    gap: 0;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.newsletter-form input {
    padding: 15px 25px;
    border: none;
    font-size: 16px;
    min-width: 300px;
    outline: none;
}

.newsletter-form button,
.newsletter-submit-btn {
    background: #2c2c2c;
    color: #fff;
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-form button:hover,
.newsletter-submit-btn:hover {
    background: #1a1a1a;
}

/* What We Offer Section */
.what-we-offer {
    padding: 80px 0;
    background: #f8f8f8;
}

.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: bold;
    color: #2c2c2c;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-box {
    background: #fff;
    padding: 40px;
    border: 2px solid #f8f8f8;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.service-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    transition: background 0.3s;
    z-index: 0;
}

.service-box-road-plant,
.service-box-railway,
.service-box-gate-access,
.service-box-parking,
.service-box-industrial,
.service-box-ai-video,
.service-box-gas-fire,
.service-box-thermal,
.service-box-security,
.service-box-alcohol,
.service-box-cranes,
.service-box-customized {
    background-size: cover;
    background-position: center;
    min-height: 180px;
}

.service-box-road-plant {
    background-image: url('../assets/service categories/Road and plant.webp');
}
.service-box-railway {
    background-image: url('../assets/service categories/Railway automation.webp');
}
.service-box-gate-access {
    background-image: url('../assets/service categories/Gate access control.webp');
}
.service-box-parking {
    background-image: url('../assets/service categories/Parking management.webp');
}
.service-box-industrial {
    background-image: url('../assets/service categories/Industrial automation.webp');
}
.service-box-ai-video {
    background-image: url('../assets/service categories/AI video analytics.webp');
}
.service-box-gas-fire {
    background-image: url('../assets/service categories/Gas and fire safety.webp');
}
.service-box-thermal {
    background-image: url('../assets/service categories/Thermal monitoring.webp');
}
.service-box-security {
    background-image: url('../assets/service categories/Security systems.webp');
}
.service-box-alcohol {
    background-image: url('../assets/service categories/Alcohol control.webp');
}
.service-box-cranes {
    background-image: url('../assets/service categories/Cranes and material handling.webp');
}
.service-box-customized {
    background-image: url('../assets/service categories/Customized solution.webp');
}

.service-box-road-plant::before,
.service-box-railway::before,
.service-box-gate-access::before,
.service-box-parking::before,
.service-box-industrial::before,
.service-box-ai-video::before,
.service-box-gas-fire::before,
.service-box-thermal::before,
.service-box-security::before,
.service-box-alcohol::before,
.service-box-cranes::before,
.service-box-customized::before {
    background: rgba(44, 44, 44, 0.6);
}

.service-box-road-plant .service-icon,
.service-box-road-plant h4,
.service-box-railway .service-icon,
.service-box-railway h4,
.service-box-gate-access .service-icon,
.service-box-gate-access h4,
.service-box-parking .service-icon,
.service-box-parking h4,
.service-box-industrial .service-icon,
.service-box-industrial h4,
.service-box-ai-video .service-icon,
.service-box-ai-video h4,
.service-box-gas-fire .service-icon,
.service-box-gas-fire h4,
.service-box-thermal .service-icon,
.service-box-thermal h4,
.service-box-security .service-icon,
.service-box-security h4,
.service-box-alcohol .service-icon,
.service-box-alcohol h4,
.service-box-cranes .service-icon,
.service-box-cranes h4,
.service-box-customized .service-icon,
.service-box-customized h4 {
    position: relative;
    z-index: 1;
    color: #fff;
}

.service-box-road-plant .service-icon,
.service-box-railway .service-icon,
.service-box-gate-access .service-icon,
.service-box-parking .service-icon,
.service-box-industrial .service-icon,
.service-box-ai-video .service-icon,
.service-box-gas-fire .service-icon,
.service-box-thermal .service-icon,
.service-box-security .service-icon,
.service-box-alcohol .service-icon,
.service-box-cranes .service-icon,
.service-box-customized .service-icon {
    background: rgba(186, 87, 23, 0.9);
}

.service-box-road-plant:hover::before,
.service-box-railway:hover::before,
.service-box-gate-access:hover::before,
.service-box-parking:hover::before,
.service-box-industrial:hover::before,
.service-box-ai-video:hover::before,
.service-box-gas-fire:hover::before,
.service-box-thermal:hover::before,
.service-box-security:hover::before,
.service-box-alcohol:hover::before,
.service-box-cranes:hover::before,
.service-box-customized:hover::before {
    background: rgba(44, 44, 44, 0.75);
}

.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: #ba5717;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    margin-bottom: 20px;
}

.service-box h4 {
    font-size: 25px;
    margin-bottom: 15px;
    color: #fff;
}

/* Statistics Banner */
.stats-banner {
    background: #ba5717;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.stats-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 200"><path fill="%23ffffff" fill-opacity="0.05" d="M0,100 Q300,50 600,100 T1200,100 L1200,200 L0,200 Z"/></svg>');
    background-size: cover;
    opacity: 0.3;
}

.stats-banner .container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item {
    color: #fff;
}

.stat-item h3 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 16px;
    opacity: 0.9;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60px;
    background: rgba(255,255,255,0.3);
}

.stat-item {
    position: relative;
}

/* Expert Team Section */
.expert-team {
    padding: 80px 0;
    background: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 42px;
    font-weight: bold;
    color: #2c2c2c;
    margin-bottom: 15px;
}

.title-underline {
    width: 60px;
    height: 4px;
    background: #ba5717;
    margin: 0 auto;
}

.section-title.light h2 {
    color: #fff;
}

.team-carousel {
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    background: #2c2c2c;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background 0.3s;
    flex-shrink: 0;
}

.carousel-btn.white {
    background: #fff;
    color: #2c2c2c;
}

.carousel-btn:hover {
    background: #ba5717;
    color: #fff;
}

.team-members {
    display: flex;
    gap: 40px;
    flex: 1;
    justify-content: center;
}

.team-member {
    text-align: center;
    flex: 1;
    max-width: 300px;
}

.member-image {
    position: relative;
    margin-bottom: 20px;
}

.member-placeholder {
    width: 100%;
    padding-top: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.member-placeholder::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
}

.member-social {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: #ba5717;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 4px;
}

.team-member h4 {
    font-size: 22px;
    margin-bottom: 5px;
    color: #2c2c2c;
}

.team-member p {
    color: #ba5717;
    font-weight: 500;
}

/* Our Clients Section */
.clients-section {
    padding: 80px 0;
    background: #2c2c2c;
    margin-bottom: 80px;
}

.client-logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.client-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 120px;
    background: #fff;
    border-radius: 8px;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    flex-shrink: 0;
}

.client-logo-item:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.client-logo-img {
    max-height: 80px;
    max-width: 160px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.client-logo-item:hover .client-logo-img {
    opacity: 1;
}

/* Latest News Section */
.latest-news {
    padding: 80px 0;
    background: #fff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.news-image {
    position: relative;
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
}

.news-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.news-date {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: #ba5717;
    color: #fff;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: bold;
}

.news-card h3 {
    padding: 25px 25px 15px;
    font-size: 22px;
    color: #2c2c2c;
    line-height: 1.4;
}

.news-card p {
    padding: 0 25px 20px;
    color: #666;
    line-height: 1.8;
}

.read-more-link {
    display: inline-block;
    padding: 0 25px 25px;
    color: #ba5717;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.read-more-link:hover {
    color: #a04a12;
}

/* Footer */
.footer {
    background: #2c2c2c;
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: #ba5717;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 24px;
    border-radius: 4px;
}

.footer-logo .logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

.footer-column p {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-column h4 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    color: #ccc;
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #ba5717;
}

.footer-bottom {
    background: linear-gradient(135deg, #ba5717 0%, #f2a84e 100%);
    padding: 25px 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-contact {
    display: flex;
    gap: 30px;
    color: #fff;
}

.footer-contact span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom p {
    color: #fff;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .services-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* common.css handles contact bar + nav mobile */
    
    /* Ensure hero background image is always visible on mobile */
    .hero {
        height: 420px;
    }

    .hero-background {
        background-image: url("../assets/Banner.webp");
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .hero-overlay {
        width: 100%;
        clip-path: none;
        /* Make overlay translucent so the hero background remains visible */
        background: linear-gradient(
            135deg,
            rgba(242, 168, 78, 0.75) 0%,
            rgba(186, 87, 23, 0.75) 100%
        );
        padding: 40px 20px;
        padding-left: 20px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .feature-cards .container {
        flex-direction: column;
    }
    
    .services-content {
        flex-direction: column;
    }

    /* Avoid narrow text column (causes huge height + uneven sizing) */
    .services-content {
        align-items: stretch;
    }

    .services-images {
        width: 100%;
    }

    .services-text {
        width: 100%;
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form input {
        min-width: 0;
        width: 100%;
    }

    .newsletter-form {
        width: 100%;
    }
    
    .services-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .team-members {
        flex-direction: column;
        /* When switching to column, center cards horizontally */
        align-items: center;
    }

    /* Keep team cards the same size on mobile */
    .team-member {
        width: 100%;
        max-width: 280px;
        flex: 0 0 auto;
    }

    .member-image {
        width: 100%;
    }

    /* Reduce whitespace between hero and the next section */
    .services-section {
        padding: 40px 0;
    }
    
    .stats-banner .container {
        flex-direction: column;
        gap: 30px;
    }
    
    .stat-item::after {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-contact {
        flex-direction: column;
        gap: 15px;
    }

    .client-logos-grid {
        gap: 25px;
        flex-direction: column;
    }

    .client-logo-item {
        width: 100%;
        max-width: 250px;
        height: 100px;
    }

    .client-logo-img {
        max-height: 50px;
    }
}

@media (max-width: 480px) {
    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .btn-contact {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }

    /* Slightly shorter hero on very small screens */
    .hero {
        height: 380px;
    }

    /* Even less top padding to remove remaining gap */
    .services-section {
        padding: 30px 0;
    }
}

