/**
 * OFleet theme — component stylesheet (ofleet-* classes).
 *
 * Enqueued on the front end and in the block editor (editor-style).
 * Card system, steps, eyebrows, and small utilities. Uses theme.json
 * design tokens via --wp--preset--* custom properties so the palette
 * stays in one place. Never touches the ofld-* plugin classes.
 */

/* ------------------------------------------------------------------ */
/* Cards — white, 1px mist border, 4px brand-red top accent, hover lift */
/* ------------------------------------------------------------------ */

.ofleet-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--mist);
	border-radius: 12px;
	padding: 1.75rem;
	position: relative;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ofleet-card::before {
	content: "";
	position: absolute;
	top: -1px;
	left: -1px;
	right: -1px;
	height: 5px;
	border-radius: 12px 12px 0 0;
	background: var(--wp--preset--color--brand-red);
}

.ofleet-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--wp--preset--shadow--card, 0 12px 28px rgba(26, 26, 26, 0.12));
}

.ofleet-card h3,
.ofleet-card h4 {
	margin-top: 0.25rem;
}

/* Card grid spacing helper (pairs with core Columns). */
.ofleet-card-grid {
	margin-top: 0;
}

/* ------------------------------------------------------------------ */
/* Steps — numbered red discs                                          */
/* ------------------------------------------------------------------ */

.ofleet-step-num {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--wp--preset--color--brand-red);
	color: var(--wp--preset--color--white);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 900;
	font-size: 1.5rem;
	line-height: 1;
	margin: 0 0 1rem;
}

/* ------------------------------------------------------------------ */
/* Eyebrow — small red uppercase label                                 */
/* ------------------------------------------------------------------ */

.ofleet-eyebrow {
	color: var(--wp--preset--color--brand-red);
	font-weight: 700;
	font-size: 0.8125rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin-bottom: 0.5rem;
}

/* ------------------------------------------------------------------ */
/* Stat band — big red numbers                                         */
/* ------------------------------------------------------------------ */

.ofleet-stat-number {
	color: var(--wp--preset--color--brand-red);
	font-weight: 900;
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.1;
	margin: 0 0 0.25rem;
}

.ofleet-stat-label {
	color: var(--wp--preset--color--ink);
	font-size: 0.9375rem;
	margin: 0;
}

/* ------------------------------------------------------------------ */
/* Dividers and misc                                                   */
/* ------------------------------------------------------------------ */

.ofleet-rule {
	border: 0;
	border-top: 3px solid var(--wp--preset--color--brand-red);
	width: 72px;
	margin: 1rem 0 1.5rem;
}

/* Keep the red top accent visible when a card is the first/last child
   inside padded groups. */
.ofleet-card:first-child {
	margin-top: 4px;
}

/* Respect reduced motion for the card hover lift. */
@media (prefers-reduced-motion: reduce) {
	.ofleet-card {
		transition: none;
	}

	.ofleet-card:hover {
		transform: none;
	}
}

/* ------------------------------------------------------------------ */
/* Header — explicit flexbox layout                                   */
/* ------------------------------------------------------------------ */
.ofleet-header .ofleet-header-inner {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 1rem;
	width: 100% !important;
	max-width: 1200px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: 1.5rem !important;
	padding-right: 1.5rem !important;
	box-sizing: border-box !important;
}

.ofleet-header-brand {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	flex-shrink: 0;
}

.ofleet-header-brand img {
	width: 48px;
	height: 48px;
	object-fit: contain;
	display: block;
	transition: transform 0.2s ease-in-out;
}

.ofleet-header-brand:hover img {
	transform: scale(1.05);
}

.ofleet-header-nav {
	margin-left: auto;
	flex-shrink: 0;
}

/* Smooth ease-in-out on the responsive nav menu */
.ofleet-header-nav .wp-block-navigation__responsive-container {
	transition: opacity 0.25s ease-in-out, transform 0.25s ease-in-out;
}

.ofleet-header-nav .wp-block-navigation__responsive-container.is-menu-open {
	animation: ofleet-menu-in 0.25s ease-in-out;
}

