/**
 * ============================================================================
 *  MILTONCAT MANAGED FILE - DO NOT EDIT ON THE SERVER
 * ----------------------------------------------------------------------------
 *  Owner : Getfused (git repo: miltoncat)
 *  Deploy: SFTP overwrites this file wholesale. Server-side edits WILL BE
 *          LOST without warning, with no backup and no notification.
 *
 *  Site code belongs in one of these instead. Neither is ever written by a
 *  Getfused deploy, so anything you put there is safe:
 *      themes/miltoncat-gp/functions.php   (below the SITE CUSTOMIZATIONS marker)
 *      themes/miltoncat-gp/style.css       (below the SITE CUSTOMIZATIONS marker)
 *
 *  Full ownership map: _OWNERSHIP.md in the theme root.
 * ============================================================================
 *
 * Site-wide design tokens. Declared once on :root and read by every theme
 * stylesheet (site header, homepage, promotions, link grid, listings, closing
 * CTA). Loaded on every front-end page before those files (inc/site-style.php).
 *
 * To change a value site-wide without a deploy, redefine the token in
 * style.css below the SITE CUSTOMIZATIONS marker - style.css loads later:
 *     :root { --mc-container: 1280px; }
 *
 * Breakpoints cannot be custom properties (media queries do not read them);
 * the theme uses 1024px (tablet / mobile nav) and 767px / 640px (phone).
 * Responsive tokens are redefined inside media queries at the end of this
 * file, so components just read var(--mc-page-padding) at every width.
 */

