/*
Theme Name: VenueIQ by Venue Solutions
Theme URI: https://venueiq.co.nz
Author: Venue Solutions
Author URI: https://venuesolutions.co.nz
Description: A modern, professional WordPress theme for VenueIQ - The Complete Venue & Facility Management Platform. Fully compatible with Kubio Page Builder for easy customization.
Version: 1.0.0
Tested up to: 6.4
Requires at least: 6.0
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: venueiq
Tags: block-patterns, block-styles, full-site-editing, wide-blocks, business, professional, responsive, custom-menu, custom-logo, editor-style
*/

/* ========================================
   CSS Variables - Venue Solutions Brand
   ======================================== */
:root {
    --primary: #0000CD;
    --primary-dark: #00009B;
    --primary-light: #3333FF;
    --black: #000005;
    --text: #333333;
    --text-light: #666666;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --success: #10b981;
    --border: #E5E7EB;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 5rem;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --max-width: 1200px;
    --font-sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ========================================
   Reset & Base Styles
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 500;
    color: var(--black);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

p { margin-bottom: var(--spacing-sm); }

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

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

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

/* ========================================
   Layout
   ======================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-xl);
}

.section-header h2 {
    margin-bottom: var(--spacing-sm);
}

.section-header p {
    color: var(--text-light);
    font-size: 1.125rem;
}

/* ========================================
   Header
   ======================================== */
.site-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    gap: var(--spacing-lg);
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.site-logo img {
    max-height: 40px;
    width: auto;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    align-items: center;
}

.main-navigation a {
    color: var(--text);
    font-weight: 400;
    font-size: 0.95rem;
    padding: var(--spacing-xs) 0;
}

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

.header-actions {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

/* ========================================
   Buttons
   ======================================== */
.button-primary,
.button-secondary,
.button-primary-dark,
.button-secondary-dark,
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.button-primary {
    background: var(--white);
    color: var(--primary);
}

.button-primary:hover {
    background: var(--light-bg);
    color: var(--primary-dark);
}

.button-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.5);
}

.button-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
    color: var(--white);
}

.button-primary-dark {
    background: var(--white);
    color: var(--primary);
}

.button-primary-dark:hover {
    background: var(--light-bg);
}

.button-secondary-dark {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.5);
}

.button-secondary-dark:hover {
    border-color: var(--white);
}

.cta-button {
    background: var(--primary);
    color: var(--white);
}

.cta-button:hover {
    background: var(--primary-dark);
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: var(--spacing-xxl) 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(51,51,255,0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
}

.hero-content h1 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.hero-dashboard {
    max-width: 1000px;
    margin: 0 auto;
}

.dashboard-screenshot {
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
}

/* ========================================
   Trust Bar
   ======================================== */
.trust-bar {
    background: var(--white);
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid var(--border);
}

.trust-text {
    text-align: center;
    color: var(--text-light);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-md);
}

.trust-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
}

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

.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ========================================
   Feature Sections
   ======================================== */
.features-section,
.all-features-section {
    padding: var(--spacing-xxl) 0;
}

.alt-bg {
    background: var(--light-bg);
}

/* Value Cards */
.value-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.value-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
}

.value-icon {
    width: 64px;
    height: 64px;
    background: rgba(0,0,205,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    color: var(--primary);
}

.value-card h3 {
    margin-bottom: var(--spacing-xs);
}

.value-card p {
    color: var(--text-light);
    margin: 0;
}

/* Feature Highlight Sections */
.feature-highlight {
    padding: var(--spacing-xxl) 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.feature-grid.reverse {
    direction: ltr;
}

.feature-grid.reverse .feature-content {
    order: 2;
}

.feature-grid.reverse .feature-image {
    order: 1;
}

.feature-badge {
    display: inline-block;
    background: rgba(0,0,205,0.1);
    color: var(--primary);
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
}

.feature-content h2 {
    margin-bottom: var(--spacing-md);
}

.feature-content > p {
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: var(--text);
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.875rem;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.feature-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.feature-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: box-shadow 0.2s ease;
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
}

.feature-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(0,0,205,0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
    color: var(--primary);
}

.feature-card h4 {
    margin-bottom: var(--spacing-xs);
    font-size: 1rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.875rem;
    margin: 0;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: var(--spacing-xxl) 0;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.cta-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background: var(--black);
    color: rgba(255,255,255,0.7);
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-brand .site-logo {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
}

.footer-section h3 {
    color: var(--white);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-md);
}

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

.footer-section li {
    margin-bottom: var(--spacing-xs);
}

.footer-section a {
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.footer-bottom p {
    font-size: 0.875rem;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
}

/* ========================================
   Responsive Styles
   ======================================== */
@media (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .feature-grid.reverse .feature-content,
    .feature-grid.reverse .feature-image {
        order: unset;
    }
    
    .feature-content {
        text-align: center;
    }
    
    .feature-list {
        display: inline-block;
        text-align: left;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .main-navigation {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .main-navigation ul {
        gap: var(--spacing-md);
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .trust-stats {
        gap: var(--spacing-lg);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
    }
    
    .button-primary,
    .button-secondary,
    .button-primary-dark,
    .button-secondary-dark {
        width: 100%;
    }
}

/* ========================================
   WordPress Block Editor Styles
   ======================================== */
.wp-block-group.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.wp-block-button__link {
    border-radius: var(--radius);
    padding: 0.875rem 1.75rem;
    font-weight: 500;
}

.is-style-outline .wp-block-button__link {
    border-width: 2px;
}

/* ========================================
   Form Styles
   ======================================== */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* ========================================
   Feature Showcase (Page Templates)
   ======================================== */
.feature-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.feature-showcase-reverse {
    direction: rtl;
}

.feature-showcase-reverse > * {
    direction: ltr;
}

.feature-showcase-content h2 {
    margin-bottom: var(--spacing-md);
    color: var(--black);
}

.feature-showcase-content p {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.feature-showcase-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

/* Solutions Grid */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
}

.solution-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: box-shadow 0.2s ease;
}

.solution-card:hover {
    box-shadow: var(--shadow-md);
}

.solution-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.solution-card h3 {
    margin-bottom: var(--spacing-xs);
    color: var(--black);
}

/* Contact Section */
.contact-section {
    padding: var(--spacing-xxl) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-xl);
}

.contact-form {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-item {
    padding: var(--spacing-md);
    border-radius: var(--radius);
}

.contact-item h4 {
    margin-bottom: var(--spacing-xs);
    color: var(--black);
}

.submit-button {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    padding: 1rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.submit-button:hover {
    background: var(--primary-dark);
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.benefit-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.benefit-card h3 {
    color: var(--black);
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
}

.benefit-card p {
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

/* Responsive for Page Templates */
@media (max-width: 1024px) {
    .feature-showcase {
        grid-template-columns: 1fr;
    }
    
    .feature-showcase-reverse {
        direction: ltr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .solutions-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.bg-light { background: var(--light-bg); }
.bg-primary { background: var(--primary); color: var(--white); }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
