/* =========================================================
   contact.css — photo hero + single-column details/form, map
   ========================================================= */

/* =========================================================
   HERO — inset image frame, mirrors the site's other page
   heroes (events/photoshoots/our love story) but shorter,
   no scroll-compress since this page doesn't need the drama.
   ========================================================= */
.ct-hero {
  position: relative;
  z-index: 2;
  /* min-height, not height: a fixed height + overflow:hidden silently
     clips the badge/title/lede whenever their combined content is
     taller than the viewport (long lede copy, narrow/short screens).
     min-height keeps the full-bleed look for normal content while
     letting the section grow instead of clipping when it doesn't fit. */
  min-height: max(460px, 62vh);
  background: var(--cream);
  padding: 28px;
}

.ct-hero__frame {
  position: relative;
  width: 100%;
  min-height: calc(max(460px, 62vh) - 56px);
  border-radius: 25px;
  isolation: isolate;
  /* Grid, not flex: stacks __visual and __content in the same cell so
     the frame's height is driven by whichever is taller (usually
     __visual's min-height floor, but __content wins and grows the
     frame if its text ever needs more room). Nothing here clips. */
  display: grid;
}

/* Image/darken/overlay layer — this is the ONLY part that clips to
   the rounded corners. Kept separate from __content so long text can
   never be hidden by the image frame's own overflow:hidden. */
.ct-hero__visual {
  grid-row: 1;
  grid-column: 1;
  position: relative;
  overflow: hidden;
  border-radius: inherit;
  isolation: isolate;
}

.ct-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  transform: scale(1.04);
  animation: ctHeroZoom 14s var(--ease) forwards;
}

@keyframes ctHeroZoom {
  to { transform: scale(1); }
}

.ct-hero__darken {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #000;
  opacity: 0.1;
  pointer-events: none;
}

.ct-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.15) 45%,
    rgba(0, 0, 0, 0.65) 100%
  );
}

.ct-hero__content {
  grid-row: 1;
  grid-column: 1;
  align-self: end;
  position: relative;
  z-index: 2;
  padding: 0 8vw 8vh;
  max-width: 900px;
}

.ct-hero__badge {
  display: block;
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(243, 237, 225, 0.8);
  margin-bottom: 24px;
}

.ct-hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--cream);
  margin: 0 0 20px;
}

.ct-hero__title em {
  font-style: italic;
}

.ct-hero__lede {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 3vw, 42px);
  line-height: 1.6;
  color: rgba(243, 237, 225, 0.95);
  max-width: 46ch;
  margin: 0;
  background: rgba(20, 21, 15, 0.72);
  padding: 14px 20px;
  border-radius: 14px;
}

/* =========================================================
   DETAILS + FORM — single centred column
   ========================================================= */
.contact {
  position: relative;
  z-index: 2;
  background: var(--cream);
  padding: 96px 56px 100px;
}

.contact__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: stretch;
}

.contact__details {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  text-align: center;
  gap: 28px;
  padding: 0 0 48px;
  border-bottom: 1px solid var(--line);
}

.contact__detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  text-decoration: none;
}

.contact__detail--social .contact__social {
  justify-content: center;
}

.contact__detail-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.6;
}

.contact__detail-value {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 19px;
  color: var(--ink);
  transition: color 0.25s ease;
}

a.contact__detail:hover .contact__detail-value {
  color: var(--accent);
}

.contact__social {
  display: flex;
  gap: 16px;
}

.contact__social a {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 19px;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.25s ease;
}

.contact__social a:hover {
  color: var(--accent);
}

/* =========================================================
   FORM
   ========================================================= */
.contact-form {
  display: flex;
  flex-direction: column;
}

.cf-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 40px;
}

.cf-field label {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(14px, 1.2vw, 16px);
  color: var(--muted);
  transition: color 0.3s ease;
  pointer-events: none;
}

.cf-field:focus-within label {
  color: var(--ink);
}

.cf-field input,
.cf-field select,
.cf-field textarea {
  width: 100%;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.3;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 8px 0 14px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.3s ease;
}

.cf-field input::placeholder,
.cf-field textarea::placeholder {
  color: rgba(28, 29, 26, 0.22);
}

.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus {
  border-bottom-color: var(--ink);
}

/* Sweep underline on focus */
.cf-field::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width 0.5s var(--ease);
  pointer-events: none;
}

.cf-field:focus-within::after { width: 100%; }

/* The hidden native select inside .cf-select is kept only for form
   submission — suppress all visual styles inherited from .cf-field */
.cf-select select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

/* =========================================================
   CUSTOM SELECT — numbered editorial dropdown
   ========================================================= */
/* Elevate this field's stacking context above later [data-animate] siblings
   so the absolutely-positioned dropdown panel isn't painted over by them. */
