/* services.css - GeoNova Concepts Services Page Styles */
/* Image-Rich Layout Design */

/* =========================================
   GLOBAL FIXES - PREVENT HORIZONTAL SCROLL
   ========================================= */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

* {
    box-sizing: border-box;
}

/* =========================================
   SERVICES HERO WITH IMAGE
   ========================================= */
.services-hero {
    position: relative;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100%;
}

.hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(17, 24, 39, 0.92) 0%,
        rgba(17, 24, 39, 0.7) 40%,
        rgba(39, 169, 52, 0.2) 100%
    );
}

.services-hero .container {
    position: relative;
    z-index: 1;
    padding-top: 120px;
    padding-bottom: 80px;
    max-width: 100%;
    overflow: hidden;
}

.hero-content-wrapper {
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    background: rgba(39, 169, 52, 0.2);
    color: var(--secondary);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border: 1px solid rgba(39, 169, 52, 0.2);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 4rem;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-title span {
    color: var(--secondary);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.hero-divider {
    width: 60px;
    height: 3px;
    background: var(--secondary);
    margin-bottom: 1.5rem;
    border-radius: 2px;
}

.hero-tagline {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.hero-tagline i {
    color: var(--secondary);
    margin-right: 10px;
}

.hero-tagline .fa-check-circle {
    color: var(--secondary);
}

.services-hero .breadcrumb {
    background: transparent;
    padding: 0;
}

.services-hero .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.services-hero .breadcrumb-item a:hover {
    color: var(--secondary);
}

.services-hero .breadcrumb-item.active {
    color: var(--secondary);
}

.services-hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.3);
}

/* =========================================
   SERVICES OVERVIEW
   ========================================= */
.services-overview {
    padding: 80px 0 0;
    background: var(--light);
    overflow: hidden;
    width: 100%;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.section-badge {
    display: inline-block;
    background: rgba(39, 169, 52, 0.1);
    color: var(--secondary);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.8rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.section-title span {
    color: var(--secondary);
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--secondary);
    margin: 0.75rem auto 1rem;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text);
    line-height: 1.7;
}

/* =========================================
   SERVICE SECTION (Full Width Layout)
   ========================================= */
.service-section {
    padding: 0;
    background: var(--white);
    overflow: hidden;
    width: 100%;
}

.service-section:nth-child(even) {
    background: var(--light);
}

/* Fix container-fluid overflow */
.service-section .container-fluid {
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
    width: 100%;
}

/* Fix row overflow */
.service-section .row {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}

/* Service Image Wrapper */
.service-image-wrapper {
    position: relative;
    height: 100%;
    min-height: 500px;
    overflow: hidden;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.service-image-wrapper:hover .service-image {
    transform: scale(1.03);
}

.service-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 2.5rem;
    background: linear-gradient(0deg, 
        rgba(17, 24, 39, 0.85) 0%,
        rgba(17, 24, 39, 0) 100%
    );
}

.image-content {
    color: white;
}

.image-number {
    display: block;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 3rem;
    color: var(--secondary);
    opacity: 0.5;
    margin-bottom: 0.5rem;
}

.image-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}

.image-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Service Content Wrapper */
.service-content-wrapper {
    padding: 4rem 3rem;
    height: 100%;
    display: flex;
    align-items: center;
}

.service-content {
    width: 100%;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.service-icon {
    width: 56px;
    height: 56px;
    background: rgba(39, 169, 52, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--secondary);
    flex-shrink: 0;
}

.service-category-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--dark);
    margin: 0;
}

.service-category-sub {
    font-size: 0.9rem;
    color: var(--text);
    display: block;
}

/* Service Grid */
.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Service Item */
.service-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border-color: rgba(39, 169, 52, 0.1);
}

.service-section:nth-child(even) .service-item {
    background: var(--white);
}

.service-item-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: rgba(39, 169, 52, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--secondary);
    flex-shrink: 0;
}

