/* ==========================================
   Services Page Specific Styles
   ========================================== */

/* Hero Section */
.hero-service-section {
    top: 0;
    left: 0;
    width: 100%;
    height: 60vh;
    background: linear-gradient(135deg, rgba(15, 44, 35, 0.75) 0%, rgba(10, 30, 24, 0.6) 100%), 
                url('../assets/images/services.avif');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
    text-align: center;
    padding-top: 60px;
}

.hero-service-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10%;
    max-width: 1500px;
    margin: 0 auto;
    width: 100%;
}

.hero-service-text {
    max-width: 820px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-service-text h1 {
    font-size: 52px;
    line-height: 1.1;
    margin-bottom: 12px;
    color: #ffffff;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: 'Poppins', serif;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
}

.hero-service-text p {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #d0e1db;
    max-width: 650px;
    margin: 0;
}

.hero-service-text p a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hero-service-text p a:hover {
    color: #d4af37;
}

.hero-service-text p span {
    color: #d4af37;
    margin: 0 8px;
}

/* Scrollable Content Layer */
.scroll-content {
    padding: 80px 5% 0 5%;
}

/* ==========================================
   What We Do, At A Glance Section (Slider)
   ========================================== */
.glance-section {
    padding: 0px 5%;
    padding-bottom: 100px;
    background-color: #ffffff;
    position: relative;
    z-index: 2;
}

.glance-header {
    text-align: left;
    max-width: 1300px;
    margin: 0 auto 35px auto;
}

.glance-header h2 {
     font-size: 34px;
    color: #0F1F14;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.3;
}

.glance-header p {
   font-size: 15px;
    color: #0F1F14;
    line-height: 1.7;
    opacity: 0.85;
    margin-bottom: 20px;
}

.glance-slider-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
}

.glance-track-container {
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Hide scrollbar Firefox */
    -ms-overflow-style: none;  /* Hide scrollbar IE/Edge */
}

.glance-track-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari/Opera */
}

.glance-cards-track {
    display: flex;
    gap: 35px;
    transition: transform 0.4s ease-in-out;
    width: max-content;
}

.glance-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    width: 380px;
    height: 420px;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(15, 31, 20, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-color: #0F1F14;
}

.glance-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.glance-card-overlay {
    position: relative;
    z-index: 2;
    background: linear-gradient(to top, rgba(15, 44, 35, 0.95) 0%, rgba(15, 44, 35, 0.65) 65%, transparent 100%);
    padding: 35px 25px 25px 25px;
    color: #ffffff;
    text-align: left;
}

.glance-card-overlay h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
}

.glance-card-overlay p {
    font-size: 13.5px;
    opacity: 0.85;
    line-height: 1.5;
    color: #f0f5f3;
}

/* Slider Navigation Buttons */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: #ffffff;
    border: 1px solid #e1e8e5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0F1F14;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 10;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.slider-arrow:hover {
    background: #d4af37;
    color: #0F1F14;
    border-color: #d4af37;
}

.slider-arrow.prev { left: -25px; }
.slider-arrow.next { right: -25px; }

/* ==========================================
   Detailed Numbered Service Cards Section
   ========================================== */
.detailed-services-section {
    padding: 20px 0 60px 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.numbered-service-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 31, 20, 0.05);
    display: flex;
    align-items: stretch;
    border: 1px solid #e1e8e5;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    min-height: 420px; /* Baseline equal card height */
}

.numbered-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(15, 31, 20, 0.1);
    border-color: #d4af37;
}

/* Alternating layout order support */
.numbered-service-card.reverse {
    flex-direction: row-reverse;
}

.ns-content {
    flex: 1.2;
    padding: 40px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    transition: padding 0.3s ease;
}

.ns-number {
    width: 38px;
    height: 38px;
    background-color: #e6f0ec;
    color: #1b4d3e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
}

.ns-content h3 {
    font-size: 24px;
    color: #0F1F14;
    font-weight: 600;
    margin-bottom: 12px;
}

.ns-content p {
    font-size: 14px;
    color: #333333;
    line-height: 1.6;
    opacity: 0.85;
    margin-bottom: 20px;

    
}

.ns-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 20px;
    margin-bottom: 20px;
}

