/*
Theme Name: Cid Torquato
Theme URI: https://jakson.co/
Author: Jakson / Toborino
Author URI: https://jakson.co/ / https://toborino.com
Description: 
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 7.4
Version: 2.0.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cid-torquato
Tags: Block Editor Patterns, Site Editor

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

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

body {
  text-rendering: optimizeLegibility;
  -webkit-font-feature-settings: 'kern' 1;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-kerning: normal;
  font-kerning: normal;
  -ms-font-feature-settings: 'lnum' 1, 'frac' 0, 'liga' 1, 'clig' 1;
  -o-font-feature-settings: 'lnum' 1, 'frac' 0, 'liga' 1, 'clig' 1;
  -webkit-font-feature-settings: 'lnum' 1, 'frac' 0, 'liga' 1, 'clig' 1;
  font-feature-settings: 'lnum' 1, 'frac' 0, 'liga' 1, 'clig' 1;
  position: relative;
  word-wrap: break-word;
}

.editor-visual-editor__post-title-wrapper h1 {
  font-size: var(--wp--preset--font-size--large) !important;
}

a {
  text-underline-offset: 4px;
}

a[rel="noreferrer noopener nofollow"]:after {
  content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAQElEQVR42qXKwQkAIAxDUUdxtO6/RBQkQZvSi8I/pL4BoGw/XPkh4XigPmsUgh0626AjRsgxHTkUThsG2T/sIlzdTsp52kSS1wAAAABJRU5ErkJggg==);
  margin: 0 3px 0 8px;
}

/*  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;
  }
}

footer {
    margin-block-start: 0!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-white);
  color: var(--wp--preset--color--custom-off-black);
  border-color: var(--wp--preset--color--custom-off-black);
}

.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;
}

/* Contact Form 7  */
.wpcf7 form p {
  margin-top: .35rem;
}

.wpcf7 form p:first-of-type {
  margin-top: 0;
}

.wpcf7 form p:last-of-type {
  margin-top: .75rem;
}

.wpcf7-form label {
  text-transform: uppercase;
  font-size: .85rem;
  font-weight: 400;
}

.wpcf7-form-control.wpcf7-text,
.wpcf7-form-control.wpcf7-textarea,
.wpcf7-form-control.wpcf7-file,
.wpcf7-form-control.wpcf7-number.wpcf7-validates-as-number,
.wpcf7-form-control.wpcf7-select {
  border: 1px solid var(--wp--preset--color--custom-grey);
  padding: 10px;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.wpcf7-form-control.wpcf7-submit {
  background-color: var(--wp--preset--color--custom-off-red);
  color: var(--wp--preset--color--custom-white);
  border: 2px solid var(--wp--preset--color--custom-off-red);
  font-size: clamp(.5rem, 2.5vw, 1rem);
  font-family: var(--wp--preset--font-family--poppins);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  padding: calc(0.05em + 2px) calc(1.333em + 2px) calc(0.05em + 2px) !important;
  border-radius: .35rem;
}

.wpcf7-form-control.wpcf7-submit:hover {
  background-color: var(--wp--preset--color--custom-white);
  color: var(--wp--preset--color--custom-off-red);
}

.wpcf7 .wpcf7-list-item {
  margin: 0;
}

.wpcf7 form .wpcf7-response-output {
  font-family: inherit;
  padding: 1rem;
  font-weight: 700;
  text-align: center;
  margin: 2rem 0;
}

.wpcf7-form-control.wpcf7-not-valid {
  border-color: var(--wp--preset--color--custom-off-red);
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
  border-color: var(--wp--preset--color--custom-off-orange);
  background: var(--wp--preset--color--custom-off-orange);
  color: var(--wp--preset--color--custom-white);
}

.wpcf7 form.sent .wpcf7-response-output {
  border-color: var(--wp--preset--color--custom-off-green);
  background: var(--wp--preset--color--custom-off-green);
  color: var(--wp--preset--color--custom-white);
  /* Green */
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
  border-color: var(--wp--preset--color--custom-off-red);
  background: var(--wp--preset--color--custom-off-red);
  color: var(--wp--preset--color--custom-white);
  /* Red */
}

.wpcf7-spinner {
  display: inline-block;
}

/* Funcionalidades */
.is-desktop {
  display: flex !important;
}

.is-mobile {
  display: none !important;
}

@media (max-width: 767px) {
  .is-mobile {
    display: block !important;
  }

  .is-desktop {
    display: none !important;
  }
}

.row {
    display: flex;
    justify-content: space-between;
    gap:1rem;
}

.col {
    width: 100%;
}

.col-6 {
    width: 50%;
}

.sr-only {
position:absolute;
left:-10000px;
top:auto;
width:1px;
height:1px;
overflow:hidden;
}