/*
Theme Name: SmartBIS Theme
*/

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root {
    --header-height: 85px;
    --primary-color: #4a59a3; /* Lighter Blue from Logo - good for accents on dark */
    --secondary-color: #2a3a8d; /* Deep Blue from Logo */
    --background-color: #1a1a1a; /* Dark Background */
    --text-color: #E0E0E0; /* Light Grey for text */
    --text-color-strong: #FFFFFF; /* Pure white for headlines */
    --border-color: #444444; /* Dark grey for borders */
}

/* --- Generic --- */

*,
*:before,
*:after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-height); /* Offset for fixed header */
    cursor: none; /* Hide default cursor */
}

a,
button,
input,
textarea {
    cursor: none; /* Hide default cursor on interactive elements */
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--text-color-strong);
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Custom Cursor --- */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border-radius: 50%;
    pointer-events: none; /* Allows clicking through the cursor */
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
}

.custom-cursor.hovered {
    width: 40px;
    height: 40px;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    border-bottom: 1px solid var(--border-color);
    position: fixed; /* Make header sticky */
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background-color: var(--background-color);
    box-sizing: border-box;
}

.site-branding .custom-logo {
    max-height: 50px;
    width: auto;
}

.site-branding .text-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color-strong);
    letter-spacing: 1px;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    margin: 0 20px;
}

.main-navigation a {
    color: var(--text-color);
    font-weight: 500;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--text-color-strong);
}

.header-actions .button {
    margin-left: 15px;
}

/*--------------------------------------------------------------
# Mobile Menu
--------------------------------------------------------------*/
.mobile-menu-toggle {
    display: none; /* Hidden by default on desktop */
    position: relative;
    width: 30px;
    height: 25px;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 1002; /* Higher than the menu container */
}

.mobile-menu-toggle.is-active {
    position: fixed; /* Keep position on top of menu */
    top: 30px;
    right: 30px;
}

.mobile-menu-toggle span {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--text-color-strong);
    transition: all 0.3s;
    left: 0;
}

.mobile-menu-toggle span:nth-child(1) { top: 0; }
.mobile-menu-toggle span:nth-child(2) { top: 11px; }
.mobile-menu-toggle span:nth-child(3) { top: 22px; }

.mobile-menu-toggle.is-active span:nth-child(1) {
    transform: rotate(45deg);
    top: 11px;
    background-color: var(--text-color-strong);
}
.mobile-menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.is-active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 11px;
    background-color: var(--text-color-strong);
}

.mobile-menu-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1001; /* Higher than header, lower than toggle */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.mobile-menu-container.is-active {
    opacity: 1;
    visibility: visible;
}

.mobile-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.mobile-navigation li {
    margin: 20px 0;
}

.mobile-navigation a {
    color: var(--text-color-strong);
    font-size: 24px;
    font-weight: 500;
}

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
.button {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: var(--text-color-strong);
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    border: 1px solid var(--primary-color);
}

.button:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-color-strong);
}

.button.button-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.button.button-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-color-strong);
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
    min-height: calc(100vh - var(--header-height)); /* Adjust for fixed header */
    display: flex;
    align-items: center;
    padding: 0 50px;
    position: relative;
    z-index: 5;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.hero-text {
    max-width: 50%;
}

.hero-text .subtitle {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-text h1 {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    margin: 10px 0;
    text-transform: uppercase;
    color: var(--text-color-strong);
}

.hero-description {
    max-width: 35%;
    align-self: center;
    margin-bottom: 0;
}

.hero-description p {
    font-size: 18px;
    color: var(--text-color);
}

/*--------------------------------------------------------------
# Site Sections
--------------------------------------------------------------*/
.site-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-color-strong);
    text-align: center;
    margin-bottom: 60px;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: #222;
    padding: 40px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
}

.service-item h3 {
    font-size: 24px;
    color: var(--text-color-strong);
    margin-bottom: 15px;
}

/* Why Us Section */
.why-us-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.why-us-text {
    flex: 1;
}

.why-us-text .section-title {
    text-align: left;
}

.why-us-image {
    flex: 1;
}

.why-us-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.why-us-card {
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-us-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* --- Integration Process Section --- */

#integration-process .process-steps {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 50px;
}

#integration-process .step {
    background-color: var(--card-background-color);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
    flex-basis: 31%;
    display: flex;
    flex-direction: column;
}

#integration-process .step-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-color);
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    background-color: rgba(var(--accent-color-rgb), 0.1);
    margin: 0 auto 20px auto;
}

#integration-process .step-title {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--heading-color);
}

#integration-process .step-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    flex-grow: 1;
}

/* --- How It Works Section --- */

.alternate-background {
    background-color: var(--background-color-alt);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.benefit-card {
    background-color: var(--card-background-color);
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.benefit-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.benefit-icon svg {
    width: 100%;
    height: 100%;
}

.benefit-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--heading-color);
}

.benefit-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
}

/* --- AI Audit Section --- */

#ai-audit .audit-form-container {
    max-width: 700px;
    margin: 50px auto 0 auto;
    background-color: var(--card-background-color);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

#audit-form .form-group {
    margin-bottom: 25px;
}

#audit-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--heading-color);
}

#audit-form input[type="url"],
#audit-form input[type="email"],
#audit-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 16px;
    transition: border-color 0.3s ease;
}

#audit-form input[type="url"]:focus,
#audit-form input[type="email"]:focus,
#audit-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

#audit-form .button-primary {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

