<?php
if (session_status() !== PHP_SESSION_ACTIVE) session_start();
$pageBodyClass = isset($pageBodyClass) ? trim((string)$pageBodyClass) : 'public-site';
$requestPath = parse_url($_SERVER['REQUEST_URI'] ?? ($_SERVER['SCRIPT_NAME'] ?? '/'), PHP_URL_PATH);
$requestPath = trim((string)$requestPath, '/');
$requestPath = $requestPath === '' ? 'index' : preg_replace('/\.[a-z0-9]+$/i', '', $requestPath);
$requestPath = preg_replace('#[^a-z0-9/_-]+#i', '-', $requestPath);
$requestPath = trim(str_replace('/', '-', $requestPath), '-');
$pageBodyClass .= ' page-' . ($requestPath !== '' ? $requestPath : 'index');
?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Almost Heaven Radio</title>
  <link rel="icon" type="image/png" href="/img/logo.png">
  <link rel="apple-touch-icon" href="/img/logo.png">

  <meta property="og:type" content="website">
  <meta property="og:site_name" content="Almost Heaven Radio">
  <meta property="og:image" content="https://almostheavenradio.com/img/logo.png">
  <meta property="og:image:type" content="image/png">
  <meta property="og:image:width" content="1200">
  <meta property="og:image:height" content="630">
  <meta property="og:title" content="Almost Heaven Radio">
  <meta property="og:description" content="Almost Heaven Radio Broadcasting from the heart of the hills.">
  <meta property="og:url" content="https://almostheavenradio.com/">

  <meta name="twitter:card" content="summary_large_image">
  <meta name="twitter:image" content="https://almostheavenradio.com/img/logo.png">
  <meta name="twitter:title" content="Almost Heaven Radio">
  <meta name="twitter:description" content="Almost Heaven Radio Broadcasting from the heart of the hills.">

  <meta name="keywords" content="online radio, internet radio, live radio stream, classic hits, country, rock, oldies, community radio, Almost Heaven Radio">
  <meta name="description" content="Almost Heaven Radio Broadcasting from the heart of the hills.">

  <link rel="stylesheet" href="/css/style.css?v=4">
  <link rel="stylesheet" href="/css/merged-smurf.css?v=4">
</head>
<body class="<?= htmlspecialchars($pageBodyClass, ENT_QUOTES, 'UTF-8') ?>">
  <header class="site-header">
    <div class="header-inner">
      <img src="/assets/logo.png" alt="Almost Heaven Radio" class="header-logo">
      <div class="header-text">
        <h1 class="station-title">ALMOST HEAVEN RADIO</h1>
        <p class="tagline">Broadcasting from the heart of the hills</p>
      </div>
    </div>
  </header>
  <div class="header-spacer"></div>
