/* Town & Country Supply — modern heartland UI
   Direction: clean, professional, rooted. Forest green + denim + harvest gold.
   Avoids cream/terracotta AI cliché; cool mist ground, honest type, real imagery. */

:root {
	--tc-forest: #14351a;
	--tc-green: #1c4e1d;
	--tc-green-mid: #2a6a2c;
	--tc-denim: #3a5f8a;
	--tc-denim-deep: #2c4a6d;
	--tc-harvest: #c9a227;
	--tc-mist: #f3f5f2;
	--tc-paper: #ffffff;
	--tc-ink: #1b211c;
	--tc-muted: #5a655c;
	--tc-line: rgba(28, 78, 29, 0.12);
	--tc-shadow: 0 14px 36px rgba(20, 53, 26, 0.1);
	--tc-shadow-soft: 0 8px 22px rgba(20, 53, 26, 0.07);
	--tc-radius: 16px;
	--tc-radius-sm: 10px;
	--tc-font-display: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
	--tc-font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
	--tc-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
	scroll-behavior: smooth;
}

body.tandc-modern,
body {
	color: var(--tc-ink);
	background:
		radial-gradient(1200px 500px at 10% -10%, rgba(58, 95, 138, 0.07), transparent 55%),
		radial-gradient(900px 420px at 95% 0%, rgba(201, 162, 39, 0.08), transparent 50%),
		linear-gradient(180deg, #eef2ee 0%, var(--tc-mist) 28%, #f7f8f6 100%);
	font-family: var(--tc-font-body);
	font-size: 18px;
	line-height: 1.65;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

/* ---------- Typography ---------- */

body h1,
body h2,
body h3,
body h4,
body .vc_custom_heading,
body .page-title-head,
body .entry-title,
body .widget-title {
	font-family: var(--tc-font-display);
	color: var(--tc-ink);
	letter-spacing: -0.03em;
	font-weight: 700;
}

body #content .wpb_text_column p,
body .wpb_text_column li,
body .entry-content p {
	color: var(--tc-muted);
	font-size: clamp(17px, 1.35vw, 19px) !important;
	line-height: 1.7;
}

body h1.vc_custom_heading,
body .vc_custom_heading strong {
	font-size: clamp(32px, 4.4vw, 52px);
	line-height: 1.05;
	color: var(--tc-forest);
}

body .vc_custom_heading {
	font-size: clamp(22px, 2.6vw, 34px);
	line-height: 1.15;
}

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

body .masthead {
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--tc-line);
	box-shadow: 0 8px 28px rgba(20, 53, 26, 0.06);
	animation: tc-header-in 520ms var(--tc-ease) both;
}

@keyframes tc-header-in {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

body .top-bar {
	background: linear-gradient(90deg, var(--tc-forest), var(--tc-denim-deep));
	color: #fff;
	border: 0;
}

body .top-bar a,
body .top-bar .menu-text {
	color: rgba(255, 255, 255, 0.92) !important;
	font-family: var(--tc-font-body);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

body .top-bar a:hover .menu-text {
	color: #fff !important;
}

body .header-bar {
	gap: clamp(14px, 2vw, 36px);
	padding-inline: clamp(16px, 3.5vw, 56px);
	align-items: center;
	min-height: 104px;
}

body .branding {
	flex: 0 0 clamp(190px, 18vw, 280px);
	max-width: clamp(190px, 18vw, 280px);
}

body .branding img {
	max-height: 108px;
	width: auto;
}

body .header-bar .main-nav {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: nowrap !important;
	justify-content: center;
	min-width: 0;
	gap: 0;
}

body .main-nav > li {
	flex: 0 0 auto;
	margin-inline: clamp(1px, 0.25vw, 6px) !important;
}

body .header-bar .main-nav > li > a {
	flex-flow: row nowrap !important;
	min-width: max-content;
	padding: 10px clamp(6px, 0.65vw, 12px) !important;
	white-space: nowrap;
	border-radius: 999px;
	transition: background-color 180ms var(--tc-ease), color 180ms var(--tc-ease);
}

body .header-bar .main-nav > li > a:hover,
body .header-bar .main-nav > li.current-menu-item > a {
	background: rgba(28, 78, 29, 0.08);
}

body .main-nav > li > a .menu-item-text,
body .main-nav > li > a .menu-text,
body .main-nav > li > a .text-wrap {
	display: inline-flex;
	white-space: nowrap;
}

body .main-nav > li > a .menu-text {
	font-family: var(--tc-font-display);
	font-size: clamp(11px, 0.82vw, 13px);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--tc-forest);
}

/* ---------- Buttons ---------- */

body .microwidget-btn,
body .ubtn,
body .dt-btn,
body a.dt-btn,
body .tandc-callout .dt-btn {
	border-radius: 999px !important;
	font-family: var(--tc-font-display) !important;
	font-weight: 700 !important;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	box-shadow: 0 10px 24px rgba(28, 78, 29, 0.18);
	transition:
		transform 180ms var(--tc-ease),
		box-shadow 180ms var(--tc-ease),
		background-color 180ms var(--tc-ease),
		filter 180ms var(--tc-ease);
}

body .microwidget-btn,
body .header-elements-button-1 {
	background: var(--tc-denim) !important;
	border-color: var(--tc-denim) !important;
	color: #fff !important;
}

body .microwidget-btn:hover,
body .header-elements-button-1:hover {
	background: var(--tc-denim-deep) !important;
	border-color: var(--tc-denim-deep) !important;
}

body .ubtn,
body .dt-btn {
	background: var(--tc-green) !important;
	border-color: var(--tc-green) !important;
	color: #fff !important;
}

body .microwidget-btn:hover,
body .ubtn:hover,
body .dt-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 30px rgba(28, 78, 29, 0.22);
	filter: brightness(1.05);
}

body .ubtn[style*="rgba(28,78,29,0.01)"],
body .ubtn[data-bg*="rgba(28,78,29"] {
	background: transparent !important;
	color: var(--tc-forest) !important;
	border: 1.5px solid var(--tc-green) !important;
	box-shadow: none;
}

body .ubtn[style*="rgba(28,78,29,0.01)"]:hover {
	background: rgba(28, 78, 29, 0.06) !important;
	color: var(--tc-forest) !important;
}

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

body #main-slideshow {
	background: var(--tc-forest);
	position: relative;
}

