/*
Theme Name: Fairstone B2B
Author: Blair Ramsay
Author URI: https://blairramsay.co.uk
Description: A custom theme for the Fairstone website
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blank

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/*=======================================
              Import Fonts
========================================*/

@import url("https://fonts.googleapis.com/css?family=Montserrat:300,400,400i,500,700&display=swap");

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700;800&display=swap');

/*=======================================
      Reset Styles for Main Elements
========================================*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/*=======================================
              Box Sizing
========================================*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

/*=======================================
                Colours
========================================*/

:root {
  --grey: #1e1e1e;
  --white: #ffffff;
  --green: #29bb89;
  --slate: #2c3e50;
  --slate80: #566573;
  --slate4: #f7f7f8;
}

/*=======================================
          Default Body Styles
========================================*/

body {
  min-height: 100vh;
  scroll-behavior: smooth;
  text-rendering: optimizeSpeed;
  line-height: 1.2;
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500 !important;
}

/*=======================================
   Set Display Role for Older Browsers
========================================*/

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

/*=======================================
                Quotes
========================================*/

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}

/*=======================================
            Container Layout
========================================*/

.container {
  width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

@media (max-width: 1260px) {

  .container {
    width: 100%;
  }

}

@media (max-width: 600px) {

  .container {
    padding: 0 20px;
  }

}

/*=======================================
              Helper Classes
========================================*/

.clearfix {
  clear: both;
}

.centered {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/*=======================================
              Flex Grid
========================================*/

.flex-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
}

/*=======================================
          Link Default Styles
========================================*/

a {
  text-decoration: none;
}

a.cover {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

a:hover {
  text-decoration: underline;
}

a:not([class]) {
  color: #2c3e50;
  text-decoration: none;
  border-bottom: 1px solid #29bb89;
  margin-bottom: -1px;
}

a:not([class]):hover {
  color: #29BB89;
}

.text-container a:not([class]) {
  color: #2c3e50;
  text-decoration: none;
  border-bottom: 1px solid #29bb89;
  margin-bottom: -1px;
  display: inline;
}

.text-container a:not([class]):hover {
  color: #29BB89;
}

/*=======================================
          Button Default Styles
========================================*/

.button {
}

.button:hover {
}

/*=======================================
            List Default Styles
========================================*/

ul[class],
ol[class] {
  list-style: none;
}

ul {
}

ol {
}

/*=======================================
            Table Default Styles
========================================*/

table {
  border-collapse: collapse;
  border-spacing: 0;
}

table th {
}

table td {
}

/*=======================================
              Form Elements
========================================*/

input,
button,
textarea,
select {
  font: inherit;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
textarea,
select {
  font-size: 16px;
  color: #333;
  background: #fff;
  border: 2px solid #333;
  display: inline-block;
  padding: 6px 10px;
  margin: 5px 0;
  outline: none;
}

label {
  cursor: pointer;
}

/*=======================================
          Image Default Styles
========================================*/

img {
  width: 100%;
  height: auto;
  display: block;
}

/*=======================================
              Button Links
========================================*/

a.button {
  padding: 11px 20px 11px;
  font-weight: bold;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.3s ease-in-out;
  display: inline-block;
}

a.button.purple {
  color: var(--slate80);
  border: 1px solid var(--slate80);
  padding: 11px 30px 11px;
  transition: all 0.3s ease-in-out;
}

a.button.purple:hover {
  color: white;
  border: 1px solid var(--slate80);
  background-color: var(--slate80);
}

a.button.green {
  background-color: #29bb89;
  border: 1px solid #29bb89;
  color: white;
}

a.button.green:hover {
  background-color: #1E8D67;
  border: 1px solid #1E8D67;
  transform: scale(0.95);
}

a.button.trans-green {
  background-color: transparent;
  border: 1px solid #29bb89;
  color: #29bb89!important;
}

a.button.trans-green:hover {
  color: white!important;
  background-color: #29bb89;
  transform: scale(0.95);
}

a.button.trans {
  background-color: transparent;
  border: 1px solid #29bb89;
  color: #29bb89!important;
}

a.button.trans:hover {
  color: #29bb89;
  background-color: rgba(41, 187, 137,.05);
  transform: scale(0.95);
}

a.arrow.green {
  position: relative;
  display: block;
  font-size: 15px;
  font-weight: bold;
  line-height: normal;
  letter-spacing: 0.3px;
  color: #29bb89;
  padding-right: 25px;
  text-decoration: none;
}

a.arrow.green:after {
  content: "";
  background-image: url('/wp-content/themes/fairstone/img/icons/right-chevron.svg');
  background-size: contain;
  background-repeat: no-repeat;
  width: 12px;
  height: 12px;
  position: absolute;
  right: 0;
  top: 4px;
  transition: all 0.3s ease-in-out;
}

a.arrow.green:hover:after {
  right: -8px;
}

a.button.trans-green.arrow {
  background-color: transparent;
  border: 1px solid #29bb89;
  color: #29bb89;
  text-align: left;
  position: relative;
}

a.button.trans-green.arrow:after {
  content: "";
  background-image: url('/wp-content/themes/fairstone/img/arrow-chevron-right-green.svg');
  background-size: contain;
  background-repeat: no-repeat;
  width: 24px;
  height: 24px;
  position: absolute;
  right: 10px;
  top: 9px;
}

a.button.trans-green.arrow:hover {
  color: white;
  background-color: #29bb89;
  transform: none;
}

a.button.trans-green.arrow:hover:after {
  background-image: url('/wp-content/themes/fairstone/img/arrow-chevron-right-white.svg');
}


/* Firefox CSS */

/* #firefox footer .footer-top .footer-right input[type="submit"] {
    top: 2px;
    height: 45px;
}

#firefox footer .footer-top .footer-right .form::after {
	top: 16px;
	right: 38px;
} */


/* Internet Explorer CSS */

#ie header .main-header .logo,
#ie footer .footer-top .footer-left .logo {
    width: 140px;
}

#ie footer .footer-top .footer-right input[type="submit"] {
    top: 2px;
    height: 45px;
}

#ie footer .footer-top .footer-right .form::after {
	top: 16px;
	right: 38px;
}