@keyframes ofleet-menu-in {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ------------------------------------------------------------------ */
/* Light CTA bands — brand refresh (replaces dark charcoal slabs)    */
/* ------------------------------------------------------------------ */
.has-charcoal-background-color {
	background-color: #ffffff !important;
	color: var(--wp--preset--color--ink) !important;
	border-top: 4px solid var(--wp--preset--color--brand-red);
}

.has-charcoal-background-color.has-white-color,
.has-charcoal-background-color .has-white-color {
	color: var(--wp--preset--color--ink) !important;
}

.has-charcoal-background-color a:not(.wp-block-button__link) {
	color: var(--wp--preset--color--brand-red) !important;
}

.has-charcoal-background-color .wp-block-button__link {
	background-color: var(--wp--preset--color--brand-red) !important;
	color: #ffffff !important;
}

/* ------------------------------------------------------------------ */
/* Footer — explicit grid layout                                       */
/* ------------------------------------------------------------------ */
.ofleet-footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 2.5rem;
	max-width: var(--wp--style--global--content-size, 1200px);
	margin: 0 auto;
	padding: 0 1.5rem;
}

@media (max-width: 781px) {
	.ofleet-footer-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
}

.ofleet-footer-bottom {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	max-width: var(--wp--style--global--content-size, 1200px);
	margin: 2.5rem auto 0;
	padding: 1.5rem 1.5rem 0;
	border-top: 1px solid var(--wp--preset--color--mist);
}

/* ------------------------------------------------------------------ */
/* Home page v2 — card elevations and section rhythm                   */
/* ------------------------------------------------------------------ */

/* Generous vertical rhythm — every section breathes */
.ofleet-hero,
.ofleet-paths,
.ofleet-tools,
.ofleet-why,
.ofleet-faq,
.ofleet-about-cards,
.ofleet-financing-cards,
.ofleet-guide-cards,
.ofleet-kit-cards,
.ofleet-money-cards,
.ofleet-mistake-cards,
.ofleet-quiz-cards,
.ofleet-quote-cards,
.ofleet-dashboard-cards,
.ofleet-contact-cards,
.ofleet-tool-feature {
	padding-top: 5rem !important;
	padding-bottom: 5rem !important;
	padding-left: 1.5rem !important;
	padding-right: 1.5rem !important;
}

.ofleet-contact-band {
	padding-top: 5rem !important;
	padding-bottom: 5rem !important;
	padding-left: 1.5rem !important;
	padding-right: 1.5rem !important;
}

/* Plain content sections (no ofleet-* class) get the same rhythm */
.entry-content > .wp-block-group:not([class*="ofleet-"]):not(.ofleet-direct-answer) {
	padding-top: 5rem !important;
	padding-bottom: 5rem !important;
	padding-left: 1.5rem !important;
	padding-right: 1.5rem !important;
}

/* Deeper card elevation (Material 3 inspired) */
.ofleet-card {
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.08), 0 8px 32px rgba(0, 0, 0, 0.04);
	transition: box-shadow 0.25s ease, transform 0.25s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.ofleet-card:hover {
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.12), 0 16px 48px rgba(0, 0, 0, 0.06);
	transform: translateY(-3px);
}

/* Equal-height cards in a row */
.wp-block-columns .wp-block-column {
	display: flex;
	flex-direction: column;
}

.wp-block-columns .wp-block-column > .ofleet-card {
	flex: 1;
}

/* Push card links to the bottom for visual alignment */
.ofleet-card p:last-child {
	margin-top: auto;
	padding-top: 1rem;
}

.ofleet-card-flat {
	border: 1px solid var(--wp--preset--color--mist);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ofleet-card-flat:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

/* Section depth — subtle separation */
.ofleet-paths,
.ofleet-why {
	box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.04), inset 0 -1px 0 rgba(0, 0, 0, 0.04);
}

.ofleet-eyebrow {
	margin-bottom: 1.25rem;
}

/* ------------------------------------------------------------------ */
/* Direct answer — clean text block with animated accent border        */
/* ------------------------------------------------------------------ */
.ofleet-direct-answer {
	position: relative;
	background: transparent;
	border: none;
	padding: 0.5rem 0 0.5rem 2rem !important;
	max-width: 800px;
}

.ofleet-direct-answer h2 {
	margin-bottom: 1rem;
}

/* Animated red accent bar */
.ofleet-direct-answer::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.5rem;
	bottom: 0.5rem;
	width: 4px;
	border-radius: 4px;
	background: var(--wp--preset--color--brand-red);
	animation: ofleet-border-pulse 3s ease-in-out infinite;
}

@keyframes ofleet-border-pulse {
	0%, 100% {
		opacity: 1;
		box-shadow: 0 0 0 0 rgba(206, 17, 38, 0.2);
	}
	50% {
		opacity: 0.7;
		box-shadow: 0 0 14px 3px rgba(206, 17, 38, 0.12);
	}
}