.ns-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: #0F1F14;
    opacity: 0.9;
}

.ns-feature-item i {
    color: #d4af37;
    font-size: 8px;
}

/* Uniform Image Container Styling */
.ns-image {
    flex: 1;
    width: 50%;
    position: relative;
    overflow: hidden;
    min-height: 100%;
}

.ns-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Forces identical aspect cropping across all cards */
    display: block;
    transition: transform 0.4s ease;
}

.numbered-service-card:hover .ns-image img {
    transform: scale(1.03);
}

/* ==========================================
   Expandable Content & Read More Button
   ========================================== */
.ns-expanded-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1), opacity 0.4s ease, margin-top 0.3s ease;
    border-top: 1px solid transparent;
}

/* Expanded Active State */
.numbered-service-card.expanded .ns-expanded-content {
    max-height: 1200px; /* Expands smoothly to fit detailed content */
    opacity: 1;
    margin-top: 20px;
    padding-top: 20px;
    border-top-color: #e1e8e5;
    transition: max-height 0.6s ease-in-out, opacity 0.5s ease 0.1s, margin-top 0.3s ease;
}

.ns-expanded-content h4 {
    font-size: 18px;
    color: #1b4d3e;
    font-weight: 600;
    margin-bottom: 10px;
}

.ns-expanded-content h5 {
    font-size: 15px;
    color: #0F1F14;
    font-weight: 600;
    margin: 15px 0 8px 0;
}

.expanded-list, .expanded-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.expanded-list li, .expanded-steps li {
    font-size: 13.5px;
    color: #444444;
    line-height: 1.6;
}

.expanded-list li strong, .expanded-steps li strong {
    color: #0F1F14;
}

/* Toggle Button Styling */
.btn-read-more {
    background: transparent;
    border: none;
    color: #1b4d3e;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 0;
    width: fit-content;
    transition: color 0.2s;
}

.btn-read-more:hover {
    color: #d4af37;
}

.btn-read-more i {
    font-size: 12px;
    transition: transform 0.3s ease;
    color: #d4af37;
}

.numbered-service-card.expanded .btn-read-more i {
    transform: rotate(180deg);
}

/* ==========================================
   CTA Section Styling
   ========================================== */
.cta-section {
    max-width: 1100px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
}

.cta-box {
    background: linear-gradient(135deg, #1b4d3e 0%, #0f2c23 100%);
    padding: 50px 30px;
    border-radius: 20px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 15px 35px rgba(15, 31, 20, 0.15);
}

.cta-box h2 {
    color: #ffffff;
    font-size: 32px;
    margin-bottom: 15px;
}

.cta-box p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 25px;
    color: #d0e1db;
}

.btn-cta {
    display: inline-block;
    background-color: #d4af37;
    color: #1b4d3e;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, background-color 0.2s;
}

.btn-cta:hover {
    transform: translateY(-2px);
    background-color: #e5be3b;
}

/* ==========================================
   Responsive Breakpoints
   ========================================== */
@media (max-width: 1024px) {
    .detailed-services-section {
        padding: 20px 10px 50px 10px;
    }
}

@media (max-width: 992px) {
    .glance-card {
        width: 320px;
        height: 380px;
    }
    .slider-arrow.prev { left: -10px; }
    .slider-arrow.next { right: -10px; }

    .numbered-service-card, 
    .numbered-service-card.reverse {
        flex-direction: column;
        min-height: auto;
    }

    .ns-content {
        width: 100%;
        padding: 30px 25px;
    }

    .ns-image {
        width: 100%;
        height: 280px; /* Equal image height on tablets and phones */
        min-height: 280px;
    }

    .ns-features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .scroll-content {
        padding: 40px 15px 0 15px;
        border-top-left-radius: 30px;
        border-top-right-radius: 30px;
    }
    .cta-box {
        padding: 40px 20px;
    }
    .cta-box h2 {
        font-size: 26px;
    }
}

@media (max-width: 650px) {
    .glance-card {
        width: 280px;
        height: 350px;
    }
    .slider-arrow {
        display: none; /* Mobile touch swipe */
    }

    .ns-image {
        height: 220px;
        min-height: 220px;
    }

    .hero-about-text h1 {
        font-size: 36px;
    }
}