#ie .icon-block .columns .column .icon img {
    height: auto;
    width: auto;
}

#ie .did-you-know .point .bullet img {
    width: auto;
    height: auto;
}

#ie .gf_browser_ie.gform_wrapper.gravity-theme .gform_fields .gfield {
    border-width: 0;
}

#ie .gf_browser_ie.gform_wrapper.gravity-theme .gform-body {
    margin: 0;
}


#safari footer .footer-top .footer-right input[type="submit"] {
    height: 45px;
    top: 18px;
}

/* Job Notification Form */

.job-notification-form {
  background-color: #48515a;
  color: #fff;
  margin: 50px auto 0 auto;
  max-width: 975px;
  position: relative;
  padding: 20px 0;
}

.job-notification-form .gfield {
  margin: 0 40px; 
  font-weight: 600;
  line-height: 1.5;
}

.job-notification-form_wrapper .gform_heading {
  display: none;
}

.job-notification-form .gfield input[type="text"],
.job-notification-form .gfield select {
  font-weight: 400;
  border: none;
}

.job-notification-form .job-notification-intro {
  margin-bottom: 0;
}

.job-notification-form .job-notification-email {
  margin-top: 0;
  margin-bottom: 0;
}

.job-notification-form_wrapper .job-notification-form .job-notification-email input {
  border: none;
}

.job-notification-form_wrapper .job-notification-form .gfield.job-notification-form-consent {
  margin: 0 40px;
  font-size: 14px;
  font-weight: 400;
}

.job-notification-form_wrapper .job-notification-form .gfield.job-notification-form-consent.gfield_error label {
  color: #fff;
}

.job-notification-form_wrapper .job-notification-form .gfield.job-notification-form-enable-filters {
  display: none; /* Temporarily hide */
  position: absolute;
  bottom: -35px;
  width: 100%;
}

.job-notification-form_wrapper .job-notification-form .gfield.job-notification-form-enable-filters input {
  appearance: none;
  background-color: #fff;
  margin: 0;
}

.job-notification-form_wrapper .job-notification-form .gfield.job-notification-form-enable-filters label {
  color: var(--green);
  text-decoration: underline;
  width: 100%;
  background-color: #fff;
  text-align: center;
  max-width: 100%;
}

.job-notification-form .job-notification-form-enable-filters input:checked ~ label {
  display: none;
}

.gform_wrapper.gravity-theme .job-notification-form .gform_footer,
.job-notification-form_wrapper .job-notification-form .gform_footer {
  position: absolute;
  padding: 0;
  margin: 0;
  top: 84px;
  right: 40px;
  background-color: var(--green);
  display: flex;
  align-items: center;
}

.job-notification-form_wrapper .job-notification-form .gform_footer input[type="submit"] {
  color: transparent;
  border: none;
  outline: none;
  background-color: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23fff' d='M503 279c12-13 12-33 0-46L375 105a32 32 0 0 0-46 46l74 73H32a32 32 0 1 0 0 64h371l-74 73a32 32 0 0 0 46 46l128-128z'/%3E%3C/svg%3E");
  background-position: center;
  background-size: 40%;
  background-repeat: no-repeat;
  margin: 0;
  height: 38.5px;
  width: 85px;
  cursor: pointer;
}

.job-notification-form_wrapper .job-notification-form .gform_footer img {
  height: 38px;
}

.job-notification-form.gform_confirmation_wrapper {
  padding: 30px;
}

@media screen and (max-width: 641px) {
  .job-notification-form_wrapper .job-notification-form .gform_footer input[type="submit"] {
    height: 46.5px;
  }
}

@media screen and (max-width: 559px) {
  .gform_wrapper.gravity-theme .job-notification-form .gform_footer,
  .job-notification-form_wrapper .job-notification-form .gform_footer {
    top: 108px;
  }

  .job-notification-form_wrapper .job-notification-form .gform_footer input[type="submit"] {
    height: 45.5px;
  }
}

@media screen and (max-width: 463px) {
  .gform_wrapper.gravity-theme .job-notification-form .gform_footer,
  .job-notification-form_wrapper .job-notification-form .gform_footer {
    top: 132px;
  }
}

@media screen and (max-width: 390px) {
  .gform_wrapper.gravity-theme .job-notification-form .gform_footer,
  .job-notification-form_wrapper .job-notification-form .gform_footer {
    top: 132px;
    right: 30px;
  }

  .job-notification-form .gfield {
    margin: 0 30px;
  }

  .job-notification-form_wrapper .job-notification-form .gfield.job-notification-form-consent {
    margin: 0 30px 10px 30px;
  }
}
