:root{
  --ab360-hero-radius: 30px;
  --ab360-hero-shadow: 0 26px 70px rgba(5,19,32,.18);
  --ab360-hero-overlay: linear-gradient(90deg, rgba(6,18,29,.88) 0%, rgba(8,22,36,.77) 34%, rgba(8,22,36,.54) 58%, rgba(8,22,36,.28) 100%);
  --ab360-hero-overlay-mobile: linear-gradient(180deg, rgba(6,18,29,.88) 0%, rgba(8,22,36,.74) 45%, rgba(8,22,36,.44) 100%);
  --ab360-hero-title: #f8fbfd;
  --ab360-hero-copy: rgba(244,249,252,.92);
  --ab360-hero-kicker: #d8b26a;
  --ab360-hero-button-shadow: 0 18px 38px rgba(3,18,30,.2);
  --ab360-text-strong: #0f2234;
  --ab360-text-default: #213748;
  --ab360-text-muted: #425b6c;
  --ab360-surface-soft: #f5f9fc;
}

body {
  color: var(--ab360-text-default);
}
body p, body li, body dd, body dt {
  color: var(--ab360-text-default);
}
body :is(.lede,.eyebrow,.kicker,.section-kicker,.subtle,.muted,.top-strip,small,.small-note,.bc-note,.helper-text,.field-help,.topic-hero p,.consultation p,.credentials-hero p,.hc-hero p,.bc-hero p) {
  color: var(--ab360-text-muted);
}
body h1, body h2, body h3, body h4 { color: var(--ab360-text-strong); }
body a { text-underline-offset: .14em; }
body .btn, body button, body input[type="submit"], body input[type="button"] {
  box-shadow: var(--ab360-hero-button-shadow);
  transition: transform .24s ease, box-shadow .24s ease, filter .24s ease, background-color .24s ease;
}
body .btn:hover, body button:hover, body input[type="submit"]:hover, body input[type="button"]:hover,
body .btn:focus-visible, body button:focus-visible, body input[type="submit"]:focus-visible, body input[type="button"]:focus-visible {
  transform: translateY(-2px);
  filter: saturate(1.03);
  box-shadow: 0 22px 42px rgba(3,18,30,.24);
}
body .btn:focus-visible, body a:focus-visible, body button:focus-visible, body input:focus-visible, body select:focus-visible, body textarea:focus-visible {
  outline: 3px solid rgba(214,173,97,.88);
  outline-offset: 3px;
}

