/*
Theme Name: Car Loans of America
Theme URI: https://carloansofamerica.com/
Description: Lightweight block theme for Car Loans of America.
Author: Car Loans of America
Version: 1.1.2
Requires at least: 6.7
Requires PHP: 8.0
Text Domain: cla
*/

:root {
	--cla-navy: #0c2340;
	--cla-blue: #174f7d;
	--cla-gold: #f2b632;
	--cla-gold-dark: #c88d0a;
	--cla-ink: #172033;
	--cla-muted: #5b6575;
	--cla-cream: #fff8e8;
	--cla-surface: #f4f7fa;
	--cla-border: #dbe3eb;
	--cla-success: #2e7d5b;
	--cla-radius: 18px;
	--cla-shadow: 0 18px 45px rgba(12, 35, 64, .12);
}

html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
}

a,
button,
input,
select,
textarea {
	transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 3px solid var(--cla-gold);
	outline-offset: 3px;
}

.wp-site-blocks {
	overflow: clip;
}

.cla-topbar {
	font-size: .875rem;
}

.cla-header {
	box-shadow: 0 1px 0 rgba(12, 35, 64, .09);
	position: relative;
	z-index: 20;
}

.cla-header .wp-block-site-logo img {
	height: auto;
	max-width: 250px;
	width: 100%;
}

.cla-header .wp-block-navigation-item__content {
	font-weight: 700;
}

.cla-header .current-menu-item > .wp-block-navigation-item__content {
	color: var(--cla-blue);
}

.cla-hero {
	min-height: 650px;
}

.cla-hero .wp-block-cover__background {
	background: linear-gradient(90deg, rgba(7, 29, 52, .96) 0%, rgba(7, 29, 52, .87) 38%, rgba(7, 29, 52, .2) 67%, rgba(7, 29, 52, .05) 100%) !important;
	opacity: 1 !important;
}

.cla-eyebrow {
	letter-spacing: .11em;
	text-transform: uppercase;
}

.cla-hero h1 {
	max-width: 760px;
	text-wrap: balance;
}

.cla-hero p {
	max-width: 650px;
}

