/* 
 * styles.css – custom header and navigation styles for the Waken The Dead site.
 *
 * Colours: dark greys with deep red accents.
 * Hamburger toggle inline with brand, off‑canvas for all links.
 */

/* Root variables */
:root {
  --color-bg: #0e0e10;
  --color-overlay: rgba(0, 0, 0, 0.55);
  --color-primary: #c72f41;
  --color-text: #f5f5f5;
  --color-text-muted: #c0c0c0;
  --nav-height: 60px;
}

/* Base reset */
body {
  margin: 0;
  font-family: 'Oswald', 'Arial Black', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.4;
}

/* Hero section */
.hero {
  position: relative;
  height: 75vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}

.hero__video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero__overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.5) 60%,
    rgba(0, 0, 0, 0.85) 100%
  );
  z-index: -1;
}

/* Primary navigation container */
.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;  /* toggle left, brand right */
  height: var(--nav-height);
  padding: 0 1rem;
  z-index: 2;
}

/* Hide any old topbar */
.topbar {
  display: none !important;
}

/* Site title */
.nav__brand {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: 1px;
  color: var(--color-primary);
  text-decoration: none;
}

/* Hide horizontal menu list */
.nav__list {
  display: none !important;
}

/* Hamburger toggle */
.menu-button {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--color-text);
  cursor: pointer;
  position: relative;
  z-index: 5;
}

.menu-ico,
.menu-icon {
  display: flex !important;
  flex-direction: column;
  gap: 4px;
}
.menu-ico .bar,
.menu-icon .bar {
  width: 18px;
  height: 2px;
  background: var(--color-text);
}

/* Push nav down under WP admin bar */
body.admin-bar .nav {
  margin-top: 32px !important;
}

/* Hero text */
.hero__content {
  margin-top: 20vh;
  text-align: center;
  padding: 0 1rem;
}
.hero__title {
  font-size: 3rem;
  margin: 0;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}
.hero__subtitle {
  font-size: 1.5rem;
  margin: 0.5rem 0 0;
  color: var(--color-text-muted);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-primary);
  animation: bounce 2s infinite;
}
.scroll-indicator .scroll-arrow {
  width: 32px;
  height: 32px;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
  50%    { transform: translateX(-50%) translateY(-10px); opacity: 1; }
}

/* Off-canvas panel */
.offcanvas {
  position: fixed;
  top: 0; left: 0;
  width: 280px; height: 100vh;
  background: rgba(0,0,0,0.95);
  color: var(--color-text);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
  z-index: 4;
  display: flex;
  flex-direction: column;
  clip-path: polygon(0 0,100% 0,calc(100% - 40px) 100%,0 100%);
}
.offcanvas.open {
  transform: translateX(0);
}
.offcanvas__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  overflow-y: auto;
}
.close-button {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 2rem;
  cursor: pointer;
  margin-bottom: 1rem;
}
.offcanvas__menu {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
}
.offcanvas__menu li {
  margin: 0.5rem 0;
}
.offcanvas__menu a {
  text-decoration: none;
  color: var(--color-text);
  font-size: 1.4rem;
  font-weight: bold;
  text-transform: uppercase;
}
.offcanvas__menu li.accent a {
  color: var(--color-primary);
}
.offcanvas__social {
  display: flex;
  gap: 0.8rem;
  margin-top: auto;
}
.offcanvas__social img {
  width: 22px; height: 22px;
  filter: invert(1);
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .hero__title {
    font-size: 2.25rem;
  }
}

/* 1) Content Cards */
.site-content > .container,
.widget {
  background: rgba(30, 30, 30, 0.9);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* 2) Accent Borders on Headings */
.site-content h1,
.site-content h2,
.widget-title {
  border-left: 4px solid var(--color-primary);
  padding-left: 0.75rem;
  margin-bottom: 1rem;
}

/* 3) Underline Animation for Links */
.entry-content a {
  position: relative;
  color: var(--color-primary);
  text-decoration: none;
}
.entry-content a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}
.entry-content a:hover::after {
  transform: scaleX(1);
}

/* 4) Even Spacing Between Content Elements */
.entry-content > * {
  margin-top: 1.25rem;
}
.entry-content > *:first-child {
  margin-top: 0;
}
/* === Footer Visual Fixes === */
.site-content > .container {
  box-shadow: none !important;
  border: none !important;
}

#content::before,
#content::after,
.site-content::before,
.site-content::after {
  content: none !important;
  display: none !important;
  border: none !important;
  background: none !important;
  height: 0 !important;
}
