/* Can Brull Custom Styles - Project Kamp Inspired */

/* Reset and Base */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
}

/* Design System */
:root {
    /* Can Brull Color Palette */
    --clay: #B87333;
    --forest: #2F4F2F;
    --mushroom: #F5E6D3;
    --charcoal: #1A1A1A;
    --cream: #FEFDF8;
    --stone: #8B8680;
    
    /* Applied Colors */
    --text-primary: var(--charcoal);
    --text-secondary: #4A4A4A;
    --bg-primary: var(--cream);
    --bg-secondary: #FFFFFF;
    --accent: var(--clay);
    
    /* Spacing */
    --space: clamp(1rem, 5vw, 3rem);
    --container: 1200px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Crimson Text', Georgia, serif;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-top: 0;
}

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

/* Links */
a {
    color: var(--accent);
    text-decoration: none;
    position: relative;
}

.prose a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.prose a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero-content {
    position: relative;
    text-align: center;
    color: white;
    z-index: 1;
    padding: var(--space);
}

.hero h1 {
    margin-bottom: 1rem;
    color: white;
}

.hero-tagline {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Navigation Override */
header, .site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    padding: 1rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space);
}

nav .logo {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
}

/* Content Sections */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space);
}

section {
    padding: calc(var(--space) * 3) 0;
}

/* Prose Content */
.prose {
    max-width: 720px;
    margin: 0 auto;
}

.prose p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.prose h2 {
    margin-bottom: 1.5rem;
}

/* Project Cards */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: calc(var(--space) * 1.5);
    margin-top: calc(var(--space) * 2);
}

.project-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

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

.project-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--mushroom);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: scale 0.3s ease;
}

.project-card:hover img {
    scale: 1.05;
}

.project-content {
    padding: calc(var(--space) * 1.5);
}

.project-content h3 {
    margin-bottom: 0.5rem;
}

.project-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Gallery Integration */
.gallery-container {
    margin: calc(var(--space) * 2) 0;
    border-radius: 8px;
    overflow: hidden;
}

/* Main content spacing for fixed header */
main {
    padding-top: 80px;
}

/* Homepage specific */
.homepage main {
    padding-top: 0;
}

/* Background sections */
.bg-light {
    background: #FAF8F5;
}

/* Footer */
footer {
    margin-top: calc(var(--space) * 3);
    padding: calc(var(--space) * 2) 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    main {
        padding-top: 120px;
    }
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mb-3 {
    margin-bottom: 3rem;
}