/*
Theme Name: VoxBourne Energy
Theme URI: https://nanochokes.com
Author: VoxBourne Energy
Author URI: https://nanochokes.com
Description: Professional WordPress theme for VoxBourne Energy - Industrial Power Quality & VFD Solutions. SEO-optimized, mobile-first, performance-ready theme built for converting electrical engineers and procurement managers into qualified leads.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: voxbourne-energy
Tags: industrial, b2b, business, engineering, seo-optimized, mobile-first, block-editor

VoxBourne Energy WordPress Theme, Copyright 2026 VoxBourne Energy
VoxBourne Energy is distributed under the terms of the GNU GPL
*/

:root {
    --color-navy: #0A1E3C;
    --color-orange: #E8620A;
    --color-white: #FFFFFF;
    --color-light-blue: #E8F1F8;
    --color-dark-gray: #2C3E50;
    --color-body-text: #5A5A5A;
    --color-light-gray: #F5F7FA;
    --color-success: #27AE60;
    --color-border: #E0E4E8;
    --font-heading: 'Inter', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;
    --font-mono: 'Fira Mono', 'Courier New', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-body-text);
    background-color: var(--color-white);
    overflow-x: hidden; /* Prevent horizontal scrolling */
    max-width: 100%; /* Ensure body doesn't exceed viewport */
    box-sizing: border-box; /* Include padding and border in width */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: #F28120;
    margin-bottom: 1rem;
}

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

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--color-navy);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%; /* Ensure container doesn't overflow */
    box-sizing: border-box; /* Include padding in width */
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-orange);
    color: var(--color-white);
    border-color: var(--color-orange);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background-color: #d15809;
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 98, 10, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-navy);
    border-color: var(--color-navy);
}

.btn-secondary:hover {
    background-color: var(--color-navy);
    color: var(--color-white);
}

header.site-header {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.site-logo img {
    max-height: 50px;
}

nav.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

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

nav.main-navigation a:hover {
    color: var(--color-orange);
}

footer.site-footer {
    background-color: var(--color-navy);
    color: var(--color-white);
    padding: 60px 0 20px;
}

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

.footer-widget h3 {
    color: var(--color-white);
    margin-bottom: 20px;
}

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

.footer-widget a {
    color: var(--color-light-gray);
}

.footer-widget a:hover {
    color: var(--color-orange);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    color: var(--color-light-gray);
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    nav.main-navigation ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
}

.hero-section {
    background: linear-gradient(135deg, var(--color-navy) 0%, #2a3f5f 100%);
    color: var(--color-white);
    padding: 100px 0;
    text-align: center;
}

.hero-section h1 {
    color: var(--color-white);
    margin-bottom: 20px;
}

.hero-section .subheadline {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.trust-strip {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.trust-item {
    font-size: 14px;
    opacity: 0.8;
}

.section {
    padding: 80px 0;
}

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

.product-grid,
.service-grid,
.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: var(--color-white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.stats-bar {
    background-color: var(--color-navy);
    color: var(--color-white);
    padding: 40px 0;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-orange);
}

.client-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    filter: grayscale(100%);
    opacity: 0.7;
}

.client-logos img {
    max-height: 60px;
}

.cta-banner {
    background: linear-gradient(135deg, var(--color-orange) 0%, #d15809 100%);
    color: var(--color-white);
    padding: 60px 0;
    text-align: center;
}

.cta-banner h2 {
    color: var(--color-white);
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ============================================
   MODERN VIDEO HERO SECTION
   ============================================ */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-navy) 0%, #1a2f54 100%);
}

/* Video Background Container */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    pointer-events: none;
}

/* Video Overlay for Text Readability */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(10, 30, 60, 0.7) 0%,
        rgba(10, 30, 60, 0.5) 50%,
        rgba(10, 30, 60, 0.6) 100%
    );
    z-index: 2;
}

/* Hero Content Positioning */
.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 80px 0;
}

.hero-text {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
}

