/* ===========================
   In Karton Terug naar de Bron
   =========================== */

:root {
    --sage:          #7B9E87;
    --sage-light:    #A8C4AF;
    --sage-dark:     #3D5C45;
    --sage-pale:     #EBF2EC;
    --cream:         #F2EDE0;
    --cream-dark:    #E0D8C4;
    --charcoal:      #1A1C18;
    --charcoal-mid:  #252822;
    --brown:         #8B6A48;
    --brown-light:   #C4A07A;
    --white:         #FAFAF5;
    --text:          #2A2C27;
    --text-light:    #5C6057;
    --text-muted:    #8C9087;

    --font-display:  'Cormorant Garamond', Georgia, serif;
    --font-body:     'Jost', sans-serif;

    --nav-h:         80px;
    --max-w:         1200px;
    --pad-section:   120px;
    --ease-expo:     cubic-bezier(0.16, 1, 0.3, 1);
    --ease-std:      cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    font-weight: 300;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.15;
}

/* Container */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 40px;
}

/* Section headers */
.section-label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(40px, 5.5vw, 68px);
    font-weight: 300;
    color: var(--charcoal);
    margin-bottom: 56px;
    line-height: 1.08;
}

.section-title em {
    font-style: italic;
    color: var(--sage-dark);
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.85s var(--ease-expo), transform 0.85s var(--ease-expo);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================
   NAVIGATION
   ======================== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 1000;
    transition: background 0.4s var(--ease-std), backdrop-filter 0.4s;
}

.nav.scrolled {
    background: rgba(26, 28, 24, 0.96);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.04);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 40px;
    max-width: var(--max-w);
    margin: 0 auto;
}

.nav__logo {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.nav__logo-text {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 500;
    color: var(--white);
    letter-spacing: 0.02em;
}

.nav__logo-sub {
    font-size: 9.5px;
    font-weight: 400;
    color: var(--sage-light);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.nav__links {
    display: flex;
    list-style: none;
    gap: 34px;
    align-items: center;
}

.nav__link {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    transition: color 0.3s;
}

.nav__link:hover { color: var(--white); }

.nav__link--cta {
    border: 1px solid rgba(255,255,255,0.28);
    padding: 10px 22px;
    color: var(--white);
    border-radius: 2px;
    transition: background 0.3s, border-color 0.3s;
}

.nav__link--cta:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(255,255,255,0.55);
    color: var(--white);
}

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

.nav__toggle span {
    display: block;
    width: 26px;
    height: 1.5px;
    background: var(--white);
    transition: transform 0.3s, opacity 0.3s;
    transform-origin: center;
}

/* ========================
   HERO
   ======================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 680px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--charcoal);
    color: var(--white);
}

.hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 18% 75%, rgba(61, 92, 69, 0.35) 0%, transparent 50%),
        radial-gradient(ellipse at 82% 22%, rgba(61, 92, 69, 0.20) 0%, transparent 50%),
        linear-gradient(to bottom, rgba(30, 34, 28, 0.45) 0%, rgba(30, 34, 28, 0.30) 60%, rgba(30, 34, 28, 0.55) 100%),
        url('../img/kartonnen-binnenkist-in-houten-kist.png') center center / cover no-repeat;
    background-color: var(--charcoal);
}

.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
    opacity: 0.5;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 40px;
    max-width: 920px;
}

.hero__label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--sage-light);
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeUp 0.9s var(--ease-expo) 0.3s forwards;
}

.hero__title {
    font-size: clamp(54px, 10vw, 116px);
    font-weight: 300;
    line-height: 1.0;
    color: var(--white);
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero__title span {
    display: block;
    opacity: 0;
}

.hero__title span:nth-child(1) { animation: fadeUp 0.9s var(--ease-expo) 0.42s forwards; }

.hero__title em {
    display: block;
    font-style: italic;
    color: var(--sage-light);
    opacity: 0;
    animation: fadeUp 0.9s var(--ease-expo) 0.54s forwards;
}

.hero__title span:nth-child(3) { animation: fadeUp 0.9s var(--ease-expo) 0.66s forwards; }

.hero__tagline {
    font-size: clamp(15px, 2vw, 19px);
    font-weight: 300;
    color: rgba(255,255,255,0.52);
    line-height: 1.8;
    margin-bottom: 52px;
    opacity: 0;
    animation: fadeUp 0.9s var(--ease-expo) 0.78s forwards;
}

.hero__cta {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.35);
    padding: 17px 40px;
    border-radius: 2px;
    transition: background 0.4s, border-color 0.4s;
    opacity: 0;
    animation: fadeUp 0.9s var(--ease-expo) 0.9s forwards;
}

.hero__cta:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.65);
}

.hero__scroll {
    position: absolute;
    bottom: 38px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 2;
    opacity: 0;
    animation: fadeIn 1s ease 1.5s forwards;
}

.hero__scroll span {
    font-size: 9.5px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
}

.hero__scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.28), transparent);
    animation: scrollPulse 2.8s ease-in-out infinite;
}

.hero__deco {
    position: absolute;
    z-index: 1;
    color: var(--sage);
    pointer-events: none;
}

.hero__deco--r {
    right: 4%;
    top: 50%;
    transform: translateY(-50%);
    width: 110px;
    opacity: 0.55;
    animation: fadeIn 2s ease 1.2s both;
}

.hero__deco--l {
    left: 2.5%;
    bottom: 18%;
    width: 72px;
    opacity: 0.35;
    transform: rotate(18deg);
    animation: fadeIn 2s ease 1.4s both;
}

/* ========================
   CONCEPT
   ======================== */
.concept {
    padding: var(--pad-section) 0;
    background: var(--white);
}

.concept__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.concept__text p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.85;
    margin-bottom: 22px;
}

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