:root {
	/* ---- Color: design comp palette -------------------------------------- */
	--mc-cat-yellow: #ffcc00;      /* CAT Corporate Yellow */
	--mc-black: #000;              /* CAT Black */
	--mc-cat-gray: #909ca4;        /* CAT Gray (decorative; 2.8:1 on white - not for text) */
	--mc-white: #fff;
	--mc-rental: #c1272d;          /* Rental */
	--mc-ink: #1a1e22;             /* Ink - body text, dark buttons, focus rings */
	--mc-text-secondary: #6a7074;  /* Text Secondary (5.0:1 on white, 4.6:1 on surface) */
	--mc-border: #d5d9dc;          /* Border - hairlines, card borders */
	--mc-surface: #f4f5f6;         /* Surface - light panels, cards, bands */
	--mc-input-border: #797979;    /* Input Border (4.4:1 on white; only 2.6:1 on
	                                  Input Fill - dark fields need a lighter outline) */
	--mc-input-fill: #3b3b3b;      /* Input Fill (dark fields; white text 11.2:1) */
	--mc-icon: #9c9c9c;            /* Icon (4.1:1 on Input Fill; 2.75:1 on white -
	                                  icon-only controls on white need 3:1, WCAG 1.4.11) */

	/* Condition / status - text color on its tint */
	--mc-good: #1e6b23;            /* Good / Yes */
	--mc-good-tint: #e6f1e7;
	--mc-fair: #7a5a00;            /* Fair */
	--mc-fair-tint: #fbf0d0;
	--mc-poor: #a31b20;            /* Poor */
	--mc-poor-tint: #faddde;
	--mc-neutral: #4a5560;         /* Neutral / No */
	--mc-neutral-tint: #edeff1;

	/* Roles used across the theme (point at the palette above) */
	--mc-yellow: var(--mc-cat-yellow);    /* accents, primary buttons */
	--mc-yellow-dark: #e6b800;            /* yellow hover */
	--mc-muted: var(--mc-text-secondary); /* secondary text */
	--mc-bg: var(--mc-white);             /* page / card background */
	--mc-panel: var(--mc-surface);        /* light panels, bands */
	--mc-panel-2: var(--mc-neutral-tint); /* image placeholders, secondary buttons */
	--mc-border-strong: var(--mc-cat-gray); /* button outlines on panels */
	--mc-focus: var(--mc-ink);            /* keyboard focus outline */

	/* ---- Layout ---------------------------------------------------------- */
	--mc-container: 1280px;        /* max content width */
	--mc-page-padding: 5rem;       /* side padding of full-width bands (header,
	                                  homepage sections); responsive below */
	--mc-gutter: 5rem;             /* component side padding */
	--mc-gap: 24px;                /* default grid / flex gap */
	--mc-section-space: 40px;      /* vertical space between page sections */
	
	@media (max-width:1024px) {
		--mc-gutter: 2rem;   
		--mc-page-padding: 2rem; 
	}

	/* ---- Type: design comp (px from the comp, in rem at 16px) ------------- */
	--mc-font-display: "Anton", "Arial Narrow", Impact, sans-serif;
	--mc-font-body: "Roboto", "Helvetica Neue", Arial, sans-serif;
	--mc-font-condensed: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;

	--mc-fs-h1: 2.5rem;            /* 40  Anton 400 */
	--mc-fs-h2: 1.375rem;          /* 22  Roboto 700 */
	--mc-fs-h3: 1.25rem;           /* 20  Roboto 700 */
	--mc-fs-h4: 1rem;              /* 16  Roboto 700 - also Card Title */
	--mc-fs-h5: 0.9375rem;         /* 15  Roboto 700 - Condition Group */
	--mc-fs-h6: 0.9375rem;         /* 15  Roboto 700 - Label (Bold) */
	--mc-fs-lead: 1.125rem;        /* 18  Roboto 400 */
	--mc-fs-price: 2rem;           /* 32  Anton 400 */
	--mc-fs-body: 0.9375rem;       /* 15  Roboto 400 */
	--mc-fs-caption: 0.75rem;      /* 12  Roboto 400 */
	--mc-fs-link: 0.875rem;        /* 14  Roboto 700 */
	--mc-fs-badge: 0.75rem;        /* 12  Roboto 700 */
	--mc-fs-utility: 0.75rem;      /* 12  Roboto Condensed 700 - nav utility bar */
	--mc-fs-menu: 0.875rem;        /* 14  Roboto Condensed 700 - main menu */
	--mc-fs-label-used: 0.9375rem; /* 15  Roboto Condensed 700 */
	--mc-fs-label-finance: 0.875rem; /* 14 Roboto Condensed 700 */
	--mc-fs-action: 0.875rem;      /* 14  Roboto 500 - action panel */

	--mc-lh-body: 1.4;             /* Body Text (140% line height) */
	--mc-lh-tight: 1.2;            /* headings, display */

	/* Kept for existing rules */
	--mc-text-sm: var(--mc-fs-link);
	--mc-text-base: 1rem;

	/* ---- Effects --------------------------------------------------------- */
	--mc-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
	--mc-transition: 0.3s ease;
}

@media (max-width: 1024px) {
	:root {
		--mc-page-padding: 2rem;
	}
}

@media (max-width: 767px) {
	:root {
		--mc-page-padding: 1rem;
	}
}

body {
	background-color: var(--mc-ink);
}

body .container.grid-container {
    width: 100%;
}

body .page-header, 
body .sidebar .widget, 
body .site-main>* {
    margin-bottom: 0;
}


/* Radio button style */
input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  width: 14px;
  height: 14px;
  box-sizing: border-box;
  border: 2px solid #D5D9DC;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

