/*
 * Project Berger — shared page shell + Home & Vision section styles.
 * Visual reference of record: ux-designs/ux-ProjectBerger-2026-07-01/mockups/key-hero.html
 * and key-hero-browser.html.
 *
 * Font-size is intentionally NOT tokenized (DESIGN.md leaves it an open
 * [ASSUMPTION] and both mockups hardcode it directly) — see ARCHITECTURE-SPINE.md
 * AD-2, which only requires tokens for colors/spacing/radii/typography-family.
 */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--color-background);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-weight: var(--font-weight-body);
}

.page-shell {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* Header / nav row */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) 0 var(--space-3);
  /* Floor on the gap between the badge and the nav — on narrow phones,
     space-between alone let them crowd almost edge-to-edge. */
  gap: var(--space-3);
}

.badge-mark {
  width: 46px;
  height: 58px;
  border-radius: var(--radius-full) / 40%;
  overflow: hidden;
  display: block;
  /* Static, decorative — not tappable. Deliberately not an <a>. */
  user-select: none;
}

.site-title {
  font-family: var(--font-headline);
  font-weight: var(--font-weight-headline);
  font-size: 20px;
  color: var(--color-text-primary);
}

.badge-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.anchor-nav {
  display: flex;
  gap: var(--space-5);
  font-family: var(--font-ui);
  font-weight: var(--font-weight-ui);
  font-size: 13.5px;
}

/* Narrow phones don't have room for 4 links at --space-5 (24px) gaps next
   to the badge — tighten up so the badge and "Home" stop crowding together. */
@media (max-width: 400px) {
  .anchor-nav {
    gap: var(--space-3);
  }
}

.anchor-nav a {
  color: var(--color-text-secondary);
  text-decoration: none;
}

.anchor-nav a.active {
  color: var(--color-primary);
}

.anchor-nav a:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* Hero */

.site-title-block {
  text-align: left;
  margin-bottom: var(--space-4);
}

.site-title {
  font-family: var(--font-headline);
  font-weight: var(--font-weight-headline);
  font-size: 48px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-text-primary);
}

.hero-photo {
  /* Raised again (260px -> 340px -> 380px) to also fit both hands and the
     apples piled in the wheelbarrow near the very bottom of this tall
     portrait shot — each ask for "more of the photo" costs box height. */
  height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-background);
  margin-bottom: var(--space-5);
}

/* At the page-shell's own 640px cap the box is much wider but was still a
   fixed 260px tall, so object-fit: cover scaled the photo up far more to
   cover the width — cropping straight through the child's head instead of
   showing it whole. Matches key-hero-browser.html's own 320px reference. */
@media (min-width: 640px) {
  .hero-photo {
    height: 470px;
  }
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Measured with a percentage ruler overlaid on the source file — the
     apple pile only starts around 85% of the image's height, so on wide
     (desktop-width) viewports the crop needs to reach almost all the way
     to the bottom edge to include it. */
  object-position: center 95%;
  display: block;
  /* Stopgap for the known EXIF-orientation issue on the source photo
     (no image-processing tooling available in this environment to
     re-encode the file itself) — see story Dev Notes. */
  image-orientation: from-image;
}

.h1 {
  font-family: var(--font-headline);
  font-weight: var(--font-weight-headline);
  font-size: 28px;
  line-height: 1.3;
  margin: 0 0 var(--space-3);
  color: var(--color-text-primary);
}

.sub {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text-secondary);
  margin: 0 0 var(--space-5);
  line-height: 1.4;
}

.cta {
  display: block;
  width: 100%;
  min-height: 44px;
  text-align: center;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: var(--color-surface);
  font-family: var(--font-ui);
  font-weight: var(--font-weight-ui);
  font-size: 15px;
  text-decoration: none;
  margin-bottom: var(--space-6);
  box-sizing: border-box;
}

.cta:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.vision-block {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-primary);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-5);
  padding-bottom: var(--space-6);
}

.vision-block h2 {
  font-family: var(--font-headline);
  font-weight: var(--font-weight-headline);
  font-size: 18px;
  margin: 0 0 var(--space-4);
  color: var(--color-text-primary);
}

.vision-block p {
  margin: 0 0 var(--space-4);
}

