/* ==========================================================================
   SMART RETRACT BRAND LAYER
   Source: "Smart Retract Style and Design Guide for Digital and Print 5-5-24"
   Loaded last on every front-end page (functions.php) so the DTC templates,
   the store and the product page follow one brand system.

   What it sets (and only this - layouts are left to each template):
     1. Brand colour tokens (Table 1)
     2. Headings: H1/H2 Source Sans Light, H3 SemiBold (Table 2)
     3. Body links: Orange 3, underlined; hover drops the underline (Table 4)
     4. Primary buttons: 5px corners, Orange 3, hover Blue 4 (Table 14)
     5. Expansion boxes (FAQ / accordions): Gray 1, 5px corners,
        hover underline, open = Orange 3 with white text (Table 16)
   ========================================================================== */

:root {
	--sr-blue-1: #E5F8FF;  --sr-blue-2: #D5F5FF;  --sr-blue-3: #00A9E0;
	--sr-blue-4: #0094CC;  --sr-blue-5: #006F99;
	--sr-tan-1: #EDE1D1;   --sr-tan-2: #C6AA76;
	--sr-orange-1: #FFECE5; --sr-orange-2: #FFC7B2; --sr-orange-3: #FE5000;
	--sr-gray-1: #F0F0F0;  --sr-gray-2: #7F7F7F;  --sr-gray-3: #333333;
	--sr-gray-4: #101820;  --sr-gray-5: #ACA39A;
	--sr-yellow-1: #FBFF00; --sr-yellow-2: #FFE900;
	--sr-radius: 5px;
}

/* --------------------------------------------------------------------------
   2. Headings - Light H1/H2, SemiBold H3. Colour is left to each section so
   white headings on dark bands stay white. Bold words inside a heading
   (<strong>/<b>) keep their emphasis.
   ------------------------------------------------------------------------ */
/* :not(#sr) adds ID-level weight so these win over the templates' own
   !important heading rules, including the ID-scoped ones on DTC Home V3. */
