/*
Theme Name: ConX-USA Theme
Theme URI: https://conx-usa.com
Author: Sean Hakes
Author URI: https://CustomWebDesigns.com
Description: Custom theme for ConX-USA - The Future of Construction Labor
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: conx-theme
*/

:root {
    --brand-charcoal: #383838;
    --brand-yellow: #FEBC11;
    --brand-white: #FFFFFF;
}

.font-mono-brand { font-family: 'Rubik Mono One', monospace; }
.font-rubik { font-family: 'Rubik', sans-serif; }
.font-nunito { font-family: 'Nunito Sans', sans-serif; }

html {
    scroll-behavior: smooth;
}

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

::selection { background-color: var(--brand-yellow); color: var(--brand-charcoal); }

.topo-bg {
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0 Q 20 20 40 0 T 80 0 T 100 0 V 100 H 0 V 0 M 0 50 Q 25 30 50 50 T 100 50' fill='none' stroke='%23888' stroke-width='0.5' opacity='0.15'/%3E%3Cpath d='M0 80 Q 30 60 60 80 T 100 80' fill='none' stroke='%23888' stroke-width='0.5' opacity='0.15'/%3E%3Cpath d='M20 100 Q 40 80 60 100 T 100 100' fill='none' stroke='%23888' stroke-width='0.5' opacity='0.15'/%3E%3C/svg%3E");
    background-size: 300px 300px;
}

.diagonal-clip {
    clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
}

.hero-split {
    background: linear-gradient(105deg, #383838 55%, #FFFFFF 55.1%);
}

@media (max-width: 1024px) {
    .hero-split {
        background: linear-gradient(180deg, #383838 50%, #FFFFFF 50.1%);
    }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 15px rgba(254, 188, 17, 0.2); }
    50% { box-shadow: 0 0 25px rgba(254, 188, 17, 0.5); }
}
.animate-glow { animation: pulse-glow 3s infinite; }

.lion-bg-left {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 700px;
    height: auto;
    opacity: 0.08;
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 1024px) {
    .lion-bg-left {
        width: 400px;
        left: 50%;
        transform: translate(-50%, -50%);
        opacity: 0.06;
    }
}

.modal-overlay {
    animation: fadeIn 0.2s ease-out;
}

.modal-content {
    animation: slideUp 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #fff;
}

.form-input:focus {
    outline: none;
    border-color: #FEBC11;
    box-shadow: 0 0 0 3px rgba(254, 188, 17, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-label {
    display: block;
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    color: #383838;
    margin-bottom: 0.5rem;
}

.legal-content h2 {
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: #383838;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-content p {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.875rem;
    color: #4b5563;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.legal-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-content li {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.875rem;
    color: #4b5563;
    margin-bottom: 0.25rem;
    line-height: 1.5;
}

/* Modal Hidden State */
.modal-hidden {
    display: none !important;
}

/* FAQ Accordion */
.faq-content {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-content.open {
    max-height: 200px;
    padding-top: 1rem;
    padding-bottom: 1rem;
    opacity: 1;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-icon.open {
    transform: rotate(180deg);
    color: #FEBC11;
}

/* Demo Tabs */
.demo-tab {
    transition: all 0.3s ease;
}

.demo-tab.active {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #FEBC11;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.demo-tab.active h3 {
    color: #FEBC11;
}

/* Mobile Menu */
.mobile-menu {
    max-height: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.mobile-menu.open {
    max-height: 500px;
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

/* Spinner */
.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 767px) {
    body {
        padding-bottom: 80px;
    }
}

/* Mobile Overflow Prevention */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

@media (max-width: 640px) {
    .hero-split {
        background: #383838;
    }

    .hero-split h1 {
        font-size: 1.5rem !important;
        line-height: 1.2 !important;
    }

    .hero-split p {
        font-size: 1rem !important;
    }

    .grid.lg\\:grid-cols-2 {
        gap: 2rem !important;
    }

    .lion-bg-left {
        display: none !important;
    }
}
