/*
Theme Name: Rayus
Theme URI:
Author: Phase2
Author URI:
Description:
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rayus
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/* ========================================
   GRAVITY FORMS CUSTOM STYLES
   ======================================== */

.wp-block-group .gform-theme--api,
.wp-block-group .gform-theme--foundation {
	--gf-form-gap-x: 24px;
    --gf-form-gap-y: 24px;
}

.wp-block-group .gform-theme--api, .wp-block-group .gform-theme--framework {
	--gf-ctrl-shadow: none;
	--gf-ctrl-radius: 50px;
	--gf-ctrl-textarea-radius: 50px;
	--gf-ctrl-padding-x: 24px;
    --gf-ctrl-padding-y: 16px;
	--gf-ctrl-line-height: 1.4;
	--gf-field-gap-x: 24px;
    --gf-field-gap-y: 24px;
}

.wp-block-group .gform-theme--framework .gform-field-label {
	--gf-local-color: var(--wp--preset--color--navy-blue);
	--gf-local-font-size: var(--wp--preset--font-size--medium);
	padding-left: 16px;
	gap: 0;
}

.wp-block-group .gform-theme--foundation .gfield textarea {
	padding: 24px;
	border-width: 2px;
}

.wp-block-group .gform-theme--framework textarea:focus,
.wp-block-group .gform-theme--framework input[type]:focus,
.wp-block-group .gform-theme--framework textarea:hover,
.wp-block-group .gform-theme--framework input[type]:hover {
    --gf-local-border-color: var(--wp--preset--color--lavender);
	outline: none;
	border-width: 2px;
	--gf-ctrl-shadow: 6px 8px 10px 0px #00000021;
	backdrop-filter: blur(32px);
}

.wp-block-group .gform-theme--framework input[type] {
	height: auto;
	border-width: 2px;
}

.wp-block-group .gfield_required:not(.gfield_required_text)::before {
	content: '*';
	font-size: 1rem;
}

.wp-block-group .gfield_required.gfield_required_text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal;
}

.wp-block-group .gform-theme.gform-theme--framework.gform_wrapper input:is([type=submit],[type=button],[type=reset]).button,
.wp-block-group .gform-theme.gform-theme--framework.gform_wrapper input:is([type=submit],[type=button],[type=reset]),
.wp-block-group .gform-theme.gform-theme--framework.gform_wrapper input[type=submit].button.gform_button {
	background-color: var(--wp--preset--color--purple-primary);
    border-radius: 50px;
    border-width: 0;
    color: var(--wp--preset--color--white);
    text-align: center;
    font-size: var(--wp--preset--font-size--medium);
    font-weight: 500;
    line-height: inherit;
    padding: 10px 32px;
    text-decoration: none;
	transition: all 0.3s ease;
}

.wp-block-group .gform-theme.gform-theme--framework.gform_wrapper input:is([type=submit],[type=button],[type=reset]).button:focus,
.wp-block-group .gform-theme.gform-theme--framework.gform_wrapper input:is([type=submit],[type=button],[type=reset]):focus,
.wp-block-group .gform-theme.gform-theme--framework.gform_wrapper input[type=submit].button.gform_button:focus {
	background-color: var(--wp--preset--color--lavender);
    color: var(--wp--preset--color--navy-blue);
    outline-color: var(--wp--preset--color--lavender);
    outline-offset: 2px;
    outline-width: 2px;
	cursor: pointer;
}

.wp-block-group .gform-theme.gform-theme--framework.gform_wrapper input:is([type=submit],[type=button],[type=reset]).button:hover,
.wp-block-group .gform-theme.gform-theme--framework.gform_wrapper input:is([type=submit],[type=button],[type=reset]):hover,
.wp-block-group .gform-theme.gform-theme--framework.gform_wrapper input[type=submit].button.gform_button:hover {
	background-color: var(--wp--preset--color--lavender);
    color: var(--wp--preset--color--navy-blue);
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}
