/*
Theme Name: AU Consultancy
Theme URI: https://andrewutt.com
Author: AU Consultancy
Description: A minimal black and white theme for AU Consultancy, with a rotating exhibition slideshow, a services list and a private inquiry form. After activating it, go to Appearance > AU Consultancy setup to create the pages.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: au-consultancy
*/

/* ---------- Header ---------- */
.au-header {
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.au-header .wp-block-site-title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-size: 16px;
	letter-spacing: .16em;
	text-transform: uppercase;
	margin: 0;
}
.au-header .wp-block-site-title a {
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.au-header .wp-block-site-title a::before {
	content: "";
	width: 10px;
	height: 10px;
	background: var(--wp--preset--color--red);
	flex: none;
}
.au-header .wp-block-navigation {
	font-size: 13px;
	letter-spacing: .1em;
	text-transform: uppercase;
	gap: 28px;
}
.au-header .wp-block-navigation a {
	text-decoration: none;
	padding-bottom: 4px;
	border-bottom: 1px solid transparent;
}
.au-header .wp-block-navigation .current-menu-item > a,
.au-header .wp-block-navigation a[aria-current="page"] {
	border-bottom-color: var(--wp--preset--color--gold);
}
.au-header .wp-block-navigation a:hover {
	color: var(--wp--preset--color--grey);
}

/* ---------- Footer ---------- */
.au-footer {
	border-top: 1px solid var(--wp--preset--color--line);
	font-size: 12px;
	letter-spacing: .06em;
	color: var(--wp--preset--color--grey);
}
.au-footer p { margin: 0; }
.au-footer a { text-decoration: none; color: inherit; }
.au-footer a:hover { color: var(--wp--preset--color--black); }

/* ---------- Shared text styles ---------- */
.au-kicker {
	font-size: 12px !important;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--grey);
	margin-bottom: 16px !important;
}
.au-lead {
	font-size: 17px;
	color: var(--wp--preset--color--grey);
	max-width: 36ch;
}
.wp-block-image figcaption.wp-element-caption,
.au-credit {
	font-size: 11px;
	line-height: 1.4;
	color: var(--wp--preset--color--grey);
	margin: 6px 0 0;
	text-align: left;
	letter-spacing: .01em;
}
.wp-block-image img { display: block; }

/* ---------- Page sections ---------- */
.au-section {
	padding-top: clamp(40px, 7vw, 72px);
	padding-bottom: clamp(56px, 9vw, 96px);
}

/* Home */
.au-home { gap: 56px !important; }
.au-home h1 { margin-top: 0; }
.au-home .wp-block-buttons { margin-top: 28px; }

/* Slideshow: a stack of image blocks. Without JavaScript (and in the editor) it is a simple grid. */
.au-slides {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}
.au-slides > .wp-block-image { margin: 0; }
.au-slides > .wp-block-image img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}
.au-slides.is-ready {
	display: block;
	position: relative;
	aspect-ratio: 4 / 3.25;
}
.au-slides.is-ready > .wp-block-image {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	opacity: 0;
	transition: opacity 1.2s ease;
	pointer-events: none;
}
.au-slides.is-ready > .wp-block-image.is-active {
	opacity: 1;
	pointer-events: auto;
}
.au-slides.is-ready > .wp-block-image img {
	flex: 1;
	min-height: 0;
	height: 100%;
	aspect-ratio: auto;
}
.au-dots {
	position: absolute;
	right: 0;
	bottom: -26px;
	display: flex;
	gap: 6px;
}
.au-dots button {
	width: 18px;
	height: 2px;
	border: 0;
	padding: 0;
	background: var(--wp--preset--color--line);
	cursor: pointer;
}
.au-dots button[aria-selected="true"] { background: var(--wp--preset--color--gold); }

/* Services gallery */
.au-gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px 12px;
	margin-top: 40px;
}
.au-gallery > .wp-block-image { margin: 0; }
.au-gallery > .wp-block-image img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* Services list, numbered 01 to 10 */
ol.au-areas {
	list-style: none;
	counter-reset: au-area;
	padding: 0;
	margin: 56px 0 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	column-gap: 48px;
	border-top: 1px solid var(--wp--preset--color--black);
}
ol.au-areas li {
	counter-increment: au-area;
	display: flex;
	gap: 16px;
	align-items: baseline;
	padding: 16px 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
	font-family: var(--wp--preset--font-family--display);
	font-size: 20px;
	font-weight: 500;
}
ol.au-areas li::before {
	content: counter(au-area, decimal-leading-zero);
	font-family: var(--wp--preset--font-family--body);
	font-size: 12px;
	color: var(--wp--preset--color--grey);
	min-width: 22px;
}
.au-more {
	margin-top: 32px !important;
	font-family: var(--wp--preset--font-family--display);
	font-size: 20px;
	font-weight: 500;
}
.au-more a {
	text-decoration: none;
	border-bottom: 1px solid var(--wp--preset--color--gold);
	padding-bottom: 2px;
}

/* About */
.au-about { gap: 72px !important; }
.au-about > .wp-block-column:first-child { position: sticky; top: 24px; }
.au-about-photo img {
	width: 100%;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	object-position: 50% 15%;
}
.au-about > .wp-block-column:last-child { max-width: 660px; }
.au-bio-lead {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(19px, 1.8vw, 23px);
	line-height: 1.35;
	font-weight: 500;
}
.au-bio {
	font-size: 15px;
	color: var(--wp--preset--color--grey);
}
ul.au-facts {
	list-style: none;
	padding: 0;
	margin: 28px 0 0;
	border-top: 1px solid var(--wp--preset--color--line);
}
ul.au-facts li {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
	font-size: 14px;
}
ul.au-facts li strong {
	font-weight: 500;
	color: var(--wp--preset--color--grey);
	text-transform: uppercase;
	letter-spacing: .12em;
	font-size: 11px;
}

/* Inquire */
.au-inquire { gap: 64px !important; }
.au-inquire-photo img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}
.au-form { display: grid; gap: 18px; }
.au-form label {
	font-size: 11px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--grey);
	display: grid;
	gap: 6px;
}
.au-form input,
.au-form textarea {
	font: inherit;
	font-size: 16px;
	letter-spacing: normal;
	text-transform: none;
	color: var(--wp--preset--color--black);
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--black);
	border-radius: 0;
	padding: 8px 0;
}
.au-form input:focus,
.au-form textarea:focus {
	outline: none;
	border-bottom-color: var(--wp--preset--color--gold);
}
.au-form .au-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.au-form button {
	justify-self: start;
	background: var(--wp--preset--color--black);
	color: var(--wp--preset--color--white);
	border: 0;
	padding: 13px 22px;
	font: inherit;
	font-size: 12px;
	letter-spacing: .14em;
	text-transform: uppercase;
	cursor: pointer;
}
.au-form button:hover { background: #333; }
.au-form-status { font-size: 14px; margin: 0; }
.au-form-status.is-error { color: var(--wp--preset--color--red); }

/* ---------- Small screens ---------- */
@media (max-width: 781px) {
	.au-home > .wp-block-column:last-child { order: -1; }
	.au-home { gap: 32px !important; }
	.au-slides.is-ready { aspect-ratio: 10 / 9; }
	.au-gallery { grid-template-columns: 1fr 1fr; }
	ol.au-areas { grid-template-columns: 1fr; }
	.au-about > .wp-block-column:first-child { position: static; max-width: 340px; }
	.au-header .wp-block-navigation { gap: 16px; font-size: 12px; }
}
@media (max-width: 480px) {
	.au-gallery { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.au-slides.is-ready > .wp-block-image { transition: none; }
}
