/* ========================================
   Rodewald Ventures - CNC Wood Art
   Theme: Dark, Cinematic, Artistic
   Colors: Charcoal, Copper, Warm White
   ======================================== */

:root {
    /* Dark palette - opposite of Thompson's light cream */
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --bg-elevated: #1a1a1a;
    --bg-input: #0f0f0f;

    /* Copper/Bronze accents - warm metallic feel */
    --copper: #c77d4a;
    --copper-light: #d4956a;
    --copper-dark: #a66638;
    --copper-glow: rgba(199, 125, 74, 0.15);

    /* Text colors */
    --text-primary: #f5f5f5;
    --text-secondary: #999999;
    --text-muted: #666666;

    /* Borders */
    --border: #2a2a2a;
    --border-light: #333333;

    /* Functional */
    --success: #4a9f6e;
    --error: #c75050;

    /* Shadows & Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-copper: 0 4px 30px rgba(199, 125, 74, 0.2);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.2s var(--ease-out);
    --transition-base: 0.4s var(--ease-out);
    --transition-slow: 0.6s var(--ease-out);

    /* Typography scale */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

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

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--copper);
    color: var(--bg-dark);
}

/* Cursor Glow Effect (Desktop) */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    pointer-events: none;
    background: radial-gradient(circle, var(--copper-glow) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@media (hover: hover) {
    .cursor-glow {
        opacity: 1;
    }
}

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

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-transform: uppercase;
}

.btn svg {
    transition: transform var(--transition-fast);
}

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

.btn-primary:hover {
    background: var(--copper-light);
    box-shadow: var(--shadow-copper);
}

.btn-primary:hover svg {
    transform: translate(4px, -4px);
}

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

.btn-ghost:hover {
    border-color: var(--copper);
    color: var(--copper);
}

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

.btn-light:hover {
    background: var(--copper-light);
}

.btn-full {
    width: 100%;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 48px;
    background: transparent;
    transition: all var(--transition-base);
}

.nav.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    padding: 16px 48px;
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    display: flex;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 1.5rem;
}

.logo-text {
    color: var(--text-primary);
}

.logo-accent {
    color: var(--copper);
    font-style: italic;
}

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

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--copper);
    transition: width var(--transition-fast);
}

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

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

.nav-cta {
    padding: 12px 24px;
    background: var(--copper);
    color: var(--bg-dark) !important;
    border-radius: 4px;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--copper-light);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
}

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

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

.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;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(199, 125, 74, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(199, 125, 74, 0.08) 0%, transparent 50%);
}

.hero-content {
    max-width: 900px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    margin-bottom: 32px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--copper);
    border: 1px solid var(--copper);
    border-radius: 100px;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 400;
    line-height: 1.05;
    margin-bottom: 32px;
}

.title-line {
    display: block;
}

.hero-title em {
    font-style: italic;
    color: var(--copper);
}

.hero-sub {
    max-width: 600px;
    margin: 0 auto 48px;
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hero-scroll span {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--copper), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* Section Styling */
.section-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--copper);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    margin-bottom: 24px;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.8;
}

/* Work / Gallery Section */
.work {
    padding: 120px 48px;
    background: var(--bg-card);
}

.section-intro {
    max-width: 600px;
    margin-bottom: 80px;
}

.gallery-container {
    position: relative;
}

.gallery-track {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 20px;
}

.gallery-track::-webkit-scrollbar {
    display: none;
}

.gallery-card {
    flex: 0 0 calc(33.333% - 22px);
    min-width: 320px;
    scroll-snap-align: start;
    background: var(--bg-dark);
    border-radius: 8px;
    overflow: hidden;
    transition: transform var(--transition-base);
}

.gallery-card:hover {
    transform: translateY(-8px);
}

.card-image {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
}

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

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

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: var(--bg-elevated);
    color: var(--text-muted);
}

.image-placeholder svg {
    opacity: 0.3;
}

.image-placeholder span {
    font-size: 0.875rem;
}

.image-placeholder.large {
    aspect-ratio: 3/4;
    min-height: 400px;
}

.card-info {
    padding: 24px;
}

.card-info h3 {
    font-size: 1.25rem;
    font-family: var(--font-display);
    margin-bottom: 8px;
}

.card-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.gallery-nav {
    display: flex;
    gap: 12px;
    margin-top: 40px;
}

