/* ========================================
   SERVICES PAGE - SPECIFIC STYLES
   ======================================== 
   
   This file contains styles ONLY for the Services page.
   Global styles (navbar, footer, buttons, etc.) are in style.css
   
   ======================================== */
/* ========================================
   HERO BANNER (Static image with overlay)
   ======================================== */
.page-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-container {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

.hero-content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1280px;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3rem;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hero-title {
    font-size: 6rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.title-line-1 {
    color: #ffffff;
    display: block;
}

.title-line-2 {
    color: #ffffff;
    display: inline-block;
    background-color: #000000;
    padding: 0.25rem 1rem 0.25rem 0;
    margin-left: -0.25rem;
}

/* Hero CTA Buttons */
.hero-cta-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-hero-outline {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* ========================================
   SERVICES INTRO SECTION
   Dark blue background with centered text
   ======================================== */
.services-intro-section {
    background-color: #011A38;
    padding: 5rem 1rem;
    text-align: center;
}

.intro-heading {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2rem;
    line-height: 1.2;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.intro-text {
    font-size: 1.25rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    max-width: 900px;
    margin: 0 auto;
}

/* ========================================
   SERVICES SHOWCASE SECTION
   ======================================== */
.services-showcase-section {
    background-color: #011A38;
    padding: 0;
}

.service-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 4rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    align-items: center;
}

.service-item:last-child {
    border-bottom: none;
}

.service-image {
    width: 100%;
    height: 400px;
    border-radius: 1rem;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-item:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    color: #ffffff;
}

.service-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.service-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.service-description:last-child {
    margin-bottom: 0;
}

/* FIXED: Service CTA Container - Align items to the right */
.service-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Aligns icon and button to the right */
    gap: 2rem;
    margin-top: 2rem;
}

/* FIXED: Service Icon Container - Match container size to image size */
.service-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0) rotate(-180deg);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-icon.animate {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.service-icon img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.btn-learn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    background: transparent;
    border: 2px solid #ffffff;
    border-radius: 9999px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(20px); /* FIXED: Changed from translateY to translateX for horizontal slide */
    white-space: nowrap;
    width: auto;
}

.btn-learn-more.animate {
    opacity: 1;
    transform: translateX(0); /* FIXED: Slides in from right */
}

.btn-learn-more:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.btn-learn-more i {
    width: 1.125rem;
    height: 1.125rem;
    transition: transform 0.3s ease;
}

.btn-learn-more:hover i {
    transform: translateX(4px);
}

/* ========================================
   OUR SERVICE FOOTPRINT SECTION
   ======================================== */
.service-footprint-section {
    background-color: #011A38;
    padding: 5rem 1rem;
}

.footprint-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
}

.footprint-content {
    color: #ffffff;
}

.footprint-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #22d3ee;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.footprint-subtitle {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.footprint-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
}

