/* =====================================================
   PLG Website - Shared Stylesheet
   High-end design with alternating dark/light sections
   ===================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =====================================================
   COLOR PALETTE - Brand Colors (updated 2026-09-18)
   ===================================================== */
:root {
  --ink:            #212121;   /* PLG black */
  --ink-deep:       #171717;   /* deeper band for contrast sections */
  --ink-raised:     #2b2b2b;   /* raised surfaces: cards, panels */
  --gold:           #8C7830;   /* PLG gold — deepened 2026-09-18 */
  --gold-hover:     #A99641;   /* lighter, hover only (previous --gold value) */
  --gold-muted:     rgba(140,120,48,0.15);  /* tints, borders */
  --ground:         #FAF7F0;   /* warm off-white */
  --white:          #FFFFFF;
  --text-primary:   #FAF7F0;
  --text-secondary: rgba(250,247,240,0.80);
  --text-light:     rgba(250,247,240,0.60);
  --glass-border:   rgba(140,120,48,0.18);
  --glass-bg:       rgba(43,43,43,0.25);
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
html {
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--ink);
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -1px;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* =====================================================
   LAYOUT & SPACING
   ===================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section h2 {
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-lead-lg {
  font-size: 1.4rem;
  font-weight: 500;
  max-width: 520px;
  line-height: 1.4;
  text-wrap: balance;
}

/* Keep the Remember 911 lead on one line where it physically fits
   (900px and up); below that it wraps or it would overflow / be too small. */
@media (min-width: 900px) {
  .section-lead-oneline {
    max-width: none;
    white-space: nowrap;
    text-wrap: nowrap;
  }
}

.center {
  text-align: center;
}

/* "Remember 911" video block — a real prominent video player, not a link pill */
.video-block {
  position: relative;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  margin: 2.5rem auto 0;
  background: var(--ink);
  border: 1px solid var(--gold-muted);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.video-block iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Read Script toggle — now rolled out to every sector page's video
   (2026-09-19, was a borrowers.html-only prototype first). The script
   panel is an absolutely-positioned sibling of the iframe inside the
   same .video-block box, so the box's aspect-ratio (already fixed at
   16/9) never changes size when toggling — no layout jump. Long script
   text scrolls internally instead of growing the box. */
.script-panel {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: 24px 28px;
  background: var(--ink);
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  white-space: pre-line;
  text-align: left;
}

.script-panel[hidden] {
  display: none;
}

/* The toggle is a dark band flush against the bottom of the video box
   (no gap, shared rounded corners) so it reads as part of the video
   component rather than a stray link hanging underneath — Grant's
   feedback after seeing the plain-text-link version. Deliberately NOT
   gold-filled like the homepage modal's active tab — dark background,
   gold text only — so it doesn't compete as a second button. The video
   box itself has its bottom corners squared off to merge visually with
   the band below it. */
.video-with-script .video-block {
  border-radius: 20px 20px 0 0;
  border-bottom: none;
}

.video-script-band {
  display: block;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 14px 20px;
  background: var(--ink-deep);
  border: 1px solid var(--gold-muted);
  border-top: none;
  border-radius: 0 0 20px 20px;
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.video-script-band:hover,
.video-script-band:focus-visible {
  background: var(--ink-raised);
  color: var(--gold-hover);
  outline: none;
}

.video-script-band:disabled {
  color: var(--text-light);
  cursor: not-allowed;
}

.video-script-band:disabled:hover {
  background: var(--ink-deep);
  color: var(--text-light);
}

/* Sector page template — video sits beside its intro copy on desktop,
   stacks on mobile. Reused across every sector page (borrowers, brokers,
   developers, etc). */
.persona-video-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.persona-video {
  margin: 0 auto;
  width: 100%;
}

/* Equal breathing room above and below the video (2026-09-19 — the
   previous asymmetric padding, more below than above, read unbalanced). */
.persona-video-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (max-width: 768px) {
  .persona-video-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

@media (max-width: 480px) {
  .persona-video-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

.persona-video-text h2 {
  margin-bottom: 1rem;
}

.persona-video-text p {
  color: rgba(23, 22, 15, 0.75);
  line-height: 1.7;
}

@media (max-width: 899px) {
  .persona-video-text {
    text-align: center;
  }
}

@media (min-width: 900px) {
  .persona-video-layout {
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
  }

  .persona-video {
    margin: 0;
  }
}

.persona-text-section h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  max-width: 700px;
}

.persona-text-section h2:first-child {
  margin-top: 0;
}

.persona-text-section p {
  max-width: 700px;
  line-height: 1.7;
}

.persona-text-centered h2,
.persona-text-centered p {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.persona-text-section.section-light p {
  color: rgba(23, 22, 15, 0.75);
}

.inline-cta {
  margin-top: 1rem;
  text-align: center;
}

/* Secondary CTA under a form's primary button — plain text link, never
   a second filled button. Standing rule (2026-09-19): one filled button
   per section, every secondary action is a text link. Spacing is
   roughly half the standard gap so it reads as a related afterthought
   to the form, not a competing section. */
.cta-secondary-line {
  margin-top: 0.75rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 1rem;
}

.cta-secondary-link {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}

.cta-secondary-link:hover {
  text-decoration: underline;
}

.cta-phone-inline {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

.cta-phone-inline:hover {
  color: var(--gold-hover);
}

@media (max-width: 768px) {
  .cta-phone-inline {
    font-size: 1.4rem;
  }
}

/* .section-stage's own padding is tuned tight for the avatar grid — when
   that class is reused for a persona text section, override it back up to
   match .section-light's plain padding so both sections float with the
   same vertical space, top and bottom. */
.persona-text-section.section-stage {
  background: var(--ink);
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (max-width: 768px) {
  .persona-text-section.section-stage {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

@media (max-width: 480px) {
  .persona-text-section.section-stage {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

.add-to-contacts-btn {
  display: none;
  width: fit-content;
  margin: 1.5rem auto 0;
  padding: 14px 28px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: 10px;
  text-decoration: none;
  text-align: center;
  transition: background 0.3s ease;
}

.add-to-contacts-btn:hover {
  background: var(--gold-hover);
}

/* Thin rounded "have you seen our 911 video?" prompt bar — sits on a
   sector page in place of the avatar grid, opens the same video preview
   modal but pointed at the 911 video (see data-sector="Remember 911" on
   the trigger). */
.video-teaser-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 620px;
  margin: 0 auto;
  background: var(--ink-deep);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 1.25rem 2rem;
  text-decoration: none;
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.5);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.video-teaser-bar:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 20px 46px -14px rgba(0, 0, 0, 0.55);
  animation-play-state: paused;
}

@media (prefers-reduced-motion: no-preference) {
  .video-teaser-bar.teaser-animate {
    animation: teaserFloatIn 0.7s ease both, teaserFloat 3.2s ease-in-out 0.7s infinite;
  }
}

@keyframes teaserFloatIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes teaserFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.video-teaser-text {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.25rem;
}

.video-teaser-cta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--gold);
  font-weight: 600;
  font-size: 1.25rem;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.video-teaser-bar:hover .video-teaser-cta {
  color: var(--gold-hover);
}

@media (max-width: 600px) {
  .video-teaser-bar {
    flex-direction: column;
    align-items: center;
    border-radius: 24px;
    gap: 0.6rem;
    padding: 1.4rem 1.5rem;
    text-align: center;
  }

  .video-teaser-text,
  .video-teaser-cta {
    font-size: 1.1rem;
  }

  .video-teaser-cta {
    justify-content: center;
  }
}

.video-teaser-section {
  padding-top: 0;
  padding-bottom: 2.5rem;
}

/* The real source of "space above the floating 911 bar" was the previous
   text section's own bottom padding (plain .section default, 5rem/3rem/2rem)
   — .video-teaser-section's top padding was never the dominant gap. */
.persona-text-tight-bottom {
  padding-bottom: 3.75rem;
}

@media (max-width: 768px) {
  .persona-text-tight-bottom {
    padding-bottom: 2.25rem;
  }
}

@media (max-width: 480px) {
  .persona-text-tight-bottom {
    padding-bottom: 2.25rem;
  }
}

/* Small, low-key exit link back to the main site — deliberately quiet
   (muted colour, small text) so it doesn't compete with the funnel's
   actual CTA. Easy to remove later, just delete the <a> + this rule. */

/* =====================================================
   HEADER & NAVIGATION
   ===================================================== */
header {
  background: var(--ink);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.header-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.header-content nav {
  justify-self: center;
}

.header-content .mobile-menu-btn {
  grid-column: 3;
  justify-self: end;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 2px;
  text-decoration: none;
}

.logo:hover {
  color: var(--text-primary);
}

.logo-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  margin-top: -2px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--text-secondary);
  font-weight: 400;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  letter-spacing: 0.5px;
}

nav a:hover {
  color: var(--gold);
}

nav a.active {
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.25rem;
}

/* "Choose Your Avatar" nav dropdown — desktop: flyout on hover, focus, or
   click; the "Choose Your Avatar" text itself still navigates to the
   homepage as a plain link, the chevron button is the open/close toggle.
   See initNavDropdown() in script.js for the click/Escape/outside-click
   behaviour; hover/focus-within here are CSS-only so keyboard users who
   Tab onto a link inside the menu keep it open without JS. */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.nav-dropdown-toggle:hover {
  color: var(--gold);
}

.nav-dropdown.open .nav-dropdown-toggle,
.nav-dropdown:hover .nav-dropdown-toggle {
  color: var(--gold);
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
}

@media (min-width: 769px) {
  .nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    min-width: 220px;
    background: var(--ink);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 110;
  }

  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu,
  .nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav-dropdown-menu li a {
    display: block;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .nav-dropdown-menu li a:hover {
    background: var(--glass-muted, rgba(140,120,48,0.12));
  }

  .nav-dropdown-menu li a.active {
    border-bottom: none;
    padding-bottom: 0.6rem;
  }
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 9px;
  width: 52px;
  height: 52px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger-bar {
  display: block;
  width: 32px;
  height: 3.5px;
  border-radius: 2px;
  background: var(--text-primary);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, background 0.25s ease;
}

.mobile-menu-btn:hover .hamburger-bar {
  background: var(--gold);
}

.mobile-menu-btn[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(12.5px) rotate(45deg);
}

.mobile-menu-btn[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-12.5px) rotate(-45deg);
}

/* =====================================================
   HERO SECTION — Dark background
   ===================================================== */
.hero {
  position: relative;
  background-color: var(--ink);
  color: var(--text-primary);
  padding: 8.5rem 0 3rem;
  text-align: center;
  border-bottom: 1px solid var(--gold-muted);
  overflow: hidden;
}

/* When the hero is merged with the section right after it (see
   .hero-avatar-bg-wrap), drop the border that would otherwise draw a
   seam between them — they're meant to read as one continuous section. */
.hero.hero-merged {
  border-bottom: none;
}

/* Sydney Harbour Bridge, ghosted into the hero background — sits behind
   the smoke/turbulence layer (z-index -1 vs. hero-smoke's 0) so the smoke
   animates on top of it, and behind the heading text. Desaturated + tinted
   gold so it reads as part of the background texture, not a photo sitting
   on the page. */
/* Wraps the hero + avatar-grid sections together so the bridge photo runs
   as one continuous background behind both — the two sections themselves
   go transparent (see below) and let this show through. */
.hero-avatar-bg-wrap {
  position: relative;
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('images/harbour-bridge-sunset.webp');
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  opacity: 0.4;
  filter: grayscale(45%) sepia(15%) brightness(0.65) contrast(1.05);
  pointer-events: none;
  transform: none;
  transform-origin: center;
}

/* Same ghosted-background-photo treatment, reused on the Brokers page hero
   — navigate-compas.webp instead of the bridge, standalone (this hero isn't
   merged with the section after it, so no wrapper/transparency tricks
   needed here, just the plain nested-in-.hero version). Back to the
   original subtle "ghosted" opacity/filter treatment, not the punched-up
   visible version — and explicitly no rotation this time. */
.hero-bg-image.hero-bg-image-broker {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('images/navigate-compas.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.4;
  filter: grayscale(45%) sepia(15%) brightness(0.65) contrast(1.05);
  transform: none;
}

/* Both sections need to be transparent (not their usual solid ink colours)
   so the shared background image behind them actually shows through.
   Desktop only — on mobile .hero-bg-image is hidden (see the 768px query)
   and both sections keep their normal opaque backgrounds. */
@media (min-width: 769px) {
  .hero-avatar-bg-wrap .hero {
    background-color: transparent;
  }

  .hero-avatar-bg-wrap .section-stage {
    background: transparent;
  }
}

/* Handprint image ghosted behind the "What you'll start to see" section and
   the Five Deal Friday signup band on the newsletter page — same wrap +
   transparent-siblings pattern as .hero-avatar-bg-wrap, plus a gentle
   pulse so it feels alive instead of a static watermark. */
.handprint-bg-wrap {
  position: relative;
  overflow: visible;
}

.handprint-bg-image {
  position: absolute;
  top: -80px;
  left: 50%;
  width: min(92%, 900px);
  height: auto;
  transform: translate(-50%, 0);
  transform-origin: center;
  z-index: 0;
  opacity: 0.16;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .handprint-bg-image {
    animation: handprintPulse 5s ease-in-out infinite;
  }
}

@keyframes handprintPulse {
  0%, 100% {
    transform: translate(-50%, 0) scale(1);
    opacity: 0.13;
  }
  50% {
    transform: translate(-50%, 0) scale(1.06);
    opacity: 0.22;
  }
}

@media (min-width: 769px) {
  .handprint-merged.section-stage {
    background: transparent;
    border-top: none;
    border-bottom: none;
    box-shadow: none;
  }

  .handprint-merged.cta-band {
    background: transparent;
  }
}

.handprint-bg-wrap {
  background: linear-gradient(135deg, var(--ink-deep) 0%, #302510 100%);
}

@media (max-width: 768px) {
  .handprint-bg-image {
    display: none;
  }
}

/* The whole blob group is run through the SVG feTurbulence/feDisplacementMap
   filter (defined inline in index.html) — that's what actually churns the
   edges into organic, non-repeating smoke/liquid shapes. The blobs
   underneath just provide colour and slow drifting; the filter does the
   "it looks alive" work. */
.hero-smoke {
  position: absolute;
  inset: -20% -10%;
  z-index: 0;
  filter: url(#heroSmokeFilter);
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.22) 45%, rgba(255, 255, 255, 0) 75%);
  filter: blur(34px);
  will-change: transform;
}

.hero-glow-1 {
  left: 10%;
  top: 20%;
  width: 42vw;
  max-width: 560px;
  aspect-ratio: 1;
  animation: heroBlobDrift1 24s ease-in-out infinite;
}

.hero-glow-2 {
  right: 5%;
  top: 40%;
  width: 36vw;
  max-width: 480px;
  aspect-ratio: 1;
  opacity: 0.75;
  animation: heroBlobDrift2 19s ease-in-out infinite;
}

.hero-glow-3 {
  left: 38%;
  top: 0%;
  width: 30vw;
  max-width: 400px;
  aspect-ratio: 1;
  opacity: 0.6;
  animation: heroBlobDrift3 27s ease-in-out infinite;
}

@keyframes heroBlobDrift1 {
  0%   { transform: translate(10vw, 0) scale(1); }
  50%  { transform: translate(0, 4vh) scale(1.25); }
  100% { transform: translate(-10vw, 8vh) scale(0.9); }
}

@keyframes heroBlobDrift2 {
  0%   { transform: translate(9vw, -6vh) scale(1); }
  50%  { transform: translate(0, 0) scale(0.85); }
  100% { transform: translate(-9vw, 6vh) scale(1.2); }
}

@keyframes heroBlobDrift3 {
  0%   { transform: translate(8vw, 2vh) scale(1); }
  50%  { transform: translate(0, 10vh) scale(1.1); }
  100% { transform: translate(-8vw, 2vh) scale(0.95); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-glow-1,
  .hero-glow-2,
  .hero-glow-3 {
    animation: none;
  }
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: clamp(2.5rem, 7vw, 6.25rem);
}

.hero .tagline {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--gold);
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.hero .tagline-lg {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 500;
}

.hero .tagline-white {
  color: var(--text-primary);
}

.mobile-break,
.footer-bottom-break {
  display: none;
}

/* =====================================================
   SECTION VARIANTS
   ===================================================== */
.section-light {
  background-color: var(--ground);
  color: var(--ink);
}

.section-light h2 {
  color: var(--ink);
}

.mirror-heading {
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -1px;
}

.section-light .section-lead {
  color: rgba(23, 22, 15, 0.7);
}

/* Dark "stage" section — where the avatar grid lives.
   A touch deeper than the hero so the two dark bands still
   read as separate sections, divided by a hairline gold seam. */
.section-stage {
  background: var(--ink-deep);
  color: var(--text-primary);
  border-top: 1px solid rgba(169,150,65,0.4);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: inset 0 8px 20px -12px rgba(0,0,0,0.6);
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  position: relative;
}

/* Merged with the hero above it (see .hero-avatar-bg-wrap) — no seam, no
   inset shadow, so the two sections read as one continuous surface. */
.section-stage.hero-merged {
  border-top: none;
  box-shadow: none;
}

.section-stage h2 {
  color: var(--text-primary);
}

.section-stage .section-lead {
  color: var(--text-secondary);
}

/* =====================================================
   AVATAR GRID — "Who We Serve"
   Premium rollover cards: rest figure cross-fades to the
   gold "celebrating" figure with a soft glow + light sweep.
   ===================================================== */
.avatar-intro {
  text-align: center;
  color: var(--text-primary);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0 0 0.75rem;
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 16px;
  width: 100%;
}

@media (min-width: 768px) {
  .avatar-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1400px) {
  .section-stage .container {
    max-width: 1600px;
  }

  .avatar-grid {
    grid-template-columns: repeat(8, 1fr);
  }
}

.avatar-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
  height: 100%;
  padding: 32px 14px 24px;
  background: var(--ink-raised);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.4s ease,
              border-color 0.4s ease;
}

.avatar-card > * {
  position: relative;
  width: 100%;
  margin: 0;
}

/* light sweep on hover */
.avatar-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(250, 247, 240, 0.06), transparent);
  transform: skewX(-20deg);
  transition: left 0.75s ease;
  pointer-events: none;
  z-index: 2;
}

.avatar-card:hover,
.avatar-card.is-celebrating {
  transform: translateY(-10px);
  border-color: var(--gold);
  box-shadow: 0 24px 48px rgba(176, 141, 50, 0.22), 0 8px 20px rgba(0, 0, 0, 0.4);
}

.avatar-card:hover::after,
.avatar-card.is-sweeping::after {
  left: 140%;
}

.avatar-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* the ONLY absolutely-positioned elements: the two figure images */
.avatar-figure {
  position: relative;
  width: 96px;
  height: 128px;
  margin: 0 auto 18px;
  flex: 0 0 auto;
}

.avatar-figure::before {
  content: "";
  position: absolute;
  inset: -24px;
  background: radial-gradient(circle, rgba(176, 141, 50, 0.4), transparent 70%);
  opacity: 0;
  filter: blur(4px);
  transition: opacity 0.45s ease;
  z-index: 0;
}

.avatar-card:hover .avatar-figure::before,
.avatar-card.is-celebrating .avatar-figure::before {
  opacity: 1;
}

.avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.4));
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.avatar-rest {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.avatar-cheer {
  opacity: 0;
  transform: translateY(6px) scale(0.94);
}

.avatar-card:hover .avatar-rest,
.avatar-card.is-celebrating .avatar-rest {
  opacity: 0;
  transform: translateY(-8px) scale(0.94);
}

.avatar-card:hover .avatar-cheer,
.avatar-card.is-celebrating .avatar-cheer {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.avatar-name {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 8px !important;
  min-height: 2.3em;
  transition: color 0.35s ease;
}

.avatar-card:hover .avatar-name {
  color: var(--gold);
}

/* Watch button — clicking the card itself now navigates straight to the
   sector page (no modal gate); this button is the only thing that opens
   the video preview modal. Kept small/secondary so the card's primary
   affordance still reads as "go to page". */
.avatar-watch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: auto !important;
  margin: auto auto 0 !important;
  padding: 10px 20px;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.avatar-watch-btn:hover,
.avatar-watch-btn:focus-visible {
  color: var(--gold);
  border-color: var(--gold);
  background: var(--glass-muted, rgba(140,120,48,0.12));
  outline: none;
}

/* touch devices: no hover, keep rest pose, no stuck states */
@media (hover: none) {
  .avatar-card:hover {
    transform: none;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    border-color: var(--glass-border);
  }
  .avatar-card:hover .avatar-rest { opacity: 1; transform: none; }
  .avatar-card:hover .avatar-cheer { opacity: 0; transform: translateY(6px) scale(0.94); }
  .avatar-card:hover .avatar-name { color: var(--text-primary); }
  .avatar-card:hover .avatar-figure::before { opacity: 0; }
}

/* =====================================================
   CTA BAND — gold background
   ===================================================== */
.cta-band {
  background: linear-gradient(135deg, var(--ink-deep) 0%, #302510 100%);
  color: var(--text-primary);
  text-align: center;
  padding: 4rem 2rem;
}

.cta-band h2 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.cta-band-heading {
  font-size: clamp(2rem, 4vw, 3rem);
}

.cta-band p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-phone-big {
  display: block;
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--gold);
  text-decoration: none;
  margin-bottom: 0.15rem;
  transition: color 0.3s ease;
}

.phone-911 {
  display: inline-block;
  transform-origin: center;
}

@media (prefers-reduced-motion: no-preference) {
  .cta-phone-big.phone-animate {
    animation: phoneComeIn 0.7s ease both;
  }

  .cta-phone-big.phone-animate .phone-911 {
    animation: phone911Pop 0.6s ease 0.7s both;
  }
}

@keyframes phoneComeIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes phone911Pop {
  0%, 100% {
    transform: scale(1);
    color: var(--gold);
  }
  40% {
    transform: scale(1.22);
    color: var(--gold-hover);
  }
  70% {
    transform: scale(0.94);
    color: var(--gold);
  }
}

.cta-phone-big:hover {
  color: var(--gold-hover);
}

.cta-divider {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1.5rem !important;
}

.callback-form {
  max-width: 560px;
  margin: 0 auto;
}

@media (min-width: 769px) {
  .callback-form {
    max-width: 820px;
  }
}

.callback-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

/* Vertical modifier — used on the Five Deal Friday signup form. Every
   field stacks on its own line instead of the 3-column grid the homepage
   callback form uses. */
.callback-form-vertical .callback-form-row {
  grid-template-columns: 1fr;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* Five Deal Friday newsletter form — extra breathing room between the
   "what worked / what didn't" copy above the form and the form itself. */
.callback-form-vertical {
  margin-top: 1.5rem;
}

.callback-form input,
.callback-form select,
.callback-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 500;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.callback-form textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}

.callback-form input[type="date"] {
  color-scheme: dark;
}

/* Plain field label — used on longer forms (Submit a Deal) where every
   field needs a visible label above it, not the short forms' visually-
   hidden + typewriter-placeholder pattern. */
.callback-form-label {
  display: block;
  text-align: left;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.callback-form select {
  /* custom gold chevron so the native arrow doesn't clash with the glass style */
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%238C7830'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.293l3.71-4.062a.75.75 0 111.08 1.04l-4.24 4.65a.75.75 0 01-1.08 0l-4.24-4.65a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px;
  padding-right: 42px;
}

@media (min-width: 769px) {
  .callback-form input,
  .callback-form select {
    padding: 18px 20px;
    font-size: 1.15rem;
  }
}

.callback-form input::placeholder,
.callback-form textarea::placeholder {
  color: var(--text-secondary);
  opacity: 1;
}

.callback-form select {
  color: var(--text-secondary);
}

.callback-form select option {
  background: var(--ink-deep);
  color: var(--text-primary);
}

.callback-form input:focus,
.callback-form select:focus,
.callback-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(43,43,43,0.4);
  box-shadow: 0 0 0 3px var(--glass-border), 0 4px 20px -6px rgba(140,120,48,0.5);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Sector is already known on sector pages, so the "Who are you?" select
   is a hidden input there and the visible form is just name + phone. */
.callback-form-known .callback-form-row {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 700px) {
  .callback-form-row,
  .callback-form-known .callback-form-row {
    grid-template-columns: 1fr;
  }
}

.callback-form .btn {
  background: linear-gradient(135deg, var(--gold-hover) 0%, var(--gold) 100%);
  color: var(--ink);
  border: 1px solid var(--gold);
  padding: 1.75rem 3rem;
  margin-top: 1.5rem;
  font-size: 1.1rem;
  border-radius: 12px;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.callback-form .btn:hover {
  background: var(--ink-deep);
  color: var(--text-primary);
  border-color: var(--gold);
  box-shadow: 0 4px 20px -4px rgba(140,120,48,0.45);
}

.cta-phone {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: rgba(23, 22, 15, 0.85);
}

.cta-phone a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
}

.cta-phone a:hover {
  color: var(--ink-deep);
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  background-color: var(--gold);
  color: var(--ink);
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid var(--gold);
  cursor: pointer;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(176, 141, 50, 0.2);
}

.btn:hover {
  background-color: var(--gold-hover);
  border-color: var(--gold-hover);
  color: var(--ink);
  box-shadow: 0 6px 20px rgba(176, 141, 50, 0.3);
  transform: translateY(-2px);
}

.btn-dark {
  background-color: var(--ink);
  color: var(--gold);
  border: 1px solid var(--gold);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-dark:hover {
  background-color: rgba(23, 22, 15, 0.8);
  color: var(--gold-hover);
  border-color: var(--gold-hover);
}

/* =====================================================
   FOOTER
   ===================================================== */
footer {
  background: var(--ink-deep);
  color: var(--text-secondary);
  padding: 3.5rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--text-primary);
  margin-bottom: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.6rem;
}

.footer-section ul li a {
  color: var(--text-light);
  font-size: 1.05rem;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--gold);
}

.footer-section-wide {
  grid-column: span 2;
}

.footer-section-wide h4,
.footer-section h4.footer-heading-gold {
  color: var(--gold);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* "Choose Your Avatar" reads as a call to action, not just a
   column label — a gentle pulse draws the eye to it so it doesn't get
   missed. Scoped to the wide "Join PLG" column heading only, not
   "Get In Touch" (which shares the same colour/size rule above). */
@media (prefers-reduced-motion: no-preference) {
  .footer-section-wide h4 {
    animation: footerAvatarCtaPulse 2.6s ease-in-out infinite;
  }
}

@keyframes footerAvatarCtaPulse {
  0%, 100% {
    color: var(--gold);
    text-shadow: none;
  }
  50% {
    color: var(--gold-hover);
    text-shadow: 0 0 14px rgba(169, 150, 65, 0.6);
  }
}

.footer-sector-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2rem;
}

@media (max-width: 600px) {
  .footer-section-wide {
    grid-column: span 1;
  }

  .footer-sector-columns {
    grid-template-columns: 1fr;
  }
}

/* Office location cards — Contact Us page, one card per state office. */
.offices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  text-align: left;
}

.office-card {
  background: #fff;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 2px 10px rgba(33, 33, 33, 0.05);
}

.office-card h3 {
  color: var(--gold);
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.office-card p {
  color: var(--ink);
  opacity: 0.75;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 900px) {
  .offices-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .offices-grid {
    grid-template-columns: 1fr;
  }
}

.offices-grid-single {
  grid-template-columns: 1fr;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.footer-contact {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

.footer-contact a {
  color: var(--gold);
  font-weight: 600;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 2rem;
  text-align: center;
  color: rgba(250,247,240,0.45);
  font-size: 0.85rem;
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */
@media (max-width: 768px) {
  .header-content {
    padding: 0.8rem 1rem;
  }

  nav ul {
    gap: 1rem;
  }

  nav a {
    font-size: 1.2rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero {
    padding: 1.5rem 0 2rem;
    background: linear-gradient(135deg, var(--ink-deep) 0%, #2b2410 100%);
  }

  .hero-smoke,
  .hero-bg-image {
    display: none;
  }

  .hero h1 {
    font-size: 3.75rem;
    line-height: 1.05;
    margin-bottom: 1rem;
  }

  .hero .tagline {
    font-size: 1.3rem;
    line-height: 1.3;
    margin-bottom: 0;
  }

  .hero .tagline-lg {
    font-size: 1.45rem;
  }

  .mobile-break,
  .footer-bottom-break {
    display: block;
  }

  .footer-bottom {
    font-size: 0.95rem;
    border-top-color: rgba(250,247,240,0.18);
  }

  .mobile-menu-btn {
    display: flex;
  }

  .section {
    padding: 3rem 0;
  }

  .section-stage {
    padding-top: 0.75rem;
  }

  .avatar-intro {
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 0.4rem;
  }

  .avatar-img {
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .video-block {
    margin-top: 1rem;
    margin-bottom: 0;
  }

  .add-to-contacts-btn {
    display: block;
    padding: 1.4rem 2rem;
    font-size: 1.1rem;
    border-radius: 12px;
  }

  .cta-band {
    padding: 2.5rem 1.5rem 3rem;
  }

  .cta-band h2 {
    font-size: 2.5rem;
  }

  .cta-band p {
    font-size: 1.15rem;
    font-weight: 600;
  }

  .callback-form-row {
    gap: 16px;
  }

  .callback-form .btn {
    padding: 1.4rem 2rem;
    margin-top: 1rem;
    font-size: 1.1rem;
    border-radius: 12px;
  }

  .container {
    padding: 0 1rem;
  }

  .mobile-menu-btn {
    display: flex;
  }

  nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(33, 31, 22, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.5rem 2rem;
    z-index: 99;
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.3s;
  }

  nav.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
  }

  nav.active ul {
    flex-direction: column;
    gap: 1.2rem;
  }

  /* Mobile: no hover, so the dropdown becomes an in-place accordion.
     Tapping the chevron toggle expands/collapses; tapping the "Choose
     Your Avatar" text still navigates home like any other nav link. */
  .nav-dropdown {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0;
  }

  .nav-dropdown-link {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
  }

  .nav-dropdown-toggle {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 44px;
    min-height: 44px;
  }

  .nav-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    width: 100%;
    transition: max-height 0.3s ease;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    max-height: 500px;
  }

  .nav-dropdown-menu li a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-left: 1rem;
    font-size: 1.05rem;
    color: var(--text-light);
  }

  .footer-section {
    text-align: center;
  }

  .footer-section h4 {
    font-size: 1.15rem;
  }

  .footer-section h4.footer-heading-gold {
    font-size: 1.45rem;
  }

  .footer-section ul li a {
    font-size: 1.15rem;
  }

  .footer-contact {
    font-size: 1.15rem;
  }

  .footer-contact a {
    font-size: 1.45rem;
  }

  .footer-section-wide h4 {
    font-size: 1.45rem;
  }

  .avatar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .avatar-card {
    padding: 26px 10px 20px;
  }

  .avatar-figure {
    width: 78px;
    height: 104px;
    margin-bottom: 14px;
  }

  .avatar-name {
    font-size: 0.82rem;
  }

  
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .hero {
    padding: 1.5rem 0 2rem;
  }

  .section {
    padding: 2rem 0;
  }

  .section-stage {
    padding-top: 0.75rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .avatar-grid {
    gap: 10px;
  }

  .avatar-card {
    padding: 20px 8px 16px;
  }

  .avatar-figure {
    width: 68px;
    height: 91px;
    margin-bottom: 10px;
  }

  .avatar-name {
    font-size: 0.72rem;
    min-height: 2.1em;
  }

  

  
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */
.text-center {
  text-align: center;
}

.hidden {
  display: none;
}

/* =====================================================
   SECTOR VIDEO PREVIEW MODAL
   Hover (desktop) or tap (mobile/touch) an avatar card to
   preview its 1-min video without leaving the homepage.
   ===================================================== */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.video-modal[hidden] {
  display: none;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(3px);
}

.video-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--ink-raised);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: video-modal-in 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes video-modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.video-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--text-primary);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.video-modal-close:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.video-modal-eyebrow {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.video-modal-title {
  margin-bottom: 1.25rem;
}

.video-modal-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 1rem;
}

.video-modal-tab {
  flex: 1;
  padding: 10px 14px;
  background: var(--ink-deep);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.video-modal-tab.active {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}

.video-modal-tab:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.video-modal-transcript {
  max-height: 320px;
  overflow-y: auto;
  padding: 18px 20px;
  background: var(--ink-deep);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
  white-space: pre-line;
}

.video-modal-transcript[hidden] {
  display: none;
}

.video-modal-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink-deep);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.video-modal-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

#video-modal-placeholder-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-modal-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Draws the eye to the modal's one action button — "Go to page" for an
   avatar card, "Add to Contacts" for the 911 teaser (same element,
   #video-modal-visit, text/href swapped in script.js) — people watch the
   video then aren't sure what to click next, so give it a gentle pulse. */
@media (prefers-reduced-motion: no-preference) {
  #video-modal-visit {
    animation: modalVisitPulse 2.2s ease-in-out 0.5s infinite;
  }

  #video-modal-visit:hover {
    animation-play-state: paused;
  }
}

@keyframes modalVisitPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(176, 141, 50, 0.2);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 8px 22px rgba(176, 141, 50, 0.45);
  }
}

.video-modal-phone {
  display: block;
  text-align: center;
  color: var(--text-secondary);
  margin-top: 14px;
}

.video-modal-phone-label {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.video-modal-phone-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--gold);
}

.video-modal-frame video[hidden],
#video-modal-placeholder-video[hidden] {
  display: none;
}

/* Persistent tap-to-call bar — mobile only (injected by initTapToCall()
   in script.js). Sits below the video modal (z-index 200), clears the
   iOS home indicator, and is hidden while a form field has focus so it
   never covers a field or sits over the on-screen keyboard. */
.tap-to-call {
  display: none;
}

@media (max-width: 768px) {
  .tap-to-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;
    padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
    background: var(--gold);
    color: var(--ink);
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.35);
  }

  .tap-to-call:hover {
    background: var(--gold-hover);
    color: var(--ink);
  }

  .tap-to-call.is-hidden {
    display: none;
  }

  body.has-tap-to-call {
    padding-bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px));
  }
}

/* Concierge "Or chat now" button inside the CTA band: sits close under the
   big phone number, with clear space before the divider/form below it. */
.cta-band .concierge-trigger-wrap {
  margin-top: 0.6rem;
  margin-bottom: 2rem;
}
