/*
Theme Name: Ayling-Frost
Theme URI: https://frostwp.com/
Author: WP Engine
Author URI: https://wpengine.com/
Description: With its clean, minimal design and powerful feature set, Frost enables agencies to build stylish and sophisticated WordPress websites. Frost is a masterpiece of design and functionality. It features a range of valuable patterns, including hero and portfolio sections, prominent call-to-action buttons, and customer testimonials. Whether you're building a website for your business, personal brand, or creative project, Frost is perfect for anyone looking to launch quickly and efficiently.
Tags: block-patterns, block-styles, custom-colors, custom-logo, custom-menu, editor-style, full-site-editing, one-column, template-editing, threaded-comments, translation-ready, wide-blocks
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 8.2
Version: 1.1
Changelog Version: 1.0.5
 * (Version = Frost upstream; Changelog Version = this theme's semver, see CHANGELOG.md)
License: GNU General Public License v3
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: frost
*/

/* -------------------------------------------------------------------------
	Theme root variables (from theme.json + WooCommerce)
	Override or extend design tokens here. theme.json generates these;
	this block documents and allows overrides.
	------------------------------------------------------------------------- */

:root {

	/* Colors (palette) */
	--wp--preset--color--base: hsl(0, 0%, 100%);
	--wp--preset--color--contrast: hsl(0, 0%, 0%);
	--wp--preset--color--primary: hsl(0, 100%, 40%);
	--wp--preset--color--secondary: hsl(0, 0%, 32%);
	--wp--preset--color--neutral: hsl(0, 0%, 93%);

	/* Duotone: WP generates url(#wp-duotone-*) from theme.json – black-and-white, primary-and-white, secondary-and-white */

	/* Gradients */
	--wp--preset--gradient--primary-contrast: linear-gradient(295deg, hsl(0, 0%, 93%) 0%, hsl(0, 0%, 70%) 100%);

	/* Spacing */
	--wp--preset--spacing--x-small: 1.25rem;
	--wp--preset--spacing--small: clamp(1.875rem, 4vw, 2.5rem);
	--wp--preset--spacing--medium: clamp(2.5rem, 6vw, 3.125rem);
	--wp--preset--spacing--large: clamp(3.125rem, 8vw, 5rem);
	--wp--preset--spacing--x-large: clamp(3.75rem, 10vw, 6.25rem);
	--wp--preset--spacing--20: 1.25rem;

	/* Typography – font families */
	--wp--preset--font-family--rubik: "Rubik", sans-serif;
	--wp--preset--font-family--primary: var(--wp--preset--font-family--rubik);

	/* Typography – font sizes */
	--wp--preset--font-size--x-small: 1rem;
	--wp--preset--font-size--small: 0.875rem;
	--wp--preset--font-size--medium: clamp(1.125rem, 0.7rem + 0.5vw, 1.25rem);
	--wp--preset--font-size--large: clamp(1.25rem, 1.3rem, 1.5rem);
	--wp--preset--font-size--x-large: clamp(1.5rem, 2rem, 1.875rem);
	--wp--preset--font-size--max-36: clamp(1.875rem, 2.5rem, 2.25rem);
	--wp--preset--font-size--max-48: clamp(2.25rem, 3rem, 3rem);
	--wp--preset--font-size--max-60: clamp(2.625rem, 3.75rem, 3.75rem);
	--wp--preset--font-size--max-72: clamp(3rem, 4.5rem, 4.5rem);

	/* Typography – custom */
	--wp--custom--line-height--body: 1.75;
	--wp--custom--line-height--heading: 1.1;
	--wp--custom--line-height--medium: 1.5;
	--wp--custom--line-height--one: 1;

	--wp--custom--font-weight--thin: 100;
	--wp--custom--font-weight--extra-light: 200;
	--wp--custom--font-weight--light: 300;
	--wp--custom--font-weight--regular: 400;
	--wp--custom--font-weight--medium: 500;
	--wp--custom--font-weight--semi-bold: 600;
	--wp--custom--font-weight--bold: 700;
	--wp--custom--font-weight--extra-bold: 800;
	--wp--custom--font-weight--black: 900;

	/* Spacing – custom */
	--wp--custom--spacing--gap: 1.875rem;

	/* Layout */
	--wp--style--global--content-size: 62.5rem;
	--wp--style--global--wide-size: 87.5rem;

	/* Shadows */
	--wp--preset--shadow--light: 0 0.125rem 0.3125rem 0.125rem hsl(0, 0%, 94%);
	--wp--preset--shadow--solid: 0.3125rem 0.3125rem 0 hsl(0, 0%, 4%);

	/* WooCommerce (block theme integration) */
	--woocommerce: var(--wp--preset--color--primary);
	--wc-primary: var(--wp--preset--color--primary);
	--wc-primary-text: var(--wp--preset--color--base);
	--wc-block-components-add-to-cart-form-padding: 1em 0;
	--wc-block-components-product-badge-font-size: 0.875rem;
	--wc-block-components-product-price-font-size: 1.25rem;
	--wc-block-components-product-rating-font-size: 0.875rem;
	--wc-block-components-form-field-font-size: 1rem;
	--wc-block-components-drawer__content-max-width: 480px;
	--wp--style--global--content-size: 87.5rem;
}

