/* ----------------------------------------------------
   Backlinky - Unified Enterprise Theme Stylesheet
   ---------------------------------------------------- */

/* Remove WP block editor margins injected onto block wrappers */
.wp-site-blocks,
.wp-block-post-content,
.entry-content,
.page-content {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Prevent WP from breaking section full-width layouts */
.alignfull,
.alignwide {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

/* Fix WP core injecting margin-top on html/body when admin bar is present */
html,
body,
html body.admin-bar {
    margin-top: 0 !important;
}

/* Prevent list styles from bleeding into nav menus */
nav ul,
nav ol {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Suppress WP's default a color overrides on nav items */
nav a,
.glass-nav a,
footer a {
    color: inherit;
}

/* Eliminate WP figure/img caption margin interference */
figure {
    margin: 0;
}

@import url('google-fonts.css');

:root {
    --font-primary: 'Plus Jakarta Sans', sans-serif;
    --font-serif: 'Instrument Serif', serif;

    /* Theme Colors */
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    --color-dark: #0f172a;
    --color-dark-alt: #1e293b;
    --color-dark-deep: #020617;

    --color-primary: #4f46e5;
    /* Indigo */
    --color-primary-light: #818cf8;
    --color-primary-dark: #3730a3;

    --color-secondary: #3b82f6;
    /* Blue */
    --color-secondary-light: #60a5fa;

    --color-accent: #10b981;
    /* Emerald */
    --color-accent-light: #34d399;

    /* Border & Glassmorphic variables */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(15, 23, 42, 0.06);
    --glass-blur: 12px;

    --glass-dark-bg: rgba(15, 23, 42, 0.75);
    --glass-dark-border: rgba(255, 255, 255, 0.08);

    /* Animation easings */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Global resets & Base styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: rgba(79, 70, 229, 0.15);
    color: var(--color-primary-dark);
}

/* Typography Utility */
.serif {
    font-family: var(--font-serif);
}

/* Scrollbar customization */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-alt);
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Dot Grid Background Overlay */
.dot-grid {
    background-image: radial-gradient(rgba(226, 232, 240, 0.8) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
}

.dot-grid-dark {
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
}

/* Glassmorphism elements */
.glass-nav {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s var(--ease-smooth);
}

/* When WP admin bar is visible, offset the fixed nav below it */
.admin-bar .glass-nav {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .glass-nav {
        top: 46px;
    }
}

.glass-nav.scrolled {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05);
    border-bottom-color: rgba(15, 23, 42, 0.1);
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.glass-card-dark {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Gradient Background Layouts */
.white-gradient-bg {
    background: radial-gradient(circle at 50% 0%, #f8fafc 0%, #ffffff 100%);
}

.blue-gradient-bg {
    background: radial-gradient(circle at center, #f0f4ff 0%, #ffffff 100%);
}

.side-panel-gradient {
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-alt) 100%);
}

.side-panel-light-gradient {
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, #ffffff 100%);
}

/* Text Gradients */
.text-gradient {
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-purple {
    background: linear-gradient(to right, #8b5cf6, var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Ambient glow blobs in background */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
    animation: ambientMove 20s infinite alternate var(--ease-smooth);
}

.glow-indigo {
    background-color: var(--color-primary);
}

.glow-blue {
    background-color: var(--color-secondary);
}

.glow-purple {
    background-color: #8b5cf6;
}

/* Premium Card hover effects */
.case-study-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid #f1f5f9;
}

.case-study-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(79, 70, 229, 0.08);
    border-color: rgba(79, 70, 229, 0.2);
}

.bento-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid #f1f5f9;
}

.bento-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary-light);
    box-shadow: 0 30px 60px -12px rgba(79, 70, 229, 0.06);
}

.card-hover {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -15px rgba(79, 70, 229, 0.08);
}

.metric-card {
    border: 1px solid #f1f5f9;
    transition: all 0.3s var(--ease-smooth);
}

.metric-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -10px rgba(79, 70, 229, 0.05);
}

/* Tables and Rows list styling */
.inventory-row {
    transition: all 0.25s var(--ease-smooth);
}

.inventory-row:hover {
    background-color: #f8fafc;
    cursor: pointer;
}

