/*
Theme Name: Richmond Financial Group Theme
Theme URI: https://theideahub.lk/
Author: Dulakshi
Author URI: https://theideahub.lk/
Description: A custom theme for Richmond Financial Group
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: richmond-financial-group-theme
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;
  }
}

/* Navigation Close Button */
.wp-block-navigation__responsive-container-close {
  top: 20px;
}

/* Mobile Menu Background */
#modal-1 {
  background-color: var(--wp--preset--color--custom-primary) !important;
}

/* Base Style for All Menu Links */
header #modal-1 .wp-block-navigation__container .wp-block-navigation-item__content,
header .wp-block-navigation__container .wp-block-navigation-item__content {
  padding: 0.6rem 1rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

/* Hover & Active Desktop menu */
header .wp-block-navigation__container .wp-block-navigation-item__content:hover,
header .wp-block-navigation__container .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content {
  background: var(--wp--preset--color--custom-secondary);
  color: var(--wp--preset--color--custom-primary);
}

/* Hover & Active mobile menu */
header #modal-1 .wp-block-navigation__container .wp-block-navigation-item__content:hover,
header #modal-1 .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content {
  background: var(--wp--preset--color--custom-secondary);
  color: var(--wp--preset--color--custom-primary);
}

/*  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: 1050px) {
  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-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;
} */

.icon-button .wp-block-button__link.wp-element-button {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 5px 5px 5px 24px !important;
}

.wp-block-button__link.wp-element-button {
  padding: 12px 24px !important;
}

.wp-block-button.is-style-fill a:hover {
  background: #fff !important;
  color: var(--wp--preset--color--custom-off-black) !important;
}

footer .wp-block-button.is-style-fill a:hover,
footer .wp-block-button__link.wp-element-button:hover {
  background: transparent !important;
  color: #fff !important;
}

.wp-block-button__link.wp-element-button:hover {
  background: #fff !important;
  color: var(--wp--preset--color--custom-primary) !important;
}

.blue-hover-btn .wp-block-button__link.wp-element-button:hover {
  background: var(--wp--preset--color--custom-primary) !important;
  color: var(--wp--preset--color--custom-secondary) !important;
}

.wp-block-separator {
  opacity: 0.37;
}

:where(.wp-site-blocks)>* {
  margin-block-start: 0;
}

@media (max-width: 1050px) {
  footer ul.wp-block-social-links {
    margin-top: 30px !important;
    justify-content: center;
  }
}

/* Yoast Breadcrumb */
.yoast-breadcrumbs a,
.yoast-breadcrumbs span {
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
}

.yoast-breadcrumbs a:hover {
  color: var(--wp--preset--color--custom-secondary);
}

/* Contact form 7*/
/* Form container */
.wpcf7 {
    width: 100%;
}

/* Form fields */
.wpcf7-form-control {
    width: 100%;
    background-color: var(--wp--preset--color--custom-light-gray);
    border-radius: 5px;
    border: none;
    padding: 12px 15px;
    color: var(--wp--preset--color--custom-text);
    margin-bottom: 15px;
    box-sizing: border-box;
    font-size: 1rem;
}

/* Placeholder text */
.wpcf7-form-control::placeholder {
    color: rgb(198, 198, 198);
    opacity: 1;
}

/* Textarea */
.wpcf7-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Submit button */
.wpcf7-submit {
    display: block;
    width: fit-content;
    margin: 5px auto;
    padding: 10px 54px;
    background-color: var(--wp--preset--color--custom-secondary);
    color: var(--wp--preset--color--custom-primary);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

/* Focus state */
.wpcf7-form-control:focus {
    outline: none;
}

/* Validation */
.wpcf7-not-valid-tip {
    color: #ff6b6b;
    font-size: 0.875em;
    margin-top: -10px;
    margin-bottom: 15px;
}

.wpcf7 .ajax-loader {
    display: none;
}

.wpcf7 form.sent .wpcf7-response-output{
  border: none;
}
