/* Filaro Collection - phone Get in touch page (11/Aug/26)
   Free-scroll wine page (not plate / drawer). Form language from Sable underline fields.
   Desktop books keep contact drawer; this page is the phone Explore destination. */

/* Contact CSS only loads on contact.html - safe to pin html scroll pad. */
html {
  --contact-nav-h: 3.75rem;
  /* Desktop: clear fixed emblem. Phone gutters/stamp stitch live under @767 only. */
  --contact-dock-clear: calc(
    clamp(2rem, 6vh, 3.5rem) + 3.25rem + 6.5rem + env(safe-area-inset-bottom, 0px)
  );
  --contact-stamp-mark: clamp(2.25rem, 3.4vw, 3rem);
  overflow-x: hidden;
  overflow-y: auto;
}
body[data-contact-page] {
  overflow-x: hidden;
  overflow-y: visible;
  background: var(--wine, #5b2c2d);
  color: #fff;
  min-height: 100svh;
  min-height: 100dvh;
  -webkit-tap-highlight-color: transparent;
}

body[data-contact-page] .site-nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 60;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  max-width: 100%;
  height: var(--contact-nav-h);
  padding: 0.9rem var(--gutter, 1.25rem);
  color: #fff;
  background: transparent;
}
body[data-contact-page] .site-nav__brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}
body[data-contact-page] .site-nav__brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
body[data-contact-page] .site-nav__logo {
  height: 1.25rem;
  width: auto;
  opacity: 0.95;
}
body[data-contact-page] .site-nav__address {
  margin: 0;
  line-height: 0;
  opacity: 0.9;
}
body[data-contact-page] .site-nav__address-img {
  display: block;
  height: 1.05rem;
  width: auto;
  max-width: min(48vw, 11.5rem);
}
body[data-contact-page] .site-nav__book {
  display: flex;
  align-items: center;
  justify-content: center;
}
body[data-contact-page] .site-nav__links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: calc(0.8125rem + 2px);
  font-weight: 500;
}
body[data-contact-page] .site-nav__links a {
  text-decoration: none;
  opacity: 0.9;
  color: inherit;
}
body[data-contact-page] .site-nav__end { justify-self: end; }
body[data-contact-page] .site-nav__tools {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
body[data-contact-page] .site-nav__sound {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
body[data-contact-page] .site-nav__sound svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
body[data-contact-page] .site-nav__sound .icon-unmuted { display: none; }
body[data-contact-page] .site-nav__sound:not(.is-muted) .icon-muted { display: none; }
body[data-contact-page] .site-nav__sound:not(.is-muted) .icon-unmuted { display: block; }
body[data-contact-page] .site-nav__ot img {
  display: block;
  height: 0.85rem;
  width: auto;
}
body[data-contact-page] .explore-nav__plus,
body[data-contact-page] .explore-nav__word {
  color: #fff;
}
body[data-contact-page] .explore-nav__stem {
  background: #fff;
}

/* Desktop: fixed emblem before main (original dock). Phone stitch is JS + @767 only. */
body[data-contact-page] .contact-chrome-end {
  display: none;
}
body[data-contact-page] .stamp {
  position: fixed;
  left: var(--gutter, 1.25rem);
  right: auto;
  top: auto;
  bottom: clamp(2rem, 6vh, 3.5rem);
  z-index: 45;
  width: clamp(2.25rem, 3.4vw, 3rem);
  pointer-events: none;
  opacity: 1;
  line-height: 0;
}
body[data-contact-page] .stamp img {
  display: block;
  width: 100%;
  height: auto;
}

body[data-contact-page] .contact-main {
  box-sizing: border-box;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  padding:
    calc(var(--contact-nav-h) + 1.25rem)
    var(--gutter, 1.25rem)
    var(--contact-dock-clear);
}

body[data-contact-page] .contact-title {
  margin: 0 0 1rem;
  padding: 0;
  font-size: clamp(1.85rem, 7vw, 2.35rem);
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-transform: uppercase;
}

body[data-contact-page] .contact-intro {
  margin: 0 0 2rem;
  max-width: 28rem;
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
}

body[data-contact-page] .contact-paths {
  display: block;
}
body[data-contact-page] .contact-party {
  margin: 0 0 2.25rem;
  padding: 0;
  border: 0;
}
body[data-contact-page] .contact-party + .contact-party {
  margin-top: 0.25rem;
}
body[data-contact-page] .contact-party__logo-wrap {
  display: block;
  margin: 0 0 0.85rem;
  line-height: 0;
}
body[data-contact-page] .contact-form-block__logo-spacer {
  display: none;
}

body[data-contact-page] .contact-party__logo {
  display: block;
  height: 1.35rem;
  width: auto;
  margin: 0;
}
body[data-contact-page] .contact-party__logo--zsa {
  height: 1.55rem;
}

body[data-contact-page] .contact-party__label {
  display: block;
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: var(--tracking-label, 0.1em);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

body[data-contact-page] .contact-party__profile {
  display: block;
  margin: 0 0 1.1rem;
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
}

body[data-contact-page] .contact-party__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
}
body[data-contact-page] .contact-party__contact {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: #fff;
  text-decoration: none;
  border: 0;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.35;
}
body[data-contact-page] .contact-party__contact span {
  text-decoration: none;
  border: 0;
}
body[data-contact-page] .contact-party__contact svg {
  width: 0.9rem;
  height: 0.9rem;
  flex: 0 0 auto;
  display: block;
  opacity: 0.78;
}
body[data-contact-page] .contact-party__contact:hover,
body[data-contact-page] .contact-party__contact:focus-visible {
  outline: none;
  opacity: 0.92;
}
body[data-contact-page] .contact-party__contact:hover svg,
body[data-contact-page] .contact-party__contact:focus-visible svg {
  opacity: 1;
}

/* Sable-style underline form on wine */
body[data-contact-page] .contact-form-block {
  margin-top: 0.25rem;
  padding-top: 0;
  border: 0;
}
body[data-contact-page] .contact-form-block__title {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: var(--tracking-label, 0.1em);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

body[data-contact-page] .contact-form-block__intro {
  margin: 0 0 1.1rem;
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
}

body[data-contact-page] .contact-form {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}
/* Contact page does not load drawer CSS - keep honeypot out of layout at all widths */
body[data-contact-page] .contact-form__honey {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}
body[data-contact-page] .contact-form__field {
  margin: 0 0 0.95rem;
}
body[data-contact-page] .contact-form__field label,
body[data-contact-page] .contact-form__field .contact-form__lab {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
body[data-contact-page] .contact-form__field input,
body[data-contact-page] .contact-form__field textarea {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.3rem 0 0.5rem;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.4;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
body[data-contact-page] .contact-form__field input::placeholder,
body[data-contact-page] .contact-form__field textarea::placeholder {
  color: rgba(255, 255, 255, 0.38);
}
body[data-contact-page] .contact-form__field textarea {
  resize: vertical;
  min-height: 5.5rem;
}

body[data-contact-page] .contact-select {
  position: relative;
}
body[data-contact-page] .contact-select__trigger {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin: 0;
  padding: 0.3rem 0 0.5rem;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 300;
  text-align: left;
  cursor: pointer;
}
body[data-contact-page] .contact-select__chevron {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.7;
  flex: 0 0 auto;
}
body[data-contact-page] .contact-select__list {
  list-style: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 5;
  margin: 0;
  padding: 0.35rem 0;
  background: #4a2425;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
body[data-contact-page] .contact-select__option {
  margin: 0;
  padding: 0.55rem 0.75rem;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 300;
  cursor: pointer;
}
body[data-contact-page] .contact-select__option.is-selected,
body[data-contact-page] .contact-select__option:hover,
body[data-contact-page] .contact-select__option:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

body[data-contact-page] .contact-form__submit {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  margin: 1.75rem 0 0;
  padding: 0 0 0.35rem;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
body[data-contact-page] .contact-form__thanks {
  display: none;
  margin: 1rem 0 0;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.82);
}
body[data-contact-page] .contact-form.is-sent .contact-form__thanks {
  display: block;
}
body[data-contact-page] .contact-form__error {
  display: none;
  margin: 1rem 0 0;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.4;
  color: rgba(255, 220, 210, 0.92);
}
body[data-contact-page] .contact-form__error:not([hidden]) {
  display: block;
}
body[data-contact-page] .contact-form__error a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
body[data-contact-page] .contact-form__privacy {
  margin: 1.25rem 0 0;
  font-size: 0.72rem;
  font-weight: 300;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.48);
}
body[data-contact-page] .contact-form__privacy a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

@media (max-width: 767px) {
  html {
    /* Match Story phone gutters + title-line SSOT exactly (not --gutter clamp). */
    --phone-copy-gutter-left: 1.25rem;
    --phone-copy-gutter-right: 2.5rem;
    --phone-title-line: min(
      5.8rem,
      calc(
        (
            100vw - var(--phone-copy-gutter-left) - var(--phone-copy-gutter-right) -
              0.35rem
          ) * 0.144
      )
    );
    scroll-padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
  }
  body[data-contact-page] .site-nav__book,
  body[data-contact-page] .site-nav__ot,
  body[data-contact-page] .explore-nav__word {
    display: none !important;
  }
  body[data-contact-page] .site-nav {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-left: var(--phone-copy-gutter-left);
    padding-right: var(--phone-copy-gutter-right);
  }
  /* Phone title was Light 300 / +tracking - books use Thin 100 / -0.01em. */
  body[data-contact-page] .contact-title {
    margin: 0 0 2rem;
    font-family: var(--font-sans);
    font-size: var(--phone-title-line);
    font-weight: 100;
    letter-spacing: -0.01em;
    line-height: 1;
    text-transform: uppercase;
    color: #fff;
  }
  /* Phone only: stitch emblem + sound after form (match book gutters). */
  body[data-contact-page] .contact-main {
    max-width: none;
    margin: 0;
    padding-left: var(--phone-copy-gutter-left);
    padding-right: var(--phone-copy-gutter-right);
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }
  body[data-contact-page] .contact-chrome-end.is-phone-stitched,
  body[data-contact-page] .contact-chrome-end:not([hidden]) {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    box-sizing: border-box;
    width: 100%;
    height: auto;
    margin-top: 1.25rem;
    pointer-events: auto;
  }
  body[data-contact-page] .contact-chrome-end .stamp,
  body[data-contact-page] .contact-chrome-end.is-phone-stitched .stamp {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    z-index: auto;
    flex: 0 0 auto;
    width: var(--contact-stamp-mark);
  }
  body[data-contact-page] .contact-chrome-end .site-nav__sound-wrap {
    position: static !important;
    right: auto !important;
    bottom: auto !important;
    flex: 0 0 auto;
    margin: 0;
    margin-left: auto;
    line-height: 0;
    color: #fff;
    pointer-events: auto;
  }
  body[data-contact-page] .contact-chrome-end .site-nav__sound {
    min-width: 44px;
    min-height: 44px;
    box-sizing: border-box;
    display: inline-grid;
    place-items: end center;
    padding: 0;
    color: #fff;
  }
  body[data-contact-page] .contact-chrome-end .site-nav__sound svg {
    width: calc(16px * 1.1 * 1.1);
    height: calc(16px * 1.1 * 1.1);
  }
  body[data-contact-page] .contact-chrome-end .site-nav__sound-tip {
    display: none !important;
  }
  body[data-contact-page] .site-sound-dock {
    position: static !important;
    right: auto !important;
    bottom: auto !important;
  }
  /* Party stack (Paul 11/Aug/26 phone): Oke logo +10%; drop redundant profiles; smaller links */
  body[data-contact-page] .contact-party__logo:not(.contact-party__logo--zsa) {
    height: 1.485rem;
  }
  body[data-contact-page] .contact-party__profile {
    display: none !important;
  }
  body[data-contact-page] .contact-party__label {
    margin-bottom: 1rem;
  }
  body[data-contact-page] .contact-party__contact {
    font-size: 0.82rem;
  }
  body[data-contact-page] .contact-party__contact svg {
    width: 0.8rem;
    height: 0.8rem;
  }
}

/* Desktop revert to approved contact-drawer layout (Paul 11/Aug/26).
   Phone @767 block above stays frozen. */
@media (min-width: 768px) {
  body[data-contact-page] .contact-main {
    max-width: min(68rem, 100%);
    margin: 0;
    padding:
      calc(var(--contact-nav-h) + clamp(1.5rem, 4vh, 2.75rem))
      var(--gutter, 1.25rem)
      clamp(3.5rem, 9vh, 5.5rem);
  }
  body[data-contact-page] .contact-title {
    margin: 0;
    font-size: clamp(2.64rem, 4.75vw, 4.62rem);
    font-weight: 100;
    letter-spacing: -0.01em;
    line-height: 1;
  }
  body[data-contact-page] .contact-paths {
    margin: 2rem 0 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(28rem, 2fr);
    gap: clamp(2rem, 4.5vh, 3rem) clamp(2.5rem, 5vw, 4rem);
    max-width: min(64rem, 100%);
    align-items: start;
  }
  body[data-contact-page] .contact-party,
  body[data-contact-page] .contact-form-block {
    margin: 0;
    min-width: 0;
  }
  body[data-contact-page] .contact-party__logo-wrap {
    display: flex;
    align-items: center;
    height: 2.25rem;
    margin: 0 0 0.95rem;
    width: 100%;
  }
  body[data-contact-page] .contact-form-block__logo-spacer {
    display: flex;
  }
  body[data-contact-page] .contact-party__logo {
    height: 1.85rem;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
  }
  body[data-contact-page] .contact-party__logo--zsa {
    height: 1.8225rem;
  }
  body[data-contact-page] .contact-party__label {
    margin: 0;
    padding: 0.85rem 0 0;
    border-top: 1px solid rgba(247, 245, 239, 0.22);
    font-size: 0.75rem;
    font-weight: 100;
    letter-spacing: var(--tracking-label, 0.1em);
    color: #fff;
    width: 100%;
  }
  body[data-contact-page] .contact-party__profile {
    display: block;
    margin: 0.65rem 0 0;
    font-size: 0.78rem;
    font-weight: 300;
    letter-spacing: 0.012em;
    line-height: 1.45;
    color: #fff;
  }
  body[data-contact-page] .contact-party__contacts {
    gap: 0.65rem;
    margin: 0.85rem 0 0;
  }
  body[data-contact-page] .contact-party__contact {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 1.35rem;
    height: 1.35rem;
    gap: 0;
    color: rgba(247, 245, 239, 0.72);
    opacity: 0.72;
    overflow: visible;
  }
  body[data-contact-page] .contact-party__contact span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  body[data-contact-page] .contact-party__contact svg {
    width: 0.85rem;
    height: 0.85rem;
    opacity: 1;
  }
  body[data-contact-page] .contact-party__contact:hover,
  body[data-contact-page] .contact-party__contact:focus-visible {
    opacity: 1;
  }
  body[data-contact-page] .contact-party__contact::after {
    content: attr(data-tip);
    position: absolute;
    top: 50%;
    left: calc(100% + 0.55rem);
    transform: translateY(-50%);
    padding: 0;
    background: none;
    color: rgba(247, 245, 239, 0.78);
    font-family: var(--font-sans);
    font-size: 0.64rem;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    line-height: 1.45;
    white-space: nowrap;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
  }
  body[data-contact-page] .contact-form-block__title {
    display: none;
  }
  body[data-contact-page] .contact-form__field {
    margin: 0 0 1rem;
  }
  body[data-contact-page] .contact-form__field label,
  body[data-contact-page] .contact-form__field .contact-form__lab {
    margin: 0 0 0.4rem;
    font-size: calc(0.72rem - 2px);
    font-weight: 500;
    letter-spacing: 0.1em;
    color: #fff;
  }
  body[data-contact-page] .contact-form__field input,
  body[data-contact-page] .contact-form__field textarea {
    padding: 0.55rem 0;
    border-bottom-color: rgba(247, 245, 239, 0.32);
    font-size: 1rem;
  }
  body[data-contact-page] .contact-form__field textarea {
    min-height: 6.5rem;
  }
  body[data-contact-page] .contact-select__trigger {
    padding: 0.55rem 0;
    border-bottom-color: rgba(247, 245, 239, 0.32);
    font-size: calc(1rem - 2px);
  }
  body[data-contact-page] .contact-form__submit {
    margin: 1.25rem 0 0;
    padding: 0.7rem 0;
    border-bottom-color: #fff;
    font-size: 0.88rem;
    font-weight: 100;
    letter-spacing: var(--tracking-label, 0.1em);
  }
  body[data-contact-page] .contact-form__privacy {
    display: none;
  }
  body[data-contact-page] .contact-chrome-end {
    display: none !important;
  }
}
@media (min-width: 768px) and (max-width: 900px) {
  body[data-contact-page] .contact-paths {
    grid-template-columns: 1fr 1fr;
  }
  body[data-contact-page] .contact-form-block {
    grid-column: 1 / -1;
  }
}
