/* 
   Service Page Styles
   Civil Engineering Service Page
   Franklin Engineering Ltd.
*/

/* Service Hero Section */
.service-hero {
    height: 80vh;
    background-image: url('../assets/img/land-development-digger.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 26, 65, 0.8) 0%, rgba(13, 26, 65, 0.6) 100%);
    z-index: 1;
}

.service-hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    width: 100%;
    max-width: 1200px; /* allow more horizontal space for large headlines */
    margin: 0 auto;
    padding: 0 2rem; /* use side space */
    text-align: left; /* utilize horizontal space instead of strict centering */
}

.breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.breadcrumb a {
    color: var(--white);
    text-decoration: none;
    transition: color var(--transition-medium);
}

.breadcrumb a:hover {
    color: var(--gold);
}

.breadcrumb-separator {
    margin: 0 0.75rem;
    color: var(--gold);
}

.service-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1; /* tighter lines for large headings */
    white-space: normal;
}

.service-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.5;
    max-width: 900px; /* allow subtitle to span wider */
}

/* Increase hero container width on large screens so headline can sit on one line */
.service-hero .container {
    max-width: 1400px;
    width: 100%;
    padding-left: 3rem;
    padding-right: 3rem;
}

@media (min-width: 1400px) {
    .service-title {
        font-size: 6rem;
    }
    .service-subtitle {
        font-size: 1.5rem;
    }
}

@media (max-width: 900px) {
    .service-hero {
        height: auto;
        padding: 4rem 0;
        background-attachment: scroll;
    }
    .service-title {
        font-size: 2.4rem;
        text-align: center;
    }
    .service-hero-content {
        text-align: center;
        max-width: 100%;
        padding: 0 1rem;
    }
    .service-subtitle {
        max-width: 100%;
    }
}

.service-hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Service Overview */
.service-overview {
    padding: 6rem 0;
    background-color: var(--white);
}

.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.overview-text {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.overview-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.overview-image {
    position: relative;
}

.overview-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-lg);
}

.image-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, var(--gold), var(--gold-light));
    border-radius: var(--border-radius-lg);
    z-index: -1;
}

/* Service Features */
.service-features {
    padding: 6rem 0;
    background-color: var(--off-white);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-sm);
    text-align: center;
    transition: all var(--transition-medium);
    border: 1px solid rgba(209, 150, 42, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
    border-color: var(--gold);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--gold), var(--gold-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--navy);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Project Gallery Carousel */
.project-gallery {
    padding: 6rem 0;
    background-color: var(--white);
}

.gallery-carousel {
    margin-top: 3rem;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-lg);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.slide-image {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.carousel-slide:hover .slide-image img {
    transform: scale(1.05);
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(13, 26, 65, 0.9));
    color: var(--white);
    padding: 3rem 2rem 2rem;
    transform: translateY(100%);
    transition: transform var(--transition-medium);
}

.carousel-slide:hover .slide-overlay {
    transform: translateY(0);
}

.slide-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.slide-content p {
    opacity: 0.9;
    margin-bottom: 0;
}

.carousel-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gold);
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-medium);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--gold-dark);
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(209, 150, 42, 0.3);
    cursor: pointer;
    transition: background var(--transition-medium);
}

.dot.active,
.dot:hover {
    background: var(--gold);
}

/* Process Timeline */
.service-process {
    padding: 6rem 0;
    background-color: var(--off-white);
}

.process-timeline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3rem;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gold);
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    position: relative;
}

.step-number {
    width: 100px;
    height: 100px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.step-content {
    flex: 1;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-sm);
    margin-top: 1rem;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--navy);
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Why Choose Us */
.why-choose-us {
    padding: 6rem 0;
    background-color: var(--navy);
    color: var(--white);
    position: relative;
}

.choose-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.choose-us-content .section-heading .section-title {
    color: var(--white);
}

.benefits-list {
    display: grid;
    gap: 2rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    flex-shrink: 0;
}

.benefit-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.benefit-content p {
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 0;
}

.choose-us-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
}

/* Service CTA */
.service-cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    text-align: center;
}

.service-cta .cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.service-cta .cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--white);
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.service-cta .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.service-cta .btn-primary {
    background: var(--white);
    color: var(--navy);
}

.service-cta .btn-primary:hover {
    background: var(--off-white);
    color: var(--navy);
}

.service-cta .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.service-cta .btn-outline:hover {
    background: var(--white);
    color: var(--navy);
}

/* Additional Services Page Styles */
.additional-services {
    padding: 6rem 0;
    background-color: var(--off-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-sm);
    overflow: hidden;
    transition: all var(--transition-medium);
    border: 1px solid rgba(209, 150, 42, 0.1);
    height: fit-content;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
    border-color: var(--gold);
}

.service-card-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    padding: 2rem;
    text-align: center;
    color: var(--white);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(209, 150, 42, 0.3);
}

.service-card-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    color: var(--white);
}

.service-card-content {
    padding: 2rem;
}

.service-card-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.service-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.highlight-item i {
    color: var(--gold);
    font-size: 1.1rem;
    flex-shrink: 0;
    width: 20px;
}

.highlight-item span {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.btn-text {
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-fast);
}

.btn-text:hover {
    color: var(--gold-dark);
}

.btn-arrow {
    transition: transform var(--transition-fast);
}

.btn-text:hover .btn-arrow {
    transform: translateX(3px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .overview-grid,
    .choose-us-grid {
        gap: 3rem;
    }
    
    .overview-stats {
        gap: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .overview-grid,
    .choose-us-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .service-title {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .process-timeline::before {
        left: 35px;
    }
    
    .step-number {
        width: 70px;
        height: 70px;
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .service-hero {
        height: 60vh;
        background-attachment: scroll;
    }
    
    .service-title {
        font-size: 2rem;
    }
    
    .service-subtitle {
        font-size: 1.1rem;
    }
    
    .service-hero-cta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .overview-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 2rem;
    }
    
    .process-timeline::before {
        display: none;
    }
    
    .process-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .step-number {
        width: 80px;
        height: 80px;
    }
    
    .benefits-list {
        gap: 1.5rem;
    }
    
    .benefit-item {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
    }
    
    .benefit-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .benefit-content h4 {
        font-size: 1.1rem;
    }
    
    .choose-us-grid {
        gap: 2rem;
    }
    
    .choose-us-image img {
        height: 250px;
    }
    
    .carousel-navigation {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .service-hero {
        height: 50vh;
    }
    
    .service-title {
        font-size: 1.8rem;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .slide-image {
        height: 300px;
    }
    
    .service-cta .cta-content h2 {
        font-size: 2rem;
    }
    
    .service-cta .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .why-choose-us {
        padding: 4rem 0;
    }
    
    .benefit-item {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
    }
    
    .benefit-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .benefit-content h4 {
        font-size: 1rem;
    }
    
    .choose-us-image img {
        height: 200px;
    }
}
