@extends('layouts.app')

@section('title', 'Visa Services — '.config('site.full_name'))
@section('meta_description', 'Student, graduate, skilled, family and visitor visa services. MARA-registered agents guide your Australian visa application from start to grant.')

@section('content')

<x-page-hero
    title="Australian visa"
    accent="pathways, simplified"
    crumb="Visa"
    subtitle="Whatever stage you're at, our registered agents match you to the right visa and lodge it with precision." />

{{-- Visa categories --}}
<section class="container-x py-20 md:py-24">
    <div class="reveal mx-auto max-w-2xl text-center">
        <x-eyebrow class="justify-center">Visa categories</x-eyebrow>
        <h2 class="mt-4 text-3xl font-bold text-ink md:text-4xl">Find the <span class="accent">right visa</span> for your journey</h2>
    </div>
    <div class="mt-14 grid gap-6 md:grid-cols-2 lg:grid-cols-3">
        @php
            $visas = [
                ['c'=>'Subclass 500','t'=>'Student Visa','d'=>'Study full-time at a registered institution in Australia.','tag'=>'Study'],
                ['c'=>'Subclass 485','t'=>'Graduate Visa','d'=>'Live, study and work temporarily after you finish your studies.','tag'=>'Post-study'],
                ['c'=>'Subclass 189','t'=>'Skilled Independent','d'=>'Points-tested permanent residence — no sponsor required.','tag'=>'PR'],
                ['c'=>'Subclass 190','t'=>'Skilled Nominated','d'=>'Permanent residence with state or territory nomination.','tag'=>'PR'],
                ['c'=>'Subclass 491','t'=>'Skilled Work Regional','d'=>'Live and work in regional Australia on a pathway to PR.','tag'=>'Regional'],
                ['c'=>'Subclass 820/801','t'=>'Partner Visa','d'=>'Join your partner and build a life together in Australia.','tag'=>'Family'],
                ['c'=>'Subclass 600','t'=>'Visitor Visa','d'=>'Visit Australia for tourism, business or to see family.','tag'=>'Visit'],
                ['c'=>'Subclass 482','t'=>'Skills in Demand','d'=>'Employer-sponsored work visa for skilled occupations.','tag'=>'Work'],
                ['c'=>'Subclass 407','t'=>'Training Visa','d'=>'Occupational training to enhance your skills and career.','tag'=>'Training'],
            ];
        @endphp
        @foreach ($visas as $v)
            <div class="reveal group flex flex-col rounded-3xl border border-slate-100 bg-white p-7 transition-all duration-300 hover:-translate-y-1 hover:border-brand-200 hover:shadow-xl hover:shadow-brand-600/5">
                <div class="flex items-center justify-between">
                    <span class="rounded-full bg-brand-50 px-3 py-1 text-xs font-bold uppercase tracking-wide text-brand-700">{{ $v['tag'] }}</span>
                    <span class="text-xs font-semibold text-slate-400">{{ $v['c'] }}</span>
                </div>
                <h3 class="mt-5 text-xl font-bold text-ink group-hover:text-brand-700">{{ $v['t'] }}</h3>
                <p class="mt-2 flex-1 text-sm leading-relaxed text-slate-500">{{ $v['d'] }}</p>
                <a href="{{ route('contact') }}" class="mt-5 inline-flex items-center gap-1 text-sm font-semibold text-brand-600">Check eligibility <svg class="h-4 w-4 transition-transform group-hover:translate-x-1" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M5 12h14M13 6l6 6-6 6"/></svg></a>
            </div>
        @endforeach
    </div>
</section>

