/* ========================================
   DIRECTION A: BOLD CANVAS — LEGACY MODERNIZATION
   Ported from concept-a-legacy-modernization.html
   Animated bracket-frame hero with circuit-board art reveal,
   warning-signs grid, two-col preserve-list + testimonial,
   numbered process steps, stats band, navy lead-magnet form.
   ======================================== */

:root {
  --navy: #1B2A4A;
  --navy-light: #2D4066;
  --cream: #FAF8F5;
  --cream-warm: #F5F0E8;
  --white: #FFFFFF;
  --coral: #E85D4A;
  --coral-light: #FF7A6A;
  --amber: #E8A84C;
  --teal: #1A9B8C;
  --pop-purple: #8232AA;
  --text-dark: #1B2A4A;
  --text-primary: #1B2A4A;
  --text-light: #6B7785;
  --text-secondary: #5A6B7F;
  --border-subtle: rgba(27, 42, 74, 0.08);
  --container-max: 1320px;
  --container-pad: var(--space-container-pad); /* 24 → 60 — Token Pack rem-based */
  --section-pad: var(--space-section-m); /* 40 → 72 — Token Pack rem-based (was 40 → 64 px-based) */
  --hero-to-first-pad: var(--space-section-s); /* 32 → 56 — Token Pack rem-based */
  --section-pad-tight: clamp(1.5rem, calc(1.07rem + 2.14vw), 2.5rem); /* 24 → 40 — rem-based, was px-based */
  --font-brand: 'Space Grotesk', 'Inter', sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

/* Kadence Neutralization (:where wrapped) */
:where(body.pop-legacy-template) h1,
:where(body.pop-legacy-template) h2,
:where(body.pop-legacy-template) h3,
:where(body.pop-legacy-template) h4,
:where(body.pop-legacy-template) h5,
:where(body.pop-legacy-template) h6 {
  color: inherit; font-family: inherit; font-weight: inherit;
}
:where(body.pop-legacy-template) p { margin: 0; }
:where(body.pop-legacy-template) ul,
:where(body.pop-legacy-template) ol { margin: 0; padding: 0; list-style: none; }
:where(body.pop-legacy-template) a { color: inherit; text-decoration: none; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body.pop-legacy-template {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ======== NAV ======== */
.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 20px 0; transition: all 0.4s; background: #FAF8F5; }
.site-nav.scrolled { background: rgba(250,248,245,0.95); backdrop-filter: blur(20px); padding: 14px 0; box-shadow: 0 1px 0 var(--border-subtle); }
.nav-inner { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad); display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links > li > a { font-size: var(--type-caption); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--font-brand); color: var(--text-secondary); transition: color 0.3s; }
.nav-links > li > a:hover { color: var(--navy); }
.nav-links .active { color: var(--navy); font-weight: 700; }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; background: #D33E26; color: var(--white) !important; border-radius: 100px; font-size: var(--type-caption); font-weight: 500; font-family: var(--font-brand); transition: all 0.3s; }
.nav-cta:hover { background: var(--coral-light); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(232,93,74,0.3); }
.nav-home { display: inline-flex; align-items: center; padding: 6px; border-radius: 6px; transition: all 0.2s; opacity: 0.5; }
.nav-home:hover { opacity: 1; background: rgba(27, 42, 74, 0.06); }
.nav-dropdown { position: relative; }
.nav-dropdown:hover .mega-menu,
.nav-dropdown:focus-within .mega-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.mega-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); width: 640px; background: #FFF; border-radius: 16px; box-shadow: 0 12px 48px rgba(27,42,74,0.14), 0 0 0 1px rgba(27,42,74,0.04); padding: 28px 32px 20px; opacity: 0; visibility: hidden; transition: opacity 0.25s, transform 0.25s; transform: translateX(-50%) translateY(8px); pointer-events: none; z-index: 1001; }
.mega-menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; }
.mega-menu-item { display: block; padding: 12px 14px; border-radius: 10px; transition: background 0.15s; }
.mega-menu-item:hover { background: rgba(27,42,74,0.035); }
.mega-menu-item .mega-title { font-size: var(--type-caption); font-weight: 600; color: var(--navy); display: flex; align-items: center; gap: 8px; margin-bottom: 3px; font-family: var(--font-brand); }
.mega-menu-item .mega-desc { font-size: 12.5px; color: var(--text-secondary); line-height: 1.5; }
.mega-menu-item.mega-featured .mega-title { color: #D33E26; }
.mega-menu-item.mega-featured .mega-badge { display: inline-block; font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: rgba(232, 93, 74, 0.08); color: #C7402D; padding: 2px 7px; border-radius: 4px; line-height: 1.4; }
.mega-menu-footer { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(27,42,74,0.06); text-align: center; }
.mega-menu-footer a { font-size: var(--type-eyebrow); font-weight: 600; color: #D33E26; transition: color 0.2s; }
.mega-menu-footer a:hover { color: var(--coral-light); }
@media (max-width: 1024px) and (min-width: 769px) {
  .mega-menu { width: 520px; padding: 24px 24px 16px; }
  .mega-menu-grid { gap: 4px 20px; }
  .mega-menu-item { padding: 10px 12px; }
  /* Lead-magnet card — Andie P3 #7 (2026-04-26).
     Was staying 2-col at tablet 820; collapses to 1-col at <1024 now
     (matches the existing <768 rule). */
  .lead-magnet-card { grid-template-columns: 1fr; }
  /* Hide hero coral and teal accent shapes at 1024/below — they create a colored line bleed under the static bg image */
  section.hero::before, section.hero::after { display: none !important; }
}
@media (max-width: 768px) { .mega-menu { display: none; } 
  .nav-links { display: none !important; }
  .nav-logo { height: 52px !important; }
}

main { margin-top: 92px; }
.section { padding: 3.5rem 2rem; }
.section.white { background: var(--white); }
.section.cream { background: var(--cream-warm); }
.container { max-width: 1200px; margin: 0 auto; }

/* Breadcrumb */
.hero-breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; font-size: var(--type-eyebrow); color: var(--text-light); }
.hero-breadcrumb a { color: var(--text-light); text-decoration: none; transition: color 0.3s ease; }
.hero-breadcrumb a:hover { color: var(--coral); }

/* Hero */
.hero { padding: 16px 0 32px; background: var(--cream); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: 10%; left: 5%; width: 120px; height: 120px; background: var(--coral); border-radius: 50%; filter: blur(40px); opacity: 0.06; z-index: 0; pointer-events: none; }
.hero::after { content: ''; position: absolute; bottom: 15%; right: 8%; width: 100px; height: 100px; background: var(--teal); clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%); filter: blur(40px); opacity: 0.06; z-index: 0; pointer-events: none; }

@keyframes bracketSlideRight {
  0%   { right: max(24px, calc(50% - 250px)); }
  100% { right: 110px; }
}
@keyframes bracketSlideLeft {
  0%   { left: max(24px, calc(50% - 603px)); }
  100% { left: 140px; }
}
.hero-frame {
  position: absolute; top: 42px; bottom: 52px;
  left: max(24px, calc(50% - 603px)); right: max(24px, calc(50% - 250px));
  z-index: 1; pointer-events: none;
  display: flex; align-items: stretch; justify-content: space-between;
  animation: bracketSlideRight 1s cubic-bezier(0, 0, 0.2, 1) 5.8s both,
             bracketSlideLeft 1s cubic-bezier(0, 0, 0.2, 1) 5.8s both;
}
.hero-brace { width: 52px; flex-shrink: 0; }
.hero-brace path { fill: none; stroke: #1B2A4A; stroke-width: 3.5; stroke-linecap: square; stroke-linejoin: miter; }

@keyframes heroArtReveal {
  0%   { transform: translateY(-50%) scale(10) skewX(-35deg) skewY(18deg) rotate(-15deg); opacity: 0.15; filter: blur(24px) saturate(0.15); }
  100% { transform: translateY(-50%) scale(1) skewX(0deg) skewY(0deg) rotate(0deg); opacity: 1; filter: blur(0) saturate(1); }
}
.hero-art {
  position: absolute; right: 140px; top: 50%; transform: translateY(-50%);
  width: 32%; opacity: 1; z-index: 1; pointer-events: none;
  animation: heroArtReveal 5.5s cubic-bezier(0, 0, 0.2, 1) 0.3s both;
  will-change: transform, opacity, filter;
}

.hero .container { max-width: 1200px; margin: 0 auto; position: relative; z-index: 10; }

.hero h1, .hero p, .hero-ctas { margin-left: 80px; }

.hero h1 { margin-bottom: 16px; font-family: var(--font-display); }
.hero-question { display: block; font-size: var(--type-hero-l); font-weight: 800; letter-spacing: -0.03em; line-height: 1.0; color: var(--text-dark); margin-bottom: 0.3em; max-width: 65%; }
.hero-question-small { display: block; font-size: clamp(1.75rem, calc(1.46rem + 1.43vw), 2.75rem); font-weight: 700; letter-spacing: -0.02em; color: var(--text-dark); }
.hero-question em { font-style: italic; color: var(--coral); }
.hero-answer { font-weight: 700; color: var(--text-dark); }
.hero p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 1.75rem; line-height: 1.75; max-width: 640px; }
.hero-ctas { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }

/* Buttons */
.btn { padding: 1rem 2rem; border-radius: 100px; text-decoration: none; font-weight: 500; font-size: 0.95rem; font-family: var(--font-brand); transition: all 0.3s ease; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-primary { background: var(--coral); color: var(--white); }
.btn-primary:hover { background: #D33E26; transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--text-dark); border: 2px solid var(--text-dark); }
.btn-secondary:hover { background: var(--text-dark); color: var(--white); }

/* Eyebrow / titles */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--pop-purple); margin-bottom: 0.75rem; font-family: var(--font-brand); }
.eyebrow::before { content: ''; width: 24px; height: 2px; background: currentColor; }
.eyebrow.no-line::before { display: none; }
.section-title { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; font-weight: 800; font-size: var(--type-h2-xl); margin-bottom: 1.5rem; line-height: 1.08; letter-spacing: -0.02em; color: var(--text-dark); font-style: normal; }
.preserve-testimonial blockquote { font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-size: 22px; line-height: 1.55; color: var(--text-primary); margin-bottom: 20px; font-weight: 400; border: 0; padding: 0; }
.stat-number { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-style: normal; }
.section-description { font-size: 1.05rem; color: var(--text-light); margin-bottom: 3rem; max-width: 800px; line-height: 1.8; }

/* Warning Signs */
.warning-signs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 2rem; }
.warning-card { display: flex; gap: 1.25rem; padding: 1.5rem; background: var(--cream); border-radius: 12px; opacity: 0; transform: translateX(-50px); transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
.warning-card:nth-child(even) { transform: translateX(50px); }
.warning-card.reveal.visible { opacity: 1; transform: translateX(0); }
.warning-icon { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.25rem; font-weight: 700; position: relative; }
.warning-card:nth-child(odd) .warning-icon { background: rgba(232, 93, 74, 0.15); color: var(--coral); }
.warning-card:nth-child(even) .warning-icon { background: rgba(232, 168, 76, 0.15); color: var(--amber); }
.warning-icon::before { content: ''; position: absolute; width: 6px; height: 6px; background: currentColor; border-radius: 50%; animation: pulse-warning 2s ease-in-out infinite; }
@keyframes pulse-warning { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.4); opacity: 0.7; } }
.warning-text h3 { font-size: 0.95rem; margin-bottom: 0.25rem; font-weight: 700; font-family: var(--font-brand); }
.warning-text p { font-size: 0.85rem; color: var(--text-light); }

