/* =========================================================================
   EVENT CASA — Connect with Us
   Desktop values are px on the 1920 design (× var(--u)).
   Below the hero, vertical values are measured from the hero's bottom edge.
   ========================================================================= */

/* ---------- Stand-in script (until the "A lot of heart" SVG arrives) ---------- */
@font-face {
  font-family: "Pinyon Script";
  src: url("../fonts/pinyon-script-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ---------- Hero ---------- */
.chero { position: relative; height: calc(918 * var(--u)); overflow: hidden; background: #c9a48a; }
.chero__media { position: absolute; inset: 0; will-change: transform; }
.chero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }

/* ---------- Section ---------- */
.contact { position: relative; padding-bottom: calc(112.5 * var(--u)); color: var(--ink-deep); }

.ptitle--chaos { --tfs: calc(103.8 * var(--u)); --orn-top: -5.4; --gap-l: 26; --gap-r: 30.2; height: auto; padding-top: calc(77 * var(--u)); }
.ptitle--contact { --tfs: calc(104.6 * var(--u)); --orn-top: -3.4; --gap-l: 33; --gap-r: 35.2; height: auto; padding-top: calc(var(--ct-pt, 107) * var(--u)); }
.ptitle--chaos .ptitle__main, .ptitle--contact .ptitle__main { margin-left: 0; }
.ptitle--contact .ptitle__text { letter-spacing: calc(.23 * var(--u)); }
.ptitle--contact .ptitle__main { margin-left: calc(4 * var(--u)); }

/* Script set in a font (SVG version will replace this) */
.ptitle__script--font {
  --dx: -274; --dy: 78; --sfs: 112.8;
  width: auto; white-space: nowrap; line-height: 1;
  left: calc(50% + var(--dx) * var(--tfs) / 102.8);
  top: calc(var(--dy) * var(--tfs) / 102.8);
  font-family: "Pinyon Script", cursive; font-weight: 400;
  font-size: calc(var(--sfs) * var(--tfs) / 102.8);
  -webkit-text-stroke: calc(.9 * var(--tfs) / 102.8) currentColor;
}

.contact__lead, .contact__intro, .contact__careers {
  position: relative; left: calc(-2.5 * var(--u));
  width: calc(1306 * var(--u)); margin-left: auto; margin-right: auto;
}
.contact__lead { margin-top: calc(var(--lead-mt, 196) * var(--u)); }
.contact__intro { margin-top: calc(var(--intro-mt, 79.5) * var(--u)); }
.contact p { margin: 0; font-family: var(--f-garamond); font-weight: 500; font-size: calc(28 * var(--u)); line-height: 1.2; }
.contact__lead p, .contact__intro p, .contact__careers p {
  text-align: center;
  hyphens: manual; -webkit-hyphens: manual;
}
.contact__lead p + p, .contact__intro p + p, .contact__careers p + p { margin-top: calc(33.6 * var(--u)); }

/* ---------- Form ---------- */
.cform { position: relative; left: calc(-5 * var(--u)); width: calc(1317 * var(--u)); margin: calc(var(--form-mt, 92) * var(--u)) auto 0; padding-left: calc(1.5 * var(--u)); }
.cform__grid {
  display: grid;
  grid-template-columns: calc(607 * var(--u)) calc(607 * var(--u));
  column-gap: calc(53 * var(--u));
  row-gap: calc(var(--row-gap, 70) * var(--u));
}
.field { position: relative; }
.field:nth-child(-n+2) { --in-h: 47; }
.field:nth-child(3), .field:nth-child(4) { margin-top: calc(8 * var(--u)); }
.field--full { grid-column: 1 / -1; width: calc(1315 * var(--u)); }
.field__label {
  display: block;
  font-family: var(--f-garamond); font-weight: 600;
  font-size: calc(34.8 * var(--u)); line-height: 1.2;
  letter-spacing: .01em; text-transform: uppercase;
  color: var(--ink-deep);
  padding-left: calc(3 * var(--u));
  transition: color .4s ease;
}
.field__input {
  display: block; width: 100%;
  height: calc(var(--in-h, 56) * var(--u));
  margin-top: calc(4 * var(--u));
  padding: 0 calc(6 * var(--u));
  border: 0; border-radius: 0; background: transparent; outline: none;
  font-family: var(--f-garamond); font-weight: 500;
  font-size: calc(28 * var(--u)); color: var(--ink-deep);
  -webkit-appearance: none; appearance: none;
}
.field__rule {
  position: relative; display: block;
  height: max(1px, calc(1.47 * var(--u)));
  background: rgba(66, 33, 11, .5);
  transform-origin: 0 50%;
}
/* focus: a deeper line draws across from the left */
.field__rule span {
  position: absolute; left: 0; right: 0; top: 50%; height: max(2px, calc(2.2 * var(--u)));
  margin-top: max(-1px, calc(-1.1 * var(--u)));
  background: var(--ink); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .9s var(--ease-out);
}
.field:focus-within .field__rule span { transform: scaleX(1); }
.field:focus-within .field__label { color: var(--ink-title); }
.field.is-invalid .field__rule { background: #9b2c1c; }
.field.is-invalid .field__label { color: #9b2c1c; }
/* spam trap: display:none so browser autofill never fills it (bots still do) */
.cform__hp { display: none !important; }
/* per-field error from the API: sits in the row gap under the line, so nothing shifts */
.field__error {
  position: absolute; left: 0; right: 0; top: 100%;
  padding: calc(8 * var(--u)) 0 0 calc(3 * var(--u));
  font-family: var(--f-garamond); font-style: italic; font-weight: 500;
  font-size: max(14px, calc(21 * var(--u))); line-height: 1.2;
  color: #9b2c1c;
  opacity: 0; transform: translateY(-4px);
  transition: opacity .35s ease, transform .35s var(--ease-out);
  pointer-events: none;
}
.field.is-invalid .field__error { opacity: 1; transform: none; }

/* captcha: one short centred line above the button */
.field.field--captcha { --in-h: 56; width: max-content; min-width: calc(600 * var(--u)); margin: 0 auto calc(70 * var(--u)); text-align: center; }
.field--captcha .field__label { padding-left: 0; white-space: nowrap; }
.field--captcha .field__input { text-align: center; }
.field--captcha .field__error { padding-left: 0; text-align: center; }

.cform__actions { margin-top: calc(var(--btn-mt, 103) * var(--u)); text-align: center; }
.cform__btn {
  position: relative; overflow: hidden;
  display: inline-grid; place-items: center;
  width: calc(469 * var(--u)); height: calc(90 * var(--u));
  border-radius: calc(20 * var(--u));
  background: #817B4B; color: #F5F0DA;
  font-family: var(--f-garamond); font-weight: 500;
  font-size: calc(35 * var(--u)); line-height: 1; letter-spacing: .005em;
  text-transform: uppercase;
  transition: transform .5s var(--ease-out), background-color .4s ease;
  margin-left: calc(1 * var(--u));
}
.cform__btn::before {               /* ink fill rises on hover */
  content: ""; position: absolute; inset: 0; background: var(--ink);
  transform: translateY(101%); transition: transform .7s var(--ease-io);
}
.cform__btn-label { position: relative; }
@media (hover: hover) { .cform__btn:hover::before { transform: translateY(0); } }
.cform__btn:active { transform: scale(.98); }
.cform__btn[disabled] { opacity: .6; pointer-events: none; }
.cform__status {
  min-height: 1.2em; margin-top: calc(18 * var(--u)) !important;
  font-style: italic; font-size: max(16px, calc(24 * var(--u))) !important; text-align: center;
}

.contact__flourish { display: block; width: calc(150 * var(--u)); height: auto; margin: calc(var(--med-mt, 40) * var(--u)) auto 0; }
.contact__careers { margin-top: calc(var(--car-mt, 53) * var(--u)); }
.contact__careers .contact__careers-lead { font-style: italic; font-size: calc(35 * var(--u)); text-align: center; text-align-last: center; }
.contact__careers .contact__careers-lead + p { margin-top: calc(var(--car-gap, 33) * var(--u)); }
.contact__careers a { font-weight: 700; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease-out); }
@media (hover: hover) { .contact__careers a:hover { background-size: 100% 1px; } }

/* ---------- Tablet & mobile ---------- */
@media (max-width: 1099px) {
  .chero { height: auto; aspect-ratio: 2044 / 979; }
  .ptitle--chaos, .ptitle--contact { --tfs: clamp(27px, 7.3vw, 76px); }
  .ptitle--contact .ptitle__main { margin-left: 0; }
  .ptitle--chaos { padding-top: 56px; --sbm: 64; }
  .ptitle--contact { padding-top: 64px; --sbm: 0; }
  .contact { padding-bottom: 64px; }
  .contact__lead, .contact__intro, .contact__careers, .cform { width: auto; max-width: 640px; padding: 0 24px; }
  .contact__lead { margin-top: 28px; }
  .contact__intro { margin-top: 24px; }
  .contact p { font-size: 19px; line-height: 1.42; }
  .contact__lead, .contact__intro, .contact__careers { left: 0; }
  .cform { margin-top: 40px; left: 0; }
  .cform__grid { grid-template-columns: 1fr; row-gap: 28px; }
  .field--full { width: auto; }
  .field__label { font-size: 17px; padding-left: 2px; }
  .field__input { height: 44px; font-size: 18px; padding: 0 2px; }
  .field:nth-child(3), .field:nth-child(4) { margin-top: 0; }
  .field__error { position: static; padding: 6px 0 0 2px; font-size: 15px; display: none; }
  .field.is-invalid .field__error { display: block; }
  .field.field--captcha { width: min(100%, 300px); min-width: 0; margin-bottom: 36px; }
  .field--captcha .field__label { white-space: normal; }
  .field--captcha .field__error { padding-left: 0; }
  .cform__actions { margin-top: 44px; }
  .cform__btn { width: min(100%, 340px); height: 64px; border-radius: 16px; font-size: 21px; margin-left: 0; }
  .cform__status { font-size: 17px !important; }
  .contact__flourish { width: 104px; margin-top: 56px; }
  .contact__careers { margin-top: 36px; }
  .contact__careers .contact__careers-lead { font-size: 23px; line-height: 1.3; }
  .contact__careers .contact__careers-lead + p { margin-top: 18px; }
  .contact__careers br { display: none; }
}
@media (min-width: 700px) and (max-width: 1099px) {
  .contact p { font-size: 21px; }
  .contact__careers .contact__careers-lead { font-size: 26px; }
}
@media (max-width: 767px) {
  .chero { aspect-ratio: 4 / 3; }
  .chero__media img { object-position: 46% 50%; }
}
