/* ==========================================================================
   Amercook homepage hero - "dark cinema + gold light"
   Loads AFTER stylesheet/ac-home.css and refines the .ac-hero block there.
   Concept: deep navy stage, rotating gold light rays, a soft warm light bloom
   (.ac-hero-disc, two thin rings, no hard edge) carrying a rotating set of
   product shots, Outfit Light display headline, rotating claims line, claims
   marquee along the bottom edge, slim gold index on the right.
   Every animation is disabled under prefers-reduced-motion.
   ========================================================================== */

/* ---------- 1. no space above the hero ----------
   Neutralise whatever the theme leaves above the hero; the BOM text nodes the
   platform prepends to each visual block are removed by the footer script. */
*:has(+ .ac-hero) { margin-bottom: 0 !important; padding-bottom: 0 !important; }
*:has(> .ac-hero) { margin-top: 0 !important; padding-top: 0 !important; }
body:has(.ac-hero) { padding-top: 0 !important; }
#header, #header > *, #pav-mainnav, #pav-mainnav .navbar, #pav-mainnav .container, #pav-mainnav .row, #pav-mainnav .navbar-collapse {
  margin-bottom: 0 !important; padding-bottom: 0 !important;
}
#content, #columns, .content-top, .content-bottom, .box-banners, .tb-padding { margin: 0 !important; padding: 0 !important; }
.ac-hero { margin-top: 0 !important; }

/* ---------- 2. stage ---------- */
.ac-hero {
  position: relative; overflow: hidden; display: flex; align-items: center;
  min-height: min(700px, 80vh);
  isolation: isolate; /* keeps the product blend inside the hero */
  background:
    radial-gradient(90% 120% at 82% 18%, rgba(35,48,104,.55) 0%, rgba(12,18,48,0) 62%),
    radial-gradient(125% 125% at 76% 24%, #17214d 0%, #0b1130 44%, #05081a 100%);
}

/* rotating gold rays (slightly more present than before) */
.ac-hero-rays {
  position: absolute; z-index: 0; left: -40%; top: -60%; width: 180%; height: 220%;
  background: conic-gradient(from 0deg at 74% 30%,
    rgba(222,185,138,0) 0deg, rgba(222,185,138,.2) 7deg, rgba(222,185,138,0) 15deg,
    rgba(222,185,138,0) 38deg, rgba(238,129,24,.16) 46deg, rgba(222,185,138,0) 55deg,
    rgba(222,185,138,0) 118deg, rgba(222,185,138,.14) 126deg, rgba(222,185,138,0) 138deg,
    rgba(222,185,138,0) 360deg);
  animation: acRays 120s linear infinite; pointer-events: none;
}
@keyframes acRays { to { transform: rotate(360deg); } }

/* ---------- soft warm light bloom (no hard disc edge) + two thin rings ---------- */
.ac-hero-disc {
  position: absolute; z-index: 1; top: 50%; right: -2%; width: min(64vw,1000px); aspect-ratio: 1/1;
  transform: translateY(-50%); border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(222,185,138,0) 70.9%, rgba(222,185,138,.20) 71.1%, rgba(222,185,138,.20) 71.35%, rgba(222,185,138,0) 71.6%),
    radial-gradient(circle at 50% 50%, rgba(222,185,138,0) 84.2%, rgba(222,185,138,.12) 84.4%, rgba(222,185,138,.12) 84.65%, rgba(222,185,138,0) 84.9%),
    radial-gradient(circle at 44% 40%,
      rgba(252,236,209,.99) 0%,
      rgba(243,213,174,.94) 20%,
      rgba(228,190,142,.72) 38%,
      rgba(205,158,113,.4) 54%,
      rgba(176,131,86,.14) 68%,
      rgba(150,110,72,0) 80%);
  animation: acGlow 11s ease-in-out infinite; pointer-events: none;
}
.ac-hero-disc:after { content: none; }
@keyframes acGlow { 0%,100% { opacity: .88; } 50% { opacity: 1; } }

/* the old hard-edge glow hook is no longer used */
.ac-hero:before { content: none; }