/* Defaults
---------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

a,
button,
.woocommerce .button,
.wp-block-button__link,
.wp-element-button,
input:focus,
input[type="button"],
input[type="submit"],
textarea:focus,
.wp-element-button {
	border-radius: 2.5rem;
	cursor: pointer;
	transition: all 0.2s ease-in-out;
	text-transform: uppercase !important;
}

a,
a:focus,
a:hover,
a:not(.wp-element-button) {
	text-decoration-thickness: 1px;
}

b,
strong,
th {
	font-weight: var(--wp--custom--font-weight--medium);
}

mark {
	font-size: var(--wp--preset--font-size--small);
	font-weight: var(--wp--custom--font-weight--regular);
	padding: 5px 8px;
}

/* -- Forms -- */

input,
select,
textarea {
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--contrast);
	border-radius: 0;
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--primary);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: var(--wp--custom--font-weight--light);
	line-height: var(--wp--custom--line-height--body);
	padding: 10px 20px;
	width: 100%;
}

input:focus,
textarea:focus {
	background-color: var(--wp--preset--color--neutral);
	outline: none;
}

input[type="checkbox"],
input[type="image"],
input[type="radio"] {
	width: auto;
}

input[type="button"],
input[type="email"],
input[type="search"],
input[type="submit"],
input[type="text"],
textarea {
	-webkit-appearance: none;
}

::placeholder {
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
	opacity: 0.5;
}

/* Blocks
---------------------------------------- */

/* -- Site header (constrain width; template part may ignore align) -- */

/* Mobile */


.site-header {
	background-color: white;

	.wc-blocks-pattern-header-large {
		max-width: var(--wp--style--global--wide-size, 1500px);
		margin-left: auto;
		margin-right: auto;

		.brand-name {
			white-space: normal;
	}
}

/* -- Navigation -- */
.wp-block-navigation__responsive-container-close,
.wp-block-navigation__responsive-container-open {
	border: 1px solid currentColor;
	border-radius: 0.5rem;
	padding: 0.75rem;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: var(--wp--custom--spacing--gap);
}

.has-background .wp-block-navigation__responsive-container-open:focus,
.has-background .wp-block-navigation__responsive-container-open:hover {
	color: var(--wp--preset--color--base);
}

/* -- Navigation: trigger mobile (hamburger) below 1200px; desktop from 1200px up -- */

@media (max-width: 1299px) {
	.wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex !important;
		padding: 2rem;
	}
	.wp-block-navigation .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none !important;
	}
		#modal-1-content  {
		padding: 2rem !important;
	}
}

@media (min-width: 1300px) {
	.wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: none !important;
	}
	.wp-block-navigation .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: block !important;
	}
}

/* -- Navigation Submenu -- */

.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container {
	background-color: var(--wp--preset--color--contrast);
	border: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	padding: 10px;
}

.wp-block-navigation :where(.wp-block-navigation__submenu-container) a {
	padding: 2px 10px;
}

/* Utility
---------------------------------------- */

/* -- Box Shadow -- */

.is-style-shadow-light {
	box-shadow: var(--wp--preset--shadow--light);
}

.is-style-shadow-solid {
	box-shadow: var(--wp--preset--shadow--solid);
}

/* Media Queries
---------------------------------------- */

@media (max-width: 420px) {
		.site-header {
			.wp-block-site-title :where(a)  {
				font-size: 1rem !important;
			}
		}
	}

@media only screen and (max-width: 600px) {

	/* -- Utility -- */

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

}

@media only screen and (max-width: 782px) {

	/* -- Columns -- */

	.is-style-columns-reverse {
		flex-direction: column-reverse;
	}

}
