/* arjenmaarleveld.com
   Values follow arjenmaarleveld_phase2_content_25Oct_layout.md.
   Phone rules apply below 768px. Between 768 and 959px the header uses
   the Menu button and hero photos move below the text. */

/* ---------- Fonts ---------- */

@font-face {
  font-family: 'Poppins';
  src: url('/fonts/poppins-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('/fonts/poppins-medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('/fonts/poppins-semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('/fonts/poppins-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  --teal: #007678;
  --ink: #1C2526;
  --beige: #F5F1EA;
  --white: #FFFFFF;
  --muted: #4A5260;
  --line: #E2DDD3;
  --line-strong: #C9C2B4;
  --quote: #EAF3F3;

  --gutter: 48px;
  --measure: 66ch;
  --section-gap: 80px;
  --hero-pad: 48px;
}

@media (max-width: 767.98px) {
  :root {
    --gutter: 20px;
    --section-gap: 64px;
    --hero-pad: 32px;
  }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

/* On short pages the white ground grows so the footer band sits at the bottom */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
  padding-bottom: var(--section-gap);
}

main:has(.page-body) {
  padding-bottom: 0;
}

h1,
h2,
h3,
p,
ul,
figure,
blockquote {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 500;
  color: var(--ink);
  text-wrap: balance;
}

/* Avoids a single word alone on the last line; ignored where unsupported */
p,
figcaption {
  text-wrap: pretty;
}

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

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

a {
  color: var(--teal);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.icon {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 16px icons get a heavier stroke so the drawn line matches the 20px icons */
.icon--16 {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

.icon--mark {
  fill: currentColor;
  stroke: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.measure {
  max-width: var(--measure);
}

/* ---------- Buttons ---------- */

/* Buttons keep their minimum height and grow if the label wraps; the vertical
   padding centers a single line exactly, and an icon stays level with the first line */
.btn {
  --btn-height: 48px;
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  min-height: var(--btn-height);
  padding: calc((var(--btn-height) - 2px - 1.3em) / 2) 28px;
  border: 1px solid var(--teal);
  border-radius: 4px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn--solid {
  background: var(--teal);
  color: var(--white);
}

.btn--solid:hover {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
}

.btn--outline {
  background: var(--white);
  color: var(--teal);
}

.btn--outline:hover {
  background: var(--teal);
  color: var(--white);
}

.btn .icon {
  margin: calc((1.3em - 20px) / 2) 0;
}

.btn--icon {
  padding-left: 24px;
  padding-right: 24px;
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 10;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

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

.site-name {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
}

.site-name:hover {
  color: var(--ink);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0;
  list-style: none;
}

.main-nav a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: 16px;
  text-decoration: none;
}

.main-nav a:not(.btn):hover {
  color: var(--teal);
}

.main-nav a[aria-current="page"]:not(.btn) {
  color: var(--teal);
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.main-nav .btn {
  --btn-height: 44px;
  padding-left: 24px;
  padding-right: 24px;
  font-weight: 500;
}

.menu-button {
  display: none;
  align-items: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  margin-right: -10px;
  padding: 0 10px;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.menu-button .icon {
  width: 24px;
  height: 24px;
  stroke-width: 1.67;
}

.menu-button__close,
.menu-button[aria-expanded="true"] .menu-button__open {
  display: none;
}

.menu-button[aria-expanded="true"] .menu-button__close {
  display: inline;
}

.phone-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.phone-menu[hidden] {
  display: none;
}

.phone-menu ul {
  padding: 0;
  list-style: none;
}

.phone-menu li {
  border-bottom: 1px solid var(--line);
}

.phone-menu a:not(.btn) {
  display: flex;
  align-items: center;
  min-height: 52px;
  color: var(--ink);
  font-size: 18px;
  text-decoration: none;
}

.phone-menu a[aria-current="page"]:not(.btn) {
  color: var(--teal);
}

.phone-menu .btn {
  width: 100%;
  margin: 20px 0 24px;
  font-weight: 500;
}

@media (max-width: 959.98px) {
  .main-nav {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }
}

@media (min-width: 960px) {
  .phone-menu {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .site-header__bar {
    height: 64px;
  }

  .site-name {
    font-size: 18px;
  }
}

/* ---------- Hero band ---------- */

.hero {
  background: var(--beige);
  padding: var(--hero-pad) 0;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--hero-photo, 440px);
  gap: 64px;
  align-items: center;
}

.hero__text {
  max-width: var(--measure);
}

.hero h1 {
  font-size: 36px;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.lede {
  font-size: 18px;
  line-height: 1.6;
}

.hero h1 + * {
  margin-top: 24px;
}

.lede + .lede {
  margin-top: 24px;
}

.hero .chapeau {
  margin-top: 8px;
}

.hero .chapeau + .lede {
  margin-top: 24px;
}

.photo {
  border-radius: 4px;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  margin-top: 32px;
}

.hero__actions .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

/* Home: portrait cropped to 4:5 in a 320px column */
.hero--home {
  --hero-photo: 320px;
}

.hero--home .photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 20%;
}

/* Coaching: a tighter 4:3 frame from the 1600 by 1200 file
   (x 240 to 1440, y 60 to 960), so the image is shown at 133.33% */
.photo-frame {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
}

.photo-frame--coaching img {
  width: 133.333%;
  max-width: none;
  margin: -5% 0 0 -20%;
}

@media (max-width: 959.98px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .hero__media {
    width: 100%;
  }

  .hero--home .photo {
    aspect-ratio: 1 / 1;
  }
}

/* At tablet widths a stacked photo is never wider than its desktop column;
   on phones it fills the text width */
@media (min-width: 768px) and (max-width: 959.98px) {
  .hero__media {
    max-width: var(--hero-photo, 440px);
  }
}

@media (max-width: 767.98px) {
  .hero h1 {
    font-size: 30px;
  }

  .hero__grid {
    gap: 24px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
  }
}

/* ---------- Section nav strip ---------- */

.jump {
  border-bottom: 1px solid var(--line);
}

.jump__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 28px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.jump__label {
  color: var(--muted);
  font-size: 14px;
}

.jump ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
  padding: 0;
  list-style: none;
}

.jump a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 16px;
}

@media (max-width: 767.98px) {
  .jump__inner {
    display: block;
  }

  .jump__label {
    padding-top: 8px;
  }
}

/* ---------- Body sections ---------- */

.page-body {
  padding-bottom: var(--section-gap);
}

.section {
  padding-top: var(--section-gap);
}

.section > * + * {
  margin-top: 24px;
}

.section h2 {
  font-size: 26px;
  line-height: 1.25;
}

.section h2::before {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin-bottom: 20px;
  background: var(--teal);
}

.section > h2 + * {
  margin-top: 16px;
}

.chapeau {
  font-size: 18px;
  font-style: italic;
  line-height: 1.5;
}

.section > h2 + .chapeau {
  margin-top: 8px;
}

.section ul {
  padding-left: 1.25em;
}

.section li::marker {
  color: var(--teal);
}

.section li + li {
  margin-top: 8px;
}

@media (max-width: 767.98px) {
  .section h2 {
    font-size: 22px;
  }
}

/* ---------- Testimonial panel ---------- */

.section > .testimonial {
  margin-top: 56px;
}

.testimonial {
  max-width: var(--measure);
  padding: 32px;
  border-radius: 12px;
  background: var(--quote);
}

.testimonial p + p {
  margin-top: 24px;
}

.testimonial figcaption {
  margin-top: 16px;
  color: var(--teal);
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 767.98px) {
  .section > .testimonial {
    margin-top: 40px;
  }

  .testimonial {
    padding: 20px;
    border-radius: 8px;
  }
}

/* ---------- Home service cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-top: 64px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  transition: border-color 0.2s ease;
}

.card:hover {
  border-color: var(--teal);
}

.card:focus-within {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.card h2 {
  color: var(--teal);
  font-size: 20px;
  line-height: 1.3;
}

.card h2 a {
  color: inherit;
  text-decoration: none;
}

.card h2 a:focus-visible {
  outline: none;
}

.card h2 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.card p {
  margin-top: 12px;
  color: var(--muted);
}

.card__arrow {
  margin-top: auto;
  padding-top: 24px;
  color: var(--teal);
}

.card__arrow .icon {
  transition: transform 0.2s ease;
}

.card:hover .card__arrow .icon {
  transform: translateX(6px);
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .card__arrow .icon {
    transition: none;
  }
}

@media (max-width: 767.98px) {
  .cards {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 40px;
  }

  .card {
    padding: 24px;
  }
}

/* ---------- Vistage groups (Coaching) ---------- */

.section > .group {
  margin-top: 32px;
}

.section > .group + .group {
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.group > * + * {
  margin-top: 24px;
}

.group h3 {
  font-size: 20px;
  line-height: 1.3;
}

.group > h3 + .chapeau {
  margin-top: 8px;
}

.group > .chapeau + * {
  margin-top: 16px;
}

/* ---------- Footer band ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--beige);
  padding: 64px 0 28px;
}

.site-footer--slim {
  padding-top: 0;
}

.footer-heading {
  max-width: 30em;
  font-size: 22px;
  line-height: 1.35;
}

.footer-sub {
  max-width: var(--measure);
  margin-top: 8px;
}

.footer-routes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.footer-routes .btn[hidden] {
  display: none;
}

.email-fallback {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 12px;
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer--slim .footer-legal {
  margin-top: 0;
  border-top: 0;
  padding-top: 28px;
}

.footer-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (max-width: 767.98px) {
  .site-footer {
    padding: 48px 0 24px;
  }

  .site-footer--slim {
    padding-top: 0;
  }

  .footer-routes {
    flex-direction: column;
  }

  .footer-routes .btn,
  .email-fallback {
    width: 100%;
  }

  .email-fallback {
    justify-content: center;
  }
}

/* ---------- Utilities ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Other hero photos ---------- */

.hero__media .photo {
  width: 100%;
}

.hero--about {
  --hero-photo: 320px;
}

.hero--about .photo {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Speaking: the wide speaking photo gets a 520px column */
.hero--wide {
  --hero-photo: 520px;
}

.hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
}

.hero__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ---------- About: display line ---------- */

.display-line {
  padding: 20px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  color: var(--teal);
  font-size: 22px;
  line-height: 1.5;
  text-align: center;
  text-wrap: balance;
}

.section > .display-line {
  margin-top: 40px;
  margin-bottom: 40px;
}

/* ---------- Speaking: talk titles and bio panel ---------- */

.talk-title {
  font-size: 20px;
  line-height: 1.3;
}

.section > .talk-title + * {
  margin-top: 8px;
}

.bio-panel {
  padding: 32px;
  border-radius: 12px;
  background: var(--beige);
}

.bio-panel__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.bio-panel__photo {
  width: 120px;
  height: 120px;
  border-radius: 4px;
}

.bio-panel__text {
  margin-top: 20px;
}

.bio-panel__download {
  margin-top: 24px;
}

.btn--copy {
  --btn-height: 44px;
  font-size: 14px;
}

@media (max-width: 767.98px) {
  .bio-panel {
    padding: 20px;
  }
}

/* ---------- Contact ---------- */

.contact-body {
  padding-top: 64px;
}

.contact-body > * + * {
  margin-top: 32px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.contact-card__photo {
  order: -1;
  width: 140px;
  height: 140px;
  border-radius: 4px;
}

.contact-routes {
  padding: 0;
  list-style: none;
}

.contact-routes li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  color: var(--teal);
}

.contact-routes noscript p {
  color: var(--ink);
}

.privacy {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.contact-body > .privacy {
  margin-top: 64px;
}

.privacy h2 {
  font-size: 16px;
  line-height: 1.5;
}

.privacy h2 + p {
  margin-top: 16px;
}

.privacy p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.privacy p + p {
  margin-top: 24px;
}

@media (max-width: 767.98px) {
  .contact-body {
    padding-top: 40px;
  }

  .contact-card {
    display: block;
  }

  .contact-card__photo {
    margin-top: 24px;
  }
}
