/* ==========================================================================
   NEXVORK.AI — CONTACT PAGE CSS  (prefix: nxc-)
   Loads after index.css. Only page-specific styles live here.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. SHARED SHELL ADDITION — .ai logo suffix (identical on every page)
   -------------------------------------------------------------------------- */
.logo-ai {
    background: var(--grad-brand-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* --------------------------------------------------------------------------
   1. MONO UTILITY VOICE — micro-labels only, never body text
   -------------------------------------------------------------------------- */
.nxc-mono {
    font-family: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   2. HERO
   -------------------------------------------------------------------------- */
.nxc-hero {
    padding: 110px 0 40px;
    position: relative;
    overflow: hidden;
}

.nxc-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* faint circuit-board dot grid, masked so it fades out downward */
.nxc-hero-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle 1px at 1px 1px, var(--border-strong) 1px, transparent 1.5px);
    background-size: 28px 28px;
    opacity: 0.5;
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 30%, transparent 75%);
}
.dark .nxc-hero-grid { opacity: 0.35; }

.nxc-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.35;
}
.nxc-hero-orb-1 {
    width: 480px; height: 480px;
    top: -180px; left: -140px;
    background: radial-gradient(circle, var(--brand-purple), transparent 70%);
}
.nxc-hero-orb-2 {
    width: 520px; height: 520px;
    top: -120px; right: -180px;
    background: radial-gradient(circle, var(--brand-blue), transparent 70%);
}
.dark .nxc-hero-orb { opacity: 0.25; }

.nxc-hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
}

.nxc-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-muted);
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}
.nxc-eyebrow-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 10px var(--accent-emerald);
    animation: nxcPulse 1.6s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes nxcPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.4); opacity: 0.5; }
}

.nxc-title {
    font-size: clamp(2.3rem, 5.5vw, 4.2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.07;
    margin: 0 0 22px;
    color: var(--text);
}

.nxc-sub {
    font-size: 1.12rem;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto 30px;
    line-height: 1.65;
}

.nxc-hero-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}
.nxc-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.83rem;
    font-weight: 500;
    color: var(--text-subtle);
    transition: border-color 0.3s var(--ease-out), color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.nxc-meta-chip svg { color: var(--brand-purple); flex-shrink: 0; }
.nxc-meta-chip:hover {
    border-color: var(--brand-purple);
    color: var(--text);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   3. FORM + INFO RAIL LAYOUT
   -------------------------------------------------------------------------- */
.nxc-contact { padding: 50px 0 90px; }

.nxc-grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 28px;
    align-items: start;
}
@media (max-width: 980px) {
    .nxc-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   4. FORM CARD
   -------------------------------------------------------------------------- */
.nxc-form-card {
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
/* circuit-trace top edge: gradient line with a soft glow */
.nxc-form-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-purple), var(--brand-blue), var(--accent-cyan));
    opacity: 0.85;
}
.nxc-form-card::after {
    content: "";
    position: absolute;
    top: 0; left: 15%; right: 15%;
    height: 60px;
    background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(130, 62, 157, 0.10), transparent 70%);
    pointer-events: none;
}

.nxc-form-head { margin-bottom: 26px; position: relative; z-index: 1; }
.nxc-form-tag {
    display: inline-block;
    color: var(--brand-purple);
    background: var(--grad-brand-soft);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 10px;
    margin-bottom: 14px;
}
.nxc-form-title {
    font-size: clamp(1.4rem, 2.6vw, 1.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0 0 8px;
    line-height: 1.2;
}
.nxc-form-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}
.nxc-form-sub a {
    color: var(--brand-purple);
    font-weight: 600;
    transition: color 0.3s ease;
}
.nxc-form-sub a:hover { color: var(--brand-blue); }

/* Fields */
.ct-form { position: relative; z-index: 1; }

.nxc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 560px) {
    .nxc-form-row { grid-template-columns: 1fr; gap: 0; }
}

.nxc-field { margin-bottom: 18px; }
.nxc-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text);
    margin-bottom: 7px;
}
.nxc-req { color: var(--brand-purple); }

.nxc-field input,
.nxc-field select,
.nxc-field textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), background 0.3s var(--ease-out);
    -webkit-appearance: none;
    appearance: none;
}
.nxc-field textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.nxc-field input::placeholder,
.nxc-field textarea::placeholder { color: var(--text-faint); }

.nxc-field input:hover,
.nxc-field select:hover,
.nxc-field textarea:hover { border-color: var(--border-strong); }

.nxc-field input:focus-visible,
.nxc-field select:focus-visible,
.nxc-field textarea:focus-visible {
    border-color: var(--brand-purple);
    box-shadow: 0 0 0 3px rgba(130, 62, 157, 0.15);
}
.dark .nxc-field input:focus-visible,
.dark .nxc-field select:focus-visible,
.dark .nxc-field textarea:focus-visible {
    box-shadow: 0 0 0 3px rgba(168, 85, 199, 0.25);
}

/* Custom select arrow */
.nxc-select-wrap { position: relative; }
.nxc-select-wrap select { padding-right: 38px; cursor: pointer; }
.nxc-select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-subtle);
    pointer-events: none;
}

