/*
  fineassist static website v2
  ------------------------------------------------------------
  Enlarged version:
  - All desktop fonts enlarged by about 15%.
  - Menu, body text, lists, buttons and footer enlarged.
  - Central white/grey content panel enlarged.
  - Logo margin-right: -10px.
  - Footer address: 15px.
  - Footer social: 34.5px.
  - Layout tuned to stay close to the original Wix website.
*/

:root {
  --navy: #011c45;
  --navy-2: #001f4d;
  --text: #4d4f54;
  --muted: #999ea6;
  --panel: rgba(255,255,255,0.78);
  --panel-strong: rgba(255,255,255,0.84);
  --line: rgba(1,28,69,0.55);

  --page-max: 1120px;
  --header-h: 200px;
  --footer-h: 170px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  font-family: Avenir, "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 19.5px;
  font-weight: 300;
  line-height: 1.48;
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
}

a:hover,
a:focus {
  color: var(--navy);
}

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

/* Header ---------------------------------------------------- */

.site-header {
  min-height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid #d5d9de;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 10;
}

.logo-row {
  width: var(--page-max);
  max-width: calc(100vw - 42px);
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  margin: 0 auto;
}

.site-logo {
  display: block;
  margin-top: 32px;
  margin-right: -10px;
  text-decoration: none;
}

.site-logo img {
  display: block;
  width: 235px;
  height: auto;
}

.main-nav {
  margin-top: 24px;
}

.nav-menu {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}

.nav-menu > li {
  position: relative;
  border-left: 1px solid var(--line);
}

.nav-menu > li:first-child {
  border-left: 0;
}

.nav-menu > li > a {
  display: block;
  padding: 0 24px;
  color: #a5a8ad;
  font-size: 18.5px;
  font-weight: 300;
  line-height: 34px;
  letter-spacing: 0;
  text-decoration: none;
}

.nav-menu > li.active > a,
.nav-menu > li > a:hover,
.nav-menu > li > a:focus {
  color: var(--navy);
}

.nav-menu > li.active > a {
  font-weight: 600;
}

/* Optional submenu ----------------------------------------- */

.has-submenu .submenu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 190px;
  margin: 2px 0 0;
  padding: 7px 0;
  list-style: none;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(1,28,69,0.18);
  box-shadow: 0 8px 22px rgba(0,0,0,0.10);
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
  display: block;
}

.submenu a {
  display: block;
  padding: 8px 16px;
  color: #777e87;
  text-decoration: none;
  font-size: 17.5px;
  font-weight: 300;
}

.submenu a:hover,
.submenu a:focus {
  color: var(--navy);
  background: rgba(1,28,69,0.05);
}

.nav-toggle {
  display: none;
}

/* Main background area -------------------------------------- */

.page-stage {
  min-height: calc(100vh - var(--header-h) - var(--footer-h));
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("/assets/img/background.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.content-panel {
  width: var(--page-max);
  max-width: calc(100vw - 42px);
  min-height: 500px;
  padding: 90px 124px 76px;
  background: var(--panel);
  color: var(--text);
}

/* Typography ------------------------------------------------ */

h1,
h2,
h3,
p,
ul {
  margin-top: 0;
}

h1 {
  margin-bottom: 36px;
  color: var(--navy);
  font-size: 34.5px;
  line-height: 1.22;
  font-weight: 400;
  letter-spacing: 0;
}

h2 {
  margin: 30px 0 15px;
  font-size: 21px;
  line-height: 1.35;
  font-weight: 600;
  color: #3c3e42;
}

p {
  margin-bottom: 21px;
  font-size: 19.5px;
  font-weight: 300;
  line-height: 1.5;
}

strong {
  color: #34363a;
  font-weight: 600;
}

.home-claim {
  text-align: center;
  font-size: 34.5px;
  font-weight: 400;
  margin-bottom: 34px;
}

.intro-text {
  margin-bottom: 31px;
}

/* Lists ----------------------------------------------------- */

.plain-list {
  padding-left: 22px;
  margin-bottom: 29px;
  font-size: 19.5px;
  font-weight: 300;
  color: #55585e;
}

.plain-list li {
  padding-left: 4px;
  font-size: 19.5px;
  line-height: 1.52;
}

.compact-list li {
  margin: 0 0 3px;
}

.spaced-list li {
  margin: 0 0 9px;
}

.references-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 58px;
  font-size: 19.5px;
  font-weight: 300;
  color: #55585e;
}

.references-grid li {
  font-size: 19.5px;
  line-height: 1.52;
}

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

.button-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 188px;
  height: 48px;
  padding: 0 28px;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: var(--navy);
  text-decoration: none;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 5px rgba(0,0,0,0.25);
}

.button-dark:hover,
.button-dark:focus {
  color: #fff;
  background: var(--navy-2);
}

.button-inline {
  min-width: auto;
  margin-top: 8px;
}

.small-link {
  margin-top: 18px;
  font-size: 16px;
}

/* Page-specific layouts ------------------------------------ */

.content-panel--home {
  padding-top: 90px;
}

.content-panel--services {
  padding-top: 90px;
}

.content-panel--services h1 {
  margin-bottom: 36px;
}

.service-buttons {
  display: flex;
  gap: 74px;
  margin-top: 66px;
}

.portrait-layout {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 58px;
  align-items: start;
}

.portrait-copy h1 {
  margin-bottom: 23px;
}

.portrait-figure {
  margin: 50px 0 0;
}

.portrait-figure img {
  display: block;
  width: 190px;
  height: auto;
}

.content-panel--references {
  padding-top: 86px;
}

