/* ===== services.css for EFG Afro Market Services Page ===== */

/* ===== MOBILE-FIRST RESPONSIVE BASE ===== */
* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* ===== SERVICES HERO SECTION ===== */
.services-hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 0 100px;
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.9) 100%);
    overflow: hidden;
    width: 100%;
}

.services-hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.services-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(5, 84, 64, 0.1);
    border: 1px solid rgba(5, 84, 64, 0.2);
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease-out;
    backdrop-filter: blur(10px);
}

.services-hero-badge i {
    animation: spin 3s linear infinite;
    color: var(--accent-orange);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.services-hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s both;
    color: var(--text-primary);
    text-align: center;
}

.services-hero-description {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.7;
    animation: fadeInUp 1s ease-out 0.4s both;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.services-hero-stats {
    display: flex;
    gap: 3rem;
    animation: fadeInUp 1s ease-out 0.6s both;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== SERVICES HERO VISUAL ELEMENTS ===== */
.services-hero-visual-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-service {
    position: absolute;
    width: 100px;
    height: 100px;
    background: var(--primary-green);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 15px 35px rgba(5, 84, 64, 0.2);
    animation: floatService 6s ease-in-out infinite;
}

.floating-service-1 {
    top: 20%;
    left: 5%;
    animation-delay: 0s;
    background: var(--primary-green);
}

.floating-service-2 {
    top: 25%;
    right: 8%;
    animation-delay: 1.5s;
    background: var(--accent-orange);
}

.floating-service-3 {
    bottom: 25%;
    left: 8%;
    animation-delay: 3s;
    background: var(--brown-accent);
}

.floating-service-4 {
    bottom: 20%;
    right: 5%;
    animation-delay: 4.5s;
    background: var(--primary-green);
}

@keyframes floatService {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(-10px) rotate(-3deg);
    }
    75% {
        transform: translateY(-15px) rotate(2deg);
    }
}

/* ===== MAIN SERVICES SECTION ===== */
.main-services-section {
    padding: 100px 0;
    background: var(--background-white);
    position: relative;
    width: 100%;
    overflow: hidden;
}

.main-services-section .container {
    width: 100%;
    max-width: 1200px;
    padding-left: 15px;
    padding-right: 15px;
    margin: 0 auto;
}

/* ===== MOBILE SERVICES CONTAINER FIX ===== */
.mobile-services-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    max-width: 100%;
    padding: 0 10px;
}

.mobile-additional-services-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    max-width: 100%;
    padding: 0 10px;
}

.main-service-card {
    background: var(--background-white);
    border: 2px solid rgba(5, 84, 64, 0.1);
    border-radius: 25px;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--card-shadow);
    height: 100%;
    position: relative;
    max-height: 580px;
    width: 100%;
}

.main-service-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--primary-green);
    box-shadow: var(--card-shadow-hover);
}

.main-service-card-mobile {
    background: var(--background-white);
    border: 2px solid rgba(5, 84, 64, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--card-shadow);
    height: 100%;
    position: relative;
    max-height: 450px;
    width: calc(100% - 20px);
    max-width: 350px;
    min-width: 280px;
    margin: 0 auto;
}

.main-service-card-mobile:hover {
    transform: translateY(-10px) scale(1.01);
    border-color: var(--primary-green);
    box-shadow: var(--card-shadow-hover);
}

.service-image {
    position: relative;
    height: 160px;
    overflow: hidden;
    width: 100%;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.main-service-card:hover .service-image img,
.main-service-card-mobile:hover .service-image img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(5, 84, 64, 0.8), rgba(232, 136, 36, 0.8));
    opacity: 0;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-service-card:hover .service-overlay,
.main-service-card-mobile:hover .service-overlay {
    opacity: 1;
}

.service-icon-large {
    font-size: 4rem;
    color: white;
    animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.service-content {
    padding: 1.2rem;
    width: 100%;
}

.service-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.service-content p {
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    line-height: 1.5;
    font-size: 0.9rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-bottom: 1.2rem;
    width: 100%;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    padding: 0.2rem 0;
    border-bottom: 1px solid rgba(5, 84, 64, 0.1);
    transition: var(--transition-smooth);
    width: 100%;
}

.service-features li:hover {
    color: var(--primary-green);
    transform: translateX(5px);
}

.service-features li i {
    color: var(--primary-green);
    font-size: 0.8rem;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 84, 64, 0.1);
    border-radius: 50%;
    padding: 4px;
    flex-shrink: 0;
}

.service-cta-btn {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 6px 15px rgba(5, 84, 64, 0.2);
    width: 100%;
    justify-content: center;
    font-size: 0.85rem;
}

.service-cta-btn:hover {
    background: var(--accent-orange);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 25px rgba(232, 136, 36, 0.3);
}

/* ===== OWL CAROUSEL STYLES - MOBILE FIX ===== */
.owl-carousel {
    width: 100% !important;
    overflow: hidden !important;
    max-width: 100% !important;
}