.concept__lead {
    font-family: var(--font-display);
    font-size: 23px !important;
    font-weight: 400;
    color: var(--charcoal) !important;
    line-height: 1.45 !important;
    margin-bottom: 28px !important;
}

.concept__visual {
    display: flex;
    justify-content: center;
}

/* Coffin diagram */
.diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 320px;
    gap: 0;
}

.diagram__label {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
    align-self: flex-start;
    padding-left: 4px;
}

.diagram__outer {
    width: 100%;
    border: 2px solid var(--brown);
    border-radius: 10px 10px 4px 4px;
    padding: 20px;
    background: linear-gradient(140deg, rgba(196,160,122,0.12), rgba(139,106,72,0.06));
    position: relative;
}

.diagram__outer .diagram__label { color: var(--brown); }

.diagram__inner {
    width: 100%;
    border: 1.5px dashed var(--sage);
    border-radius: 4px;
    padding: 22px 16px;
    background: rgba(123, 158, 135, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.diagram__inner .diagram__label {
    color: var(--sage-dark);
    align-self: flex-start;
    margin-bottom: 10px;
}

.diagram__inner-content {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--sage-dark);
    font-style: italic;
    text-align: center;
}

.diagram__arrow {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--text-muted), var(--brown-light));
    position: relative;
    margin: 6px 0;
}

.diagram__arrow::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--brown-light);
    border-bottom: none;
}

.diagram__arrow-text {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

.diagram__earth {
    width: 100%;
    border-radius: 4px 4px 10px 10px;
    overflow: hidden;
    border: 2px solid #7A6248;
}

.diagram__earth-top {
    height: 14px;
    background: linear-gradient(to bottom, #C4A87A, #9B7A58);
}

.diagram__earth-body {
    padding: 22px 20px 18px;
    background: linear-gradient(to bottom, #7A5A40 0%, #5A4030 60%, #4A3025 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.diagram__cardboard {
    border: 1.5px dashed rgba(255,255,255,0.4);
    border-radius: 4px;
    padding: 14px 28px;
    text-align: center;
    color: var(--white);
    background: rgba(0,0,0,0.12);
    width: 100%;
}

.diagram__cardboard-title {
    font-family: var(--font-display);
    font-size: 17px;
    margin-bottom: 3px;
    font-style: italic;
}

.diagram__cardboard-sub {
    font-size: 10px;
    letter-spacing: 0.08em;
    opacity: 0.65;
}

.diagram__earth-label {
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.38);
    text-align: center;
    padding: 8px;
    background: rgba(0,0,0,0.12);
}

/* ========================
   HOW IT WORKS
   ======================== */
.how {
    padding: var(--pad-section) 0;
    background: var(--charcoal-mid);
    color: var(--white);
}

.how .section-label { color: var(--sage-light); }
.how .section-title { color: var(--white); }
.how .section-title em { color: var(--sage-light); }

.how__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 56px;
}

.how__step-num {
    font-family: var(--font-display);
    font-size: 90px;
    font-weight: 300;
    color: rgba(255,255,255,0.05);
    line-height: 1;
    margin-bottom: -32px;
    letter-spacing: -0.02em;
}

.how__step-body { position: relative; z-index: 1; }

.how__step-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 22px;
    color: var(--sage-light);
}

