/* Shared responsive layout. Load after the original theme and biography styles. */
:root {
  --content-width: 1200px;
  --page-gutter: clamp(1.25rem, 3vw, 2rem);
  --section-space: clamp(3.5rem, 6vw, 6.5rem);
  --layout-gap: clamp(2rem, 4vw, 4rem);
  --header-height: 96px;
}

.site-container {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--content-width);
  min-width: 0;
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.section,
.story.story-biography {
  display: block;
  min-height: 0;
  padding: 0;
}

.section-container {
  padding-block: var(--section-space);
}

.section-container > :last-child,
.story-copy > :last-child,
.contact-copy > :last-child,
.connection-copy > :last-child,
.moment-copy > :last-child {
  margin-bottom: 0;
}

section[id] {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.site-container > *,
.section-heading > *,
.testimonial-heading > *,
.sample-grid > *,
.offer-grid > *,
.steps > *,
.field-row > *,
.contact-detail > div {
  min-width: 0;
}

h1, h2, h3 {
  overflow-wrap: break-word;
}

.section-heading,
.testimonial-heading {
  gap: var(--layout-gap);
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
}

/* The header spans the screen; its navigation shares the content width. */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  display: block;
  width: 100%;
  height: var(--header-height);
  padding: 0;
}

.topbar-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
}

.topbar-inner > nav {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(.8rem, 1.2vw, 1.15rem);
  font-size: .72rem;
}

.topbar-inner > nav a:nth-last-child(-n+2) {
  display: block;
}

.topbar-inner > .button {
  display: inline-flex;
  flex: 0 0 auto;
}

.brand-logo-link {
  flex: 0 0 72px;
}

/* Full-width covers keep their images outside the content container. */
.hero {
  display: grid;
  align-items: center;
  height: auto;
  min-height: clamp(680px, 100svh, 920px);
}

.hero-container {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--header-height) + var(--section-space));
  padding-bottom: max(6rem, var(--section-space));
}

.hero-content {
  width: 100%;
  max-width: 780px;
  margin: 0;
  padding: 0;
}

.hero h1 {
  font-size: clamp(3rem, 5.2vw, 5.5rem);
}

.hero .eyebrow {
  line-height: 1.6;
}

.hero-proof {
  right: var(--page-gutter);
  bottom: 2rem;
}

.hero-actions {
  flex-wrap: wrap;
}

.connection,
.moment,
.quote-section {
  display: grid;
  height: auto;
  position: relative;
}

.connection {
  align-items: end;
  min-height: 620px;
}

.moment {
  align-items: center;
  min-height: 650px;
}

.quote-section {
  place-items: center;
  min-height: 600px;
}

.cover-container {
  position: relative;
  z-index: 2;
}

.quote-section blockquote {
  margin-inline: auto;
}

.quote-section blockquote svg {
  margin-inline: auto;
}

.quote-section blockquote > :last-child {
  margin-bottom: 0;
}

/* Images and copy in the biography are ordinary, contained content. */
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: var(--layout-gap);
}

.story-biography .story-image {
  position: sticky;
  top: calc(var(--header-height) + 1.25rem);
  min-height: 0;
  height: clamp(420px, 52vw, 720px);
  overflow: hidden;
}

.story-biography .story-copy {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
}

.repertoire-grid {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  align-items: start;
  gap: var(--layout-gap);
}

.repertoire-intro {
  top: calc(var(--header-height) + 1.5rem);
}

.repertoire ol {
  column-gap: 2rem;
}

.repertoire summary {
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: .85rem;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: var(--layout-gap);
}

.photo-partner-copy {
  padding-left: clamp(1.5rem, 3vw, 2.5rem);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: var(--layout-gap);
}

.contact-copy h2 {
  font-size: clamp(2.4rem, 4.2vw, 3.5rem);
  line-height: 1.1;
}

.contact-form {
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 2.75rem);
}

.contact-form input,
.contact-form select,
.contact-form textarea,
.contact-form label,
.contact-detail {
  min-width: 0;
  max-width: 100%;
}

.contact-detail,
.form-privacy,
.legal-page article {
  overflow-wrap: anywhere;
}

.field-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.offer-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.offer-card {
  padding: clamp(1.5rem, 2.8vw, 2.4rem);
}

