/* =========================================================
   JR Legal Website Theme Palette
   Current Theme: School Violence Strategy Center (Home)
   Scope: index.html — load before page-home-*.css
   ========================================================= */

:root {
  /* Brand */
  --jr-brand-primary: #2563eb;
  --jr-brand-primary-dark: #1e40af;
  --jr-brand-primary-light: #4d94e8;
  --jr-brand-secondary: #1d4ed8;
  --jr-brand-accent: #38bdf8;
  --jr-brand-accent-soft: #dbeafe;
  --jr-brand-accent-softer: #eef4fc;
  --jr-brand-primary-deep: #1e3a8a;
  --jr-brand-primary-darker: #172554;

  /* Background */
  --jr-bg-page: #ffffff;
  --jr-bg-section: #e8f0fc;
  --jr-bg-section-alt: #dce8f8;
  --jr-bg-section-dark: #0a1628;
  --jr-bg-section-dark-alt: #0f2847;
  --jr-bg-card: #ffffff;
  --jr-bg-card-hover: #f8fafc;
  --jr-bg-glass: rgba(255, 255, 255, 0.94);
  --jr-bg-soft: #f8fafc;
  --jr-bg-muted: #f1f5f9;
  --jr-bg-review: #e8f0fa;
  --jr-bg-review-mid: #dce8f5;
  --jr-bg-review-end: #edf3fa;
  --jr-bg-strip-light-start: #f2f7fd;
  --jr-bg-strip-light-mid: #e8f1fb;
  --jr-bg-strip-light-end: #ddeaf8;
  --jr-bg-strip-deep-start: #b8cce8;
  --jr-bg-strip-deep-mid: #a3bfe0;
  --jr-bg-strip-deep-end: #8eb3d8;
  --jr-bg-risk: linear-gradient(180deg, #e8f0fc 0%, #dce8f8 50%, #d0e0f4 100%);
  --jr-bg-review-gradient: linear-gradient(180deg, #e4edf9 0%, #d8e4f4 100%);
  --jr-bg-review-section: linear-gradient(180deg, #e8f0fa 0%, #dce8f5 38%, #edf3fa 100%);

  /* Text */
  --jr-text-main: #0f172a;
  --jr-text-heading: #0f2847;
  --jr-text-sub: #334e68;
  --jr-text-muted: #64748b;
  --jr-text-inverse: #ffffff;
  --jr-text-inverse-soft: #f8fafc;
  --jr-text-link: #2563eb;
  --jr-text-link-hover: #1d4ed8;
  --jr-text-emphasis: #1e40af;
  --jr-text-body-review: #1a2d45;
  --jr-text-chip: #1e3a8a;
  --jr-text-dark: #030712;
  --jr-text-press: #050505;

  /* Border */
  --jr-border-default: rgba(30, 64, 175, 0.22);
  --jr-border-soft: rgba(59, 111, 212, 0.28);
  --jr-border-strong: rgba(56, 189, 248, 0.35);
  --jr-border-inverse: rgba(255, 255, 255, 0.16);
  --jr-border-card: rgba(30, 58, 110, 0.62);
  --jr-divider: #e2e8f0;

  /* Header */
  --jr-header-bg: #0a1628;
  --jr-header-bg-scrolled: rgba(10, 22, 40, 0.96);
  --jr-header-border: rgba(56, 189, 248, 0.35);
  --jr-header-text: #f8fafc;
  --jr-header-text-hover: #7dd3fc;
  --jr-header-active: #38bdf8;
  --jr-mobile-menu-bg: #0f2847;
  --jr-mobile-menu-text: #f8fafc;
  --jr-mobile-menu-border: rgba(255, 255, 255, 0.12);

  /* Hero */
  --jr-hero-bg: linear-gradient(
    155deg,
    rgba(3, 11, 20, 0.88) 0%,
    rgba(10, 31, 56, 0.74) 38%,
    rgba(19, 47, 85, 0.66) 72%,
    rgba(12, 33, 56, 0.84) 100%
  );
  --jr-hero-overlay: rgba(3, 11, 20, 0.55);
  --jr-hero-gradient: linear-gradient(135deg, #0f2847 0%, #0a1f38 50%, #071422 100%);
  --jr-hero-title: #ffffff;
  --jr-hero-subtitle: #e8eef7;
  --jr-hero-kicker: #7dd3fc;
  --jr-hero-badge-bg: #2563eb;
  --jr-hero-badge-text: #ffffff;
  --jr-hero-border: rgba(56, 189, 248, 0.45);
  --jr-hero-bg-mobile: linear-gradient(
    155deg,
    rgba(3, 11, 20, 0.72) 0%,
    rgba(10, 31, 56, 0.56) 38%,
    rgba(19, 47, 85, 0.48) 72%,
    rgba(12, 33, 56, 0.66) 100%
  );

  /* CTA / Button */
  --jr-cta-primary-bg: #2563eb;
  --jr-cta-primary-bg-hover: #1d4ed8;
  --jr-cta-primary-text: #ffffff;
  --jr-cta-secondary-bg: transparent;
  --jr-cta-secondary-bg-hover: rgba(37, 99, 235, 0.08);
  --jr-cta-secondary-border: #2563eb;
  --jr-cta-secondary-text: #2563eb;
  --jr-cta-mobile-bg: #2563eb;
  --jr-cta-mobile-text: #ffffff;
  --jr-button-outline-border: #2563eb;
  --jr-button-outline-text: #2563eb;
  --jr-button-outline-hover-bg: rgba(37, 99, 235, 0.06);

  /* Card */
  --jr-card-bg: #ffffff;
  --jr-card-bg-soft: #f0f6ff;
  --jr-card-bg-hover: #f8fafc;
  --jr-card-border: rgba(30, 64, 175, 0.14);
  --jr-card-border-hover: rgba(59, 111, 212, 0.45);
  --jr-card-title: #0f2847;
  --jr-card-text: #334e68;
  --jr-card-muted: #64748b;
  --jr-card-badge-bg: #dbeafe;
  --jr-card-badge-text: #1e3a8a;
  --jr-card-icon-bg: #eef4fc;
  --jr-card-icon-text: #2563eb;

  /* Section */
  --jr-section-title: #0f2847;
  --jr-section-subtitle: #5a6f8a;
  --jr-section-kicker: #ffffff;
  --jr-section-border: rgba(30, 64, 175, 0.12);
  --jr-section-number: #93c5fd;
  --jr-section-stripe: var(--jr-bg-strip-light-start);

  /* Form */
  --jr-form-bg: #ffffff;
  --jr-form-border: rgba(30, 64, 175, 0.22);
  --jr-form-input-bg: #ffffff;
  --jr-form-input-border: #cbd5e1;
  --jr-form-input-text: #0f172a;
  --jr-form-input-placeholder: #94a3b8;
  --jr-form-focus-border: #2563eb;
  --jr-form-focus-ring: rgba(37, 99, 235, 0.25);

  /* FAQ */
  --jr-faq-bg: #e0f2fe;
  --jr-faq-border: rgba(30, 64, 175, 0.12);
  --jr-faq-question: #0f2847;
  --jr-faq-answer: #334e68;
  --jr-faq-icon: #2563eb;
  --jr-faq-active-bg: #ffffff;

  /* Review / Thanks */
  --jr-review-bg: var(--jr-bg-review-section);
  --jr-review-card-bg: var(--jr-bg-glass);
  --jr-review-card-border: var(--jr-border-soft);
  --jr-review-text: var(--jr-text-heading);
  --jr-review-muted: #3d5268;
  --jr-review-accent: #3b6fd4;
  --jr-review-star-on: #f5b301;
  --jr-review-star-off: #d8e2ef;

  /* Badge / Label */
  --jr-badge-bg: #0f2847;
  --jr-badge-text: #ffffff;
  --jr-badge-border: rgba(255, 255, 255, 0.2);
  --jr-label-bg: #dbeafe;
  --jr-label-text: #1e3a8a;

  /* Footer */
  --jr-footer-bg: #0a1628;
  --jr-footer-bg-dark: #071422;
  --jr-footer-text: #e8eef7;
  --jr-footer-muted: #94a3b8;
  --jr-footer-border: rgba(255, 255, 255, 0.12);
  --jr-footer-link: #e8eef7;
  --jr-footer-link-hover: #7dd3fc;

  /* Shadow */
  --jr-shadow-xs: 0 2px 8px rgba(15, 40, 71, 0.06);
  --jr-shadow-sm: 0 4px 14px rgba(15, 40, 71, 0.08);
  --jr-shadow-md: 0 10px 24px rgba(15, 40, 71, 0.1);
  --jr-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.18);
  --jr-shadow-card: 0 10px 15px rgba(0, 0, 0, 0.08);
  --jr-shadow-card-hover: 0 8px 24px rgba(15, 40, 71, 0.14);
  --jr-shadow-cta: 0 6px 18px rgba(37, 99, 235, 0.28);
  --jr-shadow-header: 0 4px 20px rgba(0, 0, 0, 0.25);
  --jr-shadow-hero: 0 12px 40px rgba(3, 11, 20, 0.35);
  --jr-shadow-review-pill: 0 6px 20px rgba(15, 40, 71, 0.12), 0 0 0 4px rgba(255, 255, 255, 0.55);

  /* Overlay */
  --jr-overlay-dark-soft: rgba(0, 0, 0, 0.35);
  --jr-overlay-dark-medium: rgba(0, 0, 0, 0.45);
  --jr-overlay-dark-strong: rgba(25, 25, 25, 0.8);
  --jr-overlay-brand-soft: rgba(37, 99, 235, 0.08);
  --jr-overlay-brand-medium: rgba(56, 189, 248, 0.45);
  --jr-overlay-light-soft: rgba(255, 255, 255, 0.55);

  /* Gradient */
  --jr-gradient-brand: linear-gradient(180deg, #7dd3fc 0%, #2563eb 100%);
  --jr-gradient-hero: var(--jr-hero-bg);
  --jr-gradient-section: var(--jr-bg-risk);
  --jr-gradient-card: linear-gradient(180deg, rgba(146, 94, 45, 0) 0%, rgba(25, 25, 25, 0.8) 100%);
  --jr-gradient-cta: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  --jr-gradient-footer: linear-gradient(135deg, #0f2847 0%, #0a1f38 50%, #071422 100%);

  /* Legacy token bridge (temple-theme :root in bundle) */
  --jrwhite: var(--jr-text-inverse-soft);
  --jrsoftwhite: #e8eef7;
  --jrblack: var(--jr-text-dark);
  --brown50: var(--jr-brand-accent-softer);
  --brown100: #d4e4fb;
  --brown200: #a8c9f5;
  --brown300: #7eb3f0;
  --brown400: var(--jr-brand-primary-light);
  --brown500: var(--jr-brand-primary);
  --brown600: var(--jr-brand-secondary);
  --brown700: var(--jr-brand-primary-dark);
  --brown800: var(--jr-brand-primary-deep);
  --brown900: var(--jr-brand-primary-darker);
  --temple-deep: var(--jr-bg-section-dark);
  --temple-deep-2: var(--jr-bg-section-dark-alt);
  --temple-surface: var(--jr-bg-section);
  --temple-surface-2: var(--jr-bg-section-alt);
  --temple-card: var(--jr-bg-card);
  --temple-card-muted: var(--jr-card-bg-soft);
  --temple-border: var(--jr-border-default);
  --temple-border-strong: var(--jr-border-strong);
  --temple-accent: var(--jr-brand-accent);
  --temple-accent-2: var(--jr-brand-primary);
  --temple-text: var(--jr-text-main);
  --temple-text-muted: var(--jr-text-sub);
  --temple-chip-bg: var(--jr-brand-accent-soft);
  --temple-chip-text: var(--jr-text-chip);
  --temple-hero-bg: var(--jr-hero-bg);
  --jr-surface-risk-bg: var(--jr-bg-risk);
  --jr-surface-review-bg: var(--jr-bg-review-gradient);
  --temple-strip-bg-light: linear-gradient(180deg, var(--jr-bg-strip-light-start) 0%, var(--jr-bg-strip-light-mid) 42%, var(--jr-bg-strip-light-end) 100%);
  --temple-strip-bg-deep: linear-gradient(180deg, var(--jr-bg-strip-deep-start) 0%, var(--jr-bg-strip-deep-mid) 48%, var(--jr-bg-strip-deep-end) 100%);

  /* Mobile backup hero / lawyer card warm tones */
  --jr-lawyer-warm-dark: #2d2419;
  --jr-lawyer-warm-mid: #1f1711;
  --jr-lawyer-warm-accent: #c5a67d;
  --jr-lawyer-warm-tan: #b0a090;
  --jr-lawyer-warm-brown: #714923;
  --jr-lawyer-warm-gold: #cd853f;
  --jr-lawyer-warm-surface: #f1ece6;

  /* Semantic / alert */
  --jr-semantic-danger: #991b1b;
  --jr-semantic-danger-dark: #7f1d1d;
  --jr-semantic-danger-bright: #dc2626;
  --jr-semantic-danger-bg: #450a0a;
  --jr-semantic-danger-alt: #b91c1c;

  /* Utility neutrals */
  --jr-neutral-900: #000000;
  --jr-neutral-800: #333333;
  --jr-neutral-600: #666666;
  --jr-neutral-border: #eeeeee;
  --jr-neutral-slate: #475569;
  --jr-neutral-blue-gray: #1e3a5f;
  --jr-neutral-blue-tint: #d8e6ff;
  --jr-neutral-blue-tint-2: #dbe7fb;
  --jr-neutral-blue-tint-3: #f1f5ff;
  --jr-neutral-blue-tint-4: #f8fbff;
  --jr-neutral-blue-tint-5: #eff6ff;
  --jr-neutral-blue-tint-6: #bfdbfe;
  --jr-neutral-surface: #e8ecf1;
  --jr-neutral-slate-700: #334155;

  /* 히어로 훅 플로트 배지 (블루 테마) */
  --jr-hero-primary-badge-w: calc(min(18rem, 42vw) * 0.8);
  --jr-hero-primary-badge-border: rgba(56, 189, 248, 0.48);
  --jr-hero-primary-badge-bg: linear-gradient(
    165deg,
    rgba(239, 248, 255, 0.98) 0%,
    rgba(218, 235, 252, 0.96) 55%,
    rgba(199, 224, 248, 0.94) 100%
  );
  --jr-hero-primary-badge-color: #0f2847;
  --jr-hero-primary-badge-icon-ring-bg: linear-gradient(155deg, #f0f9ff 0%, #dbeafe 50%, #93c5fd 100%);
  --jr-hero-primary-badge-icon-ring-border: rgba(56, 189, 248, 0.38);
  --jr-hero-primary-badge-icon-fill: linear-gradient(
    155deg,
    #38bdf8 0%,
    #2563eb 35%,
    #1d4ed8 65%,
    #1e3a8a 100%
  );
  --jr-hero-hook-badge-highlight: rgba(56, 189, 248, 0.52);
  --jr-hero-hook-badge-highlight-shadow: rgba(30, 64, 175, 0.28);

  /* 히어로 하단 훅 버튼 */
  --jr-hero-hook-color: #e8eef7;
  --jr-hero-hook-sub-color: #94a3b8;
  --jr-hero-hook-kicker-color: #7dd3fc;
  --jr-hero-hook-border: rgba(56, 189, 248, 0.22);
  --jr-hero-hook-bg: rgba(10, 22, 40, 0.35);
  --jr-hero-hook-band-bg: rgba(15, 40, 71, 0.45);
  --jr-hero-hook-band-border: rgba(56, 189, 248, 0.28);
  --jr-hero-hook-hover-bg: rgba(15, 40, 71, 0.88);
  --jr-hero-hook-hover-border: rgba(125, 211, 252, 0.4);
}

/* 히어로: 학교폭력 classroom 배경 (형사 경찰 이미지 제거) */
:root {
  --temple-hero-bg: var(--jr-hero-bg);
  --temple-hero-photo-url: url("/images/hero-school-classroom.png");
}

/* 롤링·우측 고정용 배지 */
#jrMember.visual
  .jr-hero-fixed--primary:not(:is(.jr-hero-hooks .jr-hero-fixed--primary))
  .jr-hero-primary-badge-right-stack {
  position: absolute !important;
  left: 100% !important;
  top: 2.25rem !important;
  margin-left: 0.45rem !important;
  transform: translate(-90px, -100px) !important;
  z-index: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0.42rem !important;
  pointer-events: none !important;
}

#jrMember.visual
  .jr-hero-fixed--primary:not(:is(.jr-hero-hooks .jr-hero-fixed--primary))
  .jr-hero-primary-badge,
#jrMember.visual
  .jr-hero-fixed--primary:not(:is(.jr-hero-hooks .jr-hero-fixed--primary))
  .jr-hero-primary-badge-right,
#jrMobileBackupHero .lawyer-slider-others .jr-mobile-slide-img-wrap .jr-hero-primary-badge {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.56rem !important;
  width: var(--jr-hero-primary-badge-w) !important;
  max-width: var(--jr-hero-primary-badge-w) !important;
  min-height: 4rem !important;
  padding: 0.34rem 1.12rem 0.34rem 0.38rem !important;
  border: 1px solid var(--jr-hero-primary-badge-border) !important;
  border-radius: 999px !important;
  background: var(--jr-hero-primary-badge-bg) !important;
  color: var(--jr-hero-primary-badge-color) !important;
  font-size: 1.24rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: -0.02em !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 2px 8px rgba(15, 40, 71, 0.14) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5), 0 1px 2px rgba(15, 40, 71, 0.12) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#jrMember.visual
  .jr-hero-fixed--primary:not(:is(.jr-hero-hooks .jr-hero-fixed--primary))
  .jr-hero-primary-badge-right {
  position: static !important;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.56rem !important;
  width: var(--jr-hero-primary-badge-w) !important;
  max-width: var(--jr-hero-primary-badge-w) !important;
  min-height: 4rem !important;
  padding: 0.34rem 1.12rem 0.34rem 0.38rem !important;
  border-radius: 999px !important;
  font-size: 1.24rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  box-sizing: border-box !important;
}

#jrMember.visual
  .jr-hero-fixed--primary:not(:is(.jr-hero-hooks .jr-hero-fixed--primary))
  .jr-hero-primary-badge-right__medal {
  width: auto !important;
  height: 3.75rem !important;
  max-height: 4.5rem !important;
  flex: 0 0 auto !important;
  object-fit: contain !important;
}

.jr-hero-fixed--primary .jr-hero-primary-badge::before,
.jr-hero-fixed--primary.jr-hero-primary--upper-plain .jr-hero-primary-badge-right::before,
#jrMobileBackupHero .lawyer-slider-others .jr-mobile-slide-img-wrap .jr-hero-primary-badge::before {
  background: var(--jr-hero-primary-badge-icon-ring-bg) !important;
  border: 1px solid var(--jr-hero-primary-badge-icon-ring-border) !important;
}

.jr-hero-fixed--primary .jr-hero-primary-badge::after,
.jr-hero-fixed--primary.jr-hero-primary--upper-plain .jr-hero-primary-badge-right::after,
#jrMobileBackupHero .lawyer-slider-others .jr-mobile-slide-img-wrap .jr-hero-primary-badge::after {
  background: var(--jr-hero-primary-badge-icon-fill) !important;
}

/* page-home 번들 이후 CTA·푸터 (학폭 블루) */
#jrMember.visual .btn_group .btnRsv,
#jrMember.visual .btn_group .btnRsv.btncs.modal-trigger-btn,
#jrMember.visual #jr-hero-design-1 .slogan_wrap > .btn_group .btnRsv.btncs,
.visual .btn_group .btnRsv,
.visual .btn_group .btnRsv.btncs.modal-trigger-btn {
  color: var(--jr-cta-primary-text) !important;
  border: none !important;
  background: var(--jr-gradient-cta) !important;
  background-color: transparent !important;
  box-shadow: var(--jr-shadow-cta) !important;
}

#jrMember.visual .btn_group .btnRsv:hover,
.visual .btn_group .btnRsv:hover {
  filter: brightness(1.06) !important;
  background: var(--jr-gradient-cta) !important;
  border-color: transparent !important;
  color: var(--jr-cta-primary-text) !important;
}

#jrMember.visual .btn_group .btnRsv i,
.visual .btn_group .btnRsv.btncs.modal-trigger-btn i {
  filter: brightness(0) invert(1) !important;
}

#jrMember.visual .btn_group .btnCall,
#jrMember.visual .btn_group .btnCall.btncs,
#jrMember.visual #jr-hero-design-1 .slogan_wrap > .btn_group .btnCall.btncs,
.visual .btn_group .btnCall,
.visual .btn_group .btnCall.btncs {
  display: flex !important;
  background: transparent !important;
  background-color: transparent !important;
  color: var(--jr-hero-subtitle) !important;
  border: 1px solid var(--jr-hero-border) !important;
  box-shadow: none !important;
}

#jrMember.visual .btn_group .btnCall:hover,
.visual .btn_group .btnCall:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: var(--jr-hero-title) !important;
}

html body main#target.pclayout footer.footer,
html body footer.footer.footer,
footer.footer,
.footer,
main#target .footer,
main#target.pclayout > .footer {
  --temple-hero-bg: none !important;
  background-color: var(--jr-footer-bg) !important;
  background-image: var(--jr-gradient-footer) !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  color: var(--jr-footer-text) !important;
}