.owl-carousel .owl-stage-outer {
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
}

.owl-carousel .owl-stage {
    display: flex !important;
    align-items: stretch !important;
    max-width: 100% !important;
}

.owl-carousel .owl-item {
    float: none !important;
    display: flex !important;
    align-items: stretch !important;
    justify-content: center !important;
    padding: 0 10px !important;
    min-height: auto !important;
    box-sizing: border-box !important;
}

.main-services-carousel .owl-item {
    padding: 0 15px !important;
}

.additional-services-carousel .owl-item {
    padding: 0 15px !important;
}

.owl-carousel .owl-nav {
    margin-top: 20px;
    text-align: center;
    width: 100%;
}

.owl-carousel .owl-nav button {
    background: var(--primary-green) !important;
    color: white !important;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin: 0 10px;
    font-size: 20px;
    border: none;
    transition: var(--transition-smooth);
}

.owl-carousel .owl-nav button:hover {
    background: var(--accent-orange) !important;
    transform: scale(1.1);
}

.owl-carousel .owl-dots {
    text-align: center;
    margin-top: 20px;
    width: 100%;
}

.owl-carousel .owl-dots .owl-dot {
    display: inline-block;
    margin: 0 5px;
}

.owl-carousel .owl-dots .owl-dot span {
    width: 12px;
    height: 12px;
    background: rgba(5, 84, 64, 0.3);
    border-radius: 50%;
    display: block;
    transition: var(--transition-smooth);
}

.owl-carousel .owl-dots .owl-dot.active span {
    background: var(--primary-green);
}

/* ===== ADDITIONAL SERVICES SECTION ===== */
.additional-services-section {
    padding: 100px 0;
    background: var(--background-light);
    position: relative;
    width: 100%;
    overflow: hidden;
}

.additional-services-section .container {
    width: 100%;
    max-width: 1200px;
    padding-left: 15px;
    padding-right: 15px;
    margin: 0 auto;
}

.additional-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.additional-service-card {
    background: var(--background-white);
    border: 2px solid rgba(5, 84, 64, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    height: auto;
    min-height: 280px;
    width: calc(100% - 20px);
    max-width: 350px;
    min-width: 250px;
}

.additional-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-orange));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.additional-service-card:hover::before {
    transform: scaleX(1);
}

.additional-service-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-green);
    box-shadow: var(--card-shadow-hover);
}

.additional-service-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-green);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.8rem;
    color: white;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 20px rgba(5, 84, 64, 0.2);
}

.additional-service-card:hover .additional-service-icon {
    transform: rotate(5deg) scale(1.1);
    background: var(--accent-orange);
    box-shadow: 0 12px 25px rgba(232, 136, 36, 0.3);
}

.additional-service-card h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.additional-service-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
    width: 100%;
}

.additional-service-card li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
    line-height: 1.4;
}

.additional-service-card li::before {
    content: "•";
    color: var(--primary-green);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.additional-service-card:hover li {
    color: var(--text-primary);
}

/* ===== SERVICE PROCESS SECTION ===== */
.service-process-section {
    padding: 100px 0;
    background: var(--background-white);
    position: relative;
    width: 100%;
    overflow: hidden;
}

.service-process-section .container {
    width: 100%;
    max-width: 1200px;
    padding-left: 15px;
    padding-right: 15px;
    margin: 0 auto;
}

.process-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-green), var(--accent-orange));
    transform: translateX(-50%);
    border-radius: 2px;
}

.process-step {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
    width: 100%;
}

.process-step:nth-child(even) {
    flex-direction: row-reverse;
}

.process-step:nth-child(even) .process-content {
    text-align: right;
    padding-right: 3rem;
    padding-left: 0;
}

.process-step:nth-child(odd) .process-content {
    text-align: left;
    padding-left: 3rem;
    padding-right: 0;
}

.process-number {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: var(--primary-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 8px 20px rgba(5, 84, 64, 0.3);
    z-index: 2;
}

.process-content {
    flex: 1;
    background: var(--background-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    border: 2px solid rgba(5, 84, 64, 0.1);
    transition: var(--transition-smooth);
    width: 100%;
    max-width: 400px;
}

.process-step:hover .process-content {
    border-color: var(--primary-green);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-5px);
}

.process-content h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.process-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.process-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: rgba(5, 84, 64, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-green);
    margin: 0 2rem;
    transition: var(--transition-smooth);
}

.process-step:hover .process-icon {
    background: var(--primary-green);
    color: white;
    transform: scale(1.1);
}

/* ===== RESPONSIVE DESIGN - MOBILE FIRST ===== */

