/*
Theme Name: Blacksmith Divi Child
Theme URI: https://blacksmithcontent.com
Description: A highly optimized Divi child theme containing the custom Blacksmith AI branding, custom CSS classes, and dynamic JavaScript Canvas engine.
Author: Nic von Schneider
Author URI: https://blacksmithcontent.com
Template: Divi
Version: 1.0.0
*/

/* Core Branding Variables */
:root {
    --bs-dark-bg: #222725;
    --bs-darker-bg: #1a1c1d;
    --bs-primary: #de541e;
    --bs-primary-glow: rgba(222, 84, 30, 0.4);
    --bs-text: #FFFFFF;
    --bs-text-muted: #A0AAB2;
    --bs-border: rgba(255, 255, 255, 0.05);
    --bs-border-hover: rgba(222, 84, 30, 0.3);
}

/* Base Overrides for Divi */
body, #page-container {
    background-color: var(--bs-dark-bg) !important;
    color: var(--bs-text) !important;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--bs-text) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em;
}

/* Custom Blacksmith Divi Utilities */

/* Use 'blacksmith-card' in the CSS Class field of a Divi Blurb or Text Module */
.blacksmith-card {
    background-color: var(--bs-darker-bg) !important;
    border: 1px solid var(--bs-border) !important;
    border-radius: 12px !important;
    padding: 40px !important;
    transition: all 0.3s ease-in-out !important;
}

.blacksmith-card:hover {
    border-color: var(--bs-border-hover) !important;
    transform: translateY(-5px);
}

/* Use 'blacksmith-btn' in the CSS Class field of a Divi Button Module */
.blacksmith-btn .et_pb_button {
    background-color: var(--bs-primary) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 16px 32px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    box-shadow: 0 0 15px var(--bs-primary-glow) !important;
    transition: all 0.3s ease-in-out !important;
}

.blacksmith-btn .et_pb_button:hover {
    background-color: #c2410c !important; /* Slightly darker orange on hover */
    box-shadow: 0 0 25px rgba(222, 84, 30, 0.6) !important;
    transform: scale(1.05);
}

/* Use 'blacksmith-gradient-text' to recreate the fading text gradient */
.blacksmith-gradient-text {
    background: linear-gradient(to right, #fb923c, #de541e) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* The structural container for our Canvas Animation */
#blacksmith-hero-bg {
    position: relative;
    overflow: hidden;
    background-color: var(--bs-dark-bg) !important;
}

#blacksmith-hero-bg canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#blacksmith-hero-bg .et_pb_row {
    position: relative;
    z-index: 10; /* Ensures Divi content sits on top of the animation */
}
