/* Approved Navvy identity assets and mobile composition refinements.
   The logo files are the unmodified primary SVGs supplied in the final logo suite. */

.brand-logo,
.footer-brand-logo {
  display: block;
  width: 132px;
  max-width: 100%;
  height: auto;
  flex: none;
}

.brand-logo-light { display: none; }
header.over-hero .brand-logo-dark { display: none; }
header.over-hero .brand-logo-light { display: block; }

@media (min-width: 641px) {
  .client-name { text-align: center; }
}

.client-review-section {
  position: relative;
  overflow: hidden;
  padding: clamp(76px, 8vw, 112px) 0;
  background: var(--ocean);
  color: var(--bone);
}
.client-review-section .eyebrow { color: var(--bone); }
.client-review {
  display: grid;
  margin: 0;
  grid-template-columns: minmax(210px, .62fr) minmax(0, 1.55fr);
  grid-template-areas:
    "context quote"
    "person quote";
  column-gap: clamp(54px, 7vw, 104px);
  row-gap: 42px;
  align-items: start;
}
.client-review-context { grid-area: context; }
.client-review-context .eyebrow { margin-bottom: 22px; }
.client-review-context p {
  margin: 0;
  color: var(--bone-2);
  font-family: var(--mono);
  font-size: .72rem;
  line-height: 1.65;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.client-review blockquote {
  grid-area: quote;
  position: relative;
  margin: 0;
  padding: 34px 0 0 clamp(30px, 4vw, 54px);
  border-left: 1px solid var(--hairline-bone, rgba(239, 233, 230, .22));
}
.client-review blockquote::before {
  content: "“";
  position: absolute;
  top: -24px;
  left: clamp(30px, 4vw, 54px);
  color: var(--sandstone);
  font-family: Georgia, serif;
  font-size: 5.5rem;
  font-weight: 400;
  line-height: 1;
}
.client-review blockquote p {
  margin: 0;
  max-width: 43ch;
  color: var(--bone);
  font-size: clamp(1.28rem, 2.15vw, 1.82rem);
  line-height: 1.48;
  text-wrap: pretty;
}
.client-review-person {
  grid-area: person;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}
.client-review-person img {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 0 0 1px var(--hairline-bone, rgba(239, 233, 230, .22));
}
.client-review-details {
  display: block;
  min-width: 0;
}
.client-review-role,
.client-review-company,
.client-review-date {
  display: block;
  font-family: var(--mono);
}
.client-review-name {
  display: inline-block;
  color: var(--bone);
  font-family: var(--mono);
  font-size: .96rem;
  line-height: 1.35;
  border-bottom: 1px solid transparent;
}
.client-review-name:hover { border-bottom-color: currentColor; }
.client-review-section :focus-visible { outline-color: var(--bone); }
.client-review-role,
.client-review-company,
.client-review-date {
  color: var(--bone-2);
  font-size: .68rem;
  line-height: 1.55;
  letter-spacing: .04em;
}
.client-review-role { margin-top: 7px; }
.client-review-company { color: var(--bone); }
.client-review-date { margin-top: 7px; }

.footer-lockup,
.foot-lockup { display: inline-flex; align-items: center; }
.footer-brand-logo { width: 142px; }

/* The approved icon remains intact. Only its container translates slightly. */
footer.site .foot-motif {
  left: auto;
  right: -8%;
  object-fit: contain;
  object-position: center;
  transform: none;
  will-change: transform, opacity;
}
.motion footer.site.footer-live .foot-motif {
  animation: navvy-footer-float 24s ease-in-out 1s infinite;
}
@keyframes navvy-footer-float {
  0%, 100% { opacity: .11; transform: translate3d(0, 0, 0); }
  50% { opacity: .15; transform: translate3d(12px, 8px, 0); }
}

/* Prevent translated words from determining an intrinsic width wider than the viewport. */
.origin-grid,
.origin-story,
.origin-name,
.origin-root,
.acc,
.acc-item,
.acc-head,
.acc-head > * { min-width: 0; }
.origin-name h3,
.origin-root dt,
.origin-root dd,
.acc-head .name { overflow-wrap: anywhere; }

@media (max-width: 640px) {
  :root { --mobile-header: 61px; }

  /* Figma's compact, solid mobile header. */
  header#top {
    min-height: var(--mobile-header);
    background: rgba(var(--bone-rgb), .97);
    backdrop-filter: blur(8px);
    border-bottom-color: var(--hairline);
  }
  header#top .nav { height: var(--mobile-header); }
  header#top.over-hero .brand-logo-dark { display: block; }
  header#top.over-hero .brand-logo-light { display: none; }
  header#top.over-hero .language-picker,
  header#top.over-hero .nav-links a,
  header#top.over-hero .burger { color: var(--graphite); }
  .brand-logo { width: 108px; }
  .footer-brand-logo { width: 132px; }

  .nav-links {
    top: var(--mobile-header);
    max-height: calc(100dvh - var(--mobile-header));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: calc(22px + env(safe-area-inset-bottom));
  }

  /* Mobile homepage: editorial copy first, photography second, proof over the image edge. */
  #page-home .hero-full {
    min-height: 0;
    margin-top: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: var(--bone);
  }
  #page-home .hero-scrim,
  #page-home .hero-chart,
  #page-home .hero-reg { display: none; }
  #page-home .hero-inner {
    order: 1;
    color: var(--graphite);
    padding-top: 30px;
    padding-bottom: 28px;
  }
  #page-home .hero-inner .rise,
  #page-home .hero-attrib.rise {
    opacity: 1;
    transform: none;
    animation: none;
  }
  #page-home .hero-inner .eyebrow {
    color: var(--ocean);
    margin-bottom: 18px;
  }
  #page-home .hero-inner h1 {
    max-width: 22ch;
    color: var(--graphite);
    font-size: clamp(2rem, 9.45vw, 2.38rem);
    line-height: 1.08;
    letter-spacing: -.025em;
  }
  #page-home .hero-inner .lead {
    max-width: 43ch;
    margin-top: 18px;
    color: var(--ink-2);
    font-size: .96rem;
    line-height: 1.58;
  }
  #page-home .hero-inner .btn-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-top: 24px;
  }
  #page-home .hero-inner .tlink { color: var(--ocean); }
  #page-home .hero-attrib {
    max-width: none;
    margin-top: 22px;
    padding-top: 13px;
    border-top-color: var(--hairline);
    color: var(--ink-2);
  }
  #page-home .hero-full .hero-photo {
    position: relative;
    inset: auto;
    order: 2;
    width: 100%;
    height: clamp(310px, 88vw, 356px);
    object-fit: cover;
    object-position: 50% 50%;
    transform: none;
    animation: none;
  }
  #page-home .hero-followon {
    padding-top: 0;
    padding-bottom: 60px;
    background: var(--bone);
    color: var(--graphite);
  }
  #page-home .hero-followon > .wrap:first-child { padding-inline: 22px; }
  #page-home .hero-proof {
    width: min(100% - 34px, 328px);
    margin: -72px auto 0;
    border-top-width: 2px;
    box-shadow: 0 18px 48px rgba(var(--graphite-rgb), .22);
  }
  #page-home .hp-proof-head {
    padding: 11px 16px;
    gap: 12px;
    font-size: .52rem;
    letter-spacing: .1em;
  }
  #page-home .hp-stat {
    grid-template-columns: minmax(112px, .76fr) 1fr;
    gap: 12px;
    padding: 15px 16px;
  }
  #page-home .hp-stat b { font-size: 1.45rem; }
  #page-home .hp-stat .cap { font-size: .78rem; }
  #page-home .hp-meta { gap: 11px; padding: 22px 16px; }
  #page-home .hp-meta .tlink { white-space: normal; }
  #page-home .hero-followon .split {
    gap: 18px;
    margin-top: 58px !important;
  }
  #page-home .hero-followon .split .eyebrow { color: var(--ocean); }
  #page-home .hero-followon .split h2 { color: var(--graphite); }
  #page-home .hero-followon .split p { color: var(--ink-2); }

  /* The four page layouts use the same compact rhythm and touch-safe controls. */
  .page section { padding-top: 56px; padding-bottom: 56px; }
  .page .split {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .page .split > * { min-width: 0; }
  .page h1,
  .page h2,
  .page h3 {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .page .btn { min-height: 46px; }
  .page-title { line-height: 1.12; }
  .contact-hero { padding-top: 48px; }

  .client-review-section { padding: 58px 0 62px; }
  .client-review {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "context"
      "quote"
      "person";
    gap: 30px;
  }
  .client-review-context .eyebrow { margin-bottom: 13px; }
  .client-review-context p { font-size: .65rem; }
  .client-review blockquote {
    padding: 34px 0 0 22px;
  }
  .client-review blockquote::before {
    top: -16px;
    left: 22px;
    font-size: 4.5rem;
  }
  .client-review blockquote p { font-size: 1.08rem; line-height: 1.58; }
  .client-review-person {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 15px;
    padding-left: 22px;
  }
  .client-review-person img { width: 66px; height: 66px; }
  .book-card { padding: 25px 22px 24px; }
  .field textarea { min-height: 170px; }

  /* Long German and Dutch labels must wrap inside their own track. */
  .acc-head {
    grid-template-columns: 30px 22px minmax(0, 1fr) 20px;
    gap: 10px;
  }
  .acc-head .name { line-height: 1.35; }
  .acc-body { padding-left: 52px; }

  .origin-story,
  .origin-name { padding: 36px 22px 34px; }
  .origin-root {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 4px 13px;
  }
  .origin-icon { grid-row: 1 / 3; align-self: center; }
  .origin-root dt,
  .origin-root dd { grid-column: 2; }

  footer.site { padding-top: 58px; }
  footer.site .foot-motif {
    left: auto;
    right: -74px;
    top: 24px;
    width: 260px;
  }

  .cookie-banner {
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  /* Auxiliary pages share the same approved mark and compact header height. */
  .site-head,
  body > header:not(#top) { min-height: var(--mobile-header); }
}

@media (max-width: 420px) {
  .site-head .back,
  body > header:not(#top) .back { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .motion footer.site.footer-live .foot-motif { animation: none; }
}