.how__step-icon svg { width: 100%; height: 100%; }

.how__step-body h3 {
    font-size: 26px;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 14px;
    line-height: 1.3;
}

.how__step-body p {
    font-size: 14.5px;
    color: rgba(255,255,255,0.5);
    line-height: 1.85;
}

.how__divider {
    display: none;
}

/* ========================
   SUSTAINABILITY
   ======================== */
.sustain {
    padding: var(--pad-section) 0;
    background: var(--cream);
}

.sustain__intro {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--text-light);
    max-width: 680px;
    line-height: 1.65;
    margin-bottom: 72px;
    font-weight: 400;
}

.sustain__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 44px 56px;
}

.sustain__item {
    border-top: 1px solid var(--cream-dark);
    padding-top: 30px;
}

.sustain__icon {
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    color: var(--sage-dark);
}

.sustain__icon svg { width: 100%; height: 100%; }

.sustain__item h3 {
    font-size: 20px;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 10px;
    line-height: 1.3;
}

.sustain__item p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.75;
}

/* ========================
   ABOUT
   ======================== */
.about {
    padding: var(--pad-section) 0;
    background: var(--charcoal);
    color: var(--white);
}

.about .section-label { color: var(--sage-light); }
.about .section-title { color: var(--white); }
.about .section-title em { color: var(--sage-light); }

.about__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: start;
}

.about__lead {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 400;
    color: var(--white);
    line-height: 1.55;
    margin-bottom: 26px;
}

.about__text p {
    color: rgba(255,255,255,0.5);
    line-height: 1.85;
    font-size: 15px;
}

.about__founders {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about__founder {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 4px;
    background: rgba(255,255,255,0.02);
    transition: background 0.3s;
}

.about__founder:hover { background: rgba(255,255,255,0.04); }

.about__avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--sage-dark);
    border: 1px solid rgba(123,158,135,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about__initials {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 400;
    color: var(--white);
    letter-spacing: 0.05em;
}

.about__founder-info h3 {
    font-size: 22px;
    color: var(--white);
    margin-bottom: 3px;
}

.about__founder-info span {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sage-light);
}

.about__location {
    display: flex;
    align-items: center;
    gap: 9px;
    color: rgba(255,255,255,0.35);
    font-size: 13.5px;
    letter-spacing: 0.04em;
    padding-top: 4px;
}

.about__location svg { flex-shrink: 0; }

/* ========================
   CONTACT
   ======================== */
.contact-section {
    padding: var(--pad-section) 0;
    background: var(--sage-pale);
}

.contact-section .section-label { color: var(--sage-dark); }

.contact__intro {
    font-size: 17px;
    color: var(--text-light);
    max-width: 560px;
    margin-bottom: 60px;
    line-height: 1.75;
}

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

/* Form */
.form__group { margin-bottom: 26px; }

.form__label {
    display: block;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sage-dark);
    margin-bottom: 9px;
}

.form__opt {
    font-weight: 300;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-muted);
}

.form__input,
.form__textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--white);
    border: 1px solid var(--cream-dark);
    border-radius: 2px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 300;
    color: var(--text);
    outline: none;
    appearance: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form__input::placeholder,
.form__textarea::placeholder { color: var(--text-muted); }

.form__input:focus,
.form__textarea:focus {
    border-color: var(--sage);
    box-shadow: 0 0 0 3px rgba(123, 158, 135, 0.14);
}

