/* Fidelis Tax and Accounting. Brand colors taken from the Wix theme:
   charcoal rgb(35,33,33), olive rgb(156,161,30), greys rgb(235,235,235) / rgb(114,114,114). */
:root {
  --ink: #262626;
  --ink-soft: #474747;
  --charcoal: #232121;
  --charcoal-2: #454142;
  --olive: #9ca11e;
  --olive-dark: #5f6312;
  --olive-tint: #f3f4e4;
  --grey-1: #ebebeb;
  --grey-2: #727272;
  --paper: #ffffff;
  --wrap: 1120px;
  --radius: 6px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.65; color: var(--ink); background: var(--paper); }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--olive-dark); text-underline-offset: 2px; }
a:hover { color: var(--charcoal); }
:focus-visible { outline: 3px solid var(--olive); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.25; color: var(--charcoal); margin: 1.4em 0 .5em; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-top: .2em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
h5, .h5 { font-size: 1.05rem; }
h6 { font-size: 1rem; }
p, ul, ol { margin: 0 0 1em; }
.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; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--paper); color: var(--charcoal); padding: .6rem 1rem; z-index: 100; border-radius: var(--radius); }
.skip:focus { top: 1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
main:focus { outline: none; }

/* header */
.site-header { background: var(--charcoal); color: #fff; position: sticky; top: 0; z-index: 50; }
.hdr { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.logo { color: #fff; display: inline-flex; }
.logo svg { width: 150px; height: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.site-nav a, .sub-toggle { color: #fff; text-decoration: none; font: inherit; font-size: .95rem; padding: .55rem .7rem; display: block; border-radius: var(--radius); background: none; border: 0; cursor: pointer; }
.site-nav a:hover, .sub-toggle:hover, .site-nav a[aria-current="page"], .site-nav a.active, .has-sub.active > .sub-toggle { color: var(--olive); }
.sub-toggle::after { content: ""; display: inline-block; margin-left: .4rem; border: 5px solid transparent; border-top-color: currentColor; transform: translateY(3px); }
.has-sub { position: relative; }
.sub { position: absolute; left: 0; top: 100%; min-width: 230px; background: #fff; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.18); padding: .4rem 0; display: none; }
.sub a { color: var(--charcoal); padding: .5rem 1rem; border-radius: 0; }
.sub a:hover, .sub a[aria-current="page"] { background: var(--olive-tint); color: var(--olive-dark); }
.has-sub.open .sub, .has-sub:focus-within .sub { display: block; }
html:not(.js) .has-sub:hover .sub { display: block; }
.site-nav a.portal { border: 1px solid var(--olive); margin-left: .4rem; }
.site-nav a.portal:hover { background: var(--olive); color: var(--charcoal); }
.menu-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.4); border-radius: var(--radius); width: 44px; height: 44px; cursor: pointer; color: #fff; }
.bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; background: currentColor; margin: 0 auto; position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; } .bars::after { top: 6px; }

@media (max-width: 900px) {
  .js .menu-toggle { display: block; }
  .hdr { flex-wrap: wrap; }
  .site-nav { width: 100%; }
  .js .site-nav { display: none; padding-bottom: 1rem; }
  .js .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; }
  .sub { position: static; box-shadow: none; background: rgba(255,255,255,.06); }
  .sub a { color: #fff; padding-left: 1.6rem; }
  .sub a:hover, .sub a[aria-current="page"] { background: none; color: var(--olive); }
  .has-sub:focus-within .sub { display: none; }
  .has-sub.open .sub { display: block; }
  .site-nav a.portal { margin: .4rem 0 0; text-align: center; }
}

/* bands */
.band { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.band + .band { border-top: 1px solid var(--grey-1); }
.band-alt { background: #f6f6f4; }
.band-bg { position: relative; color: #fff; background: var(--charcoal) var(--bg) center / cover no-repeat; border-top: 0 !important; }
.band-bg::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(35,33,33,.88), rgba(35,33,33,.6)); }
.band-bg > .wrap { position: relative; }
.band-bg h1, .band-bg h2, .band-bg h3, .band-bg h4, .band-bg h5, .band-bg h6 { color: #fff; }
.band-bg a:not(.btn) { color: #fff; }
.band-bg .meta { color: #ddd; }
.band > .wrap > :first-child { margin-top: 0; }
.meta { color: var(--grey-2); font-size: .92rem; }
figure { margin: 1.5rem 0; }
figure img { border-radius: var(--radius); }
.video video { width: 100%; background: #000; border-radius: var(--radius); }

/* buttons */
.cta { margin: 1.5rem 0; }
.btn { display: inline-block; background: var(--olive); color: var(--charcoal); font-weight: 600; text-decoration: none; padding: .8rem 1.5rem; border-radius: 999px; letter-spacing: .02em; border: 2px solid var(--olive); }
.btn:hover { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.band-bg .btn:hover { background: #fff; border-color: #fff; color: var(--charcoal); }
.btn-ghost { background: transparent; color: var(--olive-dark); }
.btn-light { background: transparent; color: #fff; border-color: #fff; }
.btn-light:hover { background: #fff; color: var(--charcoal); }

/* home service links */
.card-links { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card-link a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; border: 1px solid var(--grey-1); border-left: 4px solid var(--olive); border-radius: var(--radius); text-decoration: none; color: var(--charcoal); font-weight: 500; background: #fff; }
.card-link a:hover { border-color: var(--olive); background: var(--olive-tint); }
.card-link .arrow { color: var(--olive-dark); font-weight: 600; }

/* contact replacement for Wix forms */
.contact-block { border: 1px solid var(--grey-1); border-left: 4px solid var(--olive); border-radius: var(--radius); padding: 1.2rem 1.4rem; background: #fff; color: var(--ink); margin: 1.5rem 0; }
.contact-block .cb-h { font-weight: 600; margin-bottom: .4rem; color: var(--charcoal); }
.contact-block ul { margin: 0; padding-left: 1.1rem; }
.band-bg .contact-block a { color: var(--olive-dark); }
.map a { font-size: .9rem; }

/* staff */
.staff { display: grid; grid-template-columns: minmax(0, 320px) 1fr; gap: 2.5rem; align-items: start; }
.staff-photo { border-radius: var(--radius); width: 100%; }
.staff-body h6 { color: var(--olive-dark); text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; margin-top: 0; }
@media (max-width: 700px) { .staff { grid-template-columns: 1fr; } .staff-media { max-width: 280px; } }

/* about */
.team-grid, .programs { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.team-card { text-align: center; }
.team-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); margin-bottom: .75rem; }
.tc-name { font-weight: 600; margin: 0; color: var(--charcoal); }
.tc-role { color: var(--grey-2); font-size: .92rem; margin: 0 0 .4rem; }
.tc-links a, .tc-links span { margin: 0 .35rem; font-size: .92rem; }
.programs { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }
.program img { height: 120px; width: 100%; object-fit: contain; background: #fff; border: 1px solid var(--grey-1); border-radius: var(--radius); padding: .75rem; }
.program h3 { margin-top: 1rem; }

/* blog */
.blog-nav ul { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.blog-nav a { text-transform: capitalize; }
.band:not(.band-bg) .blog-nav { margin-bottom: 1.5rem; }
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.post-card { border: 1px solid var(--grey-1); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pc-body { padding: 1.1rem 1.25rem 1.25rem; }
.pc-title { font-size: 1.15rem; margin: 0 0 .5rem; }
.pc-title a { color: var(--charcoal); text-decoration: none; }
.pc-title a:hover { color: var(--olive-dark); text-decoration: underline; }
.pc-ex { color: var(--ink-soft); font-size: .95rem; }
.pc-meta, .post-meta { color: var(--grey-2); font-size: .85rem; margin: 0; }
.post-meta { margin-bottom: 2rem; }
.post h2 { margin-top: 1.8em; }
.post ul, .post ol { padding-left: 1.3rem; }
.rec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.rec-head h2 { margin: 0 0 1.25rem; }

/* footer */
.site-footer { background: var(--charcoal); color: #d6d6d6; padding: 3rem 0 2rem; font-size: .92rem; }
.site-footer a { color: #fff; }
.ft-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.social { list-style: none; display: flex; gap: .75rem; margin: 0; padding: 0; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; }
.social a:hover { background: var(--olive); color: var(--charcoal); }
.social svg { height: 18px; width: auto; }
.ft-h { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin: 1.5rem 0 1rem; }
.locations { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.locations address { font-style: normal; }
.newsletter { margin-top: 1rem; }
.copy { margin: 2rem 0 0; color: #a9a9a9; }

/* announcement bar (Wix showed this as a banner image) */
.announce { background: var(--olive); color: var(--charcoal); padding: .7rem 0; border: 0 !important; }
.announce-text { margin: 0; font-weight: 500; font-size: .95rem; text-align: center; }