#audit-form .button-primary:hover {
    background-color: var(--accent-color-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.form-success-message {
    text-align: center;
    color: var(--accent-color);
    font-size: 18px;
    font-weight: 500;
    padding: 20px;
    border: 1px solid var(--accent-color);
    border-radius: 5px;
    background-color: rgba(var(--accent-color-rgb), 0.1);
}


/*--------------------------------------------------------------
# Page Content
--------------------------------------------------------------*/
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 60px 30px;
}

.entry-title {
    color: var(--text-color-strong);
    font-size: 48px;
    margin-bottom: 30px;
    text-align: center;
}

.entry-content p {
    font-size: 18px;
    line-height: 1.7;
}

/*--------------------------------------------------------------
# 3D Canvas
--------------------------------------------------------------*/
#threejs-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/*--------------------------------------------------------------
# Blog / Archive
--------------------------------------------------------------*/
.page-header .page-title {
    text-align: left;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.post-item {
    background-color: #222;
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.post-item .entry-title {
    font-size: 24px;
    text-align: left;
    margin-top: 0;
}

.post-item .entry-title a {
    color: var(--text-color-strong);
}

.post-item .entry-summary {
    color: var(--text-color);
}

.post-item .read-more {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination .page-numbers {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background-color: var(--primary-color);
    color: var(--text-color-strong);
    border-color: var(--primary-color);
}


/*--------------------------------------------------------------
# Single Post
--------------------------------------------------------------*/
.single-main .entry-header {
    margin-bottom: 40px;
    text-align: center;
}

.single-main .entry-meta {
    margin-top: 15px;
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.7;
}


/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.site-footer {
    background-color: #111;
    color: var(--text-color);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-widget-area {
    flex: 1;
    min-width: 220px;
}

.footer-widget-area .custom-logo {
    max-width: 150px;
    margin-bottom: 20px;
}

.footer-description {
    font-size: 14px;
    opacity: 0.7;
}

.widget-title {
    color: var(--text-color-strong);
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-nav, .contact-info, .social-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li, .contact-info li, .social-links li {
    margin-bottom: 10px;
}

.footer-nav a, .contact-info a, .social-links a {
    color: var(--text-color);
    opacity: 0.7;
    transition: opacity 0.3s;
}

.footer-nav a:hover, .contact-info a:hover, .social-links a:hover {
    opacity: 1;
}

.site-info {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    font-size: 14px;
    opacity: 0.5;
}


/*--------------------------------------------------------------
# Responsive Design
--------------------------------------------------------------*/
@media (max-width: 992px) {
    .site-header {
        padding: 0 30px;
    }

    .hero {
        padding: 0 30px;
    }

    .hero-text h1 {
        font-size: 52px;
    }

    .hero-description {
        max-width: 45%;
    }

    /* Hide custom cursor on touch devices */
    .custom-cursor {
        display: none !important;
    }

    body, a, button, input, textarea {
        cursor: auto !important; /* Restore default cursor behavior */
    }

    .site-header .main-navigation,
    .site-header .header-actions {
        display: none;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .site-header {
        flex-wrap: wrap;
        justify-content: space-between; /* To align logo and burger */
    }

    .main-navigation,
    .header-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: block; /* Shown on mobile */
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text,
    .hero-description {
        max-width: 100%;
        align-self: center;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 40px;
    }

    .hero-description {
        margin-top: 30px;
        margin-bottom: 40px;
    }

    .hero-buttons {
        justify-content: center;
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
    }

    .hero-buttons .button {
        margin-right: 0;
    }

    .entry-title {
        font-size: 36px;
    }

    .footer-widgets {
        flex-direction: column;
        text-align: center;
    }

    .why-us-container {
        flex-direction: column;
    }

    .why-us-text .section-title {
        text-align: center;
    }
}

@media (max-width: 992px) {
    .site-footer .footer-widgets {
        flex-direction: column;
        text-align: center;
    }

    .footer-widget-area {
        margin-bottom: 30px;
    }

    #integration-process .process-steps {
        flex-direction: column;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .site-header {
        padding: 15px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .button {
        margin-bottom: 15px;
    }

    .hero-actions .button:last-child {
        margin-bottom: 0;
    }

    #ai-audit .audit-form-container {
        padding: 25px;
    }
}


/*--------------------------------------------------------------
# Contact Form 7
--------------------------------------------------------------*/
.wpcf7-form {
    display: block;
}

.wpcf7-form p {
    margin-bottom: 20px;
}

.wpcf7-form-control {
    width: 100%;
    padding: 15px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    background-color: #222;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.wpcf7-form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.wpcf7-submit {
    /* Apply button styles */
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: var(--text-color-strong);
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    border: 1px solid var(--primary-color);
    cursor: pointer;
    width: auto;
}

.wpcf7-submit:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Response Output Styling */
.wpcf7-response-output {
    margin: 20px 0;
    padding: 15px;
    border-radius: 5px;
}

.wpcf7-validation-errors {
    border: 1px solid #f5c6cb; /* Red for errors */
    background-color: #f8d7da;
    color: #721c24;
}

.wpcf7-mail-sent-ok {
    border: 1px solid #c3e6cb; /* Green for success */
    background-color: #d4edda;
    color: #155724;
}

/* --- 404 Page --- */

.error-404-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-height) - 150px); /* Adjust 150px based on footer height */
    text-align: center;
}

.error-404-title {
    font-size: 120px;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
    margin: 0;
}

.error-404-subtitle {
    font-size: 36px;
    font-weight: 700;
    color: var(--heading-color);
    margin: 20px 0 10px;
}

.error-404-text {
    font-size: 18px;
    color: var(--text-color);
    max-width: 500px;
    margin: 0 auto 30px auto;
}

.error-404-content .button {
    padding: 15px 30px;
    font-size: 18px;
}