.ofleet-contact-band {
	box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ofleet-contact-band .wp-block-button__link {
	min-width: 200px;
}

/* Footer top padding */
.ofleet-footer {
	padding-top: 3.5rem !important;
}

/* Social icons in footer */
.ofleet-social-links {
	margin-top: 1rem;
	gap: 0.75rem !important;
}

.ofleet-social-links .wp-social-link {
	background: var(--wp--preset--color--mist) !important;
	color: var(--wp--preset--color--ink) !important;
	transition: background 0.2s ease, transform 0.2s ease;
}

.ofleet-social-links .wp-social-link:hover {
	background: var(--wp--preset--color--brand-red) !important;
	color: #fff !important;
	transform: translateY(-2px);
}

/* Newsletter on dark background */
.ofleet-newsletter-dark .ofn-subscribe {
	max-width: 520px;
	margin: 2rem auto 0;
	padding: 0;
	background: transparent;
	border: none;
	box-shadow: none;
}

.ofleet-newsletter-dark .ofn-form-title {
	display: none; /* Hide duplicate title — the section heading covers it */
}

.ofleet-newsletter-dark .ofn-field {
	margin-bottom: 1.25rem;
}

.ofleet-newsletter-dark .ofn-field label,
.ofleet-newsletter-dark .ofn-segments legend {
	display: block;
	color: rgba(255, 255, 255, 0.9);
	font-weight: 700;
	font-size: 0.95rem;
	margin-bottom: 0.5rem;
}

.ofleet-newsletter-dark .ofn-field input[type="text"],
.ofleet-newsletter-dark .ofn-field input[type="email"] {
	width: 100%;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: #fff;
	border-radius: 10px;
	padding: 0.9rem 1.1rem;
	font-size: 1rem;
	box-sizing: border-box;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.ofleet-newsletter-dark .ofn-field input:focus {
	outline: none;
	border-color: var(--wp--preset--color--brand-red);
	background: rgba(255, 255, 255, 0.12);
}

.ofleet-newsletter-dark .ofn-field input::placeholder {
	color: rgba(255, 255, 255, 0.45);
}

.ofleet-newsletter-dark .ofn-segments {
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 10px;
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
}

.ofleet-newsletter-dark .ofn-seg {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	background: transparent;
	border: none;
	padding: 0;
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.95rem;
	margin-bottom: 0.75rem;
	cursor: pointer;
}

.ofleet-newsletter-dark .ofn-seg:last-child {
	margin-bottom: 0;
}

.ofleet-newsletter-dark .ofn-seg input[type="checkbox"] {
	margin-top: 0.25rem;
	width: 1.1rem;
	height: 1.1rem;
	accent-color: var(--wp--preset--color--brand-red);
	flex-shrink: 0;
}

.ofleet-newsletter-dark .ofn-seg strong {
	color: #fff;
}

.ofleet-newsletter-dark .ofn-seg span {
	display: block;
	color: rgba(255, 255, 255, 0.65);
	font-size: 0.85rem;
}

.ofleet-newsletter-dark .ofn-submit {
	width: 100%;
	background: var(--wp--preset--color--brand-red);
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 1rem;
	font-size: 1.05rem;
	font-weight: 800;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.ofleet-newsletter-dark .ofn-submit:hover {
	background: var(--wp--preset--color--red-dark);
	transform: translateY(-1px);
}

.ofleet-newsletter-dark .ofn-fine {
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.85rem;
	text-align: center;
	margin-top: 1rem;
}

.ofleet-newsletter-dark .req {
	color: var(--wp--preset--color--brand-red);
}

/* ------------------------------------------------------------------ */
/* Image treatments — character and visual interest                   */
/* ------------------------------------------------------------------ */
.ofleet-featured-image img,
.wp-block-post-featured-image img {
	border-radius: 16px;
	box-shadow: 0 12px 28px rgba(26, 26, 26, 0.12);
}

.ofleet-image-card {
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 12px 28px rgba(26, 26, 26, 0.12);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ofleet-image-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 44px rgba(26, 26, 26, 0.16);
}

.ofleet-image-card img {
	display: block;
	width: 100%;
	height: auto;
}

/* Image with caption */
.ofleet-figure {
	margin: 2rem 0;
}

.ofleet-figure img {
	border-radius: 12px;
}

.ofleet-figure figcaption {
	font-size: 0.85rem;
	color: var(--wp--preset--color--ink-soft, #666);
	text-align: center;
	margin-top: 0.75rem;
	font-style: italic;
}

/* Pull quote for character */
.ofleet-pullquote {
	border-left: 4px solid var(--wp--preset--color--brand-red);
	padding: 1rem 0 1rem 1.5rem;
	margin: 2rem 0;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.5;
	color: var(--wp--preset--color--ink);
}

/* Highlight box for key takeaways */
.ofleet-highlight {
	background: var(--wp--preset--color--red-tint, #FBECEE);
	border-radius: 12px;
	padding: 1.5rem;
	margin: 2rem 0;
}

.ofleet-highlight strong {
	color: var(--wp--preset--color--brand-red);
}

/* Newsletter section rhythm */
.ofleet-newsletter {
	padding-top: 5rem !important;
	padding-bottom: 5rem !important;
	padding-left: 1.5rem !important;
	padding-right: 1.5rem !important;
	box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.04), inset 0 -1px 0 rgba(0, 0, 0, 0.04);
}

/* FAQ details styling */
.ofleet-faq details {
	border: 1px solid var(--wp--preset--color--mist);
	border-radius: 8px;
	padding: 1rem 1.25rem;
	margin-bottom: 0.75rem;
	background: #fff;
}

.ofleet-faq details summary {
	font-weight: 700;
	font-size: 1.05rem;
	cursor: pointer;
	list-style: none;
}

.ofleet-faq details summary::-webkit-details-marker {
	display: none;
}

.ofleet-faq details summary::before {
	content: "+";
	display: inline-block;
	width: 1.5rem;
	color: var(--wp--preset--color--brand-red);
	font-weight: 900;
}

.ofleet-faq details[open] summary::before {
	content: "−";
}

.ofleet-faq details p {
	margin-top: 0.75rem;
	color: var(--wp--preset--color--ink-soft);
}

/* Mobile header: compact, prevent crowding */
@media (max-width: 600px) {
	.ofleet-header-inner {
		gap: 0.75rem;
		padding: 0 1rem;
	}
	.ofleet-header-brand img {
		width: 40px;
		height: 40px;
	}
}

/* ------------------------------------------------------------------ */
/* Mobile (hamburger) navigation on ALL screen sizes — site owner      */
/* directive 2026-10-14. Forces the Navigation block's overlay menu    */
/* regardless of viewport width.                                       */
/* ------------------------------------------------------------------ */
.wp-block-navigation__responsive-container-open {
	display: inline-flex !important;
}

@media (min-width: 600px) {
	.wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none !important;
	}
}

/* ------------------------------------------------------------------ */
/* Hamburger icon — classic 3 bars                                     */
/* ------------------------------------------------------------------ */
.wp-block-navigation__responsive-container-open {
	width: 48px;
	height: 48px;
	position: relative;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
}

.wp-block-navigation__responsive-container-open svg {
	display: none;
}

.wp-block-navigation__responsive-container-open::before,
.wp-block-navigation__responsive-container-open::after {
	content: "";
	position: absolute;
	left: 12px;
	right: 12px;
	height: 3px;
	border-radius: 2px;
	background: var(--wp--preset--color--ink);
}

.wp-block-navigation__responsive-container-open::before {
	top: 15px;
	box-shadow: 0 8px 0 var(--wp--preset--color--ink);
}

.wp-block-navigation__responsive-container-open::after {
	bottom: 15px;
}

.wp-block-navigation__responsive-container-open:hover::before,
.wp-block-navigation__responsive-container-open:hover::after {
	background: var(--wp--preset--color--brand-red);
}

.wp-block-navigation__responsive-container-open:hover::before {
	box-shadow: 0 8px 0 var(--wp--preset--color--brand-red);
}

/* ------------------------------------------------------------------ */
/* Overlay (pop-out) menu — full-screen, on-brand                      */
/* ------------------------------------------------------------------ */
.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--white);
	padding: 0;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
	margin: 0 auto;
	max-width: var(--wp--style--global--content-size, 1200px);
	padding: 2rem 1.5rem 3rem;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 0;
	width: 100%;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	border-bottom: 1px solid var(--wp--preset--color--mist);
	width: 100%;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	display: block;
	padding: 1rem 0.5rem;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:focus {
	color: var(--wp--preset--color--brand-red);
	padding-left: 1rem;
}

/* Close button — red X */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	width: 48px;
	height: 48px;
	top: 1rem;
	right: 1.5rem;
	color: var(--wp--preset--color--brand-red);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close svg {
	width: 28px;
	height: 28px;
}
