/*
 * Guitarist Rob Andrew - Main Stylesheet
 * Dark, rich aesthetic with warm earth tones
 * Evokes nightlife, latin music, and elegance
 */

/* ================================
   CSS Variables
   ================================ */
:root {
    /* Colors - Dark & Warm */
    --color-bg-dark: #0a0908;
    --color-bg: #121110;
    --color-bg-light: #1a1815;
    --color-bg-card: #1f1c18;
    
    /* Accent - Warm Amber/Gold */
    --color-accent: #d4a574;
    --color-accent-light: #e8c9a0;
    --color-accent-dark: #a67c4e;
    --color-accent-glow: rgba(212, 165, 116, 0.15);
    
    /* Text */
    --color-text: #f5f0e8;
    --color-text-muted: #a8a299;
    --color-text-dark: #6b6560;
    
    /* Borders & Lines */
    --color-border: rgba(212, 165, 116, 0.2);
    --color-border-subtle: rgba(255, 255, 255, 0.06);
    
    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Raleway', -apple-system, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    
    /* Sizing */
    --container-max: 1200px;
    --header-height: 80px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle noise texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    z-index: 9999;
}

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

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent-light);
}

/* ================================
   Typography
   ================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-text);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    letter-spacing: 0.02em;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    letter-spacing: 0.01em;
}

h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    font-weight: 600;
}

p {
    margin-bottom: 1em;
}

p:last-child {
    margin-bottom: 0;
}

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

.site-main {
    min-height: calc(100vh - var(--header-height));
}

/* ================================
   Header & Navigation
   ================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--color-bg-dark);
    z-index: 1000;
    transition: background var(--transition-smooth);
}

.site-header.scrolled {
    background: var(--color-bg-dark);
    border-bottom: 1px solid var(--color-border-subtle);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-decoration: none;
}

.logo-text {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.logo-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-text);
    letter-spacing: 0.02em;
}

/* Navigation */
.main-nav {
    display: flex;
}

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

.nav-list a {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    padding: var(--space-xs) 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width var(--transition-smooth);
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--color-text);
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    position: relative;
    transition: background var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    transition: transform var(--transition-fast);
}

.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }

/* ================================
   Hero Section
   ================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--header-height) 0 var(--space-lg);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 9, 8, 0.9) 0%, rgba(18, 17, 16, 0.7) 50%, rgba(10, 9, 8, 0.85) 100%);
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: grayscale(20%) contrast(1.1);
}

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

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

.hero-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid var(--color-border);
}

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

.hero h1 span {
    color: var(--color-accent);
}

.hero-text {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    max-width: 550px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-smooth);
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-bg-dark);
}

.btn-primary:hover {
    background: var(--color-accent-light);
    color: var(--color-bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 165, 116, 0.2);
}

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

.btn-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-group {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

/* ================================
   Sections
   ================================ */
section {
    padding: var(--space-xl) 0;
}

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

.section-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-xs);
}

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

.section-header p {
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ================================
   Cards & Services
   ================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-subtle);
    padding: var(--space-md);
    transition: all var(--transition-smooth);
}

.card:hover {
    border-color: var(--color-border);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-sm);
    color: var(--color-accent);
}

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

.card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* ================================
   About / Bio Section
   ================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-lg);
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    filter: grayscale(20%);
}

.about-image::before {
    content: '';
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    right: calc(var(--space-sm) * -1);
    bottom: calc(var(--space-sm) * -1);
    border: 1px solid var(--color-accent);
    z-index: -1;
}

.about-content h2 {
    margin-bottom: var(--space-md);
}

.about-content p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

/* ================================
   Contact Section
   ================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-lg);
}

.contact-info h2 {
    margin-bottom: var(--space-md);
}

.contact-details {
    list-style: none;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    color: var(--color-text-muted);
}

.contact-details svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--color-accent);
    margin-top: 3px;
}

.contact-details a {
    color: var(--color-text-muted);
}

.contact-details a:hover {
    color: var(--color-accent);
}

.contact-form-wrapper {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-subtle);
    padding: var(--space-md);
}

/* ================================
   Events Section
   ================================ */
.events-wrapper {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-subtle);
    padding: var(--space-md);
    min-height: 400px;
}

/* ================================
   Page Headers
   ================================ */
.page-header {
    padding: calc(var(--header-height) + var(--space-lg)) 0 var(--space-lg);
    background: var(--color-bg-dark);
    border-bottom: 1px solid var(--color-border-subtle);
    text-align: center;
}

.page-header h1 {
    margin-bottom: var(--space-xs);
}

.page-header p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

.breadcrumb {
    font-size: 0.8rem;
    color: var(--color-text-dark);
    margin-bottom: var(--space-sm);
}

.breadcrumb a {
    color: var(--color-text-muted);
}

/* ================================
   Footer
   ================================ */
.site-footer {
    background: var(--color-bg-dark);
    border-top: 1px solid var(--color-border-subtle);
    padding: var(--space-lg) 0 var(--space-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-tagline {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-top: var(--space-sm);
    max-width: 300px;
}

.site-footer h3 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.site-footer address {
    font-style: normal;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.site-footer address p {
    margin-bottom: var(--space-xs);
}

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

.footer-links li {
    margin-bottom: var(--space-xs);
}

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

.footer-links a:hover {
    color: var(--color-accent);
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border-subtle);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border-subtle);
    font-size: 0.85rem;
    color: var(--color-text-dark);
}

.footer-bottom .credit a {
    color: var(--color-text-muted);
}

/* ================================
   Responsive
   ================================ */
@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        max-width: 500px;
        margin: 0 auto;
    }
    
    /* Hero responsive */
    .hero .container {
        grid-template-columns: 1fr !important;
    }
    
    .hero .hero-image {
        display: none;
    }
    
    /* Video grid responsive */
    .videos .container > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    
    .videos .container > div > div[style*="max-width: 280px"] {
        max-width: 320px !important;
    }
}

@media (max-width: 768px) {
    :root {
        --space-lg: 3rem;
        --space-xl: 4rem;
    }
    
    /* Mobile Navigation */
    .nav-toggle {
        display: block;
        z-index: 1001;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100%;
        height: 100vh;
        height: 100dvh;
        background: var(--color-bg-dark);
        border-left: 1px solid var(--color-border-subtle);
        padding: calc(var(--header-height) + var(--space-md)) var(--space-md);
        transform: translateX(100%);
        transition: transform var(--transition-smooth);
        z-index: 1000;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .main-nav.active {
        transform: translateX(0);
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-list a {
        display: block;
        padding: var(--space-sm) 0;
        border-bottom: 1px solid var(--color-border-subtle);
    }
    
    .nav-toggle[aria-expanded="true"] .hamburger {
        background: transparent;
    }
    
    .nav-toggle[aria-expanded="true"] .hamburger::before {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle[aria-expanded="true"] .hamburger::after {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-tagline {
        margin: var(--space-sm) auto 0;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-xs);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn {
        justify-content: center;
    }
}

/* ================================
   Animations
   ================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ================================
   Utilities
   ================================ */
.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }
.mt-lg { margin-top: var(--space-lg); }
.mb-lg { margin-bottom: var(--space-lg); }

/* Embed responsive wrapper */
.embed-responsive {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

.embed-responsive iframe,
.embed-responsive video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Audio player styling */
audio {
    width: 100%;
    margin: var(--space-sm) 0;
}

audio::-webkit-media-controls-panel {
    background: var(--color-bg-card);
}