.vision-closing {
  display: block;
  margin-top: var(--space-2);
  font-style: italic;
  /* var(--color-secondary) on var(--color-background) computes to ~4.13:1,
     below the WCAG AA 4.5:1 body-text threshold (found during Story 1.5's
     accessibility sweep) — color-secondary stays fine on white card
     surfaces elsewhere (.schedule-row .value, .tier .price), just not
     directly on the page's cream background. */
  color: var(--color-text-primary);
  font-weight: var(--font-weight-ui);
  font-family: var(--font-ui);
}

/* Section headings (shared across Practical, Pricing & Packaging, Contact &
   Location — distinct from .h1, which is reserved for the page's one true
   H1 in the hero). */

.section-heading {
  font-family: var(--font-headline);
  font-weight: var(--font-weight-headline);
  font-size: 21px;
  margin: 0 0 var(--space-4);
  color: var(--color-text-primary);
}

/* Practical — How It Works */

#praktisch {
  padding-top: var(--space-7);
  padding-bottom: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3) 0;
}

.step + .step {
  border-top: 1px solid var(--color-border);
}

.step-num {
  flex: 0 0 auto;
  width: 22px;
  font-family: var(--font-headline);
  font-weight: var(--font-weight-headline);
  font-size: 18px;
  color: var(--color-primary);
}

.step-body h3 {
  margin: 0 0 var(--space-1);
  font-size: 13.5px;
  font-family: var(--font-ui);
  font-weight: var(--font-weight-ui);
  color: var(--color-text-primary);
}

.step-body p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.schedule {
  margin-top: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.schedule h3 {
  font-family: var(--font-headline);
  font-weight: var(--font-weight-headline);
  font-size: 14px;
  margin: 0 0 var(--space-2);
  color: var(--color-text-primary);
}

.schedule-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-1) var(--space-3);
  font-size: 12.5px;
  padding: var(--space-1) 0;
}

.schedule-row .label,
.schedule-row .value {
  overflow-wrap: break-word;
  min-width: 0;
}

.schedule-row .label {
  color: var(--color-text-primary);
}

.schedule-row .value {
  color: var(--color-secondary);
  font-weight: var(--font-weight-ui);
}

/* Pricing & Packaging */

#prijzen {
  padding-top: var(--space-7);
  padding-bottom: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.row {
  padding: var(--space-3) var(--space-4);
}

.row + .row {
  border-top: 1px solid var(--color-border);
}

.row h3 {
  margin: 0 0 var(--space-2);
  font-size: 13px;
  font-family: var(--font-ui);
  font-weight: var(--font-weight-ui);
  color: var(--color-text-primary);
}

.tier {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-1) var(--space-3);
  font-size: 12.5px;
  padding: var(--space-1) 0;
}

.tier .volume,
.tier .price {
  overflow-wrap: break-word;
  min-width: 0;
}

.tier .volume {
  color: var(--color-text-secondary);
}

.tier .price {
  color: var(--color-secondary);
  font-weight: var(--font-weight-ui);
  font-family: var(--font-ui);
}

/* Contact & Location */

#contact {
  padding-top: var(--space-7);
  padding-bottom: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.tap-target {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-weight: var(--font-weight-ui);
  font-size: 14.5px;
  text-decoration: none;
  margin-bottom: var(--space-2);
}

.tap-target:last-of-type {
  margin-bottom: 0;
}

.tap-target .label {
  overflow-wrap: break-word;
  min-width: 0;
}

.tap-target.primary {
  background: var(--color-primary);
  color: var(--color-surface);
}

.tap-target.secondary {
  background: var(--color-surface);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}

.tap-target:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.icon {
  flex: 0 0 auto;
  width: 20px;
  overflow: hidden;
  font-size: 16px;
  text-align: center;
}

.location-card {
  margin-top: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.location-card h3 {
  font-family: var(--font-headline);
  font-weight: var(--font-weight-headline);
  font-size: 14px;
  margin: 0 0 var(--space-2);
  color: var(--color-text-primary);
}

.location-card p {
  margin: 0 0 var(--space-1);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.location-card .address {
  display: block;
  font-style: normal;
  color: var(--color-text-primary);
  font-weight: var(--font-weight-ui);
}

.location-card .address a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--color-border);
  text-underline-offset: 3px;
}

.location-card .address a:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}
