:root{
  --brand:#0D2447;
  --brand-600:#0B1E3A;
  --ink:#0f172a;
  --muted:#64748b;
  --bg:#ffffff;
  --panel:#f1f5f9;
  --border:#e2e8f0;
  --radius:16px;
  --shadow:0 10px 30px rgba(2,6,23,.08);
  --space:clamp(16px,2vw,28px);
  --maxw:1200px;
  --logo-h:48px;
  --marquee-duration:36s; /* shared speed for marquees */
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font:16px/1.65 Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:var(--ink);background:var(--bg)}
img{max-width:100%;height:auto}
a{color:var(--brand);text-decoration:none}
a:hover{opacity:.9}

/* NAV */
.nav{position:sticky;top:0;z-index:1000;background:rgba(255,255,255,.9);backdrop-filter:saturate(180%) blur(8px);border-bottom:1px solid var(--border)}
.nav-inner{max-width:var(--maxw);margin:auto;display:flex;align-items:center;gap:18px;padding:.7rem var(--space)}
.brand{display:flex;align-items:center;gap:10px}
.brand img{height:40px;width:auto;border-radius:10px}
.brand .name{font-weight:800;letter-spacing:.2px}
.menu{margin-left:auto;display:flex;gap:18px;flex-wrap:wrap}
.menu a{padding:.45rem .7rem;border-radius:10px;color:var(--ink)}
.menu a:hover,.menu a:focus{background:var(--panel)}
.cta-nav{margin-left:8px}

/* UTIL */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:.8rem 1rem;border-radius:12px;border:1px solid transparent;cursor:pointer;font-weight:700}
.btn.primary{background:var(--brand);color:#fff}
.btn.primary:hover{background:var(--brand-600)}
.btn.ghost{border-color:var(--border);background:#fff;color:var(--ink)}
.card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:clamp(16px,2vw,22px)}
.kicker{color:var(--brand);font-weight:800;text-transform:uppercase;font-size:.8rem;letter-spacing:.12em}
.pill{display:inline-flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--border);padding:.35rem .75rem;border-radius:999px;font-size:.9rem;color:var(--muted)}
.list{margin:0;padding-left:1.1rem}

h1{font-size:clamp(30px,4.6vw,50px);line-height:1.12;margin:.6rem 0}
h2{font-size:clamp(22px,3.6vw,36px);margin:.4rem 0 1rem}
h3{font-size:clamp(18px,2.4vw,22px);margin:.2rem 0 .5rem}
p{margin:.6rem 0}