body .page-main h1:not(#sr),
body .page-main h2:not(#sr) {
	font-weight: 300 !important;
	letter-spacing: normal !important;
}
body .page-main h1:not(#sr) :is(strong, b),
body .page-main h2:not(#sr) :is(strong, b) { font-weight: 600 !important; }
body .page-main h3:not(#sr) { font-weight: 600 !important; }

/* --------------------------------------------------------------------------
   3. Body links (plain text links only - buttons and cards keep their style)
   ------------------------------------------------------------------------ */
body .page-main :is(p, li, dd, td) > a:not([class]) {
	color: var(--sr-orange-3) !important;
	text-decoration: underline !important;
}
body .page-main :is(p, li, dd, td) > a:not([class]):hover { text-decoration: none !important; }
body .page-main :is(p, li, dd, td) > a:not([class]):visited { color: var(--sr-blue-5) !important; }

/* --------------------------------------------------------------------------
   4. Buttons - brand corner radius (5px). Colours were aligned in each
   template (Orange 3, hover Blue 4); this evens out the shapes.
   ------------------------------------------------------------------------ */
body .page-main :is(
	.dtc-gu-btn,
	.v2-hero-btn-primary, .v2-hero-btn-ghost,
	.rag-wir-btn, .rag-sg-btn, .rag-bg-btn-orange, .rag-cg-btn, .rag-xw-btn,
	.rag-dark-guarantee-btn-primary, .rag-dark-guarantee-btn-ghost,
	.dtc-btn-orange, .dtc-btn-ghost,
	.dfq-cta-btn, .dg-cta-btn, .dg-btn-primary, .dg-btn-ghost,
	.dvr-order-btn, .dvr-cta-btn,
	.single_add_to_cart_button
):not(#sr),
body #dtc-v3 .v3-btn:not(#sr),
body #dtc-v3 .v3-cap em:not(#sr) {
	border-radius: var(--sr-radius) !important;
}
body .page-main :is(.rag-wir-btn, .rag-dark-guarantee-btn-primary, .dtc-btn-orange, .dfq-cta-btn, .dg-cta-btn, .dg-btn-primary, .dvr-order-btn, .dvr-cta-btn, .single_add_to_cart_button):not(#sr):hover {
	background: var(--sr-blue-4) !important;
	color: #fff !important;
}

/* --------------------------------------------------------------------------
   5. Expansion boxes (FAQ + product accordions)
   ------------------------------------------------------------------------ */
body .page-main :is(.dtc-faq-btn, .mpi-acc-btn, .dtc-gu-faq-q) {
	background: var(--sr-gray-1) !important;
	border-radius: var(--sr-radius) !important;
	padding: 12px 16px !important;
	min-height: 32px;
	margin-top: 8px !important;
	color: #000 !important;
	text-decoration: none;
	transition: background .15s, color .15s;
}
body .page-main :is(.dtc-faq-btn, .mpi-acc-btn, .dtc-gu-faq-q):hover > span:first-child,
body .page-main :is(.dtc-faq-btn, .mpi-acc-btn, .dtc-gu-faq-q):hover { text-decoration: underline; }
body .page-main :is(.dtc-faq-btn, .dtc-gu-faq-q)[aria-expanded="true"],
body .page-main .mpi-acc.is-open > .mpi-acc-btn {
	background: var(--sr-orange-3) !important;
	color: #fff !important;
}
body .page-main :is(.dtc-faq-btn, .dtc-gu-faq-q)[aria-expanded="true"] *,
body .page-main .mpi-acc.is-open > .mpi-acc-btn * { color: #fff !important; }
body .page-main :is(.dtc-faq-btn, .dtc-gu-faq-q)[aria-expanded="true"] + *,
body .page-main .mpi-acc.is-open > .mpi-acc-body { padding-left: 16px; padding-right: 16px; }

@media (prefers-reduced-motion: reduce) {
	body .page-main :is(.dtc-faq-btn, .mpi-acc-btn, .dtc-gu-faq-q) { transition: none; }
}

/* --------------------------------------------------------------------------
   6. Top announcement bar (tagline + language + Checkout + Order Your Gate)
   Was light Blue 3 with dark text. Now Gray 4 (the brand's darkest neutral)
   so the orange "Order Your Gate" button stands out, the white nav below
   reads as one clean header, and the Blue 3 is kept for accents only.
   Desktop only - the theme already hides this bar on phones.
   ------------------------------------------------------------------------ */
html body header.rag-topbar-header,
html body header.header-wrapper.rag-topbar-header {
	background: var(--sr-gray-4) !important;
	border-bottom: 1px solid rgba(255, 255, 255, .06) !important;
}
html body .rag-topbar-inner { padding-top: 6px !important; padding-bottom: 6px !important; }
html body .rag-topbar-tagline {
	color: rgba(255, 255, 255, .86) !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	letter-spacing: .01em !important;
}
html body .rag-topbar-link,
html body .rag-topbar-link:visited {
	color: #fff !important;
	font-size: 13px !important;
	font-weight: 600 !important;
}
html body .rag-topbar-link:hover { color: var(--sr-blue-3) !important; text-decoration: none !important; }
html body .rag-topbar-cart-btn {
	background: var(--sr-orange-3) !important;
	color: #fff !important;
	border-radius: var(--sr-radius) !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	padding: 6px 16px !important;
}
html body .rag-topbar-cart-btn:hover { background: var(--sr-blue-4) !important; color: #fff !important; }
html body .rag-topbar-lang .gt_switcher .gt_selected a { border-radius: var(--sr-radius) !important; }

/* --------------------------------------------------------------------------
   7. MAIN MENU BAR - white, the theme default  [restored 2026-09]
   This bar was overridden to Blue 5 (#006F99) with a flattened white logo and
   white links. Reverted to the mockup: the bar is the theme's white nav again
   (#fff, #e8f0f6 hairline, soft shadow), the logo goes back to the native
   black + orange artwork, links are Gray 3 / #4a5568 with Orange 3 (#FE5000)
   on hover and on the current item, and the View Cart pill stays orange.
   No filter is applied to the logo any more, so the PNG's own colours show.
   style.css already carries these values - they are restated here so the white
   bar is explicit and no later layer can put the blue back.
   ------------------------------------------------------------------------ */
html body nav,
html body nav.rag-main-nav {
	background: #fff !important;
	border-bottom: 1px solid #e8f0f6 !important;
	box-shadow: 0 1px 8px rgba(0, 0, 0, .06) !important;
}

/* Menu links */
html body nav.rag-main-nav .menu > li > a {
	color: #4a5568 !important;
	box-shadow: none !important;
}
/* Orange is the one accent: hover + current item */
html body nav.rag-main-nav .menu > li > a:hover,
html body nav.rag-main-nav .menu > li.current-menu-item > a,
html body nav.rag-main-nav .menu > li.current-menu-ancestor > a,
html body nav.rag-main-nav .menu > li.current_page_item > a {
	color: var(--sr-orange-3) !important;
	box-shadow: none !important;
}
html body nav.rag-main-nav .menu > li.current-menu-item > a,
html body nav.rag-main-nav .menu > li.current-menu-ancestor > a,
html body nav.rag-main-nav .menu > li.current_page_item > a { font-weight: 600 !important; }

/* Logo - native black + orange lockup (no filter); hamburger back to dark */
html body .rag-nav-logo img { filter: none !important; }
html body .rag-hamburger-icon span { background: #334155 !important; }
html body .rag-hamburger-label { color: #334155 !important; }

/* Mobile: white nav bar, white slide-out menu, light "set back" sub-item rows */
@media (max-width: 1023px) {
	html body nav,
	html body nav.rag-main-nav {
		background: #fff !important;
		border-bottom: 1px solid #e8f0f6 !important;
	}
}
html body .rag-mobile-menu {
	background: #fff !important;
	border-top: 1px solid #e8f0f6 !important;
}
html body .rag-mobile-menu ul li a {
	color: #334155 !important;
	border-bottom: 1px solid #f1f5f9 !important;
}
html body .rag-mobile-menu ul li a:hover,
html body .rag-mobile-menu ul li.current-menu-item > a { color: var(--sr-orange-3) !important; }
html body .rag-mobile-menu ul li ul li a {
	color: #64748b !important;
	background: #f8fafc !important;
	border-bottom: 1px solid #f1f5f9 !important;
}
html body .rag-mobile-menu ul li ul li a:hover,
html body .rag-mobile-menu ul li ul li.current-menu-item > a { color: var(--sr-orange-3) !important; }
