/* ===================================
   IDEAS GALLERY PAGE STYLES
   =================================== */

/* CSS Variables (if not already in work.css) */
:root {
    --background: #ffffff;
    --foreground: #1a1a1a;
    --primary: #e53935;
    --primary-dark: #b71c1c;
    --muted-foreground: #737373;
    --border: #e5e5e5;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-wide {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 60px;
}

/* Navigation */
.nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 0;
    background: transparent;
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.875rem;
    font-style: italic;
    color: #ffffff;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.logo:hover {
    opacity: 0.9;
}

.nav-links {
    display: flex;
    gap: 48px;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-active {
    color: #ffffff !important;
    font-weight: 600;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width 0.3s ease;
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #b71c1c 0%, #c62828 100%);
}

.hero-grain {
    position: absolute;
    inset: 0;
    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");
    opacity: 0.03;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.hero-blur {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.hero-blur-1 {
    top: 20%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
}

.hero-blur-2 {
    bottom: 20%;
    right: 10%;
    width: 500px;
    height: 500px;
    background: rgba(0, 0, 0, 0.1);
}

.hero-content-wrapper {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    min-height: calc(100vh - 120px);
    padding: 120px 0 60px;
}

.hero-content {
    max-width: 1000px;
    text-align: left;
    padding: 0;
}

.hero-eyebrow {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 5.5rem);
    color: #ffffff;
    margin-bottom: 32px;
    line-height: 1.1;
    font-weight: 600;
}

.hero-title .italic {
    font-style: italic;
    font-weight: 500;
}

.hero-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
    font-weight: 300;
    max-width: 700px;
    line-height: 1.8;
    margin-bottom: 48px;
}

.hero-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 128px;
    background: linear-gradient(to top, var(--background), transparent);
}

/* Main Gallery Section */
.ideas-gallery {
    padding: 80px 0;
    background: var(--background);
}

/* Filter Tabs */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.filter-btn {
    padding: 8px 24px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: white;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(229, 57, 53, 0.3);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 80px;
}

/* Gallery Item */
.gallery-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: scale(1);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

/* Gallery Image */
.gallery-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.gallery-overlay {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.gallery-category {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gallery-tag {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--foreground);
}

/* Gallery Content */
.gallery-content {
    padding: 24px;
}

.gallery-content h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--foreground);
    margin-bottom: 8px;
    line-height: 1.3;
}

.gallery-content p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* CTA Section */
.gallery-cta {
    text-align: center;
    padding: 64px;
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.05) 0%, rgba(183, 28, 28, 0.05) 100%);
    border-radius: 20px;
}

.gallery-cta h3 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--foreground);
    margin-bottom: 16px;
}

.gallery-cta p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--primary);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -15px rgba(229, 57, 53, 0.3);
    gap: 16px;
}

.cta-button svg {
    width: 18px;
    height: 18px;
}

/* Footer */
.site-footer {
    background-color: #ffffff;
    border-top: 2px solid #d41e22;
    padding: 80px 0 40px;
    color: #111;
    position: relative;
    z-index: 5;
    width: 100%;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 80px;
    padding: 0 48px;
}

.footer-col h3 {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 16px;
    font-family: var(--font-serif);
    font-style: italic;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #333;
}

.footer-col p,
.footer-col li {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
}

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

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    text-decoration: none;
    color: #111;
    transition: opacity 0.3s ease;
    position: relative;
}

.footer-col a:hover {
    opacity: 0.6;
}

.footer-col a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #d41e22;
    transition: width 0.3s ease;
}

.footer-col a:hover::after {
    width: 100%;
}

.footer-motto {
    margin-bottom: 20px;
    font-size: 17px;
    color: #444;
    max-width: 280px;
}

.footer-meta {
    font-size: 15px;
    color: #777;
    margin-top: 8px;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .container-wide,
    .nav-container {
        padding: 0 48px;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 6vw, 4.5rem);
    }
}

@media (max-width: 1200px) {
    .container-wide,
    .nav-container {
        padding: 0 40px;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .footer-inner {
        gap: 60px;
        padding: 0 32px;
    }
}

@media (max-width: 992px) {
    .container-wide,
    .nav-container {
        padding: 0 32px;
    }
    
    .hero-content-wrapper {
        min-height: calc(100vh - 100px);
        padding: 100px 0 40px;
    }
    
    .nav {
        padding: 24px 0;
    }
    
    .nav-links {
        gap: 32px;
    }
    
    .logo {
        font-size: 1.75rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 24px;
    }
    
    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
    }
    
    .footer-col h3 {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .container-wide,
    .nav-container,
    .container {
        padding: 0 24px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-description {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .nav-links {
        gap: 24px;
    }
    
    .nav-links a {
        font-size: 0.875rem;
    }
    
    .gallery-filters {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 6px 16px;
        font-size: 0.8125rem;
    }
    
    .gallery-cta {
        padding: 48px 24px;
    }
    
    .gallery-cta h3 {
        font-size: 2rem;
    }
    
    .site-footer {
        padding: 60px 0 30px;
    }
    
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 24px;
    }
    
    .footer-col {
        text-align: center;
    }
    
    .footer-motto {
        margin: 0 auto 20px;
        text-align: center;
    }
    
    .footer-col h3 {
        font-size: 24px;
    }
    
    .footer-col h4 {
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    .footer-col p,
    .footer-col li {
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .container-wide,
    .nav-container,
    .container {
        padding: 0 20px;
    }
    
    .hero-content-wrapper {
        min-height: calc(100vh - 80px);
        padding: 80px 0 32px;
    }
    
    .nav {
        padding: 20px 0;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-content {
        padding: 20px;
    }
    
    .gallery-content h3 {
        font-size: 1.25rem;
    }
    
    .gallery-cta h3 {
        font-size: 1.75rem;
    }
    
    .site-footer {
        padding: 50px 0 25px;
    }
    
    .footer-inner {
        padding: 0 20px;
        gap: 35px;
    }
    
    .footer-col h3 {
        font-size: 22px;
    }
    
    .footer-col h4 {
        font-size: 14px;
    }
}

/* Animation States */
.gallery-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }
.gallery-item:nth-child(7) { animation-delay: 0.7s; }
.gallery-item:nth-child(8) { animation-delay: 0.8s; }
.gallery-item:nth-child(9) { animation-delay: 0.9s; }
.gallery-item:nth-child(10) { animation-delay: 1s; }
.gallery-item:nth-child(11) { animation-delay: 1.1s; }
.gallery-item:nth-child(12) { animation-delay: 1.2s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}