/* StellarWavez for Elementor — theme styles.
   Breakpoints match Elementor's defaults: phone ≤ 767px, tablet 768–1024px, desktop ≥ 1025px.
   Content is capped at 1400px; backgrounds stay full width. */

:root {
	--sw-black: #08070b;
	--sw-panel: #111016;
	--sw-purple: #a970ff;
	--sw-purple-h: #bd94ff;
	--sw-white: #f6f3fb;
	--sw-muted: #aaa5b4;
	--sw-line: rgba(255, 255, 255, .11);
	--sw-max: 1400px;
	--sw-gutter: 24px;
	--sw-header-h: 80px;
	--sw-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--sw-display: "Space Grotesk", "Inter", sans-serif;
}
@media (max-width: 767px) { :root { --sw-gutter: 16px; --sw-header-h: 64px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--sw-black);
	color: var(--sw-white);
	font: 400 16px/1.6 var(--sw-font);
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
}
img, video, svg, iframe, embed, object { max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
[id] { scroll-margin-top: calc(var(--sw-header-h) + 16px); }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed !important; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto;
	padding: 12px 16px; background: #fff; color: #000; border-radius: 6px;
}
:focus-visible { outline: 2px solid var(--sw-purple); outline-offset: 3px; }

.sw-container { width: 100%; max-width: calc(var(--sw-max) + 2 * var(--sw-gutter)); margin-inline: auto; padding-inline: var(--sw-gutter); }
.sw-narrow { max-width: calc(840px + 2 * var(--sw-gutter)); }
.sw-muted { color: var(--sw-muted); }
.sw-eyebrow { margin: 0 0 12px; color: var(--sw-purple); font: 600 12px/1.3 var(--sw-display); letter-spacing: .15em; text-transform: uppercase; }

