/**
 * The Penn Group - Base Styles
 * Shared CSS variables, resets, and common components
 * Version: 1.0.0
 */

/* ==========================================================================
   CSS Custom Properties (Variables)
   ========================================================================== */

:root {
    /* Primary Colors */
    --primary: #ffffff;
    --secondary: #f8f9fc;
    --tertiary: #f0f2f7;
    
    /* Dark Colors */
    --dark: #1a1f2e;
    --dark-secondary: #2d3348;
    
    /* Category Accent Colors */
    --audio: #0891b2;
    --audio-light: #06b6d4;
    --audio-dark: #0e7490;
    
    --lighting: #d97706;
    --lighting-light: #fbbf24;
    --lighting-dark: #b45309;
    
    --video: #7c3aed;
    --video-light: #a855f7;
    --video-dark: #6d28d9;
    
    /* Utility Colors */
    --accent-green: #059669;
    --accent-red: #dc2626;
    --accent-blue: #2563eb;
    
    /* Text Colors */
    --text: #1a1f2e;
    --text-muted: #5a6178;
    --text-light: #8891a5;
    
    /* Border & Divider */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.12);
    --shadow-hover: 0 20px 50px rgba(0,0,0,0.12);
    
    /* Gradients */
    --gradient-main: linear-gradient(135deg, #0891b2 0%, #7c3aed 50%, #d97706 100%);
    --gradient-audio: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    --gradient-lighting: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    --gradient-video: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    
    /* Spacing */
    --section-padding: 100px 5%;
    --section-padding-sm: 60px 5%;
    --container-max: 1200px;
    --container-narrow: 900px;
    --container-wide: 1400px;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 30px;
    --radius-full: 50px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sticky: 500;
    --z-fixed: 1000;
    --z-modal: 1500;
    --z-tooltip: 2000;
}


/* ==========================================================================
   CSS Reset & Base
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--primary);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    color: var(--text);
}

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

p {
    color: var(--text-muted);
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base);
}

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

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}


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

/* Text Utilities */
.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-audio { color: var(--audio); }
.text-lighting { color: var(--lighting); }
.text-video { color: var(--video); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Display Utilities */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.grid { display: grid; }

/* Spacing Utilities */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 5%;
}

.container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 5%;
}


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

.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: var(--z-fixed);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.nav.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-logo {
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-base);
}

.nav-links a:hover {
    color: var(--video);
}

.nav-cta {
    padding: 0.75rem 1.5rem;
    background: var(--gradient-main);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }
}


/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text);
}

.btn-secondary:hover {
    border-color: var(--video);
    background: rgba(124, 58, 237, 0.05);
    color: var(--video);
}

/* Category-specific buttons */
.btn-audio {
    background: var(--gradient-audio);
    color: white;
}

.btn-audio:hover {
    box-shadow: 0 10px 30px rgba(8, 145, 178, 0.3);
}

.btn-lighting {
    background: var(--gradient-lighting);
    color: white;
}

.btn-lighting:hover {
    box-shadow: 0 10px 30px rgba(217, 119, 6, 0.3);
}

.btn-video {
    background: var(--gradient-video);
    color: white;
}

.btn-video:hover {
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
}

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

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

.btn-outline-lighting {
    background: transparent;
    border: 2px solid var(--lighting);
    color: var(--lighting);
}

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

.btn-outline-video {
    background: transparent;
    border: 2px solid var(--video);
    color: var(--video);
}

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


/* ==========================================================================
   Section Headers
   ========================================================================== */

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--video);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.section-tag.audio {
    background: rgba(8, 145, 178, 0.1);
    border-color: rgba(8, 145, 178, 0.2);
    color: var(--audio);
}

.section-tag.lighting {
    background: rgba(217, 119, 6, 0.1);
    border-color: rgba(217, 119, 6, 0.2);
    color: var(--lighting);
}

.section-tag.video {
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.2);
    color: var(--video);
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
}


/* ==========================================================================
   Stats Bar
   ========================================================================== */

.stats-bar {
    padding: 3rem 5%;
    background: var(--primary);
    border-bottom: 1px solid var(--border-color);
}

.stats-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
}

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

.stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-number.audio {
    background: var(--gradient-audio);
    -webkit-background-clip: text;
}

.stat-number.lighting {
    background: var(--gradient-lighting);
    -webkit-background-clip: text;
}

