/* AAM Group, voorbeeldsite. Minimalism & Swiss Style (ui-ux-pro-max), warm grijs + petrol. */

@font-face {
  font-family: "Lexend";
  src: url("../fonts/lexend-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #f5f5f3;
  --tone: #e7e5e2;
  --tone-2: #d9d6d2;
  --ink: #1c1917;
  --soft: #57534e;
  --field: #292524;
  --on-field: #f5f5f3;
  --on-field-soft: #d6d3d1;
  --accent: #0e7490;
  --accent-deep: #155e75;
  --on-accent: #ffffff;
  --accent-light: #7dd3e0;
  --white: #ffffff;

  --display: "Lexend", "Helvetica Neue", Arial, sans-serif;
  --text: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;

  --margin: clamp(16px, 4vw, 48px);
  --maxw: 1400px;
  --gap: clamp(20px, 2.4vw, 36px);
  --section: clamp(96px, 8vw + 40px, 200px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--text); font-size: 1.125rem; line-height: 1.55; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p, ul, ol, dl, dd, figure, h1, h2, h3 { margin: 0; }
ul, ol { padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--margin); }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; left: var(--margin); top: -80px; z-index: 100; background: var(--ink); color: var(--ground); padding: 12px 18px; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 8px; }
.demo-note { background: var(--ink); color: var(--ground); font-size: 1rem; line-height: 1.45; padding: 10px var(--margin); text-align: center; }
.demo-note a { display: inline-block; padding: 11px 8px; margin: -11px -8px; color: var(--ground); font-weight: 600; text-underline-offset: 3px; }
.demo-note a:focus-visible { outline: 2px solid var(--ground); outline-offset: -6px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ground); transition: background-color 200ms ease; }
.site-header.is-scrolled { background: var(--white); }
.bar { display: flex; align-items: center; gap: 14px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 48px; margin-right: auto; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; white-space: nowrap; line-height: 1; }
.brand-name span { font-weight: 400; color: var(--soft); }
.nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; text-decoration: none; font-weight: 600; white-space: nowrap; transition: color 160ms ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.actions { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; padding: 0; border-radius: 999px; }
.menu-btn svg { width: 26px; height: 26px; }