.gallery-btn {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.gallery-btn:hover {
    background: var(--copper);
    border-color: var(--copper);
    color: var(--bg-dark);
}

/* About Section */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.about-visual {
    position: relative;
    background: var(--bg-card);
    padding: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: auto;
}

.about-stats {
    display: flex;
    gap: 48px;
    margin-top: 48px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--copper);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-content {
    padding: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-text {
    margin-bottom: 48px;
}

.about-text .lead {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--copper-glow);
    border-radius: 8px;
    color: var(--copper);
    flex-shrink: 0;
}

.feature-text strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 4px;
}

.feature-text span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Process Section */
.process {
    padding: 120px 48px;
    background: var(--bg-card);
}

.process-header {
    max-width: 600px;
    margin-bottom: 80px;
}

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

.timeline-item {
    padding: 40px;
    background: var(--bg-dark);
    border-radius: 8px;
    border: 1px solid var(--border);
    position: relative;
    transition: all var(--transition-base);
}

.timeline-item:hover {
    border-color: var(--copper);
    transform: translateY(-4px);
}

.timeline-number {
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--copper);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 24px;
}

.timeline-item:hover .timeline-number {
    opacity: 1;
}

.timeline-content h3 {
    font-size: 1.25rem;
    font-family: var(--font-display);
    margin-bottom: 12px;
}

.timeline-content p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* CTA Banner */
.cta-banner {
    position: relative;
    padding: 120px 48px;
    background: var(--copper);
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    text-align: center;
    margin: 0 auto;
}

.cta-banner h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--bg-dark);
    margin-bottom: 16px;
}

.cta-banner p {
    font-size: 1.125rem;
    color: rgba(10, 10, 10, 0.7);
    margin-bottom: 32px;
}

.cta-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230a0a0a' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Contact Section */
.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.contact-info {
    padding: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
    line-height: 1.8;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all var(--transition-fast);
}

.contact-method:hover {
    border-color: var(--copper);
    transform: translateX(8px);
}

.method-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--copper-glow);
    border-radius: 8px;
    color: var(--copper);
}

.method-text strong {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 2px;
}

.method-text span {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.contact-form-wrapper {
    background: var(--bg-card);
    padding: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-form {
    max-width: 480px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-group label .optional {
    color: var(--text-muted);
    font-weight: 400;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 16px 20px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: all var(--transition-fast);
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--copper);
    background: var(--bg-dark);
}

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

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23666666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.contact-form .btn {
    margin-top: 8px;
}

/* Footer */
.footer {
    padding: 80px 48px 32px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 48px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo-text,
.footer-brand .logo-accent {
    font-family: var(--font-display);
    font-size: 1.5rem;
}

.footer-brand p {
    margin-top: 16px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.footer-nav {
    display: flex;
    gap: 40px;
}

.footer-nav a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-nav a:hover {
    color: var(--copper);
}

.footer-social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--copper);
    color: var(--bg-dark);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 968px) {
    .nav {
        padding: 20px 24px;
    }

    .nav.scrolled {
        padding: 16px 24px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        background: var(--bg-dark);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        font-size: 1.25rem;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active span:first-child {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .nav-toggle.active span:last-child {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .hero {
        padding: 100px 24px;
    }

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

    .about-visual {
        padding: 60px 24px;
    }

    .about-content {
        padding: 60px 24px;
    }

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

    .contact-info {
        padding: 60px 24px;
    }

    .contact-form-wrapper {
        padding: 60px 24px;
    }

    .work {
        padding: 80px 24px;
    }

    .process {
        padding: 80px 24px;
    }

    .cta-banner {
        padding: 80px 24px;
    }

    .footer {
        padding: 60px 24px 24px;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
        align-items: center;
        text-align: center;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .gallery-card {
        flex: 0 0 280px;
        min-width: 280px;
    }

    .about-stats {
        gap: 32px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .process-timeline {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

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

/* Form Success/Error States */
.form-message {
    padding: 16px 20px;
    border-radius: 4px;
    margin-bottom: 24px;
    font-size: 0.9375rem;
}

.form-message.success {
    background: rgba(74, 159, 110, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.form-message.error {
    background: rgba(199, 80, 80, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
}

/* Turnstile spacing */
.cf-turnstile {
    margin-bottom: 24px;
}
