/**
 * Craftsmen Technologies
 * Unified Modern Theme
 * White + Black / Red Gradient
 */

/* =========================================================
   ROOT VARIABLES
========================================================= */

:root {
    --theme-bg: #ffffff;
    --theme-bg-subtle: #f8fafc;

    --theme-text-main: #111111;
    --theme-text-muted: #374151;
    --theme-text-subtle: #6b7280;

    --primary: #dc2626;
    --primary-dark: #b91c1c;
    --accent: #990000;

    --black: #111111;
    --dark: #0f1115;
    --dark-2: #18181b;

    --border: #e5e7eb;
    --border-dark: #27272a;

    /* Main Gradients */
    --gradient-black-red:
        linear-gradient(
            90deg,
            #111111 0%,
            #990000 48%,
            #dc2626 100%
        );

    --gradient-black-red-angle:
        linear-gradient(
            135deg,
            #0b0b0b 0%,
            #111111 28%,
            #7f0000 68%,
            #dc2626 100%
        );

    --gradient-black-red-card:
        linear-gradient(
            135deg,
            #111111 0%,
            #4b0505 45%,
            #dc2626 100%
        );

    --gradient-hover:
        linear-gradient(
            90deg,
            #000000 0%,
            #700000 48%,
            #b91c1c 100%
        );

    /* Shadows */
    --shadow-sm:
        0 4px 14px rgba(0, 0, 0, 0.06);

    --shadow-card:
        0 8px 30px rgba(0, 0, 0, 0.07);

    --shadow-hover:
        0 18px 40px rgba(220, 38, 38, 0.18);
}


/* =========================================================
   GLOBAL RESET
========================================================= */

html,
body,
#wrapwrap,
#wrap,
main,
.x_wd {
    background: #ffffff !important;
    color: var(--theme-text-muted) !important;

    font-family:
        "Segoe UI",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        sans-serif !important;
}

body {
    overflow-x: hidden;
}

section {
    background-color: #ffffff;
}

* {
    box-sizing: border-box;
}


/* =========================================================
   TYPOGRAPHY
========================================================= */

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
    color: var(--theme-text-main) !important;

    font-weight: 700 !important;

    letter-spacing: -0.025em !important;
}

p,
li {
    color: var(--theme-text-muted);
}

.lead {
    color: var(--theme-text-muted) !important;

    font-size: 1.1rem !important;

    line-height: 1.75 !important;
}

.text-muted {
    color: var(--theme-text-subtle) !important;
}

a {
    transition: all 0.25s ease;
}


/* =========================================================
   SECTION TITLES
========================================================= */

.section-title {
    position: relative !important;

    display: inline-block !important;

    color: var(--theme-text-main) !important;

    font-weight: 800 !important;

    padding-bottom: 14px !important;
}

.section-title::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 70px;
    height: 4px;

    border-radius: 20px;

    background: var(--gradient-black-red) !important;
}


/* Centered section title */

.text-center .section-title::after {
    left: 50%;

    transform: translateX(-50%);
}


/* =========================================================
   GRADIENT TEXT
========================================================= */

.text-o-color-9,
.text-o-color-8,
.text-o-color-6,
.text-o-color-2,
.gradient-text {
    background: var(--gradient-black-red) !important;

    -webkit-background-clip: text !important;
    background-clip: text !important;

    -webkit-text-fill-color: transparent !important;

    font-weight: 800 !important;
}


/* =========================================================
   BUTTONS
========================================================= */

