/* parts.css — layout: wrap, header, nav, sections, hero strip, footer (Altomirel) */

#page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;

  overflow-x: clip; /* guard against hairline horizontal bleed; does not create a scroll container */
}

.alto-wrap {
  width: 100%;
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* --- header: top info strip + brand row (sticky) --- */
.alto-head {
  position: sticky;
  top: 0;
  z-index: 20;

  background: var(--color-surface);
  border-bottom: 2px solid var(--color-text);
}

.alto-info {
  background: var(--color-dark);
  color: var(--color-text-invert);
}

.alto-info-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  min-height: 38px;
  padding: 6px var(--space-md);
  margin: 0 auto;
  max-width: var(--wrap-max);

  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.alto-info-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px; /* tap target */

  color: var(--color-text-invert);
  text-decoration: none;
}

.alto-info-list a:hover {
  color: var(--color-surface);
}

.alto-info-sep {
  color: var(--color-accent);
}

.alto-brandrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 66px;
  margin: 0 auto;
  max-width: var(--wrap-max);
  padding: 0 var(--space-md);
}

.alto-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  min-height: 44px; /* tap target */

  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--color-text);
}

.alto-brand-mark {
  width: 30px;
  height: 30px;
}

.alto-burger {
  display: none; /* desktop: hidden; shown on mobile only with js */

  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0;

  background: transparent;
  border: 2px solid var(--color-text);
  border-radius: 12px;
  cursor: pointer;
}

.alto-burger span {
  display: block;

  width: 22px;
  height: 2px;

  background: var(--color-text);
}

.alto-burger-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* --- nav: menu bar below header (after-header-sibling) --- */
.alto-menu {
  background: var(--color-tint);
  border-bottom: 2px solid var(--color-line);
}

.alto-menu-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs);
  margin: 0 auto;
  max-width: var(--wrap-max);
  padding: 8px var(--space-md);
  list-style: none;
}

.alto-menu-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px; /* tap target */
  padding: 8px 16px;

  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--color-text);

  border-radius: var(--radius-pill);
}

.alto-menu-link:hover,
.alto-menu-link[aria-current="page"] {
  color: var(--color-surface);

  background: var(--color-accent);
}

.alto-menu-spacer {
  flex: 1;
}

.alto-menu-close {
  display: none; /* visible only inside mobile overlay */
}

/* --- main + sections (even rhythm, banded backgrounds) --- */
.alto-main {
  flex: 1;
}

.alto-section {
  padding: var(--space-2xl) 0;
}

.alto-band-tint {
  background: var(--color-tint);
}

.alto-band-accent {
  background: var(--color-tint-accent);
}

.alto-band-dark {
  color: var(--color-text-invert);

  background: var(--color-dark);
}

.alto-band-dark h2,
.alto-band-dark h3 {
  color: var(--color-surface);
}

.alto-band-dark .alto-eyebrow {
  color: rgb(197, 151, 173); /* lifted accent for contrast on dark */
}

.alto-band-dark .alto-eyebrow::after {
  background: rgb(74, 62, 78);
}

.alto-section-head {
  max-width: 62ch;
  margin-bottom: var(--space-xl);
}

/* headings sit tight to the next line by default (h* reset to margin 0),
   so give the intro paragraph room under the page/section heading */
.alto-section-head h2 {
  margin-bottom: var(--space-sm);
}

/* --- hero: strip-intro, text aligned right --- */
.alto-hero {
  padding: var(--space-xl) 0 var(--space-2xl);

  background: var(--color-surface);
}

.alto-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: end;
}

.alto-hero-aside {
  display: none; /* decorative outline column, desktop only */
}

.alto-hero-aside-kicker {
  display: block;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-2xs);

  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-soft);

  border-bottom: 2px solid var(--color-line); /* rule caps the column above the display words */
}

.alto-hero-aside-mark {
  display: block;
  width: 136px;
  height: auto;
  margin-top: var(--space-lg); /* fills the column below the tag line */
}

.alto-hero-huge {
  display: block;

  font-family: var(--font-head);
  font-size: clamp(2.6rem, 1rem + 5vw, 4.4rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.alto-hero-aside-tag {
  display: block;
  margin-top: var(--space-md);

  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.alto-hero-text {
  max-width: 70ch;
  margin-left: auto; /* hero text aligned right per axis */
}

/* keep the h1 off the lede that follows it */
.alto-hero-text h1 {
  margin-bottom: var(--space-sm);
}

@media (min-width: 960px) {
  .alto-hero-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr);
  }

  .alto-hero-aside {
    display: block;
    align-self: center;
  }

  .alto-hero-strip {
    grid-column: 1 / -1; /* strip spans full width under both columns */
  }
}

.alto-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

.alto-hero-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

@media (min-width: 560px) {
  .alto-hero-strip {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .alto-hero-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- footer: 3 columns --- */
.alto-foot {
  color: var(--color-text-invert);

  background: var(--color-dark);
}

.alto-foot-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  padding: var(--space-xl) 0 var(--space-lg);
}

@media (min-width: 740px) {
  .alto-foot-cols {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.alto-foot-col h2 {
  margin-bottom: var(--space-sm);

  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-invert-soft);
}

.alto-foot-col a {
  color: var(--color-text-invert);
}

.alto-foot-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
}

.alto-foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px; /* tap target */

  text-decoration: none;
}

.alto-foot-nav a:hover {
  text-decoration: underline;
}

.alto-foot-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs) var(--space-md);
  justify-content: space-between;
  padding: var(--space-md) 0 var(--space-lg);

  font-size: 0.82rem;
  color: var(--color-text-invert-soft);

  border-top: 1px solid rgb(74, 62, 78);
}

/* legal links sit on the dark footer, so they must be light, not accent */
.alto-foot-bottom a {
  color: var(--color-text-invert);
}

/* --- mobile layout --- */
@media (max-width: 860px) {
  .js-yes .alto-burger {
    display: inline-flex;
  }

  .alto-menu {
    position: static;
  }

  /* with JS the menu becomes a full overlay toggled by the burger */
  .js-yes .alto-menu {
    position: fixed;
    inset: 0;
    z-index: 40; /* above header (20) and cookie notice */

    display: none;

    background: var(--color-surface);
  }

  .js-yes .alto-menu.here {
    display: block;
  }

  .js-yes .alto-menu-list {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2xs);
    height: 100%;
    padding: var(--space-xl) var(--space-md);
    overflow-y: auto;
  }

  .js-yes .alto-menu-link {
    padding: 14px 16px;

    font-size: 1.1rem;

    border-bottom: 1px solid var(--color-line);
    border-radius: 0;
  }

  .js-yes .alto-menu-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    width: 48px;
    height: 48px;

    font-family: var(--font-head);
    font-size: 1.6rem;
    color: var(--color-text);

    background: transparent;
    border: 2px solid var(--color-text);
    border-radius: 12px;
    cursor: pointer;
  }

  .alto-info-list {
    justify-content: center;
  }
}

/* keep the top info strip to a single row on phones so the header stays short enough
   that section anchors clear it (header height must stay under scroll-padding-top) */
@media (max-width: 560px) {
  .alto-info-list span {
    display: none;
  }

  .alto-info-list {
    justify-content: center;
  }
}
