/* The public epicnw.com website: home and the three line cards.
   Laid out on a 980px column, like the site it replaces. */

@font-face { font-family: "Raleway"; font-weight: 400; font-display: swap; src: url("fonts/raleway-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-weight: 700; font-display: swap; src: url("fonts/raleway-latin-700-normal.woff2") format("woff2"); }
/* Open Sans 1.10 and Cormorant Garamond 3.303: the same builds the Wix site serves (Apache 2.0 and OFL). */
@font-face { font-family: "Open Sans"; font-weight: 400; font-display: swap; src: url("fonts/open-sans-1.10-400.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 700; font-display: swap; src: url("fonts/open-sans-1.10-700.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-display: swap; src: url("fonts/cormorant-garamond-3.303-600.woff2") format("woff2"); }
/* Helvetica is licensed, so it is not shipped: these use the visitor's own Helvetica (or Arial),
   with the vertical metrics of the Helvetica the Wix site served, so lines sit where they did. */
@font-face { font-family: "Epic Helvetica"; font-weight: 400; src: local("Helvetica"), local("Helvetica Neue"), local("HelveticaNeue"), local("Arial"), local("ArialMT"), local("Liberation Sans"), local("LiberationSans"); ascent-override: 93.1%; descent-override: 22.5%; line-gap-override: 0%; }
@font-face { font-family: "Epic Helvetica Bold"; font-weight: 400; src: local("Helvetica Bold"), local("Helvetica-Bold"), local("Helvetica Neue Bold"), local("HelveticaNeue-Bold"), local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold"); ascent-override: 96.2%; descent-override: 22.8%; line-gap-override: 0%; }
@font-face { font-family: "Epic Helvetica Light"; font-weight: 400; src: local("Helvetica Light"), local("Helvetica-Light"), local("Helvetica Neue Light"), local("HelveticaNeue-Light"), local("Arial"), local("ArialMT"), local("Liberation Sans"), local("LiberationSans"); ascent-override: 97.9%; descent-override: 25%; line-gap-override: 0%; }
@font-face { font-family: "Crimson Pro"; font-weight: 300; font-display: swap; src: url("fonts/crimson-pro-latin-300-normal.woff2") format("woff2"); }

:root {
  --navy: #00305b;
  --red: #b30b00;
  --grey: #676767;
  --raleway: "Raleway", sans-serif;
  --open: "Open Sans", sans-serif;
  --helv: Helvetica, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 101px; }
body { margin: 0; background: #fff; color: #000; font-family: var(--open); -webkit-text-size-adjust: 100%; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 400; }
.col { width: 980px; max-width: 100%; margin: 0 auto; position: relative; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---- Header ---- */
.header { position: fixed; top: 0; left: 0; right: 0; height: 101px; background: #fff; z-index: 50; }
.header .col { height: 101px; }
.header__logo { position: absolute; left: 32px; top: 5px; }
.nav { position: absolute; right: 43px; top: 25px; }
.nav__list { list-style: none; margin: 0; padding: 0 5px; display: flex; border-top: 1px solid #cacaca; border-bottom: 1px solid #cacaca; }
.nav__item { position: relative; }
/* Each menu item's box as on Wix, so the words centre where they did. */
@media (min-width: 1020px) {
  .nav__list { padding: 0 0 0 6px; width: 605px; }
  .nav__list > .nav__item:nth-child(1) { width: 95px; } .nav__list > .nav__item:nth-child(2) { width: 152px; } .nav__list > .nav__item:nth-child(3) { width: 219px; } .nav__list > .nav__item:nth-child(4) { width: 133px; }
  .nav__list > .nav__item > .nav__link { padding-left: 0; padding-right: 0; width: 100%; text-align: center; }
}
.nav__link { display: block; padding: 0 15px 3px; font: 300 25px/48px "Crimson Pro", Georgia, serif; color: #9e9e9e; text-decoration: none; text-transform: uppercase; background: none; border: 0; cursor: pointer; white-space: nowrap; transition: color .3s; }
.nav__link:hover, .nav__link[aria-current="page"], .nav__item:focus-within > .nav__link { color: #000; }
.nav__item--menu > .nav__link:hover, .nav__item--menu:focus-within > .nav__link, .nav__sub .nav__link:hover { color: #9e9e9e; }
.nav__sub .nav__link:focus-visible { color: #000; }
.nav__sub { list-style: none; margin: 0; padding: 0; position: absolute; top: calc(100% + 8px); left: -61px; width: 280px; background: #fff; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.nav__item:hover > .nav__sub, .nav__item:focus-within > .nav__sub { opacity: 1; visibility: visible; }
.nav__sub .nav__link { text-transform: none; line-height: 38px; padding-bottom: 4px !important; text-align: center; padding: 0 10px; width: 100%; }
.nav__toggle { display: none; }
main { padding-top: 101px; }

/* ---- Hero slideshow ---- */
.hero { position: relative; height: 314px; background: #000; overflow: hidden; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s; }
.hero__slide.is-on { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__text { position: absolute; left: 50%; top: 72px; transform: translateX(-50%); width: 860px; max-width: calc(100% - 180px); text-align: center; color: #fff; font: 400 63px/normal var(--raleway); }
.hero__text--2 { top: 81px; width: 859px; font-size: 55px; }
.hero__text--2 span { font-weight: 400 !important; }
.hero__text span { font-family: "Epic Helvetica", Helvetica, Arial, sans-serif; font-weight: 700; text-shadow: rgba(255,255,255,.6) 1px 1px 1px, rgba(0,0,0,.6) -1px -1px 1px; }
.hero__arrow { position: absolute; top: 50%; width: 40px; height: 60px; margin-top: -30px; background: none; border: 0; cursor: pointer; padding: 0; opacity: .8; }
.hero__arrow:hover { opacity: 1; }
.hero__arrow svg { width: 19px; height: 36px; fill: none; stroke: #fff; stroke-width: 1.5; }
.hero__arrow--prev { left: 90px; }
.hero__arrow--next { right: 90px; }
.hero__dots { position: absolute; left: 0; right: 0; bottom: 46px; display: flex; justify-content: center; gap: 12px; }
.hero__dot { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; }
.hero__dot.is-on { background: #fff; }

/* ---- Intro ---- */
.intro { height: 276px; }
.intro__logo { position: absolute; left: 31px; top: 51px; width: 277px; height: 167px; }
.intro__text { position: absolute; left: 323px; top: 35px; width: 640px; font: 700 18px/1.39 var(--raleway); color: #102e52; text-align: justify; }
.intro__text p + p { margin-top: 1.39em; }

/* ---- Line-card tiles ---- */
.tiles { height: 479px; }
.tile { position: absolute; top: 0; width: 284px; height: 479px; overflow: hidden; color: #fff; text-decoration: none; background: #0a2405; }
.tile:nth-child(1) { left: 24px; } .tile:nth-child(2) { left: 347px; } .tile:nth-child(3) { left: 671px; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .4s; }
.tile .tile__hover { opacity: 0; }
.tile__hover--tiled { position: absolute; inset: 0; background-position: center; background-repeat: repeat; transition: opacity .4s; }
.tile__rule { position: absolute; left: 79px; width: 128px; height: 2px; background: #fff; z-index: 2; }
.tile__rule--top { top: 46px; } .tile__rule--bottom { top: 410px; }
.tile__title span { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; }
/* On Wix the titles sit slightly left of each tile's centre. */
.tile:nth-child(1) .tile__title { left: -4px; right: 0; top: 148px; } .tile:nth-child(2) .tile__title { left: -18px; right: 0; } .tile:nth-child(3) .tile__title { left: -19px; right: 0; }
.tile__title { position: absolute; left: 0; right: 0; top: 149px; z-index: 2; text-align: center; font: 400 51px/61.2px var(--open); text-shadow: rgba(0,0,0,.4) 0 4px 5px; transition: opacity .4s; }
.tile__cta { position: absolute; left: 0; right: 0; top: 78px; z-index: 2; text-align: center; font: 400 55px/79px var(--raleway); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-shadow: rgba(0,0,0,.4) 0 3px 5px; opacity: 0; transition: opacity .4s; }
.tile:hover .tile__hover, .tile:focus-visible .tile__hover { opacity: 1; }
.tile:hover .tile__cta, .tile:focus-visible .tile__cta { opacity: 1; }
.tile__rule { transition: opacity .4s; }
.tile:hover .tile__rule, .tile:focus-visible .tile__rule { opacity: 0; }

.rule { height: 5px; background: #ddd; margin-top: 65px; }

/* ---- Locations ---- */
.locations { padding-top: 69px; height: 1024px; }
.eyebrow { font: 400 46px/46px var(--raleway); color: var(--red); text-align: center; }
.headline { font: 400 53px/normal var(--raleway); color: var(--grey); text-align: center; }
.headline span { font-family: "Epic Helvetica Bold", Helvetica, Arial, sans-serif; font-weight: 400; }
.headline--loc { line-height: 84.8px; }
.sub { font: 400 21px/normal var(--raleway); color: #000; text-align: center; }
.sub span { font-family: "Epic Helvetica Light", Helvetica, Arial, sans-serif; font-weight: 400; }
.loc { position: absolute; width: 476px; height: 265px; background: #d3d3d3; }
.loc--l { left: 0; text-align: right; } .loc--r { left: 504px; text-align: left; }
.loc--1 { top: 235px; } .loc--2 { top: 658px; }
.loc__img { position: absolute; top: 34px; width: 240px; height: 150px; object-fit: cover; }
.loc--l .loc__img { left: 0; } .loc--r .loc__img { right: 0; }
.loc__body { position: absolute; top: 1px; }
.loc--2 .loc__body { top: 2px; }
.loc--2 .loc__img { top: 35px; }
.loc--l .loc__body { right: 8px; } .loc--r .loc__body { left: 6px; }
.loc__name { font: 700 29px/52px var(--raleway); color: #000; white-space: nowrap; position: relative; z-index: 1; }
.loc__line { font: 400 18px/25.2px var(--open); color: #000; }
.loc__line a { color: #000; }
.loc__addr { display: block; margin-top: 25px; font: 400 18px/25.5px var(--open); color: var(--navy); text-decoration: none; }
.loc__addr:hover { text-decoration: underline; }
.loc__icons { position: absolute; left: 0; width: 100%; height: 79px; }
.loc--1 .loc__icons { top: 278px; } .loc--2 .loc__icons { top: 224px; }
.loc__icons a { position: absolute; display: block; transition: opacity .2s; }
.loc__icons a:hover { opacity: .75; }

/* ---- Contact ---- */
.contact { position: relative; height: 747px; background: #000; color: #fff; overflow: hidden; }
.contact__bg { position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.89), rgba(0,0,0,.89)), url("contact-bg.jpg") center top / cover fixed; }
.contact__panel { position: absolute; left: 0; top: 0; height: 500px; width: calc(50% - 173px); background: rgba(211,211,211,.4); }
.contact__title { position: absolute; left: 4px; top: 208px; font: 400 42px/1.2 var(--raleway); letter-spacing: 0; }
.contact__info { position: absolute; left: 356px; top: 102px; font: 400 27px/40.5px var(--open); }
.contact__info a { color: #fff; text-decoration: none; }
.contact__lead { position: absolute; left: 356px; top: 219px; font: 400 20px/30px var(--open); white-space: nowrap; }
.form { position: absolute; left: 356px; top: 299px; width: 602px; height: 230px; }
.form input, .form textarea { position: absolute; display: block; border: 0; border-radius: 0; background: #fff; color: #555; font: 400 14px/1.3 var(--open); padding: 3px 5px; margin: 0; }
.form input { left: 0; width: 301px; height: 29px; }
.form input:nth-of-type(1) { top: 0; } .form input:nth-of-type(2) { top: 34px; } .form input:nth-of-type(3) { top: 68px; } .form input:nth-of-type(4) { top: 102px; } .form input:nth-of-type(5) { top: 136px; }
.form textarea { left: 304px; top: 0; width: 296px; height: 165px; resize: none; padding-top: 12px; }
.form ::placeholder { color: #999; opacity: 1; }
.form input:focus, .form textarea:focus { outline: 2px solid #5b9bd5; outline-offset: -2px; }
.form button { position: absolute; right: 0; top: 170px; height: 29px; padding: 0 6px; border: 0; background: #a0a0a0; color: #fff; font: 400 14px/29px var(--open); cursor: pointer; transition: background .3s; }
.form button:hover { background: #7d7d7d; }
.form__note { position: absolute; left: 0; top: 170px; width: 520px; font: 400 14px/1.4 var(--helv); color: #9fe3ea; }
.form__note.is-error { color: #ffb3a7; }
.form button:disabled { background: #7d7d7d; cursor: progress; }
/* A field only robots fill in: off the page, out of the tab order, hidden from screen readers. */
.form__hp { position: absolute; left: -10000px; top: 0; width: 1px; height: 1px; overflow: hidden; }

/* ---- Back to top and footer ---- */
.totop { display: block; height: 92px; background: var(--navy); color: #fff; text-align: center; text-decoration: none; font: 400 16px/1.3 var(--open); padding-top: 20px; }
.totop img { display: block; margin: 0 auto 8px; width: 32px; height: 22px; object-fit: contain; }
.footer { height: 96px; }
.footer--card { height: 58px; }
.footer__copy { position: absolute; left: -64px; width: 568px; top: 38px; text-align: center; font: 400 14px/19px var(--open); color: #0f4c85; }
.footer__in { position: absolute; left: 880px; top: 38px; }
.footer--card .footer__copy, .footer--card .footer__in { top: 0; }
.footer__in img { display: block; }
.footer__portal { position: absolute; right: 136px; top: 38px; font: 400 14px/19px var(--open); color: #0f4c85; text-decoration: none; white-space: nowrap; }
.footer__portal:hover { text-decoration: underline; }
.footer--card .footer__portal { top: 0; }

/* ---- Line cards ---- */
.card-head { padding-top: 25px; height: 185px; }


.mfr { position: relative; min-height: var(--row); }
.mfr__logo { position: absolute; left: var(--logo-x, 26px); top: var(--logo-top); width: 300px; height: var(--logo-h); border-radius: 5px; box-shadow: rgba(0,0,0,.5) 0 1px 3px; overflow: hidden; background: #fff; }
.mfr__logo img { width: 100%; height: 100%; object-fit: cover; }
.mfr__text { margin-left: 350px; width: var(--tw, 629px); text-align: center; color: var(--navy); font: 400 16px/1.4em var(--open); }
/* As on Wix: Raleway names inside Open Sans paragraphs, which sets their line height. */
.mfr__text .rw { font-family: var(--raleway); font-weight: 700; color: #000; }
.mfr__name { font-weight: 400; }
.mfr__text a { color: var(--navy); }

/* ---- Tablet and phone ---- */
@media (max-width: 1019px) {
  html { scroll-padding-top: 76px; }
  .col { padding: 0 20px; }
  .header, .header .col { height: 76px; }
  .header__logo { left: 16px; top: 6px; }
  .header__logo img { width: 106px; height: 64px; }
  main { padding-top: 76px; }
  .nav { position: static; }
  .nav__toggle { display: block; position: absolute; right: 16px; top: 18px; width: 40px; height: 40px; background: #fff; border: 1px solid #000; cursor: pointer; padding: 0; }
  .nav__toggle span, .nav__toggle span::before, .nav__toggle span::after { content: ""; display: block; width: 18px; height: 2px; background: #000; margin: 0 auto; position: relative; }
  .nav__toggle span::before { position: absolute; top: -6px; } .nav__toggle span::after { position: absolute; top: 6px; }
  .nav__list { display: none; position: absolute; left: 0; right: 0; top: 76px; flex-direction: column; background: #fff; padding: 8px 0 14px; border-top: 1px solid #cacaca; max-height: calc(100vh - 76px); overflow: auto; }
  .nav.is-open .nav__list { display: flex; }
  .nav__link { font-size: 22px; line-height: 46px; text-align: center; width: 100%; }
  /* The desktop dropdown's 280px box would sit at the left of the phone menu: here it spans the menu, so its links centre. */
  .nav__sub { position: static; transform: none; opacity: 1; visibility: visible; width: auto; left: auto; }
  /* The open menu is a panel over the page: the page behind it dims, and a tap there closes it. */
  .nav.is-open::before { content: ""; position: fixed; left: 0; right: 0; top: 76px; bottom: 0; background: rgba(0, 0, 0, .45); z-index: 1; }
  .nav.is-open .nav__list { z-index: 2; box-shadow: 0 12px 24px rgba(0, 0, 0, .18); }
  .nav__toggle { z-index: 3; }
  /* Open, the button shows a cross. */
  .nav.is-open .nav__toggle span { background: transparent; }
  .nav.is-open .nav__toggle span::before { top: 0; transform: rotate(45deg); }
  .nav.is-open .nav__toggle span::after { top: 0; transform: rotate(-45deg); }
  .nav__sub .nav__link { font-size: 19px; line-height: 38px; }
  .nav__item--menu > .nav__link { cursor: default; color: #9e9e9e; }

  .hero { height: 32vw; min-height: 190px; }
  .hero__text { top: 50%; transform: translate(-50%, -50%); width: auto; max-width: none; left: 50%; right: auto; width: calc(100% - 90px); font-size: clamp(26px, 6.2vw, 56px); }
  .hero__arrow--prev { left: 4px; } .hero__arrow--next { right: 4px; }
  .hero__dots { bottom: 12px; }

  .intro { height: auto; padding-top: 28px; padding-bottom: 28px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
  .intro__logo, .intro__text { position: static; }
  .intro__logo { width: 232px; height: 140px; }
  .intro__text { width: auto; max-width: 640px; }

  .tiles { height: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .tile { position: relative; left: auto !important; width: auto; height: auto; aspect-ratio: 284 / 479; }
  .tile__rule { left: 28%; width: 44%; } .tile__rule--top { top: 9.6%; } .tile__rule--bottom { top: 85.6%; }
  .tile .tile__title { left: 0; right: 0; top: 50%; transform: translateY(-50%); font-size: clamp(26px, 5.2vw, 51px); line-height: 1.25; }
  .tile__cta { display: none; }
  .tile:hover .tile__rule { opacity: 1; }
  .rule { margin-top: 40px; }

  .locations { height: auto; padding-top: 40px; padding-bottom: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .locations .eyebrow, .locations .headline { grid-column: 1 / -1; }
  .locations .headline { margin-bottom: 30px; }
  .eyebrow { font-size: clamp(22px, 4.7vw, 46px); line-height: 1.1; }
  .headline { font-size: clamp(26px, 5.4vw, 53px); }
  .sub { font-size: clamp(16px, 2.2vw, 21px); }
  .loc { position: static; width: auto; height: auto; background: none; text-align: center !important; margin-bottom: 34px; border-top: 5px solid #ddd; padding-top: 22px; }
  .loc__img { display: none; }
  .loc__body { position: static; }
  .loc__name { font-size: 28px; white-space: normal; }
  .loc__addr { margin-top: 14px; }
  .loc__icons { position: static; display: flex; gap: 5px; justify-content: center; margin-top: 14px; height: auto; width: auto; }
  .loc__icons a { position: static; }
  .loc__icons img { width: auto; height: 64px; }

  .contact { height: auto; padding: 0 0 36px; }
  .contact__panel { position: relative; width: auto; height: auto; padding: 16px 20px; }
  .contact__title { position: static; font-size: 28px; }
  .contact__info, .contact__lead, .form { position: static; margin: 24px 20px 0; }
  .contact__info { font-size: 22px; line-height: 1.5; }
  .contact__lead { font-size: 18px; line-height: 1.5; white-space: normal; }
  .form { width: auto; height: auto; max-width: 620px; display: grid; gap: 6px; }
  .form input, .form textarea, .form button, .form__note { position: static; width: 100%; }
  .form input { height: 40px; font-size: 16px; } .form textarea { height: 150px; font-size: 16px; }
  .form button { width: auto; justify-self: end; height: 36px; line-height: 36px; padding: 0 14px; }

  .footer, .footer--card { height: auto; }
  .footer .col { padding-top: 22px; padding-bottom: 22px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
  .footer__copy, .footer__in, .footer__portal { position: static; width: auto; }
  .footer__in { order: -1; }

  .card-head { height: auto !important; padding-top: 24px; padding-bottom: 26px; }
  .mfr { min-height: 0; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 24px; align-items: center; margin-bottom: 44px; }
  .mfr__logo { position: static; width: auto; height: auto; aspect-ratio: 300 / var(--logo-hn); }
  .mfr__text { margin-left: 0; width: auto; }
  .mfr__tag { margin-bottom: 4px; }
  .mfr__text, .mfr__text p, .mfr__text span { font-size: 16px !important; line-height: 1.5 !important; }
  .mfr__text .mfr__name { font-size: 28px !important; line-height: 1.3 !important; } .mfr__text .mfr__tag { font-size: 20px !important; line-height: 1.4 !important; } .mfr__text .mfr__note { font-size: 17px !important; }
  .card-head .headline, .card-head .sub { top: 0; }
  .mfr__text a { overflow-wrap: anywhere; }
}
@media (max-width: 640px) {
  .tiles { grid-template-columns: 1fr; gap: 12px; }
  .tile { aspect-ratio: 284 / 150; }
  .tile__rule { display: none; }
  .tile__title { font-size: 30px; }
  .locations { grid-template-columns: 1fr; }
  .intro__text { text-align: left; }
  .mfr { grid-template-columns: 1fr; gap: 16px; justify-items: center; }
  .mfr__logo { width: 300px; max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__slide, .tile img, .tile__title, .tile__cta { transition: none; }
}
