/* Romeo y Julieta 150th Anniversary — Humidor Sweepstakes
   Premium, heritage-driven, luxury cigar editorial. Brand: PROMPT 1–6. */

:root {
  --gold: #F1EADF;
  --gold-deep: #BC9D63;
  --silver: #C6C6C6;
  --bg: #0D0D0D;
  --bg-alt: #111;
  --bg-card: #1a1a1a;
  --bg-input: #1f1f1f;
  --text: #F1EADF;
  --text-muted: #C6C6C6;
  --border: #BC9D63;
  --border-gold: rgba(241, 234, 223, 0.2);

  --font-display: 'Cinzel', Georgia, serif;
  --font-body: 'Montserrat', system-ui, sans-serif;
  --font-secondary: 'League Spartan', var(--font-body);

  --width: min(92vw, 1200px);
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-reveal: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  background: #0D0D0D;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  background: #0D0D0D;
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--width);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 3rem);
}

/* ----- PROMPT 6: Navigation — minimal dark, transparent, gold border on scroll ----- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}

.site-header.scrolled {
  border-bottom-color: var(--gold-deep);
  background: rgba(13, 13, 13, 0.92);
}

.header-inner {
  max-width: var(--width);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logos {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.25rem);
}

.brand-logo-link {
  display: block;
  text-decoration: none;
}

.header-ca-logo {
  display: block;
  text-decoration: none;
  line-height: 0;
  opacity: 0.95;
  transition: opacity 0.2s var(--ease);
}

.header-ca-logo:hover {
  opacity: 1;
}

.ca-logo {
  display: block;
  height: clamp(26px, 2.75vw, 34px);
  width: auto;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
}

.brand-logo {
  display: block;
  height: clamp(34px, 3.25vw, 42px);
  width: auto;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-family: var(--font-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-link:hover {
  color: var(--gold-deep);
  opacity: 0.9;
}

.nav-cta {
  padding: 0.5rem 1rem;
  border: 1px solid var(--gold-deep);
}

/* ----- Reveals ----- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-reveal), transform 0.8s var(--ease-reveal);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-reveal), transform 0.6s var(--ease-reveal);
}

.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0.06s; }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.18s; }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.24s; }

.reveal-stagger.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Hero — JW Player hosted video, 100vh, overlay, centered content ----- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
  margin-bottom: 0;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: var(--bg);
}

.hero-media-parallax {
  will-change: transform;
}

#hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  min-height: 100%;
  min-width: 100%;
  z-index: 0;
}

#hero-video iframe,
#hero-video .jwplayer,
#hero-video div[class^="jw"] {
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
}

.hero-html5-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.hero-html5-video.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-html5-video:not(.is-active) {
  opacity: 0;
  pointer-events: none;
}

.hero-fallback-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  transition: opacity 0.5s ease;
  opacity: 0;
}

.hero-media.hero-video-ready .hero-fallback-img {
  opacity: 0;
  pointer-events: none;
}

/* Dark overlay above video, below text */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.75) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Hide JW Player branding and controls */
.jw-controls,
.jw-logo {
  display: none !important;
}

.hero-logo {
  display: block;
  width: auto;
  max-width: 320px;
  height: clamp(56px, 8vw, 80px);
  margin: 0 auto 1.5rem;
  object-fit: contain;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 6vw, 3.5rem);
  letter-spacing: 0.15em;
  color: var(--gold);
  margin: 0 0 0;
  line-height: 1.15;
  text-transform: uppercase;
}

.hero-rule {
  width: 80px;
  height: 1px;
  margin: 1.25rem auto;
  background: var(--gold-deep);
}

.hero-subhead {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  font-weight: 400;
  color: var(--silver);
  margin: 0;
  max-width: 28ch;
  margin-inline: auto;
}

.hero-tagline {
  font-family: var(--font-body);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: var(--silver);
  margin: 1.5rem 0 1.75rem;
}

.btn-hero-cta {
  display: inline-block;
  padding: 0.85rem 2.25rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold-deep);
  text-decoration: none;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.btn-hero-cta:hover {
  background: var(--gold);
  color: var(--bg);
}

.btn-hero-cta:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

/* ----- Copy section removed; content moved into lifestyle intro ----- */

/* ----- PROMPT 2 (fix): Lifestyle "150 Years of Craft" — heading + copy above, two images 60/40 flush, no dead space ----- */
.lifestyle-section {
  padding: 0;
  background: var(--bg-alt);
  margin: 0;
}

