/**
Template: generatepress
Theme Name: Torpen Capital
Version: 1.0
Author: Troy Emmerson
*/

/* Fonts */

@font-face {
    font-family: 'Gill Sans';
    src: url('/wp-content/themes/torpen/fonts/GillSans-Light.woff2') format('woff2'),
        url('/wp-content/themes/torpen/fonts/GillSans-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gill Sans';
    src: url('/wp-content/themes/torpen/fonts/GillSans.woff2') format('woff2'),
        url('/wp-content/themes/torpen/fonts/GillSans.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gill Sans';
    src: url('/wp-content/themes/torpen/fonts/GillSans-Medium.woff2') format('woff2'),
        url('/wp-content/themes/torpen/fonts/GillSans-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gill Sans';
    src: url('/wp-content/themes/torpen/fonts/GillSans-Bold.woff2') format('woff2'),
        url('/wp-content/themes/torpen/fonts/GillSans-Bold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Root */

:root {
  --font: 'Gill Sans';
  --dark: #20393b;
  --dark-green: #467762;
  --green: #7eb77e;
  --gold: #b1b272;
  --orange: #af7a3a;
  --grey: #c5c6c4;
}

/* Animation */

.animate {
  opacity: 0;
  transition: 1s ease-out;
  bottom: -70px;
  position: relative;
}

.animate-left {
  opacity: 0;
  transition: 1s ease-out;
  left: -40px;
  position: relative;
  transition-delay: 0.2s;
}

.delay-1 {
  transition-delay: 0.2s;
}

.delay-2 {
  transition-delay: 0.4s;
}

.delay-3 {
  transition-delay: 0.6s;
}

.delay-4 {
  transition-delay: 0.8s;
}

.delay-5 {
  transition-delay: 1s;
}

.delay-6 {
  transition-delay: 1.2s;
}

.in-view {
  opacity: 1;
  bottom: 0;
  left: 0;
}

/* Global */

html, body {
  scroll-behavior: smooth;
  font-family: 'Gill Sans'
}

h3 {
  font-size: 26px;
  font-weight: 500;
}

.page-header, .sidebar .widget, .site-main > * {
  margin-bottom: unset;
}

.cursive {
  font-family: var(--cursive);
}

#content.site-content {
  padding: 0;
}

#page.grid-container {
  max-width: 100%;
  padding: 0;
}

.container, .inside-header.grid-container {
  width: 100%;
  max-width: 90%;
  margin: 0 auto;
  background-color: transparent;
  padding: 0 20px;
}

.container:not(#page) {
  padding-left: 20px;
  padding-right: 20px;
}

.center {
  text-align: center;
}

.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.flex {
  display: flex;
  flex-wrap: wrap;
}

.overlay::after {
  content: "";
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  position: absolute;
  z-index: 2;
  background: #20393B;
  background: linear-gradient(270deg,rgba(32, 57, 59, 0) 40%, rgba(32, 57, 59, 1) 100%);
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  color: #fff;
  border: solid 1px #fff;
}

.btn:hover, .btn:focus {
  background-color: #fff;
  color: #222;
  border-color: #fff;
}

/* Header */

header#masthead {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background-color: #20393b;
}

body.logged-in header#masthead {
  top: 32px;
}

header .main-navigation a {
  color: #fff !important;
  font-size: 18px;
  letter-spacing: 0.5px;
}

header .main-navigation a:hover, header .main-navigation li.current-menu-item:not(.menu-item-type-custom) a {
  text-decoration: underline;
}

/* Home */

.hero {
  align-items: center;
  margin-top: 60px;
}

.hero .container.absolute {
  bottom: 20%;
}

.hero > img {
  display: block;
  width: 100%;
  height: calc(100vh - 60px);
  object-fit: cover;
}

.hero .content {
  width: 100%;
  max-width: 600px;
}

.hero .content img {
  display: block;
  width: 100%;
  margin-bottom: 30px;
  max-width: 480px;
}

.hero .container {
  left: 0;
  right: 0;
  z-index: 3;
}

.hero h1 {
  font-size: 38px;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 15px;
}

.hero p {
  font-size: 20px;
}

/* About / Intro */

.about {
  padding: 120px 0 80px;
}

.about .about-top {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 72px;
	padding: 70px 0;
	align-items: stretch;
  border-top: solid 1px #c5c6c4;
}
.about .about-lead {
	font-size: 22px;
	font-weight: 300;
	margin: 0 0 45px;
}
.about .about-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border-top: 1px solid #c5c6c4;
}
.about .about-stat { padding: 26px 20px 0; }
.about .about-stat:first-child { padding-left: 0; }
.about .about-stat + .about-stat { border-left: 1px solid #c5c6c4; }
.about .about-stat__num {
	display: block;
	font-size: 32px;
	font-weight: 400;
	line-height: 1;
	margin-bottom: 10px;
}
.about .about-stat__num--text { font-size: 22px; line-height: 1.25; padding-top: 9px; }
.about .about-stat__label {
	display: block;
	font-size: 13px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #fff;
}
.about .about-image { position: relative; min-height: 380px; }
.about .about-image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Two columns with a centre divider, like the Expertise section */
.about .about-cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	border-top: 1px solid #c5c6c4;
}
.about .about-col { padding: 48px 56px 8px 0; }
.about .about-col + .about-col {
	padding: 48px 0 8px 56px;
	border-left: 1px solid #c5c6c4;
}
.about .about-col p { color: #fff; }

/* Closing line + button */
.about .about-close {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	margin-top: 56px;
	padding-top: 40px;
	border-top: 1px solid #c5c6c4;
}
.about .about-close p {
	font-size: 22px;
	font-weight: 300;
	max-width: 40%;
	margin: 0;
}
.about .about-close .btn { flex-shrink: 0; }

.about h3 {
  font-size: 30px;
}

h2 {
  font-size: 60px;
  margin-bottom: 20px;
}

.columns {
  border-top: solid 1px #c5c6c4;
}

.columns .col {
  width: 100%;
  max-width: 50%;
  padding: 50px 0;
}

.columns .col:first-child {
  border-right: solid 1px #c5c6c4;
}

.columns .col:last-child {
  padding: 0;
}

.columns .col:last-child .content {
  max-width: 85%;
  position: relative;
  bottom: 100px;
}

.columns .col .content {
  width: 100%;
  max-width: 50%;
}

.about .columns .col img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.expertise {
  padding: 80px 0;
}

.expertise .flex {
  border-top: solid 1px #fff;
  padding: 80px 0;
}

.expertise .col {
  width: 100%;
  max-width: 33.33%;
  padding: 0 5%;
  border-right: solid 1px #c5c6c4;
}

.expertise .col:last-child {
  border: unset;
}

.services .columns .col {
  padding: 0;
}

.services .columns .col .content:first-child {
  border-right: solid 1px #c5c6c4;
}

.services .columns .col .content {
  padding: 60px 15% 60px 40px;
}

.services .columns .col hr {
  background-color: #fff;
  max-width: 170px;
  margin: 60px 0 !important;
}

.services .columns .col img {
  width: 100%;
  display: block;
  height: 100%;
  object-fit: cover;
}

.philosophy {
  margin: 120px 0;
}

.philosophy .column {
  justify-content: center;
  flex-direction: row;
}

.philosophy .column .col {
  width: 100%;
  max-width: 450px;
}

.philosophy .column .line {
  display: block;
  height: 110px;
  background-color: #c5c6c4;
  width: 1px;
  margin: 0 40px;
}

.philosophy h2 {
  margin-bottom: 80px;
}

.philosophy h3 {
  margin-bottom: 50px;
}

.testimonials {
  margin: 200px 0;
}

.testimonials h2 {
  margin-bottom: 30px;
}

.testimonials .content {
  width: 100%;
  max-width: 30%;
}

.testimonials .testimonial-slider  {
  width: 100%;
  max-width: 65%;
  margin-left: 5%;
}

.testimonials .content p {
  font-size: 20px;
}

.testimonial {
  padding: 30px;
  border: solid 1px #c5c6c4;
  text-align: center;
  margin: 0 15px;
}

.testimonials .arrows {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.testimonials img {
  width: 45px;
  cursor: pointer;
}

.testimonials .quote {
  color: #af7a3a;
  font-size: 80px;
  line-height: 60px;
  height: 45px;
  display: block;
}

.testimonial h3 {
  font-size: 22px;
  font-weight: 500;
}

.testimonial p {
  font-size: 16px;
  font-style: italic;
}

.testimonial h4 {
  font-size: 18px;
  font-weight: 500;
  margin: 0;
}

.contact .container {
  max-width: 850px;
}

.contact .container p {
  font-size: 22px;
}

.contact .container .wpforms-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.contact .container .wpforms-container input, .contact .container .wpforms-container textarea {
  background-color: transparent;
  border: solid 1px #ffffff;
  border-radius: 0;
}

.contact .container .wpforms-container .wpforms-field-label {
  font-weight: 500;
  color: #fff;
  margin-bottom: 10px;
}

.contact .container .wpforms-container .wpforms-field-sublabel {
  color: #fff
}

.contact .container .wpforms-container .wpforms-submit {
  display: inline-block;
  padding: 12px 30px;
  border: solid 1px #ffffff;
  background-color: transparent !important;
  border-radius: 0;
  font-weight: 400;
  height: unset;
  line-height: 1.5;
}

.contact .container .wpforms-container .wpforms-submit:hover {
  background: #fff !important;
  color: #222 !important;
}

.contact .container .wpforms-container .wpforms-submit::after {
  display: none !important;
}

.impact {
  padding: 80px 0 120px;
}

.impact .flex:not(.center) {
  border-top: solid 1px #fff;
  padding: 50px 0;
}

.impact .col:first-child {
  width: 100%;
  max-width: 25%;
  margin-right: 20%;
}

.impact .col:first-child p {
  font-size: 20px;
}

.impact .col:last-child {
  width: 100%;
  max-width: 55%;
}

.impact .col .content {
  width: 100%;
  max-width: 50%;
  padding: 0 20px 40px;
}

.impact .col .content h3 {
  font-size: 65px;
  margin-bottom: 10px;
}

.impact .col .content p {
  font-size: 20px;
}

/* Footer */

footer .content {
  padding: 80px 0;
  background-color: #467762;
}

footer .copy {
  padding: 20px;
}

footer .copy p {
  font-size: 15px;
  color: #fff;
  margin: 0;
}

footer .col {
  width: 100%;
  max-width: 20%;
}

footer .col:first-child {
  width: 100%;
  max-width: 60%;
}

footer .col:first-child a {
  margin-bottom: 2rem;
}

footer .col:first-child p {
  font-size: 0.85rem;
  max-width: 600px;
  margin-bottom: 1rem;
}

footer .col a {
  display: block;
  margin-bottom: 7px;
  color: #fff;
  max-width: max-content;
}

footer img:not(.logo) {
  position: relative;
  top: 2px;
  margin-right: 5px;
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

/* Team */

.team h1 {
  font-size: 60px;
  margin-bottom: 20px;
}

.team h2 {
  font-size: 34px;
  margin-bottom: 5px;
}

.team h3 {
  font-size: 22px;
}

.team {
  padding: 150px 0;
}

.team .content .flex {
  padding: 60px 0 100px;
  border-top: solid 1px #c5c6c4;
}

.team .content .col {
  width: 100%;
  max-width: 62%;
  margin-right: 6%;
}

.team .content .media {
  width: 100%;
  max-width: 32%;
}

.team .content .media img:not(a > img) {
  width: 100%;
  display: block;
  margin-bottom: 30px;
}

.team .content .media a > img {
  margin-left: auto;
  display: block;
  width: 32px;
}

/* Portfolio */

.portfolio {
  padding: 150px 0;
}

.portfolio .flex {
  padding: 60px 0;
  border-top: solid 1px #c5c6c4;
  border-bottom: solid 1px #c5c6c4;
  justify-content: space-between;
}

.portfolio .content {
  width: 100%;
  max-width: 47%;
  margin-bottom: 60px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.portfolio .content img {
  width: 100%;
  max-width: 180px;
  object-fit: contain;
  aspect-ratio: 1/1;
  display: block;
  background: #fff;
  padding: 15px;
  border-radius: 8px;
}

.portfolio .content .col {
  width: 100%;
  max-width: calc(100% - 225px);
}

.portfolio .content .col h3 {
  margin: 0 0 5px;
  letter-spacing: 0.5px;
}

.portfolio .content .col h4 {
  font-size: 16px;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0 0 10px;
  letter-spacing: 0.5px;
}

.portfolio .content .col p {
  margin: 0;
}

@media screen and (max-width: 1000px) {

  .about .about-top {
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 40px 0 0;
  }

  .about .about-image {
    order: -1;
    min-height: 280px;
  }

  .about .about-stat__num--text {
    font-size: 25px;
    padding-top: 0;
  }

  .about .about-cols {
    grid-template-columns: 1fr;
  }

  .about .about-col, .about .about-col + .about-col {
    padding: 40px 0 20px;
    border-left: 0;
  }

  .about .about-col + .about-col { border-top: 1px solid #c5c6c4; }
  .about .about-close {
    margin-top: 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .about .about-lead {
    font-size: 19px;
  }

  .about .about-stats {
    grid-template-columns: 1fr;
  }

  .about .about-stat, .about .about-stat:first-child {
    padding: 25px 0;
    text-align: center;
  }

  .about .about-stat + .about-stat {
    border-left: 0;
    border-top: 1px solid #c5c6c4;
  }

  .about {
    padding: 60px 0;
  }

  .about .about-close p {
    font-size: 20px;
    max-width: 100%;
  }

  .container, .inside-header.grid-container {
    max-width: 100%;
  }

  .hero .content img {
    width: 260px;
    margin-bottom: 25px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 20px;
    line-height: 1.3;
    margin: 0;
  }

  .hero > img {
    height: 500px;
  }

  .site-header .header-image {
    width: 190px;
  }

  header .gp-icon svg {
    font-size: 23px;
    color: #fff;
  }

  header .menu-toggle {
    line-height: unset;
    padding: 0 10px;
  }

  header.site-header {
    padding: 20px 0;
  }

  .main-navigation .main-nav ul li a {
    line-height: 50px;
    text-align: center;
    font-size: 20px;
  }

  .columns .col:last-child .content {
    bottom: 0;
    max-width: 100%;
  }

  .columns .col, .columns .col .content {
    max-width: 100%;
  }

  .columns .col:first-child {
    border-right: unset;
  }

  h2 {
    font-size: 45px;
    margin-bottom: 15px;
  }

  .columns .col {
    padding: 50px 0 30px;
  }

  .expertise {
    padding: 40px 0;
  }

  .expertise .col {
    max-width: 100%;
    border-right: unset;
    padding: 50px 5% 30px;
    border-bottom: solid 1px #fff;
  }

  .expertise .flex {
    padding: 0;
  }

  .impact {
    padding: 40px 0 80px;
  }

  .impact .col:first-child {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    order: 2;
    margin-top: 10px;
  }

  .impact .col:last-child {
    max-width: 100%;
    order: 1;
  }

  .impact .col .content h3 {
    font-size: 35px;
  }

  .impact .col .content {
    width: 100%;
    max-width: 50%;
    padding: 0 10px 20px;
  }

  .impact .col .content p {
    font-size: 16px;
  }

  .impact .col:first-child p {
    font-size: 17px;
  }

  .overlay::after {
    background: linear-gradient(270deg,rgba(32, 57, 59, 0.4) 10%, rgba(32, 57, 58, 0.87) 100%);
  }

  .team, .portfolio {
    padding: 100px 0 50px;
  }

  .team .content .flex {
    padding: 50px 0;
  }

  .team .content .flex {
    padding: 50px 0;
  }

  .team .content .media {
    order: 1;
    max-width: 100%;
  }

  .team .content .col {
    order: 2;
    max-width: 100%;
    margin-right: 0;
  }

  .team .content .media img:not(a > img) {
    width: 100%;
    display: block;
    margin-bottom: 20px;
  }

  .team .content .media a > img {
    width: 25px;
    margin-bottom: 10px;
  }

  .hero .container.absolute {
    bottom: unset;
  }

  .portfolio .content {
    max-width: 100%;
    margin-bottom: 40px;
  }

  .portfolio .content img {
    max-width: 130px;
    padding: 10px;
  }

  .portfolio .content .col {
    width: 100%;
    max-width: calc(100% - 155px);
  }

  .portfolio .content .col h4 {
    font-size: 14px;
  }

  footer .col {
    max-width: 100% !important;
    margin-bottom: 30px;
  }

  footer .content {
    padding: 70px 0 40px;
  }

}