{{-- Skilled migration highlight --}}
<section class="bg-slate-50/70 py-20 md:py-24">
    <div class="container-x grid items-center gap-14 lg:grid-cols-2">
        <div class="reveal">
            <x-eyebrow>Skilled migration</x-eyebrow>
            <h2 class="mt-4 text-3xl font-bold leading-tight text-ink md:text-4xl">Not sure how many <span class="accent">points</span> you have?</h2>
            <p class="mt-5 leading-relaxed text-slate-500">The skilled migration points test rewards your age, English, qualifications and experience. Use our free calculator to estimate your score, then let us build a strategy to maximise it.</p>
            <ul class="mt-7 space-y-3">
                @foreach (['Instant points estimate','Personalised improvement tips','Occupation & state advice'] as $p)
                    <li class="flex items-center gap-3 text-sm font-medium text-slate-600">
                        <span class="grid h-6 w-6 place-items-center rounded-full bg-brand-100 text-brand-700"><svg class="h-3.5 w-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3"><path d="M20 6 9 17l-5-5"/></svg></span>
                        {{ $p }}
                    </li>
                @endforeach
            </ul>
            <a href="{{ route('points') }}" class="mt-8 inline-flex items-center gap-2 rounded-full bg-brand-600 px-7 py-3.5 text-sm font-semibold text-white shadow-lg shadow-brand-600/30 transition-transform hover:-translate-y-0.5">Open points calculator</a>
        </div>
        <div class="reveal relative">
            <div class="overflow-hidden rounded-4xl bg-gradient-to-br from-brand-600 via-brand-700 to-ink p-10 text-white">
                <p class="text-sm font-semibold uppercase tracking-widest text-brand-200">Minimum to be invited</p>
                <p class="mt-3 font-serif text-7xl font-semibold">65<span class="text-3xl text-brand-200"> pts</span></p>
                <p class="mt-2 text-brand-100">Higher scores get invited sooner. Most successful applicants sit well above the minimum — we help you get there.</p>
                <div class="mt-8 grid grid-cols-3 gap-4 border-t border-white/15 pt-6 text-center">
                    @foreach ([['Age','30'],['English','20'],['Skills','15']] as $b)
                        <div><p class="font-serif text-3xl font-semibold">{{ $b[1] }}</p><p class="text-xs text-brand-200">{{ $b[0] }}</p></div>
                    @endforeach
                </div>
            </div>
        </div>
    </div>
</section>

{{-- FAQ --}}
<section class="container-x py-20 md:py-24">
    <div class="reveal mx-auto max-w-2xl text-center">
        <x-eyebrow class="justify-center">Good to know</x-eyebrow>
        <h2 class="mt-4 text-3xl font-bold text-ink md:text-4xl">Frequently asked <span class="accent">questions</span></h2>
    </div>
    <div class="mx-auto mt-12 max-w-3xl space-y-3" data-accordion>
        @php
            $faqs = [
                ['q'=>'How long does a visa application take?','a'=>'Processing times vary by visa type and your circumstances. During your consultation we\'ll give you a realistic estimate based on current Department of Home Affairs timeframes.'],
                ['q'=>'Do you guarantee a visa outcome?','a'=>'No ethical agent can guarantee an outcome — decisions rest with the Department. What we guarantee is honest advice, a strong, complete application and full transparency throughout.'],
                ['q'=>'Are your agents registered?','a'=>'Yes. Our migration work is carried out under MARA-registered migration agents, whose registration you can independently verify.'],
                ['q'=>'Can you help if I\'m already in Australia?','a'=>'Absolutely. We assist with onshore applications, visa extensions, changes of course and pathways from temporary to permanent visas.'],
            ];
        @endphp
        @foreach ($faqs as $f)
            <div class="reveal overflow-hidden rounded-2xl border border-slate-100 bg-white" data-accordion-item>
                <button type="button" data-accordion-trigger class="flex w-full items-center justify-between gap-4 px-6 py-5 text-left">
                    <span class="font-semibold text-ink">{{ $f['q'] }}</span>
                    <svg class="h-5 w-5 shrink-0 text-brand-600 transition-transform duration-300 [&.rot]:rotate-45" data-accordion-icon viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M12 5v14M5 12h14"/></svg>
                </button>
                <div class="grid grid-rows-[0fr] transition-all duration-300" data-accordion-panel>
                    <div class="overflow-hidden">
                        <p class="px-6 pb-5 text-slate-500">{{ $f['a'] }}</p>
                    </div>
                </div>
            </div>
        @endforeach
    </div>
</section>

<x-cta-band title="Ready to lodge with confidence?" text="Let a registered agent review your case and recommend the strongest visa pathway for you." />

@endsection
