/* ============================================
   Richard Poelstra — Portfolio
   Warme, open kleurenpalet
   ============================================ */

:root {
    /* Warme kleuren */
    --cream:      #FBF4E8;
    --cream-soft: #F5EAD6;
    --sand:       #EBD9B8;
    --terracotta: #C8553D;
    --terracotta-dark: #A8412D;
    --amber:      #E89B5B;
    --warm-brown: #8B5A3C;
    --deep-brown: #3D2817;
    --soft-brown: #6B5340;
    --gold:       #D9A55C;

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --shadow-sm: 0 2px 8px rgba(61, 40, 23, 0.08);
    --shadow-md: 0 8px 24px rgba(61, 40, 23, 0.12);
    --shadow-lg: 0 16px 48px rgba(61, 40, 23, 0.18);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.65;
    color: var(--deep-brown);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--terracotta);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--terracotta-dark);
}

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

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 32px;
}

.section {
    padding: 110px 0;
}

.section-light {
    background: var(--cream-soft);
}

.section-dark {
    background: var(--deep-brown);
    color: var(--cream);
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    align-items: start;
}

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

.section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 16px;
}

.section-eyebrow.centered {
    text-align: center;
}

.section-eyebrow.light {
    color: var(--amber);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--deep-brown);
    margin-bottom: 48px;
}

.section-title.centered {
    text-align: center;
}

.section-title.light {
    color: var(--cream);
}

.section-intro {
    font-size: 1.1rem;
    color: var(--soft-brown);
    max-width: 640px;
    margin: -32px auto 56px;
    line-height: 1.7;
}

.section-intro.centered {
    text-align: center;
}

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

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(251, 244, 232, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(139, 90, 60, 0.12);
}

.nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 18px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--terracotta);
    letter-spacing: 0.05em;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 36px;
}

.nav-links a {
    color: var(--deep-brown);
    font-size: 0.92rem;
    font-weight: 500;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--terracotta);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

/* ============================================
   Hero
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 32px 80px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at top right, rgba(232, 155, 91, 0.25), transparent 60%),
        radial-gradient(ellipse at bottom left, rgba(200, 85, 61, 0.15), transparent 55%),
        var(--cream);
}

.hero-inner {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-eyebrow {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 24px;
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1;
    color: var(--deep-brown);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.hero-role {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.6vw, 1.8rem);
    font-style: italic;
    color: var(--warm-brown);
    margin-bottom: 32px;
    font-weight: 500;
}

.hero-tagline {
    font-size: 1.15rem;
    color: var(--soft-brown);
    max-width: 620px;
    line-height: 1.7;
    margin-bottom: 48px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-decoration {
    position: absolute;
    top: 50%;
    right: -100px;
    width: 500px;
    height: 500px;
    transform: translateY(-50%);
    background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
    opacity: 0.15;
    border-radius: 50%;
    z-index: 1;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: var(--radius-sm);
    transition: all 0.25s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--terracotta);
    color: var(--cream);
}

.btn-primary:hover {
    background: var(--terracotta-dark);
    color: var(--cream);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    background: transparent;
    color: var(--deep-brown);
    border-color: var(--warm-brown);
}

.btn-ghost:hover {
    background: var(--warm-brown);
    color: var(--cream);
    transform: translateY(-2px);
}

/* ============================================
   About
   ============================================ */

.about-body p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: var(--soft-brown);
    line-height: 1.8;
}

.about-body p:last-child {
    margin-bottom: 0;
}

.about-body strong {
    color: var(--deep-brown);
    font-weight: 600;
}

/* ============================================
   Expertise cards
   ============================================ */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.card {
    background: var(--cream);
    padding: 36px 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(139, 90, 60, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(200, 85, 61, 0.3);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    width: 56px;
    height: 56px;
    background: var(--sand);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--deep-brown);
    margin-bottom: 12px;
}

.card p {
    color: var(--soft-brown);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   Timeline
   ============================================ */

.timeline {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--terracotta) 0%, var(--amber) 50%, var(--gold) 100%);
    opacity: 0.4;
}

.timeline-item {
    position: relative;
    margin-bottom: 56px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -32px;
    top: 8px;
    width: 18px;
    height: 18px;
    background: var(--terracotta);
    border: 3px solid var(--cream-soft);
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--terracotta);
}

.timeline-content {
    background: var(--cream);
    padding: 28px 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-left: 16px;
}

