/* The Agent · sales video (inc/agent-video.php, assets/js/agent-video.js). */

/* The poster: the YouTube thumbnail (local copy) with a play button */
.agv-poster { position: relative; display: block; border-radius: 16px; overflow: hidden; text-decoration: none; background: #0b1222; box-shadow: 0 0 0 1px rgba(201, 164, 74, 0.45), 0 30px 70px -28px rgba(0, 0, 0, 0.75); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.agv-poster:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--gildhart-gold, #C9A44A), 0 36px 80px -28px rgba(0, 0, 0, 0.8); text-decoration: none; }
.agv-poster img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.agv-poster::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(5, 10, 20, 0.55) 100%); pointer-events: none; }
.agv-poster-label { position: absolute; right: 0.9rem; bottom: 0.85rem; z-index: 2; display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.4rem 1rem 0.4rem 0.4rem; border-radius: 999px; background: rgba(11, 18, 34, 0.86); box-shadow: 0 0 0 1px rgba(201, 164, 74, 0.55), 0 12px 28px -10px rgba(0, 0, 0, 0.6); color: #fdfbf5; font-family: 'Inter', sans-serif; font-size: 0.9375rem; font-weight: 800; letter-spacing: -0.005em; transition: background 0.2s ease, color 0.2s ease; }
.agv-play { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--gildhart-gold, #C9A44A); color: #0f172a; flex: none; box-shadow: 0 0 0 5px rgba(201, 164, 74, 0.22); }
.agv-play svg { margin-left: 2px; }
.agv-poster:hover .agv-poster-label { background: var(--gildhart-gold, #C9A44A); color: #0f172a; }
.agv-poster:hover .agv-play { background: #0f172a; color: var(--gildhart-gold, #C9A44A); }

/* Hero: a poster on phones (in the lead card's place); a button on desktop */
.ah-copy > .agv-poster--hero { display: none; }
.ah-btn--video { display: inline-flex; align-items: center; gap: 0.6rem; }
.ah-btn-play { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gildhart-gold, #C9A44A); color: #0f172a; flex: none; }
.ah-btn-play svg { margin-left: 2px; }
@media (max-width: 1100px) {
  .ah-copy > .agv-poster--hero { display: block; order: 3; margin: 0.4rem 0 1.5rem; }
  .ah-copy > .agv-poster--hero ~ .ah-ticket,
  .ah-copy > .ah-ticket:has(~ .agv-poster--hero) { display: none; }
  .ah-ctas .ah-btn--video { display: none; }
  .agv-poster--hero .agv-poster-label { right: 0.6rem; bottom: 0.6rem; font-size: 0.875rem; padding-right: 0.85rem; }
  .agv-poster--hero .agv-play { width: 32px; height: 32px; }
}

/* Desktop: the video at the top of the hero visual, above the lead card */
.ah-visual > .agv-poster--visual { display: none; }
@media (min-width: 1101px) {
  .ah-visual > .agv-poster--visual { display: block; margin: 0 0 2.2rem; }
  /* Make room: the second, faded lead card behind the first goes. */
  .ah-visual:has(> .agv-poster--visual) .ah-lead-ghost { display: none; }
  .ah-visual:has(> .agv-poster--visual) .ah-lead-wrap { padding-bottom: 0; }
  /* Keep the right column level with the copy: the video, then the lead
   * card's headline, value and what they asked. The contact rows, buttons
   * and the Monday card go on desktop (the Monday report has its own
   * section further down). The copy starts level with the video. */
  .ah-inner:has(.agv-poster--visual) { align-items: start; }
  .ah-inner:has(.agv-poster--visual) > .ah-copy { margin-top: 0; padding-top: 0.5rem; }
  .ah-visual:has(> .agv-poster--visual) .ah-lead-rows,
  .ah-visual:has(> .agv-poster--visual) .ah-lead-trace,
  .ah-visual:has(> .agv-poster--visual) .ah-lead-btns,
  .ah-visual:has(> .agv-poster--visual) .ah-lead-next,
  .ah-visual:has(> .agv-poster--visual) .ah-handoff,
  .ah-visual:has(> .agv-poster--visual) .ah-monday { display: none; }
}

/* The section before the offer */
.agv-sec { padding: 5.5rem 2rem; background: linear-gradient(180deg, #0f172a 0%, #0b1222 100%); font-family: 'Inter', sans-serif; color: #dfe3e8; }
.agv-sec-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 4rem; align-items: center; }
.agv-sec-k { margin: 0 0 0.9rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gildhart-gold, #C9A44A); }
.agv-sec-h { margin: 0; font-family: 'Inter', 'Outfit', sans-serif; font-size: clamp(1.9rem, 3.2vw, 2.7rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; color: #fdfbf5; text-wrap: balance; }
.agv-sec-s { margin: 1.1rem 0 1.6rem; max-width: 38ch; font-size: 1.0938rem; font-weight: 500; line-height: 1.6; color: #c9cfd8; }
.agv-sec-link { font-size: 0.9688rem; font-weight: 700; color: var(--gildhart-gold, #C9A44A); text-decoration: none; border-bottom: 1px solid rgba(201, 164, 74, 0.5); padding-bottom: 2px; }
.agv-sec-link:hover { color: #fdfbf5; text-decoration: none; }
@media (max-width: 960px) {
  .agv-sec { padding: 4rem 1.25rem; }
  .agv-sec-inner { grid-template-columns: 1fr; gap: 2rem; }
  .agv-sec-copy { order: 1; } .agv-poster--sec { order: 2; }
  .agv-sec-link { display: none; }
}

/* The player window */
.agv-lock, .agv-lock body { overflow: hidden; }
.agv-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 4vh 4vw; opacity: 0; transition: opacity 0.25s ease; }
.agv-modal[hidden] { display: none; }
.agv-modal.is-open { opacity: 1; }
.agv-backdrop { position: absolute; inset: 0; background: rgba(5, 9, 18, 0.88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.agv-frame { position: relative; width: min(1100px, 100%, calc((100vh - 8vh) * 16 / 9)); aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(201, 164, 74, 0.45), 0 40px 120px rgba(0, 0, 0, 0.7); }
.agv-stage, .agv-stage iframe, .agv-stage video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.agv-stage video { background: #000; object-fit: contain; }
.agv-close { position: absolute; top: 10px; right: 10px; z-index: 4; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(11, 18, 34, 0.85); color: #fdfbf5; cursor: pointer; box-shadow: 0 0 0 1px rgba(201, 164, 74, 0.5); }
.agv-close:hover { background: #1E3D2F; }

/* Our end panel, over YouTube's suggestions */
.agv-end { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; text-align: center; font-family: 'Inter', sans-serif; color: #dfe3e8;
  background: radial-gradient(60% 70% at 50% 30%, rgba(201, 164, 74, 0.16) 0%, transparent 65%), linear-gradient(180deg, #102a20 0%, #0b1a14 100%); }
.agv-end[hidden] { display: none; }
.agv-end-k { margin: 0 0 0.6rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gildhart-gold, #C9A44A); }
.agv-end-h { margin: 0; font-family: 'Inter', 'Outfit', sans-serif; font-size: clamp(1.5rem, 3.4vw, 2.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; color: #fdfbf5; }
.agv-end-s { margin: 0.8rem 0 1.6rem; max-width: 44ch; font-size: clamp(0.875rem, 1.6vw, 1.0625rem); font-weight: 500; line-height: 1.5; color: #d2d7d1; }
.agv-end-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; }
.agv-end-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.95rem 1.5rem; border-radius: 10px; background: var(--gildhart-gold, #C9A44A); color: #0f172a; font-size: 1rem; font-weight: 800; text-decoration: none; }
.agv-end-btn:hover { background: #d9b65a; color: #0f172a; text-decoration: none; }
.agv-end-again { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.95rem 1.3rem; border: 1px solid rgba(201, 164, 74, 0.55); border-radius: 10px; background: transparent; color: #fdfbf5; font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; }
.agv-end-again:hover { border-color: var(--gildhart-gold, #C9A44A); }
@media (max-width: 560px) {
  .agv-modal { padding: 0 0.75rem; }
  .agv-frame { border-radius: 10px; overflow: visible; }
  .agv-stage, .agv-end { border-radius: 10px; overflow: hidden; }
  /* The close button sits above the video on phones, clear of the picture. */
  .agv-close { top: -52px; right: 0; }
  .agv-end { padding: 0.9rem; }
  .agv-end-k, .agv-end-s { display: none; }
  .agv-end-h { font-size: 1.1875rem; margin-bottom: 0.9rem; }
  .agv-end-ctas { gap: 0.55rem; }
  .agv-end-btn, .agv-end-again { padding: 0.65rem 0.95rem; font-size: 0.9063rem; }
}
