/*
 * New design (v3) across the whole site, 2026-10-10. Loaded only when the "swifty_v3_sitewide" option is on
 * (includes/v3-site.php). Light header and footer, plus a light skin for the existing blocks, matching the new home
 * page (assets/css/home-v3.css). Block markup is unchanged, so every block stays editable as before.
 */
body.v3-site {
	--ink: #231f20; --text: #3b3738; --muted: #6b6567; --line: #ebe6de; --soft: #faf7f2;
	--amber: #fbb615; --amber-2: #ffc63d; --amber-soft: #fff3d1; --bronze: #8a5310;
	--font: urw-din, urw-din-fb, "Helvetica Neue", Arial, sans-serif;
	--r: 14px; --r-lg: 22px; --shadow: 0 1px 2px rgba(35, 31, 32, .06), 0 12px 32px rgba(35, 31, 32, .08);
	font-family: var(--font); color: var(--text); -webkit-font-smoothing: antialiased;
}

/* ---------- Header: the theme's fixed <header> becomes a sticky light bar ---------- */
/* The theme never closes <header>, so it wraps the whole page: keep it static and make the bar itself sticky */
body.v3-site > header { position: static !important; background: transparent; height: auto !important; }
body.v3-site .v3-site-header { position: sticky; top: 0; z-index: 100; }
body.v3-site #primary { padding-top: 0 !important; }
body.v3-site .v3-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); box-sizing: border-box; }
body.v3-site .v3-header { background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
body.v3-site .v3-header__inner { display: flex; align-items: center; gap: 24px; height: 76px; }
body.v3-site .v3-logo img { width: 112px; height: auto; display: block; }
body.v3-site .v3-nav { margin-left: 12px; }
body.v3-site .v3-menu { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
body.v3-site .v3-menu > li { position: relative; list-style: none; margin: 0; padding: 0; }
body.v3-site .v3-menu > li:has(> a[href*="manage.beswifty.com"]) { display: none; }
body.v3-site .v3-menu > li > a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 8px; font: 500 16px/1 var(--font); color: var(--ink); text-transform: none; letter-spacing: 0; text-decoration: none; cursor: pointer; background: none; }
body.v3-site .v3-menu > li > a:hover, body.v3-site .v3-menu > li:focus-within > a, body.v3-site .v3-menu > li.is-open > a { background: var(--soft); color: var(--ink); }
body.v3-site .v3-menu > li.current-menu-item > a, body.v3-site .v3-menu > li.current-menu-ancestor > a { box-shadow: inset 0 -2px 0 var(--amber); border-radius: 8px 8px 0 0; }
body.v3-site .v3-menu .sub-menu { position: absolute; left: -8px; top: calc(100% + 8px); min-width: 260px; margin: 0; padding: 10px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility .18s; z-index: 5; display: block; }
body.v3-site .v3-menu > li:hover > .sub-menu, body.v3-site .v3-menu > li:focus-within > .sub-menu, body.v3-site .v3-menu > li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
body.v3-site .v3-menu .sub-menu li { list-style: none; margin: 0; padding: 0; }
body.v3-site .v3-menu .sub-menu a { display: block; padding: 11px 14px; border-radius: 10px; font: 600 16px/1.3 var(--font); color: var(--ink); text-transform: none; text-decoration: none; }
body.v3-site .v3-menu .sub-menu a:hover { background: var(--soft); }
body.v3-site .v3-header__actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
body.v3-site .v3-header__login { font: 600 16px/1 var(--font); color: var(--ink); text-decoration: none; }
body.v3-site .v3-header__actions form { margin: 0; }

/* Buttons used by the header, footer, and new sections */
body.v3-site .v3-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 10px; font: 600 17px/1 var(--font); border: 1.5px solid transparent; text-decoration: none; text-transform: none; letter-spacing: 0; white-space: nowrap; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, transform .2s ease; }
body.v3-site .v3-btn:hover { transform: translateY(-1px); }
body.v3-site .v3-btn--sm { min-height: 42px; padding: 0 18px; font-size: 16px; }
body.v3-site .v3-btn--amber { background: var(--amber); color: var(--ink) !important; }
body.v3-site .v3-btn--amber:hover { background: var(--amber-2); }
body.v3-site .v3-btn--line { background: #fff; border-color: #d8d1c6; color: var(--ink) !important; }

/* ---------- Footer ---------- */
body.v3-site .v3-footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding: 72px 0 28px; font: 400 16px/1.6 var(--font); position: relative; }
body.v3-site .v3-footer__grid { display: grid; grid-template-columns: 1.2fr 2.2fr .9fr; gap: 40px; }
body.v3-site .v3-footer__brand > img { width: 112px; margin-bottom: 18px; display: block; }
body.v3-site .v3-footer p { margin: 0; color: rgba(255, 255, 255, .72); }
body.v3-site .v3-footer__brand > p { max-width: 280px; }
body.v3-site .v3-footer__contact { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }
body.v3-site .v3-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
body.v3-site .v3-footer a:hover { color: var(--amber); }
body.v3-site .v3-footer__menus ul.menu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; margin: 0; padding: 0; list-style: none; }
body.v3-site .v3-footer__menus ul { list-style: none; margin: 0; padding: 0; }
body.v3-site .v3-footer__menus ul.menu > li > a { display: block; color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; font-family: var(--font); }
body.v3-site .v3-footer__menus .sub-menu { display: flex; flex-direction: column; gap: 8px; }
body.v3-site .v3-footer__menus .sub-menu a { font-size: 15px; font-weight: 400; text-transform: none; letter-spacing: 0; color: rgba(255, 255, 255, .72); }
body.v3-site .v3-footer__menus .widget-title, body.v3-site .v3-footer__menus h2, body.v3-site .v3-footer__menus h3 { display: none; }
body.v3-site .v3-footer__sub p { color: #fff; font-weight: 700; margin-bottom: 12px; }
body.v3-site .v3-footer__soc { width: 56px; margin-top: 24px; display: block; }
body.v3-site .v3-footer__base { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }
body.v3-site .v3-footer__social { display: flex; gap: 16px; margin: 0; padding: 0; list-style: none; }
body.v3-site .v3-footer__social a { font-size: 20px; color: rgba(255, 255, 255, .78); }
body.v3-site .v3-footer .blog-slide-in-trigger { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Dark phone drawer, same as the new home page */
@media (min-width: 1201px) { body.v3-site #sw-mobile-menu { display: none; } }
body.v3-site #sw-mobile-menu { background: var(--ink) !important; color: #fff; z-index: 1000 !important; top: 0 !important; height: 100% !important; overflow-y: auto; padding: 84px 24px 120px !important; box-sizing: border-box; }
body.v3-site #sw-mobile-menu ul.menu { list-style: none; margin: 0; padding: 0; }
body.v3-site #sw-mobile-menu ul.menu > li { border-bottom: 1px solid rgba(255, 255, 255, .14); }
body.v3-site #sw-mobile-menu ul.menu > li > a { color: #fff !important; font-family: var(--font); font-weight: 700; font-size: 22px; display: block; padding: 16px 0; text-transform: none; }
body.v3-site #sw-mobile-menu ul.sub-menu a { color: rgba(255, 255, 255, .82) !important; font-size: 17px; display: block; padding: 10px 0 10px 14px; font-family: var(--font); }
body.v3-site #sw-mobile-menu .menu-close { position: absolute; top: 18px; right: 20px; width: 44px; height: 44px; font-size: 40px; line-height: 44px; color: var(--amber) !important; transform: rotate(45deg); background: none; border: 0; }
body.v3-site #sw-mobile-menu a.btn { display: block; margin-top: 28px; background: var(--amber) !important; color: var(--ink) !important; text-align: center; padding: 16px; font-weight: 700; border-radius: 10px; }

/* ---------- Existing blocks: light skin ---------- */
/* One font for everything, tighter headings */
body.v3-site #primary :is(h1, h2, h3, h4, h5) { font-family: var(--font) !important; letter-spacing: -.015em; }
body.v3-site #primary :is(h1, h2) { font-weight: 700 !important; }
body.v3-site #primary :is(p, li) { font-family: var(--font); }

/* Section headings on light backgrounds: near-black */
body.v3-site #primary .content-block.block-bg-default :is(.block-title, h2):not(.form-heading),
body.v3-site #primary .text-color-dark :is(.block-title, h2):not(.form-heading) { color: var(--ink) !important; }

/* Page banners that carry the headline: warm light ground, dark text (picture-only banners keep their image) */
body.v3-site .content-block:is(.block_type_landing-hero, .inner-banner, .product-banner, .block_type_hero, .block_type_product-hero):has(h1) {
	background: linear-gradient(180deg, var(--soft) 0%, #fff 100%) !important; border-bottom: 1px solid var(--line);
	padding-bottom: clamp(56px, 7vw, 96px) !important;
}
body.v3-site .content-block:is(.block_type_landing-hero, .inner-banner, .product-banner, .block_type_hero, .block_type_product-hero):has(h1) .block-overlay { display: none !important; }
body.v3-site .content-block:is(.block_type_landing-hero, .inner-banner, .product-banner, .block_type_hero, .block_type_product-hero):has(h1) h1 { color: var(--ink) !important; font-size: clamp(36px, 4.6vw, 60px) !important; line-height: 1.06 !important; letter-spacing: -.03em !important; text-shadow: none !important; }
body.v3-site .content-block:is(.block_type_landing-hero, .inner-banner, .product-banner, .block_type_hero, .block_type_product-hero):has(h1) :is(h2, h3, h4, h5):not(.form-heading) { color: var(--bronze) !important; text-shadow: none !important; }
body.v3-site .content-block:is(.block_type_landing-hero, .inner-banner, .product-banner, .block_type_hero, .block_type_product-hero):has(h1) :is(p, li) { color: var(--text) !important; text-shadow: none !important; }

/* Buttons inside page content: rounded, one font, amber first and outline second */
body.v3-site #primary .btn, body.v3-site .content-block .btn { border-radius: 10px !important; font-family: var(--font) !important; font-weight: 600 !important; letter-spacing: .01em !important; box-shadow: none !important; border: 1.5px solid var(--amber) !important; background: var(--amber) !important; color: var(--ink) !important; }
body.v3-site #primary .btn:hover, body.v3-site .content-block .btn:hover { background: var(--amber-2) !important; }
body.v3-site #primary .btn ~ .btn, body.v3-site .content-block .btn ~ .btn { background: #fff !important; border-color: #d8d1c6 !important; color: var(--ink) !important; }
body.v3-site #primary .btn ~ .btn:hover, body.v3-site .content-block .btn ~ .btn:hover { border-color: var(--ink) !important; }
body.v3-site #primary .buttons-wrapper::before, body.v3-site #primary .buttons-wrapper::after { opacity: 0 !important; }

/* Cards and tiles: soft corners, light borders */
body.v3-site #primary :is(.single-tile-wrapper, .tile-content, .single-post-wrapper, .blog-post-item) { border-radius: var(--r) !important; }
body.v3-site #primary .single-tile-wrapper { border: 1px solid var(--line); box-shadow: none; }

/* Phones */
@media (max-width: 1100px) {
	body.v3-site .v3-nav { display: none; }
}
@media (max-width: 760px) {
	body.v3-site .v3-header__inner { height: 64px; }
	body.v3-site .v3-logo img { width: 96px; }
	body.v3-site .v3-header__login { display: none; }
	body.v3-site .v3-footer__grid { grid-template-columns: 1fr; }
	body.v3-site .v3-footer__menus ul.menu { grid-template-columns: 1fr 1fr; }
	body.v3-site .v3-footer { padding-bottom: 96px; }
}

/* The theme styles #menu-main-menu links (uppercase, bronze); the new header wins */
html body.v3-site .v3-menu > li > a { color: var(--ink) !important; text-transform: none !important; font-size: 16px !important; font-weight: 500 !important; letter-spacing: 0 !important; }
html body.v3-site .v3-menu > li > a:hover { color: var(--ink) !important; }
html body.v3-site .v3-menu .sub-menu a { color: var(--ink) !important; text-transform: none !important; letter-spacing: 0 !important; }
html body.v3-site .v3-menu > li > a > i, html body.v3-site .v3-menu > li > a .fa { display: none !important; }

html body.v3-site .v3-menu > li > a, html body.v3-site .v3-menu > li > a:hover { background-image: none !important; }
html body.v3-site .v3-menu > li > a::before { display: none !important; }
html body.v3-site .v3-menu .sub-menu { top: calc(100% + 8px) !important; left: -8px !important; right: auto !important; width: auto !important; height: auto !important; max-height: none !important; background: #fff !important; }
html body.v3-site .v3-menu > li:hover > .sub-menu, html body.v3-site .v3-menu > li:focus-within > .sub-menu, html body.v3-site .v3-menu > li.is-open > .sub-menu { opacity: 1 !important; visibility: visible !important; transform: none !important; }
html body.v3-site .v3-footer__menus .sub-menu { position: static !important; opacity: 1 !important; visibility: visible !important; transform: none !important; display: flex !important; background: none !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; height: auto !important; width: auto !important; }
html body.v3-site .v3-footer .v3-btn--amber, html body.v3-site .v3-footer .footer-btn.btn-signup { background: var(--amber) !important; color: var(--ink) !important; border: 0 !important; width: auto !important; }
html body.v3-site .v3-menu, html body.v3-site .v3-menu > li, html body.v3-site .v3-nav { height: auto !important; }
html body.v3-site .v3-menu .sub-menu { top: 100% !important; margin-top: 6px !important; text-align: left !important; }
html body.v3-site .v3-menu .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* keeps the menu open while the pointer crosses the gap */
html body.v3-site .v3-menu .sub-menu a { text-align: left !important; }
html body.v3-site .v3-menu > li { line-height: 1 !important; display: flex; align-items: center; }
html body.v3-site #menu-main-menu.v3-menu, html body.v3-site #menu-main-menu.v3-menu > li { height: auto !important; min-height: 0 !important; }
/* Banners that paint their picture through an overlay layer (blog, hero blocks): light ground like the others */
body.v3-site .content-block:is(.block_type_hero, .block_type_landing-hero, .block_type_product-hero, .inner-banner, .product-banner):has(h1) :is(.hero-overlay, .hero-bg, .banner-bg) { display: none !important; }
/* Form card headers: dark with white heading */
body.v3-site .form-header { background: var(--ink) !important; border-radius: var(--r) var(--r) 0 0 !important; }
html body.v3-site #primary .form-header :is(h2, h3, .form-heading), html body.v3-site .form-header :is(h2, h3, .form-heading) { color: #fff !important; }
body.v3-site .widget-form { border-radius: 0 0 var(--r) var(--r) !important; background: var(--soft) !important; }
