/*
Theme Name: NJ Technium
Theme URI: https://njtechnium.us/
Author: NJ Technium
Description: Custom brand protection and business formation theme for NJ Technium.
Version: 1.0.0
Text Domain: njtechnium
*/

:root {
    --navy: #1D3F72;
    --navy-dark: #0F1E3A;
    --navy-deep: #0A1428;
    --copper: #C85A2B;
    --copper-dark: #A8461E;
    --copper-soft: #E5A98A;
    --text: #162338;
    --muted: #5A687C;
    --bg: #F8FAFC;
    --light: #EFF3F8;
    --border: #D9E2EC;
    --shadow: 0 18px 50px rgba(15, 30, 58, 0.12);
    --bs-primary: #1D3F72;
    --bs-danger: #C85A2B;
    --bs-light: #EFF3F8;
}

:where(*) {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
    max-width: 100%;
}

body {
    margin: 0;
    font-family: "DM Sans", system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.75;
    overflow-x: clip;
    max-width: 100%;
}

::selection {
    background: #D6E4F5;
    color: var(--navy-dark);
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

h1, h2, h3, h4, h5 {
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    line-height: 1.18;
}

h4 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--navy-dark);
}

.text-danger,
.text-accent {
    color: var(--copper) !important;
}

.text-primary {
    color: var(--navy) !important;
}

.bg-light {
    background: var(--light) !important;
}

/* =========================
   Top Bar
========================= */
.topbar {
    background: var(--navy-dark);
    color: #ffffff;
    font-size: 12.5px;
    letter-spacing: 0.025em;
}

.topbar a {
    color: #E2EAF4;
    transition: color 0.2s ease;
}

.topbar a:hover {
    color: var(--copper-soft);
}

/* =========================
   Navbar
========================= */
.navbar {
    padding: 20px 0;
    background: rgba(248, 250, 252, 0.96);
    border-bottom: 1px solid var(--border);
    box-shadow: none;
    backdrop-filter: blur(18px);
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.navbar.is-scrolled {
    padding: 12px 0;
    box-shadow: 0 8px 30px rgba(15, 30, 58, 0.08);
}

.navbar-brand h2 {
    font-size: clamp(1.2rem, 2.1vw, 1.65rem);
    letter-spacing: -0.045em;
    margin: 0;
    color: var(--navy-dark);
}

.nav-link {
    color: var(--text) !important;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 600;
    font-size: 13.5px;
    position: relative;
    padding-inline: 14px !important;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 3px;
    left: 14px;
    width: 0;
    height: 2px;
    background: var(--copper);
    transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--copper) !important;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 24px;
}

.dropdown-menu {
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    background: #ffffff;
}

