/* ==========================================================
   Lieve Briefjes Studio
   Kleuren: naturel katoen, rood garen, donker hout
   ========================================================== */

:root {
  --linnen: #f5efe5;        /* paginakleur */
  --katoen: #ebe2d3;        /* vlakken, zoals het borduurdoek */
  --papier: #fbf8f2;        /* passe-partout / kaarten */
  --garen: #c72a32;         /* rood borduurgaren */
  --garen-donker: #a11f27;
  --hout: #3f2c21;          /* donkere lijst */
  --inkt: #2e2420;          /* tekst */
  --zacht: #6b5c52;         /* secundaire tekst */
  --lijn: #ddd2c1;

  --font-kop: "Gloock", Georgia, serif;
  --font-tekst: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Shantell Sans", "Segoe Print", cursive;   /* altijd schuin en licht, zie .eyebrow e.a. */

  --radius: 18px;
  --schaduw: 0 1px 2px rgba(63, 44, 33, .06), 0 12px 32px -12px rgba(63, 44, 33, .22);

  /* rij rode steekjes, gebruikt als borduur-lijn */
  --steekjes: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='6'%3E%3Cline x1='2' y1='3' x2='10' y2='3' stroke='%23c72a32' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");

  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--linnen);
  color: var(--inkt);
  font-family: var(--font-tekst);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--garen); text-underline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-kop);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--inkt); color: var(--papier);
  padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px dashed var(--garen); outline-offset: 3px; }

.eyebrow {
  font-family: var(--font-hand);
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--garen);
  margin-bottom: .5rem;
}

.hand-note {
  font-family: var(--font-hand);
  color: var(--garen);
  font-size: 1.1rem;
  line-height: 1.35;
}

/* ---------- knoppen ---------- */

/* fijne lijn: rechte hoeken, dun randje, tekst in de kopletter */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em;
  padding: .85em 1.5em;
  border: 1.5px solid var(--garen);
  background: var(--garen);
  color: #fff;
  font: 400 1.08rem/1.2 var(--font-kop);
  letter-spacing: .01em;
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}
.btn:not(.btn-ghost)::after { content: "→"; transition: transform .2s; }
.btn:hover { background: var(--garen-donker); border-color: var(--garen-donker); }
.btn:hover::after { transform: translateX(3px); }

.btn-ghost { background: transparent; color: var(--garen); }
.btn-ghost:hover { background: var(--garen); border-color: var(--garen); color: #fff; }

.btn-small { padding: .55em 1.1em; font-size: .98rem; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 239, 229, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--lijn); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo {
  display: inline-flex; align-items: center; gap: .55rem;
  color: var(--inkt); text-decoration: none;
  font-family: var(--font-kop); font-size: 1.3rem; letter-spacing: -.01em;
  margin: 0;
}
.logo em { font-style: normal; color: var(--garen); }

/* logo: met de pen getekende envelop met een hartje als zegel op de klep */
.logo-mark { width: 34px; height: 34px; flex: none; overflow: visible; }
.env-stitch {
  fill: none; stroke: var(--garen); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: miter;
}
.env-seal { fill: var(--garen); stroke: var(--linnen); stroke-width: 5; }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a:not(.btn) {
  color: var(--inkt); text-decoration: none; font-weight: 500; font-size: .98rem;
  padding-block: 4px;
  background: var(--steekjes) left bottom / 16px 6px repeat-x;
  background-size: 0 6px;
  transition: background-size .35s ease;
}
.site-nav a:not(.btn):hover { background-size: 16px 6px; }

.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav-toggle {
    display: grid; place-items: center;
    width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
    border-radius: 10px;
  }
  .nav-toggle-bar,
  .nav-toggle-bar::before,
  .nav-toggle-bar::after {
    display: block; width: 22px; height: 2px; border-radius: 2px;
    background: var(--inkt); position: relative; transition: transform .25s, background .25s;
  }
  .nav-toggle-bar::before,
  .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -7px; }
  .nav-toggle-bar::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--linnen); border-bottom: 1px solid var(--lijn);
    padding: 8px 16px 20px;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--lijn); background: none; }
  .site-nav .btn { margin-top: 16px; align-self: flex-start; }
}

/* ---------- hero ---------- */

.hero { padding: clamp(32px, 6vw, 80px) 0 clamp(56px, 8vw, 110px); }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.lead { font-size: 1.18rem; color: var(--zacht); max-width: 34em; }

