/*
Theme Name: Zodiac Bros 2026
Theme URI: https://zodiacbros.com
Author: Origen Media
Description: A dark cinematic studio theme for Zodiac Bros with editable horror and fantasy hero slides.
Version: 0.2.9
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.1
Text Domain: zodiacbros
*/

:root {
  --zb-black: #050505;
  --zb-ink: #f4eee3;
  --zb-paper: #0b0b0d;
  --zb-charcoal: #151217;
  --zb-red: #c91822;
  --zb-blood: #7c1018;
  --zb-gold: #d8b15d;
  --zb-muted: #b8aea3;
  --zb-max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.92), rgba(5, 5, 5, 0.97)),
    radial-gradient(circle at 20% 0%, rgba(124, 16, 24, 0.38), transparent 30%),
    var(--zb-black);
  color: var(--zb-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.single-post {
  background:
    radial-gradient(circle at 18% 0%, rgba(124, 16, 24, 0.22), transparent 36%),
    linear-gradient(90deg, #0a090b 0%, #101013 58%, #0a090b 100%);
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  border-bottom: 1px solid rgba(216, 177, 93, 0.12);
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.92), rgba(5, 5, 5, 0.58));
  backdrop-filter: blur(10px);
}

.site-header__inner {
  width: min(100% - 32px, var(--zb-max));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-branding {
  display: inline-flex;
  align-items: center;
}

.site-branding__logo {
  width: auto;
  max-width: min(220px, 52vw);
  max-height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.55));
}

.site-nav {
  color: rgba(247, 244, 237, 0.82);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--zb-gold);
}

.site-menu-toggle,
.site-menu-button {
  display: none;
}

.site-menu-button {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(216, 177, 93, 0.34);
  background: rgba(5, 5, 5, 0.66);
  color: var(--zb-ink);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.site-menu-button span {
  width: 20px;
  height: 2px;
  display: block;
  background: var(--zb-gold);
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero-slider {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background: #030303;
}

.hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.46) 50%, rgba(0, 0, 0, 0.88)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(5, 5, 5, 0.9)),
    linear-gradient(90deg, rgba(124, 16, 24, 0.28), transparent 38%, rgba(216, 177, 93, 0.12));
  pointer-events: none;
}

.hero-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-slider__slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  animation-fill-mode: both;
}

.hero-slider__slide--zoom-in {
  animation-name: zb-slide-zoom-in;
}

.hero-slider__slide--zoom-out {
  animation-name: zb-slide-zoom-out;
}

.hero-slider__slide--pan-left {
  animation-name: zb-slide-pan-left;
}

.hero-slider__slide--pan-right {
  animation-name: zb-slide-pan-right;
}

.hero-slider__slide--slow-rise {
  animation-name: zb-slide-slow-rise;
}

.hero-slider__slide--still {
  animation-name: zb-slide-still;
}

.hero-slider__slide-content {
  position: relative;
  z-index: 5;
  width: min(100% - 32px, var(--zb-max));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 112px 0 84px;
  text-align: center;
}

.hero-slider__logo {
  width: min(72vw, 620px);
  max-height: 34vh;
  object-fit: contain;
  filter: drop-shadow(0 16px 34px rgba(0, 0, 0, 0.76));
}

.hero-slider__kicker {
  margin: 28px 0 0;
  color: rgba(247, 244, 237, 0.72);
  font-size: clamp(13px, 2vw, 16px);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-slider__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(247, 244, 237, 0.38);
  background: rgba(5, 5, 5, 0.56);
  color: #fff;
  font-size: 14px;
  font-weight: 850;
  text-transform: uppercase;
}

.button:hover,
.button:focus-visible {
  border-color: var(--zb-gold);
  color: var(--zb-gold);
}