body #main-slideshow::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 72px;
	background: linear-gradient(180deg, transparent, var(--tc-mist));
	pointer-events: none;
	z-index: 4;
}

body rs-module-wrap,
body rs-module {
	min-height: clamp(460px, 62vw, 760px) !important;
}

body rs-layer.large_text {
	font-family: var(--tc-font-display) !important;
	font-size: clamp(40px, 6.5vw, 86px) !important;
	line-height: 0.96 !important;
	letter-spacing: -0.04em !important;
	text-shadow: 0 6px 28px rgba(0, 0, 0, 0.45) !important;
}

/* ---------- Content sections ---------- */

body #main {
	background: transparent;
}

body .wf-wrap,
body .content {
	max-width: 1240px;
}

body .vc_row[data-vc-full-width="true"]:not(.vc_row-no-padding) {
	padding-inline: clamp(16px, 4vw, 48px);
}

body .wpb-content-wrapper > .vc_row {
	position: relative;
}

/* Welcome band — cool mist instead of warm tan wash */
body .vc_custom_1660064889216 {
	background:
		linear-gradient(135deg, rgba(243, 245, 242, 0.98), rgba(232, 238, 234, 0.96)) !important;
	border-block: 1px solid var(--tc-line);
}

body .vc_custom_1660064889216 .vc_custom_heading {
	color: var(--tc-forest);
}

body .vc_custom_1660064889216 .vc_custom_heading:not(h1) {
	color: var(--tc-denim);
	font-weight: 600;
	letter-spacing: 0.02em;
}

/* Parallax image bands — keep full-bleed, tighten mobile height */
body .vc_custom_1660064851389,
body .vc_custom_1659554161717,
body .vc_custom_1659554386821 {
	min-height: clamp(240px, 38vw, 480px);
	padding-top: clamp(100px, 15vw, 180px) !important;
	padding-bottom: clamp(100px, 15vw, 180px) !important;
}

/* Service tiles — light lift, not heavy cards */
body .vc_column-gap-15 > .vc_column_container > .vc_column-inner {
	height: 100%;
}

body .vc_row-o-equal-height .vc_col-sm-3 > .vc_column-inner {
	border-radius: var(--tc-radius);
	background: var(--tc-paper);
	border: 1px solid var(--tc-line);
	box-shadow: var(--tc-shadow-soft);
	padding: clamp(18px, 2.2vw, 26px) !important;
	transition:
		transform 220ms var(--tc-ease),
		box-shadow 220ms var(--tc-ease),
		border-color 220ms var(--tc-ease);
}

body .vc_row-o-equal-height .vc_col-sm-3 > .vc_column-inner:hover {
	transform: translateY(-4px);
	box-shadow: var(--tc-shadow);
	border-color: rgba(28, 78, 29, 0.22);
}

body .vc_single_image-wrapper img {
	filter: saturate(1.04) contrast(1.02);
	transition: transform 280ms var(--tc-ease);
}

