/*
 Theme Name:   Datanex Solutions Child Theme
 Theme URI:    https://datanex.co.za
 Description:  Custom child theme for Datanex Solutions IT Company
 Author:       Datanex Solutions
 Author URI:   https://datanex.co.za
 Template:     hello-elementor
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  datanex-child
*/

/* =====================================================
   DATANEX SOLUTIONS - CUSTOM STYLES
   Brand Colors:
   - Primary Blue (Dark): #1a3a5c
   - Primary Blue (Medium): #2d5a87
   - Accent Blue (Light/Cyan): #00b4d8
   - Accent Blue (Gradient): #0096c7
   - Gray (Text): #6b7280
   - Gray (Light): #9ca3af
   - White: #ffffff
   - Dark Background: #0d1b2a
===================================================== */

/* ----- ROOT VARIABLES ----- */
:root {
    --datanex-primary-dark: #1a3a5c;
    --datanex-primary-medium: #2d5a87;
    --datanex-accent-light: #00b4d8;
    --datanex-accent-gradient: #0096c7;
    --datanex-gray: #6b7280;
    --datanex-gray-light: #9ca3af;
    --datanex-white: #ffffff;
    --datanex-dark-bg: #0d1b2a;
    --datanex-gradient: linear-gradient(135deg, #00b4d8 0%, #1a3a5c 100%);
    --datanex-gradient-reverse: linear-gradient(135deg, #1a3a5c 0%, #00b4d8 100%);
    --transition-smooth: all 0.3s ease-in-out;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-large: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --border-radius: 8px;
    --border-radius-large: 16px;
}

/* ----- GLOBAL STYLES ----- */
body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--datanex-gray);
    line-height: 1.7;
    background-color: var(--datanex-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Inter', sans-serif;
    color: var(--datanex-primary-dark);
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1.25rem;
    color: var(--datanex-gray);
}

a {
    color: var(--datanex-accent-light);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--datanex-primary-medium);
}

/* ----- HEADER & NAVIGATION ----- */
header.site-header,
.site-header {
    background: var(--datanex-white);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .logo img {
    max-height: 60px;
    width: auto;
}

.main-navigation ul li a,
.primary-menu a {
    color: var(--datanex-primary-dark);
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    transition: var(--transition-smooth);
    position: relative;
}

.main-navigation ul li a:hover,
.primary-menu a:hover {
    color: var(--datanex-accent-light);
}

.main-navigation ul li a::after,
.primary-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--datanex-gradient);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.main-navigation ul li a:hover::after,
.primary-menu a:hover::after {
    width: 80%;
}

/* ----- BUTTONS ----- */
.btn,
button,
input[type="submit"],
.wp-block-button__link {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    text-transform: none;
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary,
.wp-block-button__link {
    background: var(--datanex-gradient);
    color: var(--datanex-white) !important;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover,
.wp-block-button__link:hover {
    background: var(--datanex-gradient-reverse);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: transparent;
    color: var(--datanex-primary-dark);
    border: 2px solid var(--datanex-primary-dark);
}

.btn-secondary:hover {
    background: var(--datanex-primary-dark);
    color: var(--datanex-white);
}

.btn-accent {
    background: var(--datanex-accent-light);
    color: var(--datanex-white);
}

.btn-accent:hover {
    background: var(--datanex-accent-gradient);
}

/* ----- HERO SECTION ----- */
.hero-section,
.page-hero {
    background: var(--datanex-gradient);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/circuit-pattern.svg') repeat;
    opacity: 0.1;
    pointer-events: none;
}

.hero-section h1,
.page-hero h1 {
    color: var(--datanex-white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero-section p,
.page-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* ----- SERVICES CARDS ----- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.service-card {
    background: var(--datanex-white);
    border-radius: var(--border-radius-large);
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 180, 216, 0.1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--datanex-gradient);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
}

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

.service-card .icon {
    width: 70px;
    height: 70px;
    background: var(--datanex-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-card .icon svg,
.service-card .icon i {
    color: var(--datanex-white);
    font-size: 1.75rem;
}

.service-card h3 {
    color: var(--datanex-primary-dark);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--datanex-gray);
    margin-bottom: 1.5rem;
}

/* ----- FEATURES / WHY CHOOSE US ----- */
.features-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 5rem 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--datanex-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.feature-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-medium);
}

.feature-item .check-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--datanex-accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--datanex-white);
}

/* ----- PARTNERS SECTION ----- */
.partners-section {
    background: var(--datanex-dark-bg);
    padding: 4rem 2rem;
    text-align: center;
}

