/* Site additions on top of the Salient theme styles.
   Colours and fonts come from the theme: red #e32e26, turquoise #6ccace,
   active turquoise #27ccc0, pale #f4fbfb, body #676767, headings YWFT Mr Hyde. */

/* Spam trap fields on every form */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Form responses, styled like Contact Form 7's own messages */
.wpcf7-form .wpcf7-response-output {
  margin: 20px 0 0;
  padding: 12px 16px;
  border: 0;
  border-radius: 3px;
  color: #fff !important;
  font-size: 14px;
  line-height: 22px;
}
.wpcf7-form .wpcf7-response-output.wpcf7-display-none { display: none; }
.wpcf7-form .wpcf7-response-output.wpcf7-mail-sent-ok { background: #313233; }
.wpcf7-form .wpcf7-response-output.wpcf7-validation-errors,
.wpcf7-form .wpcf7-response-output.wpcf7-mail-sent-ng { background: #e32e26; }
.wpcf7-form .wpcf7-not-valid-tip,
.wpcf7-form p span.wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  color: #fff !important;
  background: #e32e26;
  font-size: 12px;
  line-height: 18px;
  padding: 3px 8px;
  border-radius: 2px;
}
.wpcf7-form.is-submitting .wpcf7-submit { opacity: 0.6; cursor: progress; }

/* ------------------------------------------------------------------ Ghostwriting page */

.page-ghostwriting [id] { scroll-margin-top: 80px; }

.gw-section-title {
  font-size: 54px !important;
  line-height: 62px !important;
  margin-bottom: 30px !important;
}
.gw-hero h1 {
  font-size: 64px !important;
  line-height: 70px !important;
  color: #fff;
  margin-bottom: 10px;
}
.gw-hero .gw-sub {
  font-family: 'YWFT Mr Hyde', sans-serif;
  letter-spacing: 1px;
  max-width: none;
  font-size: 30px !important;
  line-height: 40px !important;
  color: #fff;
  padding-bottom: 18px !important;
}
.gw-hero p,
.gw-red p,
.gw-enquiry p { color: #fff; }
.gw-hero p { font-size: 16px; line-height: 28px; max-width: 480px; }
.gw-hero .vc_column-inner { padding-top: 40px; padding-bottom: 40px; }

/* Portrait fills its half of the hero; keep the face dominant at every width */
.gw-portrait-col { min-height: 640px; position: relative; overflow: hidden; }
.gw-portrait-col .vc_column-inner,
.gw-portrait-col .wpb_wrapper { height: 100%; }
.gw-portrait {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: 50% 35%;
  display: block;
}

.gw-measure { max-width: 680px; margin-left: auto; margin-right: auto; }
.gw-measure-wide { max-width: 900px; margin-left: auto !important; margin-right: auto !important; }
.gw-centre { text-align: center; }
.gw-copy p { font-size: 16px; line-height: 29px; margin-bottom: 0; padding-bottom: 14px; }
.gw-copy p.gw-gap { padding-top: 14px; }
.gw-strong { font-weight: 600; color: #444; }
.gw-red .gw-strong { color: #fff; }

.gw-quote {
  font-family: 'YWFT Mr Hyde', sans-serif;
  color: #e32e26;
  font-size: 34px !important;
  line-height: 44px !important;
  letter-spacing: 1px;
  padding: 18px 0 !important;
}

/* Two-column story list */
.gw-list { list-style: none !important; margin: 0 !important; padding: 0; }
.gw-list li {
  list-style: none !important;
  position: relative;
  padding: 0 0 18px 30px;
  font-size: 16px;
  line-height: 26px;
  color: #444;
}
.gw-list li:before {
  content: "\f00c";
  font-family: FontAwesome;
  position: absolute;
  left: 0;
  top: 0;
  color: #e32e26;
  font-size: 15px;
}
.gw-closing {
  font-size: 34px !important;
  line-height: 44px !important;
  color: #e32e26;
  margin-top: 30px;
}

/* How it works */
.gw-step-number {
  font-family: 'YWFT Mr Hyde', sans-serif;
  font-size: 80px;
  line-height: 80px;
  color: #6ccace;
  display: block;
  margin-bottom: 10px;
}
.gw-step h3 { font-size: 26px; line-height: 34px; margin-bottom: 12px; }
#how-it-works .gw-cta-wrap { margin-top: 30px; }
.gw-step p { font-size: 15px; line-height: 27px; }

.gw-cta-wrap { text-align: center; margin-top: 20px; }
.gw-cta-wrap .nectar-button { margin-bottom: 0 !important; }

/* Outlined button on turquoise and red rows */
.nectar-button.see-through-2.gw-btn-light {
  border-color: #fff !important;
  color: #fff !important;
}
.nectar-button.see-through-2.gw-btn-light:hover {
  background-color: #fff !important;
  color: #e32e26 !important;
}

.gw-about-image img { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); }

/* Enquiry form */
.gw-enquiry .gw-intro { font-size: 16px; line-height: 28px; text-align: center; margin-bottom: 30px; }
.gw-form textarea { min-height: 170px; }
.gw-form fieldset { border: 0; margin: 0; padding: 0 0 21px; min-width: 0; }
.wpcf7-form p span.gw-optional { color: #fff !important; opacity: 0.8; font-weight: 400; }
.gw-confidential {
  text-align: center;
  font-size: 14px;
  margin-top: 25px;
  padding-bottom: 0 !important;
}
.gw-confidential .fa { margin-right: 6px; }

@media only screen and (max-width: 999px) {
  .gw-hero h1 { font-size: 44px !important; line-height: 50px !important; }
  .gw-hero .gw-sub { font-size: 24px !important; line-height: 32px !important; }
  .gw-portrait-col { min-height: 520px; }
  .gw-step { margin-bottom: 30px; }
}
@media only screen and (max-width: 690px) {
  .gw-section-title { font-size: 35px !important; line-height: 41px !important; margin-bottom: 20px !important; }
  .gw-hero h1 { font-size: 38px !important; line-height: 44px !important; }
  .gw-hero .gw-sub { font-size: 22px !important; line-height: 30px !important; }
  .gw-hero .vc_column-inner { padding-top: 10px; padding-bottom: 10px; }
  .gw-portrait-col { min-height: 0; aspect-ratio: 1 / 1; }
  .gw-quote, .gw-closing { font-size: 26px !important; line-height: 34px !important; }
  .gw-copy p, .gw-list li { font-size: 15px; line-height: 27px; }
  .gw-about-image { max-width: 220px; margin: 0 auto 30px; }
  .page-ghostwriting .nectar-button.large { padding-left: 16px !important; padding-right: 16px !important; letter-spacing: 1px !important; font-size: 13px !important; }
}

/* ------------------------------------------------------------------ Forms, site-wide */
/* White fields that lift off the turquoise rows, a red focus ring, labels in the
   display face and red buttons — shared by the contact, Mailchimp and ghostwriting forms. */

body .wpcf7-form input[type="text"],
body .wpcf7-form input[type="email"],
body .wpcf7-form textarea,
body .wpcf7-form select,
body .mc4wp-form input[type="text"],
body .mc4wp-form input[type="email"],
body #mc_embed_signup input[type="email"] {
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 13px 16px !important;
  background-color: #fff !important;
  color: #333 !important;
  border: 2px solid #fff !important;
  border-radius: 4px !important;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1) !important;
  font-family: 'Open Sans', sans-serif !important;
  font-size: 15px !important;
  line-height: 22px !important;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
body .wpcf7-form textarea { min-height: 150px; resize: vertical; }
body .wpcf7-form select {
  padding-right: 46px !important;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='none' stroke='%23e32e26' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='m1.5 1.5 5.5 5.5 5.5-5.5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 18px center !important;
}
body .wpcf7-form ::placeholder,
body .mc4wp-form ::placeholder,
body #mc_embed_signup ::placeholder { color: #9a9a9a !important; opacity: 1; }
body .wpcf7-form input:focus,
body .wpcf7-form textarea:focus,
body .wpcf7-form select:focus,
body .mc4wp-form input:focus,
body #mc_embed_signup input[type="email"]:focus {
  outline: none;
  border-color: #e32e26 !important;
  box-shadow: 0 0 0 4px rgba(227, 46, 38, 0.25) !important;
}
body .wpcf7-form .wpcf7-not-valid { border-color: #e32e26 !important; }

/* Labels */
body .wpcf7-form p > label,
body .wpcf7-form legend {
  display: block;
  font-family: 'YWFT Mr Hyde', sans-serif;
  font-size: 21px;
  line-height: 28px;
  letter-spacing: 1px;
  color: #fff;
}
body .wpcf7-form p > label br { display: none; }
body .wpcf7-form .wpcf7-form-control-wrap { display: block; margin-top: 10px; }
body .wpcf7-form legend { margin-bottom: 12px; }
.wpcf7-form p span.gw-optional { font-family: 'Open Sans', sans-serif; font-size: 13px; letter-spacing: 0; }
.wpcf7-form .wpcf7-not-valid-tip { font-family: 'Open Sans', sans-serif; letter-spacing: 0; }

/* Buttons */
body .wpcf7-form .wpcf7-submit,
body .mc4wp-form input[type="submit"],
body #mc_embed_signup #mcbuttontop {
  min-height: 52px;
  padding: 16px 34px !important;
  background-color: #e32e26 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 4px !important;
  box-shadow: 0 3px 0 #a81d17 !important;
  font-family: 'Open Sans', sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 20px !important;
  letter-spacing: 2px !important;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.1s ease;
}
body .wpcf7-form .wpcf7-submit:hover,
body .mc4wp-form input[type="submit"]:hover,
body #mc_embed_signup #mcbuttontop:hover { background-color: #c8241d !important; }
body .wpcf7-form .wpcf7-submit:active,
body .mc4wp-form input[type="submit"]:active,
body #mc_embed_signup #mcbuttontop:active { transform: translateY(2px); box-shadow: 0 1px 0 #a81d17 !important; }
body .wpcf7-form .wpcf7-submit:focus-visible,
body .mc4wp-form input[type="submit"]:focus-visible,
body #mc_embed_signup #mcbuttontop:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Budget choices as selectable cards (Salient renders each radio as input + label) */
.gw-form .wpcf7-radio { display: flex; flex-wrap: wrap; gap: 12px; }
.gw-form .wpcf7-list-item { margin: 0; flex: 1 1 160px; }
body[data-fancy-form-rcs="1"] .gw-form .wpcf7-list-item [type="radio"]:not(:checked) + label,
body[data-fancy-form-rcs="1"] .gw-form .wpcf7-list-item [type="radio"]:checked + label {
  display: flex;
  align-items: center;
  width: 100%;
  height: auto;
  min-height: 52px;
  padding: 14px 16px 14px 46px;
  background: rgba(255, 255, 255, 0.16);
  border: 2px solid #fff;
  border-radius: 4px;
  color: #fff !important;
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0;
}
body[data-fancy-form-rcs="1"] .gw-form .wpcf7-list-item [type="radio"]:checked + label {
  background: #fff;
  color: #e32e26 !important;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1);
}
body[data-fancy-form-rcs="1"] .gw-form .wpcf7-list-item [type="radio"] + label:before,
body[data-fancy-form-rcs="1"] .gw-form .wpcf7-list-item [type="radio"] + label:after { left: 16px; top: 50%; margin-top: -8px; }
body[data-fancy-form-rcs="1"] .gw-form .wpcf7-list-item [type="radio"]:not(:checked) + label:before { border-color: #fff; }
body[data-fancy-form-rcs="1"] .gw-form .wpcf7-list-item [type="radio"]:checked + label:before { border-color: #e32e26; background-color: #fff; }
body[data-fancy-form-rcs="1"] .gw-form .wpcf7-list-item [type="radio"]:checked + label:after { border-color: #e32e26; background-color: #e32e26; }
body .gw-form [type="radio"]:focus-visible + label { outline: 3px solid #fff; outline-offset: 3px; }

/* Home page Mailchimp forms */
.wpb_raw_html.vc_custom_1531767291896 { background-color: transparent !important; padding: 0 !important; }
#mc_embed_signup_scroll { display: flex; gap: 10px; }
body #mc_embed_signup input[type="email"]#mce-EMAIL { flex: 1 1 auto; width: auto; margin: 0; }
body #mc_embed_signup #mcbuttontop { flex: 0 0 auto; width: auto; }
@media screen and (min-width: 1001px) {
  .mc-form-custom .fld { vertical-align: top; }
}

/* ------------------------------------------------------------------ Home page on small screens */

/* Press logos: one row that drifts sideways instead of four stacked blocks */
@media only screen and (min-width: 1000px) {
  .press-logo-clone { display: none !important; }
}
@media only screen and (max-width: 999px) {
  .press-logos { overflow: hidden !important; padding-top: 34px !important; padding-bottom: 34px !important; }
  .press-logos > .col.span_12 {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    width: max-content !important;
    max-width: none !important;
    margin: 0 !important;
    animation: jc-press-scroll 26s linear infinite;
  }
  .press-logos:hover > .col.span_12 { animation-play-state: paused; }
  .press-logos > .col.span_12 > .wpb_column {
    flex: 0 0 auto;
    float: none !important;
    width: 150px !important;
    margin: 0 24px !important;
    padding: 0 !important;
  }
  .press-logos .img-with-aniamtion-wrap,
  .press-logos .img-with-aniamtion-wrap .inner { margin: 0 !important; width: 100%; }
  .press-logos img.img-with-animation {
    width: 100% !important;
    height: 60px !important;
    object-fit: contain;
    margin: 0 !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
@media only screen and (max-width: 999px) and (prefers-reduced-motion: reduce) {
  .press-logos { overflow-x: auto !important; }
  .press-logos > .col.span_12 { animation: none; }
  .press-logo-clone { display: none !important; }
}
@keyframes jc-press-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Mailing-list panel over the bar photo: show the photo, then the form on a soft shade */
@media only screen and (max-width: 690px) {
  #about > .col > .wpb_column[data-using-bg="true"] {
    position: relative;
    background-size: cover !important;
    background-position: 62% 20% !important;
  }
  #about > .col > .wpb_column[data-using-bg="true"]:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.72) 68%);
  }
  #about > .col > .wpb_column[data-using-bg="true"] > .vc_column-inner { position: relative; z-index: 1; }
  #about > .col > .wpb_column[data-using-bg="true"] .padding-10-percent { padding: 260px 24px 44px !important; }
  #about > .col > .wpb_column[data-using-bg="true"] h2 {
    font-size: 27px !important;
    line-height: 33px !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  }
  #about > .col > .wpb_column:not([data-using-bg]) { padding-top: 50px !important; padding-bottom: 40px !important; }
  #mc_embed_signup_scroll { flex-direction: column; }
  body #mc_embed_signup #mcbuttontop,
  body .mc4wp-form input[type="submit"],
  body .wpcf7-form .wpcf7-submit { width: 100%; }
  .mc-form-custom .fld { margin-bottom: 10px; }
  .gw-form .wpcf7-list-item { flex-basis: 100%; }
}

/* ------------------------------------------------------------------ Home page headings */
/* The home page now has a single H1 ("About Joe"); the section headings that used to be
   H1s are H2s. These keep both at exactly the sizes the theme gave them before. */
.about-h1 { font-size: 34px !important; }
.section-h1 { font-size: 54px !important; line-height: 62px !important; }
@media only screen and (max-width: 1300px) {
  .about-h1 { font-size: 28.9px !important; }
  .section-h1 { font-size: 40.5px !important; line-height: 45px !important; }
}
@media only screen and (max-width: 1000px) {
  .about-h1 { font-size: 27.2px !important; }
  .section-h1 { font-size: 37.8px !important; line-height: 42px !important; }
}
@media only screen and (max-width: 690px) {
  .about-h1 { font-size: 25.5px !important; }
  .section-h1 { font-size: 35.1px !important; line-height: 39px !important; }
}