input[type="radio"]:checked {
  background: radial-gradient(circle, #FFCC00 0 3px, transparent 3.5px);
}

input[type="radio"]:focus-visible {
  outline: 2px solid #5B9DD9;
  outline-offset: 2px;
}


/* ==========================================================================
 *  Typography (design comp)
 *  Applies on pages rendered by the theme's PHP templates: inc/site-style.php
 *  adds body.mc-type there. Elementor pages keep the Elementor kit's fonts
 *  until they are converted. "body.mc-type h1" (0,1,2) outranks the kit's
 *  ".elementor-kit-8 h1" (0,1,1) without !important.
 * ========================================================================== */
body.mc-type {
	font-family: var(--mc-font-body);
	font-size: var(--mc-fs-body);
	font-weight: 400;
	line-height: var(--mc-lh-body);
	color: var(--mc-ink);
}

body.mc-type h1,
body.mc-type h2,
body.mc-type h3,
body.mc-type h4,
body.mc-type h5,
body.mc-type h6 {
	font-family: var(--mc-font-body);
	font-weight: 700;
	line-height: var(--mc-lh-tight);
	color: var(--mc-ink);
	letter-spacing: normal;
	text-transform: none;
}

body.mc-type h1 {
	font-family: var(--mc-font-display);
	font-size: var(--mc-fs-h1);
	font-weight: 400;
}

/* Form controls don't inherit the page font by default, and the Elementor
   kit sets its own on buttons (".elementor-kit-8 button", 0,1,1). */
body.mc-type button,
body.mc-type input,
body.mc-type select,
body.mc-type textarea {
	font-family: var(--mc-font-body);
}

body.mc-type h2 { font-size: var(--mc-fs-h2); }
body.mc-type h3 { font-size: var(--mc-fs-h3); }
body.mc-type h4 { font-size: var(--mc-fs-h4); }
body.mc-type h5 { font-size: var(--mc-fs-h5); }
body.mc-type h6 { font-size: var(--mc-fs-h6); }

/* ---- Text styles from the comp (usable on any element) ----------------- */
.mc-lead {
	font-family: var(--mc-font-body);
	font-size: var(--mc-fs-lead);
	font-weight: 400;
	line-height: var(--mc-lh-body);
}

.mc-price {
	font-family: var(--mc-font-display);
	font-size: var(--mc-fs-price);
	font-weight: 400;
	line-height: var(--mc-lh-tight);
}

.mc-caption {
	font-size: var(--mc-fs-caption);
	font-weight: 400;
	color: var(--mc-text-secondary);
}

.mc-link-bold {
	font-size: var(--mc-fs-link);
	font-weight: 700;
}

.mc-badge {
	display: inline-block;
	padding: 2px 8px;
	font-size: var(--mc-fs-badge);
	font-weight: 700;
	line-height: 1.5;
	color: var(--mc-neutral);
	background: var(--mc-neutral-tint);
}

.mc-badge--good { color: var(--mc-good); background: var(--mc-good-tint); }
.mc-badge--fair { color: var(--mc-fair); background: var(--mc-fair-tint); }
.mc-badge--poor { color: var(--mc-poor); background: var(--mc-poor-tint); }

.mc-label-used {
	font-family: var(--mc-font-condensed);
	font-size: var(--mc-fs-label-used);
	font-weight: 700;
}

.mc-label-financing {
	font-family: var(--mc-font-condensed);
	font-size: var(--mc-fs-label-finance);
	font-weight: 700;
}

.mc-action {
	font-size: var(--mc-fs-action);
	font-weight: 500;
}

/* ==========================================================================
 *  Icon link (design comp): bold text, yellow underline, chevron after.
 *  Hover / focus: the underline shrinks in to the middle and the chevron
 *  slides 4px right.
 *
 *  <a class="icon-link" href="...">CAT Parts & Allied Brands</a>
 *  <a class="icon-link" href="..." target="_blank">  external-link icon
 *  <a class="icon-link red" href="...">               red underline
 *
 *  Text color comes from --mc-icon-link-color (default Ink); set it on a
 *  dark section to get white links, e.g. .my-band { --mc-icon-link-color: #fff; }
 *
 *  The homepage's WYSIWYG links (teasers, brands, closing CTA) get the
 *  same style without the class - editors don't need to add it.
 *  ":not(.mc-btn)" leaves buttons alone; every selector is at least two
 *  classes + an element so it beats Elementor's kit link color (0,1,1).
 *
 *  The underline is a background gradient rather than text-decoration so it
 *  can animate. The link stays inline with box-decoration-break: clone, so a
 *  link that wraps gets its own underline under each line, and on hover each
 *  line's underline shrinks to its own middle. The chevron (::after) takes
 *  up no width and can't be split from the last word, so it never wraps
 *  onto a line by itself and the underline stops at the text; it draws into
 *  the link's 1em right margin.
 * ========================================================================== */
a.icon-link:not(.mc-btn),
.mc-home .mc-teaser__content a:not(.mc-btn),
.mc-home .mc-brand__content a:not(.mc-btn),
.mc-home .mc-closing-cta__content a:not(.mc-btn) {
	display: inline;
	margin-right: 1em; /* room for the chevron, which draws past the text */
	padding-bottom: 1px; /* inline box: 5px here sits the line where 3px did on the old inline-block */
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	color: var(--mc-icon-link-color, var(--mc-ink));
	font-weight: 700;
	text-decoration: none;
	background-image: linear-gradient(var(--mc-cat-yellow), var(--mc-cat-yellow));
	background-repeat: no-repeat;
	background-position: center bottom;
	background-size: 100% 2px;
	transition: background-size var(--mc-transition);
}

a.icon-link.red:not(.mc-btn) {
	background-image: linear-gradient(var(--mc-rental), var(--mc-rental));
}

a.icon-link:not(.mc-btn)::after,
.mc-home .mc-teaser__content a:not(.mc-btn)::after,
.mc-home .mc-brand__content a:not(.mc-btn)::after,
.mc-home .mc-closing-cta__content a:not(.mc-btn)::after {
	/* U+2060 word joiner: zero width and no break before it, so the chevron
	   always stays with the last word. The chevron is a mask painted in the
	   padding; the negative margin cancels that padding, so it adds no width
	   and the underline ends at the text. */
	content: "\2060";
	position: relative;
	top: 0;
	left: 0;
	padding-left: 0.85em;
	margin-right: -0.85em;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 6'%3E%3Cpath d='M4 2.99975L0.761751 0L0 0.705765L2.47811 3.00175L0 5.29424L0.761751 6L4 2.99975Z' fill='%23000'/%3E%3C/svg%3E") no-repeat 0.3em 62% / 0.4em 0.6em;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 6'%3E%3Cpath d='M4 2.99975L0.761751 0L0 0.705765L2.47811 3.00175L0 5.29424L0.761751 6L4 2.99975Z' fill='%23000'/%3E%3C/svg%3E") no-repeat 0.3em 62% / 0.4em 0.6em;
	transition: left var(--mc-transition), top var(--mc-transition);
}

/* External variant: a link that opens in a new tab (target="_blank") gets
   the external-link icon in place of the chevron, automatically. On hover
   it nudges up and right instead of sliding right. */
a.icon-link[target="_blank"]:not(.mc-btn),
.mc-home .mc-teaser__content a[target="_blank"]:not(.mc-btn),
.mc-home .mc-brand__content a[target="_blank"]:not(.mc-btn),
.mc-home .mc-closing-cta__content a[target="_blank"]:not(.mc-btn) {
	margin-right: 1.25em; /* the icon is wider than the chevron */
}

a.icon-link[target="_blank"]:not(.mc-btn)::after,
.mc-home .mc-teaser__content a[target="_blank"]:not(.mc-btn)::after,
.mc-home .mc-brand__content a[target="_blank"]:not(.mc-btn)::after,
.mc-home .mc-closing-cta__content a[target="_blank"]:not(.mc-btn)::after {
	padding-left: 1.2em;
	margin-right: -1.2em;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='4 4 9 9'%3E%3Cpath d='M11.3125 13H5.125C4.50368 13 4 12.4963 4 11.875V5.6875C4 5.06618 4.50368 4.5625 5.125 4.5625H7.375V5.6875H5.125V11.875H11.3125V9.625H12.4375V11.875C12.4375 12.4963 11.9338 13 11.3125 13ZM8.33125 9.46019L7.53813 8.66481L11.0779 5.125H9.0625V4H13V7.9375H11.875V5.92094L8.33125 9.46019Z' fill='%23000'/%3E%3C/svg%3E") no-repeat 0.3em 58% / 0.62em 0.62em;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='4 4 9 9'%3E%3Cpath d='M11.3125 13H5.125C4.50368 13 4 12.4963 4 11.875V5.6875C4 5.06618 4.50368 4.5625 5.125 4.5625H7.375V5.6875H5.125V11.875H11.3125V9.625H12.4375V11.875C12.4375 12.4963 11.9338 13 11.3125 13ZM8.33125 9.46019L7.53813 8.66481L11.0779 5.125H9.0625V4H13V7.9375H11.875V5.92094L8.33125 9.46019Z' fill='%23000'/%3E%3C/svg%3E") no-repeat 0.3em 58% / 0.62em 0.62em;
}

