/* Leanne's Lens */

/* ---------- Fonts ---------- */
@font-face {
    font-family: "Arapey";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/arapey-regular.woff2") format("woff2");
}
@font-face {
    font-family: "Arapey";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/arapey-italic.woff2") format("woff2");
}
@font-face {
    font-family: "Allison";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/allison.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
    --brown: #7c4f42;
    --brown-deep: #5b382f;
    --brown-dark: #4a2d26;
    --ink: #763a11;
    --rose: #ce836e;
    --rose-deep: #b5664f;
    --rose-light: #ebb19d;
    --blush: #f0d8d1;
    --blush-deep: #e6c2b8;
    --cream: #fcf6f2;

    --serif: "Arapey", Georgia, "Times New Roman", serif;
    --script: "Allison", "Segoe Script", "Snell Roundhand", cursive;

    --header-h: 5.5rem;
    --container: 72rem;
    --gutter: clamp(1.25rem, 4vw, 2rem);
    --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}
html:has(.lightbox[open]),
html.nav-open { overflow: hidden; }

body {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.1875rem;
    line-height: 1.7;
    color: var(--ink);
    background: var(--blush);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: .2em;
}

h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.2; }
p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
::selection { background: var(--rose); color: #fff; }

.container {
    width: min(100% - 2 * var(--gutter), var(--container));
    margin-inline: auto;
}
.container--narrow { --container: 46rem; }
.container--medium { --container: 58rem; }
.text-center { text-align: center; }

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    padding: .5rem 1rem;
    background: #fff;
    color: var(--brown);
}
.skip-link:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    height: var(--header-h);
    color: #fff;
    transition: background-color .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease);
}
.site-header.is-scrolled {
    --header-h: 4.5rem;
    background: var(--brown);
    box-shadow: 0 8px 24px -16px rgba(40, 20, 14, .7);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand { position: relative; z-index: 2; }
.brand img {
    width: 8.25rem;
    transition: width .4s var(--ease);
}
.is-scrolled .brand img { width: 7rem; }

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2.25rem;
}
.site-nav a {
    position: relative;
    display: block;
    padding-block: .4rem;
    font-size: .875rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    text-decoration: none;
}
.site-nav a:not(.nav-icon)::after {
    content: "";
    position: absolute;
    left: 0;
    right: .16em;
    bottom: 0;
    height: 1px;
    background: var(--rose-light);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--ease);
}
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-icon svg { width: 1.2rem; height: 1.2rem; }
.nav-icon:hover { color: var(--rose-light); }

.nav-toggle { display: none; }

@media (max-width: 56rem) {
    .nav-toggle {
        position: relative;
        z-index: 2;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.75rem;
        height: 2.75rem;
        margin-right: -.5rem;
        padding: 0;
        border: 0;
        background: none;
        color: inherit;
        cursor: pointer;
    }
    .nav-toggle span,
    .nav-toggle span::before,
    .nav-toggle span::after {
        display: block;
        width: 1.6rem;
        height: 1px;
        background: currentColor;
        transition: transform .3s var(--ease), background-color .3s;
    }
    .nav-toggle span { position: relative; }
    .nav-toggle span::before,
    .nav-toggle span::after {
        content: "";
        position: absolute;
        left: 0;
    }
    .nav-toggle span::before { top: -.45rem; }
    .nav-toggle span::after { top: .45rem; }
    .nav-open .nav-toggle span { background: transparent; }
    .nav-open .nav-toggle span::before { transform: translateY(.45rem) rotate(45deg); }
    .nav-open .nav-toggle span::after { transform: translateY(-.45rem) rotate(-45deg); }

    .site-nav {
        position: fixed;
        inset: 0;
        z-index: 1;
        display: grid;
        place-items: center;
        background: var(--brown);
        opacity: 0;
        visibility: hidden;
        transition: opacity .35s var(--ease), visibility .35s;
    }
    .nav-open .site-nav { opacity: 1; visibility: visible; }
    .site-nav ul { flex-direction: column; gap: 1.6rem; }
    .site-nav a { font-size: 1.1rem; }
}

/* ---------- Hero (home) ---------- */
.hero {
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: center;
    height: min(100svh, 60rem);
    min-height: 34rem;
    overflow: hidden;
    color: #fff;
    background: var(--brown-deep);
}
.hero__img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 68% 50%;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(43, 24, 18, .45) 0%, transparent 22%),
        linear-gradient(90deg, rgba(43, 24, 18, .7) 0%, rgba(43, 24, 18, .35) 45%, rgba(43, 24, 18, 0) 75%);
}
.hero__content {
    max-width: 33rem;
    padding-top: var(--header-h);
}
.hero__content > * { animation: rise 1.2s var(--ease) both; }
.hero__content > :nth-child(2) { animation-delay: .15s; }
.hero__content > :nth-child(3) { animation-delay: .3s; }

