/* PCA Las Vegas Christmas theme.
   Switch: include this file and /js/xmas.js?v=x6 on every page.
   Does not change club red CTAs or click-tracker links. */

:root{
  --xmas-nav-pad:18px;
  --nav-h:86px;
  --xmas-green:#1f7a45;
  --xmas-green-bright:#3caa62;
  --xmas-green-deep:#145530;
  --xmas-green-line:rgba(31,122,69,.7);
  --xmas-green-wash:rgba(31,122,69,.28);
  --xmas-stripe:repeating-linear-gradient(
    90deg,
    #d5001c 0 11px,
    #f6f3ec 11px 13px,
    #1f7a45 13px 24px,
    #f6f3ec 24px 26px
  );
}

/* Candy-stripe band under the fixed header. */
.site-nav{
  border-bottom:0;
  padding-top:var(--xmas-nav-pad);
}
.site-nav .brand{height:68px}
.site-nav::after{content:none}

/* Holly garland hanging just under the stripe. */
.site-nav::before{content:none}

/* Matching stripe and a light garland at the top of the footer. */
.site-footer{position:relative; padding-top:2.6rem}
.site-footer::before{
  content:"";
  position:absolute;
  left:0; right:0; top:0;
  height:6px;
  background:var(--xmas-stripe);
  pointer-events:none;
}
.site-footer::after{
  content:"";
  position:absolute;
  left:0; right:0;
  top:6px;
  height:16px;
  background:url("/assets/xmas-garland.png") repeat-x center / auto 16px;
  pointer-events:none;
}

/* Santa hat: about 1.6x the earlier size. The brim sits on the right
   edge of the sign (touches or slightly overlaps that gold edge), just
   past the PORSCHE e, tilted 12deg clockwise. Must not cover the PORSCHE
   letters or LAS VEGAS, and must not overlap the nav. The overlay box is
   larger so the flop is not clipped. */
.brand::after,
.footer-logo::after{
  content:"";
  position:absolute;
  pointer-events:none;
  z-index:3;
  background:url("/assets/xmas-hat.svg") no-repeat;
  background-size:32% auto;
  background-position:79.9% 40.5%;
  transform:translate(calc(var(--logo-h) * -0.17), calc(var(--logo-h) * 0.03)) rotate(12deg);
  transform-origin:58.7% 68%;
  width:calc(var(--logo-h) * 266 / 187 * 1.50);
  height:calc(var(--logo-h) * 0.75);
  top:calc(var(--logo-h) * -0.15);
}

.brand::after{
  --logo-h:126px;
  left:18px;
}
@media (max-width:960px){
  .brand::after{--logo-h:84px; left:4px}
}
@media (min-width:961px) and (max-width:1180px){
  .brand::after{--logo-h:96px; left:4px}
}
@media (max-width:620px){
  .brand::after{--logo-h:76px; left:4px}
}
@media (max-width:380px){
  .brand::after{--logo-h:68px; left:4px}
}
@media (max-width:620px){
  .site-nav.scrolled .brand::after{--logo-h:60px; top:calc(4px + var(--logo-h) * -0.10)}
}

.footer-logo{position:relative; display:inline-block; width:fit-content}
.footer-logo::after{
  --logo-h:130px;
  left:0;
}

/* Header tree, large enough to read the ornaments, still clear of Menu on phones. */
.nav-cta{position:relative}
.nav-cta::after{
  content:"";
  display:block;
  flex-shrink:0;
  width:42px;
  height:58px;
  margin-left:.25rem;
  background:url("/assets/xmas-tree.svg") no-repeat center / contain;
  pointer-events:none;
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.45));
}
@media (max-width:960px){
  .nav-cta::after{width:34px; height:48px}
}
@media (max-width:480px){
  .nav-cta::after{width:26px; height:36px; margin-left:.15rem}
}

/* Footer tree, larger so the decorated illustration is clear. */
.footer-logo::before{
  content:"";
  position:absolute;
  left:-58px;
  top:50%;
  transform:translateY(-50%);
  width:52px;
  height:72px;
  background:url("/assets/xmas-tree.svg") no-repeat center / contain;
  pointer-events:none;
  filter:drop-shadow(0 2px 4px rgba(0,0,0,.45));
}
@media (max-width:620px){
  .footer-logo::before{left:-44px; width:40px; height:56px}
}

