/* EPI Consultant Limited: static rebuild of the Wix site */
:root {
  --ink: #33343f;
  --ink-soft: #434459;
  --brown: #7a4b41;
  --rust: #bc5a45;
  --btn: #33343f;
  --panel: #f5f5f5;
  --lilac: #c8c9d3;
  --lilac-light: #d5d5dd;
  --blue: #1d67cd;
  --blue-ink: #dcecff;
  --sans: "Nunito Sans", "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  --head: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 300 16px/1.8 var(--sans);
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h5 { font-family: var(--head); font-weight: 400; margin: 0; line-height: 1.2; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }

.btn {
  display: inline-block;
  background: var(--btn);
  color: #fff;
  font: 300 14px/1 var(--sans);
  text-decoration: none;
  padding: 14px 40px;
  border: 1px solid var(--btn);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn:hover { background: #fff; color: var(--btn); }

/* Header */
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 132px;
}
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.brand img { width: 43px; height: 60px; }
.brand span { font: 700 32px/1 var(--head); color: var(--ink); }
.nav { display: flex; gap: 20px; }
.nav a { font-size: 14px; text-decoration: none; color: var(--ink); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 5px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

/* Footer */
.site-footer { text-align: center; font-size: 14px; padding: 80px 0 40px; }

/* Media backgrounds (video with image poster) */
.media { position: relative; overflow: hidden; }
.media > video, .media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media > .inner { position: relative; }

/* Home */
.hero { min-height: 673px; display: flex; align-items: center; justify-content: center; padding: 80px 20px; }
.hero .card { background: #fff; width: 600px; max-width: 100%; padding: 70px 60px 60px; text-align: center; }
.hero h1 { font-size: 56px; margin-bottom: 28px; }
.hero p { margin-bottom: 40px; }

.split { display: grid; grid-template-columns: 1fr 1fr; }
.split .copy { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 60px 20px; }
.split .copy h2 { font-size: 56px; margin-bottom: 48px; }
.split img { width: 100%; height: 660px; object-fit: cover; }

.band { height: 492px; }

.contact-block { padding: 80px 0 0; }
.contact-block .panel {
  background: var(--panel);
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  padding: 70px 80px 120px;
}
.contact-block .info { text-align: center; font-size: 15px; }
.contact-block .info h2 { font-size: 40px; margin-bottom: 30px; }
.contact-block .info p { margin-bottom: 26px; }
.contact-block .info a { text-decoration: none; }

/* Forms (shared) */
.form { display: grid; gap: 16px 10px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form label { display: block; font-size: 14px; margin-bottom: 6px; }
.form input, .form textarea, .form select {
  width: 100%; font: inherit; font-size: 15px; color: inherit;
  border: 0; border-bottom: 1px solid var(--ink); background: transparent;
  padding: 6px 4px; border-radius: 0; outline: none;
}
.form textarea { min-height: 80px; resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: var(--ink); opacity: .85; }
.form input:focus, .form textarea:focus, .form select:focus { border-bottom-width: 2px; }
.form button { width: 100%; padding: 14px; font-size: 16px; }
.form .thanks { display: none; text-align: center; font-size: 15px; }
.form.sent .thanks { display: block; }
.req::after { content: " *"; }

/* About */
.intro { text-align: center; padding: 90px 20px 90px; }
.intro .kicker { font: 25px/1.3 var(--head); margin-bottom: 30px; }
.intro h1 { font-size: 56px; color: var(--brown); }
.grid-2x2 { display: grid; grid-template-columns: 1fr 1fr; }
.grid-2x2 > .media { min-height: 556px; }
.grid-2x2 .text { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 60px 40px; }
.grid-2x2 .text h2 { font-size: 38px; color: var(--rust); margin-bottom: 40px; }
.grid-2x2 .text p { max-width: 400px; }
.grid-2x2 .text.lg p { font-size: 18px; line-height: 1.7; }

/* Services */
.services { background: var(--lilac); padding: 40px 0 60px; }
.svc-hero { position: relative; height: 450px; margin-bottom: 80px; }
.svc-hero .media { position: absolute; left: 0; top: 0; width: 64%; height: 342px; }
.svc-hero .card {
  position: absolute; right: 0; top: 80px; width: 64%; height: 366px; background: #fff;
  display: flex; flex-direction: column; justify-content: center; padding: 0 80px 0 118px;
}
.svc-hero h1 { font-size: 56px; color: var(--brown); margin-bottom: 40px; }
.svc-hero p { font: 400 36px/1.3 var(--sans); }
.svc-grid { display: grid; grid-template-columns: repeat(2, 424px); justify-content: center; gap: 0 74px; align-items: start; }
.svc-col { display: grid; gap: 74px; }
.svc-col:last-child { margin-top: 0; }
.svc { background: #fff; padding: 20px 20px 50px; }
.svc h3 { font: 20px/1.34 var(--head); padding-bottom: 12px; border-bottom: 1px solid var(--ink-soft); margin-bottom: 30px; }
.svc img { width: 100%; aspect-ratio: 380 / 347; object-fit: cover; margin-bottom: 28px; }
.svc p { font-size: 15px; line-height: 1.9; }

/* General */
.about-box { background: var(--lilac-light); text-align: center; padding: 90px 40px 70px; margin-top: 50px; }
.about-box h1 { font: 300 35px/1.75 var(--sans); color: var(--brown); margin-bottom: 30px; }
.about-box p { max-width: 760px; margin: 0 auto; font-size: 15.5px; line-height: 2.2; }
.about-box p + p { margin-top: 30px; font-size: 18px; line-height: 1.8; }
.about-box .hl { color: var(--rust); }
.values { max-width: 620px; margin: 0 auto; padding: 90px 20px 50px; font-size: 18px; line-height: 1.75; }
.values h2 { font: 300 30px/1.3 var(--sans); text-align: center; margin-bottom: 60px; }
.values ul { margin: 0; padding-left: 26px; }

.quote { background: var(--blue); color: #fff; padding: 40px 20px 85px; }
.quote h2 { font: 700 35px/1.4 "Poppins", var(--head); text-align: center; margin-bottom: 30px; }
.quote .form { max-width: 250px; margin: 0 auto; gap: 26px 8px; }
.quote label { font: 300 12px/1 "Jost", var(--sans); margin-bottom: 10px; }
.quote input, .quote select, .quote textarea {
  background: var(--blue); color: #fff; font: 600 16px/1.4 var(--sans);
  border-bottom: 4px solid #fff; padding: 6px 16px 8px;
}
.quote select { color: var(--blue-ink); -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23fff' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.quote select option { color: var(--ink); background: #fff; }
.quote input::placeholder, .quote textarea::placeholder { color: #fff; opacity: 1; }
.quote .phone { display: grid; grid-template-columns: 92px 1fr; gap: 8px; }
.quote textarea { min-height: 70px; }
.quote button { background: #fff; color: var(--blue); border: 0; font: 400 18px/1 "Jost", var(--sans); padding: 16px; margin-top: 10px; box-shadow: 0 4px 10px rgba(0,0,0,.2); }
.quote button:hover { background: var(--blue-ink); color: var(--blue); }

/* Contact */
.contact-intro { max-width: 940px; margin: 0 auto; padding: 80px 40px 50px; }
.contact-intro h1 { font-size: 56px; color: var(--brown); margin-bottom: 60px; }
.contact-intro p { max-width: 680px; }
.chat { background: var(--lilac-light); padding: 80px 40px 90px; }
.chat .inner { max-width: 790px; margin: 0 auto; }
.chat h2 { font-size: 38px; margin-bottom: 50px; }
.chat .details { display: grid; grid-template-columns: 320px 1fr; margin-bottom: 40px; }
.chat .details h3 { font: 16px/1.34 var(--head); margin-bottom: 12px; }
.chat .form .row { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.chat .form label { font-size: 14px; }
.chat .form input, .chat .form textarea { background: #fff; border: 1px solid var(--ink); padding: 8px; font-size: 14px; }
.chat .form textarea { min-height: 86px; }
.chat .form .send { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.chat .form .send button { grid-column: 3; padding: 10px; font-size: 14px; }

/* Responsive */
@media (max-width: 900px) {
  .wrap { padding: 0 16px; }
  .site-header .wrap { height: 88px; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 88px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: 8px 16px 20px; z-index: 10; box-shadow: 0 8px 16px rgba(0,0,0,.06); }
  .nav.open { display: flex; }
  .nav a { font-size: 18px; padding: 10px 0; }
  .site-header { position: relative; }

  .hero { min-height: 520px; }
  .hero .card { padding: 48px 24px; }
  .hero h1, .split .copy h2, .intro h1, .svc-hero h1, .contact-intro h1 { font-size: 38px; }
  .split, .grid-2x2, .contact-block .panel { grid-template-columns: 1fr; }
  .split img { height: 360px; }
  .band { height: 280px; }
  .contact-block .panel { padding: 48px 20px; }
  .grid-2x2 > .media { min-height: 300px; }
  .grid-2x2 .text.vision { order: 4; }

  .svc-hero { height: auto; margin-bottom: 40px; }
  .svc-hero .media, .svc-hero .card { position: relative; width: 100%; top: 0; }
  .svc-hero .media { height: 220px; }
  .svc-hero .card { height: auto; padding: 40px 24px; }
  .svc-hero p { font-size: 24px; }
  .svc-grid { grid-template-columns: 1fr; gap: 32px; padding: 0 16px; }
  .svc-col { gap: 32px; }

  .about-box { margin: 20px 16px 0; padding: 48px 20px; }
  .about-box h1 { font-size: 28px; line-height: 1.4; }
  .contact-intro { padding: 48px 16px 40px; }
  .chat { padding: 48px 16px; }
  .chat .details, .chat .form .row, .chat .form .send { grid-template-columns: 1fr; gap: 16px; }
  .chat .form .send button { grid-column: 1; }
}
.quote .phone select { padding: 6px 26px 8px 10px; background-position: right 8px center; }
@media (max-width: 900px) {
  .svc-col { display: contents; }
  .svc-col:first-child .svc:nth-child(1) { order: 1; }
  .svc-col:first-child .svc:nth-child(2) { order: 3; }
  .svc-col:first-child .svc:nth-child(3) { order: 5; }
  .svc-col:last-child .svc:nth-child(1) { order: 2; }
  .svc-col:last-child .svc:nth-child(2) { order: 4; }
  .svc-col:last-child .svc:nth-child(3) { order: 6; }
}
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form .error { font-size: 14px; color: #b3261e; }
.form .error:empty { display: none; }
.quote .form .error { color: #fff; background: rgba(179, 38, 30, .85); padding: 8px 12px; }
.form button:disabled { opacity: .6; cursor: wait; }
