/*
Theme Name: Dog Friendly SLO
Theme URI: https://dogfriendlyslo.com/
Author: Dog Friendly SLO
Description: Block theme for dogfriendlyslo.com. Central Coast palette, self-hosted fonts, homepage sections and GeoDirectory styling. Edit everything in Appearance > Editor.
Requires at least: 6.6
Tested up to: 7.2
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: dogfriendlyslo
Tags: block-themes, full-site-editing, custom-colors, editor-style, wide-blocks
*/

/* ---------- Small helpers ---------- */

.dfs-eyebrow {
	font-family: var(--wp--preset--font-family--dm-mono);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wp--preset--color--deep-bay);
}

.has-oak-woodland-background-color .dfs-eyebrow,
.has-bishop-peak-background-color .dfs-eyebrow,
.has-estero-blue-background-color .dfs-eyebrow {
	color: var(--wp--preset--color--white);
}

.dfs-lede {
	font-size: 1.1875rem;
	line-height: 1.55;
	max-width: 38rem;
}

.wp-element-button:focus-visible,
a:focus-visible {
	outline: 3px solid var(--wp--preset--color--estero-blue);
	outline-offset: 3px;
}

/* Sections sit flush against each other and the footer. */
.wp-site-blocks > main,
.wp-site-blocks > footer {
	margin-block-start: 0;
}

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

.dfs-header {
	border-bottom: 1px solid #d3dee3;
	position: relative;
	z-index: 20;
}

.dfs-logo {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	text-decoration: none;
	color: var(--wp--preset--color--oak-woodland);
}

.dfs-logo:hover {
	color: var(--wp--preset--color--oak-woodland);
}

.dfs-logo img {
	display: block;
	width: 48px;
	height: 48px;
}

.dfs-logo__text {
	display: flex;
	flex-direction: column;
	line-height: 0.9;
}

.dfs-logo__small {
	white-space: nowrap;
	font-family: var(--wp--preset--font-family--dm-mono);
	font-size: 9.5px;
	letter-spacing: 0.3em;
}

.dfs-logo__big {
	font-family: var(--wp--preset--font-family--bricolage);
	font-size: 31px;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.dfs-header .wp-block-navigation a {
	text-decoration: none;
	color: var(--wp--preset--color--bishop-peak);
}

.dfs-header .wp-block-navigation a:hover {
	color: var(--wp--preset--color--estero-blue);
}

.dfs-header .wp-block-button__link {
	padding: 0.7rem 1.2rem;
	font-size: 0.9375rem;
}

@media (max-width: 600px) {
	.dfs-header .wp-block-buttons {
		display: none;
	}
}

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

.dfs-hero {
	padding-top: var(--wp--preset--spacing--60);
}

.dfs-hero-text h1 {
	max-width: 15ch;
	margin-top: 0.75rem;
}

.dfs-hero-text > * + * {
	margin-top: 1.25rem;
}

.wp-block-image.dfs-hero-art {
	margin-top: 0;
	margin-bottom: 0;
}

.wp-block-image.dfs-hero-art img {
	display: block;
	width: 100%;
	height: clamp(200px, 36vw, 520px);
	object-fit: cover;
	object-position: center bottom;
}

/* ---------- Category cards ---------- */

.dfs-section {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--60);
}

.dfs-card {
	position: relative;
	height: 100%;
	box-sizing: border-box;
	padding: 1.5rem;
	border-radius: 18px;
	background: var(--wp--preset--color--white);
	transition: box-shadow 0.15s ease;
}

.dfs-card:hover,
.dfs-card:focus-within {
	box-shadow: 0 0 0 3px var(--wp--preset--color--spring-hills);
}

.dfs-card .wp-block-image,
.dfs-card .wp-block-image img {
	margin: 0;
	width: 40px;
	height: 40px;
}

.dfs-card h3 {
	margin: 0.25rem 0 0;
	color: var(--wp--preset--color--bishop-peak);
}

