/*
Theme Name: Wicked Winters Films
Theme URI: https://jade-winters.com
Author: The Block Practice / Custom Build
Author URI: https://jade-winters.com
Description: Wicked Winters Films custom theme with an editable film hero carousel, film/video and podcast archives, and flexible media pages.
Version: 3.5.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jade-winters
Tags: blog, entertainment, one-column, custom-menu, featured-images, footer-widgets, threaded-comments
*/

/* =========================================================
   1. RESET & BASE
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --color-ink: #201826;
  --color-ink-soft: #4a3f52;
  --color-plum: #6b2d5c;
  --color-plum-deep: #4a1f40;
  --color-blush: #e8c3d0;
  --color-cream: #faf6f2;
  --color-paper: #ffffff;
  --color-gold: #c8973f;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1180px;
  --radius: 10px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-cream);
  line-height: 1.65;
  font-size: 17px;
}

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

a {
  color: var(--color-plum);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-gold);
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--color-ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.button {
  display: inline-block;
  padding: 14px 30px;
  background: var(--color-plum);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
}

.button:hover {
  background: var(--color-plum-deep);
  color: #fff;
}

.button--outline {
  background: transparent;
  border: 2px solid var(--color-plum);
  color: var(--color-plum);
  padding: 12px 28px;
}

.button--outline:hover {
  background: var(--color-plum);
  color: #fff;
}

.section {
  padding: 80px 0;
}

.section--tight {
  padding: 48px 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 48px;
}

.section-heading__eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: 10px;
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.section--alt {
  background: var(--color-paper);
}

/* =========================================================
   2. HEADER
   ========================================================= */
.site-header {
  background: var(--color-ink);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-branding a {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: #fff;
  letter-spacing: 0.02em;
}

.site-branding a:hover {
  color: var(--color-blush);
}

.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  color: #f1e6ec;
  font-weight: 500;
  font-size: 0.95rem;
}

.primary-nav a:hover {
  color: var(--color-gold);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
  }
  .primary-nav {
    display: none;
    width: 100%;
  }
  .primary-nav.is-open {
    display: block;
  }
  .primary-nav ul {
    flex-direction: column;
    gap: 16px;
    padding: 20px 0 4px;
  }
  .site-header .container {
    flex-wrap: wrap;
  }
}

/* =========================================================
   3. HERO CAROUSEL
   ========================================================= */
 .hero-carousel {
  position: relative;
  height: clamp(480px, 58vh, 600px);
  min-height: 480px;
  background: var(--color-ink);
  overflow: hidden;
}
.hero-carousel__slides {
  position: absolute;
  inset: 0;
  min-height: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .9s ease, visibility .9s ease;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}
