/*
  Additions to the original Webflow styles.
  Everything visual that was on the old site comes from bom-mau.webflow.css.
  This file only covers what's new: contact form, FAQ, gallery on phones,
  and the grid placement for the new sections.
*/

/* Grid placement for new sections (same as About/Investment on the old site) */
.bm-label { align-self: start; }
.bm-heading { grid-area: span 1 / span 2 / span 1 / span 2; }
.bm-content { grid-area: 2 / 2 / 3 / 4; }
.bm-span2 { grid-column: span 2; }

/* Privacy page title uses the section-heading look */
h1.bm-h1 { margin: 0; font-weight: 400; line-height: 130%; letter-spacing: -1.08px; }

/* Nav: logo is a link now; Contact stays visible on phones */
.nav__logo { display: block; }
.bm-nav-contact { text-decoration: none; }

/* Inline links inside paragraphs */
.link-arrow.bm-inline { display: inline; }

/* Contact form */
.bm-lead { margin-bottom: 32px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.form label {
  display: flex; flex-direction: column; gap: 6px;
  font-family: Inconsolata, monospace; font-size: 13px; letter-spacing: .03px;
  text-transform: uppercase; color: var(--grey);
}
.form__full { grid-column: 1 / -1; }
.form input, .form select, .form textarea {
  font-family: Inconsolata, monospace; font-size: 16px; line-height: 180%; letter-spacing: 0;
  color: var(--black); background: transparent;
  border: 0; border-bottom: .5px solid var(--black); border-radius: 0;
  padding: 8px 0; -webkit-appearance: none; appearance: none;
}
.form select {
  background-image: linear-gradient(45deg, transparent 50%, var(--black) 50%), linear-gradient(135deg, var(--black) 50%, transparent 50%);
  background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-bottom-color: var(--brown); }
.form textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; }
.button {
  justify-self: start; cursor: pointer;
  font-family: Inconsolata, monospace; font-size: 16px; font-weight: 700;
  background: var(--black); color: var(--off-white); border: 0; padding: 12px 28px;
  transition: background .2s, color .2s;
}
.button:hover { background: var(--brown); color: var(--black); }
.button[disabled] { opacity: .5; cursor: wait; }
.form__status { grid-column: 1 / -1; margin: 0; min-height: 1.8em; font-family: Inconsolata, monospace; font-size: 16px; }

/* FAQ */
.faq { border-top: .5px solid var(--light-grey); }
.faq details { border-bottom: .5px solid var(--light-grey); }
.faq summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 18px 32px 18px 0; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 20px; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 32px 18px 0; margin: 0; }
.faq a { color: inherit; }

/* Gentle fade-in as sections scroll into view (replaces Webflow interactions) */
.js .bm-reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.js .bm-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .bm-reveal { opacity: 1; transform: none; transition: none; }
}

/* Gallery: the scroll-driven sideways movement is set by main.js.
   One continuous row of images (same size as the old three-per-screen slides),
   so the gallery works with any number of photos.
   On phones the original stacked the images; here they slide across instead. */
.js .gallery-track.is-pinned .frame { will-change: transform; display: flex; flex-flow: row; gap: 12px; width: max-content; padding-right: 12px; }
.js .gallery-track.is-pinned .slide { display: contents; }
.js .gallery-track.is-pinned .gallery-image { flex: none; width: calc((100vw - 48px) / 3); height: 100vh; }
@media screen and (min-width: 768px) {
  .js .gallery-track.is-pinned { height: var(--gallery-h, 300vw); }
}
@media screen and (max-width: 767px) {
  .js .gallery-track.is-pinned { height: var(--gallery-h, auto); padding-left: 0; padding-right: 0; }
  .js .gallery-track.is-pinned .camera {
    position: sticky; top: var(--nav-h, 0px);
    height: calc(100svh - var(--nav-h, 0px)); overflow: hidden;
    display: flex; align-items: center;
  }
  .js .gallery-track.is-pinned .frame { display: flex; flex-flow: row; gap: 12px; padding: 0 24px; width: max-content; }
  .js .gallery-track.is-pinned .slide { display: contents; }
  .js .gallery-track.is-pinned .gallery-image { flex: none; width: auto; height: calc(100svh - var(--nav-h, 0px) - 96px); aspect-ratio: 2 / 3; }
}

/* Phones: form in one column, new sections stack like the rest */
@media screen and (max-width: 767px) {
  .form { grid-template-columns: 1fr; }
}

/* Footer credit link matches the small footer text */
.footer-description a { font: inherit; letter-spacing: inherit; color: inherit; text-decoration: none; }
