/*
Theme Name: B10
Theme URI: https://b10-char.com
Author: B10 Team
Author URI: https://b10-char.com
Description: A child theme of Hello Elementor for B10 - Turning waste into biochar, powering a circular carbon future. Optimized for Elementor Pro.
Version: 1.0.0
Template: hello-elementor
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: b10
Tags: elementor, business, corporate, environmental, biochar, sustainability, child-theme

B10 - Turning Waste Into Biochar, Powering A Circular Carbon Future.
*/

/* ==========================================================================
   B10 Brand Colors & Variables (from Brand Guide V1.0)
   ========================================================================== */

:root {
    /* Primary Brand Colors */
    --b10-charcoal: #36454F;
    --b10-earth: #8AD6A9;
    --b10-mist: #D2D2D2;

    /* Extended Palette */
    --b10-charcoal-light: #4a5d68;
    --b10-charcoal-dark: #2a363d;
    --b10-earth-light: #a8e4c0;
    --b10-earth-dark: #6bc492;

    /* Functional Colors */
    --b10-white: #ffffff;
    --b10-black: #1a1a1a;
    --b10-text: #36454F;
    --b10-text-light: #D2D2D2;
    --b10-border: #e2e8f0;
}

/* ==========================================================================
   Typography - PT Mono (B10 Brand Font)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=PT+Mono&family=Inter:wght@400;500;600;700&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--b10-text);
    line-height: 1.7;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'PT Mono', monospace;
    font-weight: 700;
    line-height: 1.3;
    color: var(--b10-charcoal);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* Brand accent text */
.b10-accent,
.b10-earth-text {
    color: var(--b10-earth);
}

.b10-charcoal-text {
    color: var(--b10-charcoal);
}

.b10-mist-text {
    color: var(--b10-mist);
}

/* ==========================================================================
   Links
   ========================================================================== */

a {
    color: var(--b10-earth);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--b10-earth-dark);
}

/* ==========================================================================
   Buttons - B10 Style
   ========================================================================== */

.b10-btn,
button,
input[type="button"],
input[type="submit"],
.button,
.wp-block-button__link {
    display: inline-block;
    padding: 14px 32px;
    font-family: 'PT Mono', monospace;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Primary Button (Earth Green) */
.b10-btn-primary,
button,
input[type="submit"],
.wp-block-button__link {
    background-color: var(--b10-earth);
    color: var(--b10-charcoal);
    border: 2px solid var(--b10-earth);
}

.b10-btn-primary:hover,
button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
    background-color: var(--b10-earth-dark);
    border-color: var(--b10-earth-dark);
    color: var(--b10-white);
}

/* Secondary Button (Charcoal) */
.b10-btn-secondary {
    background-color: var(--b10-charcoal);
    color: var(--b10-white);
    border: 2px solid var(--b10-charcoal);
}

.b10-btn-secondary:hover {
    background-color: var(--b10-charcoal-dark);
    border-color: var(--b10-charcoal-dark);
}

/* Outline Button */
.b10-btn-outline {
    background-color: transparent;
    color: var(--b10-charcoal);
    border: 2px solid var(--b10-charcoal);
}

.b10-btn-outline:hover {
    background-color: var(--b10-charcoal);
    color: var(--b10-white);
}

/* Outline Light (for dark backgrounds) */
.b10-btn-outline-light {
    background-color: transparent;
    color: var(--b10-mist);
    border: 2px solid var(--b10-mist);
}

.b10-btn-outline-light:hover {
    background-color: var(--b10-mist);
    color: var(--b10-charcoal);
}

/* ==========================================================================
   Section Backgrounds
   ========================================================================== */

/* Charcoal section (Hero, Footer) */
.b10-section-charcoal {
    background-color: var(--b10-charcoal);
    color: var(--b10-mist);
}

.b10-section-charcoal h1,
.b10-section-charcoal h2,
.b10-section-charcoal h3,
.b10-section-charcoal h4 {
    color: var(--b10-white);
}

/* Earth (green) section */
.b10-section-earth {
    background-color: var(--b10-earth);
    color: var(--b10-charcoal);
}

.b10-section-earth h1,
.b10-section-earth h2,
.b10-section-earth h3 {
    color: var(--b10-charcoal);
}

/* Mist (light gray) section */
.b10-section-mist {
    background-color: var(--b10-mist);
    color: var(--b10-charcoal);
}

/* White section */
.b10-section-white {
    background-color: var(--b10-white);
}

/* ==========================================================================
   Cards - B10 Style
   ========================================================================== */

.b10-card {
    background: var(--b10-white);
    padding: 30px;
    border: 1px solid var(--b10-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.b10-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(54, 69, 79, 0.12);
}

.b10-card-title {
    font-family: 'PT Mono', monospace;
    color: var(--b10-charcoal);
    font-size: 1.25rem;
    margin-bottom: 15px;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.site-navigation a,
.main-navigation a {
    font-family: 'PT Mono', monospace;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--b10-charcoal);
    transition: color 0.2s ease;
}

.site-navigation a:hover,
.main-navigation a:hover,
.site-navigation .current-menu-item > a,
.main-navigation .current-menu-item > a {
    color: var(--b10-earth);
}

/* ==========================================================================
   Footer - B10 Style
   ========================================================================== */

.site-footer,
.b10-footer {
    background-color: var(--b10-charcoal);
    color: var(--b10-mist);
    padding: 60px 0 30px;
}

.b10-footer a {
    color: var(--b10-mist);
}

.b10-footer a:hover {
    color: var(--b10-earth);
}

.b10-footer-title {
    font-family: 'PT Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--b10-white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.b10-footer-copyright {
    border-top: 1px solid rgba(210, 210, 210, 0.2);
    padding-top: 20px;
    margin-top: 40px;
    font-size: 14px;
}

/* ==========================================================================
   Forms
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--b10-border);
    font-family: 'PT Mono', monospace;
    font-size: 14px;
    transition: border-color 0.2s ease;
    background-color: var(--b10-white);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--b10-earth);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.b10-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.b10-section {
    padding: 80px 0;
}

.b10-text-center { text-align: center; }
.b10-text-left { text-align: left; }
.b10-text-right { text-align: right; }

.b10-mt-1 { margin-top: 10px; }
.b10-mt-2 { margin-top: 20px; }
.b10-mt-3 { margin-top: 40px; }
.b10-mt-4 { margin-top: 60px; }

.b10-mb-1 { margin-bottom: 10px; }
.b10-mb-2 { margin-bottom: 20px; }
.b10-mb-3 { margin-bottom: 40px; }
.b10-mb-4 { margin-bottom: 60px; }

/* PT Mono utility */
.b10-mono {
    font-family: 'PT Mono', monospace;
}

/* ==========================================================================
   Elementor Compatibility
   ========================================================================== */

.elementor-page .site-main {
    padding: 0;
}

.elementor-section.elementor-section-stretched {
    max-width: 100%;
}

/* Ensure Elementor inherits B10 fonts */
.elementor-widget-heading .elementor-heading-title {
    font-family: 'PT Mono', monospace;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 991px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }

    .b10-section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }

    .b10-section {
        padding: 40px 0;
    }
}

/* ==========================================================================
   WordPress Core Styles
   ========================================================================== */

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 14px;
    color: var(--b10-charcoal);
    text-align: center;
    padding: 10px;
}

.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}