.footprint-map {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.map-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border: 2px solid #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

/* ========================================
   CALL TO ACTION SECTION
   Off-white/silver background with League Gothic font
   Appears on every page
   ======================================== */

.cta-section {
    background: #e8e8e8;
    padding: 6rem 1rem;
    position: relative;
}

.cta-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.cta-heading {
    font-family: 'League Gothic', 'Impact', 'Arial Black', sans-serif;
    font-size: 5rem;
    font-weight: 400;
    line-height: 0.95;
    color: #000000;
    text-transform: lowercase;
    letter-spacing: -0.02em;
}

.cta-heading br {
    display: block;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-cta-primary {
    background: #000000;
    color: white;
    border: none;
    padding: 1.25rem 3rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.btn-cta-primary:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.btn-cta-secondary {
    background: transparent;
    color: #000000;
    border: 2px solid #000000;
    padding: 1.25rem 3rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-cta-secondary:hover {
    background: #000000;
    color: white;
    transform: translateY(-2px);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet and Desktop */
@media (min-width: 768px) {
    .hero-cta-buttons {
        flex-wrap: nowrap;
    }
    
    /* CTA buttons side-by-side on desktop */
    .cta-buttons {
        flex-direction: row;
        max-width: 600px;
    }
    
    /* Services Showcase Desktop Layout */
    .service-item {
        grid-template-columns: 400px 1fr auto;
        gap: 3rem;
        padding: 4rem 2rem;
        align-items: start;
    }
    
    .service-image {
        height: 300px;
    }
    
    /* Desktop: CTA column should align to top-right */
    .service-cta {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-end;
        margin-top: 0;
        padding-top: 0;
    }
    
    /* Service Footprint Desktop Layout */
    .footprint-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    
    .map-image {
        max-width: 100%;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 7rem;
    }
    
    .intro-heading {
        font-size: 3.5rem;
    }
    
    .cta-heading {
        font-size: 7rem;
    }
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .title-line-2 {
        padding: 0.25rem 0.5rem 0.25rem 0;
    }
    
    .btn-hero-outline {
        width: 100%;
        text-align: center;
    }
    
    .hero-content-wrapper {
        padding: 0 1rem;
        gap: 2rem;
    }
    
    .intro-heading {
        font-size: 2rem;
    }
    
    .intro-text {
        font-size: 1rem;
    }
    
    .cta-section {
        padding: 4rem 1rem;
    }
    
    .cta-heading {
        font-size: 4rem;
    }
    
    .cta-buttons {
        max-width: 100%;
    }
    
    .footprint-title {
        font-size: 1.75rem;
    }
    
    .footprint-subtitle {
        font-size: 1.5rem;
    }
    
    .footprint-text {
        font-size: 1rem;
    }
    
    .service-footprint-section {
        padding: 3rem 1rem;
    }
    
    .footprint-grid {
        gap: 2rem;
    }
    
    /* Mobile: Center the icon and button */
    .service-cta {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .btn-hero-outline {
        font-size: 1rem;
        padding: 0.875rem 2rem;
    }
    
    .intro-heading {
        font-size: 1.75rem;
    }
    
    .cta-heading {
        font-size: 3rem;
    }
    
    .btn-cta-primary,
    .btn-cta-secondary {
        font-size: 1rem;
        padding: 0.875rem 2rem;
    }
}
/* Footer Logo Image */
.footer-logo-image {
    height: 40px; /* Adjust height as needed */
    width: 320px;
    display: block;
    transition: opacity 0.2s ease;
}

.footer-logo-image:hover {
    opacity: 0.8;
}

.footer-logo a {
    display: inline-block;
}
/* Mobile Logo Sizing - Reduce by 30% on mobile */
@media (max-width: 768px) {
    .logo img,
    .footer-logo-image {
        height: 28px !important; /* 30% smaller than 40px */
        width: auto;
    }
}

/* ========================================
   INLINE SEARCH BAR (Expandable)
   ======================================== */
.inline-search-container {
    position: relative;
    display: flex;
    align-items: center;
    height: 40px;
    overflow: hidden;
}

.inline-search-input {
    width: 0;
    opacity: 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #ffffff;
    font-size: 1rem;
    padding: 0.5rem 0;
    outline: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.inline-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
}

/* Search icon button */
.search-icon-btn {
    background: none;
    border: none;
    color: #d1d5db;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.search-icon-btn i {
    width: 1.25rem;
    height: 1.25rem;
    transition: color 0.3s ease;
}

.search-icon-btn:hover i {
    color: #22d3ee;
}

/* EXPANDED STATE */
.inline-search-container.expanded .inline-search-input {
    width: 180px;
    opacity: 1;
    border-bottom-color: #22d3ee;
    padding-right: 0.5rem;
    pointer-events: auto;
    margin-right: 0.5rem;
}

.inline-search-container.expanded .search-icon-btn {
    transform: translateX(-10px);
}

.inline-search-container.expanded .search-icon-btn i {
    color: #22d3ee;
}

/* ========================================
   SEARCH EXPANDED STATE - Fade out nav items
   ======================================== */

/* When search is expanded, fade out all nav links */
.nav-links.search-active > a,
.nav-links.search-active > .spacer,
.nav-links.search-active > .btn-get-started {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Keep the search container visible */
.nav-links.search-active .inline-search-container {
    opacity: 1;
    pointer-events: auto;
}

/* Make search bar wider when nav items are hidden */
.nav-links.search-active .inline-search-container.expanded .inline-search-input {
    width: 320px;
}

/* Smooth transition for nav links when NOT in search mode */
.nav-links > a,
.nav-links > .spacer,
.nav-links > .btn-get-started {
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.2s ease;
}

/* Mobile: Hide inline search, use mobile menu search instead */
@media (max-width: 767px) {
    .inline-search-container {
        display: none;
    }
}