.inventory-row:hover td {
    color: var(--color-dark-deep);
}

/* Inputs styling */
.input-premium {
    outline: none;
    border: 1px solid #e2e8f0;
    transition: all 0.3s var(--ease-smooth);
}

.input-premium:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.08);
    background-color: #ffffff;
}

/* Details summary dropdown customization */
details.group summary::-webkit-details-marker {
    display: none;
}

details.group summary {
    list-style: none;
    outline: none;
}

/* FAQ Details styling */
details.group[open] {
    border-color: var(--color-primary);
    box-shadow: 0 20px 40px -15px rgba(79, 70, 229, 0.05);
}

/* Badges */
.status-badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.tag-active {
    background-color: var(--color-primary);
    color: white;
}

.ai-summary-box {
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    border: 1px solid #dbeafe;
}

/* Process connectors */
.process-node {
    position: relative;
}

.process-node::after {
    content: '';
    position: absolute;
    top: 32px;
    left: 60%;
    width: 80%;
    height: 1px;
    background: #e2e8f0;
    z-index: -1;
}

@media (max-width: 1024px) {
    .process-node::after {
        display: none;
    }
}

/* Custom interactive Sidebar layouts */
.sidebar-link {
    transition: all 0.3s var(--ease-smooth);
    border-left: 2px solid transparent;
}

.sidebar-link:hover,
.sidebar-link.active {
    color: var(--color-primary);
    border-left-color: var(--color-primary);
    padding-left: 1.25rem;
}

/* Keyframes & Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.floating-badge {
    animation: float 4s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 0 0px rgba(79, 70, 229, 0.2);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(79, 70, 229, 0);
    }
}

.pulse-glow {
    animation: pulseGlow 2.5s infinite;
}

@keyframes ambientMove {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(50px, 30px) scale(1.1);
    }

    100% {
        transform: translate(-30px, -50px) scale(0.9);
    }
}

/* Mobile Nav Drawer styling */
.mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 290px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: -10px 0 40px rgba(15, 23, 42, 0.08);
    z-index: 150;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.25rem;
}

.mobile-menu-drawer.open {
    right: 0;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 140;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-smooth);
}

.mobile-menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* Dynamic WordPress Navigation Styling */
.glass-nav .main-menu ul {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    /* gap-10 */
    font-size: 13px;
    /* text-[13px] */
    font-weight: 700;
    /* font-bold */
    text-transform: uppercase;
    /* uppercase */
    letter-spacing: 0.1em;
    /* tracking-widest */
    color: #64748b;
    /* text-slate-500 */
    list-style: none;
    margin: 0;
    padding: 0;
}