a.icon-link:not(.mc-btn):is(:hover, :focus-visible),
.mc-home .mc-teaser__content a:not(.mc-btn):is(:hover, :focus-visible),
.mc-home .mc-brand__content a:not(.mc-btn):is(:hover, :focus-visible),
.mc-home .mc-closing-cta__content a:not(.mc-btn):is(:hover, :focus-visible) {
	color: var(--mc-icon-link-color, var(--mc-ink));
	text-decoration: none;
	background-size: 0 2px;
}

a.icon-link:not(.mc-btn):is(:hover, :focus-visible)::after,
.mc-home .mc-teaser__content a:not(.mc-btn):is(:hover, :focus-visible)::after,
.mc-home .mc-brand__content a:not(.mc-btn):is(:hover, :focus-visible)::after,
.mc-home .mc-closing-cta__content a:not(.mc-btn):is(:hover, :focus-visible)::after {
	left: 4px;
}

a.icon-link[target="_blank"]:not(.mc-btn):is(:hover, :focus-visible)::after,
.mc-home .mc-teaser__content a[target="_blank"]:not(.mc-btn):is(:hover, :focus-visible)::after,
.mc-home .mc-brand__content a[target="_blank"]:not(.mc-btn):is(:hover, :focus-visible)::after,
.mc-home .mc-closing-cta__content a[target="_blank"]:not(.mc-btn):is(:hover, :focus-visible)::after {
	top: -2px;
	left: 2px;
}