.hero__title {
    margin-bottom: .1em;
    font-family: var(--script);
    font-size: clamp(5rem, 11vw, 8rem);
    line-height: 1;
    color: var(--rose-light);
}
.hero__text {
    margin-bottom: 2.25rem;
    font-size: clamp(1.25rem, 1.7vw, 1.45rem);
    line-height: 1.55;
    color: #fbefe9;
    text-wrap: pretty;
}

@media (max-width: 40rem) {
    .hero { align-items: end; padding-bottom: 3.5rem; }
    .hero::before {
        background:
            linear-gradient(180deg, rgba(43, 24, 18, .45) 0%, transparent 25%),
            linear-gradient(0deg, rgba(43, 24, 18, .8) 0%, rgba(43, 24, 18, .4) 45%, rgba(43, 24, 18, 0) 70%);
    }
}

@keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

/* ---------- Page banner (sub pages) ---------- */
.page-banner {
    padding: calc(var(--header-h) + 2rem) 0 2.75rem;
    text-align: center;
    color: #fff;
    background: var(--brown);
}
.page-title {
    font-family: var(--script);
    font-size: clamp(4.5rem, 10vw, 6.75rem);
    line-height: 1.05;
    color: var(--rose-light);
    animation: rise 1.2s var(--ease) both;
}

.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .9rem;
    color: var(--rose);
}
.ornament::before,
.ornament::after {
    content: "";
    width: 3.5rem;
    height: 1px;
    background: currentColor;
}
.ornament span {
    width: .4rem;
    height: .4rem;
    background: currentColor;
    transform: rotate(45deg);
}
.page-banner .ornament { margin-top: .75rem; opacity: .85; }
.section-head .ornament { margin-top: .75rem; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--deep { background: var(--blush-deep); }
.section--cream { background: var(--cream); }

.section-head {
    margin-bottom: clamp(2rem, 4vw, 3rem);
    text-align: center;
}
.section-title {
    font-family: var(--script);
    font-size: clamp(3.75rem, 8vw, 5.25rem);
    line-height: 1.05;
    color: var(--rose-deep);
}

.lead {
    font-size: clamp(1.25rem, 2vw, 1.45rem);
    line-height: 1.6;
    text-wrap: pretty;
}

.rose {
    width: 5rem;
    height: auto;
    margin: 2.5rem auto 0;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6em;
    padding: .8em 1.9em;
    border: 1px solid var(--rose-deep);
    border-radius: 999px;
    background: var(--rose-deep);
    color: #fff;
    font-family: var(--serif);
    font-size: 1.05rem;
    line-height: 1.2;
    letter-spacing: .05em;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover { background: var(--brown); border-color: var(--brown); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--outline {
    background: transparent;
    border-color: currentColor;
    color: var(--ink);
}
.btn--outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.btn--light {
    background: transparent;
    border-color: rgba(255, 255, 255, .85);
    color: #fff;
}
.btn--light:hover { background: #fff; border-color: #fff; color: var(--brown); }

.button-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.25rem;
    margin-top: 2.5rem;
}

/* ---------- Home intro ---------- */
.intro { margin: 0; }
.intro-quote {
    margin: 0;
    font-size: clamp(1.25rem, 2.2vw, 1.55rem);
    font-style: italic;
    line-height: 1.65;
    text-wrap: pretty;
}
.intro-quote::before {
    content: "\201C";
    display: block;
    height: .55em;
    font-size: 5rem;
    font-style: normal;
    line-height: 1;
    color: var(--rose);
}
.signature {
    margin-top: .75rem;
    font-family: var(--script);
    font-size: 3.25rem;
    font-style: normal;
    line-height: 1;
    color: var(--rose-deep);
}

/* ---------- Home: category tiles ---------- */
.tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.25rem, 2.5vw, 2rem);
    margin: 0;
    padding: 0;
    list-style: none;
}
.tiles li:nth-child(3n + 2) { transition-delay: .12s; }
.tiles li:nth-child(3n) { transition-delay: .24s; }

.tile {
    display: block;
    color: var(--ink);
    text-decoration: none;
}
.tile__img {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--blush);
}
.tile__img::after {
    content: "";
    position: absolute;
    inset: .65rem;
    border: 1px solid rgba(255, 255, 255, .65);
    opacity: 0;
    transition: opacity .5s var(--ease);
    pointer-events: none;
}
.tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease);
}
.tile__label {
    display: block;
    margin-top: 1rem;
    text-align: center;
    font-size: .9rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    transition: color .3s var(--ease);
}
.tile:hover img { transform: scale(1.05); }
.tile:hover .tile__img::after,
.tile:focus-visible .tile__img::after { opacity: 1; }
.tile:hover .tile__label { color: var(--rose-deep); }