.glass-nav .main-menu ul li a {
    color: #64748b;
    transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.glass-nav .main-menu ul li a:hover,
.glass-nav .main-menu ul li.current-menu-item>a,
.glass-nav .main-menu ul li.current_page_item>a {
    color: #4f46e5;
    /* hover:text-indigo-600 */
}



.cf7-modern-wrap .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cf7-modern-wrap .wpcf7-form input[type="text"],
.cf7-modern-wrap .wpcf7-form input[type="email"],
.cf7-modern-wrap .wpcf7-form input[type="tel"],
.cf7-modern-wrap .wpcf7-form textarea,
.cf7-modern-wrap .wpcf7-form select {
    width: 100%;
    background: #F8FAFC;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #0f172a;
    font-family: var(--font-primary);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
}

.cf7-modern-wrap .wpcf7-form input:focus,
.cf7-modern-wrap .wpcf7-form textarea:focus {
    border-color: #4f46e5;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.08);
}

.cf7-modern-wrap .wpcf7-form textarea {
    min-height: 140px;
    resize: vertical;
}

.cf7-modern-wrap .wpcf7-form input[type="submit"] {
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 99px;
    padding: 1rem 2.5rem;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-family: var(--font-primary);
}

.cf7-modern-wrap .wpcf7-form input[type="submit"]:hover {
    background: #1e1b4b;
    transform: translateY(-1px);
}

.cf7-modern-wrap .wpcf7-not-valid-tip {
    color: #ef4444;
    font-size: 0.7rem;
    font-weight: 700;
    margin-top: 0.25rem;
    display: block;
}

.cf7-modern-wrap .wpcf7-response-output {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    border: none;
}

.cf7-modern-wrap .wpcf7-mail-sent-ok {
    background: #dcfce7;
    color: #166534;
}

.cf7-modern-wrap .wpcf7-validation-errors,
.cf7-modern-wrap .wpcf7-spam-blocked {
    background: #fef2f2;
    color: #991b1b;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 900;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    color: #475569;
    background: #fff;
    transition: all 0.2s;
}

.page-numbers:hover {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #fff;
}

.page-numbers.current {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

.page-numbers.dots {
    border: none;
    background: transparent;
}

.text-gradient {
    background: linear-gradient(135deg, #4f46e5 0%, #818cf8 50%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.input-premium {
    background: #F8FAFC;
    border: 1px solid #e2e8f0;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.input-premium:focus {
    outline: none;
    border-color: #4f46e5;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.08);
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Set specific width on Categories column for publishers tables to prevent stretching */
.col-categories {
    width: 180px !important;
    max-width: 180px !important;
    min-width: 140px !important;
    white-space: normal !important;
    word-break: break-word !important;
}

/* Contact Form 7 Custom Styling */
.wpcf7-form {
    display: flex;
    flex-direction: column;
}

/* Space BETWEEN two separate fields */
.wpcf7-form p,
.cf7-custom-wrapper p {
    margin-top: 0 !important;
    margin-bottom: 1.25rem !important;
}

/* Remove space BETWEEN label and its input field */
.wpcf7-form label,
.cf7-custom-wrapper label {
    display: block !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    color: #64748b !important;
    margin-bottom: 4px !important;
    line-height: 1.2 !important;
}

.wpcf7-form label br,
.cf7-custom-wrapper label br,
.wpcf7-form br,
.cf7-custom-wrapper br {
    display: none !important;
}

.wpcf7-form .wpcf7-form-control-wrap,
.cf7-custom-wrapper .wpcf7-form-control-wrap {
    display: block !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    width: 100% !important;
}

.wpcf7-form .wpcf7-form-control:not(.wpcf7-submit) {
    width: 100%;
    padding: 1rem 1.25rem;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #0f172a;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
    outline: none;
    box-sizing: border-box;
}

.wpcf7-form .wpcf7-form-control:not(.wpcf7-submit):focus {
    border-color: #4f46e5;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.08);
}

.wpcf7-form textarea.wpcf7-form-control {
    min-height: 120px;
    resize: vertical;
}

.wpcf7-form .wpcf7-submit {
    width: 100%;
    padding: 1.25rem;
    background-color: #4f46e5;
    color: #ffffff;
    border-radius: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.1);
}

.wpcf7-form .wpcf7-submit:hover {
    background-color: #4338ca;
    box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.2);
}

.wpcf7-form .wpcf7-submit:active {
    transform: scale(0.98);
}

.wpcf7-form .wpcf7-not-valid-tip {
    color: #ef4444;
    font-size: 11px;
    font-weight: 600;
    margin-top: 0.25rem;
    display: block;
}

.wpcf7-response-output {
    margin: 1.5rem 0 0 0 !important;
    padding: 1rem 1.25rem !important;
    border-radius: 0.75rem !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border: 1px solid transparent !important;
    text-align: center;
}

.wpcf7-form.sent .wpcf7-response-output {
    background-color: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
    color: #15803d !important;
}

.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.unaccepted .wpcf7-response-output,
.wpcf7-form.failed .wpcf7-response-output {
    background-color: #fef2f2 !important;
    border-color: #fecaca !important;
    color: #b91c1c !important;
}

/* Equal top and bottom spacing around submit button */
.wpcf7-form p:has(.wpcf7-submit),
.cf7-custom-wrapper p:has(.wpcf7-submit) {
    margin-top: 1.25rem !important;
    margin-bottom: 0.25rem !important;
}

.wpcf7-response-output:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* FAQ details icon toggling */
details[open] .faq-icon-plus {
    display: none !important;
}
details:not([open]) .faq-icon-minus {
    display: none !important;
}