.wp-block-button__link {
	box-shadow: 0 8px 20px rgba(12, 35, 64, .12);
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.wp-block-button__link:hover {
	transform: translateY(-2px);
}

.is-style-outline > .wp-block-button__link:hover {
	background: var(--cla-navy);
	color: #fff;
}

.cla-trust-strip {
	margin-top: -42px !important;
	position: relative;
	z-index: 10;
}

.cla-trust-card,
.cla-card,
.cla-step,
.cla-form-card {
	background: #fff;
	border: 1px solid var(--cla-border);
	border-radius: var(--cla-radius);
	box-shadow: var(--cla-shadow);
}

.cla-trust-card {
	padding: 24px 20px;
	height: 100%;
}

.cla-card,
.cla-step {
	height: 100%;
	padding: 32px;
}

.cla-card:hover {
	border-color: rgba(23, 79, 125, .35);
	transform: translateY(-4px);
}

.cla-icon,
.cla-step-number {
	align-items: center;
	background: var(--cla-cream);
	border-radius: 999px;
	color: var(--cla-navy);
	display: inline-flex;
	font-size: 1.25rem;
	font-weight: 800;
	height: 52px;
	justify-content: center;
	width: 52px;
}

.cla-step-number {
	background: var(--cla-gold);
	font-size: 1.1rem;
}

.cla-section {
	padding-bottom: clamp(64px, 8vw, 112px);
	padding-top: clamp(64px, 8vw, 112px);
}

.cla-section-heading {
	max-width: 760px;
}

.cla-band {
	background: linear-gradient(135deg, var(--cla-navy), #163f69);
}

.cla-checklist {
	list-style: none;
	padding-left: 0;
}

.cla-checklist li {
	margin-bottom: 14px;
	padding-left: 30px;
	position: relative;
}

.cla-checklist li::before {
	background: var(--cla-gold);
	border-radius: 50%;
	color: var(--cla-navy);
	content: "✓";
	font-size: .75rem;
	font-weight: 900;
	height: 20px;
	left: 0;
	line-height: 20px;
	position: absolute;
	text-align: center;
	top: 3px;
	width: 20px;
}

.cla-form-card {
	padding: clamp(24px, 4vw, 42px);
}

.cla-form {
	display: grid;
	gap: 20px;
}

.cla-form-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cla-field label,
.cla-field legend {
	color: var(--cla-ink);
	display: block;
	font-size: .95rem;
	font-weight: 700;
	margin-bottom: 8px;
}

.cla-field input,
.cla-field select,
.cla-field textarea {
	background: #fff;
	border: 1px solid #aebdca;
	border-radius: 10px;
	box-sizing: border-box;
	color: var(--cla-ink);
	font: inherit;
	min-height: 48px;
	padding: 12px 14px;
	width: 100%;
}

.cla-field textarea {
	min-height: 120px;
	resize: vertical;
}

.cla-field input:focus,
.cla-field select:focus,
.cla-field textarea:focus {
	border-color: var(--cla-blue);
	box-shadow: 0 0 0 4px rgba(23, 79, 125, .12);
	outline: none;
}

.cla-consent {
	align-items: flex-start;
	display: flex;
	font-size: .82rem;
	gap: 10px;
	line-height: 1.5;
}

.cla-consent input {
	flex: 0 0 auto;
	height: 20px;
	margin-top: 2px;
	width: 20px;
}

.cla-submit {
	background: var(--cla-gold);
	border: 0;
	border-radius: 999px;
	color: var(--cla-navy);
	cursor: pointer;
	font-size: 1rem;
	font-weight: 800;
	min-height: 52px;
	padding: 14px 28px;
}

.cla-submit:hover {
	background: #ffd15b;
	transform: translateY(-2px);
}

.cla-alert {
	border-radius: 10px;
	margin-bottom: 20px;
	padding: 14px 16px;
}

.cla-alert--success {
	background: #eaf6f0;
	border: 1px solid #afd7c4;
	color: #1f6549;
}

.cla-alert--error {
	background: #fff0f0;
	border: 1px solid #e1b1b1;
	color: #8a2525;
}

.cla-page-hero {
	background: linear-gradient(135deg, var(--cla-navy), #184f7d);
}

.cla-page-hero h1 {
	text-wrap: balance;
}

.cla-legal {
	color: #d8e3ed;
	font-size: .8rem;
	line-height: 1.65;
}

.cla-footer a {
	color: #fff;
}

.cla-footer a:hover {
	color: var(--cla-gold);
}

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

	.cla-hero {
		min-height: 600px;
	}

	.cla-hero .wp-block-cover__background {
		background: linear-gradient(90deg, rgba(7, 29, 52, .96), rgba(7, 29, 52, .76)) !important;
	}
}

@media (max-width: 700px) {
	.cla-topbar .wp-block-group {
		justify-content: center !important;
	}

	.cla-topbar p:last-child {
		display: none;
	}

	.cla-header {
		padding-bottom: 12px !important;
		padding-top: 12px !important;
	}

	.cla-header .wp-block-site-logo img {
		max-width: 190px;
	}

	.cla-hero {
		min-height: 620px;
	}

	.cla-hero .wp-block-cover__image-background {
		object-position: 70% center;
	}

	.cla-hero .wp-block-cover__background {
		background: linear-gradient(90deg, rgba(7, 29, 52, .97), rgba(7, 29, 52, .84)) !important;
	}

	.cla-trust-strip {
		margin-top: -24px !important;
	}

	.cla-form-grid {
		grid-template-columns: 1fr;
	}

	.cla-card,
	.cla-step {
		padding: 26px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	* {
		transition-duration: .01ms !important;
	}
}

/* TitleBucks-inspired visual refresh */
:root {
	--cla-navy: #2f342b;
	--cla-blue: #4d7c2d;
	--cla-gold: #ffe343;
	--cla-gold-dark: #e0bd18;
	--cla-ink: #2f342b;
	--cla-muted: #5c6257;
	--cla-cream: #fff8c7;
	--cla-surface: #f3f3ee;
	--cla-border: #d6d8cf;
	--cla-success: #79b845;
	--cla-radius: 5px;
	--cla-shadow: 0 8px 18px rgba(47, 52, 43, .18);
}

body {
	background: #fff;
	color: var(--cla-ink);
	font-family: Arial, Helvetica, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.wp-block-navigation-item__content,
.wp-block-button__link,
.cla-submit {
	font-family: "Arial Narrow", "Roboto Condensed", Impact, Arial, sans-serif;
	font-stretch: condensed;
	letter-spacing: .015em;
	text-transform: uppercase;
}

.cla-brandbar {
	border-top: 5px solid var(--cla-success);
}

.cla-brandbar .wp-block-site-logo img {
	max-width: 265px;
}

.cla-header-actions {
	gap: 14px;
}

.cla-header-actions p {
	font-size: .95rem;
	margin: 0;
}

.cla-header-actions a {
	color: #4a5145;
}

.cla-apply-button .wp-block-button__link {
	background: #d93637 !important;
	color: #fff !important;
	min-height: 44px;
	padding: 10px 24px;
}

.cla-header {
	background: var(--cla-gold);
	box-shadow: inset 0 -4px 0 rgba(121, 184, 69, .45);
	min-height: 54px;
}

.cla-header .wp-block-navigation {
	min-height: 54px;
}

.cla-header .wp-block-navigation-item__content {
	color: #2f342b;
	font-size: .95rem;
	font-weight: 900;
	padding: 17px 22px;
}

.cla-header .wp-block-navigation-item__content:hover,
.cla-header .current-menu-item > .wp-block-navigation-item__content {
	background: rgba(255, 255, 255, .42);
	color: #2f342b;
}

.cla-hero {
	background:
		radial-gradient(circle at 18% 45%, rgba(255, 255, 255, .17), transparent 28%),
		linear-gradient(115deg, #72ae3f, #8bc34d);
	min-height: 700px;
	overflow: hidden;
	position: relative;
}

.cla-hero::after {
	background: rgba(255, 255, 255, .13);
	border-radius: 50%;
	content: "";
	height: 440px;
	left: -150px;
	position: absolute;
	top: 165px;
	width: 440px;
}

.cla-hero-grid {
	gap: 36px;
	margin-bottom: 0;
	min-height: 700px;
	position: relative;
	z-index: 2;
}

.cla-hero-copy {
	align-self: stretch !important;
	min-height: 700px;
	padding-top: 52px;
	position: relative;
}

.cla-hero-text {
	background: linear-gradient(90deg, rgba(123, 183, 68, 1) 0%, rgba(123, 183, 68, .98) 82%, rgba(123, 183, 68, 0) 100%);
	box-sizing: border-box;
	margin-left: 0 !important;
	max-width: 610px !important;
	padding: 18px 85px 26px 0;
	position: relative;
	width: 72%;
	z-index: 5;
}

.cla-hero .cla-eyebrow {
	color: #263022;
	font-size: .9rem;
	font-weight: 900;
	margin-bottom: 10px;
}

.cla-hero h1 {
	color: #fff;
	font-size: clamp(3rem, 4.35vw, 4.6rem) !important;
	line-height: .98;
	margin-bottom: 14px;
	max-width: 560px;
	position: relative;
	text-shadow: 0 2px 0 rgba(47, 52, 43, .18);
	z-index: 3;
}

.cla-hero-text > p.has-large-font-size {
	color: #263022;
	font-size: 1.2rem !important;
	line-height: 1.35;
	max-width: 440px !important;
	position: relative;
	z-index: 3;
}

.cla-hero-cutout {
	bottom: -55px;
	margin: 0 !important;
	max-width: 680px;
	position: absolute;
	right: -45px;
	width: 74%;
	z-index: 1;
}

.cla-hero-cutout img {
	display: block;
	width: 100%;
}

.cla-hero-form {
	align-self: center !important;
	filter: drop-shadow(0 12px 15px rgba(45, 52, 39, .25));
	max-width: 430px;
}

.cla-form-heading {
	background: var(--cla-gold);
	border-radius: 8px 8px 0 0;
	padding: 15px 24px 12px;
	text-align: center;
}

.cla-form-heading h2 {
	font-size: 1.55rem;
	margin: 0;
}

.cla-form-heading p {
	font-size: .85rem;
	margin: 2px 0 0;
}

.cla-hero-form .cla-form-card {
	border: 0;
	border-radius: 0 0 8px 8px;
	box-shadow: none;
	padding: 20px 20px 18px;
}

.cla-hero-form .cla-form {
	gap: 12px;
}

.cla-hero-form .cla-form-grid {
	gap: 10px 12px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cla-hero-form .cla-field label {
	font-size: .76rem;
	margin-bottom: 3px;
}

.cla-hero-form .cla-field input,
.cla-hero-form .cla-field select {
	border-radius: 2px;
	font-size: .88rem;
	min-height: 40px;
	padding: 8px 9px;
}

.cla-hero-form .cla-consent {
	font-size: .67rem;
	line-height: 1.35;
}

.cla-hero-form .cla-submit {
	background: var(--cla-success);
	border-radius: 4px;
	color: #fff;
	font-size: 1.25rem;
	min-height: 48px;
}

.cla-hero-form .has-small-font-size {
	display: none;
}

.wp-block-button__link,
.cla-submit {
	border-radius: 4px;
	box-shadow: 0 3px 0 rgba(47, 52, 43, .24);
	font-weight: 900;
}

.wp-block-button__link {
	background: var(--cla-success);
	color: #fff;
}

.cla-trust-strip {
	background: #fff;
	margin-top: 0 !important;
	padding-bottom: 0;
	padding-top: 34px;
}

.cla-trust-card {
	border: 0;
	border-left: 8px solid var(--cla-gold);
	border-radius: 0;
	box-shadow: 0 3px 12px rgba(47, 52, 43, .12);
	padding: 20px 22px;
}

.cla-trust-card h3 {
	font-size: 1.15rem !important;
	margin-bottom: 4px;
}

.cla-trust-card p {
	font-size: .92rem;
	margin-top: 0;
}

.cla-section {
	padding-bottom: clamp(58px, 7vw, 92px);
	padding-top: clamp(58px, 7vw, 92px);
}

.cla-section-heading {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.cla-section-heading .cla-eyebrow {
	color: #5d9b35 !important;
	font-weight: 900 !important;
}

.cla-card,
.cla-step {
	border: 0;
	border-radius: 4px;
	box-shadow: 0 5px 16px rgba(47, 52, 43, .12);
	overflow: hidden;
	position: relative;
}

.cla-card::before,
.cla-step::before {
	background: var(--cla-gold);
	content: "";
	height: 7px;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
}

.cla-icon,
.cla-step-number {
	background: var(--cla-success);
	border-radius: 3px;
	color: #fff;
}

.cla-band {
	background: #343a30;
	border-bottom: 8px solid var(--cla-gold);
	border-top: 8px solid var(--cla-success);
}

.cla-page-hero {
	background:
		radial-gradient(circle at 75% 35%, rgba(255, 255, 255, .15), transparent 24%),
		linear-gradient(120deg, #6da83d, #8bc34d);
	border-bottom: 8px solid var(--cla-gold);
}

.cla-page-hero h1,
.cla-page-hero h2 {
	color: #fff !important;
	text-shadow: 0 2px 0 rgba(47, 52, 43, .2);
}

.cla-page-hero .cla-eyebrow {
	color: #253020 !important;
}

.cla-checklist li::before {
	background: var(--cla-success);
	color: #fff;
}

.cla-footer {
	border-top: 8px solid var(--cla-gold);
}

@media (max-width: 960px) {
	.cla-header .wp-block-navigation-item__content {
		padding-left: 13px;
		padding-right: 13px;
	}

	.cla-hero-grid {
		gap: 20px;
	}

	.cla-hero h1 {
		font-size: clamp(2.7rem, 5vw, 3.8rem) !important;
		max-width: 480px;
	}

	.cla-hero-text {
		padding-right: 65px;
		width: 76%;
	}

	.cla-hero-cutout {
		right: -55px;
		width: 78%;
	}
}

@media (max-width: 781px) {
	.cla-brandbar .wp-block-site-logo img {
		max-width: 205px;
	}

	.cla-header-actions p {
		display: none;
	}

	.cla-header {
		min-height: 48px;
	}

	.cla-header .wp-block-navigation {
		justify-content: flex-end !important;
		min-height: 48px;
	}

	.cla-header .wp-block-navigation__responsive-container.is-menu-open {
		background: var(--cla-gold) !important;
		padding: 28px;
	}

	.cla-hero,
	.cla-hero-grid {
		min-height: 0;
	}

	.cla-hero-grid {
		padding-bottom: 44px;
		padding-top: 34px;
	}

	.cla-hero-copy {
		min-height: 590px;
		padding-top: 0;
	}

	.cla-hero-text {
		background: linear-gradient(180deg, rgba(123, 183, 68, 1) 0%, rgba(123, 183, 68, .96) 83%, rgba(123, 183, 68, 0) 100%);
		max-width: none !important;
		padding: 10px 0 70px;
		width: 100%;
	}

	.cla-hero h1 {
		font-size: clamp(2.75rem, 12vw, 4.3rem) !important;
		max-width: 620px;
	}

	.cla-hero-cutout {
		bottom: -55px;
		left: 50%;
		max-width: 680px;
		right: auto;
		transform: translateX(-50%);
		width: 92%;
	}

	.cla-hero-form {
		margin-left: auto;
		margin-right: auto;
		max-width: 560px;
		width: 100%;
	}
}

@media (max-width: 540px) {
	.cla-brandbar {
		padding-left: 14px !important;
		padding-right: 14px !important;
	}

	.cla-brandbar .wp-block-site-logo img {
		max-width: 175px;
	}

	.cla-apply-button .wp-block-button__link {
		font-size: .85rem;
		padding: 8px 14px;
	}

	.cla-hero-copy {
		min-height: 500px;
	}

	.cla-hero h1 {
		font-size: clamp(2.35rem, 13vw, 3.5rem) !important;
	}

	.cla-hero-text > p.has-large-font-size {
		font-size: 1.05rem !important;
		max-width: 330px !important;
	}

	.cla-hero-cutout {
		bottom: -30px;
		width: 105%;
	}

	.cla-hero-form .cla-form-grid {
		grid-template-columns: 1fr;
	}
}
