/*
Theme Name: The Dog Habit (Kadence Child)
Template: kadence
Version: 1.0.0
*/

:root {
	--global-palette1: #C96F4A; /* accent: links, buttons */
	--global-palette2: #B15E3B; /* accent hover */
	--global-palette3: #2B2622; /* headings / dark text */
	--global-palette4: #2B2622;
	--global-palette5: #5C554E; /* muted text */
	--global-palette6: #7A9E7E; /* secondary: categories, tags */
	--global-palette7: #E8DFD3; /* card / section background */
	--global-palette8: #F1EAE0;
	--global-palette9: #FFFFFF; /* button text on accent bg */
}

body {
	background-color: #FAF7F2;
	color: #2B2622;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

h1, h2, h3, h4, h5, h6,
.site-title,
.entry-title,
.tdh-hero-title,
.tdh-section-title,
.tdh-category-name {
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 600;
	color: #2B2622;
}

a {
	color: #C96F4A;
}
a:hover {
	color: #B15E3B;
}

/* Buttons: pill shape, flat, no shadow/gradient */
button,
.button,
.wp-block-button__link,
input[type="submit"],
input[type="button"],
.tdh-pill-button {
	background-color: #C96F4A;
	background-image: none;
	color: #FFFFFF;
	border: none;
	border-radius: 999px;
	box-shadow: none;
	padding: 0.75em 1.75em;
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	text-decoration: none;
	display: inline-block;
	transition: background-color 0.2s ease;
}
button:hover,
.button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
.tdh-pill-button:hover {
	background-color: #B15E3B;
	color: #FFFFFF;
}

*, *::before, *::after {
	box-shadow: none !important;
}

/* Categories / tags */
.entry-taxonomies,
.entry-taxonomies a,
.tdh-hero-cat,
.tdh-category-name {
	color: #7A9E7E;
}
.tdh-hero-cat {
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.8rem;
	font-weight: 600;
	display: inline-block;
	margin-bottom: 0.5rem;
}

/* Text logo: accent-colored dot after site title */
.site-title::after {
	content: ".";
	color: #C96F4A;
}

/* Shared content-width container for every homepage section */
.tdh-hero-inner,
.tdh-newsletter-inner,
.tdh-latest-posts-inner,
.tdh-categories-inner {
	max-width: 1140px;
	margin: 0 auto;
}

/* Hero */
.tdh-hero {
	padding: 5rem 1.5rem;
}
.tdh-hero-inner {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 3.5rem;
	align-items: center;
}
.tdh-hero-empty .tdh-hero-inner {
	grid-template-columns: 1fr;
	text-align: center;
	max-width: 700px;
}
.tdh-hero-media img {
	border-radius: 20px;
	width: 100%;
	height: auto;
	display: block;
}
.tdh-hero-title {
	font-size: 2.6rem;
	line-height: 1.15;
	margin: 0.25rem 0 1.25rem;
}
.tdh-hero-title a {
	color: inherit;
	text-decoration: none;
}
.tdh-hero-excerpt {
	color: #5C554E;
	margin-bottom: 1.75rem;
	line-height: 1.65;
	font-size: 1.05rem;
}

/* Section vertical rhythm (shared by categories / latest-posts / newsletter) */
.tdh-categories,
.tdh-latest-posts {
	padding: 5rem 1.5rem;
}
.tdh-section-title {
	font-size: 1.9rem;
	margin-bottom: 2.5rem;
	text-align: center;
}

/* Shared card look: category cards + post cards */
.tdh-category-grid,
.tdh-post-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.75rem;
	align-items: stretch;
}
.tdh-category-card,
.tdh-post-card {
	background-color: #FFFFFF;
	border: 1px solid #E8DFD3;
	border-radius: 8px;
	text-decoration: none;
	display: flex;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tdh-category-card:hover,
.tdh-post-card:hover {
	transform: translateY(-3px);
}

/* Category card: name + post count, no image, uniform height via grid stretch */
.tdh-category-card {
	flex-direction: column;
	justify-content: center;
	gap: 0.4rem;
	padding: 2rem;
	min-height: 140px;
}
.tdh-category-count {
	color: #5C554E;
	font-size: 0.9rem;
}

/* Post card: image on top, category label, Fraunces title, excerpt */
.tdh-post-card {
	flex-direction: column;
	overflow: hidden;
}
.tdh-post-card-media img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
}
.tdh-post-card-cat {
	color: #7A9E7E;
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 1.25rem 1.25rem 0;
}
.tdh-post-card-title {
	font-size: 1.15rem;
	margin: 0.5rem 1.25rem 0;
}
.tdh-post-card-excerpt {
	color: #5C554E;
	font-size: 0.95rem;
	margin: 0.5rem 1.25rem 1.25rem;
	line-height: 1.55;
}
.tdh-empty-note {
	text-align: center;
	color: #5C554E;
}

/* Newsletter signup */
.tdh-newsletter {
	background-color: #E8DFD3;
	padding: 5rem 1.5rem;
}
.tdh-newsletter-inner {
	text-align: center;
}
.tdh-newsletter-sub {
	color: #5C554E;
	margin-bottom: 1.75rem;
}
.tdh-newsletter-form {
	max-width: 480px;
	margin: 0 auto;
	display: flex;
	gap: 0.75rem;
	justify-content: center;
	flex-wrap: wrap;
}
.tdh-newsletter-input {
	flex: 1 1 220px;
	padding: 0.75em 1.25em;
	border-radius: 999px;
	border: 1px solid #D8CDBC;
	background-color: #FAF7F2;
	font-family: 'Inter', sans-serif;
	font-size: 1rem;
	color: #2B2622;
}
.tdh-newsletter-input:focus {
	outline: 2px solid #C96F4A;
	outline-offset: 2px;
}
.tdh-newsletter-note {
	margin-top: 1rem;
	color: #7A9E7E;
	font-weight: 600;
}

/* Native Kadence footer builder: widget column (brand blurb) + nav column */
.site-footer .widget-title {
	font-size: 1.2rem;
}
.site-footer .textwidget {
	color: #5C554E;
	font-size: 0.95rem;
	line-height: 1.6;
}
.footer-navigation .footer-menu-container ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
}
.footer-navigation .footer-menu-container a {
	color: #5C554E;
	text-decoration: none;
	font-size: 0.95rem;
}
.footer-navigation .footer-menu-container a:hover {
	color: #C96F4A;
}

@media (max-width: 760px) {
	.tdh-hero-inner {
		grid-template-columns: 1fr;
	}
	.tdh-category-grid,
	.tdh-post-grid {
		grid-template-columns: 1fr;
	}
}
