/*
Theme Name: Jack's Cut Reviews
Theme URI: https://jcreviews.com
Author: G. F. Edward / Jack
Description: Landing + review blog for YouTube videos and Amazon product links. Domain: jcreviews.com. Noir/gold JCR look. Footer: socials, newsletter, Clean-Cut Docs.
Version: 1.3.3
Text Domain: jcr
Requires at least: 6.0
Requires PHP: 8.0
*/

:root {
  --bg: #0b0b0c;
  --bg-card: #141416;
  --fg: #f3ead2;
  --muted: #a89a7a;
  --gold: #c9a84c;
  --gold-bright: #e0c05a;
  --line: #2a2a2e;
  --font-display: "Cinzel Decorative", Georgia, serif;
  --font-body: "Jost", system-ui, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --wrap: 70rem;
  /* Fixed bar height — page content is always pushed below this */
  --header-height: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 0.15em; }
a:hover { color: var(--gold-bright); }

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 200;
  background: var(--gold);
  color: #111;
  padding: 0.5rem 1rem;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/*
 * Header is FIXED so it never paints over the hero.
 * .site gets matching top padding — banner starts fully under the bar.
 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  /* solid (not frosted) so hero never shows “through” the nav */
}
.site {
  /* Reserve space so main/hero are never under the fixed header */
  padding-top: var(--header-height);
  min-height: 100vh;
}
/* Logged-in WP admin bar */
body.admin-bar .site-header {
  top: 32px;
}
body.admin-bar .site {
  padding-top: calc(var(--header-height) + 32px);
}
@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
  body.admin-bar .site {
    padding-top: calc(var(--header-height) + 46px);
  }
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-height);
  min-height: var(--header-height);
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--fg);
}
.site-brand img {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  /* PNG has transparent corners — don't force a square frame that shows nips */
  border: none;
  border-radius: 0.45rem;
  background: transparent;
}
.site-brand span {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
@media (max-width: 640px) {
  .site-brand span { display: none; }
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--fg);
  padding: 0.4rem 0.75rem;
  font: inherit;
  cursor: pointer;
}
.primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.primary-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  color: var(--gold);
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .primary-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: flex-start; gap: 0.85rem; }
}

/*
 * Hero — simplest stack that works on mobile Safari + desktop.
 * NO absolute positioning on the <img> (was collapsing to blank on some phones).
 * Background-image on .hero-stage is a second paint path if <img> is blocked/cached empty.
 */
.hero.hero--split {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  background: var(--bg);
}
.hero-stage {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  min-height: 12rem;
  background-color: #050506;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  border-bottom: 1px solid var(--line);
}
/* In-flow image: width 100%, height from aspect ratio of file — always paints on iOS */
.hero-stage-img {
  display: block !important;
  position: static !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  object-fit: unset !important;
  background: #050506;
}
/* Scene-only variant: CSS wordmark sits high on empty upper third */
.hero-wordmark-wrap {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 2;
  padding: 1.1rem 1rem 0.5rem;
  text-align: center;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5,5,6,0.72) 0%, rgba(5,5,6,0.25) 70%, transparent 100%);
}
.hero-wordmark {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 6.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-bright);
  text-shadow: 0 2px 18px rgba(0,0,0,0.65);
  line-height: 1.15;
}
.hero-wordmark::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 2px;
  margin: 0.55rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