/* Consent */
.nxc-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 6px;
}
.nxc-consent input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--brand-purple);
    cursor: pointer;
}
.nxc-consent label {
    font-size: 0.83rem;
    color: var(--text-subtle);
    line-height: 1.55;
    cursor: pointer;
}
.nxc-consent label a {
    color: var(--brand-purple);
    font-weight: 600;
}
.nxc-consent label a:hover { color: var(--brand-blue); }

/* Submit row */
.nxc-form-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.nxc-form-hint { color: var(--text-faint); }

.ct-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 30px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: var(--grad-brand);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-brand);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
    overflow: hidden;
    isolation: isolate;
}
.ct-submit::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--brand-purple-light), var(--brand-blue-light));
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
    z-index: -1;
}
.ct-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(130, 62, 157, 0.35), 0 6px 16px rgba(65, 143, 228, 0.25);
}
.ct-submit:hover:not(:disabled)::before { opacity: 1; }
.ct-submit:focus-visible {
    outline: 2px solid var(--brand-purple);
    outline-offset: 3px;
}

@media (max-width: 560px) {
    .nxc-form-card { padding: 26px 20px; }
    .nxc-form-foot { flex-direction: column; align-items: stretch; text-align: center; }
    .ct-submit { width: 100%; }
}

/* --------------------------------------------------------------------------
   5. INFO RAIL
   -------------------------------------------------------------------------- */
.nxc-rail {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nxc-rail-card {
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    transition: border-color 0.4s var(--ease-out), transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
    overflow: hidden;
}
.nxc-rail-card:hover {
    border-color: var(--brand-purple);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
/* tiny circuit node in the corner */
.nxc-rail-card::after {
    content: "";
    position: absolute;
    top: 14px; right: 14px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--border-strong);
    box-shadow: 0 0 0 3px var(--bg-elevated), 0 0 0 4px var(--border);
    transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.nxc-rail-card:hover::after {
    background: var(--brand-purple);
    box-shadow: 0 0 0 3px var(--bg-elevated), 0 0 0 4px var(--brand-purple), 0 0 12px rgba(130, 62, 157, 0.5);
}

.nxc-rail-label {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-faint);
    margin-bottom: 12px;
}

.nxc-rail-body {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.nxc-rail-icon {
    width: 38px; height: 38px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--grad-brand-soft);
    color: var(--brand-purple);
    display: grid;
    place-items: center;
    transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out);
}
.nxc-rail-card:hover .nxc-rail-icon {
    background: var(--grad-brand);
    color: #fff;
}

.nxc-rail-body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}
.nxc-rail-body p {
    font-size: 0.85rem;
    color: var(--text-subtle);
    line-height: 1.55;
    margin: 4px 0 0;
}
.nxc-rail-addr { max-width: 40ch; }

.nxc-rail-link {
    display: inline-block;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--brand-purple);
    word-break: break-word;
    transition: color 0.3s ease;
}
.nxc-rail-link:hover { color: var(--brand-blue); }

.nxc-rail-inline {
    font-weight: 600;
    color: var(--brand-purple);
    transition: color 0.3s ease;
}
.nxc-rail-inline:hover { color: var(--brand-blue); }

/* hours / status card */
.nxc-status-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 6px 12px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 100px;
    color: var(--accent-emerald);
}
.nxc-status-line .nxc-mono { font-size: 0.68rem; }
.nxc-status-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 8px var(--accent-emerald);
    animation: nxcPulse 1.6s ease-in-out infinite;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   6. FAQ SECTION — index.css supplies .faq-wrap/.faq-item; spacing only
   -------------------------------------------------------------------------- */
.nxc-faq {
    padding: 90px 0;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}
.nxc-faq .faq-item { background: var(--bg); }
.nxc-faq summary { gap: 16px; }

/* --------------------------------------------------------------------------
   7. CONTACT.JS REVEALS — [data-ct-reveal] gains .ct-in when visible
   -------------------------------------------------------------------------- */
[data-ct-reveal] {
    opacity: 0;
    transform: translate3d(0, 32px, 0);
    transition: opacity 0.8s var(--ease-power), transform 0.9s var(--ease-power);
    will-change: transform, opacity;
}
[data-ct-reveal].ct-in {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* --------------------------------------------------------------------------
   8. REDUCED MOTION — kill everything this page animates
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .nxc-eyebrow-dot,
    .nxc-status-dot { animation: none; }
    [data-ct-reveal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .nxc-meta-chip,
    .nxc-rail-card,
    .ct-submit { transition: none; }
    .nxc-meta-chip:hover,
    .nxc-rail-card:hover,
    .ct-submit:hover:not(:disabled) { transform: none; }
}

/* --------------------------------------------------------------------------
   9. SMALL SCREENS (≤ 400px) — keep everything inside the viewport
   -------------------------------------------------------------------------- */
@media (max-width: 400px) {
    .nxc-hero { padding-top: 90px; }
    .nxc-eyebrow { padding: 7px 12px; }
    .nxc-eyebrow .nxc-mono { font-size: 0.64rem; }
    .nxc-meta-chip { font-size: 0.78rem; padding: 6px 11px; }
    .nxc-form-card { padding: 22px 16px; }
    .nxc-rail-card { padding: 18px 16px; }
    .nxc-rail-body { gap: 11px; }
}