.site-main {
  background:
    radial-gradient(circle at 85% 0%, rgba(124, 16, 24, 0.2), transparent 34%),
    linear-gradient(180deg, #0a090b, #111014);
  color: var(--zb-ink);
}

.page-main {
  min-height: calc(100vh - 96px);
  padding-top: 76px;
}

.single-post-main {
  width: 100%;
  max-width: none;
  background:
    radial-gradient(circle at 18% 0%, rgba(124, 16, 24, 0.2), transparent 36%),
    linear-gradient(90deg, #0a090b 0%, #101013 58%, #0a090b 100%);
}

.section {
  width: min(100% - 32px, var(--zb-max));
  margin: 0 auto;
  padding: 72px 0;
}

.section__eyebrow {
  margin: 0 0 10px;
  color: var(--zb-gold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.section__title {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 7vw, 72px);
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #fff8ed;
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.52);
}

.entry-content {
  max-width: 900px;
  margin-top: 32px;
  color: rgba(244, 238, 227, 0.9);
  font-size: 19px;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: #fff8ed;
  letter-spacing: 0;
}

.entry-content a {
  color: var(--zb-gold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

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

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

.entry-content .wp-block-embed,
.entry-content .wp-block-embed__wrapper {
  max-width: 960px;
}

.entry-content .wp-block-embed__wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(216, 177, 93, 0.22);
  background: #050505;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

.entry-content .wp-block-embed__wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.legacy-content-section {
  margin: 0 0 34px;
}

.legacy-content-section h2,
.legacy-content-section h3 {
  margin-top: 0;
}

.legacy-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin: 0 0 42px;
}

.legacy-content-grid > div {
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(216, 177, 93, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
}

.legacy-content-grid .wpcf7 {
  margin-top: 12px;
}

.wpcf7 form {
  display: grid;
  gap: 18px;
}

.wpcf7 form p {
  margin: 0;
}

.wpcf7 label {
  display: grid;
  gap: 8px;
  color: rgba(244, 238, 227, 0.92);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
}

.wpcf7-form-control-wrap {
  display: block;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(216, 177, 93, 0.28);
  border-radius: 0;
  outline: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    #0b090c;
  color: #fff8ed;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.42), 0 12px 28px rgba(0, 0, 0, 0.18);
  font: inherit;
  padding: 12px 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.wpcf7 textarea {
  min-height: 172px;
  resize: vertical;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
  border-color: rgba(216, 177, 93, 0.72);
  background:
    linear-gradient(180deg, rgba(124, 16, 24, 0.18), rgba(255, 255, 255, 0.03)),
    #0b090c;
  box-shadow: inset 0 0 0 1px rgba(216, 177, 93, 0.18), 0 0 0 3px rgba(216, 177, 93, 0.12);
}

.wpcf7 .wpcf7-submit {
  min-height: 46px;
  width: auto;
  border: 1px solid rgba(216, 177, 93, 0.72);
  background:
    linear-gradient(135deg, rgba(124, 16, 24, 0.96), rgba(201, 24, 34, 0.72)),
    #7c1018;
  color: #fff8ed;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  padding: 0 24px;
  text-transform: uppercase;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.3);
}

.wpcf7 .wpcf7-submit:hover,
.wpcf7 .wpcf7-submit:focus-visible {
  background:
    linear-gradient(135deg, rgba(216, 177, 93, 0.92), rgba(124, 16, 24, 0.92)),
    #7c1018;
}

.wpcf7-not-valid-tip {
  margin-top: 6px;
  color: #ff9d9d;
  font-size: 13px;
}

.wpcf7 form .wpcf7-response-output {
  margin: 4px 0 0;
  border-color: rgba(216, 177, 93, 0.42);
  color: #fff8ed;
}

.legacy-video {
  position: relative;
  max-width: min(100%, 1080px);
  margin: 62px auto 0;
  padding: clamp(14px, 3vw, 28px);
  border: 1px solid rgba(216, 177, 93, 0.28);
  background:
    radial-gradient(circle at 20% 0%, rgba(124, 16, 24, 0.28), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    #070608;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
}

.page-id-24 .legacy-video::after {
  content: "Color Correction and Grading";
  position: absolute;
  left: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 2;
  max-width: calc(100% - 56px);
  padding: 8px 12px;
  background: rgba(5, 5, 5, 0.72);
  color: #fff8ed;
  font-size: clamp(13px, 2.2vw, 16px);
  font-weight: 900;
  text-transform: uppercase;
  pointer-events: none;
}

.legacy-video iframe,
.legacy-video video {
  width: 100%;
  max-width: none;
  aspect-ratio: 16 / 9;
  height: auto;
  display: block;
  background: #000;
  box-shadow: 0 0 0 1px rgba(216, 177, 93, 0.18);
}

.legacy-video .wp-video,
.legacy-video .wp-video-shortcode {
  width: 100% !important;
  max-width: none;
}

.legacy-video.is-autoplay-ready {
  border-color: rgba(216, 177, 93, 0.52);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 36px;
}

.post-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(216, 177, 93, 0.14);
}

.post-card__image {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  background: #1b171b;
  overflow: hidden;
}

.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card__body {
  padding: 18px;
}

.post-card__title {
  margin: 0;
  font-size: 20px;
  line-height: 1.12;
  letter-spacing: 0;
  color: #fff8ed;
}

.post-card__meta {
  margin: 0 0 12px;
  color: var(--zb-muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.production-posts {
  border-top: 1px solid rgba(216, 177, 93, 0.12);
}

.production-posts__intro,
.production-posts__empty {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(244, 238, 227, 0.72);
  font-size: 18px;
}

.production-posts__grid {
  margin-top: 34px;
}

.production-card a {
  display: block;
  height: 100%;
}

.production-card {
  min-height: 100%;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.production-card:hover,
.production-card:focus-within {
  border-color: rgba(216, 177, 93, 0.42);
  transform: translateY(-3px);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.26);
}

.production-card__fallback {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 177, 93, 0.42);
  background:
    radial-gradient(circle at 30% 20%, rgba(216, 177, 93, 0.22), transparent 38%),
    rgba(124, 16, 24, 0.3);
  color: var(--zb-gold);
  font-size: 22px;
  font-weight: 950;
}

.production-card__excerpt {
  margin: 14px 0 0;
  color: rgba(244, 238, 227, 0.74);
  font-size: 15px;
}

.single-post {
  width: min(calc(100% - 32px), 1200px);
  max-width: none;
}

.single-post__title {
  max-width: 980px;
}

.single-post__meta {
  margin-top: 18px;
}

.single-post__content {
  max-width: 1120px;
  margin-top: 40px;
}

.single-post__content .wp-block-embed,
.single-post__content .wp-block-embed__wrapper {
  width: 100%;
  max-width: 1120px;
}

.single-post__content .wp-block-embed {
  margin-inline: 0;
}

.posts-pagination {
  margin-top: 38px;
  color: var(--zb-ink);
}

.posts-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.posts-pagination .page-numbers {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(216, 177, 93, 0.24);
  color: rgba(244, 238, 227, 0.82);
  padding: 0 12px;
  text-decoration: none;
}

.posts-pagination .page-numbers.current,
.posts-pagination .page-numbers:hover,
.posts-pagination .page-numbers:focus-visible {
  border-color: rgba(216, 177, 93, 0.64);
  background: rgba(124, 16, 24, 0.42);
  color: #fff8ed;
}

.site-footer {
  background: var(--zb-black);
  color: rgba(247, 244, 237, 0.72);
  border-top: 1px solid rgba(216, 177, 93, 0.12);
}

.site-footer__inner {
  width: min(100% - 32px, var(--zb-max));
  min-height: 96px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-slider__slide {
    animation: none;
  }

  .hero-slider__slide:first-child {
    opacity: 1;
  }
}

@media (max-width: 820px) {
  .site-header__inner {
    min-height: 66px;
    position: relative;
  }

  .site-menu-button {
    display: inline-flex;
    margin-left: auto;
  }

  .site-menu-toggle:checked + .site-menu-button span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-menu-toggle:checked + .site-menu-button span:nth-child(2) {
    opacity: 0;
  }

  .site-menu-toggle:checked + .site-menu-button span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(320px, calc(100vw - 32px));
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .site-menu-toggle:checked ~ .site-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav ul {
    display: grid;
    gap: 0;
    padding: 8px;
    border: 1px solid rgba(216, 177, 93, 0.22);
    background:
      radial-gradient(circle at 90% 0%, rgba(124, 16, 24, 0.28), transparent 42%),
      rgba(5, 5, 5, 0.96);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.54);
  }

  .site-nav a {
    display: block;
    padding: 14px 12px;
    border-bottom: 1px solid rgba(216, 177, 93, 0.1);
  }

  .site-nav li:last-child a {
    border-bottom: 0;
  }

  .hero-slider__slide-content {
    padding-top: 88px;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .legacy-content-grid {
    grid-template-columns: 1fr;
  }

  .wpcf7 .wpcf7-submit {
    width: 100%;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 26px 0;
  }
}
