/* Vanessa L. Blevins, CPA & Company, LLC
   Site stylesheet */

:root {
  color-scheme: dark;
  --navy: #23272d;        /* menu bar, footer */
  --navy-light: #3d5675;  /* buttons */
  --tan: #d0ae7b;
  --tan-dark: #94733f;
  --bg: #2f3338;          /* page */
  --surface: #3a3f46;     /* cards, boxes, alternate bands */
  --white: #fff;          /* text on photos, menu bar and buttons */
  --text: #e1e3e6;
  --muted: #a9afb7;
  --rule: #4c535c;
  --heading: #f3efe6;
  --link: #9cc4ea;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; border: 0; }

a { color: var(--link); }
a:hover { color: var(--heading); }

h1, h2, h3, h4 {
  font-family: Lora, Georgia, "Times New Roman", serif;
  font-weight: 400;
  color: var(--heading);
  line-height: 1.25;
  margin: 0 0 .6em;
}
h1 { font-size: 38px; font-style: italic; }
h2 { font-size: 28px; font-style: italic; }
h3 { font-size: 21px; font-weight: 600; }
h4 { font-size: 17px; font-weight: 600; }

p { margin: 0 0 1.1em; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; margin: 0 auto; }
.center { text-align: center; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--surface); color: var(--heading); padding: 10px 16px; z-index: 1000;
}
.skip:focus { left: 10px; top: 10px; }

/* ---------- Top bar / navigation ---------- */

.topbar { background: var(--navy); color: var(--white); position: relative; z-index: 50; }
.topbar-inner { display: flex; align-items: stretch; justify-content: space-between; padding: 0 12px; }

.menu, .menu ul { list-style: none; margin: 0; padding: 0; }
.menu { display: flex; }
.menu li { position: relative; }
.menu > li > a {
  display: block; padding: 0 17px; line-height: 50px;
  color: var(--white); text-decoration: none; text-transform: uppercase;
  font-size: 13px; font-weight: 600; letter-spacing: .05em; white-space: nowrap;
}
.menu > li > a:hover, .menu > li.current > a { color: var(--tan); }

