/*
Theme Name: Starter Block Theme v2
Theme URI: https://jakson.co/
Author: Jakson
Author URI: https://jakson.co/
Description: 
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 7.4
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: starter-block-theme-v2
Tags: Block Editor Patterns, Site Editor

/*  Smoot Scroll */
html {
  scroll-behavior: smooth;
}

footer {
  margin-top: 0;
}

/* FONTS */
h1 {
  font-family: the-seasons, sans-serif;
  font-weight: 700;
  font-style: normal;
}

.h1-brown {
  color: #A98973;
}

/*  Reduced motion prefs  */
@media screen and (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/*  Navigation Block Breakpoint. Credit: https://wpdocs.io/ */
body .wp-block-navigation__responsive-container-open:not(.always-shown) {
  display: block !important;
}

body .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
  display: none !important;
}

/* Change the width to the breakpoit of the Nav */
@media (min-width: 799px) {
  body .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: none !important;
  }

  body .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
    display: block !important;
  }
}

/* end nav break point */

/* Nicley wrapped headlines */
h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

/* I've no idea why when you add a backgroud colour to a column, WP by default adds padding to it... so weird - this get's rid of that */
:where(.wp-block-columns.has-background) {
  padding: initial;
}

/* Pull Quote */
.wp-block-pullquote blockquote {
  display: grid;
  gap: 20px;
}

.wp-block-pullquote cite {
  font-size: 80%;
  font-weight: 600;
}

/* Search Block */
.wp-block-search__input {
  border: 1px solid;
}

.wp-block-search__button {
  box-shadow: none;
  border: 1px solid var(--wp--preset--color--custom-off-black);
  border-radius: 0;
  color: white;
  padding: 0.4rem 1rem 0.5rem 1rem;
  font-weight: 500;
}

/* Comments */
.comment-form-cookies-consent {
  font-size: 14px;
  line-height: 2;
}

/* Keep our titles link the off black color*/
.wp-block-post-title :where(a) {
  color: var(--wp--preset--color--custom-off-black);
}

/* Button hover state  - core button block still does not have this and I can't figure out how to do it in theme.json! */
.wp-block-button__link,
a {
  transition: 0.3s;
}

/*
.wp-block-button.is-style-fill .wp-block-button__link:hover,
#commentform .form-submit.wp-block-button input:hover {
  background: var(--wp--preset--color--custom-white);
  color: var(--wp--preset--color--custom-off-black);
}

.wp-block-button .wp-block-button__link:hover {
  background: var(--wp--preset--color--custom-custom-white);
  color: var(--wp--preset--color--off-black);
  border-color: var(--wp--preset--color--custom-custom-white);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--wp--preset--color--custom-off-black);
  color: var(--wp--preset--color--custom-white);
  border-color: var(--wp--preset--color--custom-off-black);
}
*/

a:hover:not(.wp-block-site-title a, .wp-block-button__link.wp-element-button) {
  text-decoration: underline !important;
}

/* Responsive fixes */
@media only screen and (min-width: 320px) {
  .nav-logo img {
    width: 120px !important;
  }
  .wp-block-button__link,
  a {
    font-size: 1rem;
  }
  .wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column {
    padding-top: 0 !important;
  }
}

@media only screen and (min-width: 420px) {
  .nav-logo img {
    width: 215px !important;
  }
}

#modal-1 {
  color: #64674c;
}

@media only screen and (min-width: 781px) {
  #gform_1 {
    padding: 0 6rem !important;
  }
}

@media only screen and (min-width: 960px) {
  #gform_1 {
    padding: 0 10rem !important;
  }
}

strong {
  font-weight: bold !important;;
}

.gform-theme--foundation input[type=email],
.gform-theme--foundation input[type=submit] {
  font-size: .8em !important;
}

.gform-theme--foundation input[type=email] {
  color: #A98973 !important;
}

.gform-theme--foundation #field_submit input[type=submit][id*=gform_submit_button_].gform-button--width-full {
  background-color: #808b7e;
}

@media (prefers-reduced-motion: no-preference) {
  .owd-fade-in {
    animation: owd-fade-in linear forwards;
    animation-timeline: view();
    animation-range: entry;
  }

  @keyframes owd-fade-in {

    0% {
      opacity: 0;
      transform: translateY(400px)
    }

    50% {
      opacity: 0;
    }

    100% {
      opacity: 1;
      transform: translateY(0px)
    }

  }
}

#gform_confirmation_message_1 {
  text-align: center;
  color: #808b7e;
}



