/**
 * Custom Unified Theme Stylesheet - Craftsmen Technologies
 * Theme: Crisp Pure White Background + Modern Black & Red Gradient Accents
 * High Contrast, Maximum Readability & Clean Visual Hierarchy
 */

:root {
    --theme-bg: #ffffff;
    --theme-bg-subtle: #f9fafb;
    --theme-text-main: #111827;
    --theme-text-muted: #374151;
    --theme-text-subtle: #4b5563;
    
    --primary: #dc2626;
    --primary-dark: #b91c1c;
    --accent: #990000;
    --black: #111111;
    
    /* Signature Black to Red Gradients */
    --gradient-black-red: linear-gradient(90deg, #111111 0%, #990000 45%, #dc2626 100%);
    --gradient-black-red-hover: linear-gradient(90deg, #000000 0%, #7f0000 45%, #b91c1c 100%);
    --gradient-black-red-angle: linear-gradient(135deg, #111111 0%, #8b0000 50%, #dc2626 100%);
    --gradient-black-red-card: linear-gradient(135deg, #141414 0%, #7f0909 50%, #dc2626 100%);
    
    /* Glow & Shadows */
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.07);
    --shadow-card-hover: 0 14px 30px rgba(220, 38, 38, 0.18);
    --border-card: #e5e7eb;
}

/* ==========================================================================
   Base Background & High-Contrast Typography
   ========================================================================== */
html, body, #wrapwrap, #wrap, main, .x_wd {
    background-color: #ffffff !important;
    color: var(--theme-text-muted) !important;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif !important;
}

/* Crisp & Clear Headings */
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.02em !important;
}

/* Sharp Body Text */
p, .lead, span, li, a {
    color: inherit;
}

.lead {
    color: var(--theme-text-muted) !important;
    font-size: 1.15rem !important;
    line-height: 1.6 !important;
}

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

/* ==========================================================================
   Section Title Underlines (Black to Red)
   ========================================================================== */
.section-title {
    color: var(--theme-text-main) !important;
    position: relative;
    font-weight: 800 !important;
}

.section-title::after {
    content: "" !important;
    background: var(--gradient-black-red) !important;
    width: 80px !important;
    height: 4px !important;
    border-radius: 4px !important;
}

/* ==========================================================================
   Buttons & CTAs (Black & Red Gradient)
   ========================================================================== */
.btn-primary,
.trial_link,
.submit-btn-unique,
.btn-buy,
.btn-background,
a[style*="linear-gradient(90deg, rgba(225, 41, 191"],
a[style*="rgba(167, 18, 233"],
button[style*="linear-gradient(90deg, rgba(225, 41, 191"] {
    background: var(--gradient-black-red) !important;
    background-color: transparent !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.25) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    font-weight: 600 !important;
}

.btn-primary:hover,
.btn-primary:focus,
.trial_link:hover,
.trial_link:focus,
.submit-btn-unique:hover,
.submit-btn-unique:focus,
.btn-buy:hover,
.btn-buy:focus {
    background: var(--gradient-black-red-hover) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 22px rgba(220, 38, 38, 0.38) !important;
}

/* View / Outline Button */
.btn-view,
.btn-outline-primary {
    background-color: transparent !important;
    color: var(--dark) !important;
    border: 2px solid var(--dark) !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.btn-view:hover,
.btn-view:focus,
.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--dark) !important;
    color: #ffffff !important;
    border-color: var(--dark) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* ==========================================================================
   Service Cards System
   ========================================================================== */
.service-card {
    background: #ffffff !important;
    border-radius: 14px !important;
    border: 1px solid var(--border-card) !important;
    box-shadow: var(--shadow-card) !important;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    overflow: hidden !important;
}

.service-card:hover {
    transform: translateY(-6px) scale(1.02) !important;
    box-shadow: var(--shadow-card-hover) !important;
    border-color: rgba(220, 38, 38, 0.35) !important;
}

.service-icon-container {
    width: 100% !important;
    height: 85px !important;
    background: var(--gradient-black-red-angle) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
}

.service-icon-container::after {
    content: '' !important;
    position: absolute !important;
    bottom: -15px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 0 !important;
    height: 0 !important;
    border-left: 15px solid transparent !important;
    border-right: 15px solid transparent !important;
    border-top: 15px solid #dc2626 !important;
}

.service-icon {
    font-size: 34px !important;
    color: #ffffff !important;
    transition: transform 0.3s ease !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) !important;
}

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

.service-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--theme-text-main) !important;
    margin-bottom: 10px !important;
    text-align: center !important;
}

.service-title::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 45px !important;
    height: 2.5px !important;
    background: var(--gradient-black-red) !important;
    border-radius: 2px !important;
}

.service-description {
    color: var(--theme-text-muted) !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    font-weight: 500 !important;
    text-align: center !important;
    margin-bottom: 16px !important;
}

/* Badges / Chips */
.tech-badge {
    background: #fef2f2 !important;
    color: #b91c1c !important;
    border: 1px solid #fecaca !important;
    padding: 4px 12px !important;
    border-radius: 20px !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: #111111 !important;
    transform: translateY(-2px) !important;
}

/* ==========================================================================
   Navigation & Menus
   ========================================================================== */
.o_main_header,
.top_menu {
    background-color: #ffffff !important;
}

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

.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;
}

/* ==========================================================================
   Gradient Text Highlights
   ========================================================================== */
.text-o-color-9,
.text-o-color-8,
.text-o-color-6,
.text-o-color-2 {
    background: var(--gradient-black-red) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 700 !important;
}

/* ==========================================================================
   CTA Banner Sections (Black & Red Hero Accent)
   ========================================================================== */
.cta-section {
    background: var(--gradient-black-red-angle) !important;
    color: #ffffff !important;
}

.cta-section h2,
.cta-section p {
    color: #ffffff !important;
}

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

/* ==========================================================================
   Clean Up Faint / Dull Backgrounds & Ensure White Body
   ========================================================================== */
.bg-200 {
    background-color: #ffffff !important;
}

section {
    background-color: #ffffff;
}

.inquiry-box-unique {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: var(--theme-text-main) !important;
}

.inquiry-box-unique:hover {
    background: var(--gradient-black-red) !important;
    color: #ffffff !important;
    border-color: #111111 !important;
}

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

/* ==========================================================================
   Footer Styles (High Contrast & Clean White Background)
   ========================================================================== */
.o_footer, #bottom {
    background-color: #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;
}


/* ==========================================================================
   Brand Logo Replacement (ctlogo.png)
   ========================================================================== */
.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;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 240px !important;
    height: 70px !important;
}