.timeline-period {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 8px;
}

.timeline-content h3 {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--deep-brown);
    margin-bottom: 4px;
}

.timeline-company {
    font-size: 0.95rem;
    color: var(--warm-brown);
    font-weight: 500;
    margin-bottom: 14px;
    font-style: italic;
}

.timeline-content > p:not(.timeline-company) {
    color: var(--soft-brown);
    line-height: 1.75;
    margin-bottom: 16px;
}

.timeline-content strong {
    color: var(--deep-brown);
}

.timeline-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline-tags li {
    background: var(--sand);
    color: var(--deep-brown);
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.education {
    margin-top: 72px;
    padding-top: 40px;
    border-top: 1px solid rgba(139, 90, 60, 0.2);
    text-align: center;
}

.education h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--deep-brown);
    margin-bottom: 8px;
}

.education p {
    color: var(--soft-brown);
}

/* ============================================
   Gallery
   ============================================ */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: pointer;
    background: var(--sand);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

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

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

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(61, 40, 23, 0.85) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-caption {
    color: var(--cream);
    font-size: 0.95rem;
    font-weight: 500;
}

.gallery-placeholder {
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--sand), var(--cream-soft));
    border: 2px dashed var(--warm-brown);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    color: var(--warm-brown);
    opacity: 0.7;
}

.gallery-placeholder-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.gallery-placeholder p {
    font-size: 0.9rem;
    line-height: 1.5;
}

.gallery-hint {
    text-align: center;
    font-size: 0.9rem;
    color: var(--soft-brown);
    margin-top: 32px;
}

.gallery-hint code {
    background: var(--sand);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: ui-monospace, 'Cascadia Mono', Menlo, monospace;
    font-size: 0.85rem;
}

/* ============================================
   Lightbox
   ============================================ */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(61, 40, 23, 0.95);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.lightbox.active {
    display: flex;
}

.lightbox-figure {
    max-width: 90vw;
    max-height: 85vh;
    text-align: center;
}

#lightbox-img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

#lightbox-caption {
    color: var(--cream);
    margin-top: 20px;
    font-size: 1.05rem;
    font-family: var(--font-display);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(251, 244, 232, 0.1);
    color: var(--cream);
    border: 1px solid rgba(251, 244, 232, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--terracotta);
    border-color: var(--terracotta);
}

.lightbox-close {
    top: 24px;
    right: 24px;
}

.lightbox-prev {
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
}

.lightbox-next {
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
}

/* ============================================
   Contact
   ============================================ */

.contact-inner {
    max-width: 760px;
    text-align: center;
}

.contact-intro {
    font-size: 1.1rem;
    color: var(--cream-soft);
    margin: -32px auto 48px;
    max-width: 580px;
    line-height: 1.7;
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.contact-link {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 28px 24px;
    background: rgba(251, 244, 232, 0.06);
    border: 1px solid rgba(251, 244, 232, 0.12);
    border-radius: var(--radius-md);
    color: var(--cream);
    transition: all 0.25s ease;
}

a.contact-link:hover {
    background: rgba(232, 155, 91, 0.12);
    border-color: var(--amber);
    color: var(--cream);
    transform: translateY(-2px);
}

.contact-label {
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--amber);
    font-weight: 500;
}

.contact-value {
    font-size: 1rem;
    word-break: break-word;
}

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

.footer {
    background: var(--deep-brown);
    color: var(--cream-soft);
    padding: 28px 0;
    text-align: center;
    border-top: 1px solid rgba(251, 244, 232, 0.08);
    font-size: 0.85rem;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 820px) {
    .section { padding: 70px 0; }
    .container { padding: 0 24px; }

    .nav-links {
        gap: 18px;
        font-size: 0.85rem;
    }

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

    .two-col {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero {
        min-height: auto;
        padding: 140px 24px 80px;
    }

    .hero-cta { flex-direction: column; }
    .btn { text-align: center; }

    .timeline { padding-left: 24px; }
    .timeline-marker { left: -24px; }
    .timeline-content { padding: 22px 24px; margin-left: 8px; }

    .lightbox {
        padding: 20px;
    }
    .lightbox-prev, .lightbox-next {
        width: 42px; height: 42px;
    }
}

@media (max-width: 560px) {
    .nav-links li:nth-child(2),
    .nav-links li:nth-child(4) {
        display: none;
    }
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}
