/*!
Theme Name: acj
Theme URI: https://acjelectronics.com/
Author: OpenAI
Description: Custom ACJ Electronics marketing theme.
Version: 2.0.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: acj
*/

:root {
    --blue: #3399fe;
    --pink: #ff00cd;
    --yellow: #ffcc01;
    --dark: #06080f;
    --dark2: #0d1120;
    --dark3: #141828;
    --dark4: #1a2031;
    --text: #e8ecf4;
    --muted: #8a92a4;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);
    --card: rgba(13, 17, 32, 0.88);
    --radius: 1.2rem;
    --radius-lg: 2rem;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
    --container: min(1180px, calc(100vw - 2rem));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(circle at 15% 0%, rgba(51, 153, 254, 0.16), transparent 34%),
        radial-gradient(circle at 85% 0%, rgba(255, 0, 205, 0.12), transparent 32%),
        var(--dark);
    color: var(--text);
    font-family: "Outfit", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.28;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
}

body.admin-bar #mainNav {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar #mainNav {
        top: 46px;
    }
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

ul,
ol {
    padding-left: 1.2rem;
}

::selection {
    background: rgba(51, 153, 254, 0.3);
    color: #fff;
}

.site-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.site-main {
    position: relative;
    z-index: 1;
    padding-top: 5.25rem;
}

.site-section,
.page-main,
.single-main,
.archive-main,
.legal-main,
.sitemap-main {
    width: var(--container);
    margin: 0 auto;
}

.site-section {
    padding: 2.5rem 0;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.8rem;
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-label::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 0.35rem rgba(51, 153, 254, 0.12);
}

.section-title {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.section-title span,
.accent-blue {
    color: var(--blue);
}

.accent-pink {
    color: var(--pink);
}

.accent-yellow {
    color: var(--yellow);
}

.section-copy,
.page-copy,
.entry-summary,
.card p,
.value p,
.detail-card p,
.service-sidebar p,
.legal-article p,
.legal-article li,
.sitemap-group li,
.article-sidebar p,
.empty-state p {
    color: var(--muted);
}

.link-all {
    color: #fff;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.link-all:hover {
    color: var(--blue);
}

.bento,
.card,
.svc-card,
.blog-card,
.detail-card,
.service-sidebar,
.article-card,
.article-sidebar,
.legal-article,
.sitemap-group,
.stat,
.value,
.contact-form-card,
.contact-panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.bento,
.card,
.detail-card,
.service-sidebar,
.article-card,
.article-sidebar,
.legal-article,
.sitemap-group,
.contact-form-card,
.contact-panel {
    padding: 1.5rem;
}

.cursor-dot,
.cursor-ring {
    position: fixed;
    left: 0;
    top: 0;
    pointer-events: none;
    z-index: 120;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease, width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #fff;
}

.cursor-ring {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(51, 153, 254, 0.45);
    border-radius: 999px;
}

body.has-fancy-cursor .cursor-dot,
body.has-fancy-cursor .cursor-ring {
    opacity: 1;
}

body.cursor-active .cursor-ring {
    width: 58px;
    height: 58px;
    border-color: rgba(255, 0, 205, 0.55);
}

#mainNav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    width: min(1280px, calc(100vw - 1rem));
    margin: 0 auto;
    padding: 1.1rem 1.5rem;
    border: 1px solid transparent;
    background: rgba(6, 8, 15, 0.66);
    backdrop-filter: blur(20px);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

#mainNav.is-scrolled {
    background: rgba(6, 8, 15, 0.9);
    border-color: var(--line);
}

.logo {
    display: inline-flex !important;
    align-items: center;
    gap: 0.35rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.logo-mark {
    display: inline-flex;
    gap: 0.05rem;
    font-size: 1.45rem;
}

.logo-mark span:nth-child(1) {
    color: var(--blue);
}

.logo-mark span:nth-child(2) {
    color: var(--pink);
}

.logo-mark span:nth-child(3) {
    color: var(--yellow);
}

.logo-copy {
    color: #fff;
    font-size: 0.98rem;
    font-weight: 500;
}

.nav-links,
.mobile-menu-links {
    display: flex;
    align-items: center;
    gap: 1.3rem;
}

.nav-item {
    position: relative;
}

.nav-item-head {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-item.is-active > .nav-item-head > .nav-link {
    color: #fff;
}

.nav-link.is-active,
.nav-item.is-active > .nav-item-head > .nav-link {
    text-shadow: 0 0 24px rgba(51, 153, 254, 0.35);
}

.nav-link-label {
    display: inline-block;
}

.nav-caret {
    width: 0.5rem;
    height: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.2s ease;
}

.nav-item.has-children:is(:hover, :focus-within, .is-open) > .nav-item-head .nav-caret,
.mobile-menu-links .nav-item.is-open > .nav-item-head .nav-caret {
    transform: rotate(225deg) translateY(-1px);
}

.nav-submenu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 0.85rem);
    left: 0;
    min-width: 240px;
    padding: 0.55rem;
    border-radius: 1.2rem;
    border: 1px solid var(--line);
    background: rgba(13, 17, 32, 0.98);
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.34);
    display: grid;
    gap: 0.35rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-links > .nav-item.has-children:is(:hover, :focus-within, .is-open) > .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown .nav-item {
    display: block;
}

.nav-dropdown .nav-item-head {
    gap: 0;
}

.nav-dropdown .nav-link {
    justify-content: space-between;
    width: 100%;
    padding: 0.8rem 0.9rem;
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.02);
}

.nav-dropdown .nav-link:hover,
.nav-dropdown .nav-link.is-active,
.nav-dropdown .nav-item.is-active > .nav-item-head > .nav-link {
    background: rgba(51, 153, 254, 0.12);
}

.nav-dropdown .nav-dropdown {
    top: -0.55rem;
    left: calc(100% + 0.55rem);
}

.nav-cta,
.btn-primary,
.btn-outline,
.button-link,
.form-submit,
.page-numbers.current,
.page-numbers:hover {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.9rem;
    padding: 0.75rem 1.3rem;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.nav-cta,
.btn-primary,
.form-submit,
.page-numbers.current,
.page-numbers:hover {
    background: linear-gradient(135deg, var(--blue), var(--pink));
    color: #fff;
    box-shadow: 0 14px 28px rgba(51, 153, 254, 0.22);
}

.nav-cta:hover,
.btn-primary:hover,
.btn-outline:hover,
.button-link:hover,
.form-submit:hover {
    transform: translateY(-2px);
}

.btn-outline,
.button-link,
.page-numbers {
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.02);
    color: #fff;
}

.hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
}

.hamburger span {
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(6, 8, 15, 0.94);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-panel {
    width: min(420px, 100%);
    padding: 1.4rem;
    border-radius: 1.6rem;
    background: linear-gradient(180deg, rgba(20, 24, 40, 0.98), rgba(13, 17, 32, 0.98));
    border: 1px solid var(--line);
}

.mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.mobile-menu-close {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
}

.mobile-menu-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
}

.mobile-menu-links > .nav-item {
    width: 100%;
}

.mobile-menu-links > .nav-item > .nav-item-head {
    gap: 0.55rem;
}

.mobile-menu-links .nav-link,
.mobile-menu-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
}

.mobile-menu-l