/* ---------- product stage ---------- */
.ac-hero-stage {
  position: absolute; z-index: 2; top: 50%; right: 5%; width: min(38vw,600px); aspect-ratio: 1/1;
  transform: translateY(-50%);
  mix-blend-mode: multiply; /* blends as one group with the bloom underneath */
  animation: acFloat 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes acFloat {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(-53.5%); }
}
.ac-hero-shot {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background-position: center; background-size: contain; background-repeat: no-repeat;
  opacity: 0; transform: scale(.955);
  transition: opacity 1s ease, transform 1.5s ease;
}
.ac-hero-shot.is-on { opacity: 1; transform: none; }

/* ---------- shot index: slim vertical gold bars on the right edge ---------- */
.ac-hero-dots {
  position: absolute; z-index: 5; right: 26px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.ac-hero-dots i {
  display: block; width: 2px; height: 22px; border-radius: 2px; cursor: pointer;
  background: rgba(222,185,138,.32); transition: height .3s ease, background .3s ease;
}
.ac-hero-dots i:hover { background: rgba(222,185,138,.65); }
.ac-hero-dots i.is-on { height: 38px; background: #DEB98A; box-shadow: 0 0 12px rgba(222,185,138,.5); }

/* ---------- scrim + vignette ---------- */
.ac-hero-scrim {
  position: absolute; z-index: 4; top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(90deg, rgba(5,8,26,.74) 0%, rgba(5,8,26,.56) 30%, rgba(5,8,26,.3) 50%, rgba(5,8,26,.04) 68%, rgba(5,8,26,0) 82%);
}
.ac-hero-vig {
  position: absolute; z-index: 5; top: 0; right: 0; bottom: 0; left: 0;
  background: radial-gradient(120% 92% at 50% 48%, rgba(0,0,0,0) 44%, rgba(0,0,0,.5) 100%);
  pointer-events: none;
}

/* ---------- copy ---------- */
.ac-hero-in { position: relative; z-index: 6; width: 100%; padding-top: 68px; padding-bottom: 118px; }
.ac-copy { max-width: 40em; }
.ac-hero .ac-eyebrow { color: var(--ac-gold); font-size: .72em; letter-spacing: .3em; margin-bottom: 22px; }
.ac-h1 {
  font-size: clamp(2.3em, 5vw, 4.6em); line-height: 1.05; font-weight: 300;
  letter-spacing: .004em; color: #FCE7C8; margin: 0 0 20px;
}
.ac-h1 em { font-style: normal; color: var(--ac-gold); }

.ac-rot { position: relative; height: 1.9em; margin: 0 0 20px; font-size: .8em; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase; color: var(--ac-gold); }
.ac-rot-i { position: absolute; top: 0; left: 0; opacity: 0; transform: translateY(9px);
  transition: opacity .6s ease, transform .6s ease; }
.ac-rot-i.is-on { opacity: 1; transform: none; }
.ac-rot-i:before { content: ""; display: inline-block; width: 26px; height: 1px; margin-right: 12px;
  vertical-align: middle; background: rgba(222,185,138,.6); }

.ac-hero p { font-size: 1.1em; line-height: 1.8; color: rgba(252,231,200,.74); max-width: 32em; margin: 0 0 34px; }
.ac-claims { margin: -18px 0 30px; font-size: .76em; line-height: 1.6; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ac-gold); }

/* ---------- buttons ---------- */
.ac-btns { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.ac-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ac-gold); color: var(--ac-navy) !important;
  padding: 17px 34px; font-size: .78em; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none !important; box-shadow: 0 16px 36px rgba(222,185,138,.22);
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease, color .25s ease;
}
.ac-btn svg { width: 15px; height: 15px; display: block; transition: transform .25s ease; }
.ac-btn:hover { background: var(--ac-orange); color: #fff !important; transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(238,129,24,.3); }
.ac-btn:hover svg { transform: translateX(4px); }
.ac-tlink { font-size: .78em; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: #FCE7C8 !important; text-decoration: none !important; padding-bottom: 8px;
  border-bottom: 1px solid rgba(222,185,138,.5); transition: color .25s ease, border-color .25s ease; }
.ac-tlink:hover { color: var(--ac-gold) !important; border-color: var(--ac-gold); }

/* ---------- stats ---------- */
.ac-hero-stat { display: flex; gap: 38px; flex-wrap: wrap; margin-top: 30px; }
.ac-hero-stat span { font-size: .74em; letter-spacing: .2em; text-transform: uppercase; color: rgba(252,231,200,.6); }
.ac-hero-stat b { display: block; margin-bottom: 6px; font-size: 1.9em; font-weight: 300; letter-spacing: .02em;
  text-transform: none; color: var(--ac-gold); }

/* ---------- bottom marquee ---------- */
.ac-marq { position: absolute; z-index: 7; left: 0; right: 0; bottom: 0; overflow: hidden;
  border-top: 1px solid rgba(222,185,138,.26); background: rgba(5,8,26,.5); padding: 15px 0; }
.ac-marq-r { display: flex; width: -webkit-max-content; width: max-content; animation: acMarq 40s linear infinite; }
.ac-marq-t { display: block; white-space: nowrap; padding-right: 40px; font-size: .72em; font-weight: 700;
  letter-spacing: .34em; text-transform: uppercase; color: rgba(222,185,138,.82); }
@keyframes acMarq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ac-marq:hover .ac-marq-r { animation-play-state: paused; }

/* ---------- scroll cue ---------- */
.ac-scroll { position: absolute; z-index: 8; left: 50%; bottom: 88px; margin-left: -1px; width: 1px; height: 58px;
  background: linear-gradient(180deg, rgba(222,185,138,0) 0%, rgba(222,185,138,.75) 100%); }
.ac-scroll:after { content: ""; position: absolute; left: -2px; top: 0; width: 5px; height: 5px; border-radius: 50%;
  background: var(--ac-gold); animation: acCue 2.4s ease-in-out infinite; }
@keyframes acCue {
  0% { transform: translateY(0); opacity: 0; }
  25% { opacity: 1; }
  100% { transform: translateY(46px); opacity: 0; }
}

/* ---------- entrance ---------- */
.ac-copy > * { animation: acUp .9s cubic-bezier(.2,.7,.2,1) both; }
.ac-copy > *:nth-child(2) { animation-delay: .06s; }
.ac-copy > *:nth-child(3) { animation-delay: .12s; }
.ac-copy > *:nth-child(4) { animation-delay: .18s; }
.ac-copy > *:nth-child(5) { animation-delay: .24s; }
.ac-copy > *:nth-child(6) { animation-delay: .3s; }
.ac-copy > *:nth-child(7) { animation-delay: .36s; }
@keyframes acUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .ac-hero { min-height: min(660px, 76vh); }
  .ac-hero-disc { right: -10%; width: 74vw; }
  .ac-hero-stage { right: -3%; width: 50vw; }
  .ac-hero-dots { right: 18px; }
}
@media (max-width: 900px) {
  .ac-hero { display: block; min-height: 0; }
  .ac-hero-disc { top: auto; bottom: -14%; right: -30%; width: 96vw; transform: none; }
  .ac-hero-stage { top: auto; bottom: -2%; right: -12%; width: 72vw; transform: none; animation: none; }
  .ac-hero-scrim { background: linear-gradient(180deg, rgba(5,8,26,.94) 0%, rgba(5,8,26,.78) 40%, rgba(5,8,26,.24) 70%, rgba(5,8,26,0) 100%); }
  .ac-hero-in { padding-top: 54px; padding-bottom: 300px; }
  .ac-h1 { font-size: clamp(2em, 8.4vw, 3.1em); }
  .ac-hero-stat { gap: 24px; margin-top: 28px; }
  .ac-scroll { display: none; }
  .ac-marq-t { letter-spacing: .26em; }
  /* index becomes a horizontal row above the marquee */
  .ac-hero-dots { right: auto; left: 50%; top: auto; bottom: 66px; transform: translateX(-50%); flex-direction: row; align-items: center; }
  .ac-hero-dots i { width: 22px; height: 2px; }
  .ac-hero-dots i.is-on { width: 38px; height: 2px; box-shadow: none; }
}
@media (max-width: 560px) {
  .ac-hero-in { padding-bottom: 250px; }
  .ac-btn { padding: 15px 26px; }
  .ac-hero-stat b { font-size: 1.6em; }
  .ac-hero-dots { bottom: 58px; }
}

/* ---------- motion off ---------- */
@media (prefers-reduced-motion: reduce) {
  .ac-hero-rays, .ac-hero-disc, .ac-hero-stage, .ac-marq-r, .ac-scroll:after, .ac-copy > * {
    animation: none !important;
  }
  .ac-rot-i { transition: none; }
  .ac-hero-shot { transition: opacity .3s ease; }
}