.stat-number.video {
    background: var(--gradient-video);
    -webkit-background-clip: text;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

@media (max-width: 900px) {
    .stats-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ==========================================================================
   Cards - Base Styles
   ========================================================================== */

.card {
    background: var(--primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    transition: all 0.4s ease;
    box-shadow: var(--shadow-sm);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card.audio:hover { border-color: rgba(8, 145, 178, 0.4); }
.card.lighting:hover { border-color: rgba(217, 119, 6, 0.4); }
.card.video:hover { border-color: rgba(124, 58, 237, 0.4); }


/* ==========================================================================
   Feature/Check Lists
   ========================================================================== */

.check-list {
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.check-list li svg {
    width: 16px;
    height: 16px;
    fill: var(--accent-green);
    flex-shrink: 0;
}

.check-list.audio li svg { fill: var(--audio); }
.check-list.lighting li svg { fill: var(--lighting); }
.check-list.video li svg { fill: var(--video); }


/* ==========================================================================
   Process/Timeline
   ========================================================================== */

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.process-step {
    text-align: center;
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 35px;
    left: 60%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, var(--border-color), transparent);
}

.process-step:last-child::after {
    display: none;
}

.step-number {
    width: 70px;
    height: 70px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.2);
}

.step-number.audio {
    background: var(--gradient-audio);
    box-shadow: 0 10px 30px rgba(8, 145, 178, 0.2);
}

.step-number.lighting {
    background: var(--gradient-lighting);
    box-shadow: 0 10px 30px rgba(217, 119, 6, 0.2);
}

.step-number.video {
    background: var(--gradient-video);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.2);
}

.process-step h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.process-step p {
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-step::after {
        display: none;
    }
}

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


/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta-section {
    padding: var(--section-padding);
}

.cta-container {
    background: var(--secondary);
    border-radius: var(--radius-2xl);
    padding: 4rem;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.cta-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-main);
}

.cta-container.audio::before { background: var(--gradient-audio); }
.cta-container.lighting::before { background: var(--gradient-lighting); }
.cta-container.video::before { background: var(--gradient-video); }

.cta-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    pointer-events: none;
}

.cta-glow.audio { background: var(--audio); }
.cta-glow.lighting { background: var(--lighting); }
.cta-glow.video { background: var(--video); }

.cta-container h2 {
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.cta-container > p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.cta-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.cta-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.cta-contact-item svg {
    width: 20px;
    height: 20px;
    fill: var(--video);
}

.cta-contact-item a {
    color: var(--video);
    font-weight: 600;
}

.cta-contact-item.audio svg,
.cta-contact-item.audio a { fill: var(--audio); color: var(--audio); }

.cta-contact-item.lighting svg,
.cta-contact-item.lighting a { fill: var(--lighting); color: var(--lighting); }


/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    padding: 60px 5% 40px;
    background: var(--primary);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
}

.footer-brand .footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    color: var(--text);
}

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

.footer-col li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color var(--transition-base);
}

.footer-col a:hover {
    color: var(--video);
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand p {
        max-width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}


/* ==========================================================================
   Animations
   ========================================================================== */

/* Fade In on Scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hover lift effect */
.hover-lift {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Pulse animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Float animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}


/* ==========================================================================
   Form Elements
   ========================================================================== */

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--text);
    background: var(--primary);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--video);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-light);
}

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


/* ==========================================================================
   Badges & Tags
   ========================================================================== */

.badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-audio {
    background: rgba(8, 145, 178, 0.1);
    color: var(--audio);
}

.badge-lighting {
    background: rgba(217, 119, 6, 0.1);
    color: var(--lighting);
}

.badge-video {
    background: rgba(124, 58, 237, 0.1);
    color: var(--video);
}

.badge-success {
    background: rgba(5, 150, 105, 0.1);
    color: var(--accent-green);
}

.tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: var(--secondary);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--text-muted);
}


/* ==========================================================================
   Icon Containers
   ========================================================================== */

.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
}

.icon-box svg {
    width: 24px;
    height: 24px;
}

.icon-box-sm {
    width: 40px;
    height: 40px;
}

.icon-box-md {
    width: 56px;
    height: 56px;
}

.icon-box-lg {
    width: 70px;
    height: 70px;
}

.icon-box-xl {
    width: 100px;
    height: 100px;
}

.icon-box.audio {
    background: rgba(8, 145, 178, 0.1);
}

.icon-box.audio svg {
    fill: var(--audio);
}

.icon-box.lighting {
    background: rgba(217, 119, 6, 0.1);
}

.icon-box.lighting svg {
    fill: var(--lighting);
}

.icon-box.video {
    background: rgba(124, 58, 237, 0.1);
}

.icon-box.video svg {
    fill: var(--video);
}


/* ==========================================================================
   Service Areas
   ========================================================================== */

.service-areas {
    padding: 4rem 5%;
    background: var(--secondary);
    border-top: 1px solid var(--border-color);
}

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

.areas-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.areas-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.area-tag {
    padding: 0.6rem 1.25rem;
    background: var(--primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all var(--transition-base);
}

.area-tag:hover {
    border-color: var(--video);
    color: var(--video);
}


/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .nav,
    .cta-section,
    .footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    
    a {
        text-decoration: underline;
    }
}
