/* ============================================================
   Eline Nauta — Homepage
   Warm, personal, grounded. Cream paper + single teal accent.
   ============================================================ */

:root {
  /* Color */
  --cream:        #F5EFE6;
  --cream-soft:   #FBF7F0;
  --teal:         #3D7068;
  --teal-dark:    #2D5C55;
  --teal-deep:    #274f49;
  --sage:         #EAF0EE;
  --sage-strip:   #EEF3F0;
  --sage-icon:    #D6E4DF;
  --ink:          #1C1C1C;
  --body:         #3D3D3D;
  --muted:        #5E6B66;
  --border:       #E2DAD0;
  --botanical:    #6BA89F;
  --white:        #FFFFFF;

  /* Type */
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Rhythm */
  --wrap: 1200px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
  --radius-card: 20px;
  --radius-pill: 999px;

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-soft: 0 18px 40px -24px rgba(45, 92, 85, 0.35);

  /* Z-scale */
  --z-header: 100;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem; top: -3rem;
  background: var(--teal);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  z-index: 200;
  transition: top 0.2s var(--ease-out-expo);
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2.5px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand__mark {
  width: 40px; height: 40px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 2px 8px -3px rgba(45,92,85,0.4);
}
.brand__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.nav { display: flex; gap: clamp(1.2rem, 3vw, 2.2rem); }
.nav__link {
  position: relative;
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--ink);
  padding: 0.3rem 0;
  transition: color 0.2s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out-expo);
}
.nav__link:hover { color: var(--teal); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--teal); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.6rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.3s var(--ease-out-expo),
              transform 0.3s var(--ease-out-expo),
              box-shadow 0.3s var(--ease-out-expo);
}
.btn--primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 10px 24px -14px rgba(45,92,85,0.9);
}
.btn--primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -14px rgba(45,92,85,0.95);
}
.btn__arrow { transition: transform 0.3s var(--ease-out-expo); }
.btn--primary:hover .btn__arrow { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(600px, 82vh, 880px);
  padding-block: clamp(2rem, 5vw, 3.5rem);
  overflow: hidden;
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero__content { position: relative; max-width: 520px; }
.hero__title {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-size: clamp(2.7rem, 6.4vw, 4.25rem);
  text-wrap: balance;
  margin-bottom: 1.4rem;
}
.hero__title-1, .hero__title-2 { display: block; }
.hero__title-1 { color: var(--ink); }
.hero__title-2 { color: var(--teal); }

.hero__lead {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 1.1rem;
  max-width: 30ch;
  text-wrap: balance;
}
.hero__body {
  font-size: 1.02rem;
  color: var(--body);
  max-width: 42ch;
  margin-bottom: 2rem;
}

.hero__botanical {
  position: absolute;
  left: clamp(28%, 33vw, 42%);
  bottom: clamp(1rem, 5vh, 3.5rem);
  width: clamp(130px, 14vw, 195px);
  opacity: 0.6;
  pointer-events: none;
  z-index: 1;
}
.hero__botanical .leaf,
.hero__botanical .stem,
.hero__botanical .vein {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: draw 2.4s var(--ease-out-expo) forwards;
}
.hero__botanical .stem { animation-delay: 0.4s; }
.hero__botanical .vein { animation-delay: 1.1s; opacity: 0.7; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Portrait — full-bleed to the right viewport edge */
.hero__portrait {
  position: absolute;
  top: 0;
  bottom: 0;
  right: clamp(-9rem, -5.5vw, -3.5rem);
  display: flex;
  align-items: center;
  z-index: 1;
  pointer-events: none;
}
.hero__portrait img {
  height: 108%;
  width: auto;
  max-width: none;
  filter: drop-shadow(0 30px 50px rgba(45, 92, 85, 0.18));
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- Drie-kaartsectie ---------- */
.cards {
  background: var(--sage-strip);
  padding-block: clamp(2.75rem, 5vw, 4rem);
  border-radius: 28px;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  width: calc(100% - 2 * var(--gutter));
  margin-block: clamp(1rem, 3vw, 2rem);
}
@media (max-width: 640px) { .cards { border-radius: 20px; } }
.cards__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}
.card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding-inline: clamp(0.5rem, 2vw, 1.5rem);
}
.card__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.28rem;
  color: var(--ink);
}
.card__body {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 30ch;
}

/* ---------- Icon (designed assets) ---------- */
.icon-img {
  width: 64px; height: 64px;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-out-expo);
}
.card:hover .icon-img { transform: translateY(-3px) scale(1.03); }
.icon-img--sm { width: 48px; height: 48px; }
.icon-img--lg { width: 76px; height: 76px; }