/* stronger section contrast */
body .panel, body .consultation-card, body .review-page-link, body .specialist-context-card,
body .lead-form, body .referral-form, body .conversation-form, body .dedicated-review-form,
body .action-intake, body .faq-item, body .faq-card, body .step-card, body .why-item,
body .router-route, body .topic-overview .panel {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%) !important;
  border-color: rgba(111,145,166,.22) !important;
  box-shadow: 0 16px 40px rgba(4,22,41,.08) !important;
}
body .site-header, body .ab360-unified-header { box-shadow: 0 10px 32px rgba(4,22,41,.06); }
body footer, body .site-footer, body .bc-footer { color: #dfe9ef; }
body footer a, body .site-footer a, body .bc-footer a { color: #f4fbff; }
body footer a:hover, body .site-footer a:hover, body .bc-footer a:hover { color: #fff0c9; }

/* Premium photographic hero system */
.ab360-premium-hero,
body .hero.ab360-premium-hero,
body .topic-hero.ab360-premium-hero,
body .bc-hero.ab360-premium-hero,
body .hc-hero.ab360-premium-hero,
body .kyros-hero.ab360-premium-hero,
body .credentials-hero.ab360-premium-hero,
body .consultation.ab360-premium-hero {
  position: relative !important;
  overflow: hidden !important;
  border-radius: var(--ab360-hero-radius) !important;
  min-height: clamp(360px, 55vw, 620px);
  margin: 20px auto 28px !important;
  box-shadow: var(--ab360-hero-shadow) !important;
  isolation: isolate;
  background-color: #102131 !important;
  background-image: var(--ab360-hero-photo) !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}
.ab360-premium-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ab360-hero-overlay);
  z-index: 0;
}
.ab360-premium-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -8% auto;
  width: 48%;
  height: 52%;
  background: radial-gradient(circle at center, rgba(255,255,255,.18), rgba(255,255,255,0) 70%);
  z-index: 0;
  opacity: .75;
  pointer-events: none;
}
.ab360-premium-hero > *,
.ab360-premium-hero .hero-content,
.ab360-premium-hero .topic-hero-copy,
.ab360-premium-hero .bc-hero-inner,
.ab360-premium-hero .hc-hero-inner,
.ab360-premium-hero .credentials-hero-inner,
.ab360-premium-hero .consultation-wrap,
.ab360-premium-hero .kyros-hero-card,
.ab360-premium-hero .kyros-hero-content,
.ab360-premium-hero .hero-grid,
.ab360-premium-hero .hero-copy {
  position: relative;
  z-index: 1;
}
.ab360-premium-hero :is(h1,h2) {
  color: var(--ab360-hero-title) !important;
  text-shadow: 0 4px 20px rgba(0,0,0,.32);
}
.ab360-premium-hero p,
.ab360-premium-hero li,
.ab360-premium-hero .lede,
.ab360-premium-hero .helper,
.ab360-premium-hero .subtext,
.ab360-premium-hero .small-note,
.ab360-premium-hero .bc-note,
.ab360-premium-hero .hero-meta,
.ab360-premium-hero .plan-note {
  color: var(--ab360-hero-copy) !important;
  text-shadow: 0 2px 10px rgba(0,0,0,.28);
}
.ab360-premium-hero :is(.eyebrow,.kicker,.topic-kicker,.bc-kicker,.label,.path-label,.hero-badge,.route-badge,.section-kicker) {
  color: var(--ab360-hero-kicker) !important;
  letter-spacing: .12em !important;
  font-weight: 800 !important;
  text-transform: uppercase;
}
.ab360-premium-hero .btn,
.ab360-premium-hero button,
.ab360-premium-hero input[type="submit"] {
  box-shadow: 0 18px 38px rgba(0,0,0,.22) !important;
}
.ab360-premium-hero .btn.secondary,
.ab360-premium-hero .btn.secondary-outline,
.ab360-premium-hero .bc-btn-secondary,
.ab360-premium-hero .btn-outline {
  background: rgba(255,255,255,.12) !important;
  color: #f8fbfd !important;
  border-color: rgba(255,255,255,.3) !important;
  backdrop-filter: blur(6px);
}
.ab360-premium-hero .btn.secondary:hover,
.ab360-premium-hero .btn.secondary-outline:hover,
.ab360-premium-hero .bc-btn-secondary:hover,
.ab360-premium-hero .btn-outline:hover {
  background: rgba(255,255,255,.18) !important;
}

/* inner content glass panels where needed */
.ab360-premium-hero .ab360-hero-content-shell,
.ab360-premium-hero .kyros-hero-card,
.ab360-premium-hero .hero-proof-card,
.ab360-premium-hero .credentials-hero-card {
  background: linear-gradient(180deg, rgba(7,20,31,.58), rgba(7,20,31,.34)) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  box-shadow: 0 18px 45px rgba(0,0,0,.16) !important;
  backdrop-filter: blur(10px);
}

/* Page theme photography */
body[data-ab360-theme="home"]{ --ab360-hero-photo: url('/assets/premium-cards/legacy.jpg'); }
body[data-ab360-theme="funding"]{ --ab360-hero-photo: url('/assets/premium-cards/funding.jpg'); }
body[data-ab360-theme="payroll"]{ --ab360-hero-photo: url('/assets/premium-cards/payroll.jpg'); }
body[data-ab360-theme="workforce"]{ --ab360-hero-photo: url('/assets/premium-cards/workforce.jpg'); }
body[data-ab360-theme="protection"]{ --ab360-hero-photo: url('/assets/premium-cards/protection.jpg'); }
body[data-ab360-theme="technology"]{ --ab360-hero-photo: url('/assets/premium-cards/technology.jpg'); }
body[data-ab360-theme="health"]{ --ab360-hero-photo: url('/assets/premium-cards/health.jpg'); }
body[data-ab360-theme="retirement"]{ --ab360-hero-photo: url('/assets/premium-cards/retirement.jpg'); }
body[data-ab360-theme="legacy"]{ --ab360-hero-photo: url('/assets/premium-cards/legacy.jpg'); }
body[data-ab360-theme="education"]{ --ab360-hero-photo: url('/assets/premium-cards/education.jpg'); }
body[data-ab360-theme="professionals"]{ --ab360-hero-photo: url('/assets/premium-cards/professionals.jpg'); }
body[data-ab360-theme="default"]{ --ab360-hero-photo: url('/assets/premium-cards/professionals.jpg'); }