body .vc_single_image-wrapper:hover img {
	transform: scale(1.03);
}

/* In-field / livestock service panels */
body .vc_custom_1541205244727,
body .vc_custom_1541205252046 {
	border-radius: var(--tc-radius);
	background: linear-gradient(160deg, #e8eee9, #dfe8e2) !important;
	border: 1px solid var(--tc-line);
	box-shadow: var(--tc-shadow-soft);
}

/* Dark team bands */
body .vc_row[style*="background-color: #282425"],
body .vc_custom_1659566897870,
body .vc_custom_1659567517194,
body .vc_custom_1726676513312,
body .vc_custom_1770149001003 {
	background: linear-gradient(135deg, var(--tc-forest), #1a3d42) !important;
}

body .vc_custom_1726676513312 .vc_col-sm-3 > .vc_column-inner,
body .vc_custom_1659566897870 .vc_col-sm-3 > .vc_column-inner,
body .vc_custom_1659567517194 .vc_col-sm-3 > .vc_column-inner,
body .vc_custom_1770149001003 .vc_col-sm-3 > .vc_column-inner {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 15px !important;
}

body .vc_custom_1726676513312.vc_row-o-equal-height .vc_col-sm-3 > .vc_column-inner:hover,
body .vc_custom_1659566897870.vc_row-o-equal-height .vc_col-sm-3 > .vc_column-inner:hover,
body .vc_custom_1659567517194.vc_row-o-equal-height .vc_col-sm-3 > .vc_column-inner:hover,
body .vc_custom_1770149001003.vc_row-o-equal-height .vc_col-sm-3 > .vc_column-inner:hover {
	transform: none;
	box-shadow: none !important;
	border-color: transparent !important;
}

body .vc_custom_1726676513312 h3,
body .vc_custom_1726676513312 .vc_custom_heading,
body .vc_custom_1726676513312 .aio-icon-title,
body .vc_custom_1726676513312 a,
body .vc_custom_1726676513312 p {
	color: #fff !important;
}

/* ---------- Team cards / callouts ---------- */

.tandc-team-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 22px;
	margin: 28px 0;
}

.tandc-team-card {
	overflow: hidden;
	border-radius: var(--tc-radius);
	background: var(--tc-paper);
	border: 1px solid rgba(255, 255, 255, 0.18);
	box-shadow: var(--tc-shadow);
	color: var(--tc-ink);
	transition: transform 220ms var(--tc-ease);
}

.tandc-team-card:hover {
	transform: translateY(-3px);
}

.tandc-team-card img {
	width: 100%;
	height: 250px;
	object-fit: cover;
	object-position: center top;
}

.tandc-team-card__body {
	padding: 20px 22px 24px;
}

.tandc-team-card h3 {
	margin: 0 0 4px;
	color: var(--tc-forest);
	font-family: var(--tc-font-display);
	font-size: 22px;
	line-height: 1.15;
}

.tandc-team-card p {
	margin: 0 0 8px;
	color: var(--tc-muted);
	font-size: 15px;
	line-height: 1.45;
}

.tandc-team-card a {
	color: var(--tc-denim);
	font-weight: 700;
	text-decoration: none;
}

.tandc-team-card a:hover {
	color: var(--tc-green);
	text-decoration: underline;
}

.tandc-callout {
	padding: clamp(28px, 4vw, 48px);
	border-radius: var(--tc-radius);
	background:
		linear-gradient(135deg, rgba(20, 53, 26, 0.94), rgba(44, 74, 109, 0.92)),
		var(--tc-forest);
	box-shadow: var(--tc-shadow);
	color: #fff;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.tandc-callout::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 85% 15%, rgba(201, 162, 39, 0.22), transparent 45%);
	pointer-events: none;
}

.tandc-callout > * {
	position: relative;
	z-index: 1;
}

.tandc-callout h2,
.tandc-callout p {
	color: #fff !important;
	font-family: var(--tc-font-display);
}

.tandc-callout h2 {
	margin: 0 0 10px;
	font-size: clamp(26px, 3.5vw, 38px);
}

.tandc-callout p {
	font-family: var(--tc-font-body);
	font-size: 18px;
	opacity: 0.95;
}

.tandc-callout .dt-btn,
.tandc-callout a.dt-btn {
	display: inline-block;
	margin-top: 16px;
	padding: 14px 28px;
	background: var(--tc-harvest) !important;
	border-color: var(--tc-harvest) !important;
	color: var(--tc-forest) !important;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.tandc-callout .dt-btn:hover {
	filter: brightness(1.06);
}

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

body #footer,
body .footer,
body .wf-container-footer,
body .footer-bottom {
	background: linear-gradient(180deg, var(--tc-forest), #0f2413) !important;
	color: rgba(255, 255, 255, 0.88);
}

body #footer a,
body .footer a {
	color: rgba(255, 255, 255, 0.88);
}

body #footer a:hover,
body .footer a:hover {
	color: #fff;
}

body .footer .widget-title,
body #footer .widget-title {
	color: #fff;
	font-family: var(--tc-font-display);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-size: 13px;
}

/* Contact footer panel on pages */
body .vc_custom_1659563624122 {
	border-radius: var(--tc-radius) !important;
	background: rgba(255, 255, 255, 0.88) !important;
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.5);
	box-shadow: var(--tc-shadow);
}

/* ---------- Forms / misc ---------- */

body input[type="text"],
body input[type="email"],
body input[type="tel"],
body input[type="search"],
body textarea,
body select,
body .searchform-s {
	border-radius: var(--tc-radius-sm) !important;
	border: 1px solid var(--tc-line) !important;
	font-family: var(--tc-font-body);
}

body .mini-search .searchform-s {
	background: var(--tc-mist);
}

body .page-title {
	background: linear-gradient(135deg, var(--tc-forest), var(--tc-denim-deep));
}

body .page-title h1,
body .page-title-head,
body .breadcrumbs,
body .breadcrumbs a {
	color: #fff !important;
	font-family: var(--tc-font-display);
}

/* Subtle section entrance for key homepage blocks */
body.home #content .vc_custom_1660064889216,
body.home #content .vc_row-o-equal-height,
body.home #content .tandc-callout {
	animation: tc-rise 700ms var(--tc-ease) both;
}

