/* Sections added from the brief: portfolio gallery, Why Arjan and the quote form. */
section[id]:not(.hero) { scroll-margin-top: 96px; }

/* ===== Portfolio gallery ===== */
.gallery { padding: 20px 0 76px; text-align: center; scroll-margin-top: 110px; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 34px; }
.filters button { height: 44px; padding: 0 22px; border-radius: 99px; border: 1.5px solid rgba(116, 34, 184, .35); background: rgba(255, 255, 255, .7); color: var(--ink); font: 500 13.5px Alexandria, "Segoe UI", Tahoma, sans-serif; cursor: pointer; transition: background .25s, color .25s, border-color .25s, box-shadow .25s; }
.filters button:hover { border-color: var(--violet); }
.filters button[aria-pressed="true"] { border-color: transparent; color: #fff; background: linear-gradient(90deg, #a52fd0, #641aa6); box-shadow: 0 8px 20px rgba(122, 34, 184, .3); }
.works-grid { display: grid; grid-template-columns: repeat(3, 336px); justify-content: center; gap: 25px; }
.work { position: relative; height: 238px; overflow: hidden; border-radius: 22px; border: 5px solid #fff; background: #2b0a48; box-shadow: 0 14px 30px rgba(70, 20, 120, .18); text-align: right; }
.work[hidden] { display: none; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.work:hover img { transform: scale(1.07); }
.work figcaption { position: absolute; right: 0; left: 0; bottom: 0; padding: 42px 18px 13px; color: #fff; background: linear-gradient(transparent, rgba(30, 5, 52, .94)); }
.work figcaption b { display: block; font-size: 15px; font-weight: 600; line-height: 1.8; }
.work figcaption small { display: block; font-size: 12px; color: #dcc2f5; }
.work.show { animation: work-in .5s cubic-bezier(.2, .8, .2, 1) backwards; }
@keyframes work-in { from { opacity: 0; scale: .85; translate: 0 18px; } }
.gallery .note { margin-top: 24px; font-size: 12px; color: #6d4f88; }

/* ===== Why Arjan ===== */
.why { position: relative; overflow: hidden; color: #fff; margin-bottom: 26px; padding: 70px 0 76px;
  background: radial-gradient(ellipse at 12% 60%, rgba(142, 48, 214, .75), transparent 45%), linear-gradient(110deg, #3a0f63, #27093f 55%, #1f0834); }
.why-copy { width: 690px; margin: 0 63px 0 0; text-align: center; }
.why .section-tag { color: #c687f5; }
.why h2 { margin: 8px 0 12px; font-size: 32px; font-weight: 700; line-height: 1.6; }
.why-lead { font-size: 15px; font-weight: 300; line-height: 2; color: #e6d8f6; }
.reasons { display: grid; grid-template-columns: repeat(4, 1fr); margin: 36px 0 38px; }
.reasons li { padding: 4px 10px; }
.reasons li + li { border-right: 1px solid rgba(190, 135, 240, .35); }
.reasons svg { width: 46px; height: 46px; margin: 0 auto 12px; display: block; color: #d7a6ff; filter: drop-shadow(0 0 8px rgba(190, 105, 255, .8)); transition: translate .3s; }
.reasons li:hover svg { translate: 0 -6px; }
.reasons h3 { font-size: 14.5px; font-weight: 600; line-height: 1.8; }
.reasons p { margin-top: 4px; font-size: 12px; font-weight: 300; line-height: 1.9; color: #d9c6ee; }
.why .btn { background: linear-gradient(90deg, #a52fd0, #641aa6); color: #fff; width: 236px; height: 58px; box-shadow: 0 8px 24px rgba(150, 45, 215, .4); }
.why-art { position: absolute; left: calc(50% - 504px); top: 50%; width: 330px; margin-top: -170px; filter: drop-shadow(0 0 28px rgba(171, 85, 246, .65)); }

/* ===== Quote request form ===== */
.quote-section { padding: 56px 0 64px; }
.quote-grid { display: grid; grid-template-columns: 390px 1fr; gap: 46px; align-items: start; padding: 0 40px; }
.quote-intro { padding-top: 22px; }
.quote-intro h2 { margin: 14px 0 12px; font-size: 32px; font-weight: 700; line-height: 1.6; }
.quote-intro > p:not(.section-tag) { font-size: 14.5px; line-height: 2.2; color: #4a2c66; }
.quote-intro ol { list-style: none; margin-top: 28px; counter-reset: step; }
.quote-intro li { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; font-size: 14px; font-weight: 500; counter-increment: step; }
.quote-intro li::before { content: counter(step); flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #a52fd0, #5a1596); font-weight: 700; }

.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; padding: 34px 34px 28px; border-radius: 28px; background: #fff; box-shadow: 0 22px 50px rgba(80, 25, 135, .16); }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field.full, .quote-form .full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; }
.field label em { font-style: normal; color: #b0206f; }
.field label span { font-weight: 300; color: #7d6592; }
.field input, .field select, .field textarea { width: 100%; height: 50px; padding: 0 16px; border-radius: 14px; border: 1.5px solid #e0d1ef; background: #faf7fd; color: var(--ink); font: 400 14px Alexandria, "Segoe UI", Tahoma, sans-serif; text-align: right; transition: border-color .2s, box-shadow .2s, background .2s; }
.field textarea { height: 112px; padding-top: 13px; line-height: 1.9; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); background: #fff; box-shadow: 0 0 0 4px rgba(122, 34, 184, .14); }
.field [aria-invalid="true"] { border-color: #c4246c; background: #fff6fa; }
.error { min-height: 20px; font-size: 11.5px; color: #b0185f; }
.quote-form .btn { height: 56px; width: 100%; border: 0; cursor: pointer; color: #fff; font-family: inherit; background: linear-gradient(90deg, #a52fd0, #641aa6); }
.form-status { font-size: 13px; line-height: 2; text-align: center; }
.form-status:not(:empty) { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: #f1e6fb; }

@media (max-width: 899px) {
  .gallery { padding: 6px 18px 44px; }
  .filters { gap: 8px; margin-bottom: 22px; }
  .filters button { height: 40px; padding: 0 15px; font-size: 12.5px; }
  .works-grid { grid-template-columns: minmax(0, 420px); gap: 16px; }
  .work { height: 220px; }

  .why { padding: 48px 18px 52px; margin-bottom: 20px; }
  .why-copy { width: 100%; max-width: 480px; margin: 0 auto; }
  .why h2 { font-size: 23px; }
  .why-lead { font-size: 13.5px; }
  .reasons { grid-template-columns: 1fr 1fr; row-gap: 28px; margin: 28px 0 30px; }
  .reasons li:nth-child(3) { border-right: 0; }
  .why-art { display: none; }

  .quote-section { padding: 34px 16px 44px; }
  .quote-grid { grid-template-columns: minmax(0, 480px); justify-content: center; gap: 26px; padding: 0; }
  .quote-intro { padding-top: 0; text-align: center; }
  .quote-intro .section-tag { justify-content: center; }
  .quote-intro h2 { font-size: 24px; }
  .quote-intro ol { display: none; }
  .quote-form { grid-template-columns: minmax(0, 1fr); padding: 24px 18px 20px; }
  /* 16px stops iOS from zooming in when a field is focused */
  .field input, .field select, .field textarea { font-size: 16px; }
}

.work a { display: block; height: 100%; }
.work figcaption { pointer-events: none; }
