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

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

:root {
    /* Color Palette - HSL Design System */
    --background: 0 0% 100%;
    --foreground: 0 0% 3.9%;
    --card: 0 0% 100%;
    --card-foreground: 0 0% 3.9%;
    --muted: 0 0% 96.1%;
    --muted-foreground: 0 0% 45.1%;
    --accent: 0 0% 96.1%;
    --accent-foreground: 0 0% 9%;
    --border: 0 0% 89.8%;
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    --font-heading: Georgia, 'Times New Roman', serif;
    
    /* Spacing Scale */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    
    /* Layout */
    --max-width: 1280px;
    --header-height: 64px;
    
    /* Transitions */
    --transition-speed: 0.3s;
    
    /* Accessibility */
    --min-touch-target: 44px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    color: hsl(var(--foreground));
    line-height: 1.6;
    background-color: hsl(var(--background));
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

/* ===================================
   Typography
   =================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: hsl(var(--foreground));
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h1 {
    font-size: clamp(2rem, 5vw, 2.5rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
}

p {
    margin-bottom: var(--spacing-sm);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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

a:hover {
    opacity: 0.7;
}

/* ===================================
   Accessibility
   =================================== */

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: hsl(var(--foreground));
    color: hsl(var(--background));
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 100;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid hsl(var(--accent-foreground));
    outline-offset: 2px;
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid hsl(var(--foreground));
    outline-offset: 2px;
    border-radius: 2px;
}

/* ===================================
   Layout Components
   =================================== */

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

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

.section-alt {
    background-color: hsl(var(--muted));
}

.section-content {
    max-width: 42rem;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section-content-wide {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    text-align: center;
    margin-bottom: var(--spacing-md);
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--spacing-md);
}

.grid-2 {
    grid-template-columns: 1fr;
}

.grid-3 {
    grid-template-columns: 1fr;
}

.grid-4 {
    grid-template-columns: repeat(2, 1fr);
}

/* Hero Grid (2-column layout) */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    align-items: center;
}

/* ===================================
   Header & Navigation
   =================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: hsla(var(--background), 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid hsl(var(--border));
    height: var(--header-height);
}

.header-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: hsl(var(--foreground));
    text-decoration: none;
    transition: opacity var(--transition-speed);
}

.logo:hover {
    opacity: 0.7;
}

/* Navigation */
nav ul {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
}

nav a {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    transition: color var(--transition-speed);
    padding: 0.5rem 0;
    min-height: var(--min-touch-target);
    display: flex;
    align-items: center;
}

nav a:hover,
nav a.active {
    color: hsl(var(--foreground));
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    min-width: var(--min-touch-target);
    min-height: var(--min-touch-target);
    color: hsl(var(--foreground));
}

/* ===================================
   Main Content
   =================================== */

main {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

/* Hero Section */
.hero {
    padding: var(--spacing-xl) 0;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: hsl(var(--muted-foreground));
    line-height: 1.5;
}

/* ===================================
   Components
   =================================== */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-speed);
    text-decoration: none;
    min-height: var(--min-touch-target);
    min-width: var(--min-touch-target);
}

.btn-primary {
    background-color: hsl(var(--foreground));
    color: hsl(var(--background));
    border-color: hsl(var(--foreground));
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-outline {
    background-color: transparent;
    color: hsl(var(--foreground));
    border-color: hsl(var(--border));
}

.btn-outline:hover {
    background-color: hsl(var(--muted));
}

.btn-link {
    background: none;
    border: none;
    color: hsl(var(--foreground));
    padding: 0;
    font-size: 0.875rem;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.btn-link:hover {
    opacity: 0.7;
}

/* Cards */
.card {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    overflow: hidden;
    transition: all var(--transition-speed);
}

.card:hover {
    box-shadow: 0 4px 12px hsla(var(--foreground), 0.1);
    transform: translateY(-2px);
}

.card-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background-color: hsl(var(--muted));
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed);
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: var(--spacing-sm);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: hsl(var(--foreground));
}

.card-text {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.5rem;
}

/* Video Card - for performance/music video cards */
.video-card .card-image {
    position: relative;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, hsla(0, 0%, 0%, 0.6), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.video-card:hover .video-overlay {
    opacity: 1;
}

.play-button {
    width: 3rem;
    height: 3rem;
    background-color: hsla(var(--background), 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* ===================================
   Forms
   =================================== */

.form-group {
    margin-bottom: var(--spacing-sm);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: hsl(var(--foreground));
}

input,
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid hsl(var(--border));
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 1rem;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    transition: border-color var(--transition-speed);
    min-height: var(--min-touch-target);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: hsl(var(--foreground));
}

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

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

.footer {
    background-color: hsl(var(--muted));
    padding: var(--spacing-lg) 0 var(--spacing-sm);
    margin-top: var(--spacing-xl);
}

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

.footer-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

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

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    transition: color var(--transition-speed);
    display: inline-block;
    min-height: var(--min-touch-target);
    line-height: var(--min-touch-target);
}

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

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-sm);
    border-top: 1px solid hsl(var(--border));
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

/* Social Links */
.contact-social-links {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: 6px;
    transition: all var(--transition-speed);
    min-height: var(--min-touch-target);
}

.social-link:hover {
    background-color: hsl(var(--muted));
    border-color: hsl(var(--foreground));
}

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

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

.text-muted {
    color: hsl(var(--muted-foreground));
}

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

/* ===================================
   Responsive Design - Tablet
   =================================== */

@media (min-width: 768px) {
    /* Grid adjustments */
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Spacing adjustments */
    .section {
        padding: var(--spacing-xl) 0;
    }
}

/* ===================================
   Responsive Design - Desktop
   =================================== */

@media (min-width: 1024px) {
    /* Grid adjustments */
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

@media (max-width: 767px) {
    .menu-toggle {
        display: block;
    }
    
    nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: hsl(var(--background));
        border-bottom: 1px solid hsl(var(--border));
        padding: var(--spacing-sm);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-speed);
        box-shadow: 0 4px 12px hsla(var(--foreground), 0.1);
    }
    
    nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    nav li {
        border-bottom: 1px solid hsl(var(--border));
    }
    
    nav li:last-child {
        border-bottom: none;
    }
    
    nav a {
        display: block;
        padding: var(--spacing-sm);
        font-size: 1rem;
    }
}

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

@media print {
    header,
    .menu-toggle,
    .footer,
    .btn {
        display: none;
    }
    
    main {
        margin-top: 0;
    }
    
    * {
        background: white !important;
        color: black !important;
    }
}
