/*
Theme Name: Horizon Video Theme
Theme URI: https://example.com/horizon-video-theme
Author: OpenAI Codex
Author URI: https://openai.com
Description: A simple WordPress theme with a full-screen video hero, page content below the fold, and configurable header and footer menus.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: horizon-video-theme
*/

:root {
  --color-bg: #08111f;
  --color-surface: #0e1a2e;
  --color-surface-soft: #13233d;
  --color-text: #f6f7fb;
  --color-text-muted: rgba(246, 247, 251, 0.76);
  --color-border: rgba(255, 255, 255, 0.12);
  --color-accent: #f0b429;
  --color-accent-strong: #d99800;
  --page-width: min(1120px, calc(100vw - 3rem));
  --shadow-soft: 0 28px 70px rgba(0, 0, 0, 0.2);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #091120 0%, #0f1d35 100%);
  color: var(--color-text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  padding: 1.25rem 0;
}

.site-header__inner,
.site-footer__inner,
.content-section__inner,
.page-shell {
  width: var(--page-width);
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-branding a {
  font-size: 0.95rem;
}

.menu-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-list a {
  color: var(--color-text);
  opacity: 0.88;
}

.menu-list a:hover,
.menu-list a:focus {
  opacity: 1;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #050913;
}

.hero__media,
.hero__overlay,
.hero__backdrop {
  position: absolute;
  inset: 0;
}

.hero__backdrop {
  background:
    radial-gradient(circle at top right, rgba(240, 180, 41, 0.18), transparent 28%),
    linear-gradient(160deg, rgba(7, 13, 24, 0.25), rgba(7, 13, 24, 0.82));
  z-index: 1;
}

.hero__media video,
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  background: linear-gradient(180deg, rgba(3, 7, 13, 0.2) 0%, rgba(3, 7, 13, 0.65) 60%, rgba(3, 7, 13, 0.96) 100%);
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 3;
  width: var(--page-width);
  margin: 0 auto;
  padding: 8rem 0 5rem;
  display: grid;
  gap: 1.25rem;
}

.hero__eyebrow {
  width: fit-content;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__title {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero__text {
  max-width: 44rem;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--color-text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.button-link:hover,
.button-link:focus {
  transform: translateY(-1px);
}

.button-link--primary {
  background: var(--color-accent);
  color: #091120;
}

.button-link--primary:hover,
.button-link--primary:focus {
  background: var(--color-accent-strong);
}

.button-link--secondary {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text);
}

.content-section {
  position: relative;
  z-index: 5;
  margin-top: -3rem;
  padding-bottom: 4rem;
}

.content-section__inner {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--color-border);
  border-radius: 1.75rem;
  background: linear-gradient(180deg, rgba(17, 28, 49, 0.94) 0%, rgba(11, 20, 36, 0.98) 100%);
  box-shadow: var(--shadow-soft);
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.page-shell {
  padding: 8rem 0 4rem;
}

.page-shell article {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--color-border);
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(17, 28, 49, 0.94) 0%, rgba(11, 20, 36, 0.98) 100%);
  box-shadow: var(--shadow-soft);
}

.entry-title {
  margin-top: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
}

.site-footer {
  padding: 2rem 0 3rem;
}

.site-footer__inner {
  display: grid;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer__meta {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.fallback-note {
  display: inline-flex;
  width: fit-content;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

@media (max-width: 820px) {
  .site-header {
    padding-top: 1rem;
  }

  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero__content {
    padding-top: 10rem;
    padding-bottom: 4rem;
  }

  .content-section {
    margin-top: -1.75rem;
  }
}
