/* ==========================================================
   Sandra Ooms — portfoliosite
   Rijke, artistieke stijl: warme inkt- en goudtinten, een
   handschrift-accent, zachte verf-vervagingen en subtiele
   scroll-animaties. Ontworpen om te voelen als een galerie,
   niet als een formulier.
   ========================================================== */

:root {
    --cream: #FAF3E6;
    --cream-deep: #F1E4CF;
    --paper: #FFFCF7;
    --ink: #2E2119;
    --plum: #2B1D24;
    --muted: #8B7863;
    --border: #E8D8BE;
    --terracotta: #C1613A;
    --terracotta-dark: #9C4C2B;
    --rose: #B65C68;
    --gold: #CB9C4F;
    --gold-soft: #E4C687;
    --white: #FFFFFF;
    --shadow: 0 18px 44px rgba(43, 29, 36, 0.16);
    --shadow-sm: 0 6px 18px rgba(43, 29, 36, 0.10);
    --radius: 16px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { margin: 0; padding: 0; }

body {
    background: var(--cream);
    color: var(--ink);
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* Zachte papier-textuur over de hele site — nauwelijks zichtbaar, geeft een tactiele laag */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.17  0 0 0 0 0.13  0 0 0 0 0.10  0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 0.5em;
    color: var(--ink);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }

.script {
    font-family: 'Alex Brush', cursive;
    color: var(--terracotta-dark);
    font-size: 1.7rem;
    line-height: 1;
    display: inline-block;
}

.eyebrow {
    font-family: 'Alex Brush', cursive;
    font-size: 1.9rem;
    color: var(--terracotta);
    display: block;
    margin-bottom: 0.1em;
}

p { margin: 0 0 1em; }

a {
    color: var(--terracotta-dark);
    text-decoration: none;
}
a:hover { text-decoration: underline; }

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.container.narrow { max-width: 720px; }

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

/* ---------- Reveal-on-scroll ---------- */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-stagger.is-visible { transition-delay: calc(var(--i, 0) * 70ms); }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- Openingsanimatie ---------- */

body.intro-active { overflow: hidden; height: 100vh; }

.intro-splash {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-deep) 100%);
}

.intro-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    mix-blend-mode: multiply;
}
.intro-blob-a { width: 320px; height: 320px; left: 8%; top: 15%; background: var(--gold-soft); }
.intro-blob-b { width: 280px; height: 280px; right: 10%; bottom: 12%; background: var(--rose); }

.intro-text {
    position: relative;
    z-index: 2;
    font-family: 'Alex Brush', cursive;
    font-weight: 400;
    font-size: clamp(2.6rem, 9vw, 5.5rem);
    color: var(--terracotta-dark);
    white-space: nowrap;
    margin: 0;
    opacity: 0;
    clip-path: inset(0 100% 0 0);
}
.intro-text span { color: var(--gold); }

.intro-brush {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: -160px;
    width: 170px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(203, 156, 79, 0.65), rgba(193, 97, 58, 0.4) 55%, transparent 78%);
    filter: blur(8px);
    transform: translateY(-50%) rotate(-6deg);
    opacity: 0;
}

/* Pas animeren zodra het handschriftlettertype echt geladen is (klasse "run", via JS toegevoegd) */
.intro-splash.run .intro-text {
    opacity: 1;
    animation: introReveal 1.5s var(--ease) forwards;
}
.intro-splash.run .intro-brush {
    opacity: 1;
    animation: introBrushMove 1.5s var(--ease) forwards;
}

@keyframes introReveal { to { clip-path: inset(0 0% 0 0); } }
@keyframes introBrushMove { to { left: 106%; } }

.intro-splash.is-done {
    animation: introFadeOut 0.6s ease forwards;
    pointer-events: none;
}
@keyframes introFadeOut {
    to { opacity: 0; visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
    .intro-splash { display: none !important; }
}

/* ---------- Header ---------- */

.site-header {
    background: rgba(250, 243, 230, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 40;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
}

.brand { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
    font-family: 'Alex Brush', cursive;
    font-size: 2rem;
    font-weight: 400;
    color: var(--terracotta-dark);
}
.brand-tagline {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.main-nav { display: flex; gap: 30px; }
.main-nav a {
    position: relative;
    color: var(--ink);
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    padding-bottom: 4px;
}
.main-nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--terracotta), var(--gold));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.35s var(--ease);
}
.main-nav a:hover { text-decoration: none; }
.main-nav a:hover::after { transform: scaleX(1); }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    background: none;
    border: none;
    cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    padding: 96px 0 64px;
    text-align: center;
    overflow: hidden;
}

