/*
Theme Name: Power Freight Custom
Theme URI: https://kingcreative.co
Template: hello-elementor
Author: KCC + Elementor Team
Author URI: https://kingcreative.co
Version: 1.1.2
Updated: 2026-11-24 18:49:33

*/


/* ══ Power Freight base (KCC, Nov 24, 2026)
   The site uses a system font stack: no web fonts are loaded.
   Elementor V4 classes and default styles use "font-family: inherit", so every element takes this stack. */
:root {
	--pf-font-stack: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
html { scroll-behavior: smooth; }
body,
button,
input,
select,
textarea {
	font-family: var(--pf-font-stack);
}
body {
	color: #1F2937;
	-webkit-font-smoothing: antialiased;
}
/* KCC rule: every heading in Title Case */
h1, h2, h3, h4, h5, h6 {
	text-transform: capitalize;
}
/* Anchor links land below the sticky header */
[id] {
	scroll-margin-top: 84px;
}
@media (max-width: 1024px) {
	[id] { scroll-margin-top: 84px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

/* Sticky header (the Theme Builder header wrapper) */
.elementor-location-header {
	position: sticky;
	top: 0;
	z-index: 99;
}
.admin-bar .elementor-location-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .elementor-location-header { top: 46px; } }
/* Mobile menu (V4 accordion): hide the default marker */
.pf-mobile-menu summary { list-style: none; cursor: pointer; }
.pf-mobile-menu summary::-webkit-details-marker { display: none; }

/* Narrow desktops (1025 to 1280px): drop the header phone so the menu fits */
@media (min-width: 1025px) and (max-width: 1280px) {
	.elementor-location-header nav ~ * a[href^="tel:"] { display: none; }
}

/* ══ Header: transparent over the hero, dark once scrolled (Bart, Nov 24, 2026)
   Dark style everywhere; on the front page the header sits over the hero and is clear until the visitor scrolls.
   The script in functions.php adds "pf-scrolled" to <html> and sets --pf-header-h. */
body .elementor-location-header .site-header {
	background-color: #0F2259;
	border-bottom-color: transparent;
	box-shadow: 0 2px 12px rgba(15, 34, 89, 0.25);
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.elementor-location-header .site-header a:not(.e-button-base),
.elementor-location-header .site-header summary,
.elementor-location-header .site-header summary span {
	color: #FFFFFF;
}
.elementor-location-header .site-header a:not(.e-button-base):hover,
.elementor-location-header .site-header a:not(.e-button-base):focus-visible {
	color: #F26531;
}
.elementor-location-header .mobile-menu-panel {
	background-color: #0F2259;
}
body .elementor-location-header .site-header svg,
body .elementor-location-header .site-header .e-svg-base {
	color: #FFFFFF;
}
body .elementor-location-header .e-accordion-base,
body .elementor-location-header .mobile-link {
	border-color: rgba(255, 255, 255, 0.18);
}
/* Front page, top of the page: clear header over the hero photo */
.home .elementor-location-header {
	margin-bottom: calc(-1 * var(--pf-header-h, 85px));
}
.home #home {
	padding-top: calc(var(--pf-header-h, 85px) + 80px);
}
html:not(.pf-scrolled) body.home .elementor-location-header .site-header:not(:has(details[open])) {
	background-color: transparent;
	box-shadow: none;
}
html:not(.pf-scrolled) .home .elementor-location-header .mobile-menu-panel {
	background-color: transparent;
}
@media (prefers-reduced-motion: reduce) {
	.elementor-location-header .site-header { transition: none; }
}

/* ══ Tablet and phone: logo and menu icon on one line (Bart, Nov 24, 2026)
   The menu toggle (accordion summary) is lifted into the logo row; the menu panel still opens full width below it. */
@media (max-width: 1024px) {
	body .elementor-location-header .site-header { position: relative; }
	body .elementor-location-header .site-header .e-accordion-base,
	body .elementor-location-header .site-header .e-accordion-base details {
		position: static;
		border-top: 0;
	}
	body .elementor-location-header .site-header summary {
		position: absolute;
		top: 0;
		right: 12px;
		height: 64px;
		width: 48px;
		padding: 0;
		justify-content: center;
		align-items: center;
	}
	body .elementor-location-header .site-header summary .e-paragraph-base {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
	body .elementor-location-header .site-header summary svg { width: 26px; height: 26px; }
	body .elementor-location-header .site-header details[open] > :not(summary) {
		border-top: 1px solid rgba(255, 255, 255, 0.18);
	}
}

/* ══ Hero: full screen height at every width (Bart, Nov 24, 2026)
   svh keeps phones from jumping when the browser bar shows or hides; vh is the fallback. */
.home #home {
	min-height: 100vh;
	min-height: 100svh;
}
@media (max-width: 767px) {
	body.home #home {
		padding-top: calc(var(--pf-header-h, 65px) + 32px);
		padding-bottom: 40px;
	}
}

/* ══ Section headlines on phones (Bart, Nov 24, 2026)
   The headlines are now full sentences, so phones get a smaller size to keep each to about three or four lines. */
@media (max-width: 767px) {
	body .elementor-71 h2.e-heading-base {
		font-size: 26px;
		line-height: 1.2;
		letter-spacing: -0.3px;
	}
}

/* ══ Icons: keep every inline SVG inside its icon box (Bart, Nov 24, 2026)
   The icon SVGs carry no width or height of their own, so some browsers can draw them larger than the box. */
body .elementor-71 .promise-icon svg,
body .elementor-71 .icon-svg svg {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
}
body .elementor-71 .promise-icon,
body .elementor-71 .icon-svg {
	overflow: hidden;
	flex: 0 0 auto;
}