.partners-section h2 {
    color: var(--datanex-white);
    margin-bottom: 2rem;
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.partners-logos a {
    opacity: 0.7;
    transition: var(--transition-smooth);
}

.partners-logos a:hover {
    opacity: 1;
}

.partners-logos img {
    max-height: 50px;
    filter: brightness(0) invert(1);
}

/* ----- FORMS ----- */
.wpcf7-form,
.contact-form {
    background: var(--datanex-white);
    padding: 2.5rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form select,
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition-smooth);
    background: #f8fafc;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--datanex-accent-light);
    box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.1);
    background: var(--datanex-white);
}

.wpcf7-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--datanex-primary-dark);
}

/* File Upload Styling */
.wpcf7-form input[type="file"] {
    padding: 1rem;
    border: 2px dashed var(--datanex-accent-light);
    background: rgba(0, 180, 216, 0.05);
    border-radius: var(--border-radius);
    cursor: pointer;
}

.wpcf7-form input[type="file"]:hover {
    background: rgba(0, 180, 216, 0.1);
}

/* ----- UPLOAD SECTION ----- */
.upload-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 3rem;
    border-radius: var(--border-radius-large);
    margin: 2rem 0;
}

.upload-requirements {
    background: var(--datanex-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--datanex-accent-light);
}

.upload-requirements h4 {
    color: var(--datanex-primary-dark);
    margin-bottom: 1rem;
}

.upload-requirements ul {
    list-style: none;
    padding: 0;
}

.upload-requirements li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.upload-requirements li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--datanex-accent-light);
    font-weight: bold;
}

/* ----- FAQ SECTION ----- */
.faq-section {
    padding: 5rem 2rem;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-question {
    background: #f8fafc;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--datanex-primary-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.faq-question:hover {
    background: rgba(0, 180, 216, 0.1);
}

.faq-answer {
    padding: 1.5rem;
    background: var(--datanex-white);
    color: var(--datanex-gray);
    line-height: 1.8;
}

/* ----- CONTACT PAGE ----- */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-info-item {
    background: var(--datanex-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: var(--transition-smooth);
}

.contact-info-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.contact-info-item .icon {
    width: 60px;
    height: 60px;
    background: var(--datanex-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--datanex-white);
    font-size: 1.5rem;
}

.contact-info-item h4 {
    margin-bottom: 0.5rem;
}

/* ----- FOOTER ----- */
footer.site-footer,
.site-footer {
    background: var(--datanex-dark-bg);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 2rem 2rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-widget h4 {
    color: var(--datanex-white);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget ul li {
    margin-bottom: 0.75rem;
}

.footer-widget ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-smooth);
}

.footer-widget ul li a:hover {
    color: var(--datanex-accent-light);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* ----- LIVE CHAT BUTTON ----- */
.live-chat-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--datanex-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--datanex-white);
    font-size: 1.5rem;
    box-shadow: var(--shadow-large);
    cursor: pointer;
    z-index: 9999;
    transition: var(--transition-smooth);
}

.live-chat-button:hover {
    transform: scale(1.1);
}

/* ----- RESPONSIVE DESIGN ----- */
@media (max-width: 1024px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-section h1,
    .page-hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .hero-section,
    .page-hero {
        padding: 4rem 1.5rem;
    }
    
    .hero-section h1,
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .wpcf7-form,
    .contact-form {
        padding: 1.5rem;
    }
    
    .partners-logos {
        gap: 2rem;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-section h1,
    .page-hero h1 {
        font-size: 1.75rem;
    }
    
    .hero-section p,
    .page-hero p {
        font-size: 1rem;
    }
    
    .btn,
    button,
    input[type="submit"] {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
}

/* ----- UTILITY CLASSES ----- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.gradient-text {
    background: var(--datanex-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ----- ANIMATIONS ----- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* ----- ACCESSIBILITY ----- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 3px solid var(--datanex-accent-light);
    outline-offset: 2px;
}

/* ----- PRINT STYLES ----- */
@media print {
    .site-header,
    .site-footer,
    .live-chat-button {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}
[type=button], [type=submit], button {
    background-color: #0d1b29!important;
    border: 1px solid #c36;
    border-radius: 3px;
    color: #ffffff!important;
    display: inline-block;
    font-size: 1rem;
    font-weight: 400;
    padding: .5rem 1rem;
    text-align: center;
    transition: all .3s;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    white-space: nowrap;
}