.hero-blobs {
    position: absolute;
    inset: -10% -10% auto -10%;
    height: 130%;
    z-index: 0;
    pointer-events: none;
    filter: blur(50px);
    opacity: 0.55;
}
.hero-blobs span {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: multiply;
    opacity: 0.55;
    animation: drift 22s ease-in-out infinite;
}
.hero-blobs span:nth-child(1) { width: 340px; height: 340px; left: 6%; top: 10%; background: var(--gold-soft); animation-duration: 26s; }
.hero-blobs span:nth-child(2) { width: 280px; height: 280px; right: 8%; top: 0; background: var(--rose); animation-duration: 20s; animation-delay: -6s; }
.hero-blobs span:nth-child(3) { width: 240px; height: 240px; left: 38%; bottom: -10%; background: var(--terracotta); opacity: 0.35; animation-duration: 24s; animation-delay: -3s; }

@keyframes drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(24px, -18px) scale(1.08); }
    66% { transform: translate(-18px, 14px) scale(0.96); }
}

.hero-monogram {
    position: absolute;
    top: -0.35em;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Alex Brush', cursive;
    font-size: clamp(9rem, 22vw, 15rem);
    color: var(--terracotta-dark);
    opacity: 0.06;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

.hero .container { z-index: 1; }

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: "photo" "text";
    align-items: center;
    gap: 40px;
}

.hero-photo-wrap {
    grid-area: photo;
    position: relative;
    justify-self: center;
    max-width: 320px;
    width: 100%;
}
.hero-photo-wrap::before {
    content: "";
    position: absolute;
    inset: 16px -16px -16px 16px;
    border: 2px solid var(--gold);
    border-radius: 22px;
    transform: rotate(-3deg);
    opacity: 0.6;
    z-index: 0;
}
.hero-photo {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: top center;
    border-radius: 20px;
    box-shadow: var(--shadow);
    animation: heroIn 0.9s var(--ease) 0.1s both;
}

.hero-text { grid-area: text; }

@media (min-width: 860px) {
    .hero-grid {
        grid-template-columns: 1.05fr 0.95fr;
        grid-template-areas: "text photo";
        gap: 56px;
    }
    .hero-text { text-align: left; }
    .hero-text .hero-intro { margin-left: 0; margin-right: 0; }
    .hero-text .hero-actions { justify-content: flex-start; }
    .hero-text .brushstroke { margin-left: 0; }
    .hero-photo-wrap { max-width: 380px; }
}

.hero-intro {
    max-width: 560px;
    margin: 0 auto 28px;
    color: var(--muted);
    font-size: 1.12rem;
}

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

/* De hero-inhoud waait rustig naar binnen bij het laden van de pagina */
@keyframes heroIn {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero .eyebrow { animation: heroIn 0.8s var(--ease) both; }
.hero h1 { animation: heroIn 0.8s var(--ease) 0.08s both; }
.hero .hero-intro { animation: heroIn 0.8s var(--ease) 0.16s both; }
.hero .hero-actions { animation: heroIn 0.8s var(--ease) 0.24s both; }
.hero .brushstroke { animation: heroIn 0.8s var(--ease) 0.32s both; }

/* Decoratieve penseelstreep-divider tussen secties */
.brushstroke {
    display: block;
    width: 200px;
    height: 20px;
    margin: 10px 0 0;
    opacity: 0.85;
}
.hero .brushstroke { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */

.btn {
    position: relative;
    display: inline-block;
    padding: 13px 28px;
    border-radius: 999px;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    border: 1px solid transparent;
    overflow: hidden;
    z-index: 0;
    transition: color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(120deg, var(--terracotta), var(--rose) 55%, var(--gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s var(--ease);
}
.btn-primary { background: var(--terracotta); color: var(--white); }
.btn-primary::before { transform: scaleX(1); }
.btn-primary:hover { color: var(--white); }

.btn-outline {
    background: transparent;
    border-color: var(--terracotta);
    color: var(--terracotta-dark);
}
.btn-outline:hover { color: var(--white); }
.btn-outline::before { transform: scaleX(0); }
.btn-outline:hover::before { transform: scaleX(1); }

/* ---------- Gallery ---------- */

.gallery-section { padding: 30px 0 90px; position: relative; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 30px;
}

.gallery-item {
    margin: 0;
    background: var(--paper);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
    perspective: 800px;
}
.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}
.gallery-item .thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
}
.gallery-item .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.6s var(--ease);
}
.gallery-item:hover .thumb img { transform: scale(1.1) rotate(-0.4deg); }
.gallery-item .thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(43,29,36,0) 55%, rgba(43,29,36,0.55) 100%);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}
.gallery-item:hover .thumb::after { opacity: 1; }