@media (max-width: 48rem) {
    .tiles { grid-template-columns: repeat(2, 1fr); }
    .tiles li:nth-child(n) { transition-delay: 0s; }
    .tiles li:nth-child(2n) { transition-delay: .12s; }
    .tile__label { margin-top: .7rem; font-size: .78rem; letter-spacing: .12em; }
}

/* ---------- Portfolio ---------- */
.filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .4rem 2rem;
    margin-bottom: 2rem;
}
.filter {
    position: relative;
    padding: .3rem 0;
    border: 0;
    background: none;
    color: var(--ink);
    font: inherit;
    font-size: 1.2rem;
    opacity: .7;
    cursor: pointer;
    transition: opacity .3s;
}
.filter::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--rose);
    transform: scaleX(0);
    transition: transform .35s var(--ease);
}
.filter:hover,
.filter[aria-pressed="true"] { opacity: 1; }
.filter[aria-pressed="true"]::after { transform: scaleX(1); }

.category-intro {
    max-width: 46rem;
    margin: 0 auto 2.75rem;
    text-align: center;
    font-size: clamp(1.15rem, 1.8vw, 1.3rem);
    font-style: italic;
    line-height: 1.65;
    text-wrap: pretty;
}

/* Grid with 3:2 cells; portrait photos span two rows. Order stays row by row. */
.gallery-wrap { container-type: inline-size; }
.gallery {
    --cols: 1;
    --gap: 1.25rem;
    display: grid;
    grid-template-columns: repeat(var(--cols), 1fr);
    grid-auto-rows: calc((100cqw - (var(--cols) - 1) * var(--gap)) / var(--cols) * 2 / 3);
    grid-auto-flow: dense;
    gap: var(--gap);
    transition: opacity .25s var(--ease);
}
@container (min-width: 30rem) { .gallery { --cols: 2; } }
@container (min-width: 46rem) { .gallery { --cols: 3; } }
@container (min-width: 62rem) { .gallery { --cols: 4; } }
.gallery.is-switching { opacity: 0; }

.gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--blush);
    border-radius: 2px;
}
.gallery-item--tall { grid-row: span 2; }
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .9s var(--ease);
}
.gallery-item::before,
.gallery-item::after {
    content: "";
    position: absolute;
    opacity: 0;
    transition: opacity .4s var(--ease);
}
.gallery-item::before {
    inset: 0;
    z-index: 1;
    background: rgba(91, 56, 47, .28);
}
.gallery-item::after {
    z-index: 2;
    top: 50%;
    left: 50%;
    width: 3rem;
    height: 3rem;
    margin: -1.5rem 0 0 -1.5rem;
    border: 1px solid #fff;
    border-radius: 50%;
    background:
        linear-gradient(#fff, #fff) center / 1rem 1px no-repeat,
        linear-gradient(#fff, #fff) center / 1px 1rem no-repeat;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item:hover::before,
.gallery-item:hover::after,
.gallery-item:focus-visible::before,
.gallery-item:focus-visible::after { opacity: 1; }

.gallery-cta { margin-top: 3rem; }

/* ---------- Lightbox ---------- */
.lightbox {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(35, 20, 16, .97);
    color: #fff;
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] {
    display: grid;
    place-items: center;
    animation: fade .3s var(--ease);
}
.lightbox figure {
    display: grid;
    justify-items: center;
    gap: .9rem;
    margin: 0;
}
.lightbox img {
    width: auto;
    max-width: min(100vw - 8rem, 1600px);
    max-height: calc(100dvh - 7rem);
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .7);
    transition: opacity .25s var(--ease);
}
.lightbox img.is-loading { opacity: 0; }
.lightbox figcaption {
    font-size: .9rem;
    letter-spacing: .2em;
    opacity: .7;
}
.lb-btn {
    position: fixed;
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    opacity: .7;
    cursor: pointer;
    transition: opacity .2s;
}
.lb-btn:hover { opacity: 1; }
.lb-btn svg { width: 2rem; height: 2rem; }
.lb-prev { left: .75rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .75rem; top: 50%; transform: translateY(-50%); }
.lb-close { top: .75rem; right: .75rem; }
.lb-close svg { width: 1.6rem; height: 1.6rem; }

@media (max-width: 40rem) {
    .lightbox img { max-width: 100vw; }
    .lb-prev, .lb-next { top: auto; bottom: .5rem; transform: none; }
}

@keyframes fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ---------- Tarieven ---------- */
.price-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2.25rem 2.25rem 2rem;
    background: var(--cream);
    border-radius: 3px;
    box-shadow: 0 18px 36px -28px rgba(91, 56, 47, .45);
}
.price-card::before {
    content: "";
    position: absolute;
    inset: .5rem;
    border: 1px solid rgba(206, 131, 110, .35);
    pointer-events: none;
}
.price-card--wide { grid-column: 1 / -1; }
.price-card h2 { font-size: 1.65rem; }
.price {
    margin: .2rem 0 1.1rem;
    font-size: 1.35rem;
    letter-spacing: .03em;
    color: var(--rose-deep);
}
.price-card ul {
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
}
.price-card li {
    position: relative;
    margin-bottom: .45rem;
    padding-left: 1.35rem;
    line-height: 1.5;
}
.price-card li::before {
    content: "";
    position: absolute;
    left: .15rem;
    top: .6em;
    width: .35rem;
    height: .35rem;
    background: var(--rose);
    transform: rotate(45deg);
}
.card-link {
    position: relative;
    z-index: 1;
    margin-top: auto;
    align-self: flex-start;
    font-size: 1rem;
    letter-spacing: .05em;
    color: var(--rose-deep);
    text-decoration: none;
}
.card-link:hover { text-decoration: underline; }

.fine-print {
    margin-top: 2.5rem;
    font-size: 1rem;
    opacity: .85;
}
.fine-print p { margin-bottom: .35em; }

@media (max-width: 46rem) {
    .price-grid { grid-template-columns: 1fr; }
    .price-card { padding: 2rem 1.75rem 1.75rem; }
}

/* ---------- Over mij ---------- */
.about {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: center;
}
.framed {
    position: relative;
    margin: 0 1rem 1rem 0;
}
.framed::before {
    content: "";
    position: absolute;
    inset: 1rem -1rem -1rem 1rem;
    border: 1px solid var(--rose);
}
.framed img {
    position: relative;
    animation: rise 1.2s .2s var(--ease) both;
}

@media (max-width: 48rem) {
    .about { grid-template-columns: 1fr; }
    .framed {
        width: min(100% - 1rem, 26rem);
        margin: 0 auto 1rem;
        translate: -.5rem 0;
    }
}

/* ---------- Contact ---------- */
.form-card {
    margin-top: 2.5rem;
    padding: clamp(1.75rem, 4vw, 2.75rem);
    background: var(--cream);
    border-radius: 3px;
    box-shadow: 0 18px 36px -28px rgba(91, 56, 47, .45);
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem 1.5rem;
}
.field--full { grid-column: 1 / -1; }
.field label {
    display: block;
    margin-bottom: .35rem;
    font-size: 1rem;
    letter-spacing: .05em;
}
.field input,
.field textarea {
    width: 100%;
    padding: .75rem 1rem;
    border: 1px solid rgba(118, 58, 17, .25);
    border-radius: 3px;
    background: #fff;
    color: var(--brown-deep);
    font: inherit;
    font-size: 1.1rem;
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 10rem; resize: vertical; }
.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--rose);
    box-shadow: 0 0 0 3px rgba(206, 131, 110, .25);
}
.form-actions { margin-top: 1.75rem; }

.alert {
    margin-top: 2rem;
    padding: 1rem 1.25rem;
    border-left: 3px solid;
    border-radius: 3px;
    font-size: 1.15rem;
}
.alert--success { background: #e6eee7; border-color: #7d9a83; color: #33503a; }
.alert--error { background: #f8e2e0; border-color: #c46a6a; color: #7a2b2b; }

@media (max-width: 40rem) {
    .form-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
    padding-block: 2.75rem;
    color: #f3e4dd;
    background: var(--brown-dark);
}
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 2rem;
}
.footer-inner .brand img { width: 6.5rem; }
.footer-inner p { margin: 0; font-size: .95rem; }
.footer-inner p a { text-decoration: none; }
.footer-inner p a:hover { color: var(--rose-light); }
.footer-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: .95rem;
}
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--rose-light); }
.footer-links svg { width: 1.2rem; height: 1.2rem; display: block; }

@media (max-width: 40rem) {
    .footer-inner { flex-direction: column; text-align: center; }
}

/* ---------- Scroll reveal ---------- */
.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-delay: 0s !important;
        transition-duration: .01ms !important;
    }
}