/* Buttons (fully round) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px; text-decoration: none; font-weight: 600; line-height: 1.2; cursor: pointer; white-space: nowrap; transition: background-color 180ms ease, transform 180ms var(--ease-out); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active, .chip:active { transform: scale(0.98); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-deep); }
.btn-ink { background: var(--ink); color: var(--ground); }
.btn-ink:hover { background: #3a3532; }
.btn-light { background: var(--ground); color: var(--ink); }
.btn-light:hover { background: var(--white); }
.btn-tone { background: var(--tone); color: var(--ink); }
.btn-tone:hover { background: var(--tone-2); }
.btn-big { min-height: 60px; padding: 0 28px; font-size: 1.125rem; }
.btn-mail { min-width: 48px; padding: 0 16px; }

/* Type */
h1, h2, h3, .display { font-family: var(--display); }
h1 { font-weight: 700; letter-spacing: -0.04em; line-height: 0.98; text-wrap: balance; }
h2 { font-size: clamp(2.125rem, 1.2rem + 3.2vw, 4.25rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.lead { font-size: 1.375rem; line-height: 1.45; max-width: 32em; }
.soft { color: var(--soft); }
.measure { max-width: 36em; }
.stack > * + * { margin-top: 1em; }

/* Hero */
.hero { padding-top: clamp(32px, 5vw, 80px); }
.hero h1 { font-size: clamp(3rem, 1.6rem + 7vw, 8.75rem); max-width: 10em; }
.hero-sub { display: grid; gap: 24px; margin-top: clamp(20px, 3vw, 40px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-pair { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: clamp(32px, 4vw, 64px); }
.hero-pair figure { margin: 0; position: relative; }
.frame { overflow: hidden; background: var(--tone); }
.hero-pair .frame { aspect-ratio: 3 / 2; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-pair figcaption { display: flex; gap: 10px; align-items: baseline; margin-top: 10px; font-size: 1rem; color: var(--soft); }
.hero-pair figcaption b { font-family: var(--display); color: var(--ink); font-weight: 600; }

/* Order (live) */
.field { background: var(--field); color: var(--on-field); padding-block: var(--section); margin-top: var(--section); }
.field .soft { color: var(--on-field-soft); }
.order { display: grid; gap: clamp(32px, 4vw, 72px); }
.order-intro { display: grid; gap: 22px; align-content: start; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 48px; padding: 0 20px; border: 0; border-radius: 999px; background: #3a3532; color: var(--on-field); font-weight: 600; cursor: pointer; transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out); }
.chip:hover { background: #4a443f; }
.chip[aria-pressed="true"] { background: var(--accent-light); color: var(--ink); }
.order-photo { margin: 0; }
.order-photo .frame { aspect-ratio: 4 / 3; }
.order-photo img { transition: opacity 260ms ease; }
.order-photo figcaption { margin-top: 10px; color: var(--on-field-soft); font-size: 1rem; }
.order-sum { font-family: var(--display); font-size: 1.25rem; line-height: 1.35; }
.steps { list-style: none; display: grid; gap: 4px; counter-reset: s; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 2px 18px; padding: 14px 0; counter-increment: s; transition: opacity 260ms ease; }
.step::before { content: counter(s); width: 36px; height: 36px; border-radius: 50%; background: var(--accent-light); color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 1rem; display: inline-flex; align-items: center; justify-content: center; grid-row: span 2; transition: background-color 260ms ease; }
.step h3 { color: var(--on-field); }
.step p { color: var(--on-field-soft); }
.step.is-off { opacity: 0.38; }
.step.is-off::before { background: #4a443f; color: var(--on-field-soft); }
.order-cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* Chapters */
.chapter { display: grid; gap: clamp(28px, 4vw, 72px); }
.chapter-media { display: grid; gap: 8px; }
.chapter-media .big { aspect-ratio: 3 / 2; }
.chapter-media .small { aspect-ratio: 1 / 1; }
.chapter-copy { display: grid; gap: 18px; align-content: start; }
.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 14px; height: 14px; background: var(--accent); border-radius: 2px; transform: rotate(45deg) scale(0.8); }
.field .ticks li::before { background: var(--accent-light); }
.pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pairs .frame { aspect-ratio: 4 / 5; }

/* Promises */
.promises { display: grid; gap: clamp(24px, 3vw, 48px); }
.promise-list { list-style: none; display: grid; gap: clamp(24px, 3vw, 40px); }
.promise-list li { display: grid; grid-template-columns: 56px 1fr; gap: 4px 20px; }
.promise-list svg { width: 52px; height: 52px; grid-row: span 2; }
.promise-list h3 { font-size: 1.25rem; }
.promise-list p { color: var(--soft); max-width: 30em; }

/* Area + FAQ */
.area { display: grid; gap: clamp(28px, 4vw, 72px); }
.towns { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 22px; font-family: var(--display); font-size: clamp(1.375rem, 1rem + 2vw, 2.75rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.25; }
.towns li:first-child { color: var(--accent); }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--tone); border-radius: 20px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 64px; padding: 14px 24px; font-weight: 600; font-size: 1.125rem; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 1.5rem; font-weight: 400; transition: transform 220ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 24px 22px; max-width: 40em; }
.faq details > div p + p { margin-top: 0.7em; }

/* CTA */
.cta { display: grid; gap: 28px; }
.cta h2 { max-width: 12em; }
.cta-mail { font-family: var(--display); font-size: clamp(1.25rem, 0.8rem + 1.6vw, 2.125rem); font-weight: 600; letter-spacing: -0.03em; overflow-wrap: anywhere; text-decoration-thickness: 2px; text-underline-offset: 8px; display: inline-block; padding-block: 8px; }
.cta-mail:hover { color: var(--accent-light); }

/* Services page */
.page-head { padding-top: clamp(32px, 5vw, 80px); }
.page-head h1 { font-size: clamp(2.75rem, 1.5rem + 5vw, 6.5rem); max-width: 11em; }
.page-head .lead { margin-top: 22px; }
.page-head .hero-actions { margin-top: 28px; }
.trade { display: grid; gap: clamp(24px, 4vw, 64px); align-items: center; }
.trade .frame { aspect-ratio: 4 / 3; }
.trade-copy { display: grid; gap: 16px; }
.trade-copy h2 { font-size: clamp(2.125rem, 1.2rem + 3.2vw, 4.25rem); }
.trade-copy svg { width: 52px; height: 52px; }
.mini { display: grid; gap: var(--gap); }
.mini > div { display: grid; gap: 12px; align-content: start; }
.mini svg { width: 48px; height: 48px; }

/* Contact */
.contact-grid { display: grid; gap: clamp(32px, 5vw, 80px); }
.form { display: grid; gap: 18px; position: relative; }
.form-row { display: grid; gap: 18px; }
.field-l { display: grid; gap: 6px; }
.field-l label { font-weight: 600; }
.hint { color: var(--soft); font-weight: 400; }
.form input, .form select, .form textarea { width: 100%; min-height: 54px; padding: 12px 18px; background: var(--white); border: 2px solid #a8a29e; border-radius: 16px; font-size: 1.125rem; }
.form textarea { min-height: 160px; resize: vertical; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 0; border-color: var(--ink); }
.form .hp { position: absolute; width: 2px; height: 2px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-status { padding: 18px 22px; background: var(--field); color: var(--on-field); border-radius: 20px; }
.form-status a { color: var(--accent-light); font-weight: 600; }
.form-error { color: #b42318; font-weight: 600; }
.details { display: grid; gap: 22px; align-content: start; }
.details dl { display: grid; gap: 16px; }
.details dt { color: var(--soft); font-size: 1rem; }
.details dd { font-weight: 600; overflow-wrap: anywhere; }
.details .frame { aspect-ratio: 4 / 3; }
.strip { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.strip .frame { aspect-ratio: 1 / 1; }

/* Footer */
.site-footer { background: var(--field); color: var(--on-field); padding-block: clamp(64px, 7vw, 120px) 40px; }
main > .section:last-child { padding-bottom: var(--section); }
.section { padding-top: var(--section); }
.foot-name { font-family: var(--display); font-weight: 700; font-size: clamp(4rem, 1.5rem + 12vw, 15rem); letter-spacing: -0.06em; line-height: 0.82; }
.foot-name span { color: var(--accent-light); font-weight: 400; }
.foot-grid { display: grid; gap: 28px; margin-top: clamp(32px, 4vw, 56px); }
.foot-grid h2 { font-family: var(--text); font-size: 1.125rem; letter-spacing: 0; margin-bottom: 8px; }
.foot-grid ul { list-style: none; display: grid; }
.foot-grid a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; text-underline-offset: 4px; }
.foot-grid p { color: var(--on-field-soft); }
.foot-grid p strong { color: var(--on-field); }
.credits { margin-top: 40px; color: var(--on-field-soft); font-size: 1rem; max-width: 62ch; }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 720ms var(--ease-out), transform 720ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .rise { animation: rise 760ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms); }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  .js .hero-pair .frame img { transform: scale(1.1); transition: transform 2600ms var(--ease-out); }
  .js .hero-pair .is-in .frame img { transform: scale(1); }
  .chapter-media .frame img, .pairs .frame img, .trade .frame img, .strip .frame img { transition: transform 700ms var(--ease-out); }
  .chapter-media .frame:hover img, .pairs .frame:hover img, .trade .frame:hover img, .strip .frame:hover img { transform: scale(1.03); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}

/* Menu behind the button */
@media (max-width: 1179px) {
  .js .menu-btn { display: inline-flex; }
  .js .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--field); padding: 8px var(--margin) 22px; display: none; }
  .js .nav.is-open { display: block; }
  .js .nav ul { flex-direction: column; }
  .js .nav a { color: var(--on-field); font-family: var(--display); font-size: 1.5rem; min-height: 56px; padding: 0; }
  .js .nav a:hover, .js .nav a[aria-current="page"] { color: var(--accent-light); }
  html:not(.js) .bar { flex-wrap: wrap; }
  html:not(.js) .nav { order: 3; width: 100%; }
}
@media (max-width: 479px) {
  .brand-name span, .hide-sm { display: none; }
  .bar { gap: 8px; min-height: 64px; }
  .actions .btn { padding: 0 16px; min-height: 48px; }
}
@media (min-width: 600px) {
  .hero-pair { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .strip { grid-template-columns: repeat(4, 1fr); }
  .mini { grid-template-columns: 1fr 1fr; }
  .chapter-media { grid-template-columns: 2fr 1fr; align-items: end; }
}
@media (min-width: 960px) {
  .hero-sub { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
  .hero-sub .hero-actions { justify-content: flex-end; }
  .hero-pair { grid-template-columns: 5fr 7fr; }
  .hero-pair .frame { aspect-ratio: auto; height: clamp(360px, 38vw, 560px); }
  .order { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .order-intro { position: sticky; top: 110px; }

  .chapter { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
  .chapter.flip .chapter-media { order: 2; }
  .chapter.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .promises { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .promise-list { grid-template-columns: 1fr 1fr; }
  .area { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .cta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
  .trade { grid-template-columns: 1fr 1fr; }
  .trade.flip .frame { order: 2; }
  .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.js [data-reveal].step.is-off.is-in { opacity: 0.38; }
@media (max-width: 959px) {
  .order-intro { display: contents; }
  .order > .order-intro > h2 { order: 1; }
  .order > .order-intro > p.soft { order: 2; }
  .order > .order-intro > .chips { order: 3; }
  .order > .steps { order: 4; }
  .order > .order-intro > .order-sum { order: 5; }
  .order > .order-intro > .order-cta { order: 6; }
  .order > .order-intro > .order-photo { order: 7; }
  .order { gap: 22px; }
  .order > .steps { margin-block: 10px; }
}
.js .step[data-reveal] { transition-delay: calc(var(--i, 0) * 40ms); }
.menu-btn { flex: none; }
@media (max-width: 399px) {
  .btn-mail span { display: none; }
  .btn-mail { width: 48px; padding: 0; }
}
