<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
 * Public header — opens the document, head, fonts, header/nav.
 */
$nav = array(
	''          => 'Home',
	'about'     => 'About',
	'services'  => 'Services',
	'portfolio' => 'Portfolio',
	'talent'    => 'Talent',
	'events'    => 'Events',
	'blog'      => 'Journal',
	'contact'   => 'Contact',
);
?><!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<meta name="theme-color" content="#631A6C">
	<?php $this->load->view('layouts/public_meta'); ?>

	<link rel="preconnect" href="https://fonts.googleapis.com">
	<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
	<link href="https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Manrope:wght@400;500;600;700;800&display=swap" rel="stylesheet">

	<link rel="stylesheet" href="<?= asset_url('css/bloom.css') ?>">
	<link rel="icon" type="image/png" href="<?= asset_url('img/favicon.png') ?>">
</head>
<body>

<!-- ============ HEADER ============ -->
<header class="site-header">
	<div class="container nav-inner">
		<a href="<?= base_url() ?>" class="brand-logo">
			<span class="brand-mark">b</span>
			<span class="brand-text">
				<span class="brand-name"><?= html_escape(setting('site_name', 'Bloom Iris')) ?></span>
				<span class="brand-tag">Creative Agency</span>
			</span>
		</a>

		<nav class="nav-menu">
			<?php foreach ($nav as $seg => $label): ?>
				<a href="<?= base_url($seg) ?>" class="<?= active_link($seg) ?: ($seg === '' && $this->uri->segment(1) === NULL ? 'is-active' : '') ?>">
					<?= $label ?>
				</a>
			<?php endforeach; ?>
		</nav>

		<div class="nav-actions">
			<a href="<?= base_url('contact') ?>" class="btn btn-primary">
				Work With Us <?= bloom_icon('arrow', 18) ?>
			</a>
			<button class="nav-toggle" aria-label="Open menu"><?= bloom_icon('menu', 24) ?></button>
		</div>
	</div>
</header>

<!-- ============ MOBILE DRAWER ============ -->
<div class="nav-drawer">
	<div class="nav-drawer-top">
		<a href="<?= base_url() ?>" class="brand-logo">
			<span class="brand-mark">b</span>
			<span class="brand-text">
				<span class="brand-name" style="color:#fff;"><?= html_escape(setting('site_name', 'Bloom Iris')) ?></span>
			</span>
		</a>
		<button class="nav-drawer-close" aria-label="Close menu"><?= bloom_icon('close', 24) ?></button>
	</div>
	<nav class="nav-drawer-menu">
		<?php foreach ($nav as $seg => $label): ?>
			<a href="<?= base_url($seg) ?>"><?= $label ?></a>
		<?php endforeach; ?>
		<a href="<?= base_url('apply/talent') ?>">Join the Talent Network</a>
	</nav>
	<div class="nav-drawer-foot">
		<a href="<?= base_url('contact') ?>" class="btn btn-light btn-block">Work With Us</a>
	</div>
</div>

<main>
