/* =========================================================
   1. GOLDEN BOY / WIN HERO – BASE LAYOUT & BACKGROUND
   ========================================================= */

/* Win hero layout */
.ggb-hero { position: relative; overflow: hidden; background: #000; perspective: 800px; perspective-origin: 50% 40%; padding: 172px 0 114px; }
#golden-boy::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, #000 0%, #000 50%, transparent 90%); z-index: 1; pointer-events: none; }
.ggb-hero-bg-slider { position: absolute; inset: 0; z-index: 0; pointer-events: none; width: 50%; max-width: 50%; margin-left: auto; overflow: hidden; }
.ggb-bg-slide { position: absolute; inset: 0; width: 100%; height: 100%; background-size: cover; background-position: center right; background-repeat: no-repeat; filter: grayscale(1) saturate(0) brightness(0.5); opacity: 0; visibility: hidden; transition: opacity 0.6s ease, visibility 0.6s ease; }
.ggb-bg-slide.is-active { opacity: 1; visibility: visible; }
@media (min-width:1024px) {
  .ggb-bg-slide { transform: translateX(5%); }
}

/* Inner content container (heading + win slider) */
.ggb-hero-inner { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; z-index: 4; /* above gradient + outlines + chips */ }
.ggb-heading { position: relative; z-index: 5; text-align: center; margin-bottom: 2.5rem; }
.ggb-title { margin: 0; font-size: 80px; font-weight: 900; text-transform: uppercase; color: #fff; letter-spacing: -0.03em; font-style: italic; }
.ggb-title .ggb-accent { color: #a5895b; }
.ggb-slider-wrap { position: relative; z-index: 4; }

/* =========================================================
   2. GOLDEN BOY – OUTLINE BACKGROUND TEXT (HERO)
   ========================================================= */

/* Background outline text container */
.hero-ggb .ggb-outlines { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: visible; }

/* Base outline rows (hero default) */
.hero-ggb .ggb-outlines .ggb-row { position: absolute; left: 50%; top: 0; transform: translate(-50%, var(--y)); width: min(674px, 90vw); text-align: center; white-space: nowrap; font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 80px; line-height: 0.85; letter-spacing: -0.11em; color: #000; text-shadow: -1px -1px 0 rgba(255, 255, 255, 0.5), 1px -1px 0 rgba(255, 255, 255, 0.5), -1px  1px 0 rgba(255, 255, 255, 0.5), 1px  1px 0 rgba(255, 255, 255, 0.5); opacity: var(--o, 0.4);  /* smooth waterfall animation */ --min-opacity: calc(var(--o, 0.4) * 0.4); --max-opacity: calc(var(--o, 0.4) * 1.2); animation: ggb-waterfall 4s ease-in-out infinite; animation-delay: var(--delay, 0s); }

/* Vertical offsets / intensity (hero) */
.hero-ggb .ggb-row-1 { --y: -194px; --o: 0.20; --delay: 0s; }
.hero-ggb .ggb-row-2 { --y: -127px; --o: 0.24; --delay: 0.5s; }
.hero-ggb .ggb-row-3 { --y: -60px; --o: 0.28; --delay: 1s; }
.hero-ggb .ggb-row-4 { --y: 64px; --o: 0.34; --delay: 1.5s; }
@keyframes ggb-waterfall {
  0%, 100% { opacity: var(--min-opacity); }
  40% { opacity: var(--max-opacity); }
  60% { opacity: var(--o); }
}
@media (prefers-reduced-motion:reduce) {
  .hero-ggb .ggb-outlines .ggb-row { animation: none; opacity: var(--o, 0.4); }
}

/* =========================================================
   2a. OUTLINE HEADING SHORTCODE (GLOBAL)
   ========================================================= */

/* Wrapper generated by [awd_outline_heading] */
.awd-outline-heading { position: relative; display: block; z-index: 1; }

/* Alignment variants – keep outlines in sync with heading */
.awd-outline-heading--align-left .ggb-outlines .ggb-row { left: 0; right: auto; transform: translate(0, var(--y)); text-align: left; }
.awd-outline-heading--align-right .ggb-outlines .ggb-row { left: auto; right: 0; transform: translate(0, var(--y)); text-align: right; }
.awd-outline-heading--align-center .ggb-outlines .ggb-row { left: 50%; right: auto; transform: translate(-50%, var(--y)); text-align: center; }

/* Heading-level variants (outline size/spacing) */
.awd-outline-heading--h1 .ggb-outlines .ggb-row { font-size: clamp(4.5rem, 8vw, 128px); letter-spacing: -0.13em; }
.awd-outline-heading--h2 .ggb-outlines .ggb-row { font-size: clamp(3.25rem, 6vw, 96px); letter-spacing: -0.09em; }

/* Optional: tweak offsets per level if needed */
.awd-outline-heading--h1 .ggb-row-1 { --y: -173px; }
.awd-outline-heading--h1 .ggb-row-2 { --y: -62px; }
.awd-outline-heading--h1 .ggb-row-3 { --y: 154px; }
.awd-outline-heading--h1 .ggb-row-4 { --y: 248px; --o: 0.02; }
.awd-outline-heading--h2 .ggb-row-1 { --y: -165px; }
.awd-outline-heading--h2 .ggb-row-2 { --y: -103px; }
.awd-outline-heading--h2 .ggb-row-3 { --y: -30px; }
.awd-outline-heading--h2 .ggb-row-4 { --y: 114px; }

/* Color helpers when you choose blue/black in shortcode */
.awd-outline-heading--color-blue  .ggb-outlines .ggb-row { color: #003c9a; }
.awd-outline-heading--color-black .ggb-outlines .ggb-row { color: #000; }

/* Foreground title sizing – scoped to shortcode only */
.awd-outline-heading .ggb-title { font-size: clamp(2.75rem, 5vw, 80px); }

/* H1-style title */
.awd-outline-heading .ggb-title.ggb-title--h1, .awd-outline-heading.awd-outline-heading--h1 .ggb-title { font-size: clamp(4.5rem, 8vw, 128px); }

/* H2-style title */
.awd-outline-heading .ggb-title.ggb-title--h2, .awd-outline-heading.awd-outline-heading--h2 .ggb-title { font-size: clamp(3.25rem, 6vw, 96px); }

/* =========================================================
   3. GOLDEN BOY – RAINING CHIPS (DRIFT + WOBBLE + DEPTH)
   ========================================================= */
.ggb-hero .ggb-chips { position: absolute; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; }

/* Wrapper: horizontal position + falling motion + depth blur */
.ggb-hero .ggb-chip { position: absolute; left: calc(var(--cx, 50) * 1%); top: 0; width: var(--s, 120px); height: auto; pointer-events: none; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.35))
blur(var(--blur, 0px)); will-change: transform, opacity; animation: chip-fall calc(var(--fall-duration, 12s) * 2) linear infinite; animation-delay: var(--delay, 0s); }

/* Inner image: wobble only (no positional transform here) */
.ggb-hero .ggb-chip img { display: block; width: 100%; height: auto; backface-visibility: hidden; transform-origin: 50% 50%; will-change: transform; animation: chip-wobble var(--wobble-duration, 6s) ease-in-out infinite; }

/* Fall from well above the viewport to well below it */
@keyframes chip-fall {
  0% { transform: translate3d(calc(-50% + var(--drift, 0px)), -120vh, 0); opacity: 0; }
  8% { opacity: 1; }
  92% { transform: translate3d(calc(-50% - var(--drift, 0px)), 120vh, 0); opacity: 1; }
  100% { transform: translate3d(calc(-50% - var(--drift, 0px)), 130vh, 0); opacity: 0; }
}

/* Wobble / tilt loop (no translation here) */
@keyframes chip-wobble {
  0% { transform: rotate(0deg); }
  20% { transform: rotate(4deg); }
  40% { transform: rotate(-3deg); }
  60% { transform: rotate(2deg); }
  80% { transform: rotate(-2deg); }
  100% { transform: rotate(0deg); }
}

/* Per-chip positions, depth, speed, drift, blur (hero) */
.hero-ggb .chip--1 { --cx: 21; --s: 110px; --fall-duration: 12s; --wobble-duration: 7s; --drift: 10px; --delay: -2s; --blur: 0.8px; }
.hero-ggb .chip--2 { --cx: 88; --s: 92px; --fall-duration: 15s; --wobble-duration: 8s; --drift: 6px; --delay: -5s; --blur: 0.1px; }
.hero-ggb .chip--3 { --cx: 18; --s: 150px; --fall-duration: 6s; --wobble-duration: 5s; --drift: 18px; --delay: -8s; --blur: 2px; }
.hero-ggb .chip--4 { --cx: 94; --s: 102px; --fall-duration: 9s; --wobble-duration: 6.5s; --drift: 12px; --delay: -3s; --blur: 0.8px; }
.hero-ggb .chip--5 { --cx: -1; --s: 96px; --fall-duration: 20s; --wobble-duration: 9s; --drift: 5px; --delay: -7s; --blur: 0.1px; }
.hero-ggb .chip--6 { --cx: 65; --s: 128px; --fall-duration: 8s; --wobble-duration: 5.5s; --drift: 14px; --delay: -10s; --blur: 1.9px; }
.hero-ggb .chip--7 { --cx: 40; --s: 105px; --fall-duration: 11s; --wobble-duration: 6.5s; --drift: 12px; --delay: -4s; --blur: 0.6px; }
.hero-ggb .chip--8 { --cx: 75; --s: 90px; --fall-duration: 16s; --wobble-duration: 8.5s; --drift: 7px; --delay: -9s; --blur: 0.2px; }
.hero-ggb .chip--9 { --cx: 32; --s: 135px; --fall-duration: 7s; --wobble-duration: 5.2s; --drift: 16px; --delay: -1s; --blur: 1.5px; }
.hero-ggb .chip--10 { --cx: 58; --s: 98px; --fall-duration: 13s; --wobble-duration: 7.5s; --drift: 9px; --delay: -6s; --blur: 0.4px; }
.hero-ggb .chip--11 { --cx: 10; --s: 100px; --fall-duration: 14s; --wobble-duration: 6.8s; --drift: 11px; --delay: -11s; --blur: 0.7px; }
.hero-ggb .chip--12 { --cx: 82; --s: 94px; --fall-duration: 18s; --wobble-duration: 8.2s; --drift: 8px; --delay: -13s; --blur: 0.2px; }
.hero-ggb .chip--13 { --cx: 27; --s: 140px; --fall-duration: 7s; --wobble-duration: 5.1s; --drift: 20px; --delay: -4.5s; --blur: 1.7px; }
.hero-ggb .chip--14 { --cx: 52; --s: 102px; --fall-duration: 12.5s; --wobble-duration: 7.2s; --drift: 10px; --delay: -9.5s; --blur: 0.5px; }
.hero-ggb .chip--15 { --cx: 96; --s: 88px; --fall-duration: 19s; --wobble-duration: 8.8s; --drift: 6px; --delay: -15s; --blur: 0.15px; }
@media (prefers-reduced-motion:reduce) {
  .ggb-hero .ggb-chip, .ggb-hero .ggb-chip img { animation: none !important; }
  .ggb-hero .ggb-chip { opacity: 0.6; }
}

/* =========================================================
   4. GOLDEN BOY – RESPONSIVE TWEAKS
   ========================================================= */
@media (max-width:900px) {
  .ggb-title { font-size: 2.3rem; }
}
@media (max-width:600px) {
  .ggb-hero { padding: 4rem 0 3rem; }
  .ggb-title { font-size: 1.8rem; }
}

/* =========================================================
   5. HOW TO WIN HERO – BLUE VARIANT
   ========================================================= */

/* Blue HOW TO WIN hero base */
.hero-htw { background: url('/wp-content/themes/awd-child/images/doug-polk-bg-1.jpg'); position: relative; overflow: hidden; background-position: center center; background-repeat: no-repeat; background-size: cover; }

/* Adjust heading + accent colors if needed */
.hero-htw .ggb-title { color: #ffffff; font-size: 128px; letter-spacing: -0.049em; margin-bottom: 2px; }
.hero-htw .ggb-subheading { color: #fff; font-size: 40px; font-style: italic; font-weight: 800; letter-spacing: -0.084em; position: relative; text-align: left; width: 590px; display: flex; justify-content: flex-start; margin: 10px auto 15px; }
.hero-htw .ggb-subheading span { position: absolute; right: 13px; top: -13px; display: inline-block; }
.hero-htw.hero-ggb .ggb-outlines .ggb-row { font-size: 128px; letter-spacing: -0.09em; color: #003c9a; }
.hero-htw .ggb-title .ggb-accent { color: #ffffff; }
.hero-htw.hero-ggb .ggb-row-1 { --y: -192px; }
.hero-htw.hero-ggb .ggb-row-2 { --y: -93px; }
.hero-htw.hero-ggb .ggb-row-3 { --y: 107px; }
.hero-htw.hero-ggb .ggb-row-4 { --y: 208px; }

/* =========================================================
   6. HOW TO WIN – CTA ROW, FORM & HERO ICONS
   ========================================================= */
#how-to-win { padding-bottom: 62px; }

/* CTA row layout */
.htw-cta-row { margin-top: 7.15rem; display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: center; position: relative; }
.htw-cta-copy { position: absolute; right: 0; top: -90px; max-width: 264px; text-align: left; z-index: 2; }
#how-to-win .htw-cta-badge { font-weight: 700; text-transform: uppercase; color: #ffffff; font-size: 32px; line-height: 1.05; font-style: italic; letter-spacing: -0.082em; }
.htw-cta-badge span { color: #cea25a; }

/* Arrow pointing down toward the form */
.htw-cta-copy::after { content: ""; position: absolute; right: -30px; bottom: 1px; width: 22px; height: 47px; background: url('/wp-content/themes/awd-child/images/htw-arrow.svg')
no-repeat center / contain; pointer-events: none; transform-origin: 50% 50%; will-change: transform, opacity; animation: arrow-pulse 1.6s ease-in-out infinite; }
@keyframes arrow-pulse {
  0% { transform: scale(1) translateY(0); opacity: 0.8; }
  50% { transform: scale(1.15) translateY(4px); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 0.8; }
}

/* Let Gravity Form stretch nicely inside */
.htw-cta-form { flex: 1 1 480px; flex: 1 1 100%; background: #fff; border-radius: 500px; padding: 30px 60px 10px; z-index: 2; }
.htw-cta-form form { width: 100%; }
#how-to-win .gform-footer.gform_footer.top_label { position: absolute; left: -9999rem; top: -9999rem; }

/* =========================================================
   6a. HOW TO WIN – HERO ICONS (CLUB / DIAMOND / SPADE)
   ========================================================= */
.hero-htw { position: relative; overflow: hidden; }

/* Shared suit animation: slow spin + tiny zoom */
@keyframes htw-suit-orbit {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.03) rotate(180deg); }
  100% { transform: scale(1) rotate(360deg); }
}

/* Left club – slowest */
.hero-htw::before { content: ""; position: absolute; left: -8%; bottom: 10%; width: 260px; aspect-ratio: 1; background: url('/wp-content/themes/awd-child/images/htw-club.svg')
no-repeat center / contain; opacity: 1; pointer-events: none; transform-origin: 50% 50%; will-change: transform, opacity; animation: htw-suit-orbit 46s linear infinite; }

/* Right diamond – medium speed */
.hero-htw::after { content: ""; position: absolute; right: -6%; top: 20%; width: 220px; aspect-ratio: 1; background: url('/wp-content/themes/awd-child/images/htw-diamond.svg')
no-repeat center / contain; opacity: 1; pointer-events: none; transform-origin: 50% 50%; will-change: transform, opacity; animation: htw-suit-orbit 32s linear infinite; }

/* Extra spade – fastest, reversed */
.hero-htw .htw-spade { position: absolute; left: 4%; top: 18%; width: 200px; aspect-ratio: 1; background: url('/wp-content/themes/awd-child/images/htw-spade.svg')
no-repeat center / contain; opacity: 1; pointer-events: none; transform-origin: 50% 50%; will-change: transform, opacity; animation: htw-suit-orbit 24s linear infinite reverse; }

/* =========================================================
   7. EVENTS SECTION – CHIP RAIN
   ========================================================= */

/* Host section: make it a stacking context and clip chips */
.dp-events-section { position: relative; overflow: hidden; }

/* Chip layer: behind cards, above black background */
.dp-events-section .awd-chip-rain { position: absolute; inset: 0; pointer-events: none; z-index: 1; }

/* Events content: sits above chips */
.dp-events-section .uagb-container-inner-wrap, .dp-events-section .dp-events-wrap, .dp-events-section .tribe-events { position: relative; z-index: 2; }

/* Base chip behavior for events (reuse chip-fall + wobble) */
.dp-events-section .awd-chip-rain .ggb-chip { position: absolute; left: calc(var(--cx, 50) * 1%); top: -20%; /* start a bit above the section */ width: var(--s, 120px); height: auto; pointer-events: none; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.35))
blur(var(--blur, 0px)); will-change: transform, opacity; opacity: 1; animation: chip-fall calc(var(--fall-duration, 12s) * 2) linear infinite; animation-delay: var(--delay, 0s); }

/* Wobble/tilt for events chips */
.dp-events-section .awd-chip-rain .ggb-chip img { display: block; width: 100%; height: auto; backface-visibility: hidden; transform-origin: 50% 50%; will-change: transform; animation: chip-wobble var(--wobble-duration, 6s) ease-in-out infinite; }

/* Per-chip positions for events section */
.awd-chip-rain--events .chip--1 { --cx: 10; --s: 90px; --fall-duration: 14s; --wobble-duration: 7s; --drift: 14px; --delay: -2s; --blur: 0.6px; }
.awd-chip-rain--events .chip--2 { --cx: 90; --s: 180px; --fall-duration: 8s; --wobble-duration: 8s; --drift: 8px; --delay: -5s; --blur: 1.9px; }
.awd-chip-rain--events .chip--3 { --cx: 25; --s: 120px; --fall-duration: 10s; --wobble-duration: 6s; --drift: 18px; --delay: -8s; --blur: 1.4px; }
.awd-chip-rain--events .chip--4 { --cx: 60; --s: 100px; --fall-duration: 12s; --wobble-duration: 6.5s; --drift: 12px; --delay: -3s; --blur: 0.8px; }
.awd-chip-rain--events .chip--5 { --cx: 0; --s: 130px; --fall-duration: 10s; --wobble-duration: 9s; --drift: 6px; --delay: -7s; --blur: 1.8px; }
.awd-chip-rain--events .chip--6 { --cx: 50; --s: 110px; --fall-duration: 9s; --wobble-duration: 5.5s; --drift: 15px; --delay: -10s; --blur: 1.2px; }
.awd-chip-rain--events .chip--7 { --cx: 37; --s: 95px; --fall-duration: 13s; --wobble-duration: 6.5s; --drift: 10px; --delay: -4s; --blur: 0.5px; }
.awd-chip-rain--events .chip--8 { --cx: 72; --s: 88px; --fall-duration: 17s; --wobble-duration: 8s; --drift: 9px; --delay: -9s; --blur: 0.2px; }
.awd-chip-rain--events .chip--9 { --cx: 30; --s: 130px; --fall-duration: 8s; --wobble-duration: 5.2s; --drift: 16px; --delay: -1s; --blur: 1.3px; }
.awd-chip-rain--events .chip--10 { --cx: 35; --s: 112px; --fall-duration: 12s; --wobble-duration: 7.5s; --drift: 9px; --delay: -6s; --blur: 1.4px; }
.awd-chip-rain--events .chip--11 { --cx: 15; --s: 95px; --fall-duration: 16s; --wobble-duration: 6.8s; --drift: 11px; --delay: -11s; --blur: 0.7px; }
.awd-chip-rain--events .chip--12 { --cx: 113; --s: 108px; --fall-duration: 19s; --wobble-duration: 8.2s; --drift: 8px; --delay: -13s; --blur: 1.8px; }
.awd-chip-rain--events .chip--13 { --cx: 28; --s: 120px; --fall-duration: 9s; --wobble-duration: 5.1s; --drift: 20px; --delay: -4.5s; --blur: 1.5px; }
.awd-chip-rain--events .chip--14 { --cx: 52; --s: 100px; --fall-duration: 14s; --wobble-duration: 7.2s; --drift: 10px; --delay: -9.5s; --blur: 0.5px; }

/* =========================================================
   8. GRAVITY FORMS – NEWSLETTER (DP SUBSCRIBE)
   ========================================================= */
.dp-subscribe_wrapper .gform_fields { display: grid !important; gap: 12px 16px !important; }
.dp-subscribe_wrapper .gform_fields > .gfield { grid-area: auto !important; grid-column: auto !important; grid-row: auto !important; width: 100%; }
.dp-subscribe_wrapper .gform_fields { grid-template-areas: "name   email  submit"
"consent consent consent" !important; align-items: center; grid-template-columns: 0.8fr 0.8fr 1.1fr !important; }
.dp-subscribe_wrapper .gfield--type-name { grid-area: name !important; }
.dp-subscribe_wrapper .gfield--type-email { grid-area: email !important; }
.dp-subscribe_wrapper .gfield--type-submit { grid-area: submit !important; justify-self: end; }
.dp-subscribe_wrapper .gfield--type-multi_choice.gfield--input-type-checkbox { grid-area: consent !important; display: flex; align-items: center; gap: 10px; margin-top: 6px !important; }
.dp-subscribe_wrapper .gfield_label, .dp-subscribe_wrapper legend.gfield_label { display: none !important; }
.dp-subscribe_wrapper input[type='text'], .dp-subscribe_wrapper input[type='email'], .dp-subscribe_wrapper .ginput_complex input { height: 50px; padding: 0 9px 0 29px !important; border-radius: 9999px; border: 1px solid #9a9a9a; background: #fefefe; font-size: 18px !important; line-height: 1; }
.dp-subscribe_wrapper input:focus { border-color: #cbd5e1; background: #fff; box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12); }
.dp-subscribe_wrapper .gfield--type-submit .gform-button { height: 50px; padding: 0 28px; border: 0; border-radius: 9999px; background: #b28f5e; color: #fff; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; width: 100%; }
.gform_wrapper.gravity-theme.dp-subscribe_wrapper .gfield-choice-input + label { max-width: 100%; }
.gform_wrapper.gravity-theme.dp-subscribe_wrapper fieldset.gfield.gfield--type-multi_choice.dp-consent { justify-content: flex-end; }
#how-to-win .gfield_checkbox label.gform-field-label { font-size: 14px; font-family: 'Roboto', sans-serif; color: #000; letter-spacing: -0.02em; padding-left: 5px; }
#how-to-win .dp-subscribe_wrapper
.gfield--type-multi_choice.gfield--input-type-checkbox { justify-self: start; align-self: center; margin-top: -10px !important; padding-right: 55px; }
@media (max-width:900px) {
  .dp-subscribe_wrapper .gform_fields { grid-template-columns: 1fr !important; grid-template-areas: "name"
    "email"
    "submit"
  "consent" !important; }
  .dp-subscribe_wrapper .gfield--type-submit .gform-button { width: 100%; }
}