/* Migrate section */
.migrate-section-grid { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.preserve-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 6px; }
.preserve-item { font-family: var(--font-display); font-size: 0.85rem; color: var(--text-secondary); line-height: 1.8; }
.preserve-testimonial { background: var(--white); border-radius: 16px; padding: 32px; border-left: 4px solid var(--pop-purple); position: relative; margin-top: 5px; }
.preserve-testimonial .testimonial-quote-mark { display: block; margin-bottom: 12px; }
.preserve-testimonial blockquote { font-family: var(--font-serif); font-style: italic; font-size: 22px; line-height: 1.55; color: var(--text-primary); margin-bottom: 20px; }
.preserve-testimonial .attribution { font-family: var(--font-brand); font-size: 0.95rem; font-weight: 700; color: var(--navy); letter-spacing: 0.02em; }
.preserve-testimonial .attribution span { display: block; font-weight: 400; color: var(--text-secondary); font-size: 0.8rem; }
.preserve-testimonial .attribution span:first-of-type { margin-top: 3px; }

/* Process Timeline */
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-top: 2rem; }
.process-step { opacity: 0; transform: translateY(30px); transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); padding-left: 3.5rem; position: relative; }
.process-step.reveal.visible { opacity: 1; transform: translateY(0); }
.process-step::before { content: attr(data-step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; background: var(--coral); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; transition: all 0.6s ease; }
.process-step.reveal.visible::before { transform: scale(1.2); background: var(--teal); }
.process-step h3 { font-size: 1.2rem; margin-bottom: 0.75rem; font-weight: 700; font-family: var(--font-brand); }
.process-step p { font-size: 0.95rem; color: var(--text-light); line-height: 1.7; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-top: 2rem; }
.stat { text-align: center; padding: 2rem; opacity: 0; transform: scale(0.95); transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
.stat.reveal.visible { opacity: 1; transform: scale(1); }
.stat-number { font-family: 'Playfair Display', serif; font-size: 2.5rem; font-weight: 700; color: var(--coral); margin-bottom: 0.5rem; min-height: 3rem; }
.stat-label { font-size: 0.9rem; color: var(--text-light); font-weight: 500; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Lead Magnet */
.lead-magnet-section { padding: var(--section-pad) 0; background: var(--cream); }
.lead-magnet-card { background: var(--navy); border-radius: 28px; padding: clamp(1.5rem, calc(1.21rem + 1.43vw), 2.5rem) clamp(3rem, calc(2.43rem + 2.86vw), 5rem); display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: center; position: relative; overflow: hidden; }
.lead-magnet-card::before { content: ''; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: var(--coral); opacity: 0.08; right: -100px; top: -100px; }
.lead-magnet-content { position: relative; z-index: 2; }
.lead-magnet-title { font-size: var(--type-h2-l); /* was 28→44 */ font-weight: 800; color: var(--white); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 16px; }
.lead-magnet-desc { font-size: 16px; color: rgba(255,255,255,0.65); line-height: 1.6; max-width: 440px; }
.lead-magnet-form { position: relative; z-index: 2; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 18px 36px; }
.form-group { margin-bottom: 16px; }
/* ============================================================
   WPForms render — match concept-a-legacy-modernization.html exactly
   (concept is authoritative source per feedback_concept-html-authoritative).
   Concept locked: 12px labels at 50% white, 14px 18px input padding,
   8% white input bg, 12% white border, 12px radius, 15px input font.
   Same values for fallback (.form-label/.form-input) and WPForms output.
   div.wpforms-container-full prefix matches WPForms Modern's specificity.
   Checkbox layout: side-by-side per concept's .form-checkboxes
   (display: flex; flex-wrap: wrap; gap: 12px 20px). Each item 14px,
   65% white, native checkbox with coral accent.
   ============================================================ */

/* Labels — fallback + WPForms */
.form-label,
body .lead-magnet-card div.wpforms-container-full .wpforms-field-label,
body .lead-magnet-card div.wpforms-container-full .wpforms-field-sublabel {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
  font-family: var(--font-display);
}

body .lead-magnet-card div.wpforms-container-full .wpforms-required-label,
.lead-magnet-card .wpforms-required-label {
  color: var(--coral);
}

/* Inputs — fallback + WPForms */
.form-input,
body .lead-magnet-card div.wpforms-container-full .wpforms-field input[type="text"],
body .lead-magnet-card div.wpforms-container-full .wpforms-field input[type="email"],
body .lead-magnet-card div.wpforms-container-full .wpforms-field input[type="url"],
body .lead-magnet-card div.wpforms-container-full .wpforms-field input[type="tel"],
body .lead-magnet-card div.wpforms-container-full .wpforms-field textarea,
body .lead-magnet-card div.wpforms-container-full .wpforms-field select {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  color: #ffffff;
  font-size: 15px;
  font-family: var(--font-display);
  line-height: 1.4;
  box-sizing: border-box;
  transition: border-color 0.3s, background 0.3s;
}

.form-input::placeholder,
body .lead-magnet-card div.wpforms-container-full .wpforms-field input::placeholder,
body .lead-magnet-card div.wpforms-container-full .wpforms-field textarea::placeholder {
  color: rgba(255,255,255,0.3);
  opacity: 1;
}

.form-input:focus,
body .lead-magnet-card div.wpforms-container-full .wpforms-field input:focus,
body .lead-magnet-card div.wpforms-container-full .wpforms-field textarea:focus,
body .lead-magnet-card div.wpforms-container-full .wpforms-field select:focus {
  border-color: var(--coral);
}

body .lead-magnet-card div.wpforms-container-full .wpforms-field {
  padding: 0 0 16px 0;
  margin: 0;
}

/* Checkbox group — horizontal per concept's .form-checkboxes
   (display: flex; flex-wrap: wrap; gap: 12px 20px) */
body .lead-magnet-card div.wpforms-container-full .wpforms-field-checkbox ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  list-style: none;
  padding: 0;
  margin: 4px 0 0 0;
}
body .lead-magnet-card div.wpforms-container-full .wpforms-field-checkbox ul li {
  margin: 0;
  padding: 0;
}
body .lead-magnet-card div.wpforms-container-full .wpforms-field-checkbox label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  margin: 0;
}
/* Native browser checkbox with coral accent — matches concept/local-dev fallback render.
   WPForms Modern uses appearance:none + ::before/::after pseudos to paint its own
   skin. Reverting to native means: revert appearance, hide pseudos, accent-color coral. */
body .lead-magnet-card div.wpforms-container-full .wpforms-form .wpforms-field-checkbox input[type="checkbox"],
body .lead-magnet-card div.wpforms-container-full .wpforms-form .wpforms-field input[type="checkbox"] {
  appearance: revert !important;
  -webkit-appearance: revert !important;
  width: 16px !important;
  height: 16px !important;
  accent-color: var(--coral) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  cursor: pointer;
  margin: 0;
  padding: 0;
}
body .lead-magnet-card div.wpforms-container-full .wpforms-form .wpforms-field-checkbox input[type="checkbox"]::before,
body .lead-magnet-card div.wpforms-container-full .wpforms-form .wpforms-field-checkbox input[type="checkbox"]::after,
body .lead-magnet-card div.wpforms-container-full .wpforms-form .wpforms-field input[type="checkbox"]::before,
body .lead-magnet-card div.wpforms-container-full .wpforms-form .wpforms-field input[type="checkbox"]::after {
  display: none !important;
  content: none !important;
}

/* Fallback static checkbox group (only renders when WPForms inactive) */
.form-checkboxes { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.form-checkbox { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,0.65); cursor: pointer; text-transform: none; letter-spacing: 0; font-weight: 400; }
.form-checkbox input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--coral); cursor: pointer; }