.btn-primary,
.btn-buy,
.trial_link,
.submit-btn-unique,
.btn-background,
.cta-btn,
a[style*="linear-gradient"],
button[style*="linear-gradient"] {
    background: var(--gradient-black-red) !important;

    background-color: transparent !important;

    color: #ffffff !important;

    border: none !important;

    border-radius: 8px !important;

    font-weight: 600 !important;

    box-shadow:
        0 6px 18px rgba(220, 38, 38, 0.22) !important;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-buy:hover,
.btn-buy:focus,
.trial_link:hover,
.trial_link:focus,
.submit-btn-unique:hover,
.submit-btn-unique:focus,
.btn-background:hover,
.cta-btn:hover {
    background: var(--gradient-hover) !important;

    color: #ffffff !important;

    transform: translateY(-3px) !important;

    box-shadow:
        0 12px 28px rgba(220, 38, 38, 0.32) !important;
}


/* =========================================================
   OUTLINE BUTTONS
========================================================= */

.btn-outline-primary,
.btn-view {
    background: transparent !important;

    color: var(--dark) !important;

    border: 2px solid var(--dark) !important;

    border-radius: 8px !important;

    font-weight: 600 !important;

    transition: all 0.3s ease !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-view:hover,
.btn-view:focus {
    background: var(--dark) !important;

    color: #ffffff !important;

    border-color: var(--dark) !important;

    transform: translateY(-2px) !important;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.15) !important;
}


/* =========================================================
   SERVICE CARDS
========================================================= */

.service-card {
    position: relative;

    height: 100%;

    background: #ffffff !important;

    border: 1px solid var(--border) !important;

    border-radius: 16px !important;

    overflow: hidden !important;

    box-shadow: var(--shadow-card) !important;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease !important;
}

.service-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background: var(--gradient-black-red);

    transform: scaleX(0);

    transform-origin: left;

    transition: transform 0.35s ease;
}

.service-card:hover {
    transform: translateY(-8px) !important;

    border-color: rgba(220, 38, 38, 0.35) !important;

    box-shadow: var(--shadow-hover) !important;
}

.service-card:hover::before {
    transform: scaleX(1);
}


/* =========================================================
   SERVICE ICON
========================================================= */

.service-icon-container {
    width: 100% !important;

    height: 90px !important;

    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    position: relative !important;

    background: var(--gradient-black-red-angle) !important;

    overflow: hidden !important;
}

.service-icon-container::before {
    content: "";

    position: absolute;

    width: 150px;
    height: 150px;

    top: -80px;
    right: -40px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.08);
}

.service-icon-container::after {
    content: "";

    position: absolute;

    width: 100px;
    height: 100px;

    bottom: -70px;
    left: -30px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.06);
}

.service-icon {
    position: relative;

    z-index: 2;

    font-size: 34px !important;

    color: #ffffff !important;

    text-shadow:
        0 3px 10px rgba(0, 0, 0, 0.4);

    transition:
        transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(4deg);
}


/* =========================================================
   SERVICE TITLE
========================================================= */

.service-title {
    position: relative !important;

    font-size: 16px !important;

    font-weight: 700 !important;

    color: var(--theme-text-main) !important;

    text-align: center !important;

    margin-bottom: 12px !important;

    padding-bottom: 10px;
}

.service-title::after {
    content: "";

    position: absolute;

    left: 50%;

    bottom: 0;

    transform: translateX(-50%);

    width: 42px;

    height: 3px;

    border-radius: 20px;

    background: var(--gradient-black-red);
}

.service-description {
    color: var(--theme-text-muted) !important;

    font-size: 13px !important;

    line-height: 1.65 !important;

    text-align: center !important;

    margin-bottom: 0 !important;
}


/* =========================================================
   TECHNOLOGY BADGES
========================================================= */

.tech-badge {
    display: inline-block;

    background: #fff5f5 !important;

    color: #b91c1c !important;

    border: 1px solid #fecaca !important;

    padding: 6px 13px !important;

    border-radius: 50px !important;

    font-size: 11px !important;

    font-weight: 600 !important;

    transition: all 0.25s ease !important;
}

.tech-badge:hover {
    background: var(--gradient-black-red) !important;

    color: #ffffff !important;

    border-color: transparent !important;

    transform: translateY(-2px);

    box-shadow:
        0 5px 14px rgba(220, 38, 38, 0.2);
}


/* =========================================================
   HOW WE WORK / STEPS
========================================================= */

.step-card {
    position: relative;

    background: #ffffff;

    border: 1px solid var(--border);

    border-radius: 14px;

    padding: 28px 22px;

    height: 100%;

    box-shadow: var(--shadow-sm);

    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);

    border-color: rgba(220, 38, 38, 0.35);

    box-shadow: var(--shadow-hover);
}

.step-number {
    width: 54px;

    height: 54px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin: 0 auto 18px;

    border-radius: 50%;

    background: var(--gradient-black-red);

    color: #ffffff !important;

    font-size: 18px;

    font-weight: 800;

    box-shadow:
        0 7px 18px rgba(220, 38, 38, 0.25);
}