.hero-title {
    color: var(--color-white);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 25px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.hero-subtitle {
    color: var(--color-white);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.95;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.2s forwards;
}

/* CTA Buttons with Animation */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.hero-cta {
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.4s forwards;
}

.hero-cta.btn-primary {
    background: linear-gradient(135deg, var(--color-orange) 0%, #d15809 100%);
    color: var(--color-white);
    border: none;
    box-shadow: 0 4px 20px rgba(232, 98, 10, 0.3);
}

.hero-cta.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(232, 98, 10, 0.4);
    background: linear-gradient(135deg, #d15809 0%, var(--color-orange) 100%);
}

.hero-cta.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.hero-cta.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

/* Trust Strip */
.trust-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.6s forwards;
}

.trust-item {
    color: var(--color-white);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-item::before {
    content: '✓';
    color: var(--color-orange);
    font-weight: bold;
    font-size: 16px;
}

/* Video Loading Indicator */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.video-loading.loaded {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--color-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-section {
        min-height: 90vh;
    }
    
    .hero-content {
        padding: 60px 0;
    }
    
    .trust-strip {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
    }
    
    .hero-content {
        padding: 40px 0;
    }
    
    .hero-title {
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        margin-bottom: 30px;
    }
    
    .cta-buttons {
        gap: 15px;
        margin-bottom: 40px;
    }
    
    .hero-cta {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .trust-strip {
        gap: 20px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 70vh;
    }
    
    .hero-content {
        padding: 30px 0;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero-cta {
        width: 100%;
        max-width: 280px;
    }
    
    .trust-strip {
        gap: 15px;
        font-size: 11px;
    }
}

/* Fallback for devices that can't play video */
.no-video .video-background {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 1080"><defs><linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgb(10,30,60);stop-opacity:1" /><stop offset="100%" style="stop-color:rgb(26,47,84);stop-opacity:1" /></linearGradient></defs><rect width="1920" height="1080" fill="url(%23grad)"/><circle cx="200" cy="200" r="100" fill="rgba(232,98,10,0.1)"/><circle cx="1600" cy="800" r="150" fill="rgba(232,98,10,0.08)"/><circle cx="400" cy="600" r="80" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
    background-position: center;
}

.no-video .hero-video {
    display: none;
}

.problem-section {
    background-color: var(--color-light-blue);
    padding: 80px 0;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.problem-card {
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(10, 30, 60, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.problem-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(10, 30, 60, 0.15);
}

.problem-card h3 {
    color: var(--color-navy);
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.problem-card p {
    color: var(--color-body-text);
    line-height: 1.6;
}

.problem-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--color-orange) 0%, #d15809 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 2rem;
    font-weight: bold;
}

.products-section {
    padding: 80px 0;
    background: var(--color-white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.product-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(10, 30, 60, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(10, 30, 60, 0.15);
}

.product-image {
    height: 200px;
    background: linear-gradient(135deg, var(--color-light-blue) 0%, var(--color-navy) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 3rem;
    font-weight: bold;
}

.product-content {
    padding: 30px;
}

.product-content h3 {
    color: var(--color-navy);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.product-tagline {
    color: var(--color-orange);
    font-weight: 600;
    margin-bottom: 15px;
}

.product-description {
    color: var(--color-body-text);
    margin-bottom: 25px;
    line-height: 1.6;
}

.product-links {
    display: flex;
    gap: 15px;
}

.product-links .btn {
    font-size: 14px;
    padding: 10px 20px;
}

.stats-bar {
    background: var(--color-navy);
    color: var(--color-white);
    padding: 60px 0;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-orange);
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.services-section {
    background: var(--color-light-gray);
    padding: 80px 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(10, 30, 60, 0.08);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(10, 30, 60, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--color-navy) 0%, #1a2f54 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 2rem;
}

.service-card h3 {
    color: var(--color-navy);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--color-body-text);
    margin-bottom: 25px;
    line-height: 1.6;
}

.industries-section {
    background: var(--color-white);
    padding: 80px 0;
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.industry-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 12px;
    background: var(--color-light-blue);
    transition: all 0.3s ease;
    cursor: pointer;
}

.industry-item:hover {
    background: var(--color-navy);
    color: var(--color-white);
    transform: translateY(-5px);
}

.industry-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: var(--color-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.5rem;
    font-weight: bold;
}

.industry-item h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.client-logos-section {
    background: var(--color-light-blue);
    padding: 80px 0;
}

.client-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 60px;
    margin-top: 50px;
}

.client-logo {
    max-height: 60px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.founder-section {
    background: var(--color-white);
    padding: 80px 0;
}

.founder-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
    margin-top: 50px;
}

.founder-photo {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-light-blue) 0%, var(--color-navy) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 4rem;
    font-weight: bold;
    margin: 0 auto;
}

.founder-info h3 {
    color: var(--color-navy);
    font-size: 2rem;
    margin-bottom: 20px;
}

.founder-bio {
    color: var(--color-body-text);
    line-height: 1.8;
    margin-bottom: 30px;
}

.ieee-badge {
    display: inline-block;
    background: var(--color-success);
    color: var(--color-white);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    margin-bottom: 20px;
}

.blog-section {
    background: var(--color-light-gray);
    padding: 80px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.blog-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(10, 30, 60, 0.08);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(10, 30, 60, 0.15);
}

.blog-image {
    height: 200px;
    background: linear-gradient(135deg, var(--color-light-blue) 0%, var(--color-navy) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 2rem;
    font-weight: bold;
}

.blog-content {
    padding: 30px;
}

.blog-category {
    color: var(--color-orange);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.blog-content h3 {
    color: var(--color-navy);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.blog-excerpt {
    color: var(--color-body-text);
    margin-bottom: 20px;
    line-height: 1.6;
}

.cta-banner {
    background: linear-gradient(135deg, var(--color-orange) 0%, #d15809 100%);
    color: var(--color-white);
    padding: 80px 0;
    text-align: center;
}

.cta-banner h2 {
    color: var(--color-white);
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    background: var(--color-white);
    color: var(--color-orange);
    border-color: var(--color-white);
}

.cta-buttons .btn:hover {
    background: transparent;
    color: var(--color-white);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-section h1 {
        font-size: 2.8rem;
    }
    
    .founder-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .founder-photo {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 60px;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section .subheadline {
        font-size: 1.2rem;
    }
    
    .trust-strip {
        gap: 20px;
        font-size: 12px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .problem-grid,
    .product-grid,
    .service-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .industry-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-banner h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section .subheadline {
        font-size: 1rem;
    }
    
    .industry-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* ============================================
   HORIZONTAL SCROLLING FIXES
   ============================================ */

/* Prevent horizontal scrolling globally */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Fix common overflow elements */
img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

/* Fix tables */
table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
    white-space: nowrap;
}

/* Fix pre and code blocks */
pre, code {
    white-space: pre-wrap;
    word-wrap: break-word;
    max-width: 100%;
}

/* Fix grid layouts */
.grid, .product-grid, .services-grid {
    max-width: 100%;
    overflow: hidden;
}

/* Fix flex layouts */
.flex-row {
    display: flex;
    flex-wrap: wrap;
    max-width: 100%;
}

/* Fix absolute positioned elements */
.site-header, .site-footer, .mega-menu {
    max-width: 100%;
    box-sizing: border-box;
}

/* Fix WooCommerce specific elements */
.woocommerce, .woocommerce-page {
    overflow-x: hidden;
}

.woocommerce ul.products,
.woocommerce .products {
    display: flex;
    flex-wrap: wrap;
    max-width: 100%;
}

.woocommerce ul.products li.product,
.woocommerce .products .product {
    flex: 0 0 auto;
    max-width: 100%;
}

/* Fix forms */
form, input, textarea, select {
    max-width: 100%;
    box-sizing: border-box;
}

/* Fix any remaining elements that might cause overflow */
* {
    max-width: 100%;
    box-sizing: border-box;
}

/* Allow specific elements to break out if needed */
.container-full {
    max-width: none;
    width: 100vw;
}

/* Responsive fixes */
@media (max-width: 768px) {
    /* Ensure mobile doesn't have horizontal scroll */
    body, html {
        overflow-x: hidden;
        width: 100%;
    }
    
    /* Fix mobile images */
    img, video {
        width: 100% !important;
        height: auto !important;
    }
    
    /* Fix mobile tables */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
