/* ==========================================================================
   HEADER CUSTOM CSS  —  Edmonton DPF brand theme
   Save this file as: /css/header-custom.css inside your theme folder
   Colors pulled from your old style.css theme variables:
     --primary-color:   #fbac25  (orange/gold)
     --secondary-color: #e3f0ff  (light blue, used sparingly)
     dark navy/black gradient background (matches your old .navbar-default)
   ========================================================================== */

:root {
	--dpf-primary: #fbac25;
	--dpf-primary-dark: #f3921a;
	--dpf-secondary: #e3f0ff;
	--dpf-navy-1: #060d1a;
	--dpf-navy-2: #142d54;
	--dpf-text-light: #ffffff;
	--dpf-text-muted: rgba(255, 255, 255, 0.7);
}

.site-header {
	width: 100%;
	z-index: 999;
	font-family: "Poppins", sans-serif;
}

.site-header .container {
	max-width: 1300px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ---------- TOP ROW ---------- */

.header-top {
	background: linear-gradient(90deg, var(--dpf-navy-1) 0%, var(--dpf-navy-2) 50%, var(--dpf-navy-1) 100%);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-top-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: nowrap;
	padding: 16px 20px;
	gap: 24px;
}

.logo-block {
	flex: 0 0 auto;
}

.logo-block img {
	max-height: 46px;
	width: auto;
	display: block;
}

/* ---------- SEARCH BLOCK (FiboSearch) ---------- */
.header-search-block {
	flex: 1 1 auto;
	max-width: 720px;
	min-width: 200px;
}

/* Generic wrapper reset so the FiboSearch widget stretches full width */
.header-search-block .dgwt-wcas-search-wrapp,
.header-search-block form {
	width: 100% !important;
}

.header-search-block input[type="search"],
.header-search-block input[type="text"],
.header-search-block .dgwt-wcas-search-input {
	width: 100%!important;
	height: 40px!important;
	border: 1px solid rgba(255, 255, 255, 0.15)!important;
	border-radius: 5px;
	padding: 0 16px;
	font-size: 15px!important;
	color: #222!important;

	outline: none;
	box-sizing: border-box;
}

.header-search-block input::placeholder {
	color: #9b9b9b;
}
.header-search-block button.dgwt-wcas-search-submit{min-height: 20px!important;min-width: 20px!important;height: 20px!important;width: 20px!important;top: 21px!important;}
.header-search-block button.dgwt-wcas-search-submit svg{width: 15px!important; height: 15px!important;}

/* FiboSearch's built-in magnifier button — recolored to the brand orange.
   NOTE: FiboSearch markup/class names can differ slightly by version.
   If the button doesn't pick up this style, right-click > Inspect the
   search button on your live site and adjust the selector below. */
.header-search-block .dgwt-wcas-icon-magnifier {
	color: var(--dpf-primary) !important;
	background: transparent !important;
}
.dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp{
	background: transparent !important;
}

/* ---------- RIGHT BLOCK (Call us / Currency / Account / Cart) ---------- */

.header-right-block {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 26px;
	white-space: nowrap;
}

.call-us-block {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.call-us-label {
	font-size: 13px;
	color: var(--dpf-text-muted);
	font-weight: 500;
}

.call-us-number {
	font-size: 15px;
	font-weight: 700;
	color: var(--dpf-text-light);
	text-decoration: none;
}

/* Optional phone icon — add <i class="fa-solid fa-phone call-icon"></i>
   right before the number in header.php if you want the icon shown
   in the screenshot (see notes at the bottom of this file). */
.call-us-number .call-icon {
	color: var(--dpf-primary);
	margin-right: 8px;
}

.call-us-number:hover {
	color: var(--dpf-primary);
}

.currency-switcher-block,
.currency-fallback {
	font-size: 14px;
	font-weight: 600;
	color: var(--dpf-text-light);
	display: flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
}

.currency-fallback i {
	color: var(--dpf-primary);
}

/* ---------- FOX / WOOCS currency switcher (real plugin classes) ---------- */

/* Confirmed from the plugin's own template files:
   - form wrapper:      .woocommerce-currency-switcher-form
   - "select" mode:      a plain <select class="woocommerce-currency-switcher">
   - "wSelect" skin:     .wSelect > .wSelect-selected (current pick)
                         + .wSelect-options-holder > .wSelect-options > .wSelect-option (list)
   - "flags" mode:       plain <a class="woocs_flag_view_item"><img></a> per currency,
                         with NO size constraints of its own. */

.currency-switcher-block .woocommerce-currency-switcher-form {
	margin: 0;
}

/* Plain <select> dropdown mode */
.currency-switcher-block select.woocommerce-currency-switcher {
	background: transparent;
	color: var(--dpf-text-light);
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 4px;
	padding: 6px 10px;
	font-size: 13px;
	font-weight: 600;
	max-width: 140px;
}

.currency-switcher-block select.woocommerce-currency-switcher option {
	color: #111;
}

/* wSelect skin mode */
.currency-switcher-block .wSelect {
	min-width: 90px !important;
	max-width: 140px !important;
	color: var(--dpf-text-light);
	font-size: 13px;
	font-weight: 600;
}

.currency-switcher-block .wSelect-selected {
	background-size: 20px !important;
	padding-left: 26px !important;
	color: var(--dpf-text-light);
}

.currency-switcher-block .wSelect-options-holder {
	min-width: 140px !important;
	max-width: 180px !important;
	background: #ffffff !important;
	color: #111;
	z-index: 1000 !important;
}

.currency-switcher-block .wSelect-option-value {
	background-size: 20px !important;
	padding-left: 26px !important;
	color: #111;
	font-size: 13px;
}

/* Flags mode — force every flag image to a small consistent size no
   matter how large the source image actually is. */
.currency-switcher-block .woocs_flag_view_item {
	display: inline-flex !important;
	margin: 0 3px !important;
}

.currency-switcher-block .woocs_flag_view_item img {
	width: 22px !important;
	height: auto !important;
	max-width: 22px !important;
	display: block !important;
	border-radius: 2px;
}

.currency-switcher-block .woocs_flag_view_item_current img {
	outline: 2px solid var(--dpf-primary);
	outline-offset: 1px;
}

/* ---------- ddSlick mode (the one on your live site right now) ----------
   Rebuilt to be minimal: a slim outlined pill (not a solid white block)
   that sits quietly in the dark header next to the account/cart icons,
   with the flag + text vertically centered and truncated so it can never
   blow out no matter how long the currency's admin-configured name is. */

.currency-switcher-block .dd-container {
	position: relative;
	display: inline-flex;
	align-items: center;
	max-width: 108px !important;
	width: auto !important;
}

.currency-switcher-block .dd-select {
	display: block;
	width: 100%;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.06);
	transition: border-color 250ms ease-in-out, background 250ms ease-in-out;
}

.currency-switcher-block .dd-select:hover {
	border-color: var(--dpf-primary);
	background: rgba(255, 255, 255, 0.1);
}

.currency-switcher-block a.dd-selected {
	display: flex !important;
	align-items: center !important;
	gap: 6px !important;
	padding: 5px 22px 5px 10px !important;
	min-height: 30px;
	color: var(--dpf-text-light) !important;
	font-size: 12px !important;
	white-space: nowrap;
	position: relative;
}

.currency-switcher-block .dd-selected-image,
.currency-switcher-block .dd-option-image {
	width: 16px !important;
	height: 12px !important;
	max-width: 16px !important;
	max-height: 12px !important;
	object-fit: cover !important;
	display: inline-block !important;
	flex: 0 0 auto;
	border-radius: 1px;
}

/* Truncated so a long admin-entered name/code never breaks the pill.
   For the cleanest look, also shorten each currency's "Name" field in
   the FOX admin (Currencies tab) to just the code, e.g. "USD" / "CAD"
   instead of "USD, USD $" — CSS can hide overflow but can't rewrite
   the text itself. */
.currency-switcher-block .dd-selected-text,
.currency-switcher-block .dd-option-text {
	font-size: 12px !important;
	color: inherit !important;
	font-weight: 600;
	line-height: 14px !important;
	margin-bottom: 0;
	max-width: 56px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.currency-switcher-block a.dd-option .dd-option-text {
	color: #111 !important;
	max-width: 90px;
}

/* Hide the description text entirely — it's internal plugin metadata,
   not something meant to be shown as a caption in your header. */
.currency-switcher-block .dd-selected-description,
.currency-switcher-block .dd-option-description {
	display: none !important;
}

/* Minimal chevron instead of the plugin's default arrow graphic */
.currency-switcher-block .dd-pointer {
	position: absolute !important;
	right: 8px !important;
	top: 50% !important;
	width: 0 !important;
	height: 0 !important;
	border: solid 4px transparent !important;
	border-top: solid 4px rgba(255, 255, 255, 0.8) !important;
	border-bottom: none !important;
	background: none !important;
	transform: translateY(-25%);
	transition: transform 200ms ease-in-out;
}

.currency-switcher-block .dd-select.dd-select-opened .dd-pointer,
.currency-switcher-block .dd-container.dd-open .dd-pointer {
	transform: translateY(-25%) rotate(180deg);
}

.currency-switcher-block ul.dd-options {
	position: absolute !important;
	top: calc(100% + 8px) !important;
	right: 0 !important;
	left: auto !important;
	width: 150px !important;
	max-width: 150px !important;
	background: #ffffff !important;
	z-index: 1000 !important;
	margin: 0 !important;
	padding: 4px !important;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
	list-style: none !important;
	border-radius: 8px;
}

.currency-switcher-block a.dd-option {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	padding: 8px 10px !important;
	color: #111 !important;
	font-size: 12px !important;
	background: #fff !important;
	min-height: 34px;
	border-radius: 5px;
}

.currency-switcher-block a.dd-option:hover {
	background: #f4f4f4 !important;
}

/* Highlights whichever currency is currently selected in the open list —
   ddSlick applies this class itself, no markup change needed on your end. */
.currency-switcher-block a.dd-option.dd-option-selected {
	background: var(--dpf-secondary) !important;
	font-weight: 700;
}

.account-block, .cart-block{display: flex !important;}

.account-block a,
.cart-block a {
	color: var(--dpf-text-light);
	font-size: 20px;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: color 300ms ease-in-out;
}
.account-block a svg path,.cart-block a svg path{transition: color 300ms ease-in-out;}
.account-block a:hover,
.cart-block a:hover {
	color: var(--dpf-primary);
}
.account-block a svg:hover path,
.cart-block a svg:hover path {
	fill: var(--dpf-primary);
}

.cart-count {
	position: absolute;
	top: -5px;
	right: -9px;
	background: var(--dpf-primary);
	color: #111;
	font-size: 11px;
	font-weight: 700;
	min-width: 16px;
	height: 16px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 3px;
	line-height: 14px;
	text-align: center;
}

/* Optional "Get in touch" button — matches your old .common-btn look.
   Add markup for it in header.php (see notes at the bottom of this file)
   if you want it to appear like in your reference screenshot. */
.get-in-touch-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: linear-gradient(135deg, #fdc257, var(--dpf-primary-dark));
	color: #111 !important;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	padding: 12px 18px;
	border-radius: 2px;
	transition: all 300ms ease-in-out;
}

.get-in-touch-btn i {
	background: #111;
	color: #fff;
	font-size: 11px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.get-in-touch-btn:hover {
	opacity: 0.9;
	color: #111 !important;
}

/* Hamburger — hidden on desktop, shown on mobile (see media query below) */
.mobile-menu-block {
	display: none;
	font-size: 22px;
	cursor: pointer;
	color: var(--dpf-text-light);
}

.mobile-menu-block:hover {
	color: var(--dpf-primary);
}

/* ---------- BOTTOM ROW (main nav) ---------- */

.header-bottom {
	background: linear-gradient(90deg, var(--dpf-navy-1) 0%, var(--dpf-navy-2) 50%, var(--dpf-navy-1) 100%);
	width: 100%;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.header-bottom .container {
	display: flex;
	align-items: center;
}

#nav-wrap {
	width: 100%;
}

.sf-menu {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.sf-menu > li {
	position: relative;
}

.sf-menu > li > a {
	display: block;
	padding: 16px 18px;
	color: var(--dpf-text-light);
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	text-decoration: none;
	letter-spacing: 0.3px;
	position: relative;
}

/* Underline hover effect, same idea as your old theme */
.sf-menu > li > a::before {
	position: absolute;
	content: "";
	left: 18px;
	right: 18px;
	bottom: 13px;
	height: 1px;
	width: 0;
	background: var(--dpf-primary);
	transition: width 300ms ease-in-out;
}

.sf-menu > li > a:hover,
.sf-menu > li.current-menu-item > a {
	color: var(--dpf-primary);
}

.sf-menu > li > a:hover::before,
.sf-menu > li.current-menu-item > a::before {
	width: calc(100% - 36px);
}

/* Dropdown arrow for items with children */
.sf-menu > li.menu-item-has-children > a::after {
	content: "\f107";
	font-family:'FontAwesome';
	font-weight: 500;
	font-size: 9px;
	margin-left: 6px;
    position: relative;
    top: -2px;margin-left: 6px;
}

/* Submenu (Shop / About Us dropdowns) */
.sf-menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 250px;
	background: var(--dpf-primary);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
	list-style: none;
	margin: 0;
	padding: 8px 0;
	z-index: 1000;
}

.sf-menu li:hover > .sub-menu {
	display: block;
}

.sf-menu .sub-menu li a {
	display: block;
	padding:10px 20px 10px 30px;
	color: #111;
	font-size: 13px;
	font-weight: 500;
	text-transform: none;
	text-decoration: none;
}

.sf-menu .sub-menu li a:hover {
	background: rgba(0, 0, 0, 0.08);
	color: #000;
}

/* ==========================================================================
   RESPONSIVE / MOBILE (roughly matches the mobile reference screenshot)
   ========================================================================== */

@media (max-width: 991px) {

	.header-top-inner {
		flex-wrap: wrap;
		padding: 14px 16px;
		gap: 12px;
	}

	.logo-block {
		order: 1;
	}

	.account-block,
	.cart-block,
	.mobile-menu-block {
		order: 2;
	}

	.call-us-block,
	.get-in-touch-btn {
		display: none; /* hidden on mobile to match the compact mobile header */
	}

	/* Currency switcher stays visible on mobile — just shrunk to fit,
	   and placed in the same row as the account/cart icons */
	.currency-switcher-block {
		order: 2;
		font-size: 12px;
	}

	.currency-switcher-block .wSelect,
	.currency-switcher-block select.woocommerce-currency-switcher,
	.currency-switcher-block .dd-container {
		min-width: 30px !important;
		max-width: 46px !important;
		font-size: 12px;
	}

	.currency-switcher-block a.dd-selected {
		padding: 4px 16px 4px 6px !important;
	}

	.currency-switcher-block .woocs_flag_view_item img {
		width: 18px !important;
		max-width: 18px !important;
	}

	.mobile-menu-block {
		display: flex;
	}

	.header-search-block {order: 3;flex: 1 1 100%;max-width: 100%; border-top: 1px solid rgba(255, 255, 255, 0.08);}

	/* Hide the desktop dropdown bar on mobile — replaced by the slide-out
	   nav that your existing openNav() script controls. */
	.header-bottom {
		display: none;
	}

	.header-right-block {gap: 12px;order: 2;}
	.header-top{padding-top: 5px;}
	.site-header .container{padding: 0 15px;}
	.currency-switcher-block .dd-selected-text{display: none;}
}

@media (max-width: 371px) {
	.currency-switcher-block a.dd-selected{min-height: 23px;padding: 1px 14px 1px 6px !important;}
	.currency-switcher-block .dd-pointer{right: 4px !important;}
	.logo-block img{max-height: 40px;}
}

/* ==========================================================================
   OPTIONAL MARKUP NOTES (no CSS below this line — just reference)
   ==========================================================================

   1) Phone icon before the number, to match your screenshot:
      In header.php, change:
        <?php echo esc_html( get_option('phone_number') ); ?>
      to:
        <i class="fa-solid fa-phone call-icon"></i><?php echo esc_html( get_option('phone_number') ); ?>

   2) "Get in touch" button, to match your screenshot:
      Add this inside .header-right-block in header.php, e.g. right after
      the cart-block div:

        <div class="btn-block">
          <a class="get-in-touch-btn" data-toggle="modal" data-target="#get-a-quote" href="#">
            Get in touch <i class="fa-solid fa-arrow-up-right"></i>
          </a>
        </div>

   3) For the cleanest possible currency pill, shorten the currency
      "Name" field in the FOX plugin admin (Currencies tab) to just the
      code — "USD" / "CAD" — instead of "USD, USD $". The CSS above
      truncates and hides overflow either way, but a short name looks
      best and needs no ellipsis at all.

   Both markup notes above are optional — the CSS already has classes
   ready for them, nothing will break if you leave header.php as-is.
   ========================================================================== */