/* Advantien — main site styles. Colors and type follow the former Squarespace theme. */
:root {
  --navy: #081b33;
  --text: rgba(8, 27, 51, .8);
  --purple: #855b9f;
  --teal: #187991;
  --sky: #64c3e3;
  --rule: #d6dbe0;
  --wash: #f3f7f9;
  --body: "Carlito", Calibri, "Segoe UI", sans-serif;
  --display: "Jost", "Futura PT", Futura, "Century Gothic", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --wrap: 1020px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 400 16px/1.56 var(--body);
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { color: var(--navy); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- header */
.site-header {
  position: relative;
  z-index: 20;
  background:
    radial-gradient(ellipse 340px 200px at 0 0, rgba(100, 195, 227, .28), transparent 70%),
    radial-gradient(ellipse 520px 140px at 60px -40px, rgba(100, 195, 227, .18), transparent 70%);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 22px; }
.logo { display: block; line-height: 0; }
.logo img { width: 200px; height: auto; }
.logo-light { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; gap: 26px; align-items: center; }
.site-nav a, .site-nav button {
  font: 500 15px/1 var(--display);
  color: var(--navy);
  background: none; border: 0; padding: 8px 0; cursor: pointer;
}
.site-nav a:hover, .site-nav button:hover { color: var(--purple); text-decoration: none; }
.site-nav [aria-current="page"], .site-nav .active > button { color: var(--purple); }
.site-nav .cta a { font-weight: 700; }
.has-sub { position: relative; }
.has-sub > button::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.has-sub ul {
  position: absolute; left: -16px; top: 100%;
  min-width: 270px; padding: 10px 0;
  background: #fff; box-shadow: 0 10px 30px rgba(8, 27, 51, .12);
  display: none;
}
.has-sub ul a { display: block; padding: 9px 16px; font-size: 14.5px; }
.has-sub:hover ul, .has-sub:focus-within ul, .has-sub.open ul { display: block; }
.nav-phone { display: none; }
.menu-toggle { display: none; }

/* ---------- banners */
.banner { text-align: center; padding: 56px 0 40px; }
.eyebrow {
  margin: 0 0 10px;
  font: 700 13px/1.6 var(--display);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--purple);
}
.banner-desc p { margin: 0 auto; max-width: 760px; font: italic 400 clamp(34px, 5.4vw, 56px)/1.12 var(--body); color: var(--teal); }
.banner-image {
  padding: 200px 0 170px; /* top padding leaves room for the header sitting over the image */
  background: linear-gradient(rgba(8, 27, 51, .55), rgba(8, 27, 51, .55)), var(--bg) center/cover no-repeat;
}
.banner-image .eyebrow { color: var(--sky); }
.banner-image .banner-desc p { color: #fff; font-style: normal; font-family: var(--display); font-weight: 400; }
/* On pages with a hero image the header floats over the image, so the image starts at the very top. */
.has-image-banner .site-header { position: absolute; top: 0; left: 0; right: 0; background: none; }
.has-image-banner .site-nav > ul > li > a, .has-image-banner .site-nav > ul > li > button { color: #fff; }
.has-image-banner .logo-dark { display: none; }
.has-image-banner .logo-light { display: block; }

/* ---------- content */
.content { padding-top: 24px; padding-bottom: 64px; max-width: 908px; }
.content > :first-child { margin-top: 0; }
h1, h2, h3, h4 { color: var(--navy); font-weight: 400; margin: 1.2em 0 .5em; }
.content h1 { font-size: 30px; line-height: 1.25; }
.content h2 { font-size: 22px; line-height: 1.45; }
.content h3 { font: 700 14px/1.3 var(--body); text-transform: uppercase; letter-spacing: .02em; color: var(--purple); }
.page-about .content h2, .page-faqs .content h2 { font-style: italic; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: .4em; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 40px 0; }
.t-center { text-align: center; }
.t-right { text-align: right; }
.small { font-size: 13px; }
.spacer { height: 24px; }

/* Layout grid carried over from Squarespace: a row's columns add up to --cols (12 at the top level,
   fewer when a row is nested inside a narrower column). */
.row { display: grid; grid-template-columns: repeat(var(--cols, 12), minmax(0, 1fr)); column-gap: 32px; align-items: start; }
.col { grid-column: span var(--span); min-width: 0; }
.col > :first-child { margin-top: 0; }

figure { margin: 0 0 1.4em; }
figure.image { margin-left: auto; margin-right: auto; }
figure.image figcaption { font-size: 13px; text-align: center; margin-top: 8px; }

.quote { text-align: center; padding: 40px 6%; }
.quote blockquote { margin: 0 0 14px; font: 400 26px/1.4 var(--serif); color: var(--navy); }
.quote figcaption { font-size: 15px; color: var(--purple); }

.btn {
  display: inline-block;
  padding: 14px 26px;
  background: var(--purple); color: #fff; border: 0; border-radius: 3px;
  font: 500 14px/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer;
}
.btn:hover { background: #6f4889; text-decoration: none; }
.totop { font-size: 13px; }
.video { width: 100%; border-radius: 4px; margin: 0 0 1.4em; background: var(--wash); }

/* ---------- prose-width pages (home, services, about) */
/* One centered column at a comfortable reading width; ch is measured in the body font. */
.content.prose { max-width: calc(70ch + 2 * var(--gutter)); }
.cta-row { margin: 28px 0 36px; }
.callouts { margin-top: 40px; }
.callout { border-top: 1px solid var(--rule); padding: 36px 0 12px; }
.callout figure.image { margin: 0 0 16px; }
.callout h3 { margin-top: 0; }
.callout .more a { font-weight: 700; }

/* ---------- forms */
.form { margin: 0 0 1.5em; }
.form .field { display: block; margin: 0 0 16px; border: 0; padding: 0; }
.form .field > span, .form legend { display: block; font-weight: 700; color: var(--navy); margin-bottom: 6px; padding: 0; }
.form .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .pair span { display: block; font-size: 13px; margin-bottom: 4px; }
.form .hint { display: block; font-size: 13px; margin: -2px 0 6px; }
.form input, .form textarea {
  width: 100%; padding: 11px 12px;
  border: 1px solid #c8ced5; border-radius: 3px; background: #fafbfc;
  font: inherit; color: var(--navy);
}
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--sky); outline-offset: 1px; background: #fff; }
.req { color: var(--purple); }
.hp { position: absolute; left: -9999px; }

/* ---------- blog */
.post-list { list-style: none; padding: 0; margin: 0 auto; max-width: 720px; }
.post-list li { text-align: center; padding: 22px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.post-list li:last-child { border-bottom: 0; }
.post-list a { display: block; font: 400 20px/1.4 var(--serif); color: var(--navy); }
.post-list time { display: block; margin-top: 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--purple); }
.post-head { text-align: center; margin: 32px 0 28px; }
.post-head h1 { font: 400 clamp(28px, 4vw, 38px)/1.2 var(--serif); margin: 0 0 12px; }
.post-meta { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--purple); font-weight: 700; }
.post h2 { font-style: italic; }
.pager { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--rule); margin-top: 48px; padding-top: 20px; font-size: 14px; }
.pager .older { text-align: right; }
.thanks { padding: 24px 0 40px; }

/* ---------- footer */
.site-footer { border-top: 1px solid var(--rule); padding: 48px 0 36px; }
.site-footer h2 { font-size: 22px; margin: 0 0 14px; }
.site-footer h2 a { color: inherit; }
.site-footer p { font-size: 14px; }

/* ---------- small screens */
@media (max-width: 860px) {
  .menu-toggle {
    display: inline-block; font: 500 14px/1 var(--display); letter-spacing: .1em; text-transform: uppercase;
    background: none; border: 1px solid currentColor; border-radius: 3px; padding: 9px 12px; color: var(--navy); cursor: pointer;
  }
  .has-image-banner .menu-toggle { color: #fff; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; box-shadow: 0 14px 30px rgba(8, 27, 51, .15); padding: 8px var(--gutter) 20px;
  }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav > ul > li { border-bottom: 1px solid var(--rule); }
  .site-nav a, .site-nav button, .has-image-banner .site-nav > ul > li > a, .has-image-banner .site-nav > ul > li > button {
    display: block; width: 100%; text-align: left; padding: 14px 0; color: var(--navy);
  }
  .has-sub ul { position: static; box-shadow: none; padding: 0 0 8px 14px; min-width: 0; }
  .has-sub:hover ul { display: none; }
  .has-sub.open ul { display: block; }
  .nav-phone { display: block; }
  .row { display: block; }
  .col-empty { display: none; }
  .banner-image { padding: 150px 0 110px; }
  .logo img { width: 160px; }
  .content { padding-bottom: 40px; }
  .quote blockquote { font-size: 21px; }
}
@media (max-width: 520px) {
  .form .pair { grid-template-columns: 1fr; }
  .pager { flex-direction: column; }
  .pager .older { text-align: left; }
}
