/*
Theme Name: Agency Base
Theme URI: https://weaverweb.co.za
Author: Weaver
Description: Starter block theme for South African small business websites. Business details come from Settings → Business details, so the phone number, address and hours stay the same everywhere on the site. Pick a style for the industry under Appearance → Editor → Styles.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 8.1
Version: 1.1.0
License: GPL-2.0-or-later
Text Domain: agency-base
*/

/* Most styling lives in theme.json. These rules cover what theme.json can't. */

.wp-site-blocks {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.wp-site-blocks > footer {
	margin-top: auto;
}

:where(figure.wp-block-image) {
	margin-inline: 0;
}

:where(.wp-block-image img, .wp-block-image svg) {
	border-radius: var(--wp--custom--radius);
}

.is-style-agency-card {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius);
	padding: var(--wp--preset--spacing--40);
}

.agency-placeholder-note {
	border-left: 3px solid var(--wp--preset--color--accent);
	padding-left: 0.75rem;
}

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

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

.wp-block-table td:last-child {
	text-align: right;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.wp-block-details summary {
	cursor: pointer;
	font-weight: 600;
}

/* Contact form from the Agency Essentials plugin */
.agency-form,
.agency-form * {
	box-sizing: border-box;
}

.agency-form {
	display: grid;
	gap: var(--wp--preset--spacing--20);
	max-width: 36rem;
}

.agency-form label {
	display: grid;
	gap: 0.35rem;
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
}

.agency-form input[type="text"],
.agency-form input[type="email"],
.agency-form input[type="tel"],
.agency-form textarea {
	font: inherit;
	font-weight: 400;
	padding: 0.7rem 0.8rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	width: 100%;
}

.agency-form input:focus-visible,
.agency-form textarea:focus-visible,
.agency-form button:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

.agency-form .agency-consent {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
	font-weight: 400;
}

.agency-form .agency-consent input {
	margin-top: 0.3rem;
}

.agency-form .agency-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.agency-form-notice {
	padding: 0.8rem 1rem;
	border-radius: var(--wp--custom--radius);
	background: var(--wp--preset--color--base-2);
	border-left: 4px solid var(--wp--preset--color--accent);
}

/* Smaller call button in the header */
header .wp-block-button__link {
	font-size: var(--wp--preset--font-size--small);
	padding: 0.6rem 1.1rem;
}

/* On phones the floating WhatsApp button does this job, so keep the header on one line */
@media (max-width: 480px) {
	header .wp-block-buttons {
		display: none;
	}
}