/* Hero spacing alignment for common page structures */
main > .ab360-premium-hero:first-child { width: min(1180px, calc(100% - 28px)); }
body .hero.ab360-premium-hero { width: min(1220px, calc(100% - 28px)); }
body .bc-hero.ab360-premium-hero,
body .hc-hero.ab360-premium-hero,
body .topic-hero.ab360-premium-hero,
body .credentials-hero.ab360-premium-hero,
body .consultation.ab360-premium-hero,
body .kyros-hero.ab360-premium-hero { padding: clamp(34px, 5vw, 56px) !important; }

/* homepage and generic hero copy widths */
.ab360-premium-hero .hero-content,
.ab360-premium-hero .topic-hero-copy,
.ab360-premium-hero .bc-hero-inner,
.ab360-premium-hero .hc-hero-inner,
.ab360-premium-hero .credentials-hero-inner,
.ab360-premium-hero .consultation-wrap,
.ab360-premium-hero .hero-grid > :first-child,
.ab360-premium-hero > .container:first-child,
.ab360-premium-hero > div:first-child {
  max-width: min(720px, 100%);
}
.ab360-premium-hero .hero-proof-card,
.ab360-premium-hero .kyros-hero-card,
.ab360-premium-hero .credentials-card { color:#f3f8fb !important; }

/* Section dividers and animation */
main section:not(.ab360-premium-hero) {
  position: relative;
}
main section.ab360-section-accent::before {
  content:"";
  position:absolute;
  left:0; top:-10px;
  width:82px; height:5px;
  border-radius:999px;
  background: linear-gradient(90deg, #127488, #d9b36a);
  opacity:.9;
}
.ab360-reveal-block { opacity:0; transform: translateY(20px); }
.ab360-reveal-block.is-visible { opacity:1; transform:none; transition: opacity .64s ease, transform .64s cubic-bezier(.22,.61,.36,1); }

/* form and utility contrast */
body label, body legend, body .field-label { color: #163046 !important; font-weight: 700; }
body input, body select, body textarea {
  color: #10263a;
  background: #fff;
  border-color: rgba(98,129,149,.35) !important;
}
body input::placeholder, body textarea::placeholder { color: #617a8d; }
body .top-strip { background:#0f2436 !important; color:#e9f2f7 !important; }
body .badge, body .route-badge, body .path-label { color:#123246 !important; }
body .faq summary, body .accordion-trigger { color:#123246 !important; }

@media (max-width: 860px){
  .ab360-premium-hero,
  body .hero.ab360-premium-hero,
  body .topic-hero.ab360-premium-hero,
  body .bc-hero.ab360-premium-hero,
  body .hc-hero.ab360-premium-hero,
  body .kyros-hero.ab360-premium-hero,
  body .credentials-hero.ab360-premium-hero,
  body .consultation.ab360-premium-hero {
    min-height: 360px;
  }
  .ab360-premium-hero::before{ background: var(--ab360-hero-overlay-mobile); }
  .ab360-premium-hero .hero-content,
  .ab360-premium-hero .topic-hero-copy,
  .ab360-premium-hero .bc-hero-inner,
  .ab360-premium-hero .hc-hero-inner,
  .ab360-premium-hero .credentials-hero-inner,
  .ab360-premium-hero .consultation-wrap,
  .ab360-premium-hero > div:first-child { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce){
  .ab360-reveal-block,
  .ab360-premium-hero,
  body .btn, body button, body input[type="submit"], body input[type="button"] { transition:none !important; transform:none !important; }
  .ab360-reveal-block { opacity:1 !important; }
}