/* =========================================================
   PRICING CARDS
========================================================= */

.pricing-card {
    height: 100%;

    background: #ffffff !important;

    border: 1px solid var(--border) !important;

    border-radius: 16px !important;

    overflow: hidden !important;

    box-shadow: var(--shadow-card) !important;

    transition: all 0.35s ease !important;
}

.pricing-card:hover {
    transform: translateY(-8px) !important;

    box-shadow: var(--shadow-hover) !important;

    border-color: rgba(220, 38, 38, 0.4) !important;
}


/* Pricing headers */

.pricing-card .bg-warning,
.pricing-card .bg-success,
.pricing-header {
    background: var(--gradient-black-red-angle) !important;

    color: #ffffff !important;

    border: none !important;
}

.pricing-card .bg-warning *,
.pricing-card .bg-success *,
.pricing-header * {
    color: #ffffff !important;
}


/* Featured pricing card */

.pricing-card.featured,
.pricing-card.popular {
    border: 2px solid #dc2626 !important;

    position: relative;
}

.pricing-card.featured::before,
.pricing-card.popular::before {
    content: "POPULAR";

    position: absolute;

    top: 14px;
    right: -34px;

    transform: rotate(45deg);

    width: 130px;

    text-align: center;

    padding: 5px 0;

    background: #ffffff;

    color: #b91c1c;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 0.08em;

    z-index: 5;
}


/* =========================================================
   FAQ
========================================================= */

.faq-item {
    background: #ffffff !important;

    border: 1px solid var(--border) !important;

    border-radius: 10px !important;

    margin-bottom: 12px !important;

    overflow: hidden !important;

    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.04);

    transition: all 0.25s ease;
}

.faq-item:hover {
    border-color: rgba(220, 38, 38, 0.3) !important;
}

.faq-question {
    cursor: pointer;

    padding: 18px 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    color: var(--theme-text-main) !important;

    font-weight: 700;

    background: #ffffff;
}

.faq-question i {
    color: var(--primary);

    transition: transform 0.3s ease;
}

.faq-item.active .faq-question {
    color: var(--primary) !important;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px 20px;

    color: var(--theme-text-muted);

    line-height: 1.7;
}


/* =========================================================
   CTA SECTION
========================================================= */

.cta-section {
    position: relative;

    overflow: hidden;

    background:
        var(--gradient-black-red-angle) !important;

    color: #ffffff !important;

    border-radius: 0 !important;
}

.cta-section::before {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    top: -150px;
    right: -80px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.06);
}

.cta-section::after {
    content: "";

    position: absolute;

    width: 220px;
    height: 220px;

    bottom: -120px;
    left: -60px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.05);
}

.cta-section h1,
.cta-section h2,
.cta-section h3,
.cta-section h4,
.cta-section h5,
.cta-section p,
.cta-section span {
    color: #ffffff !important;

    position: relative;

    z-index: 2;
}


/* =========================================================
   INQUIRY BOX
========================================================= */

.inquiry-box-unique {
    background: #f8fafc !important;

    border: 1px solid #e2e8f0 !important;

    color: var(--theme-text-main) !important;

    border-radius: 12px;

    transition: all 0.3s ease;
}

.inquiry-box-unique:hover {
    background: var(--gradient-black-red) !important;

    color: #ffffff !important;

    border-color: transparent !important;

    transform: translateY(-3px);

    box-shadow:
        0 10px 25px rgba(220, 38, 38, 0.2);
}

.inquiry-box-unique:hover *,
.inquiry-box-unique:hover i {
    color: #ffffff !important;
}


/* =========================================================
   BENEFIT ICONS
========================================================= */

.benefit-icon {
    color: var(--primary) !important;

    transition: transform 0.25s ease;
}

.benefit-icon:hover {
    transform: scale(1.1);
}


/* =========================================================
   NAVIGATION
========================================================= */

.o_main_header,
.top_menu {
    background: #ffffff !important;

    box-shadow:
        0 2px 12px rgba(0, 0, 0, 0.05);
}

.o_primary_nav > li > a {
    color: var(--theme-text-main) !important;

    font-weight: 600 !important;

    transition: color 0.2s ease;
}