/* Mobile Portrait (320px to 575px) */
@media (max-width: 575.98px) {
    .services-hero-section {
        padding: 100px 0 60px;
        min-height: 80vh;
    }
    
    .services-hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .floating-service {
        display: none;
    }
    
    .mobile-services-container,
    .mobile-additional-services-container {
        padding: 0 5px;
    }
    
    .main-service-card-mobile {
        min-width: 260px;
        max-width: 300px;
        max-height: 420px;
    }
    
    .additional-service-card {
        min-width: 240px;
        max-width: 300px;
        padding: 1.2rem;
        min-height: 260px;
    }
    
    .owl-carousel .owl-item {
        padding: 0 8px !important;
    }
    
    .service-content {
        padding: 1rem;
    }
    
    .service-content h3 {
        font-size: 1.1rem;
    }
    
    .service-content p {
        font-size: 0.85rem;
    }
    
    .service-features li {
        font-size: 0.75rem;
    }
    
    .additional-service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .additional-service-card h4 {
        font-size: 1.1rem;
    }
    
    .additional-service-card li {
        font-size: 0.85rem;
    }
    
    /* Process Timeline Mobile */
    .process-timeline::before {
        left: 30px;
    }
    
    .process-step {
        flex-direction: row !important;
        padding-left: 80px;
        margin-bottom: 3rem;
    }
    
    .process-number {
        left: 30px;
        transform: translateX(-50%);
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .process-step:nth-child(even) .process-content,
    .process-step:nth-child(odd) .process-content {
        text-align: left;
        padding: 0.8rem;
        max-width: 200px;
    }
    
    .process-content h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .process-content p {
        font-size: 0.8rem;
        display: none; /* Hide descriptions on very small screens */
    }
    
    .process-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        margin-left: 1rem;
        margin-right: 0;
    }
}

/* Mobile Landscape (576px to 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .services-hero-section {
        padding: 110px 0 70px;
    }
    
    .floating-service {
        display: none;
    }
    
    .mobile-services-container,
    .mobile-additional-services-container {
        padding: 0 10px;
    }
    
    .main-service-card-mobile {
        min-width: 280px;
        max-width: 350px;
        max-height: 440px;
    }
    
    .additional-service-card {
        min-width: 260px;
        max-width: 350px;
    }
    
    .owl-carousel .owl-item {
        padding: 0 12px !important;
    }
    
    .process-timeline::before {
        left: 30px;
    }
    
    .process-step {
        flex-direction: row !important;
        padding-left: 80px;
    }
    
    .process-number {
        left: 30px;
        transform: translateX(-50%);
    }
    
    .process-step:nth-child(even) .process-content,
    .process-step:nth-child(odd) .process-content {
        text-align: left;
        padding: 1rem;
        max-width: 250px;
    }
    
    .process-content p {
        display: block;
        font-size: 0.85rem;
    }
    
    .process-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin-left: 1.5rem;
        margin-right: 0;
    }
}

/* Tablet (768px to 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .services-hero-section {
        padding: 120px 0 80px;
    }
    
    .floating-service {
        display: none;
    }
    
    .additional-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .process-timeline::before {
        left: 30px;
    }
    
    .process-step {
        flex-direction: row !important;
        padding-left: 80px;
    }
    
    .process-number {
        left: 30px;
        transform: translateX(-50%);
    }
    
    .process-step:nth-child(even) .process-content,
    .process-step:nth-child(odd) .process-content {
        text-align: left;
        padding: 1.5rem;
        max-width: 300px;
    }
    
    .process-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-left: 2rem;
        margin-right: 0;
    }
}

/* Desktop (992px and up) */
@media (min-width: 992px) {
    .floating-service {
        display: flex;
    }
    
    .additional-services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .process-timeline::before {
        left: 50%;
    }
    
    .process-step {
        margin-bottom: 4rem;
    }
    
    .process-step:nth-child(even) {
        flex-direction: row-reverse;
    }
    
    .process-step:nth-child(even) .process-content {
        text-align: right;
        padding-right: 3rem;
        padding-left: 0;
        max-width: none;
    }
    
    .process-step:nth-child(odd) .process-content {
        text-align: left;
        padding-left: 3rem;
        padding-right: 0;
        max-width: none;
    }
    
    .process-number {
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
    
    .process-content {
        padding: 2rem;
        max-width: none;
    }
    
    .process-content p {
        display: block;
        font-size: 0.95rem;
    }
    
    .process-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
        margin: 0 2rem;
    }
}

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .additional-services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .floating-service {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes serviceSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.main-service-card,
.main-service-card-mobile {
    animation: serviceSlideIn 0.6s ease-out;
}

.additional-service-card {
    animation: serviceSlideIn 0.6s ease-out;
}

/* ===== LOADING STATES ===== */
.service-loading {
    opacity: 0.6;
    pointer-events: none;
    filter: blur(1px);
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .floating-service {
        animation: none;
    }
    
    .services-hero-badge i {
        animation: none;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    .main-service-card,
    .main-service-card-mobile,
    .additional-service-card,
    .process-content {
        border-width: 3px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .floating-service,
    .services-hero-visual-elements {
        display: none;
    }
    
    .owl-carousel .owl-nav,
    .owl-carousel .owl-dots {
        display: none;
    }
}