/*
Theme Name: Adventures Our Way Blog
Theme URI: https://adventuresourway.co.uk/
Author: Andrey
Description: Lightweight block theme for the Adventures Our Way family travel blog. No page builder required.
Version: 1.0.6
Requires at least: 6.6
Tested up to: 6.9
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: aow-theme
*/

/* Header: keep logo and menu on one line, menu links with accent underline on hover */
.aow-header .wp-block-navigation a {
	text-decoration: none;
	transition: color 0.2s ease;
}

.aow-header .wp-block-navigation a:hover,
.aow-header .wp-block-navigation .current-menu-item > a {
	color: var(--wp--preset--color--secondary);
}

/* Mobile overlay menu: larger tap targets */
.aow-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	font-size: var(--wp--preset--font-size--large);
}

/* Mobile overlay menu: align items to the left instead of inheriting desktop right alignment */
.aow-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	--navigation-layout-justification-setting: flex-start;
	--navigation-layout-justify: flex-start;
	align-items: flex-start;
}

.aow-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: flex-start;
}

/* Footer links */
.aow-footer a {
	color: var(--wp--preset--color--contrast);
	font-weight: 700;
	text-decoration: none;
}

.aow-footer a:hover {
	color: var(--wp--preset--color--secondary);
}

.aow-footer__brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--wp--preset--spacing--30);
}

.aow-footer__contact p {
	margin: 0;
}

.aow-footer__contact a {
	font-weight: 400;
}

.aow-footer .wp-block-heading {
	margin-bottom: var(--wp--preset--spacing--40);
}

.aow-footer__bottom {
	border-top-color: rgba(18, 61, 88, 0.15) !important;
}

.aow-footer__bottom p {
	margin: 0;
}

/* Mobile footer: center everything to match the centered logo */
@media (max-width: 781px) {
	.aow-footer .wp-block-column {
		text-align: center;
	}

	.aow-footer__contact {
		justify-content: center;
	}

	.aow-footer__contact .wp-block-group {
		align-items: flex-start;
		text-align: left;
	}
}

/* Front page hero: keep title readable on bright photos */
.aow-hero .wp-block-post-title {
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

/* Mobile menu (burger) button */
.aow-header .wp-block-navigation__responsive-container-open svg {
	width: 32px;
	height: 32px;
	fill: var(--wp--preset--color--primary);
}

/* Post cards (Query Loop grids) */
.aow-card {
	height: 100%;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(18, 61, 88, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.aow-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(18, 61, 88, 0.14);
}

.aow-card .wp-block-post-featured-image {
	margin: 0;
}

.aow-card .wp-block-post-title a {
	text-decoration: none;
}

.aow-card .wp-block-post-terms a,
.wp-block-cover .wp-block-post-terms a {
	color: inherit;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.aow-card .wp-block-post-excerpt__excerpt {
	margin: 0;
}

/* Card body fills the card so the date always sits at the bottom */
.aow-card__body {
	flex: 1 1 auto;
	align-self: stretch;
}

.aow-card .wp-block-post-date {
	margin-top: auto !important;
	padding-top: 0.25rem;
}

/* Front page intro */
.aow-intro p {
	font-size: var(--wp--preset--font-size--large);
}

/* Single post: meta line in hero */
.aow-post-meta > * + *::before {
	content: "•";
	margin-right: var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--accent);
}

.aow-post-meta .wp-block-post-author-name a {
	color: inherit;
}

.aow-post-content img {
	border-radius: 12px;
}

.aow-post-nav a {
	text-decoration: none;
	font-weight: 700;
}

/* Sidebar cards */
.aow-sidebar__card {
	border-radius: 16px;
	padding: var(--wp--preset--spacing--40);
}

.aow-sidebar__card .wp-block-heading {
	margin-top: 0;
	margin-bottom: var(--wp--preset--spacing--30);
}

.aow-categories {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.aow-categories li {
	position: relative;
	padding-left: 1.4rem;
}

.aow-categories li + li {
	margin-top: 0.5rem;
}

.aow-categories li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.45em;
	width: 0.7rem;
	height: 0.7rem;
	border-radius: 50%;
	border: 3px solid var(--wp--preset--color--secondary);
}

.aow-categories li:hover::before {
	background: var(--wp--preset--color--secondary);
}

.aow-categories a:hover {
	color: var(--wp--preset--color--secondary);
}

.aow-categories a {
	color: var(--wp--preset--color--contrast);
	transition: color 0.2s ease;
	text-decoration: none;
}

.aow-recent {
	padding-left: 0;
	margin: 0;
}

.aow-recent li {
	overflow: hidden;
}

.aow-recent li + li {
	margin-top: 1rem;
}

.aow-recent .wp-block-latest-posts__featured-image img {
	border-radius: 8px;
	object-fit: cover;
}

.aow-recent a {
	font-weight: 700;
	text-decoration: none;
}

/* Search: rounded input with yellow button */
.wp-block-search__inside-wrapper {
	border-radius: 999px;
	background: var(--wp--preset--color--white);
	padding: 4px;
	border-color: var(--wp--preset--color--cream);
}

.wp-block-search__input {
	border: 0;
	padding-left: 1rem;
	background: transparent;
}

.wp-block-search__button {
	border-radius: 999px;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--primary);
	border: 0;
}

/* Footer lists (Quick Links + Categories): same spacing for both */
.aow-footer .aow-footer__list,
.aow-footer .wp-block-categories {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.aow-footer .aow-footer__list li,
.aow-footer .wp-block-categories li {
	margin: 0;
	line-height: 1.4;
}

.aow-footer .aow-footer__list li + li,
.aow-footer .wp-block-categories li + li {
	margin-top: 0.85rem;
}

/* Jetpack contact form */
.wp-block-jetpack-contact-form input[type="text"],
.wp-block-jetpack-contact-form input[type="email"],
.wp-block-jetpack-contact-form textarea {
	width: 100%;
	border: 2px solid var(--wp--preset--color--cream);
	border-radius: 12px;
	background: var(--wp--preset--color--white);
	padding: 0.75rem 1rem;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--medium);
}

.wp-block-jetpack-contact-form input:focus,
.wp-block-jetpack-contact-form textarea:focus {
	border-color: var(--wp--preset--color--secondary);
	outline: none;
}

.wp-block-jetpack-contact-form label {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	color: var(--wp--preset--color--primary);
}

.wp-block-jetpack-contact-form button,
.wp-block-jetpack-contact-form .wp-block-button__link,
.jetpack-contact-form-container button[type="submit"],
form.contact-form button[type="submit"] {
	width: auto;
	min-width: 200px;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--primary);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--medium);
	padding: 0.75rem 2rem;
	cursor: pointer;
}

.wp-block-jetpack-contact-form button:hover,
.wp-block-jetpack-contact-form .wp-block-button__link:hover,
.jetpack-contact-form-container button[type="submit"]:hover,
form.contact-form button[type="submit"]:hover {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
}

/* Visible keyboard focus for accessibility */
:where(a, button, input, textarea, select):focus-visible {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

/* Keep footer at the bottom on short pages */
.wp-site-blocks {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.wp-site-blocks > main,
.wp-site-blocks > .wp-block-group:has(> main),
.wp-site-blocks > main.wp-block-group {
	flex: 1 0 auto;
}