/* HERO */
.hero{padding:clamp(38px,6vw,80px) var(--space);background:linear-gradient(180deg,#f8fafc,transparent)}
.hero-inner{max-width:var(--maxw);margin:auto;display:grid;grid-template-columns:1.1fr .9fr;gap:28px}
@media (max-width:900px){.hero-inner{grid-template-columns:1fr}}
.lead{font-size:1.1rem;color:var(--muted);max-width:60ch}

/* SECTIONS */
section{padding:clamp(44px,7vw,90px) var(--space)}
.section-inner{max-width:var(--maxw);margin:auto}
.grid{display:grid;gap:20px}
.grid.cols-2{grid-template-columns:1fr 1fr}
.grid.cols-3{grid-template-columns:repeat(3,1fr)}
@media (max-width:900px){.grid.cols-2,.grid.cols-3{grid-template-columns:1fr}}

/* About layout */
#about .about-grid{display:grid;grid-template-columns:minmax(220px,260px) 1fr;gap:20px;align-items:start}
@media (max-width:900px){#about .about-grid{grid-template-columns:1fr}}
#about .about-copy{margin-bottom:16px}

/* Services */
.service{border:1px solid var(--border);border-radius:14px;padding:18px;background:linear-gradient(180deg,#ffffff,#fbfbfc)}
.service p{color:var(--muted)}
.badge{display:inline-flex;align-items:center;gap:6px;padding:.15rem .55rem;border:1px solid var(--border);border-radius:999px;font-size:.75rem;color:var(--muted);background:#fff}
.badge.req{background:#eef2ff;border-color:#c7d2fe;color:#3730a3}
.services-disclaimer{margin-top:14px;background:#f8fafc;border:1px solid var(--border);border-radius:12px;padding:12px;font-size:.9rem;color:#475569}

/* Logo slider (Affiliations) */
.logo-strip{position:relative;overflow:hidden;border:1px solid var(--border);border-radius:14px;background:#fff}
.logo-track{display:flex;gap:40px;align-items:center;padding:16px;animation:scroll var(--marquee-duration,40s) linear infinite}
.logo-strip:hover .logo-track{animation-play-state:paused}
.logo-track img{height:40px;width:auto}
#affiliations .logo-track img{filter:none;opacity:1} /* force colour */
@keyframes scroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* Provider logos marquee (Insurers) */
.logo-marquee{position:relative;overflow:hidden;border:1px solid var(--border);border-radius:14px;background:#fff}
.logo-marquee__track{display:flex;gap:40px;align-items:center;padding:18px;width:max-content;animation:marquee var(--marquee-duration,40s) linear infinite}
.logo-marquee img{max-height:var(--logo-h);width:auto;transition:transform .2s}
.logo-marquee img:hover{transform:translateY(-1px)}
.logo-marquee:hover .logo-marquee__track{animation-play-state:paused}
@keyframes marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (max-width:640px){.logo-marquee__track{gap:28px}}
@media (prefers-reduced-motion: reduce){.logo-marquee__track{animation:none}}

/* Contact */
.contact-wrap{display:grid;grid-template-columns:1fr;gap:32px}
.map iframe{width:100%;height:380px;border:0;border-radius:12px}
/* Consistent fields */
.field{display:grid;gap:6px}
.field label{font-weight:600}
.field input,.field textarea{width:100%;padding:.7rem .9rem;border:1px solid var(--border);border-radius:10px;font:inherit;box-sizing:border-box;background:#fff;outline:none}
.field input{height:44px}
.field input:focus,.field textarea:focus{border-color:#94a3b8;box-shadow:0 0 0 3px rgba(148,163,184,.25)}

/* Footer */
footer{padding:30px var(--space);border-top:1px solid var(--border);color:var(--muted);background:#fafafa}
.legal{font-size:.92rem;max-width:var(--maxw);margin:12px auto 0;}
.fineprint{font-size:.85rem;color:#6b7280}


.hero { position: relative; overflow: hidden; background: linear-gradient(180deg,#f8fafc,transparent); }
.hero-text, .hero-inner > .card{ position:relative; z-index:1; }
.hero-text{ opacity:0; transform: translateY(6px); animation: heroContentIn 650ms ease-out 180ms forwards; }
.hero-inner > .card{ opacity:0; transform: translateY(6px); animation: heroContentIn 650ms ease-out 300ms forwards; }
@keyframes heroLogoFade{ from{opacity:0; transform:translate(-50%,-50%) scale(1);} to{opacity:.08; transform:translate(-50%,-50%) scale(1);} }
@keyframes heroLogoDrift{ from{transform:translate(-50%,-50%) scale(1);} to{transform:translate(-50%,-50%) scale(1.06);} }
@keyframes heroContentIn{ from{opacity:0; transform:translateY(8px);} to{opacity:1; transform:translateY(0);} }
@media (prefers-reduced-motion: reduce){ .hero-text, .hero-inner > .card{ animation:none !important; opacity:1; transform:none; } }
}


.hero{ position:relative; overflow:hidden; }
.hero::before{
  content:"";
  position:absolute; inset:0;
  background-image:url('assets/krdfinancial.jpg');
  background-repeat:no-repeat;
  background-position:center 52%;
  background-size:min(78%, 900px) auto;
  opacity:.08;
  transform:scale(1);
  z-index:0;
  pointer-events:none;
  animation: heroLogoFadeBg 900ms ease-out 200ms forwards, heroLogoDriftBg 22s ease-in-out 1.2s infinite alternate;
}
.hero-text, .hero-inner > .card{ position:relative; z-index:1; }

@keyframes heroLogoFadeBg{
  from{ opacity:0; transform:scale(1); }
  to  { opacity:.08; transform:scale(1); }
}
@keyframes heroLogoDriftBg{
  from{ transform:scale(1); }
  to  { transform:scale(1.06); }
}

@media (prefers-reduced-motion: reduce){
  .hero::before{ animation:none !important; opacity:.08; transform:none; }
}

/* Minimal hero after text removal */
.hero-spacer{ min-height: 280px; }
@media (min-width: 900px){
  .hero-spacer{ min-height: 360px; }
}


.hero{ position:relative; overflow:hidden; background:none; }
.hero::before, .hero::after{ content:none !important; } /* remove bg pseudo-elements entirely */
.hero{ min-height: 420px; }
@media (min-width: 900px){ .hero{ min-height: 560px; } }

.hero-fore{
  display:flex; align-items:center; justify-content:center;
  padding: clamp(32px, 8vw, 72px) 0;
}
.hero-logo-foreground{
  display:block;
  width: min(88vw, 1200px);
  height:auto;
  opacity: 1;            /* fully visible */image-rendering: auto;
}


.hero{
  position: relative;
  background: none;
  min-height: clamp(420px, 60vh, 680px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-fore{
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 0; /* let image fill the area */
}
.hero-logo-foreground{
  width: 100%;
  height: 100%;
  object-fit: contain;    /* fully visible, no cropping */
  object-position: center;
  display: block;
}


.hero .hero-inner{
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;              /* replace grid */
  align-items: center;
  justify-content: center;
  gap: 0;
}
.hero .hero-inner > *{ width: 100%; } /* let the logo container take full row */

/* Nav tweaks after removing brand */
.nav-inner{ gap:12px; }
.menu{ margin-left:0; }


/* === KRD update: constrain hero logo size and keep aspect === */
.hero-logo-foreground{
  width: min(90vw, 560px) !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block;
}


/* === KRD update: make hero logo stretch full width === */
.hero .hero-inner{ 
  max-width: none !important; 
  width: 100% !important; 
  padding-left: 0 !important; 
  padding-right: 0 !important;
}
.hero-fore{ 
  width: 100% !important; 
  height: auto !important; 
  display: grid; 
  place-items: center; 
}
.hero-logo-foreground{
  width: 100% !important;     /* fill available width */
  max-width: 100vw !important;/* edge-to-edge on viewport */
  height: auto !important;    /* preserve aspect */
  object-fit: contain !important;
  object-position: center !important;
  display:block;
}


/* === KRD tweak 2: smaller logo cap + deep-blue hero bg === */
:root{
  --krd-blue:#0D2447;
}
.hero{
  background: var(--krd-blue) !important;
  min-height: unset !important;
  padding: clamp(36px, 8vw, 80px) 0 !important;
}
.hero .hero-inner{
  max-width: var(--maxw) !important;
  width: 100% !important;
  padding-left: var(--space) !important;
  padding-right: var(--space) !important;
  display: flex !important;
  justify-content: center !important;
}
.hero-fore{
  width: 100% !important;
  display: grid !important;
  place-items: center !important;
}
.hero-logo-foreground{
  width: min(92vw, 880px) !important;  /* cap size */
  height: auto !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
}

/* === Community slideshow (Fit images, no blur, neutral buttons) === */
.community-slideshow {
  position: relative;
  margin-top: 3rem;
  width: 100%;
  height: 420px;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}

.community-slideshow .slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.community-slideshow .slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;   /* show entire image without cropping */
  background-color: #000;     /* bars look intentional; change if desired */
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

.community-slideshow .slide.active {
  opacity: 1;
  z-index: 1;
}

/* Navigation arrows — neutral (no blue) */
.community-slideshow .prev,
.community-slideshow .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  color: #111;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 10;
  transition: background .2s ease, transform .2s ease, color .2s ease;
}

.community-slideshow .prev:hover,
.community-slideshow .next:hover {
  background: rgba(0,0,0,0.85);
  color: #fff;                /* invert on hover */
  transform: translateY(-50%) scale(1.07);
}

.community-slideshow .prev { left: 20px; }
.community-slideshow .next { right: 20px; }

/* Responsive tweaks */
@media (max-width: 900px) {
  .community-slideshow { height: 320px; }
}
@media (max-width: 650px) {
  .community-slideshow { height: 240px; }
  .community-slideshow .prev,
  .community-slideshow .next {
    width: 44px; height: 44px; font-size: 1.5rem;
  }
}
/* keep a consistent frame; switch to aspect-ratio if you prefer */
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}

.community-slideshow .slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.community-slideshow .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  z-index: 0;                 /* base below active */
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;   /* show entire image */
}

.community-slideshow .slide.active {
  opacity: 1;
  z-index: 1;
}

/* Blurred background fill behind the contained image */


/* Navigation arrows */
.community-slideshow .prev,
.community-slideshow .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.85);
  color: #222;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 10;
  transition: all .3s ease;
}

.community-slideshow .prev:hover,
.community-slideshow .next:hover {
  background: #0072ff;
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.community-slideshow .prev { left: 25px; }
.community-slideshow .next { right: 25px; }

/* Responsive tweaks */
@media (max-width: 900px) {
  .community-slideshow { height: 320px; }
}
@media (max-width: 650px) {
  .community-slideshow { height: 240px; }
  .community-slideshow .prev,
  .community-slideshow .next {
    width: 44px; height: 44px; font-size: 1.4rem;
  }
}
/* Navigation arrows */
.community-slideshow .prev,
.community-slideshow .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.85);
  color: #222;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 10;
  transition: all .3s ease;
}

.community-slideshow .prev:hover,
.community-slideshow .next:hover {
  background: #0072ff;
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.community-slideshow .prev { left: 25px; }
.community-slideshow .next { right: 25px; }

/* Responsive tweaks */
@media (max-width: 900px) {
  .community-slideshow { height: 320px; }
}
@media (max-width: 650px) {
  .community-slideshow { height: 240px; }
  .community-slideshow .prev,
  .community-slideshow .next {
    width: 44px; height: 44px; font-size: 1.4rem;
  }
}
/* Navigation arrows */
.community-slideshow .prev,
.community-slideshow .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 55px;
  height: 55px;
  background: rgba(255, 255, 255, 0.82);
  border: none;
  color: #222;
  font-size: 2rem;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  z-index: 5;
  transition: all 0.3s.ease;
  display: grid;
  place-items: center;
}

.community-slideshow .prev:hover,
.community-slideshow .next:hover {
  background: #0072ff;
  color: #fff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.community-slideshow .prev { left: 25px; }
.community-slideshow .next { right: 25px; }

/* Responsive */
@media (max-width: 900px) {
  .community-slideshow { height: 320px; }
}
@media (max-width: 700px) {
  .community-slideshow { height: 260px; }
  .community-slideshow .prev,
  .community-slideshow .next { width: 42px; height: 42px; font-size: 1.4rem; }
}
/* Navigation arrows */
.community-slideshow .prev,
.community-slideshow .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 0.4em 0.6em;
  cursor: pointer;
  border-radius: 50%;
  z-index: 2;
  transition: background 0.3s;
}

.community-slideshow .prev:hover,
.community-slideshow .next:hover {
  background: rgba(0,0,0,0.7);
}

.community-slideshow .prev { left: 20px; }
.community-slideshow .next { right: 20px; }

/* Responsive */
@media (max-width: 900px) {
  .community-slideshow { height: 300px; }
}
@media (max-width: 600px) {
  .community-slideshow { height: 220px; }
  .community-slideshow .prev, .community-slideshow .next { font-size: 1.5rem; }
}


/* === No-blur hard override === */
.community-slideshow .slide::before{
  content: none !important;
  display: none !important;
}
.community-slideshow .slide{
  filter: none !important;
  -webkit-filter: none !important;
  background-size: contain !important; /* ensure fit */
  background-repeat: no-repeat !important;
  background-position: center !important;
}

/* --- Social badges (footer) --- */
.socials{
  display:flex;
  gap:12px;
  justify-content:center;
  align-items:center;
  padding:16px 0 10px;
}
.social-btn{
  width:46px; height:46px;
  border-radius:999px;
  display:grid; place-items:center;
  background: var(--brand);
  color:#fff; border:1px solid var(--brand-600);
  box-shadow: 0 6px 18px rgba(2,6,23,.12);
  transition: transform .15s ease, box-shadow .15s ease, opacity .2s ease, background .15s ease;
}
.social-btn svg{ width:22px; height:22px; fill: currentColor; display:block; }
.social-btn:hover,
.social-btn:focus-visible{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(2,6,23,.18);
  outline: none;
}

/* brand tints per network for instant recognition */
.social-btn.facebook{ background:#1877F2; border-color:#0f5bd1; }
.social-btn.facebook:hover{ background:#166FE5; }

.social-btn.linkedin{ background:#0A66C2; border-color:#084f97; }
.social-btn.linkedin:hover{ background:#0959a8; }

/* Screen reader only text */
.sr-only{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}

/* small screens: keep tap targets comfy */
@media (max-width: 420px){
  .social-btn{ width:44px; height:44px; }
  .social-btn svg{ width:20px; height:20px; }
}


/* Subtle fade for the blue background on the hero logo */
.hero-logo-foreground{
  /* Soften the heavy blue without blurring the logo *//* If you ever need to disable this quickly, toggle the next line */
  /**/
}


/* Accessibility & Mobile Focus Enhancements */
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}
img, svg { max-width: 100%; height: auto; }
@media (max-width: 768px){
  .nav-inner, .hero-inner, .footer, footer { padding: 1rem; }
  .menu a { padding: .6rem .8rem; font-size: .95rem; }
}


/* Stacked contact form */
.form-stacked{
  display:flex;
  flex-direction:column;
  gap:18px;
}
.form-stacked label{
  font-weight:600;
}
.form-stacked input,
.form-stacked textarea{
  width:100%;
  padding:.75rem 1rem;
  border:1px solid var(--border);
  border-radius:10px;
  font:inherit;
}
.center-btn{
  text-align:center;
}
.center-btn .btn{
  padding:.9rem 2rem;
}

/* Static call strip above footer */
.call-strip {
  padding: 18px var(--space);
  background: #0D2447;
  text-align: center;
}

.call-strip__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  background: #ffffff;
  color: #0D2447;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(15,23,42,0.35);
  border: none;
  transition: 0.2s ease;
}

.call-strip__btn:hover {
  opacity: 0.97;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .call-strip__btn {
    width: 100%;
    max-width: 320px;
  }
}

/* Direct Contact Buttons */
.direct-contact-buttons {
  margin-top: 32px;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.direct-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.9rem 1.8rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: 0.2s ease;
}

/* Email button */
.email-btn {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand-600);
}
.email-btn:hover {
  background: var(--brand-600);
}

/* Call button */
.call-btn {
  background: #ffffff;
  color: var(--brand);
  border: 2px solid var(--brand);
}
.call-btn:hover {
  background: var(--panel);
}

/* Responsive */
@media (max-width: 600px) {
  .direct-btn {
    width: 100%;
    justify-content: center;
  }
}