/* Visible red and green accents. Club red CTAs stay --guards. */
.site-nav.scrolled{background:rgba(5,5,5,.94)}
.eyebrow::before{content:none}
.nav-links a:hover,
.nav-links a.active{
  background:var(--xmas-green-wash);
  color:#eaf8ee;
}
.nav-toggle:hover{border-color:var(--xmas-green-bright); color:var(--xmas-green-bright)}
.btn-ghost:hover{border-color:var(--xmas-green-bright); color:var(--xmas-green-bright)}
.footer-grid a:hover{color:var(--xmas-green-bright); box-shadow:inset 0 -2px 0 var(--xmas-green-bright)}
.footer-grid h4{color:var(--xmas-green-bright)}
.footer-legal{border-top:1px solid var(--xmas-green-line)}
.activity-card:hover,
a.activity-card:hover,
.board-card:hover{box-shadow:inset 0 0 0 2px var(--xmas-green-bright)}
.text-link:hover,
.page-hero .lead a:hover{color:var(--xmas-green-bright)}

/* Festive section dividers. */
.page-hero,
.cta-band,
.footer-affiliates{border-top:3px solid transparent; border-image:var(--xmas-stripe) 1}

/* Give the hanging garland a little room under the nav. */
.page-hero{padding-top:calc(var(--nav-h) + 3.7rem)}

/* Seasonal hero: show most of the 16:9 frame (911, sleigh, Bellagio)
   instead of a tight cover crop. Dark fill behind letterboxing. */
.hero-bg{background:#050506; top:var(--nav-h)}
.hero-video{
  object-fit:contain;
  object-position:center;
}
.hero-scrim{
  background:
    linear-gradient(180deg, rgba(5,5,5,.18) 0%, rgba(5,5,5,.12) 42%, rgba(5,5,5,.88) 100%);
}
.hero{
  min-height:0;
  aspect-ratio:auto;
  height:calc(100vw * 9 / 16 + var(--nav-h));
  padding-top:calc(var(--nav-h) + 2.2rem);
  padding-bottom:3.2rem;
}
@media (max-width:960px){
  /* Phones and tablets: video sits full width under the nav, type below it. */
  .hero{
    background:#050506;
    aspect-ratio:auto;
    height:auto;
    min-height:0;
    padding-top:calc(var(--nav-h) + 100vw * 9 / 16 + 1.6rem);
    padding-bottom:2.6rem;
  }
  .hero-bg{bottom:auto; height:calc(100vw * 9 / 16)}
  .hero-video{object-fit:cover; object-position:center}
  .hero-scrim{background:linear-gradient(180deg, rgba(5,5,5,0) 70%, rgba(5,5,5,.6) 100%)}
  #xmas-hero-toggle{bottom:auto; top:calc(var(--nav-h) + 100vw * 9 / 16 - 3rem); right:.75rem}
}
/* Wide desktop: the bigger hat needs a little room before HOME. */
@media (min-width:1180px){
  .site-nav .nav-links{margin-left:2.6rem}
}
/* Hero pause control (WCAG 2.2.2). */
#xmas-hero-toggle{
  position:absolute; right:1rem; bottom:1rem; z-index:5;
  width:2.4rem; height:2.4rem; border-radius:50%;
  border:1px solid rgba(255,255,255,.45); background:rgba(5,5,5,.55);
  color:#fff; font-size:.8rem; line-height:1; cursor:pointer;
}
#xmas-hero-toggle:hover,#xmas-hero-toggle:focus-visible{border-color:var(--xmas-green-bright); outline:none}

/* Snow overlay: unchanged from the first theme. Home page only, painted by xmas.js. */
#xmas-snow{
  position:fixed;
  inset:0;
  z-index:85;
  pointer-events:none;
  overflow:hidden;
  contain:strict;
}
#xmas-snow.xmas-snow-out{opacity:0; transition:opacity 1.2s ease}
#xmas-snow .xmas-flake{
  position:absolute;
  top:-8%;
  width:12px;
  height:12px;
  background:url("/assets/xmas-flake.svg") no-repeat center / contain;
  opacity:.7;
  animation-name:xmas-fall;
  animation-timing-function:linear;
  animation-fill-mode:forwards;
  will-change:transform,opacity;
}
@keyframes xmas-fall{
  0%{transform:translate3d(0,-8vh,0) rotate(0deg); opacity:0}
  12%{opacity:.7}
  100%{transform:translate3d(var(--xmas-drift,12px),108vh,0) rotate(160deg); opacity:.2}
}
@media (prefers-reduced-motion:reduce){
  #xmas-snow{display:none}
}

/* Stories page: the logo covers the title, so hide it during the holiday theme (kept for screen readers). */
.xmas-road main .section-head .eyebrow{display:none}
.xmas-road main .section-head h1{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap}
.xmas-road main .section-head{padding-top:4rem}
@media (max-width:960px){ .xmas-road main .section-head{padding-top:2.6rem} }