.o_primary_nav > li > a:hover {
    color: var(--primary) !important;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background: var(--gradient-black-red) !important;

    color: #ffffff !important;

    border-radius: 7px;
}


/* =========================================================
   BOOTSTRAP BACKGROUND OVERRIDES
========================================================= */

.bg-200 {
    background-color: #ffffff !important;
}

.bg-light {
    background-color: #f8fafc !important;
}

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

    color: #ffffff !important;
}

.bg-warning {
    background: var(--gradient-black-red) !important;

    color: #ffffff !important;
}

.bg-success {
    background: var(--gradient-black-red) !important;

    color: #ffffff !important;
}


/* =========================================================
   FORM INPUTS
========================================================= */

.form-control,
.form-select {
    border: 1px solid #d1d5db !important;

    border-radius: 8px !important;

    min-height: 45px;

    color: #111111 !important;

    background: #ffffff !important;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #dc2626 !important;

    box-shadow:
        0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}


/* =========================================================
   FOOTER
========================================================= */

.o_footer,
#bottom {
    background: #ffffff !important;

    color: #374151 !important;

    border-top: 1px solid #e5e7eb !important;
}

.o_footer_title {
    color: #111827 !important;

    font-weight: 700 !important;
}

.o_footer_links a {
    color: #4b5563 !important;

    transition: color 0.2s ease !important;
}

.o_footer_links a:hover {
    color: #dc2626 !important;
}


/* =========================================================
   FOOTER DARK VARIANT
========================================================= */

.footer-dark {
    background: var(--gradient-black-red-angle) !important;

    color: #ffffff !important;
}

.footer-dark h1,
.footer-dark h2,
.footer-dark h3,
.footer-dark h4,
.footer-dark h5,
.footer-dark h6,
.footer-dark p,
.footer-dark span,
.footer-dark a {
    color: #ffffff !important;
}


/* =========================================================
   LOGO
========================================================= */

.o_logo,
.o_logo_header,
.o_logo_footer,
.o_footer_logo {
    background-image: url("ctlogo.png") !important;

    background-size: contain !important;

    background-position: center left !important;

    background-repeat: no-repeat !important;

    display: inline-block !important;

    width: 220px !important;

    height: 60px !important;

    vertical-align: middle !important;
}

.o_logo_footer,
.o_footer_logo {
    background-position: center !important;

    width: 240px !important;

    height: 70px !important;

    margin-left: auto !important;

    margin-right: auto !important;
}


/* =========================================================
   TABLES
========================================================= */

.table {
    color: var(--theme-text-muted) !important;
}

.table thead th {
    background: var(--gradient-black-red) !important;

    color: #ffffff !important;

    border: none !important;
}

.table tbody tr {
    transition: background 0.2s ease;
}

.table tbody tr:hover {
    background: #fff5f5 !important;
}


/* =========================================================
   BADGES
========================================================= */

.badge.bg-danger,
.badge.bg-primary {
    background: var(--gradient-black-red) !important;

    color: #ffffff !important;
}


/* =========================================================
   SCROLLBAR
========================================================= */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        #111111,
        #dc2626
    );

    border-radius: 10px;
}


/* =========================================================
   MOBILE RESPONSIVE
========================================================= */

@media (max-width: 991px) {

    .section-title {
        font-size: 2rem !important;
    }

    .service-card {
        margin-bottom: 20px;
    }

    .pricing-card {
        margin-bottom: 24px;
    }
}


@media (max-width: 767px) {

    .section-title {
        font-size: 1.75rem !important;
    }

    .lead {
        font-size: 1rem !important;
    }

    .service-icon-container {
        height: 80px !important;
    }

    .service-icon {
        font-size: 30px !important;
    }

    .step-card {
        padding: 22px 18px;
    }

    .pricing-card.featured::before,
    .pricing-card.popular::before {
        display: none;
    }

    .o_logo,
    .o_logo_header {
        width: 180px !important;

        height: 50px !important;
    }
}


@media (max-width: 480px) {

    .section-title {
        font-size: 1.5rem !important;
    }

    .btn-primary,
    .btn-buy,
    .btn-outline-primary,
    .btn-view {
        width: 100%;
    }

    .service-card {
        border-radius: 12px !important;
    }
}