.menu ul {
  display: none; position: absolute; left: 0; top: 100%; min-width: 250px;
  background: var(--surface); border-top: 3px solid var(--tan);
  box-shadow: 0 3px 8px rgba(0,0,0,.2);
}
.menu ul ul { left: 100%; top: -3px; }
.menu li:hover > ul, .menu li:focus-within > ul { display: block; }
.menu ul a {
  display: block; padding: 9px 16px; color: var(--text); text-decoration: none;
  font-size: 14px; border-bottom: 1px solid var(--rule);
}
.menu ul li:last-child > a { border-bottom: 0; }
.menu ul a:hover { background: #454b53; color: var(--white); }
.menu ul li.has-sub > a:after { content: "\203A"; float: right; color: #999; }
.sub-toggle { display: none; }

.topbar-right { display: flex; align-items: center; }
.topbar-right a {
  color: var(--white); text-decoration: none; text-transform: uppercase;
  font-size: 13px; font-weight: 600; letter-spacing: .05em; padding: 0 12px; line-height: 50px;
}
.topbar-right a:hover { color: var(--tan); }
.topbar-right .sep { color: #7e858d; }
.topbar-right .fa { margin-right: 5px; }

.menu-button {
  display: none; background: none; border: 0; color: var(--white); cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
  padding: 0 12px; line-height: 50px;
}
.menu-button .fa { margin-right: 6px; }

/* ---------- Hero ---------- */

.hero {
  position: relative; color: var(--white);
  background: #2f3338 url(../img/hero-wch2.jpg) center center / cover no-repeat;
  display: flex; flex-direction: column;
  min-height: 640px; padding: 48px 5%;
}
.hero:before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; bottom: 0;
  background: linear-gradient(rgba(18, 22, 28, .30), rgba(18, 22, 28, .62));
}
.hero:after {
  content: ""; position: absolute; left: 22px; top: 22px; right: 22px; bottom: 22px;
  border: 2px solid rgba(255,255,255,.65); pointer-events: none;
}
.hero > * { position: relative; z-index: 2; }

.hero-head { display: flex; justify-content: space-between; align-items: center; }

.logo { color: var(--white); text-decoration: none; display: inline-block; line-height: 1; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.logo:hover { color: var(--white); }
.logo-mark { font-family: Arvo, Rockwell, Georgia, serif; font-weight: 700; font-size: 40px; letter-spacing: .02em; }
.logo-mark span { color: #5fa8e8; }
.logo-name { display: block; margin-top: 7px; font-size: 11px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }

.hero-phone { text-align: center; text-transform: uppercase; font-size: 19px; font-weight: 600; line-height: 1.3; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.hero-phone span { display: block; font-size: 14px; letter-spacing: .1em; }
.hero-phone a { color: var(--white); text-decoration: none; }

.hero-tag { margin-top: auto; padding: 40px 0 24px; }
.hero-tag p {
  font-family: Lora, Georgia, serif; font-style: italic; font-size: 64px; line-height: 1.15;
  margin: 0 0 26px; text-shadow: 0 2px 6px rgba(0,0,0,.45);
}

.hero.inner { min-height: 300px; background-image: url(../img/hero-inner-wch2.jpg); padding-top: 40px; padding-bottom: 40px; }
.hero.inner .hero-tag { padding: 30px 0 4px; }
.hero.inner .hero-tag h1 { color: var(--white); font-size: 46px; margin: 0; text-shadow: 0 2px 6px rgba(0,0,0,.45); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block; background: var(--navy-light); color: var(--white);
  border: 0; cursor: pointer; text-decoration: none; text-transform: uppercase;
  font-family: inherit; font-size: 14px; font-weight: 600; letter-spacing: .06em;
  padding: 16px 40px; line-height: 1.4;
}
.btn { transition: all .1s ease-in; }
.btn:hover { background: var(--navy); color: var(--white); }
.btn .fa { margin-right: 7px; }
.btn-tan { background: var(--tan-dark); }
.btn-tan:hover { background: #7b5e31; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- Home sections ---------- */

.section { padding: 80px 0; }
.section.white { background: var(--surface); }
.section h1, .section .h1 { text-align: center; font-size: 38px; font-style: italic; font-family: Lora, Georgia, serif; color: var(--heading); margin: 0; line-height: 1.25; }
.line { width: 80px; height: 3px; background: var(--tan); border: 0; margin: 22px auto 28px; }
.lead { font-size: 18px; line-height: 1.75; }
.section .actions { text-align: center; margin: 30px 0 0; }

.tiles { display: flex; flex-wrap: wrap; }
.tile { position: relative; flex: 1 1 33.333%; min-width: 300px; overflow: hidden; background: var(--navy); }
.tile img { display: block; width: 100%; height: 300px; object-fit: cover; transition: transform .2s linear; }
.tile a {
  position: absolute; left: 0; top: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(25, 29, 35, .55); color: var(--white); text-decoration: none; transition: background .3s ease;
  text-shadow: 0 1px 4px rgba(0,0,0,.5); transition: background .3s;
}
.tile a:hover { background: rgba(25, 29, 35, .3); }
.tile:hover img { transform: scale(1.1); }
.tile strong { font-family: Lora, Georgia, serif; font-style: italic; font-weight: 400; font-size: 40px; line-height: 1.1; }
.tile span { text-transform: uppercase; letter-spacing: .15em; font-size: 14px; font-weight: 600; margin-top: 6px; }

.dates { list-style: none; margin: 0 auto; padding: 0; max-width: 640px; text-align: left; }
.dates li { display: flex; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.dates li:last-child { border-bottom: 0; }
.dates .when { flex: 0 0 200px; font-family: Lora, Georgia, serif; font-size: 19px; color: var(--tan-dark); font-weight: 600; }
.dates .what { flex: 1; }

.icons { display: flex; justify-content: center; text-align: center; margin: 0 0 22px; }
.icons a { flex: 1; color: var(--text); text-decoration: none; text-transform: uppercase; font-size: 15px; padding: 10px; }
.icons .fa { transition: color .3s ease; display: block; font-size: 44px; color: var(--navy-light); margin-bottom: 10px; }
.icons a:hover, .icons a:hover .fa { color: var(--tan-dark); }
.callnow a { color: var(--heading); text-decoration: none; white-space: nowrap; }

/* ---------- Inner pages ---------- */

.crumbs { padding: 22px 0 0; font-size: 14px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .div { margin: 0 8px; color: #aaa; }

.page { display: flex; gap: 70px; padding: 36px 0 70px; }
.content { flex: 1 1 auto; min-width: 0; }
.sidebar { flex: 0 0 300px; }

.content h2 { margin-top: 0; }
.content h3 { margin-top: 1.6em; }
.content ul { padding-left: 22px; margin: 0 0 1.2em; }
.content li { margin-bottom: 6px; }
.content hr { border: 0; border-top: 1px solid var(--rule); margin: 34px 0; }

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 28px 0 10px; }
.card { background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--tan); padding: 20px 22px; }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card h3 a { color: var(--heading); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card p { margin: 0; font-size: 15px; line-height: 1.6; }
.card ul { margin: 10px 0 0; padding-left: 18px; font-size: 15px; }
.card li { margin-bottom: 3px; }

.cta { background: var(--surface); border: 1px solid var(--rule); padding: 24px 26px; margin-top: 36px; }
.cta h3 { margin-top: 0; }
.cta p:last-child { margin-bottom: 0; }

.address { border-top: 1px solid var(--rule); margin-top: 44px; padding-top: 22px; font-size: 15px; line-height: 1.6; color: var(--muted); }

.sidebar h3 { font-style: italic; font-weight: 400; font-size: 23px; margin-bottom: 12px; }
.sidenav { list-style: none; margin: 0 0 34px; padding: 0; border-top: 1px solid var(--rule); }
.sidenav li { border-bottom: 1px solid var(--rule); }
.sidenav a { display: block; padding: 9px 4px; text-decoration: none; font-size: 15px; }
.sidenav a:hover { background: var(--surface); }
.sidenav .current a { color: var(--text); font-weight: 600; }
.sidebox { background: var(--surface); border: 1px solid var(--rule); padding: 22px; margin-bottom: 26px; font-size: 15px; }
.sidebox h4 { text-transform: uppercase; letter-spacing: .08em; font-family: inherit; font-size: 13px; color: var(--tan-dark); margin-bottom: 10px; }
.sidebox p { margin-bottom: 12px; line-height: 1.6; }
.sidebox .btn { padding: 13px 10px; }
.sidebox .big { font-family: Lora, Georgia, serif; font-size: 24px; color: var(--heading); text-decoration: none; }

table.plain { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; background: var(--surface); }
table.plain th, table.plain td { border: 1px solid var(--rule); padding: 10px 14px; text-align: left; vertical-align: top; font-size: 15px; }
table.plain th { background: #454b53; color: var(--heading); font-weight: 600; }
table.plain td:first-child { white-space: nowrap; }

.member { overflow: hidden; padding: 6px 0 30px; border-bottom: 1px solid var(--rule); margin-bottom: 30px; }
.member:last-of-type { border-bottom: 0; }
.member img { float: left; width: 200px; margin: 5px 26px 12px 0; padding: 5px; background: var(--surface); border: 1px solid var(--rule); }
.member h3 { margin: 0 0 4px; font-style: italic; font-weight: 400; font-size: 26px; }
.member .role { color: var(--tan-dark); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.member h4 { margin: 1em 0 .4em; }

.map { width: 100%; height: 380px; border: 1px solid var(--rule); margin-top: 10px; }

.sitemap, .sitemap ul { list-style: none; padding-left: 0; }
.sitemap ul { padding-left: 24px; margin: 4px 0 8px; }
.sitemap > li { margin-bottom: 12px; font-weight: 600; }
.sitemap ul li { font-weight: 400; margin-bottom: 3px; }

/* ---------- Forms / modal ---------- */

.field { margin-bottom: 12px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.field input, .field textarea {
  width: 100%; padding: 11px 12px; border: 1px solid #5d656f; background: #2a2e33;
  font: inherit; font-size: 15px; color: var(--text); border-radius: 0;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--navy-light); outline-offset: -1px; }
.form-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; line-height: 1.5; }

.modal { display: none; position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 200; background: rgba(15, 22, 33, .6); overflow-y: auto; padding: 40px 16px; }
.modal.open { display: block; }
.modal-box { background: var(--bg); max-width: 500px; margin: 0 auto; box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: var(--navy); color: var(--white); }
.modal-head h2 { color: var(--white); font-size: 20px; margin: 0; font-style: normal; }
.modal-close { background: none; border: 0; color: var(--white); font-size: 28px; line-height: 1; cursor: pointer; padding: 0 4px; }
.modal-body { padding: 20px; }

/* ---------- Footer ---------- */

.footer { background: var(--navy); color: #e7e9ec; text-align: center; padding: 56px 20px 46px; font-size: 15px; }
.footer h3 { color: var(--white); font-style: italic; font-weight: 400; font-size: 26px; margin-bottom: 18px; }
.footer p { margin: 0 0 26px; line-height: 1.75; }
.footer a { color: #e7e9ec; text-decoration: none; }
.footer a:hover { color: var(--tan); }
.footer .small { text-transform: uppercase; font-size: 13px; letter-spacing: .05em; margin: 0; }
.footer .dot { margin: 0 9px; color: var(--tan); }

.sidescroll { position: fixed; right: 24px; bottom: 24px; z-index: 40; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; }
.sidescroll.show { opacity: 1; visibility: visible; }
.sidescroll a {
  display: block; width: 50px; height: 50px; line-height: 50px; text-align: center;
  background: var(--navy-light); color: var(--white); font-size: 20px; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.2);
}
.sidescroll a:hover { background: var(--tan-dark); }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .page { gap: 40px; }
  .sidebar { flex-basis: 270px; }
  .menu > li > a { padding: 0 12px; }
}

@media (max-width: 991px) {
  .menu-button { display: block; }
  .topbar-inner { flex-wrap: wrap; }
  .topbar-right { margin-left: auto; }
  #menu { display: none; flex: 0 0 100%; order: 3; flex-direction: column; border-top: 1px solid #3f454d; padding-bottom: 8px; }
  #menu.open { display: flex; }
  .menu > li > a { line-height: 44px; padding: 0 8px; }
  .menu ul, .menu ul ul { position: static; display: none; box-shadow: none; border-top: 0; background: #2c3036; min-width: 0; }
  .menu li:hover > ul, .menu li:focus-within > ul { display: none; }
  .menu li.open > ul { display: block; }
  .menu ul a { color: #e7e9ec; border-bottom: 1px solid #3f454d; padding-left: 24px; }
  .menu ul ul a { padding-left: 42px; background: #353a41; }
  .menu ul ul ul a { padding-left: 60px; }
  .menu ul a:hover { background: #454b53; color: var(--white); }
  .menu ul li.has-sub > a:after { content: ""; }
  .sub-toggle {
    display: block; position: absolute; right: 0; top: 0; width: 48px; height: 44px;
    background: none; border: 0; color: var(--white); font-size: 16px; cursor: pointer;
  }
  .menu ul .sub-toggle { height: 41px; }

  .hero { min-height: 520px; padding: 40px 36px; }
  .hero-tag p { font-size: 48px; }
  .page { display: block; }
  .sidebar { margin-top: 50px; }
}

@media (max-width: 640px) {
  h1, .section h1, .section .h1 { font-size: 29px; }
  h2 { font-size: 24px; }
  .section { padding: 56px 0; }
  .hero { min-height: 440px; padding: 36px 30px; }
  .hero:after { left: 12px; top: 12px; right: 12px; bottom: 12px; }
  .hero-head { justify-content: center; }
  .hero-phone { display: none; }
  .logo { text-align: center; }
  .hero-tag { text-align: center; }
  .hero-tag p { font-size: 36px; }
  .hero.inner { min-height: 240px; }
  .hero.inner .hero-tag h1 { font-size: 32px; }
  .btn { padding: 14px 24px; }
  .lead { font-size: 17px; }
  .cards { grid-template-columns: 1fr; }
  .tile { min-width: 100%; }
  .tile img { height: 220px; }
  .icons { flex-direction: column; }
  .dates li { display: block; }
  .member img { float: none; display: block; margin: 0 0 16px; }
  .topbar-right .hide-sm { display: none; }
  table.plain td:first-child { white-space: normal; }
  .footer .dot { display: none; }
  .footer .small a, .footer .small span.copy { display: block; margin: 4px 0; }
}

/* ---------- Page load and scroll animations ---------- */
/* Same effects as the previous site: a quick fade-in when the page loads, the home
   tagline dropping in, and sections fading in as they scroll into view. */

.preloader {
  position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 1006; background: var(--bg);
  transition: opacity .2s ease;
  animation: preloaderOut .2s ease 2s forwards;   /* safety net if scripts are slow */
}
.preloader.done { opacity: 0; }
@keyframes preloaderOut { to { opacity: 0; visibility: hidden; } }

.fx { opacity: 0; transition-property: opacity, transform; transition-duration: 1.5s; transition-timing-function: cubic-bezier(.25, .46, .45, .94); }
.fx-down { transform: translate3d(0, -100px, 0); }
.fx.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .fx, .fx-down { opacity: 1; transform: none; transition: none; }
  .preloader { display: none; }
  html { scroll-behavior: auto; }
}