.service-item-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.service-item-desc {
    font-size: 0.85rem;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.service-item-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-item-features li {
    font-size: 0.8rem;
    color: var(--text);
    padding: 0.1rem 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.service-item-features li i {
    font-size: 0.65rem;
    color: var(--secondary);
    flex-shrink: 0;
}

/* =========================================
   CLIMATE RISK PROFILE (Special Section)
   ========================================= */
.service-climate {
    padding: 80px 0;
    background: var(--light);
    overflow: hidden;
    width: 100%;
}

.service-climate .container {
    max-width: 100%;
    overflow: hidden;
}

.climate-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.climate-icon-wrapper {
    width: 56px;
    height: 56px;
    background: rgba(249, 178, 51, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #f9b233;
}

.climate-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.6rem;
    color: #f9b233;
    margin: 0;
}

.climate-sub {
    font-size: 0.9rem;
    color: var(--text);
    display: block;
}

.climate-desc {
    color: var(--text);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    padding-left: 4.5rem;
    border-left: 3px solid #f9b233;
    padding-left: 1.5rem;
}

.climate-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.climate-item {
    background: var(--white);
    padding: 1.75rem;
    border-radius: 12px;
    border: 1px solid rgba(249, 178, 51, 0.1);
    transition: all 0.3s ease;
}

.climate-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border-color: rgba(249, 178, 51, 0.2);
}

.climate-item-icon {
    width: 44px;
    height: 44px;
    background: rgba(249, 178, 51, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #f9b233;
    margin-bottom: 1rem;
}

.climate-item-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.climate-item-desc {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.climate-item-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.climate-item-features li {
    font-size: 0.85rem;
    color: var(--text);
    padding: 0.15rem 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.climate-item-features li i {
    font-size: 0.65rem;
    color: #f9b233;
    flex-shrink: 0;
}

/* =========================================
   PROCESS SECTION
   ========================================= */
.process-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--dark) 0%, #1a2a3a 100%);
    overflow: hidden;
    width: 100%;
}

.process-section .container {
    max-width: 100%;
    overflow: hidden;
}

.process-flow {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    margin-top: 3rem;
    position: relative;
}

.process-step-wrapper {
    flex: 1;
    max-width: 280px;
    display: flex;
    align-items: stretch;
}

.process-step {
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    flex: 1;
}

.process-step:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(39, 169, 52, 0.2);
}

.process-number {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.5rem;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(39, 169, 52, 0.3);
}

.process-icon {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: 0.5rem;
}

.process-step-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: white;
    margin-bottom: 0.3rem;
}

.process-step-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin: 0;
}

.process-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    color: rgba(255, 255, 255, 0.15);
    font-size: 1.5rem;
}

/* =========================================
   CTA SECTION
   ========================================= */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f1a2e 0%, #1a2a3a 100%);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.cta-section .container {
    max-width: 100%;
    overflow: hidden;
}

.cta-badge {
    display: inline-block;
    background: rgba(39, 169, 52, 0.15);
    color: var(--secondary);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(39, 169, 52, 0.15);
}

.cta-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

.cta-title span {
    color: var(--secondary);
}

.cta-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    background: var(--secondary);
    color: white;
    font-weight: 600;
    padding: 14px 36px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(39, 169, 52, 0.3);
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid var(--secondary);
}