.lifestyle-intro {
  padding: clamp(3rem, 8vw, 5rem) clamp(1.5rem, 5vw, 3rem) clamp(4rem, 10vw, 5rem);
  background: var(--bg-alt);
  text-align: center;
}

.lifestyle-heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: 0.08em;
  color: var(--gold);
  margin: 0 0 0.5rem;
}

.lifestyle-divider {
  width: 60px;
  height: 1px;
  margin: 0 auto 1.5rem;
  background: var(--gold-deep);
}

.lifestyle-body {
  max-width: 42rem;
  margin-inline: auto;
}

.lifestyle-body p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--silver);
  font-weight: 300;
  margin: 0 0 1rem;
  text-align: center;
}

.lifestyle-body p:last-child {
  margin-bottom: 0;
}

.lifestyle-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  height: 75vh;
  min-height: 480px;
  padding: 0 clamp(1rem, 4vw, 2rem);
  gap: clamp(0.5rem, 2vw, 1rem);
  background: var(--bg-alt);
  box-sizing: border-box;
}

.lifestyle-img {
  overflow: hidden;
  min-height: 0;
  min-width: 0;
  background: var(--bg-alt);
  border-radius: 2px;
  box-sizing: border-box;
}

.lifestyle-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

@media (max-width: 700px) {
  .lifestyle-images {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 1fr);
    height: auto;
    min-height: auto;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
    max-width: 100%;
  }
  .lifestyle-img {
    min-height: 55vh;
  }
  .lifestyle-img img {
    width: 100%;
    height: 100%;
    min-height: 50vh;
    object-fit: cover;
    object-position: center center;
  }
}

/* ----- Prize — animated humidor open/close sequence, crossfade stack, progress bar ----- */
.prize-section {
  padding: 80px 0;
  background: var(--bg);
  margin: 0;
}

.prize-heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: 0.08em;
  color: var(--gold);
  text-align: center;
  margin: 0 0 0.5rem;
}

.prize-rule {
  width: 60px;
  height: 1px;
  margin: 0 auto 1rem;
  background: var(--gold-deep);
}

.prize-intro {
  text-align: center;
  font-size: 1rem;
  color: var(--silver);
  max-width: 55ch;
  margin-inline: auto;
  margin-bottom: 1rem;
  font-weight: 300;
  line-height: 1.7;
}

.prize-arv {
  text-align: center;
  font-size: 0.95rem;
  color: var(--gold);
  margin: -1rem auto 2.5rem;
  font-weight: 500;
}

.prize-animation-wrap {
  max-width: 500px;
  margin-inline: auto;
  position: relative;
  padding: 2rem;
  background: radial-gradient(ellipse at center, rgba(188, 155, 92, 0.12) 0%, transparent 70%);
  border-radius: 4px;
}

.prize-animation-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-height: 420px;
  background: transparent;
}

.prize-animation-stack .prize-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  pointer-events: none;
}

.prize-animation-stack .prize-frame.is-visible {
  opacity: 1;
}

.prize-animation-label {
  margin: 1rem 0 0.75rem;
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--silver);
  text-transform: uppercase;
  text-align: center;
}

.prize-progress-track {
  height: 3px;
  background: rgba(188, 155, 92, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.prize-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gold-deep);
  border-radius: 2px;
}

@media (max-width: 560px) {
  .prize-animation-wrap {
    padding: 1rem;
  }
  .prize-animation-stack {
    max-height: 280px;
  }
}

/* ----- PROMPT 5: Entry form — dark card, gold border, dark inputs, gold submit ----- */
.entry-section {
  padding: clamp(4rem, 10vw, 6rem) 0;
  background: var(--bg-alt);
}

.entry-heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: 0.08em;
  color: var(--gold);
  text-align: center;
  margin: 0 0 0.5rem;
}

.entry-intro {
  text-align: center;
  font-size: 1rem;
  color: var(--silver);
  margin: 0 0 2rem;
  font-weight: 300;
}

.entry-card {
  max-width: 32rem;
  margin-inline: auto;
  padding: 48px;
  background: var(--bg-card);
  border: 1px solid var(--gold-deep);
}

.entry-form-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-align: center;
  margin: 0 0 1.5rem;
}

.entry-legal {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 300;
  color: var(--silver);
  margin: 0 0 1rem !important;
  line-height: 1.5;
}

.entry-form-grid {
  display: grid;
  gap: 1rem;
}

.entry-form-grid--2 { grid-template-columns: 1fr 1fr; }
.entry-form-grid--3 { grid-template-columns: 1fr 1fr 1fr; }