.dfs-section .dfs-card h3 a {
	color: var(--wp--preset--color--bishop-peak);
	text-decoration: none;
}

.dfs-section .dfs-card h3 a:hover {
	color: var(--wp--preset--color--estero-blue);
}

.dfs-card h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 18px;
}

.dfs-card h3 a:focus-visible {
	outline: none;
}

.dfs-card p {
	margin: 0;
	font-size: 0.975rem;
	line-height: 1.45;
	color: #3a4a40;
}

.has-oak-woodland-background-color .dfs-card h2,
.has-oak-woodland-background-color h2 {
	color: var(--wp--preset--color--white);
}

.has-oak-woodland-background-color a:not(.wp-element-button) {
	color: var(--wp--preset--color--white);
}

.dfs-card-grid + * {
	margin-top: 0;
}

/* ---------- Hashtag band ---------- */

.dfs-hashtag h2,
.dfs-hashtag p {
	color: var(--wp--preset--color--white);
}

.dfs-hashtag .dfs-tag {
	font-family: var(--wp--preset--font-family--bricolage);
	font-weight: 800;
	font-size: clamp(2rem, 5vw, 3.5rem);
	line-height: 1;
	margin: 0;
}

.dfs-hashtag .wp-block-image img {
	width: min(220px, 60vw);
	height: auto;
}

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

.dfs-footer {
	color: var(--wp--preset--color--marine-layer);
	font-size: 0.975rem;
}

.dfs-footer h2,
.dfs-footer h3 {
	color: var(--wp--preset--color--white);
}

.dfs-footer a:not(.wp-element-button) {
	color: var(--wp--preset--color--white);
}

.dfs-footer a:not(.wp-element-button):hover {
	color: var(--wp--preset--color--spring-hills);
}

.dfs-footer .wp-block-button__link {
	background: var(--wp--preset--color--spring-hills);
	color: var(--wp--preset--color--bishop-peak);
}

.dfs-footer .wp-block-button__link:hover {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--bishop-peak);
}

.dfs-footer-links {
	list-style: none;
	padding-left: 0;
	margin: 0;
	line-height: 2;
}

.dfs-footer .dfs-logo,
.dfs-footer .dfs-logo:hover {
	color: var(--wp--preset--color--white);
}

.dfs-footer .dfs-fine-print {
	font-size: 0.8125rem;
	opacity: 0.85;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	padding-top: 1.25rem;
}

/* ---------- Posts ---------- */

.dfs-post-card .wp-block-post-featured-image img {
	border-radius: 16px;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.dfs-post-card .wp-block-post-title {
	font-size: var(--wp--preset--font-size--large);
	margin-top: 0.75rem;
}

.dfs-facts {
	background: var(--wp--preset--color--white);
	border-radius: 16px;
	padding: 1.25rem 1.5rem;
	list-style: none;
}

.dfs-facts li {
	padding: 0.35rem 0;
	border-bottom: 1px solid #e3eaee;
}

.dfs-facts li:last-child {
	border-bottom: 0;
}

/* ---------- Directory pages (GeoDirectory templates) ---------- */

.dfs-directory h1 {
	margin-bottom: 0.5rem;
}

.dfs-directory .geodir-search-container {
	margin-top: var(--wp--preset--spacing--30);
}

/* Listing details sidebar (address, phone, website, tags) */

.dfs-details-card {
	background: var(--wp--preset--color--white);
	border-radius: 18px;
	padding: 1.5rem;
	position: sticky;
	top: 1.5rem;
}

.dfs-details-card .dfs-details-title {
	font-size: var(--wp--preset--font-size--large);
	margin: 0 0 0.75rem;
}

.dfs-details-card .geodir_post_meta {
	padding: 0.4rem 0;
	border-bottom: 1px solid #e3eaee;
	font-size: 0.975rem;
}

.dfs-details-card .geodir_post_meta:last-child {
	border-bottom: 0;
}

@media (max-width: 781px) {
	.dfs-details-card {
		position: static;
	}
}