/* "voor altijd": de letters zelf opgebouwd uit steekjes langs de omtrek */
.stitched { white-space: nowrap; }
.stitched svg {
  display: inline-block;
  width: 4.66em; height: 1.25em;   /* tekstbreedte van Gloock bij font-size 100 */
  vertical-align: -.25em;
  overflow: visible;
}
.stitched text {
  font-family: var(--font-kop);
  font-size: 100px;
  fill: none;
  stroke: var(--garen); stroke-width: 3.6;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 7.5 4.5;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-image { margin: 0; position: relative; }
.hero-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--schaduw);
}
.hero-image figcaption {
  position: absolute; right: 18px; bottom: -18px;
  background: var(--papier);
  padding: 8px 16px; border-radius: 12px;
  box-shadow: var(--schaduw);
  transform: rotate(-2deg);
  font-size: .95rem;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image img { aspect-ratio: 4 / 3; }
}

/* ---------- waarom ---------- */

.why {
  background: var(--katoen);
  padding: clamp(64px, 9vw, 120px) 0;
  text-align: center;
}
.why-inner {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  max-width: 1020px;
  text-align: left;
}
.why-image { margin: 0; }
.why-image img { width: 100%; border-radius: var(--radius); box-shadow: var(--schaduw); }
.why-mark { width: 64px; height: 64px; margin: 0 0 14px -6px; display: block; }

@media (max-width: 799px) {
  .why-inner { grid-template-columns: 1fr; text-align: center; }
  .why-image { order: 2; width: min(420px, 100%); margin-inline: auto; }
  .why-mark { margin: 0 auto 14px; }
}
.why .env-seal { stroke: var(--katoen); }
.why-quote {
  font-family: var(--font-kop);
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  line-height: 1.25;
  margin-bottom: .9em;
}
.why p:last-child { color: var(--zacht); font-size: 1.12rem; margin: 0; }

/* ---------- secties algemeen ---------- */

.work,
.steps-section,
.tips,
.faq { padding: clamp(64px, 9vw, 120px) 0; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(36px, 5vw, 56px); }
.section-head p:last-child:not(.eyebrow) { color: var(--zacht); }

/* ---------- werk ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 32px);
}

.work-card {
  background: var(--papier);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--schaduw);
  display: flex; flex-direction: column;
}
.work-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform .6s ease; }
.work-card:hover img { transform: scale(1.03); }
.work-card-body { padding: 22px 24px 26px; }
.work-card-body p { color: var(--zacht); margin: 0; font-size: 1rem; }

.gift-line {
  text-align: center; margin: clamp(36px, 5vw, 56px) auto 0;
  color: var(--zacht); font-size: 1.08rem;
}
.gift-line span { font-family: var(--font-hand); color: var(--garen); font-size: 1.08rem; }

@media (max-width: 860px) {
  .work-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
}

/* ---------- stappen ---------- */

.steps-section { background: var(--papier); }

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
  position: relative;
}
/* doorlopende borduurlijn achter de nummers */
.steps::before {
  content: ""; position: absolute; top: 27px; left: 12%; right: 12%; height: 6px;
  background: var(--steekjes) left center / 16px 6px repeat-x;
  opacity: .45;
}
.steps li { text-align: center; position: relative; }
.step-num {
  display: grid; place-items: center;
  width: 60px; height: 60px; margin: 0 auto 18px;
  border-radius: 50%;
  border: 2.5px dashed var(--garen);
  background: var(--papier);
  color: var(--garen);
  font-family: var(--font-hand); font-size: 1.55rem; line-height: 1;
  position: relative;
}
.steps p { color: var(--zacht); font-size: 1rem; margin: 0; }
.steps .step-tip { margin-top: .6em; font-size: .92rem; font-style: italic; color: var(--garen); }

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .steps::before { display: none; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .steps li { text-align: left; display: grid; grid-template-columns: 60px 1fr; column-gap: 18px; }
  .step-num { margin: 0; grid-row: span 2; }
  .steps h3 { margin-top: 12px; margin-bottom: .25em; }
  .steps .step-tip { grid-column: 2; }
}

/* ---------- fototips ---------- */

