/* ==============================================================================
   CONSULTANCY PAGE STYLES
   ============================================================================== */

/* Hero */
.consult-hero {
    position: relative;
    background: linear-gradient(135deg, var(--fosseway-navy) 0%, #001428 100%);
    min-height: 500px;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.consult-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 34, 68, 0.9) 0%, rgba(0, 26, 51, 0.75) 100%);
}

.consult-hero .container {
    position: relative;
    z-index: 1;
}

.consult-hero-content {
    max-width: 800px;
    padding: var(--spacing-xl) 0;
    text-align: center;
    margin: 0 auto;
}

.consult-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: var(--spacing-sm);
    color: white;
}

.consult-hero h1 span {
    color: var(--fosseway-green);
}

.consult-hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.consult-hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.consult-hero-actions .btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: none;
    letter-spacing: 0.01em;
}

.consult-hero-actions .btn-primary {
    background: linear-gradient(135deg, var(--fosseway-green) 0%, #5aa523 100%);
    border: none;
    color: #fff;
    box-shadow: 0 4px 15px rgba(105, 190, 40, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.consult-hero-actions .btn-primary:hover {
    background: linear-gradient(135deg, #7acc3a 0%, var(--fosseway-green) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(105, 190, 40, 0.5);
}

.consult-hero-actions .btn-outline-light {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    backdrop-filter: blur(10px);
}

.consult-hero-actions .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

/* ==============================================================================
   SERVICE TABS SECTION
   ============================================================================== */

.consult-services {
    padding: var(--spacing-xl) 0;
    background-color: white;
    scroll-margin-top: 100px;
}

.consult-services-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.consult-services-header h2 {
    color: var(--fosseway-navy);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.consult-services-header p {
    color: var(--fosseway-grey);
    font-size: 1.2rem;
}

/* Tab Buttons */
.consult-tabs {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto var(--spacing-xl);
}

.consult-tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    flex: 0 1 400px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.consult-tab-btn:hover {
    border-color: var(--fosseway-green);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.consult-tab-btn.active {
    border-color: var(--fosseway-green);
    background: linear-gradient(135deg, rgba(105, 190, 40, 0.08) 0%, rgba(105, 190, 40, 0.03) 100%);
    box-shadow: 0 0 0 4px rgba(105, 190, 40, 0.12),
        0 8px 25px rgba(105, 190, 40, 0.15);
}

.consult-tab-text {
    text-align: center;
}

.consult-tab-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--fosseway-navy);
    margin-bottom: 0.35rem;
}

.consult-tab-text p {
    font-size: 0.92rem;
    color: var(--fosseway-grey);
    margin: 0;
    line-height: 1.5;
}

/* Tab Content */
.consult-tab-content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.consult-tab-content {
    display: none;
}

.consult-tab-content.active {
    display: block;
    animation: consultFadeIn 0.35s ease;
}

@keyframes consultFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Content Layout */
.consult-content-layout {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

/* Intro Card */
.consult-intro-card {
    background: var(--fosseway-navy);
    border-radius: 16px;
    padding: 2.5rem 3rem;
    color: white;
    text-align: center;
}

.consult-intro-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.consult-intro-card p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.consult-intro-card p strong {
    color: white;
}

/* Detail Sections */
.consult-detail-section {
    padding: 0.5rem 0;
}

.consult-detail-section h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--fosseway-navy);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.consult-detail-section h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--fosseway-green);
    border-radius: 2px;
    margin-top: 0.4rem;
}

.consult-detail-section p {
    color: var(--fosseway-grey);
    font-size: 1.02rem;
    line-height: 1.7;
    margin: 0;
}

.consult-detail-section p em {
    color: var(--fosseway-navy);
    font-weight: 600;
    font-style: italic;
}

/* Benefits Grid */
.consult-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.consult-benefit-card {
    background: white;
    border-top: 3px solid var(--fosseway-green);
    border-radius: 12px;
    padding: 2rem 1.75rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.consult-benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 16px 40px rgba(0, 0, 0, 0.05);
}

.consult-benefit-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--fosseway-navy);
    margin-bottom: 0.75rem;
}

.consult-benefit-card p {
    font-size: 0.95rem;
    color: var(--fosseway-grey);
    line-height: 1.65;
    margin: 0;
}

/* ==============================================================================
   WHY CHOOSE US SECTION
   ============================================================================== */