@keyframes tc-rise {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* ---------- Responsive ---------- */

@media (max-width: 1200px) {
	body .main-nav > li > a .menu-text {
		font-size: 11px;
		letter-spacing: 0.02em;
	}

	body .header-bar .main-nav > li > a {
		padding-inline: 6px !important;
	}
}

@media (max-width: 1024px) {
	body .header-bar {
		gap: 12px;
		padding-inline: 16px;
		min-height: 92px;
	}

	body .branding img {
		max-height: 84px;
	}

	body .masthead .mini-widgets {
		display: none !important;
	}
}

@media (max-width: 900px) {
	body {
		background: #fff;
	}

	body .top-bar {
		display: none;
	}

	body .header-bar {
		justify-content: space-between;
		min-height: 72px;
	}

	body .masthead .main-nav,
	body .masthead .mini-widgets {
		display: none !important;
	}

	body .branding img {
		max-height: 56px;
	}

	body .mobile-header-bar,
	body .dt-mobile-header {
		background: #fff;
	}

	body .dt-mobile-header .mobile-main-nav a {
		font-family: var(--tc-font-display);
		font-weight: 700;
		letter-spacing: 0.03em;
		text-transform: uppercase;
	}
}

@media (max-width: 778px) {
	body rs-module-wrap,
	body rs-module {
		min-height: 400px !important;
	}

	body rs-layer.large_text {
		font-size: clamp(32px, 11vw, 52px) !important;
		line-height: 0.98 !important;
		white-space: normal !important;
	}

	body .vc_custom_1660064851389,
	body .vc_custom_1659554161717,
	body .vc_custom_1659554386821 {
		min-height: 220px;
		padding-top: 72px !important;
		padding-bottom: 72px !important;
	}

	body .vc_custom_1660064889216,
	body .vc_custom_1541200425202 {
		padding-top: 40px !important;
		padding-bottom: 40px !important;
	}

	body h1.vc_custom_heading,
	body .vc_custom_heading strong {
		font-size: clamp(28px, 8.5vw, 40px) !important;
		line-height: 1.08 !important;
	}

	body .vc_custom_heading {
		font-size: clamp(20px, 5.5vw, 28px) !important;
		line-height: 1.18 !important;
	}

	body #content .wpb_text_column p {
		font-size: 17px !important;
		line-height: 1.62;
	}

	body .vc_row .vc_column_container > .vc_column-inner {
		padding-left: 16px !important;
		padding-right: 16px !important;
	}

	body .vc_row-o-equal-height .vc_col-sm-3 > .vc_column-inner,
	body .vc_custom_1541205244727,
	body .vc_custom_1541205252046 {
		margin-bottom: 16px;
	}

	body .ubtn,
	body .ubtn-link,
	body .ubtn-data {
		width: 100%;
		max-width: 360px;
	}

	body .ubtn {
		padding: 14px 20px !important;
	}

	.tandc-team-card img {
		height: 220px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
