/*
Theme Name: Exclusive Bridal
Description: A WordPress block theme built with Shader and VX Framework, with block templates and theme.json.
Author: Shader
Author URI: https://vxframework.com
Text Domain: exclusive-bridal
Version: 0.1.0
Requires at least: 7.1
Requires PHP: 8.1
Update URI: false
*/

/*
 * Plumbing only. The look lives in theme.json; this file holds what theme.json
 * can't express. It loads on the site and in the editor, so its rules must hold
 * in both.
 */

/* WordPress puts a block gap between the template's top-level blocks: the
   header part, main and the footer part. Sections own their spacing instead.
   The editor's canvas root is .wp-site-blocks too while it shows a template,
   but there WordPress prints that gap after this file, so :root makes this win. */
:root .wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* With that gap gone, main keeps its distance from the header and footer. A
   template whose main starts or ends with a full-bleed section adds the
   is-flush class to main. */
.wp-site-blocks main {
	padding-block: var(--wp--preset--spacing--50);
}

.wp-site-blocks main.is-flush {
	padding-block: 0;
}

/* Keyboard focus stays visible on every control, and only there: in the
   editor, the text being typed in has focus too. */
:where(a, button, input, select, textarea, summary, [tabindex]:not([contenteditable])):focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* ---------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------ */
.site-header {
	padding-block: var(--wp--preset--spacing--30);
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.site-header > .alignwide {
	gap: var(--wp--preset--spacing--40);
}

.site-header .wp-block-site-title,
.site-header .wp-block-site-tagline {
	margin: 0;
}

.site-header .site-brand {
	gap: 0.4rem;
}

.site-header .wp-block-navigation {
	flex: 1 1 auto;
}

.site-header__actions {
	flex: none;
	gap: var(--wp--preset--spacing--30);
}

.site-header__actions .wp-block-buttons {
	margin: 0;
}

.site-header__cta .wp-element-button {
	padding: 0.8rem 1.25rem;
	white-space: nowrap;
}

/* Below a laptop the menu moves to a row of its own, under the brand and the buttons. */
@media (min-width: 601px) and (max-width: 1240px) {
	.site-header > .alignwide {
		flex-wrap: wrap;
		row-gap: var(--wp--preset--spacing--30);
	}

	.site-header .wp-block-navigation {
		order: 3;
		flex: 1 1 100%;
	}
}

/* On a phone: brand, the two contact icons, the menu button; the booking button lives in the bar at the bottom. */
@media (max-width: 600px) {
	.site-header > .alignwide {
		flex-wrap: nowrap;
		gap: var(--wp--preset--spacing--20);
	}

	.site-header .wp-block-navigation {
		order: 3;
		flex: none;
	}

	.site-header .site-header__actions .site-header__cta {
		display: none;
	}

	.site-header .wp-block-site-title {
		font-size: 1rem;
		letter-spacing: 0.16em;
	}

	.site-header .wp-block-site-tagline {
		font-size: 0.625rem;
		letter-spacing: 0.2em;
	}

	.site-header__actions {
		margin-left: auto;
	}
}

/* ---------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------ */
.site-footer .wp-block-site-title {
	margin: 0;
}

.site-footer .wp-block-site-title a {
	color: inherit;
}

.site-footer__tag {
	margin-block: 0.35rem var(--wp--preset--spacing--30);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.28em;
	text-transform: uppercase;
}

.site-footer .wp-block-navigation {
	font-size: var(--wp--preset--font-size--base);
	letter-spacing: 0;
}

.site-footer .wp-block-navigation a {
	color: inherit;
}

.site-footer .wp-block-navigation a:hover,
.site-footer .wp-block-navigation a:focus-visible,
.site-footer a:hover {
	color: var(--wp--preset--color--paper);
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

.site-footer .is-style-eyebrow {
	margin-bottom: var(--wp--preset--spacing--30);
}

.site-footer .wp-block-exclusive-bridal-contact-actions.is-variant-social .ca-icon-btn {
	border-color: color-mix(in srgb, var(--wp--preset--color--ivory) 35%, transparent);
	color: var(--wp--preset--color--ivory);
}

.site-footer .wp-block-exclusive-bridal-contact-actions.is-variant-social .ca-icon-btn:hover,
.site-footer .wp-block-exclusive-bridal-contact-actions.is-variant-social .ca-icon-btn:focus-visible {
	border-color: var(--wp--preset--color--ivory);
	color: var(--wp--preset--color--paper);
	text-decoration: none;
}

.site-footer__bar {
	margin-top: var(--wp--preset--spacing--60);
	padding-top: var(--wp--preset--spacing--40);
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--ivory) 20%, transparent);
	gap: var(--wp--preset--spacing--20) var(--wp--preset--spacing--50);
}

.site-footer__bar p {
	margin: 0;
}

.site-footer__legal {
	margin-top: var(--wp--preset--spacing--30);
	gap: 0.25rem var(--wp--preset--spacing--40);
	color: var(--wp--preset--color--rose);
}

.site-footer__legal p {
	margin: 0;
}

@media (max-width: 782px) {
	/* Room for the bar of contact buttons fixed to the bottom of the screen. */
	.site-footer {
		padding-bottom: 5rem;
	}
}

/* ---------------------------------------------------------------------------
   Pages
   ------------------------------------------------------------------------ */
.wp-site-blocks > .wp-block-group > header,
.wp-site-blocks > .wp-block-group:has(> header) {
	margin: 0;
}

/* The legal pages (cookie and privacy policies) are long documents: headings get air above them. */
.legal-content :where(h2, h3) {
	margin-top: var(--wp--preset--spacing--50);
}

.legal-content :where(p, ul, ol, details) {
	margin-block-end: 1em;
}

.legal-content details {
	padding: 0.75rem 1rem;
	border: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--paper);
}

.legal-content summary {
	cursor: pointer;
	font-weight: 700;
}

.dress-back {
	margin-block: 0 var(--wp--preset--spacing--30);
}

.dress-back a {
	color: var(--wp--preset--color--ink-soft);
	font-weight: 600;
	text-decoration: none;
}

.dress-back a:hover {
	color: var(--wp--preset--color--mauve);
}

.wp-block-search__inside-wrapper {
	max-width: 32rem;
}
