/*
Theme Name: Squire A.J.
Theme URI: https://www.towncrier.events
Author: PhotoVisions
Description: A regal, ceremonial block theme made for Squire A.J. The Town Crier. Everything is editable in the Site Editor: colours, fonts, header, footer and page layouts.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: squire-aj
*/

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* No gap between the header, the page and the footer. */
.wp-site-blocks > header.wp-block-template-part,
.wp-site-blocks > main,
.wp-site-blocks > footer.wp-block-template-part {
	margin-block-start: 0;
}

/* ---------- Header ---------- */

.sqaj-header {
	border-bottom: 4px double var(--wp--preset--color--gold);
}

.sqaj-header .wp-block-site-title a,
.sqaj-header .wp-block-navigation a {
	color: inherit;
}

.sqaj-header .wp-block-navigation .wp-block-navigation-item__content {
	padding: 0.25rem 0;
	border-bottom: 2px solid transparent;
}

.sqaj-header .wp-block-navigation .wp-block-navigation-item__content:hover,
.sqaj-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content {
	border-bottom-color: var(--wp--preset--color--bright-gold);
	color: var(--wp--preset--color--bright-gold);
}

.sqaj-topbar a {
	color: inherit;
	text-decoration: none;
}

.sqaj-topbar a:hover {
	color: var(--wp--preset--color--bright-gold);
}

/* The mobile menu overlay takes the header colours. */
.wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--parchment);
}

/* ---------- Hero ---------- */

.sqaj-hero {
	background-image: radial-gradient(ellipse at 72% 38%, #1b3160 0%, #0b1b3a 55%, #060f24 100%);
	border-bottom: 4px double var(--wp--preset--color--gold);
	overflow: hidden;
}

.sqaj-hero .wp-block-image {
	margin-bottom: 0;
}

.sqaj-hero .wp-block-image img {
	display: block;
	max-height: 640px;
	width: auto;
	margin-inline: auto;
	filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
}

.sqaj-hero em {
	color: var(--wp--preset--color--bright-gold);
}

/* ---------- Block styles ---------- */

/* Group: Gold frame */
.wp-block-group.is-style-gold-frame {
	border: 2px solid var(--wp--preset--color--gold);
	outline: 1px solid var(--wp--preset--color--gold);
	outline-offset: -8px;
	border-radius: 6px;
	padding: 2rem 1.75rem;
}

/* Group: Parchment card */
.wp-block-group.is-style-parchment-card {
	background-color: var(--wp--preset--color--parchment);
	border: 1px solid var(--wp--preset--color--gold);
	border-top: 5px solid var(--wp--preset--color--crimson);
	border-radius: 4px;
	padding: 1.6rem 1.4rem;
	box-shadow: 0 6px 18px rgba(11, 27, 58, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wp-block-group.is-style-parchment-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 26px rgba(11, 27, 58, 0.16);
}

.wp-block-group.is-style-parchment-card > :first-child {
	margin-top: 0;
}

/* Separator: Flourish (a line, a diamond, a line) */
.wp-block-separator.is-style-flourish {
	position: relative;
	overflow: visible;
	border: none !important;
	height: 1rem;
	width: min(22rem, 70%);
	max-width: none;
	margin-left: auto;
	margin-right: auto;
	opacity: 1;
	color: var(--wp--preset--color--gold);
	background-color: transparent !important;
	background-image:
		linear-gradient(currentColor, currentColor),
		linear-gradient(currentColor, currentColor);
	background-repeat: no-repeat;
	background-size: calc(50% - 1.1rem) 1px;
	background-position: left center, right center;
}

.wp-block-separator.is-style-flourish::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 0.6rem;
	height: 0.6rem;
	background: currentColor;
	transform: translate(-50%, -50%) rotate(45deg);
}

/* Image: Gilt frame */
.wp-block-image.is-style-gilt-frame img {
	border: 6px solid var(--wp--preset--color--cream);
	outline: 2px solid var(--wp--preset--color--gold);
	box-shadow: 0 14px 30px rgba(11, 27, 58, 0.25);
	border-radius: 2px;
}

/* Button: outline, tuned for dark backgrounds */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background-color: transparent;
	color: inherit;
	border-color: currentColor;
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--bright-gold);
	border-color: var(--wp--preset--color--bright-gold);
	color: var(--wp--preset--color--navy);
}

/* ---------- Little touches ---------- */

.sqaj-phone a {
	color: inherit;
	text-decoration: none;
}

.sqaj-phone a:hover {
	text-decoration: underline;
}

.sqaj-on-dark a:not(.wp-block-button__link) {
	color: var(--wp--preset--color--bright-gold);
}

.sqaj-steps {
	counter-reset: sqaj-step;
}

.sqaj-steps > .wp-block-column {
	counter-increment: sqaj-step;
}

.sqaj-steps > .wp-block-column > h3::before {
	content: counter(sqaj-step);
	display: inline-grid;
	place-items: center;
	width: 2.2rem;
	height: 2.2rem;
	margin-right: 0.6rem;
	border-radius: 50%;
	background: var(--wp--preset--color--crimson);
	color: var(--wp--preset--color--cream);
	font-size: 1.1rem;
	vertical-align: middle;
}

.sqaj-footer {
	border-top: 4px double var(--wp--preset--color--gold);
}

.sqaj-footer a {
	color: inherit;
}

.sqaj-footer a:hover {
	color: var(--wp--preset--color--bright-gold);
}

/* ---------- Contact form (Contact Form 7) ---------- */

.wpcf7 form p {
	margin: 0 0 1.1rem;
}

.wpcf7 label {
	display: block;
	font-weight: 600;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="date"],
.wpcf7 select,
.wpcf7 textarea {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin-top: 0.3rem;
	padding: 0.7rem 0.8rem;
	font: inherit;
	font-weight: 400;
	color: var(--wp--preset--color--navy);
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--gold);
	border-radius: 4px;
}

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
	outline: 2px solid var(--wp--preset--color--crimson);
	outline-offset: 1px;
}

.wpcf7 textarea {
	min-height: 7rem;
	height: 9rem;
}

.wpcf7 input[type="submit"] {
	cursor: pointer;
}

.wpcf7 .wpcf7-not-valid-tip {
	color: var(--wp--preset--color--crimson);
	font-size: 0.9rem;
	font-weight: 400;
}

.wpcf7 form .wpcf7-response-output {
	margin: 1rem 0 0;
	padding: 0.8rem 1rem;
	border-radius: 4px;
	border-width: 2px;
}

/* ---------- Small screens ---------- */

@media (max-width: 781px) {
	.sqaj-hero .wp-block-image img {
		max-height: 420px;
	}

	.sqaj-topbar .sqaj-topbar-area {
		display: none;
	}
}