/* ---------- Split: Mijn werk / Persoonlijk pad ---------- */
.split { padding-block: var(--section-y); }
.split__grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.split__divider { background: var(--border); align-self: stretch; }
.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  color: var(--teal);
  margin-bottom: 1rem;
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 34px; height: 2px;
  background: var(--teal);
  margin-top: 0.7rem;
}
.split__lead { color: var(--body); max-width: 44ch; margin-bottom: 1.8rem; }

/* Client logos */
.clients {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 1.6rem) clamp(1.2rem, 3vw, 2rem);
}
.clients__item { display: flex; align-items: center; }
.client-logo {
  height: 42px;
  width: auto;
  filter: saturate(0.92);
  opacity: 0.9;
  transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s var(--ease-out-expo);
}
.clients__item:hover .client-logo { opacity: 1; filter: saturate(1); transform: translateY(-2px); }

/* Persoonlijk pad list */
.path { display: flex; flex-direction: column; gap: 1.1rem; margin-bottom: 1.8rem; }
.path__item {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.path__text { font-size: 1.02rem; color: var(--ink); font-weight: 500; }
.split__closing {
  font-family: var(--serif);
  font-style: italic;
  color: var(--teal);
  font-size: 1.05rem;
  line-height: 1.5;
  max-width: 40ch;
}

/* ---------- In ontwikkeling ---------- */
.dev { padding-bottom: var(--section-y); }
.dev__card {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(1.3rem, 3vw, 2.2rem);
  background: linear-gradient(100deg, #E5EEE9 0%, #DDE9E3 55%, #D3E1DA 100%);
  border: 1px solid #DCE7E1;
  border-radius: var(--radius-card);
  padding: clamp(1.6rem, 3.4vw, 2.6rem) clamp(1.6rem, 3.4vw, 2.6rem);
  overflow: hidden;
  min-height: 190px;
  isolation: isolate;
}
.dev__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(76px, 8vw, 96px);
  height: clamp(76px, 8vw, 96px);
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 10px 24px -14px rgba(39, 79, 73, 0.45);
  flex-shrink: 0;
}
.dev__icon img { width: 52px; height: 52px; }
.dev__text { position: relative; z-index: 1; max-width: 44ch; }
.dev__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 1.7rem);
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.dev__body { color: var(--body); }
.dev__photo {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 44%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 55%;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 28%);
          mask-image: linear-gradient(to right, transparent 0%, #000 28%);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--teal-dark);
  color: rgba(255,255,255,0.82);
  padding-top: clamp(3rem, 5vw, 4rem);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: 2.5rem;
}
.footer__mark {
  width: 44px; height: 44px;
  border-radius: 9px;
  margin-bottom: 1rem;
}
.footer__tagline { font-size: 0.9rem; line-height: 1.6; color: rgba(255,255,255,0.8); margin-bottom: 1.3rem; }
.footer__tagline em { font-style: italic; }
.footer__social { display: flex; gap: 0.7rem; }
.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.28);
  color: var(--white);
  transition: background 0.3s var(--ease-out-expo), transform 0.3s var(--ease-out-expo), border-color 0.3s ease;
}
.social:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.5); transform: translateY(-2px); }

.footer__col { display: flex; flex-direction: column; }
.footer__heading {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}
.footer__link {
  font-size: 0.94rem;
  color: rgba(255,255,255,0.78);
  padding: 0.32rem 0;
  transition: color 0.2s ease;
  width: fit-content;
}
.footer__link:hover { color: var(--white); }
.footer__link--icon { display: inline-flex; align-items: center; gap: 0.55rem; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-block: 1.3rem;
}
.footer__bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  text-align: center;
}

/* ============================================================
   Reveal animation (enhances already-visible default)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
  }
  [data-reveal="delay"]  { transition-delay: 0.12s; }
  [data-reveal="delay2"] { transition-delay: 0.24s; }
  [data-reveal].is-visible { opacity: 1; transform: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    min-height: 0;
    padding-top: 1.5rem;
    overflow: visible;
  }
  .hero__portrait {
    position: static;
    transform: none;
    order: -1;
    width: min(86%, 400px);
    margin: 0 auto 2rem;
    display: block;
  }
  .hero__portrait img { height: auto; width: 100%; animation: none; }
  .hero__content { max-width: none; }
  .hero__botanical { display: none; }
  .split__grid { grid-template-columns: 1fr; }
  .split__divider { display: none; }
  .split__col:first-child { padding-bottom: 2.5rem; border-bottom: 1px solid var(--border); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .cards__grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .card { max-width: 34ch; margin-inline: auto; }
  .dev__photo { display: none; }
  .dev__text { max-width: none; }
}

@media (max-width: 460px) {
  .footer__grid { grid-template-columns: 1fr; }
  .brand__name { font-size: 1.05rem; }
  .header-inner { min-height: 66px; }
}