.content-panel--references h1 {
  margin-bottom: 33px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 352px 1fr;
  gap: 42px;
  align-items: start;
}

.content-panel--contact {
  padding-top: 84px;
}

.content-panel--contact h1 {
  margin-bottom: 56px;
  font-size: 21px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 352px;
  margin: 0 0 7px;
  padding: 6px 9px;
  border: 1px solid #c8ccd1;
  border-radius: 0;
  background: rgba(255,255,255,0.88);
  color: var(--navy);
  font: inherit;
  font-size: 19px;
  font-weight: 300;
  line-height: 1.3;
}

.contact-form input {
  height: 35px;
}

.contact-form textarea {
  height: 130px;
  resize: vertical;
}

.contact-form button {
  display: block;
  margin-left: auto;
  width: 48px;
  height: 33px;
  border: 0;
  color: #9da2a9;
  background: rgba(255,255,255,0.88);
  font: inherit;
  font-size: 18px;
  font-weight: 300;
  cursor: pointer;
}

.contact-form button:hover,
.contact-form button:focus {
  color: var(--navy);
}

.contact-address {
  font-style: normal;
  color: #585c62;
  line-height: 1.4;
  padding-top: 3px;
  font-size: 19.5px;
  font-weight: 300;
}

.contact-logo {
  display: block;
  width: 142px;
  height: auto;
  margin: 0 0 4px;
}

.content-panel--legal {
  min-height: auto;
  padding-top: 78px;
  padding-bottom: 58px;
  font-size: 18px;
  font-weight: 300;
}

.content-panel--legal h1 {
  margin-bottom: 23px;
}

.content-panel--legal h2 {
  margin: 23px 0 6px;
  font-size: 19px;
  font-weight: 600;
}

.content-panel--legal p {
  margin-bottom: 17px;
}

.legal-note {
  font-size: 16px;
}

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

.site-footer {
  min-height: var(--footer-h);
  background: var(--navy);
  color: rgba(255,255,255,0.72);
}

.footer-inner {
  width: var(--page-max);
  max-width: calc(100vw - 42px);
  margin: 0 auto;
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-address {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.38;
  color: rgba(255,255,255,0.72);
}

.footer-address strong {
  color: rgba(255,255,255,0.82);
  font-weight: 400;
}

.footer-address a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
}

.footer-address a:hover,
.footer-address a:focus {
  color: #fff;
  text-decoration: underline;
}

.footer-social {
  display: flex;
  gap: 22px;
  padding-top: 0;
}

.footer-social a {
  display: inline-block;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 34.5px;
  line-height: 1;
  text-decoration: none;
  letter-spacing: -0.02em;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.footer-social a:hover,
.footer-social a:focus {
  opacity: 0.72;
  text-decoration: underline;
}

/* Tablet / mobile ------------------------------------------ */

@media (max-width: 920px) {
  :root {
    --header-h: auto;
    --footer-h: auto;
  }

  body {
    font-size: 16px;
    font-weight: 300;
  }

  .site-header {
    min-height: 0;
    align-items: stretch;
  }

  .logo-row {
    width: 100%;
    max-width: none;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
  }

  .site-logo {
    margin: 0;
  }

  .site-logo img {
    width: 150px;
  }

  .nav-toggle {
    display: inline-flex;
    width: 42px;
    height: 36px;
    border: 1px solid rgba(1,28,69,0.25);
    background: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
  }

  .nav-toggle__line {
    width: 20px;
    height: 2px;
    background: var(--navy);
  }

  .main-nav {
    display: none;
    margin-top: 0;
    border-top: 1px solid #e1e4e8;
  }

  body.nav-open .main-nav {
    display: block;
  }

  .nav-menu {
    display: block;
    white-space: normal;
  }

  .nav-menu > li,
  .nav-menu > li:first-child {
    border-left: 0;
    border-bottom: 1px solid #edf0f3;
  }

  .nav-menu > li > a {
    padding: 13px 20px;
    font-size: 16.5px;
    font-weight: 300;
    line-height: 1.2;
  }

  .has-submenu .submenu {
    display: block;
    position: static;
    min-width: 0;
    margin: 0;
    padding: 0 0 8px 20px;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .submenu a {
    padding: 7px 20px;
    font-size: 15.5px;
    font-weight: 300;
  }

  .page-stage {
    min-height: 0;
    padding: 24px 0;
    align-items: flex-start;
  }

  .content-panel {
    width: calc(100vw - 32px);
    min-height: 0;
    padding: 40px 32px;
    background: var(--panel-strong);
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 20px;
  }

  p {
    font-size: 17px;
  }

  .home-claim {
    font-size: 28px;
    font-weight: 400;
  }

  .plain-list,
  .plain-list li,
  .references-grid,
  .references-grid li {
    font-size: 17px;
  }

  .portrait-layout,
  .contact-layout,
  .references-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .portrait-figure {
    margin: 0;
  }

  .portrait-figure img {
    width: 160px;
  }

  .service-buttons {
    gap: 14px;
    margin-top: 30px;
    flex-wrap: wrap;
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
    font-size: 17px;
  }

  .contact-form input {
    height: 34px;
  }

  .contact-form textarea {
    height: 120px;
  }

  .contact-address {
    font-size: 17px;
  }

  .footer-inner {
    width: calc(100vw - 32px);
    padding: 22px 0 26px;
    gap: 18px;
  }

  .footer-address {
    font-size: 15px;
  }

  .footer-social a {
    font-size: 34.5px;
  }
}

@media (max-width: 560px) {
  .footer-inner {
    flex-direction: column;
  }

  .footer-social {
    padding-top: 4px;
  }
}
