/*
Theme Name: Harvest Kadence Child
Theme URI: https://harvestcompanion.com
Description: Kadence child theme aligned to the Harvest Companion design system (Companion Pipeline wireframe palette — Fraunces + DM Sans, terracotta accent, warm cream canvas). Lean and additive: global colors and fonts come from Kadence defaults filtered in functions.php; this stylesheet only refines what those settings cannot express.
Author: Harvest Companion
Template: kadence
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: harvest-kadence-child
*/

/*
 * Every rule uses the shared --hc-* tokens (design-tokens.css, loaded by
 * functions.php) with hard fallbacks so the theme renders correctly even
 * if the LMS plugin is ever absent.
 */

/* ------------------------------------------------------------ header --- */
.site-header,
.site-top-header-wrap,
.site-main-header-wrap {
	background: var(--hc-bg, #faf8f4);
}
.site-header .site-branding .site-title {
	font-family: var(--hc-font-heading, 'Fraunces', Georgia, serif);
	font-weight: 500;
	letter-spacing: var(--hc-heading-spacing, -0.01em);
	color: var(--hc-text-primary, #1c1a15);
}
.site-header .site-branding .site-description {
	font-size: var(--hc-text-xs, 0.72rem);
	text-transform: uppercase;
	letter-spacing: var(--hc-label-spacing, 0.08em);
	color: var(--hc-text-tertiary, #9a9285);
}
.main-navigation .primary-menu-container > ul > li > a {
	font-weight: 500;
}
.site-main-header-wrap .site-header-row {
	border-bottom: 1px solid var(--hc-border, #e8e3d8);
}

/* ------------------------------------------------------------ footer --- */
.site-footer {
	background: var(--hc-bg-subtle, #f3f0ea);
	border-top: 1px solid var(--hc-border, #e8e3d8);
	color: var(--hc-text-secondary, #6b6457);
}
.site-footer a {
	color: var(--hc-accent-deep, #8a4f3d);
}

/* ----------------------------------------------------------- buttons --- */
.button,
.wp-block-button__link,
button[type='submit'],
input[type='submit'] {
	border-radius: var(--hc-radius-md, 7px);
	font-family: var(--hc-font-body, 'DM Sans', sans-serif);
	font-weight: 500;
	box-shadow: none;
	transition: var(--hc-transition, all 0.12s ease);
}

/* ------------------------------------------------------------- links --- */
.entry-content a:not(.button):not(.wp-block-button__link):not(.hclms-btn) {
	text-decoration-color: var(--hc-border-strong, #d4cdbf);
	text-underline-offset: 2px;
}
.entry-content a:not(.button):not(.wp-block-button__link):not(.hclms-btn):hover {
	text-decoration-color: currentColor;
}

/* ------------------------------------------------------------- forms --- */
input[type='text'],
input[type='email'],
input[type='url'],
input[type='password'],
input[type='search'],
input[type='number'],
input[type='tel'],
select,
textarea {
	border: 1px solid var(--hc-border, #e8e3d8);
	border-radius: var(--hc-radius-md, 7px);
	background: var(--hc-bg-card, #ffffff);
	color: var(--hc-text-primary, #1c1a15);
	transition: var(--hc-transition, all 0.12s ease);
}
input[type='text']:focus,
input[type='email']:focus,
input[type='url']:focus,
input[type='password']:focus,
input[type='search']:focus,
input[type='number']:focus,
input[type='tel']:focus,
select:focus,
textarea:focus {
	border-color: var(--hc-accent, #cc785c);
	box-shadow: 0 0 0 3px var(--hc-accent-subtle, #f5e8e2);
	outline: none;
}

/* -------------------------------------------------- content surfaces --- */
/* Cards and comment areas pick up the warm card shadow. */
.entry.content-bg,
.content-bg.loop-entry .entry-content-wrap {
	box-shadow: var(--hc-shadow-card, 0 1px 2px rgba(28, 26, 21, 0.04), 0 1px 3px rgba(28, 26, 21, 0.06));
	border-radius: var(--hc-radius-lg, 10px);
}
