/* ═══════════════════════════════════════════════════════════════════
   TECH SAAS CSS VARIABLES
   ═══════════════════════════════════════════════════════════════════ */

:root { color-scheme: light;
    /* SaaS Color System */
    --primary: #4f46e5; /* Indigo */
    --primary-hover: #4338ca;
    --secondary: #10b981; /* Green */
    --accent: #f59e0b; /* Amber */
    
    /* Backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    
    /* Text */
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-tertiary: #9ca3af;
    
    /* Borders */
    --border-color: #e5e7eb;
    --border-color-hover: #d1d5db;
    
    /* Spacing (8px grid - STRICT) */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-6: 48px;
    --space-8: 64px;
    
    /* Border Radius (Material 3) */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Shadows (Subtle) */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-theme="dark"] { color-scheme: dark;
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-tertiary: #374151;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --border-color: #374151;
    --border-color-hover: #4b5563;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.5);
}

/* ═══════════════════════════════════════════════════════════════════
   TECH SAAS TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════════ */

* {
    font-family: var(--font-sans);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.35rem, 3vw, 1.75rem); }

p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════════════
   LAYOUT & CONTAINER
   ═══════════════════════════════════════════════════════════════════ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--space-8) 0;
}

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

.section-header {
    text-align: center;
    margin-bottom: var(--space-6);
}

.section-header h2 {
    margin-bottom: var(--space-2);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-4);
}

/* ═══════════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════════ */

.nav {
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-2) 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.brand-logo {
    background: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
}

.brand-name {
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--space-4);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: var(--bg-tertiary);
}

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Theme Toggle */
.theme-toggle {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.2s ease;
    margin-left: var(--space-2);
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
}

/* ═══════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════ */

.hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.hero-content {
    max-width: 720px;
}

.hero-content h1 {
    margin-bottom: var(--space-3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--space-4);
}

.hero-actions {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════════
   BUTTONS (Material 3)
   ═══════════════════════════════════════════════════════════════════ */

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 24px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 12px 26px;
}

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

/* ═══════════════════════════════════════════════════════════════════
   CARDS (Material 3)
   ═══════════════════════════════════════════════════════════════════ */

.card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ═══════════════════════════════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════════════════════════════ */

.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.service-card {
    text-align: center;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-2);
}

/* ═══════════════════════════════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════════════════════════════ */

.testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.testimonial-card .quote {
    font-style: italic;
    margin-bottom: var(--space-3);
    color: var(--text-secondary);
}

.testimonial-card .author {
    font-weight: 600;
    color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════════════════ */

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.faq-item {
    padding: 0;
}

.faq-item summary {
    padding: 20px 24px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    padding: 0 24px 24px;
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════════════
   BOOKING
   ═══════════════════════════════════════════════════════════════════ */

.booking-widget {
    max-width: 100%;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════════
   CHART
   ═══════════════════════════════════════════════════════════════════ */

.chart-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px;
}

/* ═══════════════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════════════ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    max-width: 1100px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
}

.form-status {
    margin-top: var(--space-2);
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    display: none;
}

.form-status.success {
    display: block;
    background: #d1fae5;
    color: #065f46;
}

.form-status.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
}

.location-card h3 {
    margin-bottom: var(--space-2);
}

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */

footer {
    background: var(--bg-secondary);
    padding: var(--space-4) 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

footer p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════════════
   MISSING COMPONENT STYLES (audit fix)
   ═══════════════════════════════════════════════════════════════════ */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    align-items: center;
}

.calendly-inline-widget {
    width: 100%;
    min-height: 700px;
    border: none;
}

.contact-form-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-md);
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.theme-icon {
    display: block;
    width: 20px;
    height: 20px;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE (1024px & 768px)
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: var(--space-3);
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .section {
        padding: var(--space-6) 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}