.sw-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px;
	border: 0; border-radius: 8px; background: var(--sw-purple); color: #0b0710;
	font: 700 14px/1.1 var(--sw-font); text-decoration: none; white-space: nowrap; cursor: pointer;
	transition: background-color .2s ease, transform .2s ease;
}
.sw-btn:hover { background: var(--sw-purple-h); transform: translateY(-1px); color: #0b0710; }
.sw-btn--block { display: flex; width: 100%; min-height: 48px; font-size: 15px; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(8, 7, 11, .92);
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.site-header__inner { display: flex; align-items: center; gap: 28px; min-height: var(--sw-header-h); }
.site-branding { flex: none; display: flex; align-items: center; min-width: 0; }
.site-branding .custom-logo-link { display: block; line-height: 0; }
.site-branding .custom-logo,
.site-footer__brand .custom-logo { display: block; width: auto; height: var(--sw-logo-h, 44px); max-width: min(240px, 52vw); object-fit: contain; object-position: left center; }
.site-title { color: var(--sw-white); font: 700 19px/1 var(--sw-display); letter-spacing: -.02em; text-decoration: none; }
/* Portal site: "StellarWavez | Dealer Portal" */
.site-branding__sep { flex: none; width: 1px; height: 26px; margin: 0 16px; background: rgba(255, 255, 255, .28); }
.site-branding__label { color: var(--sw-white); font: 600 17px/1 var(--sw-display); letter-spacing: -.01em; white-space: nowrap; text-decoration: none; opacity: .92; }
.site-branding__label:hover { opacity: 1; color: #c9a6ff; }
/* Portal main page: the header already names it, so less space above the content */
.sw-portal-home .site-main:not(.site-main--elementor) { padding-top: clamp(24px, 3.5vw, 44px); }
.sw-portal-home .swb-portal { padding-top: 0; }

.primary-nav { flex: 1; display: flex; justify-content: center; min-width: 0; }
.sw-menu { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.sw-menu a { display: block; padding: 8px 0; color: #cbc6d2; font-size: 14.5px; font-weight: 500; text-decoration: none; transition: color .2s; }
.sw-menu a:hover, .sw-menu .current-menu-item > a { color: #fff; }
.sw-menu .menu-item--mainsite a { color: #fff; }
.sw-ext { display: inline-block; margin-left: 4px; font-size: .85em; opacity: .7; }
/* Dropdowns (second level) on desktop */
.primary-nav .menu-item-has-children { position: relative; }
.primary-nav .sub-menu {
	position: absolute; top: 100%; left: -16px; min-width: 220px; margin: 0; padding: 8px 16px; list-style: none;
	background: #0f0d14; border: 1px solid var(--sw-line); border-radius: 10px; box-shadow: 0 20px 40px rgba(0,0,0,.5);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.primary-nav .menu-item-has-children:hover > .sub-menu,
.primary-nav .menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.header-cta { flex: none; }

.menu-toggle {
	display: none; flex: none; margin-left: auto; width: 44px; height: 44px; padding: 0;
	align-items: center; justify-content: center; cursor: pointer;
	background: transparent; border: 1px solid rgba(255, 255, 255, .16); border-radius: 8px; color: var(--sw-white);
}
.menu-toggle__bars { display: grid; gap: 5px; }
.menu-toggle__bars span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
	position: absolute; left: 0; right: 0; top: 100%;
	max-height: calc(100vh - var(--sw-header-h)); overflow-y: auto;
	padding: 8px 0 20px; background: #0d0b12;
	border-bottom: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 24px 48px rgba(0, 0, 0, .55);
}
.mobile-menu[hidden] { display: none; }
.sw-menu--mobile { display: block; margin-bottom: 16px; }
.sw-menu--mobile a { padding: 14px 4px; border-bottom: 1px solid rgba(255, 255, 255, .06); color: var(--sw-white); font-size: 17px; }
.sw-menu--mobile .sub-menu { margin: 0; padding: 0 0 0 16px; list-style: none; }

/* Tablet: same layout, tighter spacing */
@media (max-width: 1024px) {
	.site-header__inner { gap: 16px; }
	.sw-menu { gap: 18px; }
	.sw-menu a { font-size: 13.5px; }
	.header-cta { min-height: 40px; padding: 0 14px; font-size: 13px; }
}
/* Phone: logo + menu button */
@media (max-width: 767px) {
	.primary-nav, .header-cta { display: none; }
	.menu-toggle { display: inline-flex; }
	.site-branding .custom-logo { height: calc(var(--sw-logo-h, 44px) * .8); }
	.site-branding__sep { height: 20px; margin: 0 10px; }
	.site-branding__label { font-size: 14px; }
}
@media (max-width: 380px) {
	.site-branding__sep, .site-branding__label { display: none; }
}
@media (min-width: 768px) { .mobile-menu { display: none !important; } }

/* ---------- Content ---------- */
.site-main--elementor { display: block; }
.site-main:not(.site-main--elementor) { padding-block: clamp(48px, 7vw, 88px) clamp(64px, 9vw, 110px); }
.entry-title { margin: 0 0 24px; font: 600 clamp(34px, 5vw, 60px)/1.02 var(--sw-display); letter-spacing: -.035em; }
.entry-meta { margin: 0 0 10px; color: var(--sw-muted); font-size: 13px; }
.entry-thumb { margin: 0 0 32px; }
.entry-thumb img { border-radius: 14px; }
.entry-content { color: #d6d1dd; font-size: 17px; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin: 1.6em 0 .5em; color: var(--sw-white); font-family: var(--sw-display); line-height: 1.15; letter-spacing: -.02em; }
.entry-content a { color: var(--sw-purple); text-underline-offset: 3px; }
.entry-content blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 3px solid var(--sw-purple); color: var(--sw-muted); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 10px; border-bottom: 1px solid var(--sw-line); text-align: left; }
.archive-header { margin-bottom: 36px; }
.archive-description { color: var(--sw-muted); }
.post-list { display: grid; gap: 0; border-top: 1px solid var(--sw-line); }
.post-card { padding: 28px 0; border-bottom: 1px solid var(--sw-line); }
.post-card__title { margin: 0 0 8px; font: 600 clamp(22px, 3vw, 30px)/1.15 var(--sw-display); letter-spacing: -.02em; }
.post-card__title a { text-decoration: none; }
.post-card__title a:hover { color: var(--sw-purple); }
.post-card__excerpt { color: var(--sw-muted); }
.post-card__excerpt p { margin: 0; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--sw-line); }
.post-nav a { color: var(--sw-purple); text-decoration: none; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.nav-links .page-numbers { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--sw-line); border-radius: 8px; text-decoration: none; }
.nav-links .current { background: var(--sw-purple); border-color: var(--sw-purple); color: #0b0710; }
.search-form { display: flex; gap: 10px; margin: 24px 0; }
.search-field, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--sw-line); border-radius: 8px;
	background: var(--sw-panel); color: var(--sw-white); font: inherit;
}
.comment-form .submit { min-height: 46px; padding: 0 20px; border: 0; border-radius: 8px; background: var(--sw-purple); color: #0b0710; font-weight: 700; cursor: pointer; }
.comments-area { margin-top: 56px; }
.comment-list { padding-left: 20px; }
.sw-404 .sw-btn { margin-top: 8px; }

/* Elementor text widgets: no stray top/bottom paragraph margins inside designed sections */
.elementor-widget-text-editor p:first-child { margin-top: 0; }
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }

/* Product specification table (inside an Elementor Text Editor widget) */
.sw-spec-table { width: 100%; border-collapse: collapse; margin: 0; }
.sw-spec-table th, .sw-spec-table td { padding: 14px 0; border-bottom: 1px solid var(--sw-line); text-align: left; vertical-align: top; }
.sw-spec-table tr:first-child th, .sw-spec-table tr:first-child td { border-top: 1px solid var(--sw-line); }
.sw-spec-table th { width: 42%; padding-right: 20px; color: #8f889a; font-weight: 500; }
.sw-spec-table td { color: var(--sw-white); }
@media (max-width: 767px) {
	.sw-spec-table th, .sw-spec-table td { display: block; width: 100%; padding: 0; border: 0; }
	.sw-spec-table th { padding-top: 14px; font-size: 13px; }
	.sw-spec-table td { padding: 2px 0 14px; border-bottom: 1px solid var(--sw-line); }
	.sw-spec-table tr:first-child th { border-top: 1px solid var(--sw-line); }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--sw-line); color: #847e8c; font-size: 13px; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 34px; }
.site-footer__brand { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.site-footer__brand .custom-logo { height: 30px; }
.site-footer__brand .site-title { font-size: 16px; }
.site-footer__tagline, .site-footer__copy { margin: 0; }
.sw-footer-menu { display: flex; flex-wrap: wrap; gap: 18px; margin: 0; padding: 0; list-style: none; }
.sw-footer-menu a { color: #a39cab; text-decoration: none; }
.sw-footer-menu a:hover { color: #fff; }
@media (max-width: 767px) {
	.site-footer__inner { flex-direction: column; align-items: flex-start; padding-block: 28px; }
	.site-footer__brand { flex-direction: column; align-items: flex-start; }
}

/* ---------- WooCommerce basics ---------- */
.woocommerce .site-main { padding-inline: var(--sw-gutter); max-width: calc(var(--sw-max) + 2 * var(--sw-gutter)); margin-inline: auto; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button { border-radius: 8px; background: var(--sw-purple); color: #0b0710; }
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--sw-purple-h); color: #0b0710; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; }
}
.site-footer__legal a { color: inherit; text-decoration: underline; margin-left: .5em; }

/* Dealer portal link (separate site). Secondary to the main header button. */
.header-login { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 8px; color: var(--sw-white); font: 600 14px/1.1 var(--sw-font); text-decoration: none; white-space: nowrap; transition: border-color .2s, color .2s; }
.header-login:hover, .header-login:focus-visible { border-color: var(--sw-purple); color: var(--sw-purple-h); }
.header-login__icon { flex: none; opacity: .85; }
.site-header__inner .header-login + .header-cta { margin-left: -16px; }
.sw-btn--ghost { background: transparent; color: var(--sw-white); border: 1px solid rgba(255, 255, 255, .22); }
.sw-btn--ghost:hover { background: rgba(255, 255, 255, .06); color: var(--sw-white); }
.mobile-menu .sw-btn--block + .sw-btn--block { margin-top: 10px; }
.site-footer__dealer { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.site-footer__dealer a { color: var(--sw-white); text-decoration: none; }
.site-footer__dealer a:hover { color: var(--sw-purple-h); text-decoration: underline; }
.site-footer__dealer-label { color: #847e8c; }
@media (max-width: 1024px) {
	.header-login { min-height: 40px; padding: 0 12px; font-size: 13px; }
	.site-header__inner .header-login + .header-cta { margin-left: -8px; }
}
/* Tablet: lock icon only (text kept for screen readers) so the menu does not wrap. */
@media (min-width: 768px) and (max-width: 1100px) {
	.header-login { padding: 0 11px; }
	.header-login span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.header-login__icon { width: 16px; height: 16px; opacity: 1; }
}
@media (max-width: 767px) { .header-login { display: none; } }

/* Portal site, signed in: Sign out next to the main button (header) / beside Contact (phone menu). */
.site-header__inner .header-cta + .header-signout { margin-left: -16px; }
@media (max-width: 1024px) { .site-header__inner .header-cta + .header-signout { margin-left: -8px; } }
.mobile-menu__actions { display: flex; gap: 10px; }
.mobile-menu__actions .sw-btn--block { flex: 1 1 auto; width: auto; }
.mobile-menu__actions .mobile-signout { flex: 0 0 auto; padding-left: 22px; padding-right: 22px; }
.mobile-menu__actions + .sw-btn--block { margin-top: 10px; }

/* Portal site, signed in: company / person next to Sign out. */
.header-account { flex: none; display: inline-flex; align-items: center; gap: 10px; max-width: 260px; color: var(--sw-white); text-decoration: none; }
.header-account:hover .header-account__text strong { color: var(--sw-purple-h); }
.header-account .swb-logo { width: 34px; height: 34px; border-radius: 50%; object-fit: contain; background: #fff; flex: none; }
.header-account .swb-logo--ini { display: inline-flex; align-items: center; justify-content: center; background: var(--sw-purple); color: #0b0710; font: 800 13px/1 var(--sw-font); }
.header-account__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.header-account__text strong { font: 600 14px/1.2 var(--sw-font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-account__text small { color: var(--sw-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-header__inner .header-cta + .header-account { margin-left: -8px; }
.site-header__inner .header-account + .header-signout { margin-left: -16px; }
@media (max-width: 1180px) { .site-header__inner .header-account__text { display: none; } }
@media (max-width: 767px) { .site-header__inner .header-account, .site-header__inner .header-cta + .header-account { margin-left: auto; margin-right: 0; } .site-header__inner .header-account .swb-logo { width: 36px; height: 36px; } .site-header__inner .header-account ~ .menu-toggle { margin-left: 12px; } }
.mobile-account { padding: 4px 0 14px; margin-bottom: 12px; border-bottom: 1px solid var(--sw-line); }
.mobile-account .header-account { max-width: 100%; }
.mobile-account .header-account__text strong { font-size: 16px; }
.mobile-account .header-account .swb-logo { width: 40px; height: 40px; }

/* Elementor video widgets with rounded corners (ATHENA Connect) */
.sw-video .elementor-wrapper,.sw-video video{border-radius:16px;overflow:hidden}