.consult-why {
    padding: var(--spacing-lg) 0 var(--spacing-xl) 0;
    background-color: #ffffff;
}

.consult-why-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.consult-why-header h2 {
    color: var(--fosseway-navy);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.consult-why-header p {
    color: var(--fosseway-grey);
    font-size: 1.15rem;
}

.consult-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.consult-why-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e5e7eb;
    border-top: 3px solid var(--fosseway-green);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.consult-why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.06);
}

.why-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--fosseway-green) 0%, #5aa824 100%);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 1.25rem;
}

.consult-why-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--fosseway-navy);
    margin-bottom: 0.5rem;
}

.consult-why-card p {
    font-size: 0.95rem;
    color: var(--fosseway-grey);
    line-height: 1.6;
    margin: 0;
}

/* ==============================================================================
   RESPONSIVE
   ============================================================================== */

@media (max-width: 768px) {
    .consult-hero h1 {
        font-size: 2rem;
    }

    .consult-hero-subtitle {
        font-size: 1.1rem;
    }

    .consult-hero-content {
        padding: var(--spacing-lg) 0;
    }

    .consult-services {
        padding: var(--spacing-lg) 0;
    }

    .consult-services-header h2,
    .consult-why-header h2 {
        font-size: 1.75rem;
    }

    /* Tabs stack vertically */
    .consult-tabs {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: var(--spacing-lg);
    }

    .consult-tab-btn {
        flex: 1;
        padding: 1.25rem;
    }

    .consult-tab-text h3 {
        font-size: 1.1rem;
    }

    .consult-tab-text p {
        font-size: 0.85rem;
    }

    /* Intro card stacks */
    .consult-intro-card {
        flex-direction: column;
        padding: 1.75rem;
    }

    .consult-intro-card h3 {
        font-size: 1.25rem;
    }

    .consult-intro-card p {
        font-size: 0.95rem;
    }

    /* Detail sections */
    .consult-detail-section h3 {
        font-size: 1.25rem;
    }

    .consult-detail-section p {
        font-size: 0.95rem;
    }

    /* Benefits grid to single column */
    .consult-benefits-grid {
        grid-template-columns: 1fr;
    }

    /* Why grid to single column */
    .consult-why-grid {
        grid-template-columns: 1fr;
    }

    .consult-why {
        padding: var(--spacing-lg) 0;
    }

    .consult-content-layout {
        gap: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .consult-hero h1 {
        font-size: 1.75rem;
    }

    .consult-intro-card {
        padding: 1.25rem;
    }

    .consult-benefit-card {
        padding: 1.25rem;
    }
}

/* ==============================================================================
   CTA SECTION (matches homepage pattern)
   ============================================================================== */
.home-cta {
    padding: 3rem 0;
    background: #ffffff;
}

.cta-card {
    background: linear-gradient(135deg, var(--fosseway-navy) 0%, #001428 100%);
    border-radius: 24px;
    padding: 3.5rem 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(12, 166, 120, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    flex: 1;
}

.cta-card h2 {
    color: white;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.cta-card p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    max-width: 450px;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--fosseway-green);
    color: white;
    padding: 1.1rem 2rem;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.btn-cta-primary:hover {
    background: #0bb578;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(12, 166, 120, 0.35);
}

/* Centered CTA Card Variant */
.cta-card-centered {
    flex-direction: column;
    text-align: center;
    align-items: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem;
}

.cta-card-centered .cta-content {
    max-width: 600px;
}

.cta-card-centered .cta-card p {
    max-width: 100%;
}

.cta-actions-row {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
}

.btn.btn-cta-secondary.btn-cta-secondary-inline {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.5rem !important;
    color: white !important;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 1.1rem 2rem !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn.btn-cta-secondary.btn-cta-secondary-inline:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.btn-cta-secondary-inline svg {
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}

.btn-cta-secondary-inline .cta-phone-text {
    color: white;
    white-space: nowrap;
}

/* CTA Responsive */
@media (max-width: 900px) {
    .cta-card {
        flex-direction: column;
        text-align: center;
        padding: 3rem 2rem;
    }

    .cta-card p {
        max-width: 100%;
    }

    .cta-actions-row {
        max-width: none;
    }
}

@media (max-width: 540px) {
    .cta-actions-row {
        flex-direction: column;
        align-items: center;
    }

    .cta-actions-row .btn-cta-primary,
    .cta-actions-row .btn-cta-secondary-inline {
        width: 100%;
        max-width: 280px;
    }
}