@media (prefers-reduced-motion: reduce) {
	a.icon-link:not(.mc-btn),
	a.icon-link:not(.mc-btn)::after,
	.mc-home .mc-teaser__content a:not(.mc-btn),
	.mc-home .mc-teaser__content a:not(.mc-btn)::after,
	.mc-home .mc-brand__content a:not(.mc-btn),
	.mc-home .mc-brand__content a:not(.mc-btn)::after,
	.mc-home .mc-closing-cta__content a:not(.mc-btn),
	.mc-home .mc-closing-cta__content a:not(.mc-btn)::after {
		transition: none;
	}
}

/* ==========================================================================
 *  Buttons (design comp)
 *  <a class="mc-btn mc-btn--primary">  | --secondary | --outline | --outline-white
 *  Add mc-btn--bold for the Button Bold style (Roboto Condensed 18).
 *
 *  ".mc-btn.mc-btn" doubles the class on purpose: the Elementor kit styles
 *  every button / link at one class + one element (".elementor-kit-8
 *  button", 0,1,1), which a single class would lose to. Override from
 *  style.css with the same doubled selector.
 *
 *  Hover states are not in the comp yet - interim: solid buttons darken,
 *  outline buttons fill with CAT yellow.
 * ========================================================================== */
.mc-btn.mc-btn,
body .fwpl-btn,
body .facetwp-reset {
	--mc-btn-color: var(--mc-ink);
	--mc-btn-bg: var(--mc-cat-yellow);
	--mc-btn-border: var(--mc-btn-bg);       /* matches the background unless outline */
	--mc-btn-hover-color: var(--mc-btn-color);
	--mc-btn-hover-bg: var(--mc-yellow-dark);
	--mc-btn-hover-border: var(--mc-btn-hover-bg);

	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 10px 26px;
	border: 2px solid var(--mc-btn-border);
	border-radius: 0;
	background: var(--mc-btn-bg);
	color: var(--mc-btn-color);
	font-family: var(--mc-font-body);
	font-size: var(--mc-fs-body);           /* 15 */
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	transition: background-color var(--mc-transition), border-color var(--mc-transition), color var(--mc-transition);
}

