/*
Theme Name: Bailey&Co. Assets
Theme URI: https://bcassets.co.uk
Author: Bailey&Co. Assets Ltd
Author URI: https://bcassets.co.uk
Description: A block theme for Bailey&Co. Assets Ltd — sourcing, funding and delivering fully compliant residential property to Registered Providers on FRI terms.
Requires at least: 6.6
Tested up to: 6.9
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: bcassets
Tags: full-site-editing, block-patterns, one-column, two-columns, custom-colors, custom-menu, editor-style, featured-images, threaded-comments, translation-ready
*/

/*
 * Most styling lives in theme.json. This file covers the handful of
 * components that theme.json cannot express: block styles registered in
 * functions.php, table chrome, the header/footer bars and the contact form.
 */

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

.bca-site-header .wp-block-site-title a {
	color: inherit;
	text-decoration: none;
}

.bca-site-header .wp-block-navigation a {
	text-decoration: none;
}

.bca-site-header .wp-block-navigation a:hover,
.bca-site-header .wp-block-navigation a:focus,
.bca-site-header .wp-block-navigation .current-menu-item a {
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
	text-underline-offset: 0.35em;
}

/* -------------------------------------------------------------------------
 * Footer
 * ---------------------------------------------------------------------- */

.bca-site-footer a {
	color: var(--wp--preset--color--accent-2);
	text-decoration: none;
}

.bca-site-footer a:hover,
.bca-site-footer a:focus {
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

.bca-site-footer .wp-block-navigation {
	justify-content: center;
}

.bca-footer-privacy {
	text-align: center;
	font-size: var(--wp--preset--font-size--small);
}

.bca-footer-privacy p {
	margin: 0;
}

/* -------------------------------------------------------------------------
 * Block style: Card (core/group)
 * ---------------------------------------------------------------------- */

.wp-block-group.is-style-bca-card {
	height: 100%;
	padding: 1.75rem 1.5rem;
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--outline);
	border-top: 4px solid var(--wp--preset--color--primary);
	border-radius: 4px;
}

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

.wp-block-group.is-style-bca-card > :last-child {
	margin-bottom: 0;
}

/* -------------------------------------------------------------------------
 * Block styles: Callouts (core/group)
 * ---------------------------------------------------------------------- */

.wp-block-group[class*="is-style-bca-callout"] {
	padding: 1.5rem 1.75rem;
	border-radius: 4px;
	border-left: 5px solid;
	font-size: var(--wp--preset--font-size--medium);
}

.wp-block-group[class*="is-style-bca-callout"] > :last-child {
	margin-bottom: 0;
}

.wp-block-group.is-style-bca-callout-navy {
	background-color: var(--wp--preset--color--ice);
	border-left-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
}

.wp-block-group.is-style-bca-callout-success {
	background-color: #dcfce7;
	border-left-color: #166534;
	color: #166534;
}

.wp-block-group.is-style-bca-callout-warning {
	background-color: #fffbeb;
	border-left-color: #b45309;
	color: #92400e;
}

.wp-block-group[class*="is-style-bca-callout"] p,
.wp-block-group[class*="is-style-bca-callout"] strong {
	color: inherit;
}

/* -------------------------------------------------------------------------
 * Block style: Numbered step (core/group)
 * ---------------------------------------------------------------------- */

.wp-block-group.is-style-bca-step {
	align-items: flex-start;
	flex-wrap: nowrap;
	gap: var(--wp--preset--spacing--40);
}

/* The step body should take the space the number circle leaves. */
.wp-block-group.is-style-bca-step > .wp-block-group {
	flex: 1 1 auto;
	min-width: 0;
}

.is-style-bca-step-number {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin: 0;
	border-radius: 50%;
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1;
}

@media ( max-width: 599px ) {
	.wp-block-group.is-style-bca-step {
		flex-wrap: wrap;
	}
}

/* -------------------------------------------------------------------------
 * Block style: Chip (core/paragraph) — used for the values list
 * ---------------------------------------------------------------------- */

p.is-style-bca-chip {
	display: inline-block;
	margin: 0;
	padding: 0.5rem 1.125rem;
	border-radius: 20px;
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	line-height: 1.2;
}

/* -------------------------------------------------------------------------
 * Tables
 * ---------------------------------------------------------------------- */

.wp-block-table table {
	border-collapse: collapse;
	width: 100%;
}

.wp-block-table th {
	padding: 0.75rem 1rem;
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	text-align: left;
	font-weight: 700;
	border: 0;
}

.wp-block-table td {
	padding: 0.75rem 1rem;
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--outline);
	vertical-align: top;
}

.wp-block-table tbody tr:nth-child( even ) td {
	background-color: var(--wp--preset--color--base-2);
}

.wp-block-table td strong {
	color: var(--wp--preset--color--primary);
}

/* Tables scroll rather than squash the page on small screens. */
.wp-block-table {
	overflow-x: auto;
}

/* -------------------------------------------------------------------------
 * Contact form
 * ---------------------------------------------------------------------- */

.bca-form__row {
	margin-bottom: 1.125rem;
}

.bca-form label {
	display: block;
	margin-bottom: 0.375rem;
	color: var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
}

.bca-form input[type="text"],
.bca-form input[type="email"],
.bca-form select,
.bca-form textarea {
	width: 100%;
	padding: 0.625rem 0.75rem;
	border: 1px solid var(--wp--preset--color--outline);
	border-radius: 3px;
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
}

.bca-form textarea {
	min-height: 140px;
	resize: vertical;
}

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

.bca-form button {
	width: 100%;
	margin-top: 0.5rem;
	padding: 0.75rem 1.5rem;
	border: 0;
	border-radius: 3px;
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	cursor: pointer;
}

.bca-form button:hover,
.bca-form button:focus {
	background-color: var(--wp--preset--color--primary-2);
}

/* Honeypot — hidden from people, visible to bots. */
.bca-form__hp {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect( 1px, 1px, 1px, 1px );
	white-space: nowrap;
}

.bca-form-notice {
	margin-bottom: 1.5rem;
	padding: 0.875rem 1rem;
	border-left: 5px solid;
	border-radius: 3px;
	font-size: var(--wp--preset--font-size--small);
}

.bca-form-notice.is-success {
	background-color: #dcfce7;
	border-left-color: #166534;
	color: #166534;
}

.bca-form-notice.is-error {
	background-color: #fffbeb;
	border-left-color: #b45309;
	color: #92400e;
}

/* -------------------------------------------------------------------------
 * Utilities
 * ---------------------------------------------------------------------- */

.bca-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-weight: 700;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect( 1px, 1px, 1px, 1px );
	white-space: nowrap;
}

.skip-link:focus {
	position: fixed;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 999999;
	width: auto;
	height: auto;
	clip: auto;
	padding: 0.75rem 1.25rem;
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--primary);
	font-weight: 700;
}