.form__textarea {
    height: 148px;
    resize: vertical;
    line-height: 1.65;
}

.form__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.form__btn {
    width: 100%;
    padding: 17px 28px;
    background: var(--sage-dark);
    color: var(--white);
    border: none;
    border-radius: 2px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.form__btn:hover { background: var(--charcoal); transform: translateY(-1px); }
.form__btn:active { transform: translateY(0); }
.form__btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.form__msg {
    margin-top: 14px;
    padding: 13px 16px;
    border-radius: 2px;
    font-size: 14px;
    display: none;
}

.form__msg.ok {
    background: rgba(61, 92, 69, 0.1);
    border: 1px solid rgba(61, 92, 69, 0.35);
    color: var(--sage-dark);
    display: block;
}

.form__msg.err {
    background: rgba(160, 60, 50, 0.07);
    border: 1px solid rgba(160, 60, 50, 0.25);
    color: #7A3535;
    display: block;
}

/* Contact info */
.contact__sidebar { padding-top: 10px; }

.contact__info-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 22px 0;
    border-bottom: 1px solid var(--cream-dark);
}

.contact__info-row:first-child { border-top: 1px solid var(--cream-dark); }

.contact__info-icon {
    color: var(--sage);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact__info-row strong {
    display: block;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sage-dark);
    margin-bottom: 4px;
}

.contact__info-row p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

.contact__quote {
    margin-top: 40px;
    padding-left: 22px;
    border-left: 2px solid var(--sage);
}

.contact__quote blockquote {
    font-family: var(--font-display);
    font-size: 21px;
    font-style: italic;
    font-weight: 400;
    color: var(--charcoal);
    line-height: 1.55;
}

/* ========================
   FOOTER
   ======================== */
.footer {
    background: var(--charcoal);
    color: rgba(255,255,255,0.35);
    padding: 48px 0;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 40px;
}

.footer__brand-name {
    font-family: var(--font-display);
    font-size: 18px;
    color: rgba(255,255,255,0.65);
    margin-bottom: 4px;
}

.footer__brand-loc { font-size: 12px; letter-spacing: 0.06em; }

.footer__links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer__links a {
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    transition: color 0.3s;
}

.footer__links a:hover { color: rgba(255,255,255,0.65); }

.footer__copy {
    text-align: right;
    font-size: 12px;
    line-height: 1.6;
}

/* ========================
   ANIMATIONS
   ======================== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes scrollPulse {
    0%, 100% { opacity: 0.28; transform: scaleY(0.95); }
    50%       { opacity: 0.65; transform: scaleY(1.05); }
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 1024px) {
    :root { --pad-section: 88px; }

    .container { padding: 0 28px; }

    .concept__grid,
    .about__grid,
    .contact__grid { grid-template-columns: 1fr; gap: 48px; }

    .how__steps { grid-template-columns: 1fr; gap: 40px; }

    .sustain__grid { grid-template-columns: repeat(2, 1fr); gap: 36px 40px; }

    .footer__inner { grid-template-columns: 1fr; text-align: center; gap: 24px; }
    .footer__copy { text-align: center; }
}

@media (max-width: 768px) {
    :root { --pad-section: 68px; --nav-h: 66px; }

    .container { padding: 0 20px; }
    .nav__inner { padding: 0 20px; }

    .nav__links {
        display: none;
        position: fixed;
        inset: var(--nav-h) 0 0 0;
        background: rgba(22, 24, 20, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 28px;
        backdrop-filter: blur(20px);
    }

    .nav__links.open { display: flex; }
    .nav__link { font-size: 15px; }
    .nav__toggle { display: flex; }

    .hero__deco { display: none; }
    .hero__title { font-size: clamp(46px, 14vw, 68px); }

    .section-title { font-size: clamp(34px, 10vw, 52px); margin-bottom: 36px; }

    .concept__visual { order: -1; }
    .diagram { max-width: 270px; }

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

    .about__grid { gap: 40px; }

    .contact__grid { gap: 40px; }
}

@media (max-width: 480px) {
    :root { --pad-section: 52px; }
    .hero__content { padding: 0 16px; }
    .hero__cta { padding: 15px 30px; }
}