.duo-feature {
  grid-template-columns: minmax(180px, .55fr) minmax(0, 1.45fr);
}

.steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.steps article {
  padding: clamp(1.5rem, 2.8vw, 2.2rem);
}

/* The slide width follows its container rather than the viewport. */
.testimonial-carousel {
  max-width: 100%;
}

.testimonial-track {
  gap: 1.25rem;
  padding: .5rem max(.25rem, calc(50% - 380px)) 2rem;
}

.testimonial-card {
  flex-basis: min(760px, calc(100% - .5rem));
}

/* Scope the website footer so review footers retain their own layout. */
.site-footer {
  display: block;
  padding: 0;
}

.site-footer > .footer-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  justify-content: normal;
  gap: 2.5rem;
  padding-block: clamp(3rem, 5vw, 4.5rem);
  text-transform: none;
  letter-spacing: normal;
  font-size: 1rem;
}

.footer-inner .footer-logo {
  width: 104px;
  height: 130px;
}

.footer-inner > p {
  color: #eadfd6;
  margin: 0;
}

.footer-inner > div:not(.footer-logo) {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1.5rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .7rem;
}

.footer-inner > small {
  color: #d8c6ba;
  text-align: right;
}

/* Legal and form response pages use the same outer width and gutters. */
.legal-page {
  padding: 0;
}

.legal-container {
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

.legal-page article {
  width: 100%;
  min-width: 0;
  padding: clamp(1.5rem, 4vw, 4.5rem);
}

.legal-page h1 {
  font-size: clamp(2.25rem, 6vw, 5.5rem);
  margin-bottom: clamp(2rem, 4vw, 4rem);
  overflow-wrap: anywhere;
}

.legal-page article > :last-child {
  margin-bottom: 0;
}

.status-page {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1000px) {
  .story-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .story-biography .story-image {
    position: relative;
    top: auto;
    width: 100%;
    height: clamp(380px, 60vw, 620px);
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 84px;
  }

  .topbar-inner {
    justify-content: flex-start;
    gap: .75rem;
  }

  .brand-logo-link {
    flex-basis: 64px;
  }

  .topbar-inner > nav {
    display: none;
  }

  .topbar-inner > .button {
    margin-left: auto;
  }

  .mobile-menu {
    margin-left: 0;
  }

  .mobile-menu > nav {
    max-height: calc(100dvh - var(--header-height) - 1rem);
    overflow-y: auto;
    padding-inline: var(--page-gutter);
  }

  .mobile-menu > nav a:nth-last-child(-n+2) {
    display: block;
  }

  .repertoire-grid,
  .partner-grid,
  .contact-grid,
  .duo-feature {
    grid-template-columns: minmax(0, 1fr);
  }

  .photo-partner-copy {
    border-left: 0;
    padding: 2rem 0 0;
  }

  .offer-grid,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .offer-card,
  .offer-card:nth-last-child(-n+2) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  :root {
    --header-height: 80px;
  }

  .brand-logo-link {
    flex-basis: 58px;
  }

  .topbar-inner > .button {
    padding: .68rem .8rem;
    font-size: .66rem;
  }

  .hero {
    min-height: clamp(640px, 100svh, 820px);
  }

  .hero h1 {
    font-size: clamp(2.125rem, 10.8vw, 4.25rem);
  }

  .hero-content {
    margin: 0;
    width: 100%;
  }

  .hero-container {
    padding-top: calc(var(--header-height) + 3.5rem);
    padding-bottom: 3.5rem;
  }

  .hero-actions .button {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .connection {
    min-height: 540px;
  }

  .moment {
    min-height: 560px;
  }

  .quote-section {
    min-height: 480px;
  }

  .story-biography .story-image {
    height: clamp(360px, 115vw, 520px);
  }

  .story-biography .story-copy {
    padding: 0;
  }

  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .testimonial-track {
    padding-inline: .25rem;
    gap: 1rem;
  }

  .testimonial-card {
    flex-basis: calc(100% - .5rem);
    padding: 1.5rem;
  }

  .site-footer > .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .footer-inner > small {
    text-align: left;
  }

  .legal-brand {
    margin-bottom: 3rem;
  }
}