.tips-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 32px);
  max-width: 900px; margin: 0 auto;
}
/* tips als losse briefjes, met een stukje tape erop */
.tip-card {
  position: relative;
  background: var(--papier);
  border-radius: 4px;
  padding: 38px 34px 30px;
  box-shadow: 0 1px 2px rgba(63, 44, 33, .08), 0 10px 24px -14px rgba(63, 44, 33, .3);
  rotate: -1deg;
}
.tip-card + .tip-card { rotate: 1.2deg; }
.tip-card::before {
  content: ""; position: absolute; top: -12px; left: 50%;
  width: 96px; height: 26px; margin-left: -48px;
  background: rgba(221, 205, 182, .75);
  rotate: -3deg;
}
.tip-card + .tip-card::before { rotate: 4deg; }
.tip-card h3 {
  font-family: var(--font-hand); font-size: 1.3rem;
  color: var(--garen); line-height: 1.25;
}
.tip-card p { color: var(--zacht); margin: 0 0 .8em; }
.tip-card p:last-child { margin: 0; }

.tips-note { max-width: 620px; margin: 48px auto 0; text-align: center; color: var(--zacht); }
.tips-note p { margin: 0; }

@media (max-width: 700px) {
  .tips-grid { grid-template-columns: 1fr; row-gap: 36px; }
  .tip-card { padding: 34px 24px 26px; }
}

/* ---------- prijs ---------- */

.price-section { padding: 0 0 clamp(64px, 9vw, 120px); }

.price-card {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  background: var(--hout); color: var(--papier);
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  box-shadow: var(--schaduw);
}
.price-main {
  padding: clamp(32px, 5vw, 56px);
  /* passe-partout randje */
  box-shadow: inset 0 0 0 10px var(--hout), inset 0 0 0 12px rgba(251, 248, 242, .18);
}
.price {
  font-family: var(--font-kop); font-size: clamp(2.8rem, 5vw, 3.6rem); line-height: 1;
  margin: .2em 0 .8em;
}
.price span { display: block; font-family: var(--font-tekst); font-size: .95rem; color: rgba(251, 248, 242, .7); margin-top: 10px; }

.price-list {
  list-style: none; margin: 0;
  padding: clamp(32px, 5vw, 56px);
  background: rgba(251, 248, 242, .05);
  display: grid; align-content: center; gap: 18px;
}
.price-list li { color: rgba(251, 248, 242, .82); padding-bottom: 18px; border-bottom: 1px dashed rgba(251, 248, 242, .2); }
.price-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.price-list strong { display: block; color: var(--papier); font-weight: 600; }

@media (max-width: 760px) {
  .price-card { grid-template-columns: 1fr; }
}

/* ---------- vragen ---------- */

.faq { background: var(--katoen); }

.faq details {
  background: var(--papier);
  border-radius: 14px;
  margin-bottom: 12px;
  border: 1px solid transparent;
  transition: border-color .2s;
}
.faq details[open] { border-color: var(--lijn); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 20px 56px 20px 24px;
  font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-tekst); font-size: 1.7rem; font-weight: 400; color: var(--garen); line-height: 1;
  transition: transform .25s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 24px 22px; margin: 0; color: var(--zacht); }

/* ---------- bestellen ---------- */

.order {
  padding: clamp(72px, 10vw, 130px) 0;
  text-align: center;
}
.order p { color: var(--zacht); font-size: 1.12rem; }
.order .hand-note-large { font-size: 1.4rem; color: var(--garen); margin-bottom: .3em; }

/* handschrift-accent: Shantell Sans altijd schuin en licht */
.eyebrow, .hand-note, .gift-line span, .step-num, .tip-card h3 {
  font-style: italic; font-weight: 300;
}
.order-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 28px 0 18px; }
.order .order-mail { font-size: .95rem; margin: 0; }
.order .order-mail + .order-mail { margin-top: 4px; }
.order-mail a { color: inherit; }
.order .order-sign {
  margin: 36px 0 0;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 1.4rem; color: var(--garen);
}
.order-sign .logo-mark { width: 30px; height: 30px; }

/* ---------- footer ---------- */

.site-footer { background: var(--hout); color: rgba(251, 248, 242, .75); padding: 56px 0 28px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.logo-footer { color: var(--papier); }
.logo-footer .env-seal { stroke: var(--hout); }
.footer-tag { margin: 10px 0 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; }
.footer-nav a { color: var(--papier); text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-bottom {
  margin-top: 40px; padding-top: 20px;
  border-top: 1px dashed rgba(251, 248, 242, .2);
  font-size: .9rem;
}
.footer-bottom p { margin: 0; }

/* ---------- subtiel inschuiven ---------- */

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .work-card img, .btn { transition: none; }
}