.hero-slide__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slide__shade {
  position:absolute;
  inset:0;
  background:linear-gradient(90deg, rgba(20,13,24,.78) 0%, rgba(20,13,24,.38) 46%, rgba(20,13,24,.12) 100%);
}
.hero-bts__inner {
  position:relative;
  z-index:3;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  text-align:left;
  pointer-events:none;
}
.hero-bts__content {
  max-width:560px;
  padding:60px 0 70px;
}
.hero-bts__logo {
  display:block;
  width:min(245px, 38vw);
  max-height:145px;
  object-fit:contain;
  object-position:left center;
  margin:0 0 20px;
  filter:drop-shadow(0 5px 14px rgba(0,0,0,.35));
}
.hero-bts__tagline {
  color:#fff;
  font-size:clamp(.95rem, 1.5vw, 1.12rem);
  line-height:1.55;
  max-width:48ch;
  margin:0;
  text-shadow:0 2px 10px rgba(0,0,0,.65);
}
.hero-carousel__arrow { position:absolute; top:50%; transform:translateY(-50%); z-index:5; width:46px; height:46px; border:1px solid rgba(255,255,255,.55); border-radius:50%; background:rgba(20,13,24,.35); color:#fff; cursor:pointer; font-size:1.2rem; }
.hero-carousel__arrow:hover { background:rgba(20,13,24,.7); }
.hero-carousel__arrow--prev { left:24px; }
.hero-carousel__arrow--next { right:24px; }
.hero-carousel__dots { position:absolute; z-index:5; bottom:28px; left:50%; transform:translateX(-50%); display:flex; gap:9px; }
.hero-carousel__dot { width:10px; height:10px; border-radius:50%; border:1px solid #fff; background:transparent; padding:0; cursor:pointer; }
.hero-carousel__dot.is-active { background:#fff; }
.hero--fallback { background:linear-gradient(135deg,var(--color-plum-deep),var(--color-plum)); color:#fff; padding:110px 0; }
.hero--fallback h1 { color:#fff; font-size:clamp(2.6rem,5vw,4.5rem); }
.hero--fallback p { color:#eadcf0; max-width:55ch; }

@media (max-width: 700px) {
  .hero-carousel { height:620px; min-height:620px; }
  .hero-slide__shade { background:linear-gradient(180deg, rgba(20,13,24,.12), rgba(20,13,24,.78) 82%); }
  .hero-bts__content { padding:0 0 42px; }
  .hero-bts__logo { width:min(210px, 58vw); max-height:115px; margin-bottom:12px; }
  .hero-bts__tagline { font-size:.9rem; padding:0 18px; }
  .hero-carousel__arrow { width:38px; height:38px; }
  .hero-carousel__arrow--prev { left:12px; }
  .hero-carousel__arrow--next { right:12px; }
}

/* =========================================================
   4. LATEST VIDEO / PODCAST CARDS
   ========================================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.card-grid > p,
.book-grid > p {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-ink-soft);
}

.media-card {
  background: var(--color-paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(32, 24, 38, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.media-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(32, 24, 38, 0.14);
}

.media-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--color-ink);
  overflow: hidden;
}

.media-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-card__play span {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--color-plum);
}

.media-card__body {
  padding: 20px 22px 24px;
}

.media-card__type {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-gold);
}

.media-card__body h3 {
  font-size: 1.15rem;
  margin: 8px 0 6px;
}

.media-card__meta {
  font-size: 0.85rem;
  color: var(--color-ink-soft);
}

/* =========================================================
   5. BOOKS
   ========================================================= */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 28px;
}

.book-card {
  text-align: center;
}

.book-card__cover {
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(32,24,38,0.18);
  margin-bottom: 14px;
  aspect-ratio: 2 / 3;
  background: var(--color-ink-soft);
  overflow: hidden;
}

.book-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-card h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.book-card span {
  font-size: 0.85rem;
  color: var(--color-ink-soft);
}

/* =========================================================
   6. NEWSLETTER / CTA BAND
   ========================================================= */
.cta-band {
  background: var(--color-ink);
  color: #fff;
  padding: 70px 0;
  text-align: center;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: #d9cfe0;
  max-width: 60ch;
  margin: 0 auto 28px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 14px 18px;
  border-radius: 999px;
  border: none;
  font-size: 1rem;
}

/* =========================================================
   7. SINGLE / ARCHIVE CONTENT
   ========================================================= */
.page-header {
  background: var(--color-ink);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  color: #fff;
  margin-bottom: 8px;
}

.page-header p {
  color: var(--color-blush);
}

.content-area {
  padding: 60px 0;
}

.entry-content {
  max-width: 760px;
  margin: 0 auto;
}

.entry-content iframe,
.entry-content video,
.entry-content audio {
  width: 100%;
  border-radius: var(--radius);
  margin: 24px 0;
}

.entry-meta {
  font-size: 0.9rem;
  color: var(--color-ink-soft);
  margin-bottom: 24px;
}

/* =========================================================
   7B. MEDIA PAGES
   ========================================================= */
.media-single__embed { max-width:1000px; margin:0 auto 54px; }
.jw-embed-wrap { position:relative; width:100%; aspect-ratio:16/9; background:#000; border-radius:var(--radius); overflow:hidden; }
.jw-embed-wrap iframe, .jw-embed-wrap embed, .jw-embed-wrap object { position:absolute; inset:0; width:100%; height:100%; border:0; }
.media-single__content { max-width:820px; }
.media-section { padding:42px 0; border-top:1px solid rgba(32,24,38,.12); }
.media-section:first-child { border-top:0; padding-top:0; }
.media-section h2 { font-size:clamp(1.7rem,3vw,2.2rem); margin-bottom:20px; }
.media-section__content p:last-child { margin-bottom:0; }
.related-film__link { display:grid; grid-template-columns:minmax(220px, 360px) 1fr; gap:24px; align-items:center; color:var(--color-ink); }
.related-film__link img { width:100%; border-radius:var(--radius); }
.related-film__link span { display:flex; flex-direction:column; gap:8px; font-family:var(--font-serif); font-size:1.35rem; }
.related-film__link small { font-family:var(--font-sans); color:var(--color-plum); font-size:.9rem; }
.section-action { text-align:center; margin-top:36px; }

@media (max-width:700px) { .related-film__link { grid-template-columns:1fr; } }

/* =========================================================
   8. FOOTER
   ========================================================= */
.site-footer {
  background: var(--color-plum-deep);
  color: #ecd9e3;
  padding: 60px 0 30px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 14px;
}

.footer-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-widget li {
  margin-bottom: 8px;
}

.footer-widget a {
  color: #ecd9e3;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: #cdb3c2;
}

/* =========================================================
   9. UTILITIES
   ========================================================= */
.screen-reader-text {
  position: absolute;
  clip: rect(1px, 1px, 1px, 1px);
  overflow: hidden;
  height: 1px;
  width: 1px;
}

/* =========================================================
   APPROVED WICKED WINTERS HOMEPAGE FINISH
   ========================================================= */

/* Header: spiral symbol only */
.site-branding__symbol {
  display:block;
  width:52px;
  height:52px;
  object-fit:contain;
}
.site-branding a {
  display:flex;
  align-items:center;
  min-height:52px;
}

/* Hero wording: WICKED WINTERS -> FEMALE-FOCUSSED FILMS -> line -> tagline */
.hero-bts__content {
  max-width:560px;
  padding:0 0 42px;
}
.hero-bts__logo {
  display:none;
}
.hero-bts__brand {
  display:block;
  font-family:var(--font-sans);
  font-size:clamp(2.2rem,4vw,3.25rem);
  font-weight:300;
  letter-spacing:.18em;
  line-height:1;
  color:#fff;
  margin:0 0 10px;
}
.hero-bts__subbrand {
  display:block;
  font-family:var(--font-sans);
  font-size:.76rem;
  font-weight:700;
  letter-spacing:.30em;
  color:#fff;
  margin:0 0 17px;
}
.hero-bts__rule {
  display:block;
  width:92px;
  height:2px;
  background:#e2b93e;
  margin:0 0 18px;
}
.hero-bts__tagline {
  color:#fff;
  font-size:1.08rem;
  line-height:1.55;
  max-width:47ch;
  margin:0;
  text-shadow:0 2px 12px rgba(0,0,0,.72);
}

/* The section immediately below the hero is deep purple, as in the mockup. */
.section--alt {
  background:#130d1d !important;
  color:#fff;
}
.section--alt .section-heading__eyebrow {
  color:#e2b93e;
}
.section--alt .section-heading h2 {
  color:#fff;
}
.section--alt .media-card {
  background:#0b0711;
  border:1px solid rgba(255,255,255,.16);
}
.section--alt .media-card__body {
  background:#0b0711;
}
.section--alt .media-card__title,
.section--alt .media-card h3 {
  color:#fff;
}
.section--alt .media-card__type {
  color:#e2b93e;
}
.section--alt .media-card__date {
  color:#d9d1df;
}

/* Keep the hero height/slide behaviour from the working carousel. */
@media (max-width:700px) {
  .site-branding__symbol { width:44px; height:44px; }
  .hero-bts__content { padding:0 0 42px; }
  .hero-bts__brand { font-size:1.85rem; letter-spacing:.13em; }
  .hero-bts__subbrand { font-size:.62rem; letter-spacing:.22em; }
  .hero-bts__tagline { font-size:.95rem; max-width:34ch; }
}

/* Automatic hero carousel only: no dots, arrows or manual controls */
.hero-carousel__dots,
.hero-carousel__controls,
.hero-carousel__prev,
.hero-carousel__next,
.hero-carousel button[aria-label*="Previous"],
.hero-carousel button[aria-label*="Next"],
.hero-carousel button[aria-label*="previous"],
.hero-carousel button[aria-label*="next"] {
  display:none !important;
}

/* =========================================================
   APPROVED MOCKUP — FINAL VISUAL TREATMENT
   ========================================================= */

/* Hero: keep the photography dominant and the typography restrained. */
.hero-carousel {
  height: 560px !important;
  min-height: 560px !important;
}

.hero-bts__inner {
  align-items: center !important;
}

.hero-bts__content {
  max-width: 500px !important;
  padding: 0 0 20px !important;
}

.hero-bts__brand {
  font-family: var(--font-sans) !important;
  font-size: clamp(1.9rem, 3vw, 2.55rem) !important;
  font-weight: 300 !important;
  letter-spacing: .18em !important;
  line-height: 1.05 !important;
  margin: 0 0 8px !important;
  color: #fff !important;
}

.hero-bts__subbrand {
  font-family: var(--font-sans) !important;
  font-size: .68rem !important;
  font-weight: 700 !important;
  letter-spacing: .30em !important;
  line-height: 1.2 !important;
  margin: 0 0 15px !important;
  color: #fff !important;
}

/* Longer gold rule with a soft fade at the right end. */
.hero-bts__rule {
  width: 205px !important;
  height: 2px !important;
  border: 0 !important;
  background: linear-gradient(
    90deg,
    #e2b93e 0%,
    #e2b93e 45%,
    rgba(226,185,62,.68) 68%,
    rgba(226,185,62,0) 100%
  ) !important;
  margin: 0 0 20px !important;
}

.hero-bts__tagline {
  font-family: var(--font-sans) !important;
  font-size: .98rem !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  max-width: 43ch !important;
  margin: 0 !important;
  color: #fff !important;
  text-shadow: 0 2px 10px rgba(0,0,0,.65) !important;
}

/* Deep-purple Latest Films section, matching the approved mockup. */
.section--alt {
  background: #130d1d !important;
  color: #fff !important;
  padding-top: 30px !important;
  padding-bottom: 72px !important;
}

.section--alt .section-heading__eyebrow {
  color: #e2b93e !important;
  font-size: .68rem !important;
  letter-spacing: .28em !important;
}

.section--alt .section-heading h2,
.section--alt h2 {
  color: #fff !important;
  font-size: clamp(2rem, 3vw, 2.65rem) !important;
  margin-top: 9px !important;
}

.section--alt .media-card {
  background: #0b0711 !important;
  border: 1px solid rgba(255,255,255,.15) !important;
}

.section--alt .media-card__body {
  background: #0b0711 !important;
}

.section--alt .media-card__title,
.section--alt .media-card h3 {
  color: #fff !important;
}

.section--alt .media-card__type {
  color: #e2b93e !important;
}

.section--alt .media-card__date {
  color: #d9d1df !important;
}

/* Symbol-only header, as in the mockup. */
.site-branding__symbol {
  width: 52px !important;
  height: 52px !important;
}

/* Mobile */
@media (max-width: 700px) {
  .hero-carousel {
    height: 520px !important;
    min-height: 520px !important;
  }
  .hero-bts__content {
    max-width: 360px !important;
    padding-bottom: 10px !important;
  }
  .hero-bts__brand {
    font-size: 1.75rem !important;
    letter-spacing: .13em !important;
  }
  .hero-bts__subbrand {
    font-size: .58rem !important;
    letter-spacing: .22em !important;
  }
  .hero-bts__rule {
    width: 155px !important;
  }
  .hero-bts__tagline {
    font-size: .92rem !important;
  }
}

/* Final positioning: approved hero copy sits bottom-left of the photograph. */
.hero-bts__inner {
  align-items: flex-end !important;
}
.hero-bts__content {
  padding: 0 0 58px !important;
  transform: translateY(0);
}
@media (max-width:700px) {
  .hero-bts__content {
    padding: 0 0 38px !important;
  }
}
