@php
    if ($settings->redirect_url != null or !empty($settings->redirect_url)) {
        header("Location: `$settings->redirect_url", true, 301);
        exit();
    }
@endphp
@extends('layouts.base')
@inject('content', 'App\Http\Controllers\FrontController')
@section('title', 'About Us')

@push('styles')
<link href="https://fonts.googleapis.com/css2?family=Crimson+Text:wght@400;600;700&family=DM+Sans:wght@400;500;600;700&display=swap" rel="stylesheet">
<style>
    :root {
        --forest-green: #2d8659;
        --champagne: #e0a84e;
        --dark-green: #1e5a3d;
        --light-green: #3fa572;
        --cream: #fdfbf7;
        --charcoal: #2a2a2a;
    }
    
    .page-hero {
        font-family: 'DM Sans', sans-serif;
        background: linear-gradient(165deg, var(--dark-green) 0%, var(--forest-green) 35%, #2a6f4f 100%);
        min-height: 50vh;
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: center;
        padding: 8rem 0 6rem;
    }
    
    .page-hero-bg-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
    }
    
    .page-hero-bg-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    .page-hero-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(30, 90, 61, 0.82) 0%, rgba(45, 134, 89, 0.75) 50%, rgba(42, 111, 79, 0.80) 100%);
        z-index: 1;
    }
    
    .page-hero::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 60%;
        height: 100%;
        background: radial-gradient(circle at 80% 30%, rgba(224, 168, 78, 0.15), transparent 60%);
        pointer-events: none;
        z-index: 1;
    }
    
    .page-hero-pattern {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0.03;
        background-image: repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255, 255, 255, 0.1) 35px, rgba(255, 255, 255, 0.1) 70px);
    }
    
    .page-hero-content {
        position: relative;
        z-index: 2;
        text-align: center;
    }
    
    .page-hero-title {
        font-family: 'Crimson Text', serif;
        font-size: 3.5rem;
        font-weight: 700;
        color: white;
        margin-bottom: 1rem;
        letter-spacing: -0.01em;
    }
    
    .page-hero-subtitle {
        font-size: 1.2rem;
        color: rgba(255, 255, 255, 0.9);
        font-weight: 400;
    }
    
    .about-section {
        padding: 6rem 0;
        background: white;
    }
    
    .section-badge {
        display: inline-block;
        padding: 0.5rem 1.25rem;
        background: linear-gradient(135deg, rgba(45, 134, 89, 0.1) 0%, rgba(63, 165, 114, 0.1) 100%);
        border-radius: 50px;
        margin-bottom: 1.5rem;
    }
    
    .section-badge-text {
        font-family: 'DM Sans', sans-serif;
        font-weight: 600;
        color: var(--forest-green);
        font-size: 0.9rem;
        letter-spacing: 0.05em;
    }
    
    .section-title {
        font-family: 'Crimson Text', serif;
        font-size: 3rem;
        font-weight: 700;
        color: var(--charcoal);
        margin-bottom: 1.5rem;
        line-height: 1.2;
    }
    
    .section-divider {
        width: 80px;
        height: 5px;
        background: linear-gradient(90deg, var(--champagne) 0%, #ebb860 100%);
        border-radius: 10px;
        margin-bottom: 2rem;
    }
    
    .about-text {
        font-family: 'DM Sans', sans-serif;
        font-size: 1.05rem;
        color: #555;
        line-height: 1.8;
        margin-bottom: 1.5rem;
    }
    
    .about-image-wrapper {
        position: relative;
        border-radius: 24px;
        overflow: hidden;
        box-shadow: 0 20px 60px rgba(45, 134, 89, 0.15);
    }
    
    .about-image-wrapper img {
        width: 100%;
        height: auto;
        display: block;
        transition: transform 0.5s ease;
    }
    
    .about-image-wrapper:hover img {
        transform: scale(1.05);
    }
    
    @media (max-width: 768px) {
        .page-hero-title {
            font-size: 2.5rem;
        }
        .section-title {
            font-size: 2.2rem;
        }
        .page-hero {
            padding: 6rem 0 4rem;
        }
    }
</style>
@endpush

@section('content')

    <!-- Page Hero -->
    <div class="page-hero">
        <!-- Background Image -->
        <div class="page-hero-bg-image">
            <img src="{{ asset('temp/custom/assets/img/page-title-bg1.jpg') }}" alt="About Us">
        </div>
        
        <!-- Overlay -->
        <div class="page-hero-overlay"></div>
        
        <div class="page-hero-pattern"></div>
        
        <div class="container">
            <div class="page-hero-content">
                <h1 class="page-hero-title">About Us</h1>
                <p class="page-hero-subtitle">{{ $settings->site_name }} - A global force in trade finance</p>
            </div>
        </div>
    </div>

    <!-- About Section -->
    <section class="about-section">
        <div class="container">
            <div class="row align-items-center mb-5">
                <div class="col-lg-6 mb-5 mb-lg-0">
                    <div class="section-badge">
                        <span class="section-badge-text">HOW WE WERE FOUNDED</span>
                    </div>
                    
                    <h2 class="section-title">Easy, fee-free banking for entrepreneurs</h2>
                    <div class="section-divider"></div>
                    
                    <p class="about-text">
                        {{ $settings->site_name }} is a customer-driven provider focused on optimising business performance and supporting business growth by developing tailor-made trade finance solutions that provide exporters with accelerated receivables and importers with extended credit. The Bank is at the forefront of introducing and developing innovative receivable finance techniques in emerging markets.
                    </p>
                    
                    <p class="about-text">
                        The {{ $settings->site_name }} Group saw its beginning in 1991, with the establishment of First International Merchant Bank Ltd, which commenced operations in 1995. In June 2001, the shares of First International Merchant Bank p.l.c. were listed on the Germany Stock Exchange, and four years later the Bank changed its name to {{ $settings->site_name }} p.l.c.
                    </p>
                    
                    <div id="google_translate_element" style="margin-top: 2rem;"></div>
                    <script type="text/javascript">
                        function googleTranslateElementInit() {
                            new google.translate.TranslateElement({pageLanguage: 'en'}, 'google_translate_element');
                        }
                    </script>
                    <script type="text/javascript" src="https://translate.google.com/translate_a/elementa0d8a0d8.html?cb=googleTranslateElementInit"></script>
                </div>
                
                <div class="col-lg-6">
                    <div class="about-image-wrapper">
                        <img src="{{ asset('temp/custom/assets/img/about-img1.jpg') }}" alt="About {{ $settings->site_name }}">
                    </div>
                </div>
            </div>
            
            <div class="row mt-5">
                <div class="col-12">
                    <p class="about-text">
                        In 2003, {{ $settings->site_name }} acquired full control of UK-registered London Forfaiting Company Ltd, a market leader in forfaiting with an extensive international network spanning five continents. In 2006, the Group was further enhanced through the creation of {{ $settings->site_name }} Business Solutions Ltd, which was launched as a business systems provider and technology consulting firm, while in 2008, {{ $settings->site_name }} Property Investment Ltd was set up to oversee the construction of the Group's head office and provide facilities and property management services.
                    </p>
                </div>
            </div>
        </div>
    </section>

@endsection