.cf-field--select {
  z-index: 2;
}

.cf-select {
  position: relative;
}

.cf-select__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 8px 0 14px;
  cursor: pointer;
  text-align: left;
  outline: none;
  transition: border-color 0.3s ease;
}

.cf-select__trigger:focus,
.cf-select.is-open .cf-select__trigger {
  border-bottom-color: var(--ink);
}

.cf-select__val {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.3;
  color: var(--ink);
}

.cf-select__arrow {
  flex-shrink: 0;
  color: var(--muted);
  display: flex;
  align-items: center;
  transition: transform 0.4s var(--ease);
}

.cf-select__arrow svg {
  width: 16px;
  height: 16px;
  display: block;
}

.cf-select.is-open .cf-select__arrow {
  transform: rotate(180deg);
}

.cf-select__list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 50;
  list-style: none;
  margin: 0;
  padding: 0;
  background: #f3ede1;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 28px 60px -20px rgba(0, 0, 0, 0.2),
              0 4px 16px -4px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transform-origin: top center;
  transition: opacity 0.28s var(--ease), transform 0.32s var(--ease);
}

.cf-select.is-open .cf-select__list {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.cf-select__opt {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 24px;
  cursor: pointer;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.22s ease, padding-left 0.32s var(--ease);
}

.cf-select__opt:last-child {
  border-bottom: none;
}

.cf-select__opt:hover {
  background: rgba(28, 29, 26, 0.10);
  padding-left: 32px;
}

.cf-select__opt:hover .cf-select__opt-text {
  font-style: normal;
  color: var(--ink);
}

.cf-select__opt:hover .cf-select__num {
  opacity: 0.8;
}

.cf-select__opt.is-selected {
  background: rgba(28, 29, 26, 0.03);
}

.cf-select__opt.is-selected .cf-select__num {
  color: var(--accent);
  opacity: 1;
}

.cf-select__num {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.5;
  flex-shrink: 0;
  min-width: 18px;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.cf-select__opt-text {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.2;
  color: var(--ink);
  transition: color 0.22s ease;
}

.cf-field textarea {
  resize: none;
  min-height: 120px;
}

/* Submit row */
.cf-footer {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.cf-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  /* Flat black — dark sibling of the gold CTA pills */
  background: var(--ink);
  color: var(--cream);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 14px 18px 14px 28px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(16px, 1.4vw, 18px);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 10px 28px -12px rgba(0, 0, 0, 0.5);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
              transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.cf-submit:hover {
  background: #000;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 18px 44px -16px rgba(0, 0, 0, 0.55);
}

.cf-submit__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(243, 237, 225, 0.22);
  flex-shrink: 0;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.cf-submit__arrow svg { width: 15px; height: 15px; }

.cf-submit:hover .cf-submit__arrow {
  transform: translateX(3px);
  border-color: rgba(243, 237, 225, 0.5);
}

.cf-submit.is-sending {
  opacity: 0.6;
  pointer-events: none;
}

.cf-status {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--accent);
  margin: 0;
}

.cf-status.is-error { color: #b8423a; }

/* =========================================================
   MAP — border-radius at bottom (last cream section)
   ========================================================= */
.contact-map {
  position: relative;
  z-index: 2;
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-radius: 0 0 40px 40px;
  box-shadow: 0 60px 80px -50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.contact-map__embed {
  padding: 28px 8vw 0;
  overflow: hidden;
}

.contact-map__embed iframe {
  width: 100%;
  height: 460px;
  border: none;
  display: block;
  border-radius: 20px;
  filter: saturate(0.85) contrast(0.95);
}

.contact-map__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 8vw 56px;
  flex-wrap: wrap;
}

.contact-map__name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 4px;
}

.contact-map__addr {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.contact-map__hrs {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.5;
  margin: 6px 0 0;
}

/* =========================================================
   FIELD ANIMATIONS
   ========================================================= */
[data-animate] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   THANK YOU OVERLAY
   ========================================================= */
.ct-thanks {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  pointer-events: none;
}

.ct-thanks__slide {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  transform: translateY(100%);
  transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

.ct-thanks.is-active { pointer-events: auto; }

.ct-thanks.is-active .ct-thanks__slide { transform: translateY(0); }

.ct-thanks__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ct-thanks__check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(243, 237, 225, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.5s ease 0.55s,
              transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.55s;
}

.ct-thanks__check svg { width: 22px; height: 22px; color: rgba(243, 237, 225, 0.7); }

.ct-thanks.is-active .ct-thanks__check { opacity: 1; transform: scale(1); }

.ct-thanks__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(72px, 13vw, 148px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--cream);
  margin: 0 0 28px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease 0.7s, transform 0.7s ease 0.7s;
}

.ct-thanks__title em { font-style: italic; }

.ct-thanks.is-active .ct-thanks__title { opacity: 1; transform: translateY(0); }

.ct-thanks__msg,
.ct-thanks__countdown {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(243, 237, 225, 0.7);
  margin: 0 0 8px;
  opacity: 0;
  transition: opacity 0.6s ease 1s;
}

.ct-thanks__countdown {
  margin-bottom: 40px;
  transition-delay: 1.1s;
}

.ct-thanks.is-active .ct-thanks__msg,
.ct-thanks.is-active .ct-thanks__countdown { opacity: 1; }

.ct-thanks__home {
  /* Flat black, matching .cta, instead of a faint cream ghost pill —
     border/shadow carry the definition against the overlay's
     near-black backdrop. */
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(243, 237, 225, 0.75);
  text-decoration: none;
  padding: 12px 22px;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  box-shadow: 0 6px 16px -10px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.6s ease 1.2s, color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.ct-thanks.is-active .ct-thanks__home { opacity: 1; }

.ct-thanks__home:hover {
  color: var(--cream);
  border-color: rgba(255, 255, 255, 0.3);
  background: #000;
}

/* =========================================================
   RESPONSIVE — tablet (≤ 960px)
   ========================================================= */
@media (max-width: 960px) {
  .contact {
    padding: 72px 40px 80px;
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact__details {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 28px 40px;
    padding-bottom: 40px;
  }

  .contact__detail {
    align-items: flex-start;
    text-align: left;
  }

  .contact__detail--social .contact__social {
    justify-content: flex-start;
  }

  .contact-map__embed { padding: 24px 40px 0; }
  .contact-map__embed iframe { height: 360px; border-radius: 16px; }
  .contact-map__bar   { padding: 32px 40px 52px; }
}

/* =========================================================
   RESPONSIVE — mobile (≤ 720px)
   ========================================================= */
@media (max-width: 720px) {
  .ct-hero {
    padding: 14px;
    min-height: 0;
    aspect-ratio: 3 / 4;
  }
  .ct-hero__frame {
    border-radius: 20px;
    /* Floor matches the aspect-ratio box; grid lets it grow taller
       than this if __content's text needs more room than that. */
    min-height: calc((100vw - 28px) * 4 / 3);
  }
  .ct-hero__content { padding: 0 24px 48px; }
  .ct-hero__title { font-size: clamp(38px, 12vw, 56px); }
  .ct-hero__lede { font-size: 15px; }

  .contact {
    padding: 56px 20px 64px;
  }

  .contact__details {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-bottom: 48px;
  }

  /* Undo the tablet breakpoint's left-align (960px, row-wrap layout)
     -- true mobile stacks as a single centred column again, so each
     detail's label/value need to be centred within it too, not left
     stuck against the (centred) block's own edge. */
  .contact__detail {
    align-items: center;
    text-align: center;
  }

  .contact__detail--social .contact__social {
    justify-content: center;
  }

  /* Mobile inputs: bordered boxes for clear tap targets */
  .cf-field { gap: 5px; margin-bottom: 20px; }

  .cf-field label {
    font-size: 14px;
  }

  .cf-field input,
  .cf-field select,
  .cf-field textarea {
    font-size: 19px;
    background: rgba(28, 29, 26, 0.04);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 14px;
  }

  .cf-field input:focus,
  .cf-field select:focus,
  .cf-field textarea:focus {
    border-color: var(--ink);
    background: rgba(28, 29, 26, 0.06);
    box-shadow: 0 0 0 3px rgba(28, 29, 26, 0.06);
  }

  /* Disable underline sweep on mobile — border handles it */
  .cf-field::after { display: none; }

  .cf-select__trigger {
    background: rgba(28, 29, 26, 0.04);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 14px;
  }

  .cf-select.is-open .cf-select__trigger,
  .cf-select__trigger:focus {
    border-color: var(--ink);
    background: rgba(28, 29, 26, 0.06);
    box-shadow: 0 0 0 3px rgba(28, 29, 26, 0.06);
    border-bottom-color: var(--ink);
  }

  .cf-select__list {
    top: calc(100% + 8px);
    border-radius: 16px;
  }

  .cf-select__opt {
    padding: 14px 18px;
  }

  .cf-select__opt:hover {
    padding-left: 26px;
  }

  .cf-field textarea { min-height: 100px; }

  .cf-footer { margin-top: 12px; }

  .cf-submit {
    font-size: 18px;
    padding: 13px 16px 13px 24px;
  }

  .contact-map__embed { padding: 20px 24px 0; }
  .contact-map__embed iframe { height: 280px; border-radius: 14px; }
  .contact-map__bar {
    padding: 24px 24px 44px;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}