@media (max-width: 600px) {
  .entry-form-grid--2,
  .entry-form-grid--3 {
    grid-template-columns: 1fr;
  }
  .entry-card {
    padding: 1.5rem;
  }
}

.entry-field label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.entry-field input,
.entry-field select {
  width: 100%;
  padding: 0.6rem 0;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: #fff;
  background: var(--bg-input);
  border: none;
  border-bottom: 1px solid var(--gold-deep);
  border-radius: 0;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.entry-field input::placeholder {
  color: rgba(255,255,255,0.4);
}

.entry-field input:focus,
.entry-field select:focus {
  outline: none;
  border-bottom-color: var(--gold);
  box-shadow: 0 1px 0 0 var(--gold);
}

.entry-field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23F1EADF' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  padding-right: 1.5rem;
}

.entry-field .hint {
  font-size: 0.7rem;
  color: var(--silver);
  margin-top: 0.25rem;
  font-weight: 300;
}

.entry-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.entry-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.8125rem;
  color: var(--silver);
  font-weight: 300;
}

.entry-checkbox-label input {
  margin-top: 0.2rem;
  width: 1rem;
  height: 1rem;
  accent-color: var(--gold-deep);
  cursor: pointer;
}

.entry-card a.entry-rules-link {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.entry-card a.entry-rules-link:hover {
  color: var(--gold-deep);
}

.entry-submit-wrap {
  padding-top: 1.25rem;
}

.entry-submit {
  width: 100%;
  padding: 1rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--gold-deep);
  color: var(--bg);
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: opacity 0.2s var(--ease), filter 0.2s var(--ease);
}

.entry-submit:hover:not(:disabled) {
  opacity: 0.95;
  filter: brightness(1.08);
}

.entry-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.entry-success {
  padding: 1rem;
  background: rgba(188, 155, 92, 0.15);
  border: 1px solid var(--gold-deep);
  color: var(--gold);
  font-size: 0.9375rem;
  font-weight: 300;
  margin-bottom: 1rem;
  display: none;
}

.entry-success.is-visible {
  display: block;
}

.entry-card p {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--silver);
  font-weight: 300;
}

.entry-card p.entry-legal {
  margin-top: 1rem !important;
  padding-top: 1rem;
  border-top: 1px solid var(--border-gold);
  font-size: 11px;
}

/* ----- Footer — Cigar Aficionado logo, 2026 All rights reserved, legal ----- */
.site-footer {
  padding: clamp(1.25rem, 4vw, 2rem) 0;
  background: #0D0D0D;
  text-align: center;
  border-top: 1px solid var(--gold-deep);
}

.footer-inner {
  max-width: var(--width);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-ca-logo {
  display: block;
  height: 40px;
  width: auto;
  object-fit: contain;
  margin-bottom: 0.25rem;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--silver);
  margin: 0;
}

.footer-legal {
  font-size: 11px;
  color: var(--silver);
  opacity: 0.9;
  margin: 0;
}

.site-footer p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  color: var(--silver);
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.footer-links {
  margin-top: 0.25rem;
}

.footer-links a {
  color: var(--silver);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 12px;
  font-weight: 300;
  transition: color 0.2s var(--ease);
}

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

/* Prevent main/body from creating white space below footer */
main {
  min-height: 0;
}

html, body {
  min-height: 100%;
  background: #0D0D0D;
}

/* ----- Cookie banner — dark theme ----- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-alt);
  border-top: 1px solid var(--gold-deep);
  padding: 1rem 1.5rem;
  display: none;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner-inner {
  max-width: var(--width);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.cookie-banner p {
  margin: 0;
  flex: 1;
  min-width: 260px;
  font-size: 0.8125rem;
  color: var(--silver);
  line-height: 1.5;
  font-weight: 300;
}

.cookie-banner p strong {
  color: var(--gold);
}

.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-banner .btn-cookie {
  padding: 0.5rem 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 0;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s, border-color 0.2s;
  font-family: var(--font-body);
}

.cookie-banner .btn-cookie-accept {
  background: var(--gold-deep);
  color: var(--bg);
  border: 1px solid var(--gold-deep);
}

.cookie-banner .btn-cookie-accept:hover {
  opacity: 0.9;
}

.cookie-banner .btn-cookie-essential {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-deep);
}

.cookie-banner .btn-cookie-essential:hover {
  background: rgba(188, 155, 92, 0.15);
}

body { padding-top: 0; }
.hero { margin-top: 0; }