.gallery-item figcaption {
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}
.item-title { font-family: 'Playfair Display', serif; font-size: 1.08rem; }
.item-price { color: var(--terracotta-dark); font-size: 0.9rem; white-space: nowrap; }

.empty-state { text-align: center; color: var(--muted); padding: 60px 0; font-style: italic; }

/* ---------- Lightbox ---------- */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(27, 18, 14, 0.82);
    backdrop-filter: blur(3px);
}
.lightbox-content {
    position: relative;
    background: var(--cream);
    border-radius: var(--radius);
    max-width: 880px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    box-shadow: var(--shadow);
    animation: lightbox-in 0.4s var(--ease);
}
@keyframes lightbox-in {
    from { opacity: 0; transform: scale(0.96) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.lightbox-content img { width: 100%; height: 100%; object-fit: cover; }
.lightbox-info { padding: 30px; }
.lightbox-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: transform 0.2s ease;
}
.lightbox-close:hover { transform: rotate(90deg); }

/* ---------- Page sections / forms ---------- */

.page-section { padding: 56px 0; position: relative; }

.prose { color: var(--ink); }
.prose p:first-of-type::first-letter {
    font-family: 'Playfair Display', serif;
    font-size: 3.4rem;
    float: left;
    line-height: 0.8;
    padding: 8px 10px 0 0;
    color: var(--terracotta-dark);
}

.form { display: flex; flex-direction: column; gap: 18px; max-width: 560px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 0.9rem; color: var(--muted); }
.form-field .hint { font-weight: normal; font-size: 0.8rem; }

input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="number"], input[type="file"], textarea {
    font-family: inherit;
    font-size: 1rem;
    padding: 11px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
textarea { resize: vertical; }
input:focus, textarea:focus {
    outline: none;
    border-color: var(--terracotta);
    box-shadow: 0 0 0 3px rgba(193, 97, 58, 0.14);
}

.form-actions { display: flex; gap: 12px; }
.honeypot { position: absolute; left: -9999px; }
.current-thumb { margin-top: 10px; max-width: 160px; border-radius: 8px; }

.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; }
.alert ul { margin: 0; padding-left: 20px; }
.alert-success { background: #E7F2E3; color: #35592D; }
.alert-error { background: #F8E4DC; color: var(--terracotta-dark); }

/* ---------- Admin ---------- */

.admin-bar { background: var(--cream-deep); border-bottom: 1px solid var(--border); }
.admin-bar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px 24px; }
.admin-welcome { font-size: 0.9rem; color: var(--muted); }
.admin-nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.admin-nav a { font-size: 0.9rem; color: var(--ink); }
.admin-nav a.active { color: var(--terracotta-dark); font-weight: 600; }
.admin-nav a.logout { color: var(--terracotta-dark); }
.badge { background: var(--terracotta); color: var(--white); border-radius: 999px; font-size: 0.72rem; padding: 1px 7px; margin-left: 2px; }

.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.admin-card { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease); }
.admin-card:hover { transform: translateY(-3px); }
.admin-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.admin-card-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.admin-card-actions { display: flex; gap: 14px; margin-top: 8px; font-size: 0.88rem; }

.link-button { background: none; border: none; padding: 0; color: var(--terracotta-dark); text-decoration: underline; cursor: pointer; font: inherit; font-size: 0.88rem; }

.message-list { display: flex; flex-direction: column; gap: 16px; }
.message-card { background: var(--paper); border-radius: 10px; padding: 16px 18px; box-shadow: var(--shadow-sm); border-left: 4px solid transparent; }
.message-card.unread { border-left-color: var(--terracotta); }
.message-head { display: flex; gap: 12px; flex-wrap: wrap; align-items: baseline; margin-bottom: 6px; }
.message-date { color: var(--muted); font-size: 0.82rem; margin-left: auto; }
.message-actions { display: flex; gap: 16px; font-size: 0.85rem; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--border); padding: 34px 0; margin-top: 40px; position: relative; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 0.88rem; }
.footer-links { display: flex; gap: 18px; align-items: center; }
.footer-links a:hover { color: var(--terracotta-dark); }
.admin-link { color: var(--muted); font-size: 0.82rem; }

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--cream);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 16px 24px;
        gap: 14px;
        display: none;
    }
    .main-nav.open { display: flex; }
    .form-row { grid-template-columns: 1fr; }
    .lightbox-content { grid-template-columns: 1fr; }
    .hero { padding: 64px 0 44px; }
    h1 { font-size: 2.1rem; }
}