/* Submit — coral, full width */
body .lead-magnet-card div.wpforms-container-full .wpforms-submit-container {
  margin-top: 8px;
  padding: 0;
}
body .lead-magnet-card div.wpforms-container-full button.wpforms-submit,
body .lead-magnet-card div.wpforms-container-full .wpforms-submit,
.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--coral);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-display);
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 8px;
}
body .lead-magnet-card div.wpforms-container-full button.wpforms-submit:hover,
body .lead-magnet-card div.wpforms-container-full .wpforms-submit:hover,
.form-submit:hover {
  background: var(--coral-light);
  transform: translateY(-1px);
}

/* Footer */
.site-footer { padding: 64px 0 32px; margin-top: 4rem; background: #F5F0E8; border-top: 1px solid rgba(27, 42, 74, 0.08); }
.site-footer .container { max-width: 1320px; margin: 0 auto; padding: 0 var(--space-container-pad); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-heading { font-size: var(--type-eyebrow); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #1B2A4A; margin-bottom: 20px; font-family: var(--font-brand); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: var(--type-caption); color: #5A6B7F; transition: color 0.2s; text-decoration: none; font-family: var(--font-brand); }
.footer-links li.footer-address { font-size: var(--type-caption); color: #5A6B7F; line-height: 1.6; font-family: var(--font-brand); }
.footer-links a:hover { color: #1B2A4A; }
.footer-brand-desc { font-size: var(--type-caption); color: #5A6B7F; line-height: 1.7; margin-top: 16px; max-width: 280px; }
.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(27, 42, 74, 0.08); display: flex; justify-content: space-between; align-items: center; font-size: var(--type-eyebrow); color: #6B7785; }
.footer-bottom a { color: #6B7785; text-decoration: none; transition: color 0.2s; }
.footer-bottom a:hover { color: #1B2A4A; }
.ai-powered-badge { display: inline-flex; align-items: center; gap: 4px; padding: 6px 16px 6px 8px; background: rgba(27, 42, 74, 0.04); border: 1px solid rgba(27, 42, 74, 0.1); border-radius: 100px; font-size: var(--type-micro); font-weight: 600; color: #5A6B7F; letter-spacing: 1.5px; text-transform: uppercase; transition: all 0.3s ease; }
.ai-powered-badge:hover { background: rgba(27, 42, 74, 0.08); color: #1B2A4A; }

/* Responsive */
@media (max-width: 768px) {
  .hero-art { display: none; }
  .hero-question { font-size: 2rem; max-width: 100%; }
  .hero h1 { font-size: 2.2rem; }
  .section-title { font-size: 1.8rem; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .process-steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .lead-magnet-card { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .hero h1, .hero p, .hero-ctas { margin-left: 0; }
  .migrate-section-grid { grid-template-columns: 1fr; }
  .preserve-list { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 1024px) {
  /* Hide animated brackets + inline image, replace with static bg image on hero. Deborah responsive pass 2026-05-04 */
  .hero-frame { display: none !important; }
  /* Match other inner pages — 40px horizontal gutter on hero container at 820. Deborah responsive pass 2026-05-04 */
  section.hero > .container { padding-left: 40px !important; padding-right: 40px !important; }
  /* Align hero text (h1, p, .hero-question) with breadcrumb. Buttons shift 40px left. Deborah responsive pass 2026-05-04 */
  section.hero h1, section.hero p, section.hero .hero-question { margin-left: 0 !important; }
  /* Tight white glow behind headline + screen panel behind body subtext at 820. Deborah responsive pass 2026-05-04 */
  section.hero h1, section.hero .hero-question { text-shadow: 0 0 2px rgba(255,255,255,0.85), 0 0 4px rgba(255,255,255,0.6); }
  section.hero p { background: rgba(255,255,255,0.72); padding: 16px 18px; border-radius: 8px; max-width: max-content; }
  /* Screen behind See Our Projects (secondary) button at 820 — Deborah responsive pass 2026-05-04 */
  section.hero .btn-secondary { background: rgba(255,255,255,0.72) !important; }
  .migrate-section-grid { grid-template-columns: 1fr !important; }
  .preserve-list { gap: 8px 24px !important; }
  .stats { grid-template-columns: repeat(4, 1fr) !important; gap: 16px !important; }
  section.cream { padding-top: 24px !important; padding-bottom: 32px !important; }
  .stats { margin-top: 16px !important; margin-bottom: 16px !important; }
  .stat { padding-top: 16px !important; padding-bottom: 16px !important; }
  .lead-magnet-section .container { padding-left: 24px !important; padding-right: 24px !important; }
  .lead-magnet-section { padding-bottom: 1px !important; }
  section.hero .hero-ctas { margin-left: 18px !important; }
  section.hero > picture { display: none !important; }
  section.hero { background-image: linear-gradient(rgba(255,255,255,0.35), rgba(255,255,255,0.35)), url("/wp-content/themes/pop-kadence-child/images/artwork/pop-art-legacy-v2-PICK.png"); background-repeat: no-repeat, no-repeat; background-position: right center, right center; background-size: 65% auto, 65% auto; }
}


/* Submit button centering — all breakpoints */
.lead-magnet-card .wpforms-submit-container { text-align: center !important; display: flex !important; justify-content: center !important; align-items: center !important; }
.lead-magnet-card button.wpforms-submit { width: auto !important; min-width: 200px !important; padding: 14px 40px !important; margin: 0 auto !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; }


@media (max-width: 480px) {
  /* Legacy hero at 360 — Wendy May 5: drop padding-top, move art up, kill animations & blobs.
     Replaces prior 480 block. Background animations only fire at desktop now. */

  /* Hide all animation/decoration elements completely at 360 */
  .hero-frame, .hero-frame *, .hero-brace, .hero-art {
    display: none !important;
    animation: none !important;
  }
  section.hero > picture, section.hero > picture * { display: none !important; }

  /* Kill the coral and teal accent blob pseudos — both display:none and background:none
     so nothing paints during FOUC window */
  section.hero::before,
  section.hero::after {
    display: none !important;
    background: none !important;
    background-color: transparent !important;
    content: none !important;
    animation: none !important;
  }

  /* Hero — static bg image positioned UP behind headline, not down at footer of hero.
     padding-top dropped from 120 → 32 (main margin-top:92px already clears the fixed nav). */
  section.hero {
    padding: 32px 0 16px !important;
    background-image: linear-gradient(rgba(255,255,255,0.55), rgba(255,255,255,0.55)),
      url("/wp-content/themes/pop-kadence-child/images/artwork/pop-art-legacy-v2-PICK.png") !important;
    background-repeat: no-repeat, no-repeat !important;
    background-position: calc(100% + 55px) top, calc(100% + 55px) top !important;
    background-size: 145% auto, 145% auto !important;
  }

  /* Container padding matches AI Services 360 — 25px each side */
  section.hero > .container {
    padding-left: 25px !important;
    padding-right: 25px !important;
  }

  /* Body sub — white screen panel for legibility (canonical AI Services recipe) */
  section.hero p {
    background: rgba(255, 255, 255, 0.72);
    padding: 14px 14px;
    border-radius: 8px;
    margin-left: 4px !important;
    margin-right: 4px !important;
    max-width: none !important;
    font-size: 16px;
    line-height: 1.55;
  }

  /* Coral sub-line — tight white glow for legibility on art bg */
  section.hero .hero-question {
    text-shadow: 0 0 1.5px rgba(255,255,255,1),
                 0 0 1.5px rgba(255,255,255,1),
                 0 0 2px rgba(255,255,255,1);
  }

  /* CTA buttons — match panel inset */
  section.hero .hero-ctas {
    margin-left: 12px !important;
    margin-right: 12px !important;
  }
  section.hero .btn-secondary {
    background: rgba(255,255,255,0.72) !important;
  }


  /* Hero question typography — larger + opened leading at 360. Wendy May 5. */
  section.hero .hero-question {
    font-size: 38px !important;
    line-height: 1.08 !important;
    margin-bottom: 0.25em;
  }
  section.hero .hero-question-small {
    font-size: 40px !important;
    line-height: 1.1 !important;
  }


  /* Reduce gap between hero and Sound Familiar section by 25px (Wendy May 5).
     Target only the section immediately after .hero — leaves all other section spacing intact. */
  section.hero + section.section {
    padding-top: 31px !important;
  }


  /* Tighten warning-signs grid at 360 — gap halved (Wendy May 5). */
  .warning-signs {
    gap: 16px !important;
  }


  /* Tighten warning-card vertical padding by 3px each at 360 (Wendy May 5). */
  .warning-card {
    padding-top: 21px !important;
    padding-bottom: 21px !important;
  }


  /* Preserve-list cleanup at 360 — keep 2-col, widen columns + tighten leading
     so longer items wrap cleanly without crowding (Wendy May 5). */
  .preserve-list {
    grid-template-columns: 1fr !important;
    row-gap: 4px !important;
  }
  .preserve-item {
    line-height: 1.6 !important;
  }


  /* Tighten leading on the "What we can preserve or improve..." h3 at 360 (Wendy May 5).
     Selector targets the h3 just before .preserve-list inside the migrate section. */
  .migrate-section-left h3 {
    line-height: 1.2 !important;
  }


  /* Stack proof stats at 360 — 4 → 1 column (Wendy May 5). */
  .stats {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }


  /* Lead-magnet form at 360 — match Online Marketing recipe (Wendy May 5).
     Drop card horizontal padding + remove inner form-wrap box so fields go full width. */
  .lead-magnet-card {
    padding: 28px 24px !important;
    gap: 28px !important;
  }
  .lead-magnet-form {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
  }
}