/* Solid section under the image — never on top of cards */
.hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
  padding: 1.65rem 0 2.35rem;
  background: var(--bg);
  border-top: none;
  pointer-events: auto;
}
.hero-copy-inner {
  max-width: 40rem;
  margin-inline: auto;
  padding: 0 1rem;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.hero-kicker {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.85rem;
}
.hero-copy h1 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.35rem, 4.2vw, 2.15rem);
  line-height: 1.35;
  margin: 0 0 1rem;
  color: var(--fg);
  text-shadow: none;
}
.hero-lead {
  display: block;
  color: var(--muted);
  margin: 0 0 1.35rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.deco-divider {
  display: block;
  height: 1px;
  width: 5rem;
  margin: 1rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

@media (min-width: 768px) {
  .hero-stage {
    min-height: 18rem;
  }
  .hero-copy {
    padding: 2rem 0 2.75rem;
    background: var(--bg);
  }
  .hero-copy-inner {
    max-width: 42rem;
  }
  .hero-copy h1 {
    font-size: clamp(1.5rem, 2.2vw, 2.15rem);
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--gold);
  color: #111;
  background: var(--gold);
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover {
  background: var(--gold-bright);
  color: #111;
}
.btn-outline {
  background: transparent;
  color: var(--fg);
  border-color: rgba(201, 168, 76, 0.5);
}
.btn-outline:hover {
  background: rgba(201, 168, 76, 0.12);
  color: var(--gold-bright);
}

/* Sections */
.section {
  padding: 3.5rem 0;
}
.section-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2rem;
}
.section-head .eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.65rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: 0;
  line-height: 1.2;
}
.section-alt {
  background: #0f0f11;
  border-block: 1px solid var(--line);
}

/* Review cards grid */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}
@media (max-width: 900px) {
  .review-grid { grid-template-columns: 1fr; }
}
.review-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
  overflow: hidden;
}
.review-card:hover {
  border-color: rgba(201, 168, 76, 0.55);
  transform: translateY(-2px);
  color: inherit;
}
.review-card-thumb {
  aspect-ratio: 16 / 9;
  background: #1a1a1e;
  overflow: hidden;
}
.review-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.review-card-body {
  padding: 1.15rem 1.2rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.review-card .meta {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.review-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0;
  line-height: 1.25;
  color: var(--fg);
}
.review-card .excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-family: var(--font-serif);
  flex: 1;
}

/* Single review */
.site-main { padding: 2.5rem 0 3.5rem; }
.entry-header {
  max-width: 42rem;
  margin: 0 auto 1.5rem;
}
.entry-header .meta {
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}
.entry-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  margin: 0;
}
.review-video {
  max-width: 48rem;
  margin: 0 auto 1.75rem;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line);
}
.review-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.entry-content {
  max-width: 42rem;
  margin: 0 auto;
  font-family: var(--font-serif);
  font-size: 1.15rem;
}
.entry-content h2,
.entry-content h3 {
  font-family: var(--font-display);
  color: var(--fg);
}
.affiliate-box {
  max-width: 42rem;
  margin: 2rem auto 0;
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(201, 168, 76, 0.4);
  background: var(--bg-card);
}
.affiliate-box h2 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.75rem;
}
.affiliate-box ul {
  margin: 0;
  padding-left: 1.1rem;
}
.affiliate-box li { margin-bottom: 0.45rem; }
.affiliate-note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  font-family: var(--font-body);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.75rem 0 1.5rem;
  margin-top: 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand img {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: contain;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  margin-bottom: 0.75rem;
}
.footer-brand p {
  color: var(--muted);
  font-family: var(--font-serif);
  margin: 0;
  max-width: 22rem;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.85rem;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li { margin-bottom: 0.45rem; }
.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-serif);
}
.footer-col a:hover { color: var(--gold); }
.footer-social {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}
.footer-social-icon {
  flex: 0 0 1.35rem;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.12rem;
  color: var(--gold);
}
.footer-social-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}
.footer-social:hover .footer-social-icon { color: var(--fg); }
.footer-social-text { min-width: 0; }
.footer-social-label { display: block; }
.footer-note {
  display: block;
  font-size: 0.85rem;
  opacity: 0.75;
  margin-top: 0.25rem;
}
.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.newsletter-form input[type="email"] {
  flex: 1 1 10rem;
  min-width: 0;
  padding: 0.65rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--fg);
  font: inherit;
}
.newsletter-form button {
  padding: 0.65rem 1rem;
  background: var(--gold);
  border: 0;
  color: #111;
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute !important;
  width: 1px;
}