.btn-cta-primary:hover {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(39, 169, 52, 0.4);
    color: white;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

/* Tablets & Below */
@media (max-width: 992px) {
    /* Hero */
    .hero-title {
        font-size: 3rem;
    }
    
    /* Service Sections */
    .service-image-wrapper {
        min-height: 400px;
    }
    
    .service-content-wrapper {
        padding: 3rem 2rem;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Fix service row ordering */
    .service-section .row .order-lg-1 {
        order: 0 !important;
    }
    
    .service-section .row .order-lg-2 {
        order: 1 !important;
    }
    
    /* Climate Grid */
    .climate-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Process Flow */
    .process-flow {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .process-step-wrapper {
        max-width: 100%;
        width: 100%;
    }
    
    .process-arrow {
        transform: rotate(90deg);
        padding: 0.5rem 0;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) {
    /* Hero */
    .hero-title {
        font-size: 2.4rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .services-hero {
        min-height: 80vh;
    }
    
    .services-hero .container {
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    /* Service Sections */
    .service-image-wrapper {
        min-height: 300px;
    }
    
    .service-content-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .service-header {
        margin-bottom: 1.5rem;
    }
    
    .service-category-title {
        font-size: 1.3rem;
    }
    
    .service-item {
        padding: 1rem;
    }
    
    .image-title {
        font-size: 1.4rem;
    }
    
    .image-number {
        font-size: 2.2rem;
    }
    
    /* Climate Section */
    .service-climate {
        padding: 50px 0;
    }
    
    .climate-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .climate-item {
        padding: 1.25rem;
    }
    
    .climate-desc {
        padding-left: 0;
        border-left: none;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 2rem;
    }
    
    /* CTA */
    .cta-title {
        font-size: 1.8rem;
    }
    
    .process-section {
        padding: 50px 0;
    }
}

/* Mobile Portrait */
@media (max-width: 576px) {
    /* Hero */
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-tagline {
        font-size: 0.9rem;
    }
    
    .services-hero {
        min-height: 70vh;
    }
    
    .hero-content-wrapper {
        padding: 0 10px;
    }
    
    /* Service Sections */
    .service-image-wrapper {
        min-height: 220px;
    }
    
    .service-content-wrapper {
        padding: 1.5rem 1rem;
    }
    
    .service-header {
        flex-direction: column;
        text-align: center;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .service-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 1rem;
    }
    
    .service-item-features {
        text-align: left;
        width: 100%;
    }
    
    .service-item-features li {
        justify-content: center;
    }
    
    .image-content {
        text-align: center;
    }
    
    .image-title {
        font-size: 1.2rem;
    }
    
    .image-desc {
        font-size: 0.85rem;
    }
    
    .image-number {
        font-size: 1.8rem;
    }
    
    .service-image-overlay {
        padding: 1.5rem;
    }
    
    /* Climate Grid */
    .climate-grid {
        grid-template-columns: 1fr;
    }
    
    .climate-item {
        text-align: center;
        padding: 1.25rem;
    }
    
    .climate-item-icon {
        margin: 0 auto 1rem;
    }
    
    .climate-item-features li {
        justify-content: center;
    }
    
    .climate-header {
        flex-direction: column;
        text-align: center;
    }
    
    .climate-desc {
        text-align: center;
        padding-left: 0;
        border-left: none;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
        padding: 0 15px;
    }
    
    /* CTA */
    .cta-title {
        font-size: 1.4rem;
    }
    
    .cta-text {
        font-size: 0.95rem;
        padding: 0 15px;
    }
    
    .btn-cta-primary {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
        max-width: 280px;
    }
    
    .process-step {
        padding: 1.5rem 1rem;
    }
    
    .services-overview {
        padding: 50px 0 0;
    }
    
    .services-overview .section-subtitle {
        padding: 0 15px;
    }
    
    /* Fix badge on mobile */
    .section-badge {
        font-size: 0.75rem;
        padding: 0.3rem 1rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.3rem 1rem;
    }
    
    /* Fix service icon on mobile */
    .service-icon {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
    
    .service-item-icon {
        width: 34px;
        height: 34px;
        min-width: 34px;
        font-size: 0.9rem;
    }
}

/* Extra Small Phones */
@media (max-width: 400px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .service-image-wrapper {
        min-height: 180px;
    }
    
    .service-content-wrapper {
        padding: 1rem 0.75rem;
    }
    
    .service-item {
        padding: 0.75rem;
    }
    
    .service-item-title {
        font-size: 0.9rem;
    }
    
    .service-item-desc {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .cta-title {
        font-size: 1.2rem;
    }
    
    .climate-title {
        font-size: 1.2rem;
    }
    
    .service-category-title {
        font-size: 1.1rem;
    }
}

/* =========================================
   NAVBAR OVERRIDE FIXES
   ========================================= */

/* Ensure navbar container doesn't overflow */
.navbar .container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    overflow: visible;
}

/* Fix navbar toggle button positioning */
.navbar-toggler {
    position: relative;
    z-index: 1050;
    margin-left: auto;
    flex-shrink: 0;
}

/* Ensure navbar collapse doesn't push content */
.navbar-collapse {
    max-width: 100%;
}

/* Fix navbar on mobile */
@media (max-width: 992px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background: white;
        padding: 80px 20px 30px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        z-index: 1040;
        overflow-y: auto;
        max-height: 100vh;
    }
    
    .navbar-collapse.show {
        right: 0;
    }
    
    /* Overlay when menu is open */
    .navbar-collapse.show::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: -1;
    }
    
    .navbar-nav {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-link {
        padding: 12px 0;
        display: block;
        font-size: 1rem;
    }
    
    /* Fix call box on mobile */
    .navbar-call-box {
        flex-direction: row !important;
        justify-content: center;
        flex-wrap: wrap;
        padding: 10px 0;
        gap: 8px !important;
    }
    
    .navbar-call-box .call-link {
        font-size: 0.85rem;
        padding: 4px 10px;
    }
}

/* Fix for very small screens */
@media (max-width: 480px) {
    .navbar .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .navbar-toggler {
        padding: 4px;
        width: 32px;
        height: 32px;
    }
    
    .navbar-collapse {
        width: 260px;
        right: -260px;
        padding: 70px 16px 20px;
    }
    
    .navbar-collapse.show {
        right: 0;
    }
}
