﻿/* ==================== SERVICES PAGE STYLES ==================== */

/* ===== SERVICES HERO ===== */
.services-hero {
    position: relative;
    height: 578px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.services-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}

.services-hero-dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 46, 68, 0.35);
    z-index: 1;
}

.services-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 70%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 50%, rgba(255, 255, 255, 0) 100%);
    z-index: 2;
}

.services-hero .container {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.services-hero-content {
    max-width: 480px;
}

.services-hero-content h1 {
    font-size: 56px;
    font-weight: 700;
    color: #1A2E44;
    margin-bottom: 24px;
}

.services-hero-content p {
    font-size: 18px;
    color: #4A5568;
    line-height: 1.5;
    margin-bottom: 32px;
}

.services-hero-buttons {
    display: flex;
    gap: 16px;
}

.services-hero-buttons .btn {
    width: 200px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* ===== FULL RANGE SECTION ===== */
.full-range {
    background: linear-gradient(to right, #FFC86B 0%, #E47719 100%);
    background-image: url('../images/png/background-tribals.png'), linear-gradient(to right, #FFC86B 0%, #E47719 100%);
    background-size: cover;
    background-position: center;
    padding: 112px 0 112px;
    transform: scaleX(-1);
}

.full-range > * {
    transform: scaleX(-1);
}

.full-range .section-header {
    margin-bottom: 48px;
}

.full-range .section-label {
    color: #fff;
}

.full-range .section-header h2 {
    color: #fff;
}

.full-range .section-header p {
    color: rgba(255, 255, 255, 0.9);
}

/* ===== SERVICE TABS ===== */
.service-tabs-wrapper {
    background: #fff;
    border-radius: 16px 16px 0 0;
    margin-bottom: -1px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.service-tabs {
    display: flex;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.service-tab {
    flex: 1;
    padding: 24px 16px;
    background: #FFF9EF;
    border: none;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 20px;
    font-weight: 500;
    color: #1A2E44;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.4;
    box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    /* Touch-friendly minimum height */
    min-height: 44px;
    -webkit-tap-highlight-color: rgba(255, 154, 47, 0.15);
}

.service-tab-icon {
    width: 81px;
    height: 72px;
    object-fit: contain;
}

.service-tab:last-child {
    border-right: none;
}

.service-tab:hover {
    background: #fff;
    box-shadow: none;
}

.service-tab.active {
    background: #fff;
    color: #1A2E44;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
}

/* Touch active state for mobile */
.service-tab:active {
    background: #fff;
    transform: scale(0.98);
}

/* ===== SERVICE TAB CONTENT ===== */
.service-tab-content {
    background: #fff;
    overflow: hidden;
    border-radius: 0 0 16px 16px;
}

.service-panel {
    display: none;
    padding: 64px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-panel.active {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.service-panel-text {
    flex: 1;
}

.service-panel-text h3 {
    font-size: 32px;
    font-weight: 600;
    color: #1A2E44;
    margin-bottom: 24px;
    line-height: 1.3;
}

.service-panel-text p {
    font-size: 16px;
    color: #1A2E44;
    line-height: 1.5;
    margin-bottom: 20px;
}

.service-panel-text p:last-child {
    margin-bottom: 0;
}

.service-panel-image {
    flex: 0 0 400px;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
}

.service-panel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== SERVICES CTA ===== */
.services-cta {
    background: #FFFFFF;
}

.services-cta .container {
    padding-top: 80px;
    padding-bottom: 80px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.services-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.services-cta-text h2 {
    font-size: 36px;
    font-weight: 600;
    color: #1A2E44;
    margin-bottom: 8px;
}

.services-cta-text p {
    font-size: 16px;
    color: #5A7A9A;
}

.services-cta-buttons {
    display: flex;
    gap: 16px;
}

/* ===== AREAS WE COVER ===== */
.areas-cover {
    background: #FFFFFF;
    padding: 112px 0;
}

.areas-cover-content {
    display: flex;
    gap: 64px;
    align-items: flex-start;
}

.areas-cover-map {
    flex: 1;
    height: 480px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.areas-cover-map iframe {
    width: 100%;
    height: 100%;
}

.areas-cover-text {
    flex: 1;
}

.areas-cover-text h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1A2E44;
    margin-bottom: 24px;
}

.areas-cover-text p {
    font-size: 16px;
    color: #1A2E44;
    line-height: 1.5;
    margin-bottom: 16px;
}

.areas-cover-cta-text {
    margin-top: 24px;
    margin-bottom: 16px !important;
}

.areas-cover-cta-text strong {
    color: #1A2E44;
    font-weight: 700;
    font-size: 18px;
}

/* ===== RESPONSIVE (Services Page) ===== */

/* Tablet Landscape */
@media (max-width: 1200px) {
    .services-hero-content {
        max-width: 420px;
    }

    .service-tabs {
        flex-wrap: wrap;
        border-radius: 16px 16px 0 0;
    }

    .service-tab {
        flex: 0 0 33.333%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        font-size: 16px;
    }

    .service-tab:nth-child(3) {
        border-right: none;
    }

    .service-tab:nth-child(4),
    .service-tab:nth-child(5),
    .service-tab:nth-child(6) {
        border-bottom: none;
    }

    .service-tab-icon {
        width: 60px;
        height: 54px;
    }

    .service-panel-image {
        flex: 0 0 350px;
        height: 300px;
    }

    .areas-cover-content {
        gap: 40px;
    }
}

/* Tablet Portrait */
@media (max-width: 992px) {
    .services-hero-overlay {
        width: 85%;
    }

    .services-hero-content {
        max-width: 380px;
    }

    .services-hero-content h1 {
        font-size: 40px;
        margin-bottom: 16px;
    }

    .services-hero-content p {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .services-hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .services-hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .full-range {
        padding: 80px 0;
    }

    .service-tabs {
        flex-direction: column;
        border-radius: 16px 16px 0 0;
    }

    .service-tab {
        flex: none;
        flex-direction: row;
        justify-content: flex-start;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        padding: 16px 24px;
        text-align: left;
        font-size: 20px;
        gap: 16px;
    }

    .service-tab:last-child {
        border-bottom: none;
    }

    .service-tab-icon {
        width: 40px;
        height: 36px;
    }

    .service-panel.active {
        flex-direction: column;
        padding: 40px 32px;
        gap: 0px;
    }

    .service-panel-image {
        flex: none;
        width: 100%;
        height: 280px;
        order: -1;
        margin-bottom: 24px;
    }

    .service-panel-text h3 {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .service-panel-text p {
        font-size: 15px;
    }

    .areas-cover {
        padding: 60px 0;
    }

    .areas-cover-content {
        flex-direction: column;
        gap: 40px;
    }

    .areas-cover-map {
        flex: none;
        width: 100%;
        height: 300px;
        order: -1;
    }

    .areas-cover-text h2 {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .services-cta .container {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .services-cta-content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .services-cta-text h2 {
        font-size: 30px;
    }

    .services-cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .services-cta-buttons .btn {
        width: 100%;
    }
}

/* Mobile Accordion for Service Tabs */
.service-accordion-mobile {
    display: none;
}

@media (max-width: 768px) {
    /* Show mobile accordion */
    .service-accordion-mobile {
        display: block;
        background: #fff;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    /* Hide desktop tabs and panels */
    .service-tabs-wrapper {
        display: none;
    }
    
    .service-panels-wrapper {
        display: none;
    }
    
    .service-tab-content {
        display: none;
    }
    
    /* Accordion Item */
    .accordion-item {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        background: #fff;
    }
    
    .accordion-item.active {
        background: #FF9A2F;
    }
    
    .accordion-item:first-child .accordion-header {
        border-radius: 16px 16px 0 0;
    }
    
    .accordion-item:last-child {
        border-bottom: none;
    }
    
    .accordion-item:last-child .accordion-header {
        border-radius: 0 0 16px 16px;
    }
    
    .accordion-item:last-child.active .accordion-header {
        border-radius: 0;
    }
    
    /* Accordion Header (Button) */
    .accordion-header {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px;
        background: #FFF9EF;
        border: none;
        cursor: pointer;
        transition: background 0.3s ease;
        text-align: left;
        font-family: inherit;
        -webkit-tap-highlight-color: transparent;
    }
    
    .accordion-header:active {
        background: #FFE5B4;
    }
    
    .accordion-item.active .accordion-header {
        background: #FF9A2F;
    }
    
    .accordion-header-content {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .accordion-icon {
        width: 40px;
        height: 36px;
        object-fit: contain;
    }
    
    .accordion-header span {
        font-size: 16px;
        font-weight: 500;
        color: #1A2E44;
    }
    
    .accordion-item.active .accordion-header span {
        color: #fff;
    }
    
    .accordion-arrow {
        flex-shrink: 0;
        transition: transform 0.3s ease;
        stroke: #1A2E44;
    }
    
    .accordion-item.active .accordion-arrow {
        transform: rotate(180deg);
        stroke: #fff;
    }
    
    /* Accordion Content */
    .accordion-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, opacity 0.3s ease;
        opacity: 0;
        background: #FFFFFF;
    }
    
    .accordion-item.active .accordion-content {
        opacity: 1;
    }
    
    .accordion-image {
        width: 100%;
        height: 300px;
        object-fit: cover;
        display: block;
    }
    
    .accordion-content-inner {
        padding: 20px;
        background: #fff;
    }
    
    .accordion-content-inner h3 {
        font-size: 20px;
        font-weight: 600;
        color: #1A2E44;
        margin-bottom: 16px;
        line-height: 1.3;
    }
    
    .accordion-content-inner p {
        font-size: 14px;
        color: #2C4A6B;
        line-height: 1.6;
        margin-bottom: 12px;
    }
    
    .accordion-content-inner p:last-child {
        margin-bottom: 0;
    }
}

/* Mobile Landscape / Large Mobile */
@media (max-width: 768px) {
    .services-hero-overlay {
        width: 100%;
        background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 60%, rgba(255, 255, 255, 0.4) 100%);
    }

    .services-hero-content {
        max-width: 100%;
    }

    .services-hero-content h1 {
        font-size: 36px;
    }

    .services-hero-content p {
        font-size: 14px;
    }

    .full-range {
        padding: 60px 0;
    }

    .full-range .section-header h2 {
        font-size: 28px;
    }

    .service-tab {
        padding: 14px 20px;
        font-size: 20px;
    }

    .service-tab-icon {
        width: 36px;
        height: 32px;
    }

    .service-panel.active {
        padding: 28px 20px;
        gap: 0px;
    }

    .services-cta .container {
        margin-left: 20px;
        margin-right: 20px;
        padding-left: 0;
        padding-right: 0;
    }

    .service-panel-text h3 {
        font-size: 22px;
    }

    .service-panel-text p {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .service-panel-image {
        height: 220px;
    }

    .areas-cover {
        padding: 50px 0;
    }

    .areas-cover-map {
        height: 260px;
    }

    .areas-cover-text h2 {
        font-size: 28px;
    }

    .areas-cover-text p {
        font-size: 14px;
    }

    .areas-cover-cta-text strong {
        font-size: 16px;
    }

    .services-cta .container {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .services-cta-text h2 {
        font-size: 26px;
    }

    .services-cta-text p {
        font-size: 14px;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .services-hero-content h1 {
        font-size: 32px;
        margin-bottom: 12px;
    }

    .services-hero-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .full-range {
        padding: 50px 0;
    }

    .full-range .section-header {
        margin-bottom: 32px;
    }

    .full-range .section-header h2 {
        font-size: 26px;
    }

    .service-tabs-wrapper {
        border-radius: 12px 12px 0 0;
    }

    .service-tabs {
        border-radius: 12px 12px 0 0;
    }

    .service-tab {
        padding: 12px 16px;
        font-size: 20px;
        gap: 12px;
    }

    .service-tab-icon {
        width: 32px;
        height: 28px;
    }

    .service-tab-content {
        border-radius: 0 0 12px 12px;
    }

    .service-panel.active {
        padding: 24px 16px;
        gap: 0px;
    }

    .services-cta .container {
        margin-left: 16px;
        margin-right: 16px;
        padding-left: 0;
        padding-right: 0;
    }

    .service-panel-text h3 {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .service-panel-text p {
        font-size: 14px;
        margin-bottom: 14px;
    }

    .service-panel-image {
        height: 180px;
        border-radius: 8px;
    }

    .areas-cover {
        padding: 40px 0;
    }

    .areas-cover-content {
        gap: 32px;
    }

    .areas-cover-map {
        height: 220px;
        border-radius: 8px;
    }

    .areas-cover-text h2 {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .areas-cover-text p {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .areas-cover-cta-text {
        margin-top: 20px;
    }

    .areas-cover-cta-text strong {
        font-size: 15px;
    }

    .services-cta .container {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .services-cta-text h2 {
        font-size: 24px;
    }

    .services-cta-text p {
        font-size: 14px;
    }
}

/* Small Mobile */
@media (max-width: 360px) {
    .services-hero-content h1 {
        font-size: 28px;
    }

    .services-hero-content p {
        font-size: 13px;
    }

    .full-range .section-header h2 {
        font-size: 24px;
    }

    .service-tab {
        padding: 10px 14px;
        font-size: 20px;
    }

    .service-tab-icon {
        width: 28px;
        height: 24px;
    }

    .service-panel.active {
        padding: 20px 14px;
        gap: 0px;
    }

    .services-cta .container {
        margin-left: 14px;
        margin-right: 14px;
    }

    .service-panel-text h3 {
        font-size: 18px;
    }

    .service-panel-text p {
        font-size: 13px;
    }

    .service-panel-image {
        height: 160px;
    }

    .areas-cover-text h2 {
        font-size: 22px;
    }

    .services-cta-text h2 {
        font-size: 22px;
    }
}