.mc-btn.mc-btn:is(:hover,:focus),
body .fwpl-btn:is(:hover,:focus),
body .facetwp-reset:is(:hover,:focus) {
	background: var(--mc-btn-hover-bg);
	border-color: var(--mc-btn-hover-border);
	color: var(--mc-btn-hover-color);
	text-decoration: none;
}

.mc-btn.mc-btn:focus-visible {
	outline: 2px solid var(--mc-focus);
	outline-offset: 3px;
}

/* Primary: Ink on CAT yellow (11.1:1) */
.mc-btn.mc-btn--primary,
body .fwpl-btn {
	--mc-btn-color: var(--mc-ink);
	--mc-btn-bg: var(--mc-cat-yellow);
	--mc-btn-hover-border: var(--mc-cat-yellow);
	--mc-btn-hover-bg: var(--mc-ink);
	--mc-btn-hover-color: var(--mc-white);
}

/* Secondary: White on Rental red (5.8:1) */
.mc-btn.mc-btn--secondary {
	--mc-btn-color: var(--mc-white);
	--mc-btn-bg: var(--mc-rental);
	--mc-btn-hover-border: var(--mc-ink);
	--mc-btn-hover-bg: var(--mc-ink);
	--mc-btn-hover-color: var(--mc-white);
}

/* Outline: Ink, transparent, CAT yellow border - for light backgrounds */
.mc-btn.mc-btn--outline {
	--mc-btn-color: var(--mc-ink);
	--mc-btn-bg: transparent;
	--mc-btn-border: var(--mc-cat-yellow);
	--mc-btn-hover-bg: var(--mc-cat-yellow);
	--mc-btn-hover-border: var(--mc-cat-yellow);
	--mc-btn-hover-color: var(--mc-ink);
}

/* Outline Dark: Ink, transparent, CAT Ink border - for light backgrounds */
.mc-btn.mc-btn--outline-dark,
body .facetwp-reset {
	--mc-btn-color: var(--mc-ink);
	--mc-btn-bg: transparent;
	--mc-btn-border: var(--mc-ink);
	--mc-btn-hover-bg: var(--mc-ink);
	--mc-btn-hover-border: var(--mc-ink);
	--mc-btn-hover-color: var(--mc-cat-yellow);
}

/* Outline White: White, transparent, CAT yellow border - for dark / image backgrounds */
.mc-btn.mc-btn--outline-white {
	--mc-btn-color: var(--mc-white);
	--mc-btn-bg: transparent;
	--mc-btn-border: var(--mc-cat-yellow);
	--mc-btn-hover-bg: var(--mc-cat-yellow);
	--mc-btn-hover-border: var(--mc-cat-yellow);
	--mc-btn-hover-color: var(--mc-ink);
}


/* Outline All White: White, transparent, White border - for mixed backgrounds */
.mc-btn.mc-btn--outline-allwhite {
	--mc-btn-color: var(--mc-white);
	--mc-btn-bg: transparent;
	--mc-btn-border: var(--mc-white);
	--mc-btn-hover-bg: var(--mc-ink);
	--mc-btn-hover-border: var(--mc-ink);
	--mc-btn-hover-color: var(--mc-cat-yellow);
}

.mc-btn.mc-btn--outline-allwhite:focus-visible,
.mc-btn.mc-btn--outline-white:focus-visible {
	outline-color: var(--mc-white);
}

/* Button Bold: Roboto Condensed 18 */
.mc-btn.mc-btn--bold {
	font-family: var(--mc-font-condensed);
	font-size: 1.125rem;
}

@media (prefers-reduced-motion: reduce) {
	.mc-btn.mc-btn {
		transition: none;
	}
}