.dropdown-item {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.dropdown-item:hover,
.dropdown-item.active {
    color: var(--copper);
    background: var(--light);
}

/* =========================
   Buttons
========================= */
.btn {
    position: relative;
    overflow: hidden;
    font-family: "Plus Jakarta Sans", sans-serif;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-120%) skewX(-20deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.btn:hover::after {
    transform: translateX(120%) skewX(-20deg);
}

.btn-pm {
    padding: 14px 24px;
    color: #ffffff;
    font-weight: 700;
    font-size: 13.5px;
    background: var(--navy);
    border: 2px solid var(--navy);
    border-radius: 10px;
    box-shadow: 0 5px 12px rgba(15, 30, 58, 0.1);
}

.btn-pm:hover {
    color: #ffffff;
    background: var(--navy-dark);
    border-color: var(--navy-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(15, 30, 58, 0.2);
}

.btn-accent {
    padding: 14px 24px;
    color: #ffffff;
    font-weight: 700;
    font-size: 13.5px;
    background: var(--copper);
    border: 2px solid var(--copper);
    border-radius: 10px;
}

.btn-accent:hover {
    color: #ffffff;
    background: var(--copper-dark);
    border-color: var(--copper-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(200, 90, 43, 0.28);
}

.btn-outline-pm {
    padding: 14px 24px;
    color: var(--navy);
    font-weight: 700;
    font-size: 13.5px;
    border: 2px solid var(--navy);
    border-radius: 10px;
    background: transparent;
}

.btn-outline-pm:hover {
    color: #ffffff;
    background: var(--navy);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(15, 30, 58, 0.14);
}

.btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(15, 30, 58, 0.18);
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--copper);
    outline-offset: 4px;
}

/* =========================
   Global Sections
========================= */
.section {
    padding: 92px 0;
    overflow-x: clip;
}

.eyebrow {
    color: var(--copper);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}

.display-title {
    font-size: clamp(2.45rem, 4.7vw, 4.3rem);
    font-weight: 800;
    line-height: 1.09;
    letter-spacing: -0.05em;
    color: #ffffff;
}

.section-title {
    font-size: clamp(1.95rem, 3.8vw, 3.05rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    color: var(--navy-dark);
}

.muted {
    color: var(--muted);
}

/* =========================
   Home Hero
========================= */
.hero {
    position: relative;
    padding: 90px 0 105px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 85% 25%, rgba(29, 63, 114, 0.11) 0, transparent 55%),
        radial-gradient(circle at 8% 88%, rgba(200, 90, 43, 0.08), transparent 34%),
        var(--light);
    border-bottom: 1px solid var(--border);
}

.hero .row {
    --bs-gutter-x: 4rem;
}

.hero .display-title {
    color: var(--navy-dark);
}

.hero .lead {
    font-size: 1.06rem;
    max-width: 520px;
}

.hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hero .eyebrow::before {
    content: "";
    height: 2px;
    width: 30px;
    background: currentColor;
}

.hero-img-wrap {
    position: relative;
}

.hero-img-wrap::before {
    content: "";
    position: absolute;
    width: 105px;
    height: 105px;
    right: -20px;
    top: -26px;
    border: 1.5px solid rgba(200, 90, 43, 0.45);
    border-radius: 50%;
    pointer-events: none;
}

.hero-image {
    width: 100%;
    min-height: 490px;
    max-height: 560px;
    object-fit: cover;
    border-radius: 130px 24px 24px 24px;
    border: 8px solid rgba(255, 255, 255, 0.85);
    box-shadow: 22px 24px 0 #DCE5F2;
}

.float-card {
    position: absolute;
    bottom: 25px;
    left: -30px;
    max-width: 265px;
    padding: 18px 22px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    animation: floatingCard 4.5s ease-in-out infinite;
}

@keyframes floatingCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

/* =========================
   Inner Page Hero
========================= */
.pagehero {
    position: relative;
    padding: 78px 0 88px;
    color: #ffffff;
    overflow: hidden;
    background: radial-gradient(ellipse at 90% 10%, #275394, transparent 65%), var(--navy-dark);
}

.pagehero h1 {
    max-width: 850px;
    letter-spacing: -0.045em;
}

.pagehero::after {
    content: "";
    position: absolute;
    top: -170px;
    right: -70px;
    width: 500px;
    height: 500px;
    border: 1px solid rgba(229, 169, 138, 0.35);
    border-radius: 50%;
    box-shadow: 0 0 0 65px rgba(255, 255, 255, 0.025), 0 0 0 130px rgba(255, 255, 255, 0.015);
    pointer-events: none;
}

.pagehero .container {
    position: relative;
    z-index: 1;
}

/* =========================
   Cards / Icons
========================= */
.iconbox {
    display: grid;
    width: 60px;
    height: 60px;
    color: var(--navy);
    font-size: 24px;
    place-items: center;
    background: #E8EFF9;
    border-radius: 50%;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.service-card,
.feature,
.price-card,
.contact-card {
    height: 100%;
    padding: 32px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(15, 30, 58, 0.035);
    transition: 0.35s ease;
}

.service-card {
    display: flex !important;
    flex-direction: column;
    position: relative;
    padding-bottom: 44px;
}

.service-card::after {
    content: "\2197";
    position: absolute;
    right: 25px;
    top: 25px;
    color: var(--navy);
    font-size: 22px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.service-card:hover::after {
    color: var(--copper);
    transform: translate(3px, -3px);
}

.service-card:hover,
.feature:hover,
.price-card:hover,
.contact-card:hover {
    border-color: #A7BFE0;
    transform: translateY(-7px);
    box-shadow: 0 20px 40px rgba(15, 30, 58, 0.1);
}

.service-card:hover .iconbox,
.feature:hover .iconbox,
.contact-card:hover .iconbox {
    background: var(--navy);
    color: #ffffff;
    transform: rotate(-8deg);
}

/* =========================
   Why Choose Us
========================= */
.why {
    padding: 56px;
    color: #ffffff;
    background: radial-gradient(ellipse at 100% 0, #254F8C, transparent 65%), var(--navy-dark);
    border-radius: 20px;
}

.why .section-title,
.cta .section-title {
    color: #ffffff;
}

.whyitem {
    height: 100%;
    padding: 26px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    transition: 0.3s ease;
}

.whyitem h4 {
    color: #ffffff;
}

.whyitem > i {
    color: var(--copper-soft);
}

.whyitem:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

/* =========================
   Gallery
========================= */
.gallerywrap {
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid var(--border);
}

.gallery {
    width: 100%;
    height: 270px;
    object-fit: cover;
    border-radius: 14px;
    filter: saturate(0.88);
    transition: transform 0.65s ease, filter 0.65s ease;
}

.gallerywrap:hover .gallery {
    transform: scale(1.06);
    filter: saturate(1);
}

/* =========================
   CTA / Forms
========================= */
.cta {
    padding: 52px;
    color: #ffffff;
    background: var(--navy);
    border-left: 8px solid var(--copper);
    border-radius: 18px;
    position: relative;
}

.cta .btn {
    flex-shrink: 0;
    border-radius: 10px !important;
}

.form-card {
    padding: 34px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 18px 60px rgba(15, 30, 58, 0.07);
}

.form-control,
.form-select {
    min-height: 52px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14.5px;
    color: var(--text);
}

.form-control:focus,
.form-select:focus {
    background: #ffffff;
    border-color: var(--navy);
    box-shadow: 0 0 0 0.22rem rgba(29, 63, 114, 0.12);
}

.njt-form-status {
    font-size: 14px;
    border-radius: 8px;
    padding: 12px 16px;
    display: none;
}

.njt-form-status.is-success {
    display: block;
    background: #E8F5EE;
    color: #165B38;
    border: 1px solid #B7DFC8;
}

.njt-form-status.is-error {
    display: block;
    background: #FDEEEC;
    color: #8E2A1B;
    border: 1px solid #F5C3BC;
}

/* =========================
   Service Steps / Pricing / Accordion
========================= */
.step {
    position: relative;
    padding-left: 72px;
    margin-bottom: 30px;
}

.stepno {
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    width: 50px;
    height: 50px;
    color: #ffffff;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 800;
    place-items: center;
    background: var(--navy);
    border-radius: 12px;
}

.price {
    color: var(--navy-dark);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 42px;
    font-weight: 800;
}

.price-card ul {
    padding: 0;
    list-style: none;
}

.price-card li {
    position: relative;
    padding-left: 27px;
    margin: 10px 0;
    color: var(--muted);
}

.price-card li::before {
    content: "\f00c";
    position: absolute;
    left: 0;
    color: var(--copper);
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.accordion-button:not(.collapsed) {
    background: #E8EFF9;
    color: var(--navy-dark);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(29, 63, 114, 0.14);
}

/* =========================
   Footer
========================= */
footer {
    padding-top: 64px;
    color: #C3D0E2;
    background: var(--navy-deep);
}

footer h2 {
    color: #ffffff;
    letter-spacing: -0.04em;
    font-size: 1.65rem;
}

footer h5 {
    color: #ffffff;
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

footer a {
    display: block;
    margin: 14px 0;
    color: #C3D0E2;
    font-size: 13.5px;
    transition: color 0.2s ease, transform 0.2s ease;
}

footer a:hover {
    color: var(--copper-soft);
    transform: translateX(4px);
}

footer p {
    display: block;
    margin: 14px 0;
    color: #C3D0E2;
    font-size: 13.5px;
}

.footer-bottom {
    padding: 20px 0;
    margin-top: 38px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
}

/* =========================
   Motion & Progress
========================= */
.reveal,
.left,
.right {
    opacity: 1;
    transform: none;
    transition: opacity 0.75s ease, transform 0.75s ease;
}

.motion-ready .reveal:not(.visible) {
    opacity: 0;
    transform: translateY(24px);
}

.motion-ready .left:not(.visible) {
    opacity: 0;
    transform: translateX(-24px);
}

.motion-ready .right:not(.visible) {
    opacity: 0;
    transform: translateX(24px);
}

.visible {
    opacity: 1 !important;
    transform: none !important;
}

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    transform: scaleX(0);
    transform-origin: left;
    background: var(--copper);
    z-index: 1100;
    pointer-events: none;
}

/* =========================
   Back To Top
========================= */
.backtop {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 999;
    display: grid;
    width: 46px;
    height: 46px;
    color: #ffffff;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    place-items: center;
    background: var(--navy);
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(10, 20, 40, 0.28);
    transition: 0.3s ease;
}

.backtop:hover {
    background: var(--copper);
    transform: translateY(-4px);
}

.backtop.show {
    opacity: 1;
    visibility: visible;
}

/* =========================
   Services 2+2+1 Bento Grid
========================= */
@media (min-width: 992px) {
    #services > .container > .row > div {
        width: 50%;
    }
    #services > .container > .row > div:last-child {
        width: 100%;
    }
    #services > .container > .row > div:last-child .service-card {
        display: grid !important;
        grid-template-columns: 64px 1fr 1.5fr;
        gap: 24px;
        align-items: center;
        padding: 30px;
    }
    #services .service-card .mb-4 {
        margin-bottom: 0 !important;
    }
    #services .service-card h4 {
        margin: 0;
    }
}

/* =========================
   Responsive
========================= */
@media (max-width: 991.98px) {
    .motion-ready .left:not(.visible),
    .motion-ready .right:not(.visible) {
        transform: translateY(20px);
    }
    .hero {
        padding: 56px 0 76px;
    }
    .hero .row {
        --bs-gutter-x: 1.5rem;
    }
    .hero-image {
        min-height: 360px;
        max-height: 500px;
        margin-top: 26px;
    }
    .float-card {
        left: 12px;
    }
    .section {
        padding: 64px 0;
    }
    .navbar-collapse {
        padding: 18px 0;
    }
    .nav-link {
        padding-block: 10px;
    }
    .why {
        padding: 32px;
    }
}

@media (max-width: 575.98px) {
    .hero-image {
        min-height: 300px;
        border-radius: 80px 18px 18px 18px;
        box-shadow: 10px 12px 0 #DCE5F2;
    }
    .hero-img-wrap::before {
        right: 0;
    }
    .hero .btn {
        margin-top: 10px;
    }
    .display-title {
        font-size: 2.55rem;
    }
    .pagehero {
        padding: 54px 0;
    }
    .cta,
    .why,
    .form-card {
        padding: 28px 20px;
    }
    .topbar .container {
        justify-content: center !important;
    }
    .section-title {
        font-size: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
    .motion-ready .reveal:not(.visible),
    .motion-ready .left:not(.visible),
    .motion-ready .right:not(.visible) {
        opacity: 1;
